From af08080c028dfe191ed81c6dacd7ee1dbc5d9dc6 Mon Sep 17 00:00:00 2001
From: DIT <>
Date: Thu, 5 Sep 2024 10:44:01 +0000
Subject: [PATCH] publish: Merge pull request #7117 from
 uktrade/feat/export-win-refinements

generated from commit 9dbaa126d027ebc7f7e8c62231cf961fdcaa36dd
---
 ...__-FieldChoice-stories.623c005c.iframe.bundle.js | 13 +++++++++++++
 ...ieldChoice-stories.623c005c.iframe.bundle.js.map |  1 +
 ...__-FieldChoice-stories.a2c648fb.iframe.bundle.js | 11 -----------
 ...ieldChoice-stories.a2c648fb.iframe.bundle.js.map |  1 -
 iframe.html                                         |  4 ++--
 index.json                                          |  2 +-
 main.0da5e94c.iframe.bundle.js                      |  2 ++
 ...xt => main.0da5e94c.iframe.bundle.js.LICENSE.txt |  0
 main.92e43082.iframe.bundle.js                      |  2 --
 project.json                                        |  2 +-
 ...dle.js => runtime~main.2895dfff.iframe.bundle.js |  2 +-
 11 files changed, 21 insertions(+), 19 deletions(-)
 create mode 100644 Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js
 create mode 100644 Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js.map
 delete mode 100644 Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js
 delete mode 100644 Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js.map
 create mode 100644 main.0da5e94c.iframe.bundle.js
 rename main.92e43082.iframe.bundle.js.LICENSE.txt => main.0da5e94c.iframe.bundle.js.LICENSE.txt (100%)
 delete mode 100644 main.92e43082.iframe.bundle.js
 rename runtime~main.75988f1c.iframe.bundle.js => runtime~main.2895dfff.iframe.bundle.js (99%)

diff --git a/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js b/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js
new file mode 100644
index 00000000000..b3fe17b2019
--- /dev/null
+++ b/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js
@@ -0,0 +1,13 @@
+"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7163],{"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Boolean:()=>Boolean,BooleanCustomOptionLabels:()=>BooleanCustomOptionLabels,BooleanInline:()=>BooleanInline,BooleanLabel:()=>BooleanLabel,BooleanLabelAndHint:()=>BooleanLabelAndHint,BooleanRequired:()=>BooleanRequired,CheckboxPreselected:()=>CheckboxPreselected,Checkboxes:()=>Checkboxes,CheckboxesLabel:()=>CheckboxesLabel,CheckboxesLabelAndHint:()=>CheckboxesLabelAndHint,CheckboxesLegend:()=>CheckboxesLegend,CheckboxesRequired:()=>CheckboxesRequired,Radios:()=>Radios,RadiosInline:()=>RadiosInline,RadiosLabel:()=>RadiosLabel,RadiosLabelAndHint:()=>RadiosLabelAndHint,RadiosLegend:()=>RadiosLegend,RadiosPreselected:()=>RadiosPreselected,RadiosRequired:()=>RadiosRequired,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldChoice__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const getGDSDocsUrl=component=>`<a href="https://design-system.service.gov.uk/components/${component}" target="_blank" rel="noopener noreferrer">GOV.UK Design System docs - ${component}</a>`,GDS_DOCS_RADIOS_URL=getGDSDocsUrl("radios"),GDS_DOCS_CHECKBOXES_URL=getGDSDocsUrl("checkboxes"),inline=styled_components__WEBPACK_IMPORTED_MODULE_3__.AH`
+  fieldset div {
+    display: flex;
+  }
+  fieldset div label {
+    margin-right: 10px;
+  }
+`,FieldChoiceRadioInline=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A.Radio)`
+  ${inline}
+`,FieldChoiceBooleanInline=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A.Boolean)`
+  ${inline}
+`,countryOptions=[{value:"0",label:"England"},{value:"1",label:"Wales"},{value:"2",label:"Scotland"},{value:"3",label:"Northern Ireland"}],countryOptionsSubset=countryOptions.slice(0,2),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldChoice",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A,args:{options:countryOptions,name:"country",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A},argTypes:{type:"string",initialValues:{control:"object"}},parameters:{docs:{description:{component:'The <b>FieldChoice</b> component renders a group of radio buttons or checkboxes by setting the prop type to either "radio" or "checkbox".\n                    The component sets the entire selected option to the form\'s state which is helpful on user journeys where the final page is a summary page\n                    and you need to extract a label (or any other field) from a previous selection to display to the user. Instead of using FieldChoice directly,\n                    favour <b>FieldChoice.Radio</b>, <b>FieldChoice.Checkbox</b>, or <b>FieldChoice.Boolean</b> where the type is set for you.'}}}},Template=({component:Component,initialValues,...args},{id})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id,analyticsFormName:"formRadio",submissionTaskName:"SUBMISSION",initialValues},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,args),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2))))),generateFormCode=({comments=[],componentName,props:{options=countryOptions,...restProps}})=>{let formCode="";return comments.forEach((comment=>{formCode+=`// ${comment}\n`})),formCode+=`\n<Form\n  id={id}\n  analyticsFormName="formRadio"\n  submissionTaskName="SUBMISSION"\n>\n  {(state) => (\n    <>\n      <${componentName}`,Object.keys(restProps).forEach((key=>{const value=restProps[key];value&&(formCode+=`\n        ${key}="${value}"`)})),options.length&&(formCode+="\n        options: [",options.forEach(((option,index)=>{formCode+=`\n          {\n            value: '${option.value}',\n            label: '${option.label}',\n          }${index<options.length-1?",":""}`})),formCode+="\n        ]"),formCode+="\n      />\n      <pre>{JSON.stringify(state, null, 2)}</pre>\n    </>\n  )}\n</Form>\n",formCode},formatCountry=country=>`{ value: '${country.value}', label: '${country.label}' }`,Radios=Template.bind({});Radios.args={type:"radio"},Radios.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country"}})}}};const RadiosLabel=Template.bind({});RadiosLabel.storyName="Radios and label",RadiosLabel.args={...Radios.args,label:"Where do you live"},RadiosLabel.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",label:"Where do you live"}})}}};const RadiosLabelAndHint=Template.bind({});RadiosLabelAndHint.storyName="Radios with label and hint",RadiosLabelAndHint.args={...Radios.args,label:"Where do you live",hint:"Select one option"},RadiosLabelAndHint.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",label:"Where do you live",hint:"Select one option"}})}}};const RadiosLegend=Template.bind({});RadiosLegend.storyName="Radios and legend",RadiosLegend.args={...Radios.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"H1 legend")},RadiosLegend.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",legend:"{<h1>H1 legend</h1>}"}})}}};const RadiosInline=Template.bind({});RadiosInline.storyName="Radios inline",RadiosInline.args={...Radios.args,component:FieldChoiceRadioInline,options:countryOptionsSubset},RadiosInline.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoiceRadioInline",props:{name:"country",options:countryOptionsSubset}})}}};const RadiosRequired=Template.bind({});RadiosRequired.storyName="Radios selection required",RadiosRequired.args={...Radios.args,required:"Select at least one country"},RadiosRequired.parameters={docs:{description:{story:`Radio button group where a selection is required. Click "Save" to view an error. ${GDS_DOCS_RADIOS_URL}`},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",required:"Select at least one country"}})}}};const RadiosPreselected=Template.bind({});RadiosPreselected.storyName="Radios preselected";const country=countryOptions[0];RadiosPreselected.args={...Radios.args,initialValues:{country}},RadiosPreselected.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",comments:["The form will automatically set the initial values providing the name","field is set within the object that's returned by a transformer.",`For example: { country: ${formatCountry(country)} }`],props:{name:"country"}})}}};const Checkboxes=Template.bind({});Checkboxes.args={type:"checkboxes"},Checkboxes.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country"}})}}};const CheckboxesLabel=Template.bind({});CheckboxesLabel.storyName="Checkboxes and label",CheckboxesLabel.args={...Checkboxes.args,label:"Where do you live"},CheckboxesLabel.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",label:"Where do you live"}})}}};const CheckboxesLabelAndHint=Template.bind({});CheckboxesLabelAndHint.storyName="Checkboxes label and hint";const checkboxLabelAndHint={label:"Where do you live",hint:"Select all that apply"};CheckboxesLabelAndHint.args={...Checkboxes.args,...checkboxLabelAndHint},CheckboxesLabelAndHint.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",...checkboxLabelAndHint}})}}};const CheckboxesLegend=Template.bind({});CheckboxesLegend.storyName="Checkboxes and legend",CheckboxesLegend.args={...Checkboxes.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"H1 legend")},CheckboxesLegend.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",legend:"{<h1>H1 legend</h1>}"}})}}};const CheckboxesRequired=Template.bind({});CheckboxesRequired.storyName="Checkboxes selection required",CheckboxesRequired.args={...Checkboxes.args,required:"Select at least one country"},CheckboxesRequired.parameters={docs:{description:{story:`Checkbox group where a selection is required. Click "Save" to view an error. ${GDS_DOCS_CHECKBOXES_URL}`},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",required:"Select at least one country"}})}}};const CheckboxPreselected=Template.bind({});CheckboxPreselected.storyName="Checkboxes preselected",CheckboxPreselected.args={...Checkboxes.args,initialValues:{country:[countryOptions[0],countryOptions[1]]}},CheckboxPreselected.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",comments:["The form will automatically set the initial values providing the name","field is set within the object that's returned by a transformer.",`For example: { country: [${formatCountry(countryOptions[0])}, ${formatCountry(countryOptions[1])}] }`],props:{name:"country"}})}}};const BOOLEAN_COMMENT="There's no need to set the options as the component does this internally.",Boolean=Template.bind({});Boolean.storyName="Boolean radios",Boolean.args={name:"has_changed_name",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A.Boolean},Boolean.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Boolean",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",options:[]}})}}};const BooleanLabel=Template.bind({});BooleanLabel.storyName="Boolean radios with label",BooleanLabel.args={...Boolean.args,label:"Have you changed your name?"},BooleanLabel.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Boolean",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",label:"Have you changed your name?",options:[]}})}}};const BooleanLabelAndHint=Template.bind({});BooleanLabelAndHint.storyName="Boolean radios with label and hint";const labelAndHint={label:"Have you changed your name?",hint:"This includes changing your last name or spelling your name differently."};BooleanLabelAndHint.args={...Boolean.args,...labelAndHint},BooleanLabelAndHint.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Boolean",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",...labelAndHint,options:[]}})}}};const BooleanCustomOptionLabels=Template.bind({});BooleanCustomOptionLabels.storyName="Boolean radios with custom labels";const customOptionLabels={label:"Have you changed your name?",yesLabel:"Agree",noLabel:"Disagree"};BooleanCustomOptionLabels.args={...Boolean.args,...customOptionLabels},BooleanCustomOptionLabels.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Boolean",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",...customOptionLabels,options:[]}})}}};const BooleanRequired=Template.bind({});BooleanRequired.storyName="Boolean radios selection required",BooleanRequired.args={...Boolean.args,required:"Select at least one option"},BooleanRequired.parameters={docs:{description:{story:`A boolean radio group where a selection is required. Click "Save" to view an error. ${GDS_DOCS_RADIOS_URL}`},source:{code:generateFormCode({componentName:"FieldChoice.Boolean",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",required:"Select at least one option",options:[]}})}}};const BooleanInline=Template.bind({});BooleanInline.storyName="Boolean radios inline",BooleanInline.args={...Boolean.args,component:FieldChoiceBooleanInline},BooleanInline.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoiceBooleanInline",comments:[BOOLEAN_COMMENT],props:{name:"has_changed_name",options:[]}})}}};const __namedExportsOrder=["Radios","RadiosLabel","RadiosLabelAndHint","RadiosLegend","RadiosInline","RadiosRequired","RadiosPreselected","Checkboxes","CheckboxesLabel","CheckboxesLabelAndHint","CheckboxesLegend","CheckboxesRequired","CheckboxPreselected","Boolean","BooleanLabel","BooleanLabelAndHint","BooleanCustomOptionLabels","BooleanRequired","BooleanInline"];Radios.parameters={...Radios.parameters,docs:{...Radios.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...Radios.parameters?.docs?.source}}},RadiosLabel.parameters={...RadiosLabel.parameters,docs:{...RadiosLabel.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLabel.parameters?.docs?.source}}},RadiosLabelAndHint.parameters={...RadiosLabelAndHint.parameters,docs:{...RadiosLabelAndHint.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLabelAndHint.parameters?.docs?.source}}},RadiosLegend.parameters={...RadiosLegend.parameters,docs:{...RadiosLegend.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLegend.parameters?.docs?.source}}},RadiosInline.parameters={...RadiosInline.parameters,docs:{...RadiosInline.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosInline.parameters?.docs?.source}}},RadiosRequired.parameters={...RadiosRequired.parameters,docs:{...RadiosRequired.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosRequired.parameters?.docs?.source}}},RadiosPreselected.parameters={...RadiosPreselected.parameters,docs:{...RadiosPreselected.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosPreselected.parameters?.docs?.source}}},Checkboxes.parameters={...Checkboxes.parameters,docs:{...Checkboxes.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...Checkboxes.parameters?.docs?.source}}},CheckboxesLabel.parameters={...CheckboxesLabel.parameters,docs:{...CheckboxesLabel.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLabel.parameters?.docs?.source}}},CheckboxesLabelAndHint.parameters={...CheckboxesLabelAndHint.parameters,docs:{...CheckboxesLabelAndHint.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLabelAndHint.parameters?.docs?.source}}},CheckboxesLegend.parameters={...CheckboxesLegend.parameters,docs:{...CheckboxesLegend.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLegend.parameters?.docs?.source}}},CheckboxesRequired.parameters={...CheckboxesRequired.parameters,docs:{...CheckboxesRequired.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesRequired.parameters?.docs?.source}}},CheckboxPreselected.parameters={...CheckboxPreselected.parameters,docs:{...CheckboxPreselected.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxPreselected.parameters?.docs?.source}}},Boolean.parameters={...Boolean.parameters,docs:{...Boolean.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...Boolean.parameters?.docs?.source}}},BooleanLabel.parameters={...BooleanLabel.parameters,docs:{...BooleanLabel.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...BooleanLabel.parameters?.docs?.source}}},BooleanLabelAndHint.parameters={...BooleanLabelAndHint.parameters,docs:{...BooleanLabelAndHint.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...BooleanLabelAndHint.parameters?.docs?.source}}},BooleanCustomOptionLabels.parameters={...BooleanCustomOptionLabels.parameters,docs:{...BooleanCustomOptionLabels.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...BooleanCustomOptionLabels.parameters?.docs?.source}}},BooleanRequired.parameters={...BooleanRequired.parameters,docs:{...BooleanRequired.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...BooleanRequired.parameters?.docs?.source}}},BooleanInline.parameters={...BooleanInline.parameters,docs:{...BooleanInline.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...BooleanInline.parameters?.docs?.source}}}}}]);
+//# sourceMappingURL=Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js.map
\ No newline at end of file
diff --git a/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js.map b/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js.map
new file mode 100644
index 00000000000..d5adb15e321
--- /dev/null
+++ b/Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"Form-elements-__stories__-FieldChoice-stories.623c005c.iframe.bundle.js","mappings":";;;;;;;AAqBA;AACA;AAGA;AACA;AAGA","sources":["webpack://data-hub-frontend/./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx"],"sourcesContent":["import React from 'react'\nimport styled, { css } from 'styled-components'\n\nimport FieldChoice from '../FieldChoice'\nimport Form from '../..'\n\nconst getGDSDocsUrl = (component) =>\n  `<a href=\"https://design-system.service.gov.uk/components/${component}\" target=\"_blank\" rel=\"noopener noreferrer\">GOV.UK Design System docs - ${component}</a>`\n\nconst GDS_DOCS_RADIOS_URL = getGDSDocsUrl('radios')\nconst GDS_DOCS_CHECKBOXES_URL = getGDSDocsUrl('checkboxes')\n\nconst inline = css`\n  fieldset div {\n    display: flex;\n  }\n  fieldset div label {\n    margin-right: 10px;\n  }\n`\n\nconst FieldChoiceRadioInline = styled(FieldChoice.Radio)`\n  ${inline}\n`\n\nconst FieldChoiceBooleanInline = styled(FieldChoice.Boolean)`\n  ${inline}\n`\n\nconst countryOptions = [\n  {\n    value: '0',\n    label: 'England',\n  },\n  {\n    value: '1',\n    label: 'Wales',\n  },\n  {\n    value: '2',\n    label: 'Scotland',\n  },\n  {\n    value: '3',\n    label: 'Northern Ireland',\n  },\n]\n\nconst countryOptionsSubset = countryOptions.slice(0, 2)\n\nexport default {\n  title: 'Form/Form Elements/FieldChoice',\n  component: FieldChoice,\n  args: {\n    options: countryOptions,\n    name: 'country',\n    component: FieldChoice,\n  },\n  argTypes: {\n    type: 'string',\n    initialValues: { control: 'object' },\n  },\n  parameters: {\n    docs: {\n      description: {\n        component: `The <b>FieldChoice</b> component renders a group of radio buttons or checkboxes by setting the prop type to either \"radio\" or \"checkbox\".\n                    The component sets the entire selected option to the form's state which is helpful on user journeys where the final page is a summary page\n                    and you need to extract a label (or any other field) from a previous selection to display to the user. Instead of using FieldChoice directly,\n                    favour <b>FieldChoice.Radio</b>, <b>FieldChoice.Checkbox</b>, or <b>FieldChoice.Boolean</b> where the type is set for you.`,\n      },\n    },\n  },\n}\n\nconst Template = ({ component: Component, initialValues, ...args }, { id }) => (\n  <Form\n    id={id}\n    analyticsFormName=\"formRadio\"\n    submissionTaskName=\"SUBMISSION\"\n    initialValues={initialValues}\n  >\n    {(state) => (\n      <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>\n    )}\n  </Form>\n)\n\nconst generateFormCode = ({\n  comments = [],\n  componentName,\n  props: { options = countryOptions, ...restProps },\n}) => {\n  let formCode = ''\n\n  comments.forEach((comment) => {\n    formCode += `// ${comment}\\n`\n  })\n\n  formCode += `\n<Form\n  id={id}\n  analyticsFormName=\"formRadio\"\n  submissionTaskName=\"SUBMISSION\"\n>\n  {(state) => (\n    <>\n      <${componentName}`\n\n  Object.keys(restProps).forEach((key) => {\n    const value = restProps[key]\n    if (value) {\n      formCode += `\n        ${key}=\"${value}\"`\n    }\n  })\n\n  if (options.length) {\n    formCode += `\n        options: [`\n\n    options.forEach((option, index) => {\n      formCode += `\n          {\n            value: '${option.value}',\n            label: '${option.label}',\n          }${index < options.length - 1 ? ',' : ''}`\n    })\n\n    formCode += `\n        ]`\n  }\n\n  formCode += `\n      />\n      <pre>{JSON.stringify(state, null, 2)}</pre>\n    </>\n  )}\n</Form>\n`\n  return formCode\n}\n\nconst formatCountry = (country) =>\n  `{ value: '${country.value}', label: '${country.label}' }`\n\n// Radios\nexport const Radios = Template.bind({})\nRadios.args = { type: 'radio' }\nRadios.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLabel = Template.bind({})\nRadiosLabel.storyName = 'Radios and label'\nRadiosLabel.args = {\n  ...Radios.args,\n  label: 'Where do you live',\n}\nRadiosLabel.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLabelAndHint = Template.bind({})\nRadiosLabelAndHint.storyName = 'Radios with label and hint'\nRadiosLabelAndHint.args = {\n  ...Radios.args,\n  label: 'Where do you live',\n  hint: 'Select one option',\n}\nRadiosLabelAndHint.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n          hint: 'Select one option',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLegend = Template.bind({})\nRadiosLegend.storyName = 'Radios and legend'\nRadiosLegend.args = {\n  ...Radios.args,\n  legend: <h1>H1 legend</h1>,\n}\nRadiosLegend.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          legend: '{<h1>H1 legend</h1>}',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosInline = Template.bind({})\nRadiosInline.storyName = 'Radios inline'\nRadiosInline.args = {\n  ...Radios.args,\n  component: FieldChoiceRadioInline,\n  options: countryOptionsSubset,\n}\nRadiosInline.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoiceRadioInline',\n        props: {\n          name: 'country',\n          options: countryOptionsSubset,\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosRequired = Template.bind({})\nRadiosRequired.storyName = 'Radios selection required'\nRadiosRequired.args = {\n  ...Radios.args,\n  required: 'Select at least one country',\n}\nRadiosRequired.parameters = {\n  docs: {\n    description: {\n      story: `Radio button group where a selection is required. Click \"Save\" to view an error. ${GDS_DOCS_RADIOS_URL}`,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          required: 'Select at least one country',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosPreselected = Template.bind({})\nRadiosPreselected.storyName = 'Radios preselected'\nconst country = countryOptions[0]\nRadiosPreselected.args = {\n  ...Radios.args,\n  initialValues: {\n    country,\n  },\n}\nRadiosPreselected.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        comments: [\n          'The form will automatically set the initial values providing the name',\n          \"field is set within the object that's returned by a transformer.\",\n          `For example: { country: ${formatCountry(country)} }`,\n        ],\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\n// Checkbox\nexport const Checkboxes = Template.bind({})\nCheckboxes.args = { type: 'checkboxes' }\nCheckboxes.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLabel = Template.bind({})\nCheckboxesLabel.storyName = 'Checkboxes and label'\nCheckboxesLabel.args = {\n  ...Checkboxes.args,\n  label: 'Where do you live',\n}\nCheckboxesLabel.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLabelAndHint = Template.bind({})\nCheckboxesLabelAndHint.storyName = 'Checkboxes label and hint'\nconst checkboxLabelAndHint = {\n  label: 'Where do you live',\n  hint: 'Select all that apply',\n}\nCheckboxesLabelAndHint.args = {\n  ...Checkboxes.args,\n  ...checkboxLabelAndHint,\n}\nCheckboxesLabelAndHint.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          ...checkboxLabelAndHint,\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLegend = Template.bind({})\nCheckboxesLegend.storyName = 'Checkboxes and legend'\nCheckboxesLegend.args = {\n  ...Checkboxes.args,\n  legend: <h1>H1 legend</h1>,\n}\nCheckboxesLegend.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          legend: '{<h1>H1 legend</h1>}',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesRequired = Template.bind({})\nCheckboxesRequired.storyName = 'Checkboxes selection required'\nCheckboxesRequired.args = {\n  ...Checkboxes.args,\n  required: 'Select at least one country',\n}\nCheckboxesRequired.parameters = {\n  docs: {\n    description: {\n      story: `Checkbox group where a selection is required. Click \"Save\" to view an error. ${GDS_DOCS_CHECKBOXES_URL}`,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          required: 'Select at least one country',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxPreselected = Template.bind({})\nCheckboxPreselected.storyName = 'Checkboxes preselected'\nCheckboxPreselected.args = {\n  ...Checkboxes.args,\n  initialValues: {\n    country: [countryOptions[0], countryOptions[1]],\n  },\n}\nCheckboxPreselected.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        comments: [\n          'The form will automatically set the initial values providing the name',\n          \"field is set within the object that's returned by a transformer.\",\n          `For example: { country: [${formatCountry(countryOptions[0])}, ${formatCountry(countryOptions[1])}] }`,\n        ],\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\n// Boolean\nconst BOOLEAN_COMMENT =\n  \"There's no need to set the options as the component does this internally.\"\n\nexport const Boolean = Template.bind({})\nBoolean.storyName = 'Boolean radios'\nBoolean.args = {\n  name: 'has_changed_name',\n  component: FieldChoice.Boolean,\n}\nBoolean.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Boolean',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          options: [],\n        },\n      }),\n    },\n  },\n}\n\nexport const BooleanLabel = Template.bind({})\nBooleanLabel.storyName = 'Boolean radios with label'\nBooleanLabel.args = {\n  ...Boolean.args,\n  label: 'Have you changed your name?',\n}\nBooleanLabel.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Boolean',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          label: 'Have you changed your name?',\n          options: [],\n        },\n      }),\n    },\n  },\n}\n\nexport const BooleanLabelAndHint = Template.bind({})\nBooleanLabelAndHint.storyName = 'Boolean radios with label and hint'\nconst labelAndHint = {\n  label: 'Have you changed your name?',\n  hint: 'This includes changing your last name or spelling your name differently.',\n}\nBooleanLabelAndHint.args = {\n  ...Boolean.args,\n  ...labelAndHint,\n}\nBooleanLabelAndHint.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Boolean',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          ...labelAndHint,\n          options: [],\n        },\n      }),\n    },\n  },\n}\n\nexport const BooleanCustomOptionLabels = Template.bind({})\nBooleanCustomOptionLabels.storyName = 'Boolean radios with custom labels'\nconst customOptionLabels = {\n  label: 'Have you changed your name?',\n  yesLabel: 'Agree',\n  noLabel: 'Disagree',\n}\nBooleanCustomOptionLabels.args = {\n  ...Boolean.args,\n  ...customOptionLabels,\n}\nBooleanCustomOptionLabels.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Boolean',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          ...customOptionLabels,\n          options: [],\n        },\n      }),\n    },\n  },\n}\n\nexport const BooleanRequired = Template.bind({})\nBooleanRequired.storyName = 'Boolean radios selection required'\nBooleanRequired.args = {\n  ...Boolean.args,\n  required: 'Select at least one option',\n}\nBooleanRequired.parameters = {\n  docs: {\n    description: {\n      story: `A boolean radio group where a selection is required. Click \"Save\" to view an error. ${GDS_DOCS_RADIOS_URL}`,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Boolean',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          required: 'Select at least one option',\n          options: [],\n        },\n      }),\n    },\n  },\n}\n\nexport const BooleanInline = Template.bind({})\nBooleanInline.storyName = 'Boolean radios inline'\nBooleanInline.args = {\n  ...Boolean.args,\n  component: FieldChoiceBooleanInline,\n}\nBooleanInline.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoiceBooleanInline',\n        comments: [BOOLEAN_COMMENT],\n        props: {\n          name: 'has_changed_name',\n          options: [],\n        },\n      }),\n    },\n  },\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js b/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js
deleted file mode 100644
index 36168cc4425..00000000000
--- a/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7163],{"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CheckboxPreselected:()=>CheckboxPreselected,Checkboxes:()=>Checkboxes,CheckboxesLabel:()=>CheckboxesLabel,CheckboxesLabelAndHint:()=>CheckboxesLabelAndHint,CheckboxesLegend:()=>CheckboxesLegend,CheckboxesRequired:()=>CheckboxesRequired,Radios:()=>Radios,RadiosInline:()=>RadiosInline,RadiosLabel:()=>RadiosLabel,RadiosLabelAndHint:()=>RadiosLabelAndHint,RadiosLegend:()=>RadiosLegend,RadiosPreselected:()=>RadiosPreselected,RadiosRequired:()=>RadiosRequired,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldChoice__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const getGDSDocsUrl=component=>`<a href="https://design-system.service.gov.uk/components/${component}" target="_blank" rel="noopener noreferrer">GOV.UK Design System docs - ${component}</a>`,GDS_DOCS_RADIOS_URL=getGDSDocsUrl("radios"),GDS_DOCS_CHECKBOXES_URL=getGDSDocsUrl("checkboxes"),inline=styled_components__WEBPACK_IMPORTED_MODULE_3__.AH`
-  fieldset div {
-    display: flex;
-  }
-  fieldset div label {
-    margin-right: 10px;
-  }
-`,FieldChoiceRadioInline=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A.Radio)`
-  ${inline}
-`,countryOptions=[{value:"0",label:"England"},{value:"1",label:"Wales"},{value:"2",label:"Scotland"},{value:"3",label:"Northern Ireland"}],countryOptionsSubset=countryOptions.slice(0,2),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldChoice",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A,args:{options:countryOptions,name:"country",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_1__.A},argTypes:{type:"string",initialValues:{control:"object"}},parameters:{docs:{description:{component:'The <b>FieldChoice</b> component renders a group of radio buttons or checkboxes by setting the prop type to either "radio" or "checkbox".\n                    The component sets the entire selected option to the form\'s state which is helpful on user journeys where the final page is a summary page\n                    and you need to extract a label (or any other field) from a previous selection to display to the user. Instead of using FieldChoice directly,\n                    favour <b>FieldChoice.Radio</b>, <b>FieldChoice.Checkbox</b>, or <b>FieldChoice.Boolean</b> where the type is set for you.'}}}},Template=({component:Component,initialValues,...args},{id})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id,analyticsFormName:"formRadio",submissionTaskName:"SUBMISSION",initialValues},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,args),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2))))),generateFormCode=({comments=[],componentName,props:{options=countryOptions,...restProps}})=>{let formCode="";return comments.forEach((comment=>{formCode+=`// ${comment}\n`})),formCode+=`\n<Form\n  id={id}\n  analyticsFormName="formRadio"\n  submissionTaskName="SUBMISSION"\n>\n  {(state) => (\n    <>\n      <${componentName}`,Object.keys(restProps).forEach((key=>{const value=restProps[key];value&&(formCode+=`\n        ${key}="${value}"`)})),options.length&&(formCode+="\n        options: [",options.forEach(((option,index)=>{formCode+=`\n          {\n            value: '${option.value}',\n            label: '${option.label}',\n          }${index<options.length-1?",":""}`})),formCode+="\n        ]"),formCode+="\n      />\n      <pre>{JSON.stringify(state, null, 2)}</pre>\n    </>\n  )}\n</Form>\n",formCode},formatCountry=country=>`{ value: '${country.value}', label: '${country.label}' }`,Radios=Template.bind({});Radios.args={type:"radio"},Radios.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country"}})}}};const RadiosLabel=Template.bind({});RadiosLabel.storyName="Radios and label",RadiosLabel.args={...Radios.args,label:"Where do you live"},RadiosLabel.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",label:"Where do you live"}})}}};const RadiosLabelAndHint=Template.bind({});RadiosLabelAndHint.storyName="Radios with label and hint",RadiosLabelAndHint.args={...Radios.args,label:"Where do you live",hint:"Select one option"},RadiosLabelAndHint.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",label:"Where do you live",hint:"Select one option"}})}}};const RadiosLegend=Template.bind({});RadiosLegend.storyName="Radios and legend",RadiosLegend.args={...Radios.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"H1 legend")},RadiosLegend.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",legend:"{<h1>H1 legend</h1>}"}})}}};const RadiosInline=Template.bind({});RadiosInline.storyName="Radios inline",RadiosInline.args={...Radios.args,component:FieldChoiceRadioInline,options:countryOptionsSubset},RadiosInline.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoiceRadioInline",props:{name:"country",options:countryOptionsSubset}})}}};const RadiosRequired=Template.bind({});RadiosRequired.storyName="Radios selection required",RadiosRequired.args={...Radios.args,required:"Select at least one country"},RadiosRequired.parameters={docs:{description:{story:`Radio button group where a selection is required. Click "Save" to view an error. ${GDS_DOCS_RADIOS_URL}`},source:{code:generateFormCode({componentName:"FieldChoice.Radio",props:{name:"country",required:"Select at least one country"}})}}};const RadiosPreselected=Template.bind({});RadiosPreselected.storyName="Radios preselected";const country=countryOptions[0];RadiosPreselected.args={...Radios.args,initialValues:{country}},RadiosPreselected.parameters={docs:{description:{story:GDS_DOCS_RADIOS_URL},source:{code:generateFormCode({componentName:"FieldChoice.Radio",comments:["The form will automatically set the initial values providing the name","field is set within the object that's returned by a transformer.",`For example: { country: ${formatCountry(country)} }`],props:{name:"country"}})}}};const Checkboxes=Template.bind({});Checkboxes.args={type:"checkboxes"},Checkboxes.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country"}})}}};const CheckboxesLabel=Template.bind({});CheckboxesLabel.storyName="Checkboxes and label",CheckboxesLabel.args={...Checkboxes.args,label:"Where do you live"},CheckboxesLabel.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",label:"Where do you live"}})}}};const CheckboxesLabelAndHint=Template.bind({});CheckboxesLabelAndHint.storyName="Checkboxes label and hint";const checkboxLabelAndHint={label:"Where do you live",hint:"Select all that apply"};CheckboxesLabelAndHint.args={...Checkboxes.args,...checkboxLabelAndHint},CheckboxesLabelAndHint.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",...checkboxLabelAndHint}})}}};const CheckboxesLegend=Template.bind({});CheckboxesLegend.storyName="Checkboxes and legend",CheckboxesLegend.args={...Checkboxes.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"H1 legend")},CheckboxesLegend.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",legend:"{<h1>H1 legend</h1>}"}})}}};const CheckboxesRequired=Template.bind({});CheckboxesRequired.storyName="Checkboxes selection required",CheckboxesRequired.args={...Checkboxes.args,required:"Select at least one country"},CheckboxesRequired.parameters={docs:{description:{story:`Checkbox group where a selection is required. Click "Save" to view an error. ${GDS_DOCS_CHECKBOXES_URL}`},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",props:{name:"country",required:"Select at least one country"}})}}};const CheckboxPreselected=Template.bind({});CheckboxPreselected.storyName="Checkboxes preselected",CheckboxPreselected.args={...Checkboxes.args,initialValues:{country:[countryOptions[0],countryOptions[1]]}},CheckboxPreselected.parameters={docs:{description:{story:GDS_DOCS_CHECKBOXES_URL},source:{code:generateFormCode({componentName:"FieldChoice.Checkbox",comments:["The form will automatically set the initial values providing the name","field is set within the object that's returned by a transformer.",`For example: { country: [${formatCountry(countryOptions[0])}, ${formatCountry(countryOptions[1])}] }`],props:{name:"country"}})}}};const __namedExportsOrder=["Radios","RadiosLabel","RadiosLabelAndHint","RadiosLegend","RadiosInline","RadiosRequired","RadiosPreselected","Checkboxes","CheckboxesLabel","CheckboxesLabelAndHint","CheckboxesLegend","CheckboxesRequired","CheckboxPreselected"];Radios.parameters={...Radios.parameters,docs:{...Radios.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...Radios.parameters?.docs?.source}}},RadiosLabel.parameters={...RadiosLabel.parameters,docs:{...RadiosLabel.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLabel.parameters?.docs?.source}}},RadiosLabelAndHint.parameters={...RadiosLabelAndHint.parameters,docs:{...RadiosLabelAndHint.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLabelAndHint.parameters?.docs?.source}}},RadiosLegend.parameters={...RadiosLegend.parameters,docs:{...RadiosLegend.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosLegend.parameters?.docs?.source}}},RadiosInline.parameters={...RadiosInline.parameters,docs:{...RadiosInline.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosInline.parameters?.docs?.source}}},RadiosRequired.parameters={...RadiosRequired.parameters,docs:{...RadiosRequired.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosRequired.parameters?.docs?.source}}},RadiosPreselected.parameters={...RadiosPreselected.parameters,docs:{...RadiosPreselected.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...RadiosPreselected.parameters?.docs?.source}}},Checkboxes.parameters={...Checkboxes.parameters,docs:{...Checkboxes.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...Checkboxes.parameters?.docs?.source}}},CheckboxesLabel.parameters={...CheckboxesLabel.parameters,docs:{...CheckboxesLabel.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLabel.parameters?.docs?.source}}},CheckboxesLabelAndHint.parameters={...CheckboxesLabelAndHint.parameters,docs:{...CheckboxesLabelAndHint.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLabelAndHint.parameters?.docs?.source}}},CheckboxesLegend.parameters={...CheckboxesLegend.parameters,docs:{...CheckboxesLegend.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesLegend.parameters?.docs?.source}}},CheckboxesRequired.parameters={...CheckboxesRequired.parameters,docs:{...CheckboxesRequired.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxesRequired.parameters?.docs?.source}}},CheckboxPreselected.parameters={...CheckboxPreselected.parameters,docs:{...CheckboxPreselected.parameters?.docs,source:{originalSource:'({\n  component: Component,\n  initialValues,\n  ...args\n}, {\n  id\n}) => <Form id={id} analyticsFormName="formRadio" submissionTaskName="SUBMISSION" initialValues={initialValues}>\n    {state => <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>}\n  </Form>',...CheckboxPreselected.parameters?.docs?.source}}}}}]);
-//# sourceMappingURL=Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js.map
\ No newline at end of file
diff --git a/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js.map b/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js.map
deleted file mode 100644
index 672c0d8e1c8..00000000000
--- a/Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Form-elements-__stories__-FieldChoice-stories.a2c648fb.iframe.bundle.js","mappings":";;;;;;;AAqBA;AACA;AAGA","sources":["webpack://data-hub-frontend/./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx"],"sourcesContent":["import React from 'react'\nimport styled, { css } from 'styled-components'\n\nimport FieldChoice from '../FieldChoice'\nimport Form from '../..'\n\nconst getGDSDocsUrl = (component) =>\n  `<a href=\"https://design-system.service.gov.uk/components/${component}\" target=\"_blank\" rel=\"noopener noreferrer\">GOV.UK Design System docs - ${component}</a>`\n\nconst GDS_DOCS_RADIOS_URL = getGDSDocsUrl('radios')\nconst GDS_DOCS_CHECKBOXES_URL = getGDSDocsUrl('checkboxes')\n\nconst inline = css`\n  fieldset div {\n    display: flex;\n  }\n  fieldset div label {\n    margin-right: 10px;\n  }\n`\n\nconst FieldChoiceRadioInline = styled(FieldChoice.Radio)`\n  ${inline}\n`\n\nconst countryOptions = [\n  {\n    value: '0',\n    label: 'England',\n  },\n  {\n    value: '1',\n    label: 'Wales',\n  },\n  {\n    value: '2',\n    label: 'Scotland',\n  },\n  {\n    value: '3',\n    label: 'Northern Ireland',\n  },\n]\n\nconst countryOptionsSubset = countryOptions.slice(0, 2)\n\nexport default {\n  title: 'Form/Form Elements/FieldChoice',\n  component: FieldChoice,\n  args: {\n    options: countryOptions,\n    name: 'country',\n    component: FieldChoice,\n  },\n  argTypes: {\n    type: 'string',\n    initialValues: { control: 'object' },\n  },\n  parameters: {\n    docs: {\n      description: {\n        component: `The <b>FieldChoice</b> component renders a group of radio buttons or checkboxes by setting the prop type to either \"radio\" or \"checkbox\".\n                    The component sets the entire selected option to the form's state which is helpful on user journeys where the final page is a summary page\n                    and you need to extract a label (or any other field) from a previous selection to display to the user. Instead of using FieldChoice directly,\n                    favour <b>FieldChoice.Radio</b>, <b>FieldChoice.Checkbox</b>, or <b>FieldChoice.Boolean</b> where the type is set for you.`,\n      },\n    },\n  },\n}\n\nconst Template = ({ component: Component, initialValues, ...args }, { id }) => (\n  <Form\n    id={id}\n    analyticsFormName=\"formRadio\"\n    submissionTaskName=\"SUBMISSION\"\n    initialValues={initialValues}\n  >\n    {(state) => (\n      <>\n        <Component {...args} />\n        <pre>{JSON.stringify(state, null, 2)}</pre>\n      </>\n    )}\n  </Form>\n)\n\nconst generateFormCode = ({\n  comments = [],\n  componentName,\n  props: { options = countryOptions, ...restProps },\n}) => {\n  let formCode = ''\n\n  comments.forEach((comment) => {\n    formCode += `// ${comment}\\n`\n  })\n\n  formCode += `\n<Form\n  id={id}\n  analyticsFormName=\"formRadio\"\n  submissionTaskName=\"SUBMISSION\"\n>\n  {(state) => (\n    <>\n      <${componentName}`\n\n  Object.keys(restProps).forEach((key) => {\n    const value = restProps[key]\n    if (value) {\n      formCode += `\n        ${key}=\"${value}\"`\n    }\n  })\n\n  if (options.length) {\n    formCode += `\n        options: [`\n\n    options.forEach((option, index) => {\n      formCode += `\n          {\n            value: '${option.value}',\n            label: '${option.label}',\n          }${index < options.length - 1 ? ',' : ''}`\n    })\n\n    formCode += `\n        ]`\n  }\n\n  formCode += `\n      />\n      <pre>{JSON.stringify(state, null, 2)}</pre>\n    </>\n  )}\n</Form>\n`\n  return formCode\n}\n\nconst formatCountry = (country) =>\n  `{ value: '${country.value}', label: '${country.label}' }`\n\n// Radios\nexport const Radios = Template.bind({})\nRadios.args = { type: 'radio' }\nRadios.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLabel = Template.bind({})\nRadiosLabel.storyName = 'Radios and label'\nRadiosLabel.args = {\n  ...Radios.args,\n  label: 'Where do you live',\n}\nRadiosLabel.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLabelAndHint = Template.bind({})\nRadiosLabelAndHint.storyName = 'Radios with label and hint'\nRadiosLabelAndHint.args = {\n  ...Radios.args,\n  label: 'Where do you live',\n  hint: 'Select one option',\n}\nRadiosLabelAndHint.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n          hint: 'Select one option',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosLegend = Template.bind({})\nRadiosLegend.storyName = 'Radios and legend'\nRadiosLegend.args = {\n  ...Radios.args,\n  legend: <h1>H1 legend</h1>,\n}\nRadiosLegend.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          legend: '{<h1>H1 legend</h1>}',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosInline = Template.bind({})\nRadiosInline.storyName = 'Radios inline'\nRadiosInline.args = {\n  ...Radios.args,\n  component: FieldChoiceRadioInline,\n  options: countryOptionsSubset,\n}\nRadiosInline.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoiceRadioInline',\n        props: {\n          name: 'country',\n          options: countryOptionsSubset,\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosRequired = Template.bind({})\nRadiosRequired.storyName = 'Radios selection required'\nRadiosRequired.args = {\n  ...Radios.args,\n  required: 'Select at least one country',\n}\nRadiosRequired.parameters = {\n  docs: {\n    description: {\n      story: `Radio button group where a selection is required. Click \"Save\" to view an error. ${GDS_DOCS_RADIOS_URL}`,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        props: {\n          name: 'country',\n          required: 'Select at least one country',\n        },\n      }),\n    },\n  },\n}\n\nexport const RadiosPreselected = Template.bind({})\nRadiosPreselected.storyName = 'Radios preselected'\nconst country = countryOptions[0]\nRadiosPreselected.args = {\n  ...Radios.args,\n  initialValues: {\n    country,\n  },\n}\nRadiosPreselected.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_RADIOS_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Radio',\n        comments: [\n          'The form will automatically set the initial values providing the name',\n          \"field is set within the object that's returned by a transformer.\",\n          `For example: { country: ${formatCountry(country)} }`,\n        ],\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\n// Checkbox\nexport const Checkboxes = Template.bind({})\nCheckboxes.args = { type: 'checkboxes' }\nCheckboxes.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLabel = Template.bind({})\nCheckboxesLabel.storyName = 'Checkboxes and label'\nCheckboxesLabel.args = {\n  ...Checkboxes.args,\n  label: 'Where do you live',\n}\nCheckboxesLabel.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          label: 'Where do you live',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLabelAndHint = Template.bind({})\nCheckboxesLabelAndHint.storyName = 'Checkboxes label and hint'\nconst checkboxLabelAndHint = {\n  label: 'Where do you live',\n  hint: 'Select all that apply',\n}\nCheckboxesLabelAndHint.args = {\n  ...Checkboxes.args,\n  ...checkboxLabelAndHint,\n}\nCheckboxesLabelAndHint.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          ...checkboxLabelAndHint,\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesLegend = Template.bind({})\nCheckboxesLegend.storyName = 'Checkboxes and legend'\nCheckboxesLegend.args = {\n  ...Checkboxes.args,\n  legend: <h1>H1 legend</h1>,\n}\nCheckboxesLegend.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          legend: '{<h1>H1 legend</h1>}',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxesRequired = Template.bind({})\nCheckboxesRequired.storyName = 'Checkboxes selection required'\nCheckboxesRequired.args = {\n  ...Checkboxes.args,\n  required: 'Select at least one country',\n}\nCheckboxesRequired.parameters = {\n  docs: {\n    description: {\n      story: `Checkbox group where a selection is required. Click \"Save\" to view an error. ${GDS_DOCS_CHECKBOXES_URL}`,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        props: {\n          name: 'country',\n          required: 'Select at least one country',\n        },\n      }),\n    },\n  },\n}\n\nexport const CheckboxPreselected = Template.bind({})\nCheckboxPreselected.storyName = 'Checkboxes preselected'\nCheckboxPreselected.args = {\n  ...Checkboxes.args,\n  initialValues: {\n    country: [countryOptions[0], countryOptions[1]],\n  },\n}\nCheckboxPreselected.parameters = {\n  docs: {\n    description: {\n      story: GDS_DOCS_CHECKBOXES_URL,\n    },\n    source: {\n      code: generateFormCode({\n        componentName: 'FieldChoice.Checkbox',\n        comments: [\n          'The form will automatically set the initial values providing the name',\n          \"field is set within the object that's returned by a transformer.\",\n          `For example: { country: [${formatCountry(countryOptions[0])}, ${formatCountry(countryOptions[1])}] }`,\n        ],\n        props: {\n          name: 'country',\n        },\n      }),\n    },\n  },\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/iframe.html b/iframe.html
index 9c5d7930539..51798d70a79 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}};</script><script type="module">import './sb-preview/runtime.js';
 
       
-      import './runtime~main.75988f1c.iframe.bundle.js';
+      import './runtime~main.2895dfff.iframe.bundle.js';
       
       import './9892.f804e083.iframe.bundle.js';
       
-      import './main.92e43082.iframe.bundle.js';</script></body></html>
\ No newline at end of file
+      import './main.0da5e94c.iframe.bundle.js';</script></body></html>
\ No newline at end of file
diff --git a/index.json b/index.json
index 6fbab00b92b..fba5a390ee8 100644
--- a/index.json
+++ b/index.json
@@ -1 +1 @@
-{"v":5,"entries":{"archivepanel--docs":{"id":"archivepanel--docs","title":"ArchivePanel","name":"Docs","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"archivepanel--archived-item":{"type":"story","id":"archivepanel--archived-item","name":"Archived Item","title":"ArchivePanel","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","tags":["dev","test","autodocs"]},"archivepanel--automatically-archived-item":{"type":"story","id":"archivepanel--automatically-archived-item","name":"Automatically Archived Item","title":"ArchivePanel","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","tags":["dev","test","autodocs"]},"badge--docs":{"id":"badge--docs","title":"Badge","name":"Docs","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"badge--default":{"type":"story","id":"badge--default","name":"Default","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-border-colour":{"type":"story","id":"badge--custom-border-colour","name":"Custom Border Colour","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-text-colour":{"type":"story","id":"badge--custom-text-colour","name":"Custom Text Colour","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-font-size":{"type":"story","id":"badge--custom-font-size","name":"Custom Font Size","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--html-content":{"type":"story","id":"badge--html-content","name":"Html Content","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"buttonlink--docs":{"id":"buttonlink--docs","title":"ButtonLink","name":"Docs","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"buttonlink--default":{"type":"story","id":"buttonlink--default","name":"Default","title":"ButtonLink","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","tags":["dev","test","autodocs"]},"buttonlink--inline":{"type":"story","id":"buttonlink--inline","name":"Inline","title":"ButtonLink","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--docs":{"id":"filters-checkbox--docs","title":"Filters/Checkbox","name":"Docs","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"filters-checkbox--default":{"type":"story","id":"filters-checkbox--default","name":"Default","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--with-hint":{"type":"story","id":"filters-checkbox--with-hint","name":"With Hint","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--overflow-with-scroll":{"type":"story","id":"filters-checkbox--overflow-with-scroll","name":"Overflow With Scroll","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"chips--docs":{"id":"chips--docs","title":"Chips","name":"Docs","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"chips--default":{"type":"story","id":"chips--default","name":"Default","title":"Chips","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","tags":["dev","test","autodocs"]},"chips--clickable":{"type":"story","id":"chips--clickable","name":"Clickable","title":"Chips","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionheader--docs":{"id":"collection-collectionheader--docs","title":"Collection/CollectionHeader","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection-collectionheader--collection-header":{"type":"story","id":"collection-collectionheader--collection-header","name":"Collection Header","title":"Collection/CollectionHeader","importPath":"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx","tags":["dev","test","autodocs"]},"collection--docs":{"id":"collection--docs","title":"Collection","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection--capital-profile-item":{"type":"story","id":"collection--capital-profile-item","name":"Capital Profile Item","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection--interaction-item":{"type":"story","id":"collection--interaction-item","name":"Interaction Item","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection--item-without-link":{"type":"story","id":"collection--item-without-link","name":"Item Without Link","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionlist--docs":{"id":"collection-collectionlist--docs","title":"Collection/CollectionList","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection-collectionlist--collection-list":{"type":"story","id":"collection-collectionlist--collection-list","name":"Collection List","title":"Collection/CollectionList","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionlist--collection-list-with-0-items":{"type":"story","id":"collection-collectionlist--collection-list-with-0-items","name":"Collection List With 0 Items","title":"Collection/CollectionList","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","tags":["dev","test","autodocs"]},"contactinformation--docs":{"id":"contactinformation--docs","title":"ContactInformation","name":"Docs","importPath":"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"contactinformation--default":{"type":"story","id":"contactinformation--default","name":"Default","title":"ContactInformation","importPath":"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx","tags":["dev","test","autodocs"]},"datahubheader--docs":{"id":"datahubheader--docs","title":"DataHubHeader","name":"Docs","importPath":"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"datahubheader--data-hub-header-story":{"type":"story","id":"datahubheader--data-hub-header-story","name":"DataHubHeader","title":"DataHubHeader","importPath":"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx","tags":["dev","test","autodocs"]},"datefield--docs":{"id":"datefield--docs","title":"DateField","name":"Docs","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"datefield--basic":{"type":"story","id":"datefield--basic","name":"Basic","title":"DateField","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","tags":["dev","test","autodocs"]},"datefield--callback-on-change":{"type":"story","id":"datefield--callback-on-change","name":"Callback On Change","title":"DateField","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--docs":{"id":"downloaddataheader--docs","title":"DownloadDataHeader","name":"Docs","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"downloaddataheader--basic":{"type":"story","id":"downloaddataheader--basic","name":"Basic","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--one-item":{"type":"story","id":"downloaddataheader--one-item","name":"One Item","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--limited":{"type":"story","id":"downloaddataheader--limited","name":"Limited","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"entitysearch--docs":{"id":"entitysearch--docs","title":"EntitySearch","name":"Docs","importPath":"./src/client/components/EntityList/__stories__/EntityList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"entitysearch--entity-list-dn-b":{"type":"story","id":"entitysearch--entity-list-dn-b","name":"Entity List Dn B","title":"EntitySearch","importPath":"./src/client/components/EntityList/__stories__/EntityList.stories.jsx","tags":["dev","test","autodocs"]},"errorsummary--docs":{"id":"errorsummary--docs","title":"ErrorSummary","name":"Docs","importPath":"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"errorsummary--default":{"type":"story","id":"errorsummary--default","name":"Default","title":"ErrorSummary","importPath":"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx","tags":["dev","test","autodocs"]},"footer--docs":{"id":"footer--docs","title":"Footer","name":"Docs","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"footer--footer":{"type":"story","id":"footer--footer","name":"Footer","title":"Footer","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","componentPath":"./src/client/components/Footer/index.jsx","tags":["dev","test","autodocs"]},"footer--custom-links":{"type":"story","id":"footer--custom-links","name":"Custom Links","title":"Footer","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","componentPath":"./src/client/components/Footer/index.jsx","tags":["dev","test","autodocs"]},"form--docs":{"id":"form--docs","title":"Form","name":"Docs","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form--docs-placeholder":{"type":"story","id":"form--docs-placeholder","name":"Docs Placeholder","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--basics":{"type":"story","id":"form--basics","name":"Basics","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--resource-options-fields":{"type":"story","id":"form--resource-options-fields","name":"Resource Options Fields","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--rejected-initial-values":{"type":"story","id":"form--rejected-initial-values","name":"Rejected Initial Values","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--initial-values-passed-as-prop":{"type":"story","id":"form--initial-values-passed-as-prop","name":"Initial Values Passed As Prop","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--multi-step":{"type":"story","id":"form--multi-step","name":"Multi Step","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--soft-react-router-redirect":{"type":"story","id":"form--soft-react-router-redirect","name":"Soft React Router Redirect","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--docs":{"id":"investmentprojectlocalheader--docs","title":"InvestmentProjectLocalHeader","name":"Docs","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"investmentprojectlocalheader--status-ongoing":{"type":"story","id":"investmentprojectlocalheader--status-ongoing","name":"Status Ongoing","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-delayed":{"type":"story","id":"investmentprojectlocalheader--status-delayed","name":"Status Delayed","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-abandoned":{"type":"story","id":"investmentprojectlocalheader--status-abandoned","name":"Status Abandoned","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-lost":{"type":"story","id":"investmentprojectlocalheader--status-lost","name":"Status Lost","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-dormant":{"type":"story","id":"investmentprojectlocalheader--status-dormant","name":"Status Dormant","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-prospect":{"type":"story","id":"investmentprojectlocalheader--stage-prospect","name":"Stage Prospect","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-assign-pm":{"type":"story","id":"investmentprojectlocalheader--stage-assign-pm","name":"Stage Assign Pm","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-active":{"type":"story","id":"investmentprojectlocalheader--stage-active","name":"Stage Active","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-verify-win":{"type":"story","id":"investmentprojectlocalheader--stage-verify-win","name":"Stage Verify Win","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-won":{"type":"story","id":"investmentprojectlocalheader--stage-won","name":"Stage Won","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--project-valued-false":{"type":"story","id":"investmentprojectlocalheader--project-valued-false","name":"Project Valued False","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--project-valued-true":{"type":"story","id":"investmentprojectlocalheader--project-valued-true","name":"Project Valued True","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--created-by-no-dbt-team":{"type":"story","id":"investmentprojectlocalheader--created-by-no-dbt-team","name":"Created By No Dbt Team","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentreminders--docs":{"id":"investmentreminders--docs","title":"InvestmentReminders","name":"Docs","importPath":"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"investmentreminders--default":{"type":"story","id":"investmentreminders--default","name":"Default","title":"InvestmentReminders","importPath":"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx","tags":["dev","test","autodocs"]},"flash-messages--docs":{"id":"flash-messages--docs","title":"Flash Messages","name":"Docs","importPath":"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"flash-messages--default":{"type":"story","id":"flash-messages--default","name":"Default","title":"Flash Messages","importPath":"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx","tags":["dev","test","autodocs"]},"localheader--docs":{"id":"localheader--docs","title":"LocalHeader","name":"Docs","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"localheader--default":{"type":"story","id":"localheader--default","name":"Default","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-link":{"type":"story","id":"localheader--with-link","name":"With Link","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-superheading":{"type":"story","id":"localheader--with-superheading","name":"With Superheading","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-children":{"type":"story","id":"localheader--with-children","name":"With Children","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader-localheaderdetails--docs":{"id":"localheader-localheaderdetails--docs","title":"LocalHeader/LocalHeaderDetails","name":"Docs","importPath":"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"localheader-localheaderdetails--default":{"type":"story","id":"localheader-localheaderdetails--default","name":"Default","title":"LocalHeader/LocalHeaderDetails","importPath":"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx","tags":["dev","test","autodocs"]},"main--docs":{"id":"main--docs","title":"Main","name":"Docs","importPath":"./src/client/components/Main/__stories__/Main.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"main--default":{"type":"story","id":"main--default","name":"Default","title":"Main","importPath":"./src/client/components/Main/__stories__/Main.stories.jsx","tags":["dev","test","autodocs"]},"metadata--docs":{"id":"metadata--docs","title":"Metadata","name":"Docs","importPath":"./src/client/components/Metadata/__stories__/Metadata.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"metadata--default":{"type":"story","id":"metadata--default","name":"Default","title":"Metadata","importPath":"./src/client/components/Metadata/__stories__/Metadata.stories.jsx","tags":["dev","test","autodocs"]},"newwindowlink--docs":{"id":"newwindowlink--docs","title":"NewWindowLink","name":"Docs","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"newwindowlink--default":{"type":"story","id":"newwindowlink--default","name":"Default","title":"NewWindowLink","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","tags":["dev","test","autodocs"]},"newwindowlink--custom-aria-label":{"type":"story","id":"newwindowlink--custom-aria-label","name":"Custom Aria Label","title":"NewWindowLink","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","tags":["dev","test","autodocs"]},"notificationbadge--docs":{"id":"notificationbadge--docs","title":"NotificationBadge","name":"Docs","importPath":"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"notificationbadge--default":{"type":"story","id":"notificationbadge--default","name":"Default","title":"NotificationBadge","importPath":"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx","tags":["dev","test","autodocs"]},"pagination--docs":{"id":"pagination--docs","title":"Pagination","name":"Docs","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"pagination--default":{"type":"story","id":"pagination--default","name":"Default","title":"Pagination","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","tags":["dev","test","autodocs"]},"pagination--routed":{"type":"story","id":"pagination--routed","name":"Routed","title":"Pagination","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","tags":["dev","test","autodocs"]},"panel--docs":{"id":"panel--docs","title":"Panel","name":"Docs","importPath":"./src/client/components/Panel/__stories__/Panel.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"panel--default":{"type":"story","id":"panel--default","name":"Default","title":"Panel","importPath":"./src/client/components/Panel/__stories__/Panel.stories.jsx","tags":["dev","test","autodocs"]},"readmore--docs":{"id":"readmore--docs","title":"ReadMore","name":"Docs","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"readmore--default":{"type":"story","id":"readmore--default","name":"Default","title":"ReadMore","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","tags":["dev","test","autodocs"]},"readmore--custom":{"type":"story","id":"readmore--custom","name":"Custom","title":"ReadMore","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","tags":["dev","test","autodocs"]},"resource--docs":{"id":"resource--docs","title":"Resource","name":"Docs","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"resource--default":{"type":"story","id":"resource--default","name":"Default","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--custom-progress-and-error":{"type":"story","id":"resource--custom-progress-and-error","name":"Custom Progress And Error","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--inline":{"type":"story","id":"resource--inline","name":"Inline","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--metadata-form-fields":{"type":"story","id":"resource--metadata-form-fields","name":"Metadata Form Fields","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"routedinput--docs":{"id":"routedinput--docs","title":"RoutedInput","name":"Docs","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routedinput--text":{"type":"story","id":"routedinput--text","name":"Text","title":"RoutedInput","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","tags":["dev","test","autodocs"]},"routedinput--number":{"type":"story","id":"routedinput--number","name":"Number","title":"RoutedInput","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","tags":["dev","test","autodocs"]},"routedinputfield--docs":{"id":"routedinputfield--docs","title":"RoutedInputField","name":"Docs","importPath":"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routedinputfield--filter":{"type":"story","id":"routedinputfield--filter","name":"Filter","title":"RoutedInputField","importPath":"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx","tags":["dev","test","autodocs"]},"routednumericrangefield--docs":{"id":"routednumericrangefield--docs","title":"RoutedNumericRangeField","name":"Docs","importPath":"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routednumericrangefield--filter":{"type":"story","id":"routednumericrangefield--filter","name":"Filter","title":"RoutedNumericRangeField","importPath":"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx","tags":["dev","test","autodocs"]},"dismissablestatusmessage--docs":{"id":"dismissablestatusmessage--docs","title":"DismissableStatusMessage","name":"Docs","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"dismissablestatusmessage--default":{"type":"story","id":"dismissablestatusmessage--default","name":"Default","title":"DismissableStatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"dismissablestatusmessage--custom-colour":{"type":"story","id":"dismissablestatusmessage--custom-colour","name":"Custom Colour","title":"DismissableStatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"statusmessage--docs":{"id":"statusmessage--docs","title":"StatusMessage","name":"Docs","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"statusmessage--default":{"type":"story","id":"statusmessage--default","name":"Default","title":"StatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"statusmessage--custom-colour":{"type":"story","id":"statusmessage--custom-colour","name":"Custom Colour","title":"StatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"summarylist--docs":{"id":"summarylist--docs","title":"SummaryList","name":"Docs","importPath":"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"summarylist--default":{"type":"story","id":"summarylist--default","name":"Default","title":"SummaryList","importPath":"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx","tags":["dev","test","autodocs"]},"summarytable--docs":{"id":"summarytable--docs","title":"SummaryTable","name":"Docs","importPath":"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"summarytable--default":{"type":"story","id":"summarytable--default","name":"Default","title":"SummaryTable","importPath":"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--docs":{"id":"tabnav--docs","title":"TabNav","name":"Docs","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tabnav--docs-placeholder":{"type":"story","id":"tabnav--docs-placeholder","name":"Docs Placeholder","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--default":{"type":"story","id":"tabnav--default","name":"Default","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--routed":{"type":"story","id":"tabnav--routed","name":"Routed","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tag--docs":{"id":"tag--docs","title":"Tag","name":"Docs","importPath":"./src/client/components/Tag/__stories__/Tag.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tag--default":{"type":"story","id":"tag--default","name":"Default","title":"Tag","importPath":"./src/client/components/Tag/__stories__/Tag.stories.jsx","tags":["dev","test","autodocs"]},"task-error--docs":{"id":"task-error--docs","title":"Task/Error","name":"Docs","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task-error--dismissable":{"type":"story","id":"task-error--dismissable","name":"Dismissable","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-error--non-dismissable":{"type":"story","id":"task-error--non-dismissable","name":"Non Dismissable","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-error--inline":{"type":"story","id":"task-error--inline","name":"Inline","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--docs":{"id":"task-progressindicator--docs","title":"Task/ProgressIndicator","name":"Docs","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task-progressindicator--noun":{"type":"story","id":"task-progressindicator--noun","name":"Noun","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--message":{"type":"story","id":"task-progressindicator--message","name":"Message","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--inline":{"type":"story","id":"task-progressindicator--inline","name":"Inline","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task--docs":{"id":"task--docs","title":"Task","name":"Docs","importPath":"./src/client/components/Task/__stories__/Task.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task--cancelation":{"type":"story","id":"task--cancelation","name":"Cancelation","title":"Task","importPath":"./src/client/components/Task/__stories__/Task.stories.jsx","tags":["dev","test","autodocs"]},"timeline--docs":{"id":"timeline--docs","title":"Timeline","name":"Docs","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"timeline--default":{"type":"story","id":"timeline--default","name":"Default","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"timeline--first-stage":{"type":"story","id":"timeline--first-stage","name":"First Stage","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"timeline--complete":{"type":"story","id":"timeline--complete","name":"Complete","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--docs":{"id":"togglesection--docs","title":"ToggleSection","name":"Docs","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"togglesection--docs-placeholder":{"type":"story","id":"togglesection--docs-placeholder","name":"Docs Placeholder","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--default-single":{"type":"story","id":"togglesection--default-single","name":"Default Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--default-multiple":{"type":"story","id":"togglesection--default-multiple","name":"Default Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--no-highlight-single":{"type":"story","id":"togglesection--no-highlight-single","name":"No Highlight Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--no-highlight-multiple":{"type":"story","id":"togglesection--no-highlight-multiple","name":"No Highlight Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--dashboard-single-with-badge":{"type":"story","id":"togglesection--dashboard-single-with-badge","name":"Dashboard Single With Badge","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--dashboard-multiple":{"type":"story","id":"togglesection--dashboard-multiple","name":"Dashboard Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--filter-single":{"type":"story","id":"togglesection--filter-single","name":"Filter Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--filter-multiple":{"type":"story","id":"togglesection--filter-multiple","name":"Filter Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--docs":{"id":"typeahead--docs","title":"Typeahead","name":"Docs","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"typeahead--docs-placeholder":{"type":"story","id":"typeahead--docs-placeholder","name":"Docs Placeholder","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-standard-options":{"type":"story","id":"typeahead--single-standard-options","name":"Single Standard Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-pre-selected-option":{"type":"story","id":"typeahead--single-pre-selected-option","name":"Single Pre Selected Option","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-error":{"type":"story","id":"typeahead--single-error","name":"Single Error","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-async-options":{"type":"story","id":"typeahead--single-async-options","name":"Single Async Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-standard-options":{"type":"story","id":"typeahead--multi-standard-options","name":"Multi Standard Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-pre-selected-option":{"type":"story","id":"typeahead--multi-pre-selected-option","name":"Multi Pre Selected Option","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-pre-selected-multiple-options":{"type":"story","id":"typeahead--multi-pre-selected-multiple-options","name":"Multi Pre Selected Multiple Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-async-options":{"type":"story","id":"typeahead--multi-async-options","name":"Multi Async Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-async-pre-selected-options":{"type":"story","id":"typeahead--multi-async-pre-selected-options","name":"Multi Async Pre Selected Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--docs":{"id":"form-form-elements-fieldaddanother--docs","title":"Form/Form Elements/FieldAddAnother","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldaddanother--docs-placeholder":{"type":"story","id":"form-form-elements-fieldaddanother--docs-placeholder","name":"Docs Placeholder","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--edit":{"type":"story","id":"form-form-elements-fieldaddanother--edit","name":"Edit","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--new":{"type":"story","id":"form-form-elements-fieldaddanother--new","name":"New","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--multi-step":{"type":"story","id":"form-form-elements-fieldaddanother--multi-step","name":"Multi Step","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--docs":{"id":"form-form-elements-checkboxes--docs","title":"Form/Form Elements/Checkboxes","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-checkboxes--default":{"type":"story","id":"form-form-elements-checkboxes--default","name":"Default","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-hint":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-hint","name":"Checkboxes Hint","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-legend":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-legend","name":"Checkboxes Legend","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-exclusive":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-exclusive","name":"Checkboxes Exclusive","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--docs":{"id":"form-form-elements-fieldchoice--docs","title":"Form/Form Elements/FieldChoice","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldchoice--radios":{"type":"story","id":"form-form-elements-fieldchoice--radios","name":"Radios","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-label":{"type":"story","id":"form-form-elements-fieldchoice--radios-label","name":"Radios and label","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-label-and-hint":{"type":"story","id":"form-form-elements-fieldchoice--radios-label-and-hint","name":"Radios with label and hint","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-legend":{"type":"story","id":"form-form-elements-fieldchoice--radios-legend","name":"Radios and legend","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-inline":{"type":"story","id":"form-form-elements-fieldchoice--radios-inline","name":"Radios inline","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-required":{"type":"story","id":"form-form-elements-fieldchoice--radios-required","name":"Radios selection required","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-preselected":{"type":"story","id":"form-form-elements-fieldchoice--radios-preselected","name":"Radios preselected","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes","name":"Checkboxes","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-label":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-label","name":"Checkboxes and label","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-label-and-hint":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-label-and-hint","name":"Checkboxes label and hint","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-legend":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-legend","name":"Checkboxes and legend","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-required":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-required","name":"Checkboxes selection required","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkbox-preselected":{"type":"story","id":"form-form-elements-fieldchoice--checkbox-preselected","name":"Checkboxes preselected","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldcompaniestypeahead--docs":{"id":"form-form-elements-fieldcompaniestypeahead--docs","title":"Form/Form Elements/FieldCompaniesTypeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldcompaniestypeahead--default":{"type":"story","id":"form-form-elements-fieldcompaniestypeahead--default","name":"Default","title":"Form/Form Elements/FieldCompaniesTypeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-currency--docs":{"id":"form-form-elements-currency--docs","title":"Form/Form Elements/Currency","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-currency--field-currency-default-validation":{"type":"story","id":"form-form-elements-currency--field-currency-default-validation","name":"Field Currency Default Validation","title":"Form/Form Elements/Currency","importPath":"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--docs":{"id":"form-form-elements-date--docs","title":"Form/Form Elements/Date","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-date--field-date-default-validation":{"type":"story","id":"form-form-elements-date--field-date-default-validation","name":"Field Date Default Validation","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-custom-validation":{"type":"story","id":"form-form-elements-date--field-date-custom-validation","name":"Field Date Custom Validation","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-short-format":{"type":"story","id":"form-form-elements-date--field-date-short-format","name":"Field Date Short Format","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-reduced":{"type":"story","id":"form-form-elements-date--field-date-reduced","name":"Field Date Reduced","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--docs":{"id":"form-form-elements-help--docs","title":"Form/Form Elements/Help","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-help--field-help-with-footer-url":{"type":"story","id":"form-form-elements-help--field-help-with-footer-url","name":"Field Help With Footer Url","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--field-help-without-footer-url":{"type":"story","id":"form-form-elements-help--field-help-without-footer-url","name":"Field Help Without Footer Url","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--field-help-set-as-open":{"type":"story","id":"form-form-elements-help--field-help-set-as-open","name":"Field Help Set As Open","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--docs":{"id":"form-form-elements-input--docs","title":"Form/Form Elements/Input","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-input--text":{"type":"story","id":"form-form-elements-input--text","name":"Text","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--number":{"type":"story","id":"form-form-elements-input--number","name":"Number","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--text-reduced":{"type":"story","id":"form-form-elements-input--text-reduced","name":"Text Reduced","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldinvestmentprojecttypeahead--docs":{"id":"form-form-elements-fieldinvestmentprojecttypeahead--docs","title":"Form/Form Elements/FieldInvestmentProjectTypeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldinvestmentprojecttypeahead--default":{"type":"story","id":"form-form-elements-fieldinvestmentprojecttypeahead--default","name":"Default","title":"Form/Form Elements/FieldInvestmentProjectTypeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-select--docs":{"id":"form-form-elements-select--docs","title":"Form/Form Elements/Select","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-select--default":{"type":"story","id":"form-form-elements-select--default","name":"Default","title":"Form/Form Elements/Select","importPath":"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-typeahead--docs":{"id":"form-form-elements-typeahead--docs","title":"Form/Form Elements/Typeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-typeahead--default":{"type":"story","id":"form-form-elements-typeahead--default","name":"Default","title":"Form/Form Elements/Typeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldwrapper--docs":{"id":"form-form-elements-fieldwrapper--docs","title":"Form/Form Elements/FieldWrapper","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldwrapper--field-wrapper-label":{"type":"story","id":"form-form-elements-fieldwrapper--field-wrapper-label","name":"Field Wrapper Label","title":"Form/Form Elements/FieldWrapper","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldwrapper--field-wrapper-legend":{"type":"story","id":"form-form-elements-fieldwrapper--field-wrapper-legend","name":"Field Wrapper Legend","title":"Form/Form Elements/FieldWrapper","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","tags":["dev","test","autodocs"]}}}
+{"v":5,"entries":{"archivepanel--docs":{"id":"archivepanel--docs","title":"ArchivePanel","name":"Docs","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"archivepanel--archived-item":{"type":"story","id":"archivepanel--archived-item","name":"Archived Item","title":"ArchivePanel","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","tags":["dev","test","autodocs"]},"archivepanel--automatically-archived-item":{"type":"story","id":"archivepanel--automatically-archived-item","name":"Automatically Archived Item","title":"ArchivePanel","importPath":"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx","tags":["dev","test","autodocs"]},"badge--docs":{"id":"badge--docs","title":"Badge","name":"Docs","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"badge--default":{"type":"story","id":"badge--default","name":"Default","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-border-colour":{"type":"story","id":"badge--custom-border-colour","name":"Custom Border Colour","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-text-colour":{"type":"story","id":"badge--custom-text-colour","name":"Custom Text Colour","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--custom-font-size":{"type":"story","id":"badge--custom-font-size","name":"Custom Font Size","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"badge--html-content":{"type":"story","id":"badge--html-content","name":"Html Content","title":"Badge","importPath":"./src/client/components/Badge/__stories__/Badge.stories.jsx","tags":["dev","test","autodocs"]},"buttonlink--docs":{"id":"buttonlink--docs","title":"ButtonLink","name":"Docs","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"buttonlink--default":{"type":"story","id":"buttonlink--default","name":"Default","title":"ButtonLink","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","tags":["dev","test","autodocs"]},"buttonlink--inline":{"type":"story","id":"buttonlink--inline","name":"Inline","title":"ButtonLink","importPath":"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--docs":{"id":"filters-checkbox--docs","title":"Filters/Checkbox","name":"Docs","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"filters-checkbox--default":{"type":"story","id":"filters-checkbox--default","name":"Default","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--with-hint":{"type":"story","id":"filters-checkbox--with-hint","name":"With Hint","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"filters-checkbox--overflow-with-scroll":{"type":"story","id":"filters-checkbox--overflow-with-scroll","name":"Overflow With Scroll","title":"Filters/Checkbox","importPath":"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx","tags":["dev","test","autodocs"]},"chips--docs":{"id":"chips--docs","title":"Chips","name":"Docs","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"chips--default":{"type":"story","id":"chips--default","name":"Default","title":"Chips","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","tags":["dev","test","autodocs"]},"chips--clickable":{"type":"story","id":"chips--clickable","name":"Clickable","title":"Chips","importPath":"./src/client/components/Chip/__stories__/Chip.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionheader--docs":{"id":"collection-collectionheader--docs","title":"Collection/CollectionHeader","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection-collectionheader--collection-header":{"type":"story","id":"collection-collectionheader--collection-header","name":"Collection Header","title":"Collection/CollectionHeader","importPath":"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx","tags":["dev","test","autodocs"]},"collection--docs":{"id":"collection--docs","title":"Collection","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection--capital-profile-item":{"type":"story","id":"collection--capital-profile-item","name":"Capital Profile Item","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection--interaction-item":{"type":"story","id":"collection--interaction-item","name":"Interaction Item","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection--item-without-link":{"type":"story","id":"collection--item-without-link","name":"Item Without Link","title":"Collection","importPath":"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionlist--docs":{"id":"collection-collectionlist--docs","title":"Collection/CollectionList","name":"Docs","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"collection-collectionlist--collection-list":{"type":"story","id":"collection-collectionlist--collection-list","name":"Collection List","title":"Collection/CollectionList","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","tags":["dev","test","autodocs"]},"collection-collectionlist--collection-list-with-0-items":{"type":"story","id":"collection-collectionlist--collection-list-with-0-items","name":"Collection List With 0 Items","title":"Collection/CollectionList","importPath":"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx","tags":["dev","test","autodocs"]},"contactinformation--docs":{"id":"contactinformation--docs","title":"ContactInformation","name":"Docs","importPath":"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"contactinformation--default":{"type":"story","id":"contactinformation--default","name":"Default","title":"ContactInformation","importPath":"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx","tags":["dev","test","autodocs"]},"datahubheader--docs":{"id":"datahubheader--docs","title":"DataHubHeader","name":"Docs","importPath":"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"datahubheader--data-hub-header-story":{"type":"story","id":"datahubheader--data-hub-header-story","name":"DataHubHeader","title":"DataHubHeader","importPath":"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx","tags":["dev","test","autodocs"]},"datefield--docs":{"id":"datefield--docs","title":"DateField","name":"Docs","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"datefield--basic":{"type":"story","id":"datefield--basic","name":"Basic","title":"DateField","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","tags":["dev","test","autodocs"]},"datefield--callback-on-change":{"type":"story","id":"datefield--callback-on-change","name":"Callback On Change","title":"DateField","importPath":"./src/client/components/DateField/__stories__/DateField.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--docs":{"id":"downloaddataheader--docs","title":"DownloadDataHeader","name":"Docs","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"downloaddataheader--basic":{"type":"story","id":"downloaddataheader--basic","name":"Basic","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--one-item":{"type":"story","id":"downloaddataheader--one-item","name":"One Item","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"downloaddataheader--limited":{"type":"story","id":"downloaddataheader--limited","name":"Limited","title":"DownloadDataHeader","importPath":"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx","tags":["dev","test","autodocs"]},"entitysearch--docs":{"id":"entitysearch--docs","title":"EntitySearch","name":"Docs","importPath":"./src/client/components/EntityList/__stories__/EntityList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"entitysearch--entity-list-dn-b":{"type":"story","id":"entitysearch--entity-list-dn-b","name":"Entity List Dn B","title":"EntitySearch","importPath":"./src/client/components/EntityList/__stories__/EntityList.stories.jsx","tags":["dev","test","autodocs"]},"errorsummary--docs":{"id":"errorsummary--docs","title":"ErrorSummary","name":"Docs","importPath":"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"errorsummary--default":{"type":"story","id":"errorsummary--default","name":"Default","title":"ErrorSummary","importPath":"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx","tags":["dev","test","autodocs"]},"footer--docs":{"id":"footer--docs","title":"Footer","name":"Docs","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"footer--footer":{"type":"story","id":"footer--footer","name":"Footer","title":"Footer","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","componentPath":"./src/client/components/Footer/index.jsx","tags":["dev","test","autodocs"]},"footer--custom-links":{"type":"story","id":"footer--custom-links","name":"Custom Links","title":"Footer","importPath":"./src/client/components/Footer/__stories__/Footer.stories.jsx","componentPath":"./src/client/components/Footer/index.jsx","tags":["dev","test","autodocs"]},"form--docs":{"id":"form--docs","title":"Form","name":"Docs","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form--docs-placeholder":{"type":"story","id":"form--docs-placeholder","name":"Docs Placeholder","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--basics":{"type":"story","id":"form--basics","name":"Basics","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--resource-options-fields":{"type":"story","id":"form--resource-options-fields","name":"Resource Options Fields","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--rejected-initial-values":{"type":"story","id":"form--rejected-initial-values","name":"Rejected Initial Values","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--initial-values-passed-as-prop":{"type":"story","id":"form--initial-values-passed-as-prop","name":"Initial Values Passed As Prop","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--multi-step":{"type":"story","id":"form--multi-step","name":"Multi Step","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"form--soft-react-router-redirect":{"type":"story","id":"form--soft-react-router-redirect","name":"Soft React Router Redirect","title":"Form","importPath":"./src/client/components/Form/__stories__/Form.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--docs":{"id":"investmentprojectlocalheader--docs","title":"InvestmentProjectLocalHeader","name":"Docs","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"investmentprojectlocalheader--status-ongoing":{"type":"story","id":"investmentprojectlocalheader--status-ongoing","name":"Status Ongoing","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-delayed":{"type":"story","id":"investmentprojectlocalheader--status-delayed","name":"Status Delayed","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-abandoned":{"type":"story","id":"investmentprojectlocalheader--status-abandoned","name":"Status Abandoned","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-lost":{"type":"story","id":"investmentprojectlocalheader--status-lost","name":"Status Lost","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--status-dormant":{"type":"story","id":"investmentprojectlocalheader--status-dormant","name":"Status Dormant","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-prospect":{"type":"story","id":"investmentprojectlocalheader--stage-prospect","name":"Stage Prospect","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-assign-pm":{"type":"story","id":"investmentprojectlocalheader--stage-assign-pm","name":"Stage Assign Pm","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-active":{"type":"story","id":"investmentprojectlocalheader--stage-active","name":"Stage Active","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-verify-win":{"type":"story","id":"investmentprojectlocalheader--stage-verify-win","name":"Stage Verify Win","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--stage-won":{"type":"story","id":"investmentprojectlocalheader--stage-won","name":"Stage Won","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--project-valued-false":{"type":"story","id":"investmentprojectlocalheader--project-valued-false","name":"Project Valued False","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--project-valued-true":{"type":"story","id":"investmentprojectlocalheader--project-valued-true","name":"Project Valued True","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentprojectlocalheader--created-by-no-dbt-team":{"type":"story","id":"investmentprojectlocalheader--created-by-no-dbt-team","name":"Created By No Dbt Team","title":"InvestmentProjectLocalHeader","importPath":"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"investmentreminders--docs":{"id":"investmentreminders--docs","title":"InvestmentReminders","name":"Docs","importPath":"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"investmentreminders--default":{"type":"story","id":"investmentreminders--default","name":"Default","title":"InvestmentReminders","importPath":"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx","tags":["dev","test","autodocs"]},"flash-messages--docs":{"id":"flash-messages--docs","title":"Flash Messages","name":"Docs","importPath":"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"flash-messages--default":{"type":"story","id":"flash-messages--default","name":"Default","title":"Flash Messages","importPath":"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx","tags":["dev","test","autodocs"]},"localheader--docs":{"id":"localheader--docs","title":"LocalHeader","name":"Docs","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"localheader--default":{"type":"story","id":"localheader--default","name":"Default","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-link":{"type":"story","id":"localheader--with-link","name":"With Link","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-superheading":{"type":"story","id":"localheader--with-superheading","name":"With Superheading","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader--with-children":{"type":"story","id":"localheader--with-children","name":"With Children","title":"LocalHeader","importPath":"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx","tags":["dev","test","autodocs"]},"localheader-localheaderdetails--docs":{"id":"localheader-localheaderdetails--docs","title":"LocalHeader/LocalHeaderDetails","name":"Docs","importPath":"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"localheader-localheaderdetails--default":{"type":"story","id":"localheader-localheaderdetails--default","name":"Default","title":"LocalHeader/LocalHeaderDetails","importPath":"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx","tags":["dev","test","autodocs"]},"main--docs":{"id":"main--docs","title":"Main","name":"Docs","importPath":"./src/client/components/Main/__stories__/Main.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"main--default":{"type":"story","id":"main--default","name":"Default","title":"Main","importPath":"./src/client/components/Main/__stories__/Main.stories.jsx","tags":["dev","test","autodocs"]},"metadata--docs":{"id":"metadata--docs","title":"Metadata","name":"Docs","importPath":"./src/client/components/Metadata/__stories__/Metadata.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"metadata--default":{"type":"story","id":"metadata--default","name":"Default","title":"Metadata","importPath":"./src/client/components/Metadata/__stories__/Metadata.stories.jsx","tags":["dev","test","autodocs"]},"newwindowlink--docs":{"id":"newwindowlink--docs","title":"NewWindowLink","name":"Docs","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"newwindowlink--default":{"type":"story","id":"newwindowlink--default","name":"Default","title":"NewWindowLink","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","tags":["dev","test","autodocs"]},"newwindowlink--custom-aria-label":{"type":"story","id":"newwindowlink--custom-aria-label","name":"Custom Aria Label","title":"NewWindowLink","importPath":"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx","tags":["dev","test","autodocs"]},"notificationbadge--docs":{"id":"notificationbadge--docs","title":"NotificationBadge","name":"Docs","importPath":"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"notificationbadge--default":{"type":"story","id":"notificationbadge--default","name":"Default","title":"NotificationBadge","importPath":"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx","tags":["dev","test","autodocs"]},"pagination--docs":{"id":"pagination--docs","title":"Pagination","name":"Docs","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"pagination--default":{"type":"story","id":"pagination--default","name":"Default","title":"Pagination","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","tags":["dev","test","autodocs"]},"pagination--routed":{"type":"story","id":"pagination--routed","name":"Routed","title":"Pagination","importPath":"./src/client/components/Pagination/__stories__/Pagination.stories.jsx","tags":["dev","test","autodocs"]},"panel--docs":{"id":"panel--docs","title":"Panel","name":"Docs","importPath":"./src/client/components/Panel/__stories__/Panel.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"panel--default":{"type":"story","id":"panel--default","name":"Default","title":"Panel","importPath":"./src/client/components/Panel/__stories__/Panel.stories.jsx","tags":["dev","test","autodocs"]},"readmore--docs":{"id":"readmore--docs","title":"ReadMore","name":"Docs","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"readmore--default":{"type":"story","id":"readmore--default","name":"Default","title":"ReadMore","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","tags":["dev","test","autodocs"]},"readmore--custom":{"type":"story","id":"readmore--custom","name":"Custom","title":"ReadMore","importPath":"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx","tags":["dev","test","autodocs"]},"resource--docs":{"id":"resource--docs","title":"Resource","name":"Docs","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"resource--default":{"type":"story","id":"resource--default","name":"Default","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--custom-progress-and-error":{"type":"story","id":"resource--custom-progress-and-error","name":"Custom Progress And Error","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--inline":{"type":"story","id":"resource--inline","name":"Inline","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"resource--metadata-form-fields":{"type":"story","id":"resource--metadata-form-fields","name":"Metadata Form Fields","title":"Resource","importPath":"./src/client/components/Resource/__stories__/Resource.stories.jsx","componentPath":"./src/client/components/Resource/Resource.jsx","tags":["dev","test","autodocs"]},"routedinput--docs":{"id":"routedinput--docs","title":"RoutedInput","name":"Docs","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routedinput--text":{"type":"story","id":"routedinput--text","name":"Text","title":"RoutedInput","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","tags":["dev","test","autodocs"]},"routedinput--number":{"type":"story","id":"routedinput--number","name":"Number","title":"RoutedInput","importPath":"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx","tags":["dev","test","autodocs"]},"routedinputfield--docs":{"id":"routedinputfield--docs","title":"RoutedInputField","name":"Docs","importPath":"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routedinputfield--filter":{"type":"story","id":"routedinputfield--filter","name":"Filter","title":"RoutedInputField","importPath":"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx","tags":["dev","test","autodocs"]},"routednumericrangefield--docs":{"id":"routednumericrangefield--docs","title":"RoutedNumericRangeField","name":"Docs","importPath":"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"routednumericrangefield--filter":{"type":"story","id":"routednumericrangefield--filter","name":"Filter","title":"RoutedNumericRangeField","importPath":"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx","tags":["dev","test","autodocs"]},"dismissablestatusmessage--docs":{"id":"dismissablestatusmessage--docs","title":"DismissableStatusMessage","name":"Docs","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"dismissablestatusmessage--default":{"type":"story","id":"dismissablestatusmessage--default","name":"Default","title":"DismissableStatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"dismissablestatusmessage--custom-colour":{"type":"story","id":"dismissablestatusmessage--custom-colour","name":"Custom Colour","title":"DismissableStatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"statusmessage--docs":{"id":"statusmessage--docs","title":"StatusMessage","name":"Docs","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"statusmessage--default":{"type":"story","id":"statusmessage--default","name":"Default","title":"StatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"statusmessage--custom-colour":{"type":"story","id":"statusmessage--custom-colour","name":"Custom Colour","title":"StatusMessage","importPath":"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx","tags":["dev","test","autodocs"]},"summarylist--docs":{"id":"summarylist--docs","title":"SummaryList","name":"Docs","importPath":"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"summarylist--default":{"type":"story","id":"summarylist--default","name":"Default","title":"SummaryList","importPath":"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx","tags":["dev","test","autodocs"]},"summarytable--docs":{"id":"summarytable--docs","title":"SummaryTable","name":"Docs","importPath":"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"summarytable--default":{"type":"story","id":"summarytable--default","name":"Default","title":"SummaryTable","importPath":"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--docs":{"id":"tabnav--docs","title":"TabNav","name":"Docs","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tabnav--docs-placeholder":{"type":"story","id":"tabnav--docs-placeholder","name":"Docs Placeholder","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--default":{"type":"story","id":"tabnav--default","name":"Default","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tabnav--routed":{"type":"story","id":"tabnav--routed","name":"Routed","title":"TabNav","importPath":"./src/client/components/TabNav/__stories__/TabNav.stories.jsx","tags":["dev","test","autodocs"]},"tag--docs":{"id":"tag--docs","title":"Tag","name":"Docs","importPath":"./src/client/components/Tag/__stories__/Tag.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tag--default":{"type":"story","id":"tag--default","name":"Default","title":"Tag","importPath":"./src/client/components/Tag/__stories__/Tag.stories.jsx","tags":["dev","test","autodocs"]},"task-error--docs":{"id":"task-error--docs","title":"Task/Error","name":"Docs","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task-error--dismissable":{"type":"story","id":"task-error--dismissable","name":"Dismissable","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-error--non-dismissable":{"type":"story","id":"task-error--non-dismissable","name":"Non Dismissable","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-error--inline":{"type":"story","id":"task-error--inline","name":"Inline","title":"Task/Error","importPath":"./src/client/components/Task/__stories__/Error.stories.jsx","componentPath":"./src/client/components/Task/Error.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--docs":{"id":"task-progressindicator--docs","title":"Task/ProgressIndicator","name":"Docs","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task-progressindicator--noun":{"type":"story","id":"task-progressindicator--noun","name":"Noun","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--message":{"type":"story","id":"task-progressindicator--message","name":"Message","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task-progressindicator--inline":{"type":"story","id":"task-progressindicator--inline","name":"Inline","title":"Task/ProgressIndicator","importPath":"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx","componentPath":"./src/client/components/ProgressIndicator.jsx","tags":["dev","test","autodocs"]},"task--docs":{"id":"task--docs","title":"Task","name":"Docs","importPath":"./src/client/components/Task/__stories__/Task.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"task--cancelation":{"type":"story","id":"task--cancelation","name":"Cancelation","title":"Task","importPath":"./src/client/components/Task/__stories__/Task.stories.jsx","tags":["dev","test","autodocs"]},"timeline--docs":{"id":"timeline--docs","title":"Timeline","name":"Docs","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"timeline--default":{"type":"story","id":"timeline--default","name":"Default","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"timeline--first-stage":{"type":"story","id":"timeline--first-stage","name":"First Stage","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"timeline--complete":{"type":"story","id":"timeline--complete","name":"Complete","title":"Timeline","importPath":"./src/client/components/Timeline/__stories__/Timeline.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--docs":{"id":"togglesection--docs","title":"ToggleSection","name":"Docs","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"togglesection--docs-placeholder":{"type":"story","id":"togglesection--docs-placeholder","name":"Docs Placeholder","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--default-single":{"type":"story","id":"togglesection--default-single","name":"Default Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--default-multiple":{"type":"story","id":"togglesection--default-multiple","name":"Default Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--no-highlight-single":{"type":"story","id":"togglesection--no-highlight-single","name":"No Highlight Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--no-highlight-multiple":{"type":"story","id":"togglesection--no-highlight-multiple","name":"No Highlight Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--dashboard-single-with-badge":{"type":"story","id":"togglesection--dashboard-single-with-badge","name":"Dashboard Single With Badge","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--dashboard-multiple":{"type":"story","id":"togglesection--dashboard-multiple","name":"Dashboard Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--filter-single":{"type":"story","id":"togglesection--filter-single","name":"Filter Single","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"togglesection--filter-multiple":{"type":"story","id":"togglesection--filter-multiple","name":"Filter Multiple","title":"ToggleSection","importPath":"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--docs":{"id":"typeahead--docs","title":"Typeahead","name":"Docs","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"typeahead--docs-placeholder":{"type":"story","id":"typeahead--docs-placeholder","name":"Docs Placeholder","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-standard-options":{"type":"story","id":"typeahead--single-standard-options","name":"Single Standard Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-pre-selected-option":{"type":"story","id":"typeahead--single-pre-selected-option","name":"Single Pre Selected Option","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-error":{"type":"story","id":"typeahead--single-error","name":"Single Error","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--single-async-options":{"type":"story","id":"typeahead--single-async-options","name":"Single Async Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-standard-options":{"type":"story","id":"typeahead--multi-standard-options","name":"Multi Standard Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-pre-selected-option":{"type":"story","id":"typeahead--multi-pre-selected-option","name":"Multi Pre Selected Option","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-pre-selected-multiple-options":{"type":"story","id":"typeahead--multi-pre-selected-multiple-options","name":"Multi Pre Selected Multiple Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-async-options":{"type":"story","id":"typeahead--multi-async-options","name":"Multi Async Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"typeahead--multi-async-pre-selected-options":{"type":"story","id":"typeahead--multi-async-pre-selected-options","name":"Multi Async Pre Selected Options","title":"Typeahead","importPath":"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--docs":{"id":"form-form-elements-fieldaddanother--docs","title":"Form/Form Elements/FieldAddAnother","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldaddanother--docs-placeholder":{"type":"story","id":"form-form-elements-fieldaddanother--docs-placeholder","name":"Docs Placeholder","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--edit":{"type":"story","id":"form-form-elements-fieldaddanother--edit","name":"Edit","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--new":{"type":"story","id":"form-form-elements-fieldaddanother--new","name":"New","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldaddanother--multi-step":{"type":"story","id":"form-form-elements-fieldaddanother--multi-step","name":"Multi Step","title":"Form/Form Elements/FieldAddAnother","importPath":"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--docs":{"id":"form-form-elements-checkboxes--docs","title":"Form/Form Elements/Checkboxes","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-checkboxes--default":{"type":"story","id":"form-form-elements-checkboxes--default","name":"Default","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-hint":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-hint","name":"Checkboxes Hint","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-legend":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-legend","name":"Checkboxes Legend","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-checkboxes--checkboxes-exclusive":{"type":"story","id":"form-form-elements-checkboxes--checkboxes-exclusive","name":"Checkboxes Exclusive","title":"Form/Form Elements/Checkboxes","importPath":"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--docs":{"id":"form-form-elements-fieldchoice--docs","title":"Form/Form Elements/FieldChoice","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldchoice--radios":{"type":"story","id":"form-form-elements-fieldchoice--radios","name":"Radios","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-label":{"type":"story","id":"form-form-elements-fieldchoice--radios-label","name":"Radios and label","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-label-and-hint":{"type":"story","id":"form-form-elements-fieldchoice--radios-label-and-hint","name":"Radios with label and hint","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-legend":{"type":"story","id":"form-form-elements-fieldchoice--radios-legend","name":"Radios and legend","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-inline":{"type":"story","id":"form-form-elements-fieldchoice--radios-inline","name":"Radios inline","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-required":{"type":"story","id":"form-form-elements-fieldchoice--radios-required","name":"Radios selection required","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--radios-preselected":{"type":"story","id":"form-form-elements-fieldchoice--radios-preselected","name":"Radios preselected","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes","name":"Checkboxes","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-label":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-label","name":"Checkboxes and label","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-label-and-hint":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-label-and-hint","name":"Checkboxes label and hint","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-legend":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-legend","name":"Checkboxes and legend","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkboxes-required":{"type":"story","id":"form-form-elements-fieldchoice--checkboxes-required","name":"Checkboxes selection required","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--checkbox-preselected":{"type":"story","id":"form-form-elements-fieldchoice--checkbox-preselected","name":"Checkboxes preselected","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean":{"type":"story","id":"form-form-elements-fieldchoice--boolean","name":"Boolean radios","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean-label":{"type":"story","id":"form-form-elements-fieldchoice--boolean-label","name":"Boolean radios with label","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean-label-and-hint":{"type":"story","id":"form-form-elements-fieldchoice--boolean-label-and-hint","name":"Boolean radios with label and hint","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean-custom-option-labels":{"type":"story","id":"form-form-elements-fieldchoice--boolean-custom-option-labels","name":"Boolean radios with custom labels","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean-required":{"type":"story","id":"form-form-elements-fieldchoice--boolean-required","name":"Boolean radios selection required","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldchoice--boolean-inline":{"type":"story","id":"form-form-elements-fieldchoice--boolean-inline","name":"Boolean radios inline","title":"Form/Form Elements/FieldChoice","importPath":"./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx","componentPath":"./src/client/components/Form/elements/FieldChoice","tags":["dev","test","autodocs"]},"form-form-elements-fieldcompaniestypeahead--docs":{"id":"form-form-elements-fieldcompaniestypeahead--docs","title":"Form/Form Elements/FieldCompaniesTypeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldcompaniestypeahead--default":{"type":"story","id":"form-form-elements-fieldcompaniestypeahead--default","name":"Default","title":"Form/Form Elements/FieldCompaniesTypeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-currency--docs":{"id":"form-form-elements-currency--docs","title":"Form/Form Elements/Currency","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-currency--field-currency-default-validation":{"type":"story","id":"form-form-elements-currency--field-currency-default-validation","name":"Field Currency Default Validation","title":"Form/Form Elements/Currency","importPath":"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--docs":{"id":"form-form-elements-date--docs","title":"Form/Form Elements/Date","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-date--field-date-default-validation":{"type":"story","id":"form-form-elements-date--field-date-default-validation","name":"Field Date Default Validation","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-custom-validation":{"type":"story","id":"form-form-elements-date--field-date-custom-validation","name":"Field Date Custom Validation","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-short-format":{"type":"story","id":"form-form-elements-date--field-date-short-format","name":"Field Date Short Format","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-date--field-date-reduced":{"type":"story","id":"form-form-elements-date--field-date-reduced","name":"Field Date Reduced","title":"Form/Form Elements/Date","importPath":"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--docs":{"id":"form-form-elements-help--docs","title":"Form/Form Elements/Help","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-help--field-help-with-footer-url":{"type":"story","id":"form-form-elements-help--field-help-with-footer-url","name":"Field Help With Footer Url","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--field-help-without-footer-url":{"type":"story","id":"form-form-elements-help--field-help-without-footer-url","name":"Field Help Without Footer Url","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-help--field-help-set-as-open":{"type":"story","id":"form-form-elements-help--field-help-set-as-open","name":"Field Help Set As Open","title":"Form/Form Elements/Help","importPath":"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--docs":{"id":"form-form-elements-input--docs","title":"Form/Form Elements/Input","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-input--text":{"type":"story","id":"form-form-elements-input--text","name":"Text","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--number":{"type":"story","id":"form-form-elements-input--number","name":"Number","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-input--text-reduced":{"type":"story","id":"form-form-elements-input--text-reduced","name":"Text Reduced","title":"Form/Form Elements/Input","importPath":"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldinvestmentprojecttypeahead--docs":{"id":"form-form-elements-fieldinvestmentprojecttypeahead--docs","title":"Form/Form Elements/FieldInvestmentProjectTypeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldinvestmentprojecttypeahead--default":{"type":"story","id":"form-form-elements-fieldinvestmentprojecttypeahead--default","name":"Default","title":"Form/Form Elements/FieldInvestmentProjectTypeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-select--docs":{"id":"form-form-elements-select--docs","title":"Form/Form Elements/Select","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-select--default":{"type":"story","id":"form-form-elements-select--default","name":"Default","title":"Form/Form Elements/Select","importPath":"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-typeahead--docs":{"id":"form-form-elements-typeahead--docs","title":"Form/Form Elements/Typeahead","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-typeahead--default":{"type":"story","id":"form-form-elements-typeahead--default","name":"Default","title":"Form/Form Elements/Typeahead","importPath":"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldwrapper--docs":{"id":"form-form-elements-fieldwrapper--docs","title":"Form/Form Elements/FieldWrapper","name":"Docs","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"form-form-elements-fieldwrapper--field-wrapper-label":{"type":"story","id":"form-form-elements-fieldwrapper--field-wrapper-label","name":"Field Wrapper Label","title":"Form/Form Elements/FieldWrapper","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","tags":["dev","test","autodocs"]},"form-form-elements-fieldwrapper--field-wrapper-legend":{"type":"story","id":"form-form-elements-fieldwrapper--field-wrapper-legend","name":"Field Wrapper Legend","title":"Form/Form Elements/FieldWrapper","importPath":"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx","tags":["dev","test","autodocs"]}}}
diff --git a/main.0da5e94c.iframe.bundle.js b/main.0da5e94c.iframe.bundle.js
new file mode 100644
index 00000000000..0504a68f8b2
--- /dev/null
+++ b/main.0da5e94c.iframe.bundle.js
@@ -0,0 +1,2 @@
+/*! For license information please see main.0da5e94c.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;i<importers.length;i++){const moduleExports=await(x=()=>importers[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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function startTask(task,action){var result,id,name,payload,onSuccessDispatch,_id,_name;return _regeneratorRuntime().wrap((function startTask$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.yJ)(_objectSpread(_objectSpread({},action),{},{type:actions.p8B}));case 2:return _context.prev=2,_context.next=5,(0,redux_saga_effects_npm_proxy_esm.T1)(task,action.payload,action.id);case 5:if(result=_context.sent,id=action.id,name=action.name,payload=action.payload,!(onSuccessDispatch=action.onSuccessDispatch)){_context.next=10;break}return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:onSuccessDispatch,name,id,payload,result});case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.n_2,id,name});case 12:_context.next=23;break;case 14:if(_context.prev=14,_context.t0=_context.catch(2),!(_context.t0 instanceof Error)){_context.next=20;break}throw _context.t0;case 20:return _id=action.id,_name=action.name,_context.next=23,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.GAr,id:_id,name:_name,error:_context.t0,errorMessage:"string"==typeof _context.t0?_context.t0:_context.t0.message});case 23:case"end":return _context.stop()}}),_marked,null,[[2,14]])}function manageTask(task,action){var s;return _regeneratorRuntime().wrap((function manageTask$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(startTask,task,action);case 2:s=_context2.sent;case 3:return _context2.next=6,(0,redux_saga_effects_npm_proxy_esm.s)((function(_ref){var type=_ref.type,name=_ref.name,id=_ref.id;return type===actions.KQv&&name===action.name&&id===action.id}));case 6:return _context2.next=8,(0,redux_saga_effects_npm_proxy_esm.ZT)(s);case 8:_context2.next=3;break;case 10:case"end":return _context2.stop()}}),_marked2)}function subscribeToDismiss(){var _loop;return _regeneratorRuntime().wrap((function subscribeToDismiss$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:_loop=_regeneratorRuntime().mark((function _loop(){var _yield$take,id,name;return _regeneratorRuntime().wrap((function _loop$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=2,(0,redux_saga_effects_npm_proxy_esm.s)(actions.RnU);case 2:return _yield$take=_context3.sent,id=_yield$take.id,name=_yield$take.name,_context3.next=7,(0,redux_saga_effects_npm_proxy_esm.Lt)((function(state){return"error"===(0,lodash.get)(state,["tasks",name,id,"status"])}));case 7:if(!_context3.sent){_context3.next=11;break}return _context3.next=11,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.n_2,id,name});case 11:case"end":return _context3.stop()}}),_loop)}));case 1:return _context4.delegateYield(_loop(),"t0",3);case 3:_context4.next=1;break;case 5:case"end":return _context4.stop()}}),_marked3)}function subscribeToStart(registry){var _loop2;return _regeneratorRuntime().wrap((function subscribeToStart$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:_loop2=_regeneratorRuntime().mark((function _loop2(){var action,name,id,task;return _regeneratorRuntime().wrap((function _loop2$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.next=2,(0,redux_saga_effects_npm_proxy_esm.s)(actions.EGH);case 2:if(action=_context5.sent,name=action.name,id=action.id,task=registry[action.name]){_context5.next=7;break}throw Error('Task "'.concat(name,'" is not registered!'));case 7:return _context5.next=9,(0,redux_saga_effects_npm_proxy_esm.Lt)((function(state){return(0,lodash.get)(state,["tasks",name,id,"status"])}));case 9:if("progress"!==_context5.sent){_context5.next=12;break}return _context5.abrupt("return",1);case 12:return _context5.next=14,(0,redux_saga_effects_npm_proxy_esm.cH)(manageTask,task,action);case 14:case"end":return _context5.stop()}}),_loop2)}));case 1:return _context6.delegateYield(_loop2(),"t0",3);case 3:if(!_context6.t0){_context6.next=5;break}return _context6.abrupt("continue",1);case 5:_context6.next=1;break;case 7:case"end":return _context6.stop()}}),_marked4)}const saga=function(registry){return _regeneratorRuntime().mark((function _callee(){return _regeneratorRuntime().wrap((function _callee$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.next=2,(0,redux_saga_effects_npm_proxy_esm.cH)(subscribeToStart,registry);case 2:return _context7.next=4,(0,redux_saga_effects_npm_proxy_esm.cH)(subscribeToDismiss);case 4:case"end":return _context7.stop()}}),_callee)}))};function saga_typeof(o){return 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},saga_typeof(o)}function saga_regeneratorRuntime(){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"==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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?saga_ownKeys(Object(t),!0).forEach((function(r){saga_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):saga_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function saga_defineProperty(e,r,t){return(r=function saga_toPropertyKey(t){var i=function saga_toPrimitive(t,r){if("object"!=saga_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=saga_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==saga_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _callee(){var _yield$take,category,action,label,extra,event,data;return saga_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.bVo);case 3:_yield$take=_context.sent,category=_yield$take.category,action=_yield$take.action,label=_yield$take.label,extra=_yield$take.extra,event=_yield$take.event,window.dataLayer=window.dataLayer||[],data=(0,lodash.omitBy)(saga_objectSpread(saga_objectSpread({},extra),{},{event,category,action,label}),lodash.isUndefined),window.dataLayer.push(data),_context.next=0;break;case 14:case"end":return _context.stop()}}),saga_marked)}function HardRedirect_saga_typeof(o){return HardRedirect_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},HardRedirect_saga_typeof(o)}function HardRedirect_saga_regeneratorRuntime(){HardRedirect_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"==HardRedirect_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(HardRedirect_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(sagas_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<a;e++)n[e]=r[e];return n}function writeFlashMessages(){var _yield$take,messageType,message;return sagas_regeneratorRuntime().wrap((function writeFlashMessages$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.$rh);case 3:_yield$take=_context.sent,messageType=_yield$take.messageType,message=_yield$take.message,Array.isArray(message)?addMessageWithBody.apply(void 0,[messageType].concat(_toConsumableArray(message))):addMessage(messageType,message),_context.next=0;break;case 9:case"end":return _context.stop()}}),sagas_marked)}function readFlashMesages(){var flashMessages;return sagas_regeneratorRuntime().wrap((function readFlashMesages$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.vl8);case 3:if(flashMessages=getMessages(),!Object.keys(flashMessages).length){_context2.next=8;break}return _context2.next=7,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.Ijb,flashMessages});case 7:clearMessages();case 8:_context2.next=0;break;case 10:case"end":return _context2.stop()}}),sagas_marked2)}function writeAnnouncementLinkToLocalStorage(){var _yield$take2,announcementLink;return sagas_regeneratorRuntime().wrap((function writeAnnouncementLinkToLocalStorage$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.Edz);case 3:if(_yield$take2=_context3.sent,!(announcementLink=_yield$take2.announcementLink)){_context3.next=9;break}return writeToLocalStorage(announcementLink),_context3.next=9,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.F8v,announcementLink});case 9:_context3.next=0;break;case 11:case"end":return _context3.stop()}}),sagas_marked3)}function readAnnouncementLinkFromLocalStorage(){var announcementLink;return sagas_regeneratorRuntime().wrap((function readAnnouncementLinkFromLocalStorage$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:return _context4.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.krh);case 3:if(!(announcementLink=readFromLocalStorage())){_context4.next=7;break}return _context4.next=7,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.F8v,announcementLink});case 7:_context4.next=0;break;case 9:case"end":return _context4.stop()}}),sagas_marked4)}__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var saveToSession=function saveToSession(payload){var state=(0,lodash.assign)(getFromSession(),payload);window.sessionStorage.setItem("myInvestmentProjects",JSON.stringify(state))},getFromSession=function getFromSession(){try{return JSON.parse(window.sessionStorage.getItem("myInvestmentProjects"))||{}}catch(_unused){return{}}};function MyInvestmentProjects_sagas_typeof(o){return MyInvestmentProjects_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},MyInvestmentProjects_sagas_typeof(o)}var _excluded=["type"];function MyInvestmentProjects_sagas_regeneratorRuntime(){MyInvestmentProjects_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"==MyInvestmentProjects_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(MyInvestmentProjects_sagas_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var MyInvestmentProjects_sagas_marked=MyInvestmentProjects_sagas_regeneratorRuntime().mark(writeMyInvestmentsToSession),MyInvestmentProjects_sagas_marked2=MyInvestmentProjects_sagas_regeneratorRuntime().mark(readMyInvestmentsFromSession);function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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 CookiePage_saga_typeof(o){return CookiePage_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},CookiePage_saga_typeof(o)}function CookiePage_saga_regeneratorRuntime(){CookiePage_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"==CookiePage_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(CookiePage_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var CookiePage_saga_marked=CookiePage_saga_regeneratorRuntime().mark(cookiePreferenceChangeSaga),storageChannel=(0,redux_saga_core_npm_proxy_esm.Od)((function(emit){return window.addEventListener("storage",emit),function(){return window.removeEventListener(emit)}}));function cookiePreferenceChangeSaga(){var _yield$take,key,newValue;return CookiePage_saga_regeneratorRuntime().wrap((function cookiePreferenceChangeSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(storageChannel);case 3:if(_yield$take=_context.sent,key=_yield$take.key,newValue=_yield$take.newValue,"cookie-consent"!==key){_context.next=9;break}return _context.next=9,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:"RESOURCE",name:"load cookie preference",id:"cookieConsent",result:newValue});case 9:_context.next=0;break;case 11:case"end":return _context.stop()}}),CookiePage_saga_marked)}function root_saga_typeof(o){return root_saga_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},root_saga_typeof(o)}function root_saga_regeneratorRuntime(){root_saga_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==root_saga_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(root_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducer_ownKeys(Object(t),!0).forEach((function(r){reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducer_defineProperty(e,r,t){return(r=function reducer_toPropertyKey(t){var i=function reducer_toPrimitive(t,r){if("object"!=reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function reducer_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function reducer_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<s.length;r++)o=s[r],t.includes(o)||{}.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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyLists_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyLists_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyLists_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLists_reducer_defineProperty(e,r,t){return(r=function CompanyLists_reducer_toPropertyKey(t){var i=function CompanyLists_reducer_toPrimitive(t,r){if("object"!=CompanyLists_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLists_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLists_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 initialState={orderBy:__webpack_require__("./src/client/components/CompanyLists/Filters.jsx").Ot};var client_state=__webpack_require__("./src/apps/companies/apps/referrals/details/client/state.js");function client_reducer_typeof(o){return client_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},client_reducer_typeof(o)}function client_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 client_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?client_reducer_ownKeys(Object(t),!0).forEach((function(r){client_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):client_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function client_reducer_defineProperty(e,r,t){return(r=function client_reducer_toPropertyKey(t){var i=function client_reducer_toPrimitive(t,r){if("object"!=client_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=client_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==client_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ExportHistory_reducer_typeof(o){return ExportHistory_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},ExportHistory_reducer_typeof(o)}function ExportHistory_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 ExportHistory_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportHistory_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportHistory_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportHistory_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportHistory_reducer_defineProperty(e,r,t){return(r=function ExportHistory_reducer_toPropertyKey(t){var i=function ExportHistory_reducer_toPrimitive(t,r){if("object"!=ExportHistory_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportHistory_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportHistory_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 reducer_initialState={count:0,results:[],activePage:1};var TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx"),ReferralList=__webpack_require__("./src/client/components/ReferralList/index.jsx"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx"),Typeahead=__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx"),FieldAddAnother=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx");__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");function CollectionList_reducer_typeof(o){return 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},CollectionList_reducer_typeof(o)}function 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 CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CollectionList_reducer_defineProperty(e,r,t){return(r=function CollectionList_reducer_toPropertyKey(t){var i=function CollectionList_reducer_toPrimitive(t,r){if("object"!=CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CollectionList_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 CollectionList_reducer_initialState={results:[],isComplete:!1,count:0,activePage:1};function Opportunities_reducer_typeof(o){return Opportunities_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},Opportunities_reducer_typeof(o)}function Opportunities_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 Opportunities_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Opportunities_reducer_ownKeys(Object(t),!0).forEach((function(r){Opportunities_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Opportunities_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Opportunities_reducer_defineProperty(e,r,t){return(r=function Opportunities_reducer_toPropertyKey(t){var i=function Opportunities_reducer_toPrimitive(t,r){if("object"!=Opportunities_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Opportunities_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Opportunities_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 Opportunities_reducer_initialState={incompleteDetailsFields:0,incompleteRequirementsFields:0,opportunity:{isEditingDetails:!1,isEditingRequirements:!1,detailsFields:{name:"",description:"",ukRegions:[],promoters:[],requiredChecksConducted:[],requiredChecksConductedOn:0,requiredChecksConductedBy:{},leadRelationshipManager:{},otherDitContacts:[],assetClasses:[],valueType:[],opportunityValue:{label:"Opportunity value",value:0},constructionRisks:[]},requirementsFields:{totalInvestmentSought:0,currentInvestmentSecured:0,investmentTypes:[],returnRate:{},timeHorizons:[]},status:[]},metadata:{investmentTypes:[],returnRates:[],timeScales:[]}};function CompanyBusinessDetails_reducer_typeof(o){return CompanyBusinessDetails_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},CompanyBusinessDetails_reducer_typeof(o)}function CompanyBusinessDetails_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 CompanyBusinessDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyBusinessDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyBusinessDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyBusinessDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyBusinessDetails_reducer_defineProperty(e,r,t){return(r=function CompanyBusinessDetails_reducer_toPropertyKey(t){var i=function CompanyBusinessDetails_reducer_toPrimitive(t,r){if("object"!=CompanyBusinessDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyBusinessDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyBusinessDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Profiles_reducer_typeof(o){return Profiles_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},Profiles_reducer_typeof(o)}function Profiles_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 Profiles_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Profiles_reducer_ownKeys(Object(t),!0).forEach((function(r){Profiles_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Profiles_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Profiles_reducer_defineProperty(e,r,t){return(r=function Profiles_reducer_toPropertyKey(t){var i=function Profiles_reducer_toPrimitive(t,r){if("object"!=Profiles_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Profiles_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Profiles_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 Profiles_reducer_initialState={page:1,results:[],isComplete:!1,filterOptions:{countries:[],assetClassesOfInterest:[],dealTicketSize:[],investmentTypes:[],minimumReturnRate:[],timeHorizon:[],restrictions:[],constructionRisk:[],minimumEquityPercentage:[],desiredDealRole:[]}};__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/client/utils/date.js");var utils=__webpack_require__("./src/client/utils/index.js"),Projects_constants=(__webpack_require__("./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js"),__webpack_require__("./src/client/filters.js"),__webpack_require__("./src/client/modules/Investments/Projects/constants.js")),common_constants=(__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),__webpack_require__("./src/common/constants.js")),lib_urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(lib_urls);__webpack_require__("./src/apps/companies/constants.js"),__webpack_require__("./src/client/components/Tag/index.jsx");function Projects_reducer_typeof(o){return Projects_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},Projects_reducer_typeof(o)}function Projects_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 Projects_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Projects_reducer_ownKeys(Object(t),!0).forEach((function(r){Projects_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Projects_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Projects_reducer_defineProperty(e,r,t){return(r=function Projects_reducer_toPropertyKey(t){var i=function Projects_reducer_toPrimitive(t,r){if("object"!=Projects_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Projects_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Projects_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 Projects_reducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1,completeStatus:""};const Projects_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?investmentProjectReducer_ownKeys(Object(t),!0).forEach((function(r){investmentProjectReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):investmentProjectReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function investmentProjectReducer_defineProperty(e,r,t){return(r=function investmentProjectReducer_toPropertyKey(t){var i=function investmentProjectReducer_toPrimitive(t,r){if("object"!=investmentProjectReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=investmentProjectReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==investmentProjectReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var investmentProjectReducer_initialState={project:void 0};__webpack_require__("./node_modules/core-js/modules/es.array.sort.js");function TableCards_reducer_typeof(o){return TableCards_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},TableCards_reducer_typeof(o)}function TableCards_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 TableCards_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TableCards_reducer_ownKeys(Object(t),!0).forEach((function(r){TableCards_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TableCards_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TableCards_reducer_defineProperty(e,r,t){return(r=function TableCards_reducer_toPropertyKey(t){var i=function TableCards_reducer_toPrimitive(t,r){if("object"!=TableCards_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TableCards_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TableCards_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 TableCards_reducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1};function exportStatusReducer_typeof(o){return exportStatusReducer_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},exportStatusReducer_typeof(o)}function exportStatusReducer_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 exportStatusReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?exportStatusReducer_ownKeys(Object(t),!0).forEach((function(r){exportStatusReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):exportStatusReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function exportStatusReducer_defineProperty(e,r,t){return(r=function exportStatusReducer_toPropertyKey(t){var i=function exportStatusReducer_toPrimitive(t,r){if("object"!=exportStatusReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=exportStatusReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==exportStatusReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var exportStatusReducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1};function recentReducer_typeof(o){return recentReducer_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},recentReducer_typeof(o)}function recentReducer_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 recentReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?recentReducer_ownKeys(Object(t),!0).forEach((function(r){recentReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):recentReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function recentReducer_defineProperty(e,r,t){return(r=function recentReducer_toPropertyKey(t){var i=function recentReducer_toPrimitive(t,r){if("object"!=recentReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=recentReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==recentReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var defaultState={total:0,page:1,result:[],isComplete:!1};function upcomingReducer_typeof(o){return upcomingReducer_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},upcomingReducer_typeof(o)}function upcomingReducer_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 upcomingReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?upcomingReducer_ownKeys(Object(t),!0).forEach((function(r){upcomingReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):upcomingReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function upcomingReducer_defineProperty(e,r,t){return(r=function upcomingReducer_toPropertyKey(t){var i=function upcomingReducer_toPrimitive(t,r){if("object"!=upcomingReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=upcomingReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==upcomingReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var upcomingReducer_defaultState={total:0,page:1,result:[],isComplete:!1};var CollectionList_state=__webpack_require__("./src/client/modules/Companies/CollectionList/state.js");function Companies_CollectionList_reducer_typeof(o){return Companies_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},Companies_CollectionList_reducer_typeof(o)}function Companies_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 Companies_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Companies_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Companies_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Companies_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Companies_CollectionList_reducer_defineProperty(e,r,t){return(r=function Companies_CollectionList_reducer_toPropertyKey(t){var i=function Companies_CollectionList_reducer_toPrimitive(t,r){if("object"!=Companies_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Companies_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Companies_CollectionList_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 Companies_CollectionList_reducer_initialState={results:[],selectedLeadItaOrGlobalAccountManagers:[],advisers:[],metadata:{},isComplete:!1};var PersonalisedDashboard_state=__webpack_require__("./src/client/components/PersonalisedDashboard/state.js");function PersonalisedDashboard_reducer_typeof(o){return PersonalisedDashboard_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},PersonalisedDashboard_reducer_typeof(o)}function PersonalisedDashboard_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 PersonalisedDashboard_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?PersonalisedDashboard_reducer_ownKeys(Object(t),!0).forEach((function(r){PersonalisedDashboard_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):PersonalisedDashboard_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function PersonalisedDashboard_reducer_defineProperty(e,r,t){return(r=function PersonalisedDashboard_reducer_toPropertyKey(t){var i=function PersonalisedDashboard_reducer_toPrimitive(t,r){if("object"!=PersonalisedDashboard_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=PersonalisedDashboard_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==PersonalisedDashboard_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 PersonalisedDashboard_reducer_initialState={hasInvestmentProjects:!1,summary:[],dataHubFeed:[],hasTasks:!1};const PersonalisedDashboard_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?MyInvestmentProjects_reducer_ownKeys(Object(t),!0).forEach((function(r){MyInvestmentProjects_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):MyInvestmentProjects_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function MyInvestmentProjects_reducer_defineProperty(e,r,t){return(r=function MyInvestmentProjects_reducer_toPropertyKey(t){var i=function MyInvestmentProjects_reducer_toPrimitive(t,r){if("object"!=MyInvestmentProjects_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=MyInvestmentProjects_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==MyInvestmentProjects_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 MyInvestmentProjects_reducer_initialState={count:0,results:[],summary:[],itemsPerPage:10,page:1,sort:"created_on:desc",stage:"all-stages",status:"all-statuses",landDate:"all-land-dates",showDetails:!1};function create_reducer_typeof(o){return create_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},create_reducer_typeof(o)}function create_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 create_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?create_reducer_ownKeys(Object(t),!0).forEach((function(r){create_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):create_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function create_reducer_defineProperty(e,r,t){return(r=function create_reducer_toPropertyKey(t){var i=function create_reducer_toPrimitive(t,r){if("object"!=create_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=create_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==create_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 create_reducer_initialState={results:null,searchTerm:"",companyInvestmentCount:0};const create_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Contacts_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Contacts_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Contacts_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Contacts_CollectionList_reducer_defineProperty(e,r,t){return(r=function Contacts_CollectionList_reducer_toPropertyKey(t){var i=function Contacts_CollectionList_reducer_toPrimitive(t,r){if("object"!=Contacts_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Contacts_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Contacts_CollectionList_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 Contacts_CollectionList_reducer_initialState={results:[],metadata:{},isComplete:!1};const Contacts_CollectionList_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Interactions_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Interactions_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Interactions_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Interactions_CollectionList_reducer_defineProperty(e,r,t){return(r=function Interactions_CollectionList_reducer_toPropertyKey(t){var i=function Interactions_CollectionList_reducer_toPrimitive(t,r){if("object"!=Interactions_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Interactions_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Interactions_CollectionList_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 Interactions_CollectionList_reducer_initialState={results:[],metadata:{},selectedAdvisers:[],selectedTeams:[],selectedCompanies:[],isComplete:!1};__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");function EventDetails_reducer_typeof(o){return EventDetails_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},EventDetails_reducer_typeof(o)}function EventDetails_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 EventDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){EventDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventDetails_reducer_defineProperty(e,r,t){return(r=function EventDetails_reducer_toPropertyKey(t){var i=function EventDetails_reducer_toPrimitive(t,r){if("object"!=EventDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function EventAventriDetails_reducer_typeof(o){return EventAventriDetails_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},EventAventriDetails_reducer_typeof(o)}function EventAventriDetails_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 EventAventriDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventAventriDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){EventAventriDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventAventriDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventAventriDetails_reducer_defineProperty(e,r,t){return(r=function EventAventriDetails_reducer_toPropertyKey(t){var i=function EventAventriDetails_reducer_toPrimitive(t,r){if("object"!=EventAventriDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventAventriDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventAventriDetails_reducer_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__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/esnext.string.replace-all.js");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_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 constants_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?constants_ownKeys(Object(t),!0).forEach((function(r){constants_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):constants_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var EVENT_ATTENDEES_STATUS_waitingList="Waiting list",EVENT_ATTENDEES_STATUS_didNotAttend="Did not attend",EVENT_ATTENDEES_STATUS_attended="Attended",EVENT_ATTENDEES_STATUS_cancelled="Cancelled",EVENT_AVENTRI_ATTENDEES_STATUS_attended="Attended",EVENT_AVENTRI_ATTENDEES_STATUS_cancelled="Cancelled",EVENT_AVENTRI_ATTENDEES_STATUS_noShow="No Show",EVENT_AVENTRI_ATTENDEES_STATUS_waitlist="Waitlist",createMappingObject=function createMappingObject(status,aventriStatuses){return constants_defineProperty({},status,{statuses:aventriStatuses,urlSlug:status.replaceAll(" ","-").toLowerCase()})};[createMappingObject("Registered",["Activated","Confirmed"]),createMappingObject(EVENT_ATTENDEES_STATUS_cancelled,[EVENT_AVENTRI_ATTENDEES_STATUS_cancelled]),createMappingObject(EVENT_ATTENDEES_STATUS_attended,[EVENT_AVENTRI_ATTENDEES_STATUS_attended]),createMappingObject(EVENT_ATTENDEES_STATUS_didNotAttend,[EVENT_AVENTRI_ATTENDEES_STATUS_noShow]),createMappingObject(EVENT_ATTENDEES_STATUS_waitingList,[EVENT_AVENTRI_ATTENDEES_STATUS_waitlist])].reduce((function(a,v){return constants_objectSpread(constants_objectSpread({},a),v)}),{});function EventAventriRegistrationStatus_reducer_typeof(o){return EventAventriRegistrationStatus_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},EventAventriRegistrationStatus_reducer_typeof(o)}function EventAventriRegistrationStatus_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 EventAventriRegistrationStatus_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventAventriRegistrationStatus_reducer_ownKeys(Object(t),!0).forEach((function(r){EventAventriRegistrationStatus_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventAventriRegistrationStatus_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventAventriRegistrationStatus_reducer_defineProperty(e,r,t){return(r=function EventAventriRegistrationStatus_reducer_toPropertyKey(t){var i=function EventAventriRegistrationStatus_reducer_toPrimitive(t,r){if("object"!=EventAventriRegistrationStatus_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventAventriRegistrationStatus_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventAventriRegistrationStatus_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ESSInteractionDetails_reducer_typeof(o){return ESSInteractionDetails_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},ESSInteractionDetails_reducer_typeof(o)}function ESSInteractionDetails_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 ESSInteractionDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ESSInteractionDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){ESSInteractionDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ESSInteractionDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ESSInteractionDetails_reducer_defineProperty(e,r,t){return(r=function ESSInteractionDetails_reducer_toPropertyKey(t){var i=function ESSInteractionDetails_reducer_toPrimitive(t,r){if("object"!=ESSInteractionDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ESSInteractionDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ESSInteractionDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Events_CollectionList_reducer_typeof(o){return Events_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},Events_CollectionList_reducer_typeof(o)}function Events_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 Events_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Events_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Events_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Events_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Events_CollectionList_reducer_defineProperty(e,r,t){return(r=function Events_CollectionList_reducer_toPropertyKey(t){var i=function Events_CollectionList_reducer_toPrimitive(t,r){if("object"!=Events_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Events_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Events_CollectionList_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 Events_CollectionList_reducer_initialState={results:[],metadata:{},selectedOrganisers:[],isComplete:!1};function AttendeeSearch_reducer_typeof(o){return AttendeeSearch_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},AttendeeSearch_reducer_typeof(o)}function AttendeeSearch_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 AttendeeSearch_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?AttendeeSearch_reducer_ownKeys(Object(t),!0).forEach((function(r){AttendeeSearch_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AttendeeSearch_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function AttendeeSearch_reducer_defineProperty(e,r,t){return(r=function AttendeeSearch_reducer_toPropertyKey(t){var i=function AttendeeSearch_reducer_toPrimitive(t,r){if("object"!=AttendeeSearch_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=AttendeeSearch_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==AttendeeSearch_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 AttendeeSearch_reducer_initialState={results:[],metadata:{},isComplete:!1};function Omis_CollectionList_reducer_typeof(o){return Omis_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},Omis_CollectionList_reducer_typeof(o)}function Omis_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 Omis_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Omis_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Omis_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Omis_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Omis_CollectionList_reducer_defineProperty(e,r,t){return(r=function Omis_CollectionList_reducer_toPropertyKey(t){var i=function Omis_CollectionList_reducer_toPrimitive(t,r){if("object"!=Omis_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Omis_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Omis_CollectionList_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 Omis_CollectionList_reducer_initialState={results:[],metadata:{},isComplete:!1};const Omis_CollectionList_reducer=function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Omis_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XiH:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.BUu:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};var RoutedInput=__webpack_require__("./src/client/components/RoutedInput/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Paginated=__webpack_require__("./src/client/components/Resource/Paginated.js"),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url.to-json.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx"),validators=__webpack_require__("./src/client/components/Form/validators.js");const State=(0,react_redux.connect)((function(state){return{state}}))((function(_ref){var state=_ref.state;return(0,_ref.children)(state)}));var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js");function ContactForm_typeof(o){return ContactForm_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ContactForm_typeof(o)}var _templateObject,ContactForm_excluded=["update","contactId","companyId","primary","addressSameAsCompany","acceptsDitEmailMarketing","addressPostcode","addressTown","addressCounty","addressArea","addressCountry","dispatch","id","notes"],ContactForm_excluded2=["address1","address2","city","county","postcode","acceptsDitEmailMarketing","addressSameAsCompany","primary","email","valid_email","moreDetails"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function ContactForm_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function ContactForm_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ContactForm_ownKeys(Object(t),!0).forEach((function(r){ContactForm_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ContactForm_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ContactForm_defineProperty(e,r,t){return(r=function ContactForm_toPropertyKey(t){var i=function ContactForm_toPrimitive(t,r){if("object"!=ContactForm_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ContactForm_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ContactForm_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ContactForm_toConsumableArray(r){return function ContactForm_arrayWithoutHoles(r){if(Array.isArray(r))return ContactForm_arrayLikeToArray(r)}(r)||function ContactForm_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function ContactForm_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ContactForm_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)?ContactForm_arrayLikeToArray(r,a):void 0}}(r)||function ContactForm_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 ContactForm_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ContactForm_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function ContactForm_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<s.length;r++)o=s[r],t.includes(o)||{}.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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LocalHeader_reducer_ownKeys(Object(t),!0).forEach((function(r){LocalHeader_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LocalHeader_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LocalHeader_reducer_defineProperty(e,r,t){return(r=function LocalHeader_reducer_toPropertyKey(t){var i=function LocalHeader_reducer_toPrimitive(t,r){if("object"!=LocalHeader_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LocalHeader_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LocalHeader_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ContactActivity_reducer_typeof(o){return ContactActivity_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},ContactActivity_reducer_typeof(o)}function ContactActivity_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 ContactActivity_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ContactActivity_reducer_ownKeys(Object(t),!0).forEach((function(r){ContactActivity_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ContactActivity_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ContactActivity_reducer_defineProperty(e,r,t){return(r=function ContactActivity_reducer_toPropertyKey(t){var i=function ContactActivity_reducer_toPrimitive(t,r){if("object"!=ContactActivity_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ContactActivity_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ContactActivity_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 reducer_defaultState={total:0,page:1,selectedSortBy:"newest",result:[],isComplete:!1};function Reminders_reducer_typeof(o){return Reminders_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},Reminders_reducer_typeof(o)}function reducer_toConsumableArray(r){return function reducer_arrayWithoutHoles(r){if(Array.isArray(r))return reducer_arrayLikeToArray(r)}(r)||function reducer_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function reducer_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return reducer_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)?reducer_arrayLikeToArray(r,a):void 0}}(r)||function reducer_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 reducer_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Reminders_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 Reminders_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Reminders_reducer_ownKeys(Object(t),!0).forEach((function(r){Reminders_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Reminders_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Reminders_reducer_defineProperty(e,r,t){return(r=function Reminders_reducer_toPropertyKey(t){var i=function Reminders_reducer_toPrimitive(t,r){if("object"!=Reminders_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Reminders_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Reminders_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 Reminders_reducer_initialState={reminders:{results:[],count:0,nextPending:!1}};function CompanyDetails_reducer_typeof(o){return CompanyDetails_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},CompanyDetails_reducer_typeof(o)}function CompanyDetails_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 CompanyDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyDetails_reducer_defineProperty(e,r,t){return(r=function CompanyDetails_reducer_toPropertyKey(t){var i=function CompanyDetails_reducer_toPrimitive(t,r){if("object"!=CompanyDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyDetails_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 CompanyDetails_reducer_initialState={company:null};function ExportDetails_reducer_typeof(o){return ExportDetails_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},ExportDetails_reducer_typeof(o)}function ExportDetails_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 ExportDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportDetails_reducer_defineProperty(e,r,t){return(r=function ExportDetails_reducer_toPropertyKey(t){var i=function ExportDetails_reducer_toPrimitive(t,r){if("object"!=ExportDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportDetails_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 ExportDetails_reducer_initialState={exportItem:null};var ExportList_state=__webpack_require__("./src/client/modules/ExportPipeline/ExportList/state.js");function ExportList_reducer_typeof(o){return ExportList_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},ExportList_reducer_typeof(o)}function ExportList_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 ExportList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportList_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportList_reducer_defineProperty(e,r,t){return(r=function ExportList_reducer_toPropertyKey(t){var i=function ExportList_reducer_toPrimitive(t,r){if("object"!=ExportList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportList_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 ExportList_reducer_initialState={count:0,results:[],sector:[],itemsPerPage:10,maxItemsToPaginate:1e4};var CompanyLocalHeader_state=__webpack_require__("./src/client/components/CompanyLocalHeader/state.js");function CompanyLocalHeader_reducer_typeof(o){return CompanyLocalHeader_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},CompanyLocalHeader_reducer_typeof(o)}function CompanyLocalHeader_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 CompanyLocalHeader_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyLocalHeader_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyLocalHeader_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyLocalHeader_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLocalHeader_reducer_defineProperty(e,r,t){return(r=function CompanyLocalHeader_reducer_toPropertyKey(t){var i=function CompanyLocalHeader_reducer_toPrimitive(t,r){if("object"!=CompanyLocalHeader_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLocalHeader_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLocalHeader_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 CompanyLocalHeader_reducer_initialState={count:0,results:[]};function CompanyHierarchy_reducer_typeof(o){return CompanyHierarchy_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},CompanyHierarchy_reducer_typeof(o)}function CompanyHierarchy_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 CompanyHierarchy_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyHierarchy_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyHierarchy_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyHierarchy_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyHierarchy_reducer_defineProperty(e,r,t){return(r=function CompanyHierarchy_reducer_toPropertyKey(t){var i=function CompanyHierarchy_reducer_toPrimitive(t,r){if("object"!=CompanyHierarchy_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyHierarchy_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyHierarchy_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 CompanyHierarchy_reducer_initialState={familyTree:null};__webpack_require__("./src/client/modules/Companies/CollectionList/transformers.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/constants.js");function LinkGlobalHQ_reducer_typeof(o){return LinkGlobalHQ_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},LinkGlobalHQ_reducer_typeof(o)}function LinkGlobalHQ_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 LinkGlobalHQ_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LinkGlobalHQ_reducer_ownKeys(Object(t),!0).forEach((function(r){LinkGlobalHQ_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LinkGlobalHQ_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LinkGlobalHQ_reducer_defineProperty(e,r,t){return(r=function LinkGlobalHQ_reducer_toPropertyKey(t){var i=function LinkGlobalHQ_reducer_toPrimitive(t,r){if("object"!=LinkGlobalHQ_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LinkGlobalHQ_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LinkGlobalHQ_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 LinkGlobalHQ_reducer_initialState={results:[],metadata:{},isComplete:!1};function LinkSubsidiary_reducer_typeof(o){return LinkSubsidiary_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},LinkSubsidiary_reducer_typeof(o)}function LinkSubsidiary_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 LinkSubsidiary_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LinkSubsidiary_reducer_ownKeys(Object(t),!0).forEach((function(r){LinkSubsidiary_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LinkSubsidiary_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LinkSubsidiary_reducer_defineProperty(e,r,t){return(r=function LinkSubsidiary_reducer_toPropertyKey(t){var i=function LinkSubsidiary_reducer_toPrimitive(t,r){if("object"!=LinkSubsidiary_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LinkSubsidiary_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LinkSubsidiary_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 LinkSubsidiary_reducer_initialState={results:[],metadata:{},isComplete:!1};__webpack_require__("./src/client/transformers/index.js");function AccountManagement_reducer_typeof(o){return AccountManagement_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},AccountManagement_reducer_typeof(o)}function AccountManagement_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 AccountManagement_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?AccountManagement_reducer_ownKeys(Object(t),!0).forEach((function(r){AccountManagement_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AccountManagement_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function AccountManagement_reducer_defineProperty(e,r,t){return(r=function AccountManagement_reducer_toPropertyKey(t){var i=function AccountManagement_reducer_toPrimitive(t,r){if("object"!=AccountManagement_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=AccountManagement_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==AccountManagement_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 AccountManagement_reducer_initialState={objectiveItem:null};__webpack_require__("./src/apps/companies/apps/edit-company/client/constants.js");function EditRecipientCompany_reducer_typeof(o){return EditRecipientCompany_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},EditRecipientCompany_reducer_typeof(o)}function EditRecipientCompany_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 EditRecipientCompany_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EditRecipientCompany_reducer_ownKeys(Object(t),!0).forEach((function(r){EditRecipientCompany_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EditRecipientCompany_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EditRecipientCompany_reducer_defineProperty(e,r,t){return(r=function EditRecipientCompany_reducer_toPropertyKey(t){var i=function EditRecipientCompany_reducer_toPrimitive(t,r){if("object"!=EditRecipientCompany_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EditRecipientCompany_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EditRecipientCompany_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 EditRecipientCompany_reducer_initialState={results:[],metadata:{},isComplete:!1};function EditAssociatedProject_reducer_typeof(o){return EditAssociatedProject_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},EditAssociatedProject_reducer_typeof(o)}function EditAssociatedProject_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 EditAssociatedProject_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EditAssociatedProject_reducer_ownKeys(Object(t),!0).forEach((function(r){EditAssociatedProject_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EditAssociatedProject_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EditAssociatedProject_reducer_defineProperty(e,r,t){return(r=function EditAssociatedProject_reducer_toPropertyKey(t){var i=function EditAssociatedProject_reducer_toPrimitive(t,r){if("object"!=EditAssociatedProject_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EditAssociatedProject_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EditAssociatedProject_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 EditAssociatedProject_reducer_initialState={results:[],metadata:{},isComplete:!1};__webpack_require__("./src/apps/transformers.js");function CoreTeam_reducer_typeof(o){return CoreTeam_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},CoreTeam_reducer_typeof(o)}function CoreTeam_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 CoreTeam_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CoreTeam_reducer_ownKeys(Object(t),!0).forEach((function(r){CoreTeam_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CoreTeam_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CoreTeam_reducer_defineProperty(e,r,t){return(r=function CoreTeam_reducer_toPropertyKey(t){var i=function CoreTeam_reducer_toPrimitive(t,r){if("object"!=CoreTeam_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CoreTeam_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CoreTeam_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 CoreTeam_reducer_initialState={company:null,oneListTeam:null,oneListTiers:null};__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");function TaskDetails_reducer_typeof(o){return TaskDetails_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},TaskDetails_reducer_typeof(o)}function TaskDetails_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 TaskDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TaskDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){TaskDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TaskDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TaskDetails_reducer_defineProperty(e,r,t){return(r=function TaskDetails_reducer_toPropertyKey(t){var i=function TaskDetails_reducer_toPrimitive(t,r){if("object"!=TaskDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TaskDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TaskDetails_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 TaskDetails_reducer_initialState={task:void 0,copyTask:!1};function CompanySelect_reducer_typeof(o){return CompanySelect_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},CompanySelect_reducer_typeof(o)}function CompanySelect_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 CompanySelect_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanySelect_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanySelect_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanySelect_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanySelect_reducer_defineProperty(e,r,t){return(r=function CompanySelect_reducer_toPropertyKey(t){var i=function CompanySelect_reducer_toPrimitive(t,r){if("object"!=CompanySelect_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanySelect_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanySelect_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 CompanySelect_reducer_initialState={results:[],metadata:{},isComplete:!1};var my_tasks_state=__webpack_require__("./src/client/components/Dashboard/my-tasks/state.js");function my_tasks_reducer_typeof(o){return my_tasks_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},my_tasks_reducer_typeof(o)}function my_tasks_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 my_tasks_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?my_tasks_reducer_ownKeys(Object(t),!0).forEach((function(r){my_tasks_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):my_tasks_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function my_tasks_reducer_defineProperty(e,r,t){return(r=function my_tasks_reducer_toPropertyKey(t){var i=function my_tasks_reducer_toPrimitive(t,r){if("object"!=my_tasks_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=my_tasks_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==my_tasks_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 my_tasks_reducer_initialState={myTasks:null};function InteractionDetails_reducer_typeof(o){return InteractionDetails_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},InteractionDetails_reducer_typeof(o)}function InteractionDetails_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 InteractionDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InteractionDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){InteractionDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InteractionDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InteractionDetails_reducer_defineProperty(e,r,t){return(r=function InteractionDetails_reducer_toPropertyKey(t){var i=function InteractionDetails_reducer_toPrimitive(t,r){if("object"!=InteractionDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InteractionDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InteractionDetails_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 InteractionDetails_reducer_initialState={interaction:void 0};function Omis_reducer_typeof(o){return Omis_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},Omis_reducer_typeof(o)}function Omis_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 Omis_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Omis_reducer_ownKeys(Object(t),!0).forEach((function(r){Omis_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Omis_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Omis_reducer_defineProperty(e,r,t){return(r=function Omis_reducer_toPropertyKey(t){var i=function Omis_reducer_toPrimitive(t,r){if("object"!=Omis_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Omis_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Omis_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CompanyActivity_reducer_typeof(o){return CompanyActivity_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},CompanyActivity_reducer_typeof(o)}function CompanyActivity_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 CompanyActivity_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyActivity_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyActivity_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyActivity_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyActivity_reducer_defineProperty(e,r,t){return(r=function CompanyActivity_reducer_toPropertyKey(t){var i=function CompanyActivity_reducer_toPrimitive(t,r){if("object"!=CompanyActivity_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyActivity_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyActivity_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 CompanyActivity_reducer_initialState={results:[],metadata:{},selectedAdvisers:[],selectedTeams:[],selectedCompanies:[],isComplete:!1};var govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),StyledButton=(0,styled_components_browser_esm.Ay)(govuk_react_button_esm.A)({margin:0}),ResendExportWin=(0,multiinstance.Ay)({name:"ResendExportWin",actionPattern:"EXPORT_WIN_RESENT__",reducer:function reducer(state,action){return action.type===actions.R2h?{success:!0}:state},component:function _ResendExportWin(_ref){var id=_ref.id;return react.createElement(Task.A,null,(function(getTask){var task=getTask("TASK_RESEND_EXPORT_WIN",id);return react.createElement(StyledButton,{type:"button",buttonColour:colours.WS,buttonTextColour:colours.pF,disabled:task.progress,"data-test":"resend-export-win",onClick:function onClick(){task.start({payload:id,onSuccessDispatch:actions.R2h})}},"Resend export win")}))}}),RecentResult_excluded=["children","id"];function RecentResult_typeof(o){return RecentResult_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},RecentResult_typeof(o)}function RecentResult_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 RecentResult_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RecentResult_ownKeys(Object(t),!0).forEach((function(r){RecentResult_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RecentResult_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RecentResult_defineProperty(e,r,t){return(r=function RecentResult_toPropertyKey(t){var i=function RecentResult_toPrimitive(t,r){if("object"!=RecentResult_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RecentResult_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RecentResult_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const RecentResult=(0,multiinstance.Ay)({name:"Task/RecentResult",actionPattern:/.*/,idProp:"name",reducer:function reducer(state,_ref){var _state$id,type=_ref.type,id=_ref.id,onSuccessDispatch=_ref.onSuccessDispatch,result=_ref.result;switch(type){case actions.EGH:return RecentResult_objectSpread(RecentResult_objectSpread({},state),{},RecentResult_defineProperty({},id,RecentResult_objectSpread(RecentResult_objectSpread({},null==state?void 0:state[id]),{},{successActionType:onSuccessDispatch})));case null==state||null===(_state$id=state[id])||void 0===_state$id?void 0:_state$id.successActionType:return RecentResult_objectSpread(RecentResult_objectSpread({},state),{},RecentResult_defineProperty({},id,{result}));default:return state}},component:function component(_ref2){var _props$id,children=_ref2.children,id=_ref2.id;return children(null===(_props$id=function RecentResult_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RecentResult_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RecentResult_excluded)[id])||void 0===_props$id?void 0:_props$id.result)}});var _objectSpread3;function reducers_typeof(o){return reducers_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},reducers_typeof(o)}function reducers_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 reducers_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducers_ownKeys(Object(t),!0).forEach((function(r){reducers_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducers_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducers_defineProperty(e,r,t){return(r=function reducers_toPropertyKey(t){var i=function reducers_toPrimitive(t,r){if("object"!=reducers_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducers_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==reducers_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _document$getElementB,reducers=reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty({tasks:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,type=_ref3.type,action=reducer_objectWithoutProperties(_ref3,_excluded2);switch(type){case actions.p8B:return setTaskState(state,action,"progress");case actions.GAr:return setTaskState(state,action,"error");case actions.KQv:case actions.n_2:return remove(state,action);default:return state}}},LocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,flashMessages=_ref.flashMessages,announcementLink=_ref.announcementLink;switch(type){case actions.Ijb:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages});case actions.PqX:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages:{}});case actions.F8v:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{announcementLink});default:return state}})),state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,id=_ref.id,result=_ref.result,payload=_ref.payload,query=_ref.query,orderBy=_ref.orderBy;switch(type){case actions.Twh:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:(0,lodash.mapValues)(result,(function(name){return{name}})),selectedId:Object.keys(result)[0]});case actions.Hfi:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists),{},CompanyLists_reducer_defineProperty({},payload,CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists[payload]),{},{companies:result})))});case actions.UJl:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{selectedId:id,query:""});case actions.WvE:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{query});case actions.OCZ:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{orderBy});default:return state}})),CollectionList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Companies_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.nAW:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{selectedLeadItaOrGlobalAccountManagers:result});case actions.bWZ:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{advisers:result});default:return state}})),"exportsHistory",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case actions.MFr:var count=result.count,results=result.results;return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.zTo:return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),client_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Vmx?result:state})),"referralForm",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case actions.GAr:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!1});case actions.KZ$:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!0,formSubmitted:!0});default:return state}})),"addCompany",(function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})),TabNav.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),RecentResult.reducerSpread),{},(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3={},"dnbCheckPendingRequest",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDnbPending:!1,globalUltimate:!1},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.rTD:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{isDnbPending:result});case actions.VRR:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{globalUltimate:result?result.data.results[0]:null});default:return state}})),"opportunitiesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,page=_ref.page,result=_ref.result;switch(type){case actions.ILj:var count=result.count,results=result.results;return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.V8_:return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),"opportunityDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Opportunities_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,opportunity=_ref.opportunity;switch(type){case actions.J1h:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.EPX:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:result});case actions.A3K:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{metadata:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.metadata),{},{investmentTypes:result.investmentTypes,returnRates:result.returnRates,timeScales:result.timeScales})});case actions.TBR:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!0,isEditingRequirements:!1})});case actions.Rm3:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!0})});case actions.j2f:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.Xpy:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),result),{},{isEditingDetails:!1,isEditingRequirements:!1})});default:return state}})),"profilesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Profiles_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.j2I:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.XYJ:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{filterOptions:result});default:return state}})),"projectsList",Projects_reducer),"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;i<statusNames.length;i++)_loop(i);for(var _loop2=function _loop2(_i){var name=(0,lodash.camelCase)(stageNames[_i]);stageList[name]=resultList.filter((function(investment){return investment.stage.name===stageNames[_i]})).length},_i=0;_i<stageNames.length;_i++)_loop2(_i);for(var allActiveInvestments=[],_i2=0,_resultList=resultList;_i2<_resultList.length;_i2++){var investment=_resultList[_i2];if(investment.stage.name===Projects_constants.aO&&"delayed"===investment.status||investment.stage.name===Projects_constants.aO&&"ongoing"===investment.status){var newDate=new Date(investment.estimated_land_date);investment.estimated_land_date=newDate,allActiveInvestments.push(investment)}}return allActiveInvestments.sort((function(dateA,dateB){return Number(dateA.estimated_land_date)-Number(dateB.estimated_land_date)})),upcomingActiveInvestments=allActiveInvestments.length>3?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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?NotificationAlert_reducer_ownKeys(Object(t),!0).forEach((function(r){NotificationAlert_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NotificationAlert_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},result):state})),"contactsList",Contacts_CollectionList_reducer),"contactActivity",(function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?createProvider_ownKeys(Object(t),!0).forEach((function(r){createProvider_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):createProvider_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function createProvider_defineProperty(e,r,t){return(r=function createProvider_toPropertyKey(t){var i=function createProvider_toPrimitive(t,r){if("object"!=createProvider_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=createProvider_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==createProvider_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var preloadedState=createProvider_objectSpread(createProvider_objectSpread({},JSON.parse((null===(_document$getElementB=document.getElementById("react-app"))||void 0===_document$getElementB?void 0:_document$getElementB.dataset.props)||"{}")),{},{referrerUrl:window.document.referrer}),ConnectedReactRouter=(0,react_redux.connect)((function(_ref){var _ref$router=_ref.router;return{location:_ref$router.location,navigationType:_ref$router.action}}))(dist.Ix),esm=(__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/@faker-js/faker/dist/esm/index.mjs")),tasks_OPTIONS=Array(1e3).fill().map((function(){return esm.Jb.person.fullName()}));const tasks={"Task typeahead example options":function fakerOptions(){var query=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve,reject){return"reject"===query?setTimeout(reject,1e3,"Something went horribly wrong"):setTimeout(resolve,1e3,tasks_OPTIONS.filter((function(x){return x.toLowerCase().includes(query.toLowerCase())})).slice(0,10).map((function(x){return{value:lodash_default().snakeCase(x),label:x}})))}))}};function tasks_typeof(o){return tasks_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},tasks_typeof(o)}const Typeahead_tasks=function tasks_defineProperty(e,r,t){return(r=function tasks_toPropertyKey(t){var i=function tasks_toPrimitive(t,r){if("object"!=tasks_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=tasks_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==tasks_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},__webpack_require__("./src/client/components/Typeahead/state.js").S,(function getTypeaheadOptions(_ref){var loadOptions=_ref.loadOptions,options=_ref.options,autocomplete=_ref.autocomplete;return loadOptions?(0,lodash.throttle)(loadOptions,500)(autocomplete):new Promise((function(resolve){return resolve(options)}))})),country_namespaceObject=JSON.parse('[{"id":"87756b9a-5d95-e211-a939-e4115bead28a","name":"Afghanistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AF"},{"id":"88756b9a-5d95-e211-a939-e4115bead28a","name":"Aland Islands","disabled_on":"2017-12-15T17:12:09Z","overseas_region":null,"iso_alpha2_code":""},{"id":"945f66a0-5d95-e211-a939-e4115bead28a","name":"Albania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AL"},{"id":"955f66a0-5d95-e211-a939-e4115bead28a","name":"Algeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DZ"},{"id":"965f66a0-5d95-e211-a939-e4115bead28a","name":"American Samoa","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"975f66a0-5d95-e211-a939-e4115bead28a","name":"Andorra","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AD"},{"id":"985f66a0-5d95-e211-a939-e4115bead28a","name":"Angola","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"AO"},{"id":"995f66a0-5d95-e211-a939-e4115bead28a","name":"Anguilla","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"AI"},{"id":"9a5f66a0-5d95-e211-a939-e4115bead28a","name":"Antarctica","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9b5f66a0-5d95-e211-a939-e4115bead28a","name":"Antigua and Barbuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AG"},{"id":"9c5f66a0-5d95-e211-a939-e4115bead28a","name":"Argentina","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AR"},{"id":"9d5f66a0-5d95-e211-a939-e4115bead28a","name":"Armenia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AM"},{"id":"9e5f66a0-5d95-e211-a939-e4115bead28a","name":"Aruba","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9f5f66a0-5d95-e211-a939-e4115bead28a","name":"Australia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"AU"},{"id":"a05f66a0-5d95-e211-a939-e4115bead28a","name":"Austria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AT"},{"id":"a15f66a0-5d95-e211-a939-e4115bead28a","name":"Azerbaijan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AZ"},{"id":"a25f66a0-5d95-e211-a939-e4115bead28a","name":"Bahamas","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BS"},{"id":"a35f66a0-5d95-e211-a939-e4115bead28a","name":"Bahrain","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"BH"},{"id":"a45f66a0-5d95-e211-a939-e4115bead28a","name":"Bangladesh","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BD"},{"id":"a55f66a0-5d95-e211-a939-e4115bead28a","name":"Barbados","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BB"},{"id":"a65f66a0-5d95-e211-a939-e4115bead28a","name":"Belarus","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"BY"},{"id":"a75f66a0-5d95-e211-a939-e4115bead28a","name":"Belgium","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BE"},{"id":"a85f66a0-5d95-e211-a939-e4115bead28a","name":"Belize","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BZ"},{"id":"a95f66a0-5d95-e211-a939-e4115bead28a","name":"Benin","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BJ"},{"id":"aa5f66a0-5d95-e211-a939-e4115bead28a","name":"Bermuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BM"},{"id":"ab5f66a0-5d95-e211-a939-e4115bead28a","name":"Bhutan","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BT"},{"id":"98c8d93d-5d06-e311-a78e-e4115bead28a","name":"BLANK","disabled_on":"2017-12-28T14:27:49Z","overseas_region":null,"iso_alpha2_code":""},{"id":"ac5f66a0-5d95-e211-a939-e4115bead28a","name":"Bolivia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BO"},{"id":"ad5f66a0-5d95-e211-a939-e4115bead28a","name":"Bosnia and Herzegovina","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BA"},{"id":"ae5f66a0-5d95-e211-a939-e4115bead28a","name":"Botswana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BW"},{"id":"af5f66a0-5d95-e211-a939-e4115bead28a","name":"Bouvet Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b05f66a0-5d95-e211-a939-e4115bead28a","name":"Brazil","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BR"},{"id":"b15f66a0-5d95-e211-a939-e4115bead28a","name":"British Indian Ocean Territory","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b25f66a0-5d95-e211-a939-e4115bead28a","name":"British Virgin Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"VG"},{"id":"56af72a6-5d95-e211-a939-e4115bead28a","name":"Brunei","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"BN"},{"id":"57af72a6-5d95-e211-a939-e4115bead28a","name":"Bulgaria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BG"},{"id":"58af72a6-5d95-e211-a939-e4115bead28a","name":"Burkina","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BF"},{"id":"59af72a6-5d95-e211-a939-e4115bead28a","name":"Burma","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MM"},{"id":"5aaf72a6-5d95-e211-a939-e4115bead28a","name":"Burundi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BI"},{"id":"5baf72a6-5d95-e211-a939-e4115bead28a","name":"Cambodia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KH"},{"id":"5caf72a6-5d95-e211-a939-e4115bead28a","name":"Cameroon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CM"},{"id":"5daf72a6-5d95-e211-a939-e4115bead28a","name":"Canada","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"CA"},{"id":"5eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cape Verde","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CV"},{"id":"5faf72a6-5d95-e211-a939-e4115bead28a","name":"Cayman Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"KY"},{"id":"60af72a6-5d95-e211-a939-e4115bead28a","name":"Central African Republic","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CF"},{"id":"61af72a6-5d95-e211-a939-e4115bead28a","name":"Chad","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TD"},{"id":"62af72a6-5d95-e211-a939-e4115bead28a","name":"Chile","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CL"},{"id":"63af72a6-5d95-e211-a939-e4115bead28a","name":"China","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"CN"},{"id":"64af72a6-5d95-e211-a939-e4115bead28a","name":"Christmas Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"65af72a6-5d95-e211-a939-e4115bead28a","name":"Cocos (Keeling) Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"66af72a6-5d95-e211-a939-e4115bead28a","name":"Colombia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CO"},{"id":"67af72a6-5d95-e211-a939-e4115bead28a","name":"Comoros","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KM"},{"id":"69af72a6-5d95-e211-a939-e4115bead28a","name":"Congo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CG"},{"id":"68af72a6-5d95-e211-a939-e4115bead28a","name":"Congo (Democratic Republic)","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CD"},{"id":"6aaf72a6-5d95-e211-a939-e4115bead28a","name":"Cook Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"6baf72a6-5d95-e211-a939-e4115bead28a","name":"Costa Rica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CR"},{"id":"6caf72a6-5d95-e211-a939-e4115bead28a","name":"Croatia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HR"},{"id":"6daf72a6-5d95-e211-a939-e4115bead28a","name":"Cuba","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CU"},{"id":"6eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cyprus","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CY"},{"id":"6faf72a6-5d95-e211-a939-e4115bead28a","name":"Czech Republic","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CZ"},{"id":"70af72a6-5d95-e211-a939-e4115bead28a","name":"Denmark","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DK"},{"id":"71af72a6-5d95-e211-a939-e4115bead28a","name":"Djibouti","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DJ"},{"id":"72af72a6-5d95-e211-a939-e4115bead28a","name":"Dominica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DM"},{"id":"73af72a6-5d95-e211-a939-e4115bead28a","name":"Dominican Republic","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DO"},{"id":"74af72a6-5d95-e211-a939-e4115bead28a","name":"East Timor","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TL"},{"id":"75af72a6-5d95-e211-a939-e4115bead28a","name":"Ecuador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"EC"},{"id":"76af72a6-5d95-e211-a939-e4115bead28a","name":"Egypt","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"EG"},{"id":"d2f682ac-5d95-e211-a939-e4115bead28a","name":"El Salvador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SV"},{"id":"d3f682ac-5d95-e211-a939-e4115bead28a","name":"Equatorial Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GQ"},{"id":"d4f682ac-5d95-e211-a939-e4115bead28a","name":"Eritrea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ER"},{"id":"d5f682ac-5d95-e211-a939-e4115bead28a","name":"Estonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"EE"},{"id":"d6f682ac-5d95-e211-a939-e4115bead28a","name":"Ethiopia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ET"},{"id":"d7f682ac-5d95-e211-a939-e4115bead28a","name":"Falkland Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FK"},{"id":"d8f682ac-5d95-e211-a939-e4115bead28a","name":"Faroe Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FO"},{"id":"d9f682ac-5d95-e211-a939-e4115bead28a","name":"Fiji","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FJ"},{"id":"daf682ac-5d95-e211-a939-e4115bead28a","name":"Finland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FI"},{"id":"82756b9a-5d95-e211-a939-e4115bead28a","name":"France","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FR"},{"id":"dbf682ac-5d95-e211-a939-e4115bead28a","name":"French Guiana","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"dcf682ac-5d95-e211-a939-e4115bead28a","name":"French Polynesia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ddf682ac-5d95-e211-a939-e4115bead28a","name":"French Southern Territories","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"def682ac-5d95-e211-a939-e4115bead28a","name":"Gabon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GA"},{"id":"dff682ac-5d95-e211-a939-e4115bead28a","name":"Gambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GM"},{"id":"e0f682ac-5d95-e211-a939-e4115bead28a","name":"Georgia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"GE"},{"id":"83756b9a-5d95-e211-a939-e4115bead28a","name":"Germany","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DE"},{"id":"e1f682ac-5d95-e211-a939-e4115bead28a","name":"Ghana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GH"},{"id":"e2f682ac-5d95-e211-a939-e4115bead28a","name":"Gibraltar","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GI"},{"id":"e3f682ac-5d95-e211-a939-e4115bead28a","name":"Greece","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GR"},{"id":"e4f682ac-5d95-e211-a939-e4115bead28a","name":"Greenland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GL"},{"id":"e5f682ac-5d95-e211-a939-e4115bead28a","name":"Grenada","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GD"},{"id":"e6f682ac-5d95-e211-a939-e4115bead28a","name":"Guadeloupe","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e7f682ac-5d95-e211-a939-e4115bead28a","name":"Guam","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e8f682ac-5d95-e211-a939-e4115bead28a","name":"Guatemala","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GT"},{"id":"77756b9a-5d95-e211-a939-e4115bead28a","name":"Guernsey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GG"},{"id":"e9f682ac-5d95-e211-a939-e4115bead28a","name":"Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GN"},{"id":"eaf682ac-5d95-e211-a939-e4115bead28a","name":"Guinea-Bissau","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GW"},{"id":"ebf682ac-5d95-e211-a939-e4115bead28a","name":"Guyana","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GY"},{"id":"ecf682ac-5d95-e211-a939-e4115bead28a","name":"Haiti","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"HT"},{"id":"edf682ac-5d95-e211-a939-e4115bead28a","name":"Heard Island and McDonald Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"eff682ac-5d95-e211-a939-e4115bead28a","name":"Honduras","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":""},{"id":"f0f682ac-5d95-e211-a939-e4115bead28a","name":"Hong Kong (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"HK"},{"id":"6d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Hungary","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HU"},{"id":"6e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Iceland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IS"},{"id":"6f6a9ab2-5d95-e211-a939-e4115bead28a","name":"India","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"IN"},{"id":"706a9ab2-5d95-e211-a939-e4115bead28a","name":"Indonesia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"ID"},{"id":"716a9ab2-5d95-e211-a939-e4115bead28a","name":"Iran","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IR"},{"id":"726a9ab2-5d95-e211-a939-e4115bead28a","name":"Iraq","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IQ"},{"id":"736a9ab2-5d95-e211-a939-e4115bead28a","name":"Ireland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IE"},{"id":"79756b9a-5d95-e211-a939-e4115bead28a","name":"Isle of Man","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"IM"},{"id":"746a9ab2-5d95-e211-a939-e4115bead28a","name":"Israel","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IL"},{"id":"84756b9a-5d95-e211-a939-e4115bead28a","name":"Italy","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IT"},{"id":"756a9ab2-5d95-e211-a939-e4115bead28a","name":"Ivory Coast","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CI"},{"id":"766a9ab2-5d95-e211-a939-e4115bead28a","name":"Jamaica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"JM"},{"id":"85756b9a-5d95-e211-a939-e4115bead28a","name":"Japan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"JP"},{"id":"78756b9a-5d95-e211-a939-e4115bead28a","name":"Jersey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"JE"},{"id":"776a9ab2-5d95-e211-a939-e4115bead28a","name":"Jordan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"JO"},{"id":"786a9ab2-5d95-e211-a939-e4115bead28a","name":"Kazakhstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KZ"},{"id":"796a9ab2-5d95-e211-a939-e4115bead28a","name":"Kenya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KE"},{"id":"7a6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kiribati","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KI"},{"id":"7b6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (North)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KP"},{"id":"7c6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (South)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KR"},{"id":"7a756b9a-5d95-e211-a939-e4115bead28a","name":"Kosovo","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"XK"},{"id":"7d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kuwait","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"KW"},{"id":"7e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kyrgyzstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KG"},{"id":"7f6a9ab2-5d95-e211-a939-e4115bead28a","name":"Laos","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"LA"},{"id":"806a9ab2-5d95-e211-a939-e4115bead28a","name":"Latvia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LV"},{"id":"816a9ab2-5d95-e211-a939-e4115bead28a","name":"Lebanon","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"LB"},{"id":"826a9ab2-5d95-e211-a939-e4115bead28a","name":"Lesotho","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LS"},{"id":"836a9ab2-5d95-e211-a939-e4115bead28a","name":"Liberia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LR"},{"id":"846a9ab2-5d95-e211-a939-e4115bead28a","name":"Libya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LY"},{"id":"856a9ab2-5d95-e211-a939-e4115bead28a","name":"Liechtenstein","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LI"},{"id":"866a9ab2-5d95-e211-a939-e4115bead28a","name":"Lithuania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LT"},{"id":"876a9ab2-5d95-e211-a939-e4115bead28a","name":"Luxembourg","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LU"},{"id":"886a9ab2-5d95-e211-a939-e4115bead28a","name":"Macao (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"MO"},{"id":"896a9ab2-5d95-e211-a939-e4115bead28a","name":"Macedonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MK"},{"id":"0350bdb8-5d95-e211-a939-e4115bead28a","name":"Madagascar","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MG"},{"id":"0450bdb8-5d95-e211-a939-e4115bead28a","name":"Malawi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MW"},{"id":"0550bdb8-5d95-e211-a939-e4115bead28a","name":"Malaysia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MY"},{"id":"0650bdb8-5d95-e211-a939-e4115bead28a","name":"Maldives","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"MV"},{"id":"0750bdb8-5d95-e211-a939-e4115bead28a","name":"Mali","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ML"},{"id":"0850bdb8-5d95-e211-a939-e4115bead28a","name":"Malta","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MT"},{"id":"0950bdb8-5d95-e211-a939-e4115bead28a","name":"Marshall Islands","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"MH"},{"id":"0a50bdb8-5d95-e211-a939-e4115bead28a","name":"Martinique","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0b50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MR"},{"id":"0c50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritius","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MU"},{"id":"0d50bdb8-5d95-e211-a939-e4115bead28a","name":"Mayotte","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0e50bdb8-5d95-e211-a939-e4115bead28a","name":"Mexico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"MX"},{"id":"0f50bdb8-5d95-e211-a939-e4115bead28a","name":"Micronesia","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FM"},{"id":"1050bdb8-5d95-e211-a939-e4115bead28a","name":"Moldova","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MD"},{"id":"1150bdb8-5d95-e211-a939-e4115bead28a","name":"Monaco","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MC"},{"id":"1250bdb8-5d95-e211-a939-e4115bead28a","name":"Mongolia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MN"},{"id":"7f756b9a-5d95-e211-a939-e4115bead28a","name":"Montenegro","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ME"},{"id":"1350bdb8-5d95-e211-a939-e4115bead28a","name":"Montserrat","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"MS"},{"id":"1450bdb8-5d95-e211-a939-e4115bead28a","name":"Morocco","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MA"},{"id":"1550bdb8-5d95-e211-a939-e4115bead28a","name":"Mozambique","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MZ"},{"id":"1650bdb8-5d95-e211-a939-e4115bead28a","name":"Namibia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NA"},{"id":"1750bdb8-5d95-e211-a939-e4115bead28a","name":"Nauru","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NR"},{"id":"1850bdb8-5d95-e211-a939-e4115bead28a","name":"Nepal","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"NP"},{"id":"1950bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NL"},{"id":"1a50bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands Antilles","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":""},{"id":"1b50bdb8-5d95-e211-a939-e4115bead28a","name":"New Caledonia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"1c50bdb8-5d95-e211-a939-e4115bead28a","name":"New Zealand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NZ"},{"id":"1d50bdb8-5d95-e211-a939-e4115bead28a","name":"Nicaragua","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"NI"},{"id":"4461b8be-5d95-e211-a939-e4115bead28a","name":"Niger","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NE"},{"id":"4561b8be-5d95-e211-a939-e4115bead28a","name":"Nigeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NG"},{"id":"4661b8be-5d95-e211-a939-e4115bead28a","name":"Niue","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4761b8be-5d95-e211-a939-e4115bead28a","name":"Norfolk Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4861b8be-5d95-e211-a939-e4115bead28a","name":"Northern Mariana Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4961b8be-5d95-e211-a939-e4115bead28a","name":"Norway","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NO"},{"id":"35afd8d0-5d95-e211-a939-e4115bead28a","name":"Occupied Palestinian Territories","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PS"},{"id":"4a61b8be-5d95-e211-a939-e4115bead28a","name":"Oman","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"OM"},{"id":"4b61b8be-5d95-e211-a939-e4115bead28a","name":"Pakistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PK"},{"id":"4c61b8be-5d95-e211-a939-e4115bead28a","name":"Palau","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PW"},{"id":"4d61b8be-5d95-e211-a939-e4115bead28a","name":"Panama","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PA"},{"id":"4e61b8be-5d95-e211-a939-e4115bead28a","name":"Papua New Guinea","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PG"},{"id":"4f61b8be-5d95-e211-a939-e4115bead28a","name":"Paraguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PY"},{"id":"5061b8be-5d95-e211-a939-e4115bead28a","name":"Peru","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PE"},{"id":"5161b8be-5d95-e211-a939-e4115bead28a","name":"Philippines","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PH"},{"id":"5261b8be-5d95-e211-a939-e4115bead28a","name":"Pitcairn, Henderson, Ducie and Oeno Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"5361b8be-5d95-e211-a939-e4115bead28a","name":"Poland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PL"},{"id":"5461b8be-5d95-e211-a939-e4115bead28a","name":"Portugal","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PT"},{"id":"5561b8be-5d95-e211-a939-e4115bead28a","name":"Puerto Rico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PR"},{"id":"5661b8be-5d95-e211-a939-e4115bead28a","name":"Qatar","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"QA"},{"id":"5761b8be-5d95-e211-a939-e4115bead28a","name":"Reunion","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RE"},{"id":"5861b8be-5d95-e211-a939-e4115bead28a","name":"Romania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RO"},{"id":"5961b8be-5d95-e211-a939-e4115bead28a","name":"Russia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"RU"},{"id":"5a61b8be-5d95-e211-a939-e4115bead28a","name":"Rwanda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"RW"},{"id":"5b61b8be-5d95-e211-a939-e4115bead28a","name":"Samoa","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"WS"},{"id":"5c61b8be-5d95-e211-a939-e4115bead28a","name":"San Marino","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SM"},{"id":"5d61b8be-5d95-e211-a939-e4115bead28a","name":"Sao Tome and Principe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ST"},{"id":"1a0be5c4-5d95-e211-a939-e4115bead28a","name":"Saudi Arabia","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SA"},{"id":"1b0be5c4-5d95-e211-a939-e4115bead28a","name":"Senegal","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SN"},{"id":"1c0be5c4-5d95-e211-a939-e4115bead28a","name":"Serbia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RS"},{"id":"1d0be5c4-5d95-e211-a939-e4115bead28a","name":"Seychelles","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SC"},{"id":"1e0be5c4-5d95-e211-a939-e4115bead28a","name":"Sierra Leone","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SL"},{"id":"1f0be5c4-5d95-e211-a939-e4115bead28a","name":"Singapore","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SG"},{"id":"200be5c4-5d95-e211-a939-e4115bead28a","name":"Slovakia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SK"},{"id":"210be5c4-5d95-e211-a939-e4115bead28a","name":"Slovenia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SI"},{"id":"220be5c4-5d95-e211-a939-e4115bead28a","name":"Solomon Islands","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SB"},{"id":"230be5c4-5d95-e211-a939-e4115bead28a","name":"Somalia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SO"},{"id":"240be5c4-5d95-e211-a939-e4115bead28a","name":"South Africa","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZA"},{"id":"250be5c4-5d95-e211-a939-e4115bead28a","name":"South Georgia and South Sandwich Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"86756b9a-5d95-e211-a939-e4115bead28a","name":"Spain","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ES"},{"id":"260be5c4-5d95-e211-a939-e4115bead28a","name":"Sri Lanka","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"LK"},{"id":"7b756b9a-5d95-e211-a939-e4115bead28a","name":"St Barthelemy","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"270be5c4-5d95-e211-a939-e4115bead28a","name":"St Helena","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"280be5c4-5d95-e211-a939-e4115bead28a","name":"St Kitts and Nevis","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"KN"},{"id":"290be5c4-5d95-e211-a939-e4115bead28a","name":"St Lucia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"LC"},{"id":"7c756b9a-5d95-e211-a939-e4115bead28a","name":"St Martin","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MF"},{"id":"2a0be5c4-5d95-e211-a939-e4115bead28a","name":"St Pierre and Miquelon","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2b0be5c4-5d95-e211-a939-e4115bead28a","name":"St Vincent","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VC"},{"id":"2c0be5c4-5d95-e211-a939-e4115bead28a","name":"Sudan","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SD"},{"id":"7e756b9a-5d95-e211-a939-e4115bead28a","name":"Sudan, South","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SS"},{"id":"2d0be5c4-5d95-e211-a939-e4115bead28a","name":"Surinam","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SR"},{"id":"2e0be5c4-5d95-e211-a939-e4115bead28a","name":"Svalbard and Jan Mayen Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2f0be5c4-5d95-e211-a939-e4115bead28a","name":"Swaziland","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SZ"},{"id":"300be5c4-5d95-e211-a939-e4115bead28a","name":"Sweden","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SE"},{"id":"310be5c4-5d95-e211-a939-e4115bead28a","name":"Switzerland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CH"},{"id":"a46ee1ca-5d95-e211-a939-e4115bead28a","name":"Syria","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SY"},{"id":"a56ee1ca-5d95-e211-a939-e4115bead28a","name":"Taiwan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TW"},{"id":"a66ee1ca-5d95-e211-a939-e4115bead28a","name":"Tajikistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TJ"},{"id":"a76ee1ca-5d95-e211-a939-e4115bead28a","name":"Tanzania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TZ"},{"id":"76756b9a-5d95-e211-a939-e4115bead28a","name":"TEST","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"a86ee1ca-5d95-e211-a939-e4115bead28a","name":"Thailand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TH"},{"id":"a96ee1ca-5d95-e211-a939-e4115bead28a","name":"Togo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TG"},{"id":"aa6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tokelau","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ab6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tonga","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TO"},{"id":"ac6ee1ca-5d95-e211-a939-e4115bead28a","name":"Trinidad and Tobago","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"TT"},{"id":"ad6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tunisia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TN"},{"id":"ae6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkey","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TR"},{"id":"af6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkmenistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TM"},{"id":"b06ee1ca-5d95-e211-a939-e4115bead28a","name":"Turks and Caicos Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"TC"},{"id":"b16ee1ca-5d95-e211-a939-e4115bead28a","name":"Tuvalu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TV"},{"id":"b26ee1ca-5d95-e211-a939-e4115bead28a","name":"Uganda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"UG"},{"id":"b36ee1ca-5d95-e211-a939-e4115bead28a","name":"Ukraine","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UA"},{"id":"b46ee1ca-5d95-e211-a939-e4115bead28a","name":"United Arab Emirates","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AE"},{"id":"80756b9a-5d95-e211-a939-e4115bead28a","name":"United Kingdom","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GB"},{"id":"81756b9a-5d95-e211-a939-e4115bead28a","name":"United States","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"US"},{"id":"b56ee1ca-5d95-e211-a939-e4115bead28a","name":"United States Minor Outlying Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b66ee1ca-5d95-e211-a939-e4115bead28a","name":"Uruguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"UY"},{"id":"b76ee1ca-5d95-e211-a939-e4115bead28a","name":"Uzbekistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UZ"},{"id":"b86ee1ca-5d95-e211-a939-e4115bead28a","name":"Vanuatu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VU"},{"id":"eef682ac-5d95-e211-a939-e4115bead28a","name":"Vatican City","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"VA"},{"id":"b96ee1ca-5d95-e211-a939-e4115bead28a","name":"Venezuela","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VE"},{"id":"ba6ee1ca-5d95-e211-a939-e4115bead28a","name":"Vietnam","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VN"},{"id":"bb6ee1ca-5d95-e211-a939-e4115bead28a","name":"Virgin Islands (US)","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"VI"},{"id":"34afd8d0-5d95-e211-a939-e4115bead28a","name":"Wallis and Futuna","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"36afd8d0-5d95-e211-a939-e4115bead28a","name":"Western Sahara","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":""},{"id":"37afd8d0-5d95-e211-a939-e4115bead28a","name":"Yemen","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"YE"},{"id":"38afd8d0-5d95-e211-a939-e4115bead28a","name":"Zambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZM"},{"id":"39afd8d0-5d95-e211-a939-e4115bead28a","name":"Zimbabwe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZW"}]'),business_potential_namespaceObject=JSON.parse('[{"id":"0e6f1d69-e9c3-4460-a74b-3881930fe3e9","name":"The company is an exporter with High Export Potential","disabled_on":null},{"id":"e4d74957-60a4-4eab-a17b-d4c7b792ad25","name":"The company is a Medium Sized Business","disabled_on":null},{"id":"97f5e000-37a6-4452-b2be-25ccc94e5bd3","name":"The company is not an exporter with High Export Potential or a Medium Sized Business","disabled_on":null}]');var CONTACT={id:"some-random-contact-id",companyId:"008ba003-b528-4e79-b209-49fcfcceb371",companyName:"Little Britain",firstName:"Andy",lastName:"Pipkin",jobTitle:"Unemployed",primary:!1,telephoneCountrycode:"123",telephoneNumber:"456789",email:"andy.pipkin@littlebritain.co.uk",acceptsDitEmailMarketing:!0,addressSameAsCompany:!0,address1:"Foo",address2:"Bar",addressTown:"Town",addressCounty:"County",addressPostcode:null,addressCountry:"87756b9a-5d95-e211-a939-e4115bead28a",notes:"Notes"};const _stories_tasks={"Resource example":function Resource_example(payload,id){return new Promise((function(resolve,reject){return id.match("reject")?setTimeout(reject,1e3,"Could not load resource"):setTimeout(resolve,1e3,{example:"This is a dummy resource representation example",id,payload})}))},TASK_GET_REMINDER_SUMMARY:function TASK_GET_REMINDER_SUMMARY(){return Promise.resolve("???")},Countries:function Countries(){return country_namespaceObject},BusinessPotential:function BusinessPotential(){return business_potential_namespaceObject},Contact:function Contact(){return new Promise((function(resolve,reject){Math.random()>.5?setTimeout(reject,2e3,"You broke the internet"):setTimeout(resolve,2e3,CONTACT)}))},Company:function Company(payload,id){return null!=payload&&payload.reject?new Promise((function(resolve,reject){return setTimeout(reject,2e3,"World went down")})):new Promise((function(resolve){return setTimeout((function(){return resolve({id,referenceCode:"",name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",tradingName:"",tradingNames:[],ukBased:!0,companyNumber:"BR100000",vatNumber:"",dunsNumber:null,createdOn:"2019-01-09T09:45:06.080938Z",modifiedOn:"2019-01-09T09:45:06.080969Z",archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,description:"Doloribus accusamus qui non nam et earum inventore.",transferredBy:null,transferredOn:null,transferredTo:null,transferReason:"",website:"http://jamaal.biz",businessType:{name:"UK branch of foreign company (BR)",id:"b0730fc6-fcce-4071-bdab-ba8de4f4fc98"},oneListGroupTier:null,contacts:[{id:"0e75d636-1d24-416a-aaf0-3fb220d594ce",title:null,firstName:"Bob",lastName:"lawson",name:"Bob lawson",jobTitle:"Magician",company:{name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",id:"4cd4128b-1bad-4f1e-9146-5d4678c6a018"},adviser:{name:"DBT Staff",firstName:"DBT",lastName:"Staff",id:"7d19d407-9aec-4d06-b190-d3f404627f21"},primary:!0,telephoneCountrycode:"222",telephoneNumber:"3453454",email:"contact@bob.com",addressSameAsCompany:!0,address1:null,address2:null,addressTown:null,addressCounty:null,addressCountry:null,addressPostcode:null,notes:null,acceptsDitEmailMarketing:!1,archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,createdOn:"2019-02-04T15:59:14.267412Z",modifiedOn:"2019-02-05T13:17:23.112153Z"}],employeeRange:{name:"50 to 249",id:"3fafd8d0-5d95-e211-a939-e4115bead28a"},numberOfEmployees:null,isNumberOfEmployeesEstimated:null,exportToCountries:[],futureInterestCountries:[],headquarterType:null,oneListGroupGlobalAccountManager:null,globalHeadquarters:null,sector:{name:"Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales : Bio and Pharma Retail",id:"70f7ffde-5f95-e211-a939-e4115bead28a"},turnoverRange:{name:"£1.34 to £6.7M",id:"784cd12a-6095-e211-a939-e4115bead28a"},turnover:null,isTurnoverEstimated:null,ukRegion:{name:"London",id:common_constants.UK_REGIONS.LONDON},exportExperienceCategory:null,address:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}},registeredAddress:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}}})}),2e3)}))}},Form_stories_tasks={"Load initial values":function Load_initial_values(payload){return new Promise((function(resolve,reject){return"reject"===payload?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{foo:"Blah blah",bar:"b"})}))},"Submit Form example":function Submit_Form_example(formValues){return new Promise((function(resolve,reject){return"yes"===formValues.reject?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{task:"result"})}))},"Load options":function Load_options(payload,id){return new Promise((function(resolve,reject){return id.includes("reject")?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,5e3,payload)}))}};function preview_typeof(o){return preview_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},preview_typeof(o)}var preview_templateObject;function preview_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function preview_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?preview_ownKeys(Object(t),!0).forEach((function(r){preview_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):preview_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function preview_defineProperty(e,r,t){return(r=function preview_toPropertyKey(t){var i=function preview_toPrimitive(t,r){if("object"!=preview_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=preview_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==preview_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var GlobalStyle=(0,styled_components_browser_esm.DU)(preview_templateObject||(preview_templateObject=function preview_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  body {\n    font: "," ",";\n\n    "," {\n      font: "," ",";\n    }\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.PQ,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_19,govuk_react_constants_esm.PQ),Provider=function createProvider(tasks){var history=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,esm_history.zR)(),_createReduxHistoryCo=(0,es6.a1)({history}),createReduxHistory=_createReduxHistoryCo.createReduxHistory,routerMiddleware=_createReduxHistoryCo.routerMiddleware,routerReducer=_createReduxHistoryCo.routerReducer,sagaMiddleware=(0,redux_saga_core_npm_proxy_esm.Ay)(),store=(0,redux_toolkit_modern.U1)({devTools:!1,middleware:function middleware(){return[sagaMiddleware,routerMiddleware]},preloadedState,reducer:createProvider_objectSpread(createProvider_objectSpread(createProvider_objectSpread({},lodash_default().mapValues(preloadedState,(function(){return function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}))),reducers),{},{router:routerReducer})});sagaMiddleware.run(function(tasks){return root_saga_regeneratorRuntime().mark((function rootSaga(){return root_saga_regeneratorRuntime().wrap((function rootSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(saga(tasks));case 2:return _context.next=4,(0,redux_saga_effects_npm_proxy_esm.Zy)(_callee);case 4:return _context.next=6,(0,redux_saga_effects_npm_proxy_esm.Zy)(redirect);case 6:return _context.next=8,(0,redux_saga_effects_npm_proxy_esm.Zy)(readFlashMesages);case 8:return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeFlashMessages);case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeAnnouncementLinkToLocalStorage);case 12:return _context.next=14,(0,redux_saga_effects_npm_proxy_esm.Zy)(readAnnouncementLinkFromLocalStorage);case 14:return _context.next=16,(0,redux_saga_effects_npm_proxy_esm.Zy)(readMyInvestmentsFromSession);case 16:return _context.next=18,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeMyInvestmentsToSession);case 18:return _context.next=20,(0,redux_saga_effects_npm_proxy_esm.Zy)(cookiePreferenceChangeSaga);case 20:case"end":return _context.stop()}}),rootSaga)}))}(tasks));var reduxHistory=createReduxHistory(store);return function(_ref2){var children=_ref2.children;return react.createElement(react_redux.Provider,{store},react.createElement(ConnectedReactRouter,{navigator:reduxHistory},children))}}(preview_objectSpread(preview_objectSpread(preview_objectSpread(preview_objectSpread({},tasks),_stories_tasks),Typeahead_tasks),Form_stories_tasks)),decorators=[function(Story){return react.createElement(react.Fragment,null,react.createElement(GlobalStyle,null),react.createElement(Provider,null,react.createElement(Story,null)))}]},"./src/apps/companies/apps/edit-company/client/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/apps/companies/apps/referrals/details/client/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});var ID="referralDetails"},"./src/apps/companies/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var QUERY_FIELDS_MAP={leadIta:"one_list_group_global_account_manager",archived:"archived",name:"name",sectorDescends:"sector_descends",subSectorDescends:"sub_sector_descends",country:"country",ukRegion:"uk_region",headquarterType:"headquarter_type",exportingTo:"export_to_countries",interestedIn:"future_interest_countries",lastInteractionDate:"interaction_between",ukPostcode:"uk_postcode",usState:"us_state",canadianProvince:"canadian_province",area:"area"},GLOBAL_NAV_ITEM={path:"/companies",headerKey:"datahub-companies",permissions:["company.view_company"],key:"datahub-crm",order:1},LOCAL_NAV=[{path:"overview",label:"Overview",permissions:["company.view_contact"]},{path:"activity",label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",label:"Business details"},{path:"contacts",label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",label:"Account management",ariaDescription:"Account management"},{path:"investments",label:"Investment",search:"/projects?page=1&sortby=created_on%3Adesc",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}],APP_PERMISSIONS=(0,__webpack_require__("./node_modules/lodash/lodash.js").concat)(LOCAL_NAV,GLOBAL_NAV_ITEM),QUERY_FIELDS=Object.values(QUERY_FIELDS_MAP);module.exports={GLOBAL_NAV_ITEM,LOCAL_NAV,APP_PERMISSIONS,QUERY_FIELDS,QUERY_FIELDS_MAP,NONE_TEXT:"None",NOT_SET_TEXT:"Not set",NOT_AVAILABLE_TEXT:"Not available"}},"./src/apps/transformers.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),filter=_require.filter,upperFirst=_require.upperFirst,_require2=__webpack_require__("./src/client/utils/date.js"),format=_require2.format,isDateValid=_require2.isDateValid,_require3=__webpack_require__("./src/common/constants.js"),OPTION_NO=_require3.OPTION_NO,OPTION_YES=_require3.OPTION_YES,groupExportCountries=__webpack_require__("./src/lib/group-export-countries.js");function transformObjectToOption(_ref){return{value:_ref.id,label:_ref.name}}var transformOptionToValue=function transformOptionToValue(option){return option&&option.value?option.value:null};module.exports={transformObjectToOption,transformExportCountriesToGroupStatus:function transformExportCountriesToGroupStatus(countries){return groupExportCountries(countries)},transformContactToOption:function transformContactToOption(_ref2){var id=_ref2.id,first_name=_ref2.first_name,last_name=_ref2.last_name,job_title=_ref2.job_title;return{value:id,label:upperFirst(filter(["".concat(first_name," ").concat(last_name),job_title]).join(", "))}},transformCountryToOptionWithIsoCode:function transformCountryToOptionWithIsoCode(_ref3){return{key:_ref3.id,label:_ref3.name,value:_ref3.iso_alpha2_code}},transformDateObjectToDateString:function transformDateObjectToDateString(key){if(!key)throw Error("date object key is required to transform date");return function transformDateObjectToStringWithKey(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},dateString=["year","month","day"].map((function(x){return props["".concat(key,"_").concat(x)]})).join("-");return"--"===dateString?null:dateString}},transformDateStringToDateObject:function transformDateStringToDateObject(dateString){var isValidDate=dateString&&isDateValid(dateString);return{year:isValidDate?format(dateString,"yyyy"):"",month:isValidDate?format(dateString,"MM"):"",day:isValidDate?format(dateString,"dd"):""}},transformOptionToValue,transformArrayOfOptionsToValues:function transformArrayOfOptionsToValues(options){return options&&options.length?options.map(transformOptionToValue):[]},transformToYesNo:function transformToYesNo(value){return value?OPTION_YES:OPTION_NO},transformToID:function transformToID(value){return value?Array.isArray(value)?value.map((function(optionFromArrayOfOptions){return optionFromArrayOfOptions.id})):value.id:value},transformObjectToTypeahead:function transformObjectToTypeahead(value){return value?Array.isArray(value)?value.map(transformObjectToOption):transformObjectToOption(value):value}}},"./src/client/actions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$ah:()=>MY_INVESTMENTS__ADD_TO_STATE,$ft:()=>COMPANIES__METADATA_LOADED,$rh:()=>FLASH_MESSAGE__WRITE_TO_SESSION,A3K:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED,AIi:()=>INTERACTIONS_SELECTED_ADVISERS,AJt:()=>EVENTS__ATTENDEE_METADATA_LOADED,ATq:()=>INVESTMENTS__SET_PROJECTS_METADATA,Amb:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED,BEj:()=>INVESTMENT__COMPANY_SEARCH_TERM,BRO:()=>INVESTMENTS__PROJECTS_SELECTED_ADVISERS,BUu:()=>ORDERS__METADATA_LOADED,CuW:()=>MY_INVESTMENTS__SAVE_TO_SESSION,EGH:()=>TASK__START,EJT:()=>CONTACT_FORM__SUBMIT,EPX:()=>INVESTMENT_OPPORTUNITY_DETAILS__LOADED,Edz:()=>LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE,F0b:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED,F0x:()=>INTERACTION__ESS_DETAILS_LOADED,F8v:()=>LATEST_ANNOUNCEMENT__UPDATE_STATE,FN9:()=>OVERVIEW__EXPORT_WINS_SUMMARY,F__:()=>COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED,Fd_:()=>MY_INVESTMENTS__PAGINATION_CLICK,Fxn:()=>INVESTMENTS__PROJECTS_LOADED,G2D:()=>FORM__GO_TO_STEP,GAr:()=>TASK__ERROR,GD3:()=>MY_INVESTMENTS__GET_FROM_SESSION,GqW:()=>TYPEAHEAD__INPUT,Hfi:()=>COMPANY_LISTS__COMPANIES_LOADED,Hks:()=>REMINDER_SUMMARY__LOADED,HmC:()=>TOGGLE_SECTION__TOGGLE,I0G:()=>FORM__STEP_DEREGISTER,IDk:()=>FORM__LOADED,ILj:()=>INVESTMENTS__OPPORTUNITIES_LOADED,Ijb:()=>FLASH_MESSAGE__ADD_TO_STATE,Im2:()=>REFERRAL_LIST__LOADED,IpB:()=>COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED,J1h:()=>INVESTMENT_OPPORTUNITY__UPDATED,J4U:()=>FORM__FIELD_REGISTER,J6l:()=>DATA_HUB_FEED__FETCHED,JPR:()=>EVENTS__LOADED,JlV:()=>MY_INVESTMENTS__LAND_DATE_CHANGE,KQv:()=>TASK__CANCEL,KZ$:()=>SEND_REFERRAL_FORM__SUBMIT,Kk0:()=>EVENTS__DETAILS_LOADED,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,lZg:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED,mDK:()=>REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED,mKW:()=>TAB_NAV__FOCUS,mQv:()=>COMPANY_ACTIVITIES_SELECTED_COMPANIES,n7E:()=>FORM__FIELDS__RESET,nAW:()=>COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER,n_2:()=>TASK__CLEAR,nrO:()=>INTERACTIONS__METADATA_LOADED,ntj:()=>HARD_REDIRECT,nzr:()=>CONTACTS__ACTIVITIES_LOADED,oO0:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED,oWe:()=>FORM__FORWARD,p8B:()=>TASK__PROGRESS,pJE:()=>COMPANY_ACTIVITIES__LOADED,qLf:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT,rNT:()=>MY_INVESTMENTS__SHOW_DETAILS_CHANGE,rTD:()=>DNB__CHECK_PENDING_REQUEST,rpz:()=>INTERACTIONS_SELECTED_TEAMS,s7n:()=>INTERACTION__LOADED,sT5:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT,spP:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED,szG:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED,tgm:()=>TYPEAHEAD__SET_ACTIVE_OPTION,ttR:()=>MY_INVESTMENTS__STATUS_CHANGE,vMs:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED,vdS:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED,vl8:()=>FLASH_MESSAGE__GET_FROM_SESSION,vlr:()=>EVENTS__METADATA_LOADED,whB:()=>OBJECTIVE_LOADED,wwH:()=>EVENTS__SELECTED_ORGANISER,xOm:()=>FIELD_ADD_ANOTHER__REMOVE,y3g:()=>TYPEAHEAD__OPTION_TOGGLE,yKw:()=>EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED,yMX:()=>FIELD_ADD_ANOTHER__ADD,yQE:()=>MY_INVESTMENTS__LIST_LOADED,zT4:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT,zTo:()=>EXPORTS_HISTORY__SELECT_PAGE,z_g:()=>ROUTED_INPUT__SELECT,zdr:()=>EXPORT_LOADED,zp:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT,zsc:()=>DNB_FAMILY_TREE_LOADED,zuV:()=>FORM__VALIDATE});var INTERACTIONS__LOADED="INTERACTIONS__LOADED",INTERACTIONS__METADATA_LOADED="INTERACTIONS__METADATA_LOADED",INTERACTIONS_SELECTED_ADVISERS="INTERACTIONS_SELECTED_ADVISERS",INTERACTIONS_SELECTED_COMPANIES="INTERACTIONS_SELECTED_COMPANIES",INTERACTIONS_SELECTED_TEAMS="INTERACTIONS_SELECTED_TEAMS",COMPANIES__LOADED="COMPANIES__LOADED",COMPANIES__METADATA_LOADED="COMPANIES__METADATA_LOADED",COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER="COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER",COMPANIES__SELECTED_ADVISERS="COMPANIES__SELECTED_ADVISERS",COMPANY_LISTS__LISTS_LOADED="COMPANY_LISTS__LISTS_LOADED",COMPANY_LISTS__SELECT="COMPANY_LISTS__SELECT",COMPANY_LISTS__COMPANIES_LOADED="COMPANY_LISTS__COMPANIES_LOADED",COMPANY_LISTS__FILTER="COMPANY_LISTS__FILTER",COMPANY_LISTS__ORDER="COMPANY_LISTS__ORDER",CONTACTS__LOADED="CONTACTS__LOADED",CONTACTS__METADATA_LOADED="CONTACTS__METADATA_LOADED",CONTACTS__ACTIVITIES_LOADED="CONTACTS__ACTIVITIES_LOADED",ORDERS__LOADED="ORDERS__LOADED",ORDERS__METADATA_LOADED="ORDERS__METADATA_LOADED",EVENTS__LOADED="EVENTS__LOADED",EVENTS__METADATA_LOADED="EVENTS__METADATA_LOADED",EVENTS__SELECTED_ORGANISER="EVENTS__SELECTED_ORGANISER",EVENTS__DETAILS_LOADED="EVENTS__DETAILS_LOADED",EVENTS__AVENTRI_DETAILS_LOADED="EVENTS__AVENTRI_DETAILS_LOADED",EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED="EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED",EVENTS__SEARCH_ATTENDEE_LIST_LOADED="EVENTS__SEARCH_ATTENDEE_LIST_LOADED",EVENTS__ATTENDEE_METADATA_LOADED="EVENTS__ATTENDEE_METADATA_LOADED",INTERACTION__ESS_DETAILS_LOADED="INTERACTION__ESS_DETAILS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED="REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT",REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED="REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT="REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT",REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED="REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_OVERDUE_REMINDERS_LOADED="REMINDERS__TASK_OVERDUE_REMINDERS_LOADED",REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT="REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT",REMINDERS__TASK_OVERDUE_REMINDERS_DELETED="REMINDERS__TASK_OVERDUE_REMINDERS_DELETED",REMINDERS__TASK_COMPLETED_REMINDERS_LOADED="REMINDERS__TASK_COMPLETED_REMINDERS_LOADED",REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT="REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT",REMINDERS__TASK_COMPLETED_REMINDERS_DELETED="REMINDERS__TASK_COMPLETED_REMINDERS_DELETED",REFERRAL_DETAILS="REFERRAL_DETAILS",TASK__START="TASK__START",TASK__PROGRESS="TASK__PROGRESS",TASK__CANCEL="TASK__CANCEL",TASK__ERROR="TASK__ERROR",TASK__DISMISS_ERROR="TASK__DISMISS_ERROR",TASK__CLEAR="TASK__CLEAR",EXPORTS_HISTORY__LOADED="EXPORTS_HISTORY__LOADED",EXPORTS_HISTORY__SELECT_PAGE="EXPORTS_HISTORY__SELECT_PAGE",TAB_NAV__SELECT="TAB_NAV__SELECT",TAB_NAV__FOCUS="TAB_NAV__FOCUS",SEND_REFERRAL_FORM__SUBMIT="SEND_REFERRAL_FORM__SUBMIT",REFERRAL_LIST__LOADED="REFERRAL_LIST__LOADED",REFERRAL_LIST__FILTER_CHANGE="REFERRAL_LIST__FILTER_CHANGE",FORM__LOADED="FORM__LOADED",FORM__FIELD_SET_VALUE="FORM__FIELD_SET_VALUE",FORM__FIELD_TOUCHED="FORM__FIELD_TOUCHED",FORM__FIELD_REGISTER="FORM__FIELD_REGISTER",FORM__FIELD_DEREGISTER="FORM__FIELD_DEREGISTER",FORM__STEP_REGISTER="FORM__STEP_REGISTER",FORM__STEP_DEREGISTER="FORM__STEP_DEREGISTER",FORM__FIELDS__RESET="FORM__FIELDS__RESET",FORM__FORWARD="FORM__FORWARD",FORM__BACK="FORM__BACK",FORM__GO_TO_STEP="FORM__GO_TO_STEP",FORM__VALIDATE="FORM__VALIDATE",FORM__RESOLVED="FORM__RESOLVED",FORM__ERRORED="FORM__ERRORED",ANALYTICS__PUSH="ANALYTICS__PUSH",DNB__CHECK_PENDING_REQUEST="DNB__CHECK_PENDING_REQUEST",TOGGLE_SECTION__TOGGLE="TOGGLE_SECTION__TOGGLE",INVESTMENTS__PROJECTS_LOADED="INVESTMENTS__PROJECTS_LOADED",INVESTMENTS__PROJECTS_SELECTED_ADVISERS="INVESTMENTS__PROJECTS_SELECTED_ADVISERS",INVESTMENTS__PROFILES_LOADED="INVESTMENTS__PROFILES_LOADED",INVESTMENTS__SET_PROJECTS_METADATA="INVESTMENTS__SET_PROJECTS_METADATA",INVESTMENT__SEARCH_COMPANY_LIST_LOADED="INVESTMENT__SEARCH_COMPANY_LIST_LOADED",INVESTMENT__COMPANY_INVESTMENT_COUNT="INVESTMENT__COMPANY_INVESTMENT_COUNT",INVESTMENT__COMPANY_SEARCH_TERM="INVESTMENT__COMPANY_SEARCH_TERM",INVESTMENTS_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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);e<a;e++)n[e]=r[e];return n}const __WEBPACK_DEFAULT_EXPORT__=function useAdministrativeAreasSearch(areaSearchCallback){var _useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null),2),administrativeAreaList=_useState2[0],setAdministrativeAreaList=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null),2),administrativeAreaSearchError=_useState4[0],setAdministrativeAreaSearchError=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(!1),2),isSubmitting=_useState6[0],setIsSubmitting=_useState6[1];function _onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch=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,_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.prev=1,setIsSubmitting(!0),setAdministrativeAreaSearchError(null),_context.t0=setAdministrativeAreaList,_context.next=7,areaSearchCallback(countryId);case 7:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=15;break;case 11:_context.prev=11,_context.t2=_context.catch(1),setAdministrativeAreaList(null),setAdministrativeAreaSearchError("Error occurred while searching for an administrative area.");case 15:return _context.prev=15,setIsSubmitting(!1),_context.finish(15);case 18:case"end":return _context.stop()}}),_callee,null,[[1,11,15,18]])}))),_onAdministrativeAreaSearch.apply(this,arguments)}return{administrativeAreaSearchError,administrativeAreaList,isAreaFilterSubmitting:isSubmitting,onAdministrativeAreaSearch:function onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch.apply(this,arguments)}}}},"./src/client/components/Analytics/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/actions.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.connect)()((function(_ref){var children=_ref.children,dispatch=_ref.dispatch;return children((function(_ref2){var category=_ref2.category,action=_ref2.action,label=_ref2.label,extra=_ref2.extra,_ref2$event=_ref2.event,event=void 0===_ref2$event?"gaEvent":_ref2$event;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_1__.bVo,category,action,label,extra,event})}))}))},"./src/client/components/ArchivePanel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_utils_date__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/date.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var negativeSpacing="-"+_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_4,StyledMain=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding-top: ",";\n  div {\n    font-size: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.SG.SIZE_20),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("p")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.sO.bold),StyledReason=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(StyledMessage)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),negativeSpacing),ArchivePanel=function ArchivePanel(_ref){var _ref$archivedBy=_ref.archivedBy,archivedBy=void 0===_ref$archivedBy?null:_ref$archivedBy,archivedOn=_ref.archivedOn,archiveReason=_ref.archiveReason,unarchiveUrl=_ref.unarchiveUrl,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?null:_ref$onClick,type=_ref.type,_ref$archiveMessage=_ref.archiveMessage,archiveMessage=void 0===_ref$archiveMessage?"archived":_ref$archiveMessage;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMain,{"data-test":"archive-panel"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__.A,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMessage,{"data-test":"archive-message"},archivedBy?"This ".concat(type," was ").concat(archiveMessage," on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn)," by ").concat(function checkArchiverFormat(archivedBy){return"string"==typeof archivedBy?archivedBy:"".concat(archivedBy.first_name||archivedBy.firstName," ").concat(archivedBy.last_name||archivedBy.lastName)}(archivedBy),"."):"This ".concat(type," was automatically archived on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn),".")),react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledReason,{"data-test":"archive-reason"},"Reason: ".concat(archiveReason)),unarchiveUrl&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__.A,{"data-test":"unarchive-link",onClick,href:unarchiveUrl},"Unarchive")))};ArchivePanel.propTypes={archivedBy:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,prop_types__WEBPACK_IMPORTED_MODULE_11___default().object]),archivedOn:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,archiveReason:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,unarchiveUrl:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_11___default().func,type:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=ArchivePanel;ArchivePanel.__docgenInfo={description:"An extension of `StatusMessage` that is used to denote whether a record has been archived.",methods:[],displayName:"ArchivePanel",props:{archivedBy:{defaultValue:{value:"null",computed:!1},description:"An object containg the first and last name of the person who archived the record. If this is not defined, the automatic archive text will appear.",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},onClick:{defaultValue:{value:"null",computed:!1},description:"This is used when the unarchive link needs to contain an `onClick` event (such as displaying a flash message).",type:{name:"func"},required:!1},archiveMessage:{defaultValue:{value:"'archived'",computed:!1},required:!1},archivedOn:{description:"The date the record was archived.",type:{name:"string"},required:!0},archiveReason:{description:"The reason why the record was archived.",type:{name:"string"},required:!0},unarchiveUrl:{description:"The URL to unarchive the record.",type:{name:"string"},required:!1},type:{description:"The type of record.",type:{name:"string"},required:!0}}}},"./src/client/components/Badge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledBadge=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  border-radius: 4px;\n  padding: 2px 4px;\n  font-size: ",";\n  white-space: nowrap;\n  color: ",";\n"])),(function(_ref){var borderColour=_ref.borderColour;return"2px solid ".concat(borderColour)}),(function(props){return props.fontSize?props.fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14}),(function(props){return props.textColour?props.textColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF})),Badge=function Badge(_ref2){var label=_ref2.label,_ref2$borderColour=_ref2.borderColour,borderColour=void 0===_ref2$borderColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Pe:_ref2$borderColour,_ref2$textColour=_ref2.textColour,textColour=void 0===_ref2$textColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF:_ref2$textColour,_ref2$fontSize=_ref2.fontSize,fontSize=void 0===_ref2$fontSize?_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14:_ref2$fontSize,children=_ref2.children;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledBadge,{"data-test":"badge",borderColour,textColour,fontSize},label&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,null,label),children)};Badge.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,fontSize:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Badge;Badge.__docgenInfo={description:"A component to display the type of an element.",methods:[],displayName:"Badge",props:{borderColour:{defaultValue:{value:"'#bfc1c3'",computed:!1},description:"A custom colour for the border.",type:{name:"string"},required:!1},textColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},description:"A custom colour for the badge text.",type:{name:"string"},required:!1},fontSize:{defaultValue:{value:"FONT_SIZE.SIZE_14",computed:!0},description:"A custom size for the text of the badge.",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},children:{description:"The text that will be displayed on the badge.",type:{name:"node"},required:!0}}}},"./src/client/components/ButtonLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A).attrs((function(props){return props}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  &,\n  &:hover,\n  &:focus {\n    background: transparent;\n    box-shadow: none;\n    color: ",";\n    cursor: pointer;\n    text-decoration: underline;\n    ","\n  }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__.yV,(function(props){return props.inline&&"\n      padding: 0;\n      margin: 0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_1,";\n      border: 0;\n      width: auto;\n      font: inherit;\n    ")}))},"./src/client/components/Checkbox/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["onChange","name","initialChecked","value"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}var StyledGovCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_19__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_17__.Sc)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n"])),(function(props){return props.reduced&&"\n      padding: 8px 0 8px 33px !important;\n      min-height: auto;\n      margin-bottom: 1px;\n\n      input {\n        width: 18px;\n        height: 18px;\n      }\n      input + span {\n        padding: 0;\n        &:before {\n          margin: 8px 0 0 8px;\n          height: 18px;\n          width: 18px;\n          border-width: 1px;\n        }\n        &:after {\n          border-width: 0 0 2px 2px;\n          width: 10px;\n          height: 5px;\n          left: 11px;\n        }\n      }\n      input + span + span {\n        padding-left: 0;\n        font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__._m.S,"px;\n      }\n    ")})),Checkbox=function Checkbox(_ref){var _onChange=_ref.onChange,name=_ref.name,_ref$initialChecked=_ref.initialChecked,initialChecked=void 0!==_ref$initialChecked&&_ref$initialChecked,value=_ref.value,props=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_16__.useState)(initialChecked),2),checked=_useState2[0],setChecked=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_16__.useEffect)((function(){return setChecked(initialChecked)}),[initialChecked]),react__WEBPACK_IMPORTED_MODULE_16__.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;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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)||_unsupportedIterableToArray(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 _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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),pluralize__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(pluralize__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["totalItems","collectionName","addItemUrl","shouldPluralize"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeaderText=(0,styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_9__.H2)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-weight: normal;\n  font-size: ","px;\n  margin-bottom: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_10__.iU.MEDIUM),StyledLink=styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledResultCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  font-size: 36px;\n  font-weight: 600;\n  line-height: 1;\n"])));function CollectionHeader(_ref){var totalItems=_ref.totalItems,_ref$collectionName=_ref.collectionName,collectionName=void 0===_ref$collectionName?"result":_ref$collectionName,addItemUrl=_ref.addItemUrl,_ref$shouldPluralize=_ref.shouldPluralize,shouldPluralize=void 0===_ref$shouldPluralize||_ref$shouldPluralize,rest=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),formattedTotal=(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_13__._)(totalItems),counterSuffix=shouldPluralize?pluralize__WEBPACK_IMPORTED_MODULE_8___default()(collectionName,totalItems):collectionName,actions=addItemUrl&&react__WEBPACK_IMPORTED_MODULE_6__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_7__.A,{as:StyledLink,href:addItemUrl,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName);return react__WEBPACK_IMPORTED_MODULE_6__.createElement(_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,_extends({primary:!0,actions},rest),react__WEBPACK_IMPORTED_MODULE_6__.createElement(StyledHeaderText,{"data-test":"collection-header-name"},react__WEBPACK_IMPORTED_MODULE_6__.createElement(StyledResultCount,{"data-test":"collection-count"},formattedTotal)," ".concat(counterSuffix)))}CollectionHeader.propTypes={totalItems:prop_types__WEBPACK_IMPORTED_MODULE_15___default().number.isRequired,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_15___default().string.isRequired,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_15___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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["primary","actions","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledRowWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  display: flex;\n  flex-flow: row wrap;\n  align-items: center;\n  font-size: ",";\n  padding: "," 0;\n  border-bottom: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_2,(function(_ref){return _ref.primary?"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_1," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Uv):"1px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Pe)})),StyledActions=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  width: 100%;\n  margin-top: ",";\n\n  "," {\n    margin-top: 0;\n    margin-left: ",";\n    display: flex;\n    justify-content: flex-end;\n    flex-basis: 0;\n    flex-grow: 1;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_1),CollectionHeaderRow=function CollectionHeaderRow(_ref2){var primary=_ref2.primary,actions=_ref2.actions,children=_ref2.children,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledRowWrapper,_extends({primary},rest),children,actions&&react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledActions,null,actions))};CollectionHeaderRow.propTypes={primary:prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool,actions:prop_types__WEBPACK_IMPORTED_MODULE_11___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_11___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.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 RoutedSelect=function RoutedSelect(_ref){var qsParamName=_ref.qsParamName,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},CollectionSort_extends.apply(null,arguments)}var StyledSpan=(0,styled_components_browser_esm.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  color: ",";\n"])),colours.hM),CollectionSort=function CollectionSort(_ref){var sortOptions=_ref.sortOptions,totalPages=_ref.totalPages,props=function CollectionSort_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function CollectionSort_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<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var CollectionList=function CollectionList(_ref){var _ref$results=_ref.results,results=void 0===_ref$results?[]:_ref$results,_ref$itemsPerPage=_ref.itemsPerPage,itemsPerPage=void 0===_ref$itemsPerPage?10:_ref$itemsPerPage,sortOptions=_ref.sortOptions,taskProps=_ref.taskProps,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,isComplete=_ref.isComplete,_ref$collectionName=_ref.collectionName,collectionName=void 0===_ref$collectionName?"result":_ref$collectionName,items=_ref.items,_ref$activePage=_ref.activePage,activePage=void 0===_ref$activePage?1:_ref$activePage,onPageClick=_ref.onPageClick,_ref$maxItemsToPagina=_ref.maxItemsToPaginate,maxItemsToPaginate=void 0===_ref$maxItemsToPagina?1e4:_ref$maxItemsToPagina,maxItemsToDownload=_ref.maxItemsToDownload,baseDownloadLink=_ref.baseDownloadLink,entityName=_ref.entityName,entityNamePlural=_ref.entityNamePlural,addItemUrl=_ref.addItemUrl,metadataRenderer=_ref.metadataRenderer,footerRenderer=_ref.footerRenderer,_ref$collectionItemTe=_ref.collectionItemTemplate,collectionItemTemplate=void 0===_ref$collectionItemTe?null:_ref$collectionItemTe,totalPages=Math.ceil(Math.min(count,maxItemsToPaginate)/itemsPerPage);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_4__.TW,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_4__.bn,{setWidth:"full"},react__WEBPACK_IMPORTED_MODULE_3__.createElement("article",null,isComplete&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.SG,{totalItems:count,collectionName,addItemUrl,"data-test":"collection-header"}),sortOptions&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.xG,{sortOptions,totalPages}),baseDownloadLink&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.Jd,{count,maxItems:maxItemsToDownload,"data-test":"download-data-header",baseDownloadLink,entityName,entityNamePlural}),react__WEBPACK_IMPORTED_MODULE_3__.createElement("ol",{"aria-live":"polite"},items.map((function(item,index){return collectionItemTemplate?collectionItemTemplate(item):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.G1,{key:[count,activePage,index].join("-"),headingUrl:item.headingUrl,headingText:item.headingText,subheading:item.subheading,badges:item.badges,metadata:item.metadata,metadataRenderer,buttons:item.buttons,footerRenderer,footerdata:item.footerdata})}))),taskProps&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_client_components_Task__WEBPACK_IMPORTED_MODULE_5__.A.Status,taskProps,(function(){return isComplete&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement("ol",null,results.map((function(item,i){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.G1,_extends({},item,{key:i}))}))))})),react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.dK,{totalPages,onPageClick,activePage}))))};CollectionList.propTypes={taskProps:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({name:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,progressMessage:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,startOnRender:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({payload:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({page:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,filters:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object,search:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string}).isRequired,onSuccessDispatch:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string}).isRequired}),isComplete:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,router:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({location:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({search:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,query:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})}),maxItemsToPaginate:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,maxItemsToDownload:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,onPageClick:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,metadataRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,footerRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=CollectionList;CollectionList.__docgenInfo={description:"",methods:[],displayName:"CollectionList",props:{results:{defaultValue:{value:"[]",computed:!1},required:!1},itemsPerPage:{defaultValue:{value:"10",computed:!1},required:!1},count:{defaultValue:{value:"0",computed:!1},required:!1},collectionName:{defaultValue:{value:"'result'",computed:!1},description:"",type:{name:"string"},required:!1},activePage:{defaultValue:{value:"1",computed:!1},required:!1},maxItemsToPaginate:{defaultValue:{value:"10000",computed:!1},description:"",type:{name:"number"},required:!1},collectionItemTemplate:{defaultValue:{value:"null",computed:!1},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1},id:{name:"string",required:!1},progressMessage:{name:"string",required:!1},startOnRender:{name:"shape",value:{payload:{name:"shape",value:{page:{name:"number",required:!1},filters:{name:"object",required:!1},search:{name:"string",required:!1}},required:!0},onSuccessDispatch:{name:"string",required:!1}},required:!0}}},required:!1},isComplete:{description:"",type:{name:"bool"},required:!1},children:{description:"",type:{name:"node"},required:!1},router:{description:"",type:{name:"shape",value:{location:{name:"shape",value:{search:{name:"string",required:!0},query:{name:"object",required:!0}},required:!1}}},required:!1},maxItemsToDownload:{description:"",type:{name:"number"},required:!1},onPageClick:{description:"",type:{name:"func"},required:!1},addItemUrl:{description:"",type:{name:"string"},required:!1},metadataRenderer:{description:"",type:{name:"func"},required:!1},footerRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/CompanyLists/Filters.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js"),_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["router"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="getMyTasks",TASK_GET_MY_TASKS="TASK_GET_MY_TASKS",areFiltersActive=function areFiltersActive(queryParams){var filters=(0,lodash__WEBPACK_IMPORTED_MODULE_18__.omitBy)(queryParams,(function(filterValue,filterName){return"all-statuses"===filterValue||"page"===filterName}));return!(0,lodash__WEBPACK_IMPORTED_MODULE_18__.isEmpty)(filters)},sortbyMapping={due_date:"due_date:asc",recently_updated:"modified_on:desc",least_recently_updated:"modified_on:asc",company_ascending:"company.name:asc",project_ascending:"investment_project.name:asc"},statusMapping={active:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__.X.ACTIVE},completed:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__.X.COMPLETED}},state2props=function state2props(_ref){var router=_ref.router,state=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),queryParams=(0,_client_utils_url__WEBPACK_IMPORTED_MODULE_19__.g)(router.location),currentAdviserId=state.currentAdviserId,payload=_objectSpread(_objectSpread({},queryParams),{},{page:(0,_client_utils_pagination__WEBPACK_IMPORTED_MODULE_20__.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_21__.sl.value&&(payload.company=queryParams.company),queryParams.project&&queryParams.project!==_constants__WEBPACK_IMPORTED_MODULE_21__.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_21__.l4},createdBy:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.l4},sortby:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.P$},status:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.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.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),["id"]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var _templateObject,Task=__webpack_require__("./src/client/components/Task/index.jsx"),NotificationBadge=__webpack_require__("./src/client/components/NotificationBadge/index.jsx");var StyledNotificationAlertNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: flex;\n  min-width: 42px;\n  outline: none;\n  text-decoration: none;\n"]))),StyledShape=(0,styled_components_browser_esm.Ay)(NotificationBadge.yp)({position:"relative",top:-2,left:-7}),StyledBellIcon=(0,styled_components_browser_esm.Ay)((function(_ref){var id=_ref.id,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 COMMUNITY_PATHNAME=__webpack_require__.n(urls)().community.index(),googleAnalyticsUTM=lib_default().stringify({utm_source:"Data Hub",utm_medium:"referral",utm_campaign:"dataflow",utm_content:"Switch to Data Workspace"}),Layout=styled_components_browser_esm.Ay.div({maxWidth:960,marginLeft:"auto",marginRight:"auto"}),RootContainer=styled_components_browser_esm.Ay.div(_defineProperty({display:"inline-flex",alignItems:"center",justifyContent:"space-between",width:"calc(100% - 40px)",padding:"7px 25px 7px 15px"},govuk_react_constants_esm.qs.DESKTOP,{padding:"7px 0",width:"100%"})),Container=styled_components_browser_esm.Ay.div((function(_ref){var hasFeatureGroup=_ref.hasFeatureGroup;return _defineProperty({display:"inline-flex",alignItems:"center",justifyContent:"space-between"},govuk_react_constants_esm.qs.DESKTOP,_objectSpread({whiteSpace:"nowrap"},hasFeatureGroup&&{width:300}))})),DataHubContainer=(0,styled_components_browser_esm.Ay)("div")({display:"inline-flex",alignItems:"center",gap:10}),StyledLogoNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)({"&:link, &:visited":{fontSize:30,fontWeight:govuk_react_constants_esm.sO.bold,color:colours.UE,textDecoration:"none",boxShadow:"none",outline:"none","&::after":{content:'" "'},":focus":{color:colours.Uv,background:colours.Iz}}}),BetaTag=styled_components_browser_esm.Ay.strong({color:colours.UE,border:"none",lineHeight:1.25,letterSpacing:1,padding:"3px 8px",textDecoration:"none",textTransform:"uppercase",fontSize:govuk_react_constants_esm.SG.SIZE_14,fontWeight:govuk_react_constants_esm.sO.bold,backgroundColor:colours._G}),NavigationLink=styled_components_browser_esm.Ay.a((function(_ref3){var hasFeatureGroup=_ref3.hasFeatureGroup;return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({color:colours.UE,display:"none",marginLeft:"20px",marginRight:"20px","-webkit-font-smoothing":"antialiased"},govuk_react_constants_esm.qs.TABLET,{display:"block",marginRight:hasFeatureGroup?20:0}),"fontWeight",govuk_react_constants_esm.sO.bold),"textDecoration","none"),":focus",{color:colours.Uv,background:colours.Iz}),":visited",{color:colours.UE}),":hover",{textDecoration:"underline",textDecorationThickness:"3px",textUnderlineOffset:".1em"})})),MobileMenuButton=styled_components_browser_esm.Ay.button((function(_ref5){var showVerticalNav=_ref5.showVerticalNav;return _defineProperty({fontWeight:400,fontSize:govuk_react_constants_esm.SG.SIZE_14,marginLeft:15,padding:0,border:0,color:colours.UE,background:"0 0",outline:"none",":focus":{color:colours.Uv,background:colours.Iz},"&::after":_objectSpread({content:'""',display:"inline-block",width:0,height:0,borderStyle:"solid",borderColor:"transparent",borderBottomColor:"inherit",borderTopColor:"inherit",marginLeft:govuk_react_constants_esm.Es.SCALE_1},showVerticalNav?{clipPath:"polygon(50% 0, 0 100%, 100% 100%)",borderWidth:"0 5px 8px 5px"}:{clipPath:"polygon(0 0, 50% 100%, 100% 0)",borderWidth:"8px 5px 0 5px"})},govuk_react_constants_esm.qs.TABLET,{display:"none"})})),DataHubBar=function DataHubBar(_ref7){var onShowVerticalNav=_ref7.onShowVerticalNav,showVerticalNav=_ref7.showVerticalNav,hasFeatureGroup=_ref7.hasFeatureGroup;return react.createElement(Layout,null,react.createElement(RootContainer,null,react.createElement(DataHubContainer,null,react.createElement(govuk_react_visually_hidden_esm.A,null,"Department for Business and Trade"),react.createElement(StyledLogoNavLink,{as:"a",href:"/"},"Data Hub"),react.createElement(BetaTag,null,"beta")),react.createElement(Container,{hasFeatureGroup},react.createElement(NavigationLink,{"data-test":"crm-community-link",hasFeatureGroup,showVerticalNav,href:COMMUNITY_PATHNAME},"CRM community"),react.createElement(NavigationLink,{hasFeatureGroup,showVerticalNav,href:"https://data.trade.gov.uk?".concat(googleAnalyticsUTM)},"Switch to Data Workspace"),react.createElement(components_NotificationAlert,null),react.createElement(MobileMenuButton,{showVerticalNav,onClick:function onClick(){return onShowVerticalNav(!showVerticalNav)},role:"button","aria-expanded":showVerticalNav,"aria-label":"Show or hide navigation","aria-controls":"navigation sub-navigation logo-navigation"},"Menu"))))};DataHubBar.propTypes={onShowVerticalNav:prop_types_default().func.isRequired,showVerticalNav:prop_types_default().bool.isRequired,hasFeatureGroup:prop_types_default().bool.isRequired};const DataHubHeader_DataHubBar=DataHubBar;DataHubBar.__docgenInfo={description:"",methods:[],displayName:"DataHubBar",props:{onShowVerticalNav:{description:"",type:{name:"func"},required:!0},showVerticalNav:{description:"",type:{name:"bool"},required:!0},hasFeatureGroup:{description:"",type:{name:"bool"},required:!0}}};__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var react_router_dist=__webpack_require__("./node_modules/react-router/dist/index.js"),ProtectedLink=__webpack_require__("./src/client/components/ProtectedLink/index.jsx");const links=[{label:"Companies",module:"datahub:companies",useRouter:!0,to:{pathname:"/companies",search:"?archived[0]=false&sortby=modified_on:desc&page=1"}},{label:"Contacts",module:"datahub:contacts",useRouter:!0,to:{pathname:"/contacts",search:"?archived[0]=false&sortby=modified_on:desc&page=1"}},{label:"Events",module:"datahub:events",useRouter:!0,to:{pathname:"/events",search:"?page=1&sortby=modified_on:desc"}},{label:"Interactions",module:"datahub:interactions",useRouter:!0,to:{pathname:"/interactions",search:"?sortby=date:desc&page=1"}},{label:"Investments",module:"datahub:investments",useRouter:!1,to:{pathname:"/investments",search:"?page=1&sortby=created_on:desc"}},{label:"Orders",module:"datahub:orders",useRouter:!0,to:{pathname:"/omis",search:"?page=1&sortby=created_on:desc"}},{label:"Find exporters",module:"find-exporters",useRouter:!1,to:{pathname:"https://data.trade.gov.uk/datasets/4a0da123-a933-4250-90b5-df5cde34930b"}},{label:"Market access",module:"market-access",useRouter:!1,to:{pathname:"https://market-access.trade.gov.uk/"}}];function NavBar_typeof(o){return NavBar_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},NavBar_typeof(o)}var NavBar_excluded=["label","useRouter","module","to"];function NavBar_extends(){return NavBar_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},NavBar_extends.apply(null,arguments)}function NavBar_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function NavBar_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?NavBar_ownKeys(Object(t),!0).forEach((function(r){NavBar_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NavBar_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function NavBar_defineProperty(e,r,t){return(r=function NavBar_toPropertyKey(t){var i=function NavBar_toPrimitive(t,r){if("object"!=NavBar_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=NavBar_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==NavBar_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledNavContainer=styled_components_browser_esm.Ay.div({position:"relative",backgroundColor:colours.Uv,lineHeight:1.5}),StyledNav=styled_components_browser_esm.Ay.nav({backgroundColor:colours.ej,fontWeight:govuk_react_constants_esm.sO.bold}),StyledList=styled_components_browser_esm.Ay.ul(NavBar_defineProperty({margin:0,maxWidth:960,marginLeft:"auto",marginRight:"auto",position:"relative",listStyle:"none",boxSizing:"content-box",padding:"0 ".concat(govuk_react_constants_esm.Es.SCALE_3),display:function display(_ref){return _ref.showVerticalNav?"block":"none"}},govuk_react_constants_esm.qs.TABLET,{paddingLeft:govuk_react_constants_esm.Es.SCALE_5,paddingRight:govuk_react_constants_esm.Es.SCALE_5,display:"block"})),StyledListItem=styled_components_browser_esm.Ay.li(NavBar_defineProperty({paddingRight:govuk_react_constants_esm.Es.SCALE_4},govuk_react_constants_esm.qs.TABLET,{display:"inline-block"})),styledLinkMixin={content:'""',position:"absolute",left:0,right:0,bottom:0,borderBottom:"".concat(govuk_react_constants_esm.gP," solid")},styledLinkActive=NavBar_objectSpread(NavBar_objectSpread({},styledLinkMixin),{},{borderColor:colours._G}),styledLinkFocus=NavBar_objectSpread(NavBar_objectSpread({},styledLinkMixin),{},{borderColor:colours.Uv}),styledLink={"&:focus":{backgroundColor:"#FFDD00",boxShadow:"none",outline:"none"},"&:link, &:visited":NavBar_defineProperty({position:"relative",display:"block",margin:0,padding:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0"),fontSize:govuk_react_constants_esm.SG.SIZE_16,textDecoration:"none",lineHeight:"23px",color:colours.Uv,"&.active":{color:colours._G}},govuk_react_constants_esm.qs.TABLET,{display:"inline-block",padding:"8px 0",":hover::after":styledLinkActive,"&.active::after":styledLinkActive,":focus::after":styledLinkFocus})},StyledNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)(styledLink),StyledLink=styled_components_browser_esm.Ay.a(styledLink),isActiveLink=function isActiveLink(location,to){return location.pathname.startsWith(to.pathname)},NavBar=function NavBar(_ref2){var onShowVerticalNav=_ref2.onShowVerticalNav,showVerticalNav=_ref2.showVerticalNav,disableReactRouter=_ref2.disableReactRouter,location=(0,react_router_dist.zy)();return react.createElement(StyledNavContainer,null,react.createElement(StyledNav,{"aria-labelledby":"navigation","data-test":"primary-navigation"},react.createElement(StyledList,{showVerticalNav,id:"navigation","aria-label":"Top Level Navigation",onClick:function onClick(){return onShowVerticalNav(!showVerticalNav)}},links.map((function(_ref3,i){var label=_ref3.label,useRouter=_ref3.useRouter,module=_ref3.module,to=_ref3.to,rest=function NavBar_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function NavBar_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<s.length;r++)o=s[r],t.includes(o)||{}.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}}};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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),_govuk_react_input__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["onChange","name","label","legend","hint","initialValue","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}var DateField=function DateField(_ref){var _ref$onChange=_ref.onChange,_onChange=void 0===_ref$onChange?function(){}:_ref$onChange,name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,initialValue=_ref.initialValue,_ref$type=_ref.type,type=void 0===_ref$type?"date":_ref$type,props=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_15__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_15__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),react__WEBPACK_IMPORTED_MODULE_15__.createElement(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_17__.A,_extends({name,label,legend,hint},props),react__WEBPACK_IMPORTED_MODULE_15__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_16__.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_18___default().func,name:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_18___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_18___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_18___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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/utils/number-utils.js"),_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_excluded=["downloadLink","count","maxItems","entityName","entityNamePlural"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("a")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: 0;\n  ",": {\n    margin-left: ","px;\n  },\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.Ge[2]),DownloadDataHeader=function DownloadDataHeader(_ref){var downloadLink=_ref.downloadLink,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,_ref$maxItems=_ref.maxItems,maxItems=void 0===_ref$maxItems?5e3:_ref$maxItems,_ref$entityName=_ref.entityName,entityName=void 0===_ref$entityName?"":_ref$entityName,_ref$entityNamePlural=_ref.entityNamePlural,entityNamePlural=void 0===_ref$entityNamePlural?"".concat(entityName,"s"):_ref$entityNamePlural,props=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<s.length;r++)o=s[r],t.includes(o)||{}.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_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,props,"Filter to fewer than ",(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__._)(maxItems)," ",entityNamePlural," to download");var downloadAction=react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_8__.$n,{key:"download",as:StyledLink,href:downloadLink,download:!0},"Download");return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,_extends({actions:[downloadAction]},props),"You can now download"," ",1===count?"this ".concat(entityName):"these ".concat(count," ").concat(entityNamePlural))};DownloadDataHeader.propTypes={downloadLink:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,count:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,maxItems:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,entityName:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,entityNamePlural:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string};const __WEBPACK_DEFAULT_EXPORT__=DownloadDataHeader;DownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"DownloadDataHeader",props:{count:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},maxItems:{defaultValue:{value:"5000",computed:!1},description:"",type:{name:"number"},required:!1},entityName:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},entityNamePlural:{description:"",type:{name:"string"},required:!1},downloadLink:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Effect.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=function Effect(_ref){var dependencyList=_ref.dependencyList,effect=_ref.effect;return(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(effect,null==dependencyList?void 0:dependencyList.map(JSON.stringify)),null}},"./src/client/components/EntityList/EntityListItem.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_components_Metadata___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Metadata/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntity=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  padding: ",";\n  border: 1px solid ",";\n  ",";\n\n  &[role='button'] {\n    cursor: pointer;\n\n    h3 {\n      color: ",";\n    }\n\n    &:hover {\n      border: 1px solid ",";\n      background-color: ",";\n\n      & > h3 {\n        color: ",";\n      }\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.yV,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.P1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__.H3)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n  margin: 0 0 ",";\n  "," {\n    font-size: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_19),StyledInsetText=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  & {\n    margin-top: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2),EntityListItem=function EntityListItem(_ref){var id=_ref.id,onEntityClick=_ref.onEntityClick,_ref$data=_ref.data,data=void 0===_ref$data?{}:_ref$data,text=_ref.text,heading=_ref.heading,_ref$meta=_ref.meta,meta=void 0===_ref$meta?[]:_ref$meta,isClickable=!!onEntityClick;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledEntity,{key:"entity_".concat(id),tabIndex:isClickable?0:void 0,role:isClickable?"button":void 0,onClick:function onClick(){return isClickable&&onEntityClick(data)},onKeyDown:function onKeyDown(e){return isClickable&&13===e.keyCode&&onEntityClick(data)}},heading&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledHeading,null,heading),!(0,lodash__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(meta)&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_8__.A,{rows:meta}),text&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledInsetText,null,text))};EntityListItem.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,onEntityClick:prop_types__WEBPACK_IMPORTED_MODULE_10___default().func,data:prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),text:prop_types__WEBPACK_IMPORTED_MODULE_10___default().node,heading:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,meta:prop_types__WEBPACK_IMPORTED_MODULE_10___default().array};const __WEBPACK_DEFAULT_EXPORT__=EntityListItem;EntityListItem.__docgenInfo={description:"",methods:[],displayName:"EntityListItem",props:{data:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},meta:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},id:{description:"",type:{name:"string"},required:!0},onEntityClick:{description:"",type:{name:"func"},required:!1},text:{description:"",type:{name:"node"},required:!1},heading:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/EntityList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_EntityListItem__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntityList=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("ol")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  padding-left: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_4),StyledEntityListItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  list-style-type: none;\n"]))),EntityList=function EntityList(_ref){var entities=_ref.entities,Component=_ref.entityRenderer||_EntityListItem__WEBPACK_IMPORTED_MODULE_5__.A;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityList,{"aria-live":"polite","data-test":"entity-list"},entities.map((function(entity){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityListItem,{"data-test":"entity-list-item",key:"entity-list-item_".concat(entity.id)},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component,entity))})))};EntityList.propTypes={entities:prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,prop_types__WEBPACK_IMPORTED_MODULE_7___default().number]).isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,meta:prop_types__WEBPACK_IMPORTED_MODULE_7___default().array.isRequired,data:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})).isRequired,entityRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=EntityList;EntityList.__docgenInfo={description:"",methods:[],displayName:"EntityList",props:{entities:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"union",value:[{name:"string"},{name:"number"}],required:!0},heading:{name:"string",required:!0},meta:{name:"array",required:!0},data:{name:"object",required:!0}}}},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/EntityList/useDnbSearch.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),axios__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/axios/lib/axios.js"),_utils_addresses__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/addresses.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function getTradingNames(dnb_company){return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.isEmpty)(dnb_company.trading_names)?null:{label:"Trading name(s)",value:dnb_company.trading_names.join(", ")}}function getAddress(dnb_company,features){return{label:"Location at",value:(0,_utils_addresses__WEBPACK_IMPORTED_MODULE_20__.getCompanyAddress)(dnb_company,features)}}const __WEBPACK_DEFAULT_EXPORT__=function useDnbSearch(apiEndpoint,features){function transformCompanyRecord(record){var dnb_company=record.dnb_company;return{id:dnb_company.duns_number,heading:dnb_company.primary_name,meta:(0,lodash__WEBPACK_IMPORTED_MODULE_19__.compact)([getTradingNames(dnb_company),getAddress(dnb_company,features)]),data:record}}function _findCompany(){return _findCompany=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(filters){var _yield$axios$post,data;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios__WEBPACK_IMPORTED_MODULE_21__.A.post(apiEndpoint,filters);case 2:return _yield$axios$post=_context.sent,data=_yield$axios$post.data,_context.abrupt("return",data.results.map(transformCompanyRecord));case 5:case"end":return _context.stop()}}),_callee)}))),_findCompany.apply(this,arguments)}return{findCompany:function findCompany(_x){return _findCompany.apply(this,arguments)},transformCompanyRecord}}},"./src/client/components/ErrorSummary/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/utils/colours.js"),_styles__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/styles.js"),_excluded=["heading","description","errors"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledErrorText=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_24__.A)(_defineProperty(_defineProperty(_defineProperty({fontFamily:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.hM,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",fontWeight:700,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Es.SCALE_1,textDecoration:"underline",textDecorationSkipInk:"none",textTransform:"none",cursor:"pointer",fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.SG.SIZE_16,lineHeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.$g.SIZE_16,":link":{color:"".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)},":visited":{color:"".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.LARGESCREEN,{fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.SG.SIZE_19,lineHeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.$g.SIZE_19}),"paddingTop","4px"),"paddingBottom","2px")),StyledErrorSummary=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)("div")(_objectSpread(_objectSpread({color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.pF,padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Eh.mobile,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.d5," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)},_styles__WEBPACK_IMPORTED_MODULE_29__.W),{},_defineProperty({},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.LARGESCREEN,{padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Eh.tablet,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.gP," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)})),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.withWhiteSpace({marginBottom:6})),ErrorSummary=react__WEBPACK_IMPORTED_MODULE_20__.forwardRef((function(_ref,ref){var _ref$heading=_ref.heading,heading=void 0===_ref$heading?"There is a problem":_ref$heading,_ref$description=_ref.description,description=void 0===_ref$description?null:_ref$description,errors=_ref.errors,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledErrorSummary,_extends({tabIndex:-1},props,{ref}),react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_21__.H2,{size:"MEDIUM"},heading),description&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_22__.A,{mb:3},description),errors.length>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__.A,{mb:0,listStyleType:"none"},errors.map((function(_ref2){var targetName=_ref2.targetName,text=_ref2.text;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__.A,{key:targetName},react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledErrorText,{href:"#field-".concat(targetName)},text))}))))}));ErrorSummary.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,description:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,errors:prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().shape({targetName:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired}).isRequired)};const __WEBPACK_DEFAULT_EXPORT__=ErrorSummary;ErrorSummary.__docgenInfo={description:"When a user makes an error, you must show both an error summary and an error message next to each answer that contains an error. More information can be found on the [GDS Design system](https://design-system.service.gov.uk/components/error-summary/)\n\nUse this component at the top of a page to summarise any errors a user has made.",methods:[],displayName:"ErrorSummary",props:{heading:{defaultValue:{value:"'There is a problem'",computed:!1},description:"Text for the heading",type:{name:"string"},required:!1},description:{defaultValue:{value:"null",computed:!1},description:"Text for description",type:{name:"string"},required:!1},errors:{description:"The list of error descriptions and their target id's",type:{name:"arrayOf",value:{name:"shape",value:{targetName:{name:"string",required:!0},text:{name:"string",required:!0}}}},required:!1}}}},"./src/client/components/FilterLabel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay.label({"-webkit-font-smoothing":"antialiased",fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.sO.bold,fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.SG.SIZE_16,display:"block",color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.Uv})},"./src/client/components/Footer/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>Footer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js");var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");const govuk_crest_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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFooter=(0,styled_components_browser_esm.Ay)("footer")({clear:"both",borderTop:"1px solid ".concat(colours.fl),background:"".concat(colours.Np),color:"".concat(colours.Kk)},govuk_react_lib_esm.Il.font({size:16}),govuk_react_lib_esm.YK.withWhiteSpace({padding:[{size:7,direction:"top"},{size:5,direction:"bottom"}]})),StyleList=styled_components_browser_esm.Ay.ul(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  display: flex;\n  flex: 1;\n  flex-direction: row;\n  li + li {\n    margin-left: ",";\n  }\n  margin-bottom: ",";\n\n  @media (max-width: ",") {\n    margin-bottom: -",";\n    margin-right: ",";\n    flex-direction: column;\n    flex-wrap: wrap;\n\n    li + li {\n      margin-left: 0;\n    }\n\n    li {\n      margin-left: 0;\n      margin-bottom: ",";\n    }\n\n    li:last-child {\n      margin-bottom: ",";\n    }\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5),FooterLink=styled_components_browser_esm.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n  &:active,\n  &:focus,\n  &:visited,\n  &:hover {\n    color: ",";\n    outline: 3px solid transparent;\n  }\n  &:focus {\n    background-color: ",";\n    box-shadow:\n      0 -2px ",",\n      0 4px ",";\n    text-decoration: none;\n  }\n"])),colours.Uv,colours.Uv,colours.eM,colours.eM,colours.Uv),CopyrightLink=(0,styled_components_browser_esm.Ay)(FooterLink)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: inline-block;\n  min-width: 125px;\n  padding-top: 112px;\n  background-image: url(",");\n  background-repeat: no-repeat;\n  background-position: 50% 0%;\n  background-size: 125px 102px;\n  text-align: center;\n  text-decoration: none;\n  white-space: nowrap;\n  margin-bottom: ",";\n  @media (max-width: ",") {\n    margin-bottom: ",";\n  }\n"])),govuk_crest_2x_namespaceObject,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_5),Container=(0,styled_components_browser_esm.Ay)(Main.w)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  display: flex;\n  justify-content: center;\n  align-items: flex-end;\n  flex-wrap: wrap;\n"]))),LINKS={"Request support":urls_default().support(),"Help centre":urls_default().external.helpCentre.dhHomepage,"Privacy notice":urls_default().external.helpCentre.privacyNotice,Cookies:urls_default().external.helpCentre.cookies,"Accessibility statement":urls_default().external.helpCentre.accessibilityStatement};function Footer(_ref){var _ref$links=_ref.links,links=void 0===_ref$links?LINKS:_ref$links,props=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<s.length;r++)o=s[r],t.includes(o)||{}.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 `<footer/>` element\nwhich wraps this component.\n@param {Record<string, string>} [props.links = typeof LINKS] - bla",methods:[],displayName:"Footer",props:{links:{defaultValue:{value:"{\n  'Request support': urls.support(),\n  'Help centre': urls.external.helpCentre.dhHomepage,\n  'Privacy notice': urls.external.helpCentre.privacyNotice,\n  Cookies: urls.external.helpCentre.cookies,\n  'Accessibility statement': urls.external.helpCentre.accessibilityStatement,\n}",computed:!1},required:!1}}}},"./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>FieldAddAnother_FieldAddAnother});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),number_utils=__webpack_require__("./src/client/utils/number-utils.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),FieldWrapper=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 _templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledChildren=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1),StyledGroup=(0,styled_components_browser_esm.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),SecondaryButtonContainer=(0,styled_components_browser_esm.Ay)("div")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_4),StyledLink=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1),FieldAddAnother=function FieldAddAnother(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,children=_ref.children,dataTestPrefix=_ref.dataTestPrefix,itemName=_ref.itemName,buttonText=_ref.buttonText,_ref$initialChildGrou=_ref.initialChildGroupCount,initialChildGroupCount=void 0===_ref$initialChildGrou?1:_ref$initialChildGrou,_ref$limitChildGroupC=_ref.limitChildGroupCount,limitChildGroupCount=void 0===_ref$limitChildGroupC?Number.MAX_VALUE:_ref$limitChildGroupC,add=_ref.add,remove=_ref.remove,_ref$items=_ref.items,items=void 0===_ref$items?lodash_default()(initialChildGroupCount).range().keyBy().value():_ref$items,buttonMargin=_ref.buttonMargin,fieldGroupIds=Object.keys(items);return react.createElement(react.Fragment,null,react.createElement(FieldWrapper.A,{name,label,legend,hint,bigLegend:!0},fieldGroupIds.map((function(fieldGroupId,index){return react.createElement(StyledGroup,{role:"region","aria-label":"".concat((0,number_utils.hx)(index)," ").concat(itemName),"data-test":"".concat(dataTestPrefix).concat(index),key:fieldGroupId},react.createElement(StyledChildren,null,children({groupIndex:fieldGroupId})),fieldGroupIds.length>1&&react.createElement(StyledLink,null,react.createElement(govuk_react_link_esm.A,{href:"#","aria-label":"Remove ".concat((0,number_utils.hx)(index)," ").concat(itemName),onClick:function onClick(event){event.preventDefault(),remove(fieldGroupId,initialChildGroupCount)}},"Remove")))})),fieldGroupIds.length<limitChildGroupCount&&react.createElement(SecondaryButtonContainer,null,react.createElement(SecondaryButton.A,{"data-test":"add-another",onClick:function addAnotherHandler(event){event.preventDefault(),add(initialChildGroupCount)},"aria-label":"Add a ".concat((0,number_utils.hx)(fieldGroupIds.length||0)," ").concat(itemName),margin:buttonMargin},buttonText||"Add another ".concat(itemName)))))};FieldAddAnother.propTypes={dataTestPrefix:prop_types_default().string,buttonText:prop_types_default().string,itemName:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,children:prop_types_default().func,initialChildGroupCount:prop_types_default().number,limitChildGroupCount:prop_types_default().number};const FieldAddAnother_FieldAddAnother=(0,multiinstance.Ay)({name:"FieldAddAnother",actionPattern:"FIELD_ADD_ANOTHER__",dispatchToProps:function dispatchToProps(dispatch){return{add:function add(initialChildGroupCount){return dispatch({type:actions.yMX,initialChildGroupCount})},remove:function remove(fieldGroupId,initialChildGroupCount){return dispatch({type:actions.xOm,fieldGroupId,initialChildGroupCount})}}},component:FieldAddAnother,reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,initialChildGroupCount=_ref.initialChildGroupCount,fieldGroupId=_ref.fieldGroupId,_state$items=state.items,items=void 0===_state$items?lodash_default()(initialChildGroupCount).range().keyBy().value():_state$items,_state$currentId=state.currentId,currentId=void 0===_state$currentId?initialChildGroupCount:_state$currentId;switch(type){case actions.yMX:return{currentId:currentId+1,items:_objectSpread(_objectSpread({},items),{},_defineProperty({},currentId,currentId))};case actions.xOm:var itemsCopy=_objectSpread({},items);return delete itemsCopy[fieldGroupId],_objectSpread(_objectSpread({},state),{},{items:itemsCopy});default:return state}}})},"./src/client/components/Form/elements/FieldAddAnother/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_FieldAddAnother__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldAddAnother=function FieldAddAnother(_ref){var id=_ref.id,name=_ref.name,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_FieldAddAnother__WEBPACK_IMPORTED_MODULE_6__.A,_extends({id:id||"".concat(name,"-field-add-another"),name},props))};const __WEBPACK_DEFAULT_EXPORT__=FieldAddAnother;FieldAddAnother.__docgenInfo={description:"",methods:[],displayName:"FieldAddAnother"}},"./src/client/components/Form/elements/FieldCheckboxes/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_34__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","validate","required","label","legend","bigLegend","boldLabel","hint","options","initialValue","exclusive"],_excluded2=["value","label","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var StyledOr=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)("div")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2,paddingRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2}),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)("span")({fontWeight:"bold"}),FieldCheckboxes=function FieldCheckboxes(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,bigLegend=_ref.bigLegend,_ref$boldLabel=_ref.boldLabel,boldLabel=void 0!==_ref$boldLabel&&_ref$boldLabel,hint=_ref.hint,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?[]:_ref$initialValue,_ref$exclusive=_ref.exclusive,exclusive=void 0!==_ref$exclusive&&_ref$exclusive,props=_objectWithoutProperties(_ref,_excluded),_useField=(0,_hooks_useField__WEBPACK_IMPORTED_MODULE_30__.A)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_32__.xW)().setFieldValue,onChange=function onChange(event){var eventTargetName=isNaN(event.target.name)?event.target.name:parseInt(event.target.name,10);event.target.checked?setFieldValue(name,[].concat(_toConsumableArray(value),[eventTargetName])):setFieldValue(name,value.filter((function(v){return v!==eventTargetName})))},onChangeExclusive=function onChangeExclusive(event){if(event.target.checked){var lastOption=options.slice(options.length-1)[0];lastOption.value===event.target.name?setFieldValue(name,[event.target.name]):setFieldValue(name,[].concat(_toConsumableArray(value.filter((function(v){return v!==lastOption.value}))),[event.target.name]))}else setFieldValue(name,value.filter((function(v){return v!==event.target.name})))};return react__WEBPACK_IMPORTED_MODULE_26__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__.A,_objectSpread(_objectSpread({},props),{},{name,label,legend,bigLegend,hint,error}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__.A,{meta:{error,touched}},options.map((function(_ref2,index){var optionValue=_ref2.value,optionLabel=_ref2.label,children=_ref2.children,optionLink=_ref2.link,optionProps=_objectWithoutProperties(_ref2,_excluded2);return react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionValue},exclusive&&index===options.length-1&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(StyledOr,{"data-test":"exclusive-or"},"or"),react__WEBPACK_IMPORTED_MODULE_26__.createElement(_Checkbox__WEBPACK_IMPORTED_MODULE_29__.A,_extends({name:optionValue,checked:value.includes(optionValue),onChange:exclusive?onChangeExclusive:onChange,onBlur,"aria-label":optionLabel},optionProps),boldLabel?react__WEBPACK_IMPORTED_MODULE_26__.createElement(StyledLabel,null,optionLabel):react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionLabel},optionLabel,optionLink&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionLink},optionLink))),value.includes(optionValue)&&children?children:null)}))))};FieldCheckboxes.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_34___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_34___default().func,prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,exclusive:prop_types__WEBPACK_IMPORTED_MODULE_34___default().bool,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_34___default().array,options:prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node}))};const __WEBPACK_DEFAULT_EXPORT__=FieldCheckboxes;FieldCheckboxes.__docgenInfo={description:"Checkboxes for use in forms and filters.",methods:[],displayName:"FieldCheckboxes",props:{boldLabel:{defaultValue:{value:"false",computed:!1},required:!1},options:{defaultValue:{value:"[]",computed:!1},description:"Defines the checkbox labels and values",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0},children:{name:"node",required:!1}}}},required:!1},initialValue:{defaultValue:{value:"[]",computed:!1},description:"Sets initial value of the input",type:{name:"array"},required:!1},exclusive:{defaultValue:{value:"false",computed:!1},description:"Splits the last checkbox from the others where the choice is exclusive between them",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets whether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1}}}},"./src/client/components/Form/elements/FieldChoice/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),_govuk_react_checkbox__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/checkbox/dist/govuk-react-checkbox.esm.js"),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","type","options","validate","required","label","legend","hint"],_excluded2=["yesLabel","noLabel"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var TYPE_RADIO="radio",TYPE_CHECKBOX="checkbox",isRadio=function isRadio(type){return type===TYPE_RADIO},FieldChoice=function FieldChoice(_ref){var name=_ref.name,type=_ref.type,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,hint=_ref.hint,props=_objectWithoutProperties(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_30__.Mt)({name,validate,required}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_30__.xW)().setFieldValue,isChecked=function isChecked(option){return(0,lodash__WEBPACK_IMPORTED_MODULE_29__.isArray)(value)?value.some((function(v){return v.value===option.value})):(0,lodash__WEBPACK_IMPORTED_MODULE_29__.isEqual)(value,option)},Component=isRadio(type)?_govuk_react_radio__WEBPACK_IMPORTED_MODULE_28__.A:_govuk_react_checkbox__WEBPACK_IMPORTED_MODULE_27__.A;return react__WEBPACK_IMPORTED_MODULE_25__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__.A,_objectSpread(_objectSpread({},props),{},{name,label,legend,hint,error}),react__WEBPACK_IMPORTED_MODULE_25__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__.A,{meta:{error,touched}},options.map((function(option){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(react__WEBPACK_IMPORTED_MODULE_25__.Fragment,{key:option.value},react__WEBPACK_IMPORTED_MODULE_25__.createElement(Component,{key:option.id,value:option.value,checked:isChecked(option),onChange:function onChange(event){return function onChange(event,option){return setFieldValue(name,isRadio(type)?option:event.target.checked?[].concat(_toConsumableArray(value),[option]):value.filter((function(v){return v.value!==event.target.value})))}(event,option)},onBlur,name:option.value,"aria-label":option.label},option.label))}))))};FieldChoice.Checkbox=function(props){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(FieldChoice,_extends({},props,{type:TYPE_CHECKBOX}))},FieldChoice.Radio=function(props){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(FieldChoice,_extends({},props,{type:TYPE_RADIO}))},FieldChoice.Boolean=function(_ref2){var _ref2$yesLabel=_ref2.yesLabel,yesLabel=void 0===_ref2$yesLabel?"Yes":_ref2$yesLabel,_ref2$noLabel=_ref2.noLabel,noLabel=void 0===_ref2$noLabel?"No":_ref2$noLabel,props=_objectWithoutProperties(_ref2,_excluded2);return react__WEBPACK_IMPORTED_MODULE_25__.createElement(FieldChoice,_extends({},props,{type:TYPE_RADIO,options:[{value:!0,label:yesLabel},{value:!1,label:noLabel}]}))},FieldChoice.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string.isRequired,type:prop_types__WEBPACK_IMPORTED_MODULE_32___default().oneOf([TYPE_RADIO,TYPE_CHECKBOX]).isRequired,options:prop_types__WEBPACK_IMPORTED_MODULE_32___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_32___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string})).isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_32___default().func,required:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,legend:prop_types__WEBPACK_IMPORTED_MODULE_32___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string},FieldChoice.Boolean.propTypes={yesLabel:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,noLabel:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldChoice;FieldChoice.__docgenInfo={description:"",methods:[{name:"Checkbox",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null},{name:"Radio",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null},{name:"Boolean",docblock:null,modifiers:["static"],params:[{name:"{ yesLabel = YES, noLabel = NO, ...props }",optional:!1,type:null}],returns:null}],displayName:"FieldChoice",props:{options:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!1},value:{name:"string",required:!1}}}},required:!1},name:{description:"",type:{name:"string"},required:!0},type:{description:"",type:{name:"enum",value:[{value:"'radio'",computed:!1},{value:"'checkbox'",computed:!1}]},required:!0},validate:{description:"",type:{name:"func"},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldCompaniesTypeahead/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.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),lodash__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/components/Task/utils.js"),_Typeahead_Highlighter__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),_Tag__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["name","label","required","isMulti","onlyShowActiveCompanies","placeholder","loadOptions"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var getOptionLabel=function getOptionLabel(option){return"".concat(option.label).concat(option.isInList?" (in your company lists)":"")},StyledRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_10__.TW)((function(){return{paddingBottom:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.Es.SCALE_2)}})),CompanyResultWithTags=function CompanyResultWithTags(_ref){var option=_ref.option,searchString=_ref.searchString;return react__WEBPACK_IMPORTED_MODULE_7__.createElement(react__WEBPACK_IMPORTED_MODULE_7__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledRow,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.bn,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(_Typeahead_Highlighter__WEBPACK_IMPORTED_MODULE_13__.A,{optionLabel:getOptionLabel(option),searchStr:searchString}))),react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.TW,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.bn,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(_Tag__WEBPACK_IMPORTED_MODULE_14__.A,{colour:"blue","data-test":"location-tag"},option.ukRegion?"".concat((0,lodash__WEBPACK_IMPORTED_MODULE_8__.get)(option,"ukRegion.name"),", UK"):(0,lodash__WEBPACK_IMPORTED_MODULE_8__.get)(option,"address.country.name","unknown")))))},FieldCompaniesTypeahead=function FieldCompaniesTypeahead(_ref2){var name=_ref2.name,label=_ref2.label,required=_ref2.required,isMulti=_ref2.isMulti,_ref2$onlyShowActiveC=_ref2.onlyShowActiveCompanies,onlyShowActiveCompanies=void 0===_ref2$onlyShowActiveC||_ref2$onlyShowActiveC,_ref2$placeholder=_ref2.placeholder,placeholder=void 0===_ref2$placeholder?"Type to search for companies":_ref2$placeholder,loadOptions=_ref2.loadOptions,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_11__.A,_extends({name,label,placeholder,noOptionsMessage:"Type to search for companies",required,loadOptions:null!=loadOptions?loadOptions:(0,lodash__WEBPACK_IMPORTED_MODULE_8__.throttle)((function(searchString){return _Task_utils__WEBPACK_IMPORTED_MODULE_12__.HD.get("/v4/company",{params:{autocomplete:searchString,is_active:onlyShowActiveCompanies}}).then((function(_ref3){return _ref3.data.results.map((function(_ref4){var id=_ref4.id,name=_ref4.name;return{label:name,chipLabel:name,value:id,isInList:_ref4.is_in_adviser_list,ukRegion:_ref4.uk_region,address:_ref4.address}}))}))}),500),isMulti,OptionContent:CompanyResultWithTags},props))};FieldCompaniesTypeahead.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string.isRequired,required:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,isMulti:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,placeholder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,loadOptions:prop_types__WEBPACK_IMPORTED_MODULE_16___default().func};const __WEBPACK_DEFAULT_EXPORT__=FieldCompaniesTypeahead;FieldCompaniesTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldCompaniesTypeahead",props:{onlyShowActiveCompanies:{defaultValue:{value:"true",computed:!1},required:!1},placeholder:{defaultValue:{value:"'Type to search for companies'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1},loadOptions:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Form/elements/FieldCurrency/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_28__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/validators.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["name","validate","required","label","text","legend","hint","initialValue","reduced","boldLabel","currencySymbol"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2,";\n  ")})),StyledText=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("span")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2}),StyledCurrencyPrefix=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  border: "," solid ",";\n  border-right: 0px;\n  display: inline-block;\n  padding: ",";\n  min-width: 47px;\n  box-sizing: border-box;\n  text-align: center;\n  flex: 0 0 auto;\n  cursor: default;\n  font-size: ",";\n  background-color: ",";\n  line-height: 1.8;\n\n  @media (max-width: ",") {\n    line-height: 2.1;\n    font-size: ",";\n  }\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Km,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.gP,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_19,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Br,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.LO.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_16,(function(props){return props.error&&"\n    border: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.su,";\n    border-right: 0px;\n    line-height: 1.6;\n    ")})),StyledCurrencyWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: flex;\n  align-items: stretch;\n  height: 47px;\n  > * {\n    height: 100%;\n  }\n"]))),FieldCurrency=function FieldCurrency(_ref){var name=_ref.name,_ref$validate=_ref.validate,validate=void 0===_ref$validate?function(value){return(0,_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__.ai)(value,"Value must be a number")}:_ref$validate,required=_ref.required,label=_ref.label,text=_ref.text,legend=_ref.legend,hint=_ref.hint,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,reduced=_ref.reduced,_ref$boldLabel=_ref.boldLabel,boldLabel=void 0===_ref$boldLabel||_ref$boldLabel,_ref$currencySymbol=_ref.currencySymbol,currencySymbol=void 0===_ref$currencySymbol?"£":_ref$currencySymbol,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_23__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(""),2),displayValue=_useState2[0],setDisplayValue=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(""),2),rawValue=_useState4[0],setRawValue=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(!1),2),editing=_useState6[0],setEditing=_useState6[1];(0,react__WEBPACK_IMPORTED_MODULE_17__.useEffect)((function(){!editing&&value&&(setRawValue(value),setDisplayValue((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__._)(value)))}),[value]);return react__WEBPACK_IMPORTED_MODULE_17__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_24__.A,{name,label,legend,hint,error,reduced,boldLabel},react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledInputWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_17__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_20__.A,null,error),react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledCurrencyWrapper,null,react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledCurrencyPrefix,{error:touched&&Boolean(error),"aria-hidden":"true"},currencySymbol),react__WEBPACK_IMPORTED_MODULE_17__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_19__.A,_extends({key:name,error:touched&&Boolean(error),id:name,type:"text",name,value:displayValue,"data-raw-value":rawValue,onChange:function onChangeWrapper(e){isNaN((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__.vE)(e.target.value))?setRawValue(e.target.value):setRawValue((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__.vE)(e.target.value)),setDisplayValue(e.target.value),onChange(e)},onBlur:function onBlurWrapper(e){setDisplayValue(isNaN(rawValue)?rawValue:(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__._)(rawValue)),setEditing(!1),onBlur(e)},onFocus:function onFocus(){setDisplayValue(rawValue),setEditing(!0)},"data-test":(0,lodash__WEBPACK_IMPORTED_MODULE_18__.kebabCase)("".concat(name,"-'input'")),inputMode:"numeric"},rest))),text&&react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledText,null,text)))};FieldCurrency.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_28___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_28___default().func,prop_types__WEBPACK_IMPORTED_MODULE_28___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_28___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_28___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_28___default().string,prop_types__WEBPACK_IMPORTED_MODULE_28___default().number]),reduced:prop_types__WEBPACK_IMPORTED_MODULE_28___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_28___default().bool,currencySymbol:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldCurrency;FieldCurrency.__docgenInfo={description:"A basic currency field for numbers.",methods:[],displayName:"FieldCurrency",props:{validate:{defaultValue:{value:"(value) => number(value, 'Value must be a number')",computed:!1},description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},initialValue:{defaultValue:{value:"''",computed:!1},description:"Sets initial value of the input",type:{name:"union",value:[{name:"string"},{name:"number"}]},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},currencySymbol:{defaultValue:{value:"'£'",computed:!1},description:"Sets the value for the currency prefix",type:{name:"string"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},required:{description:"Text 'required' sets whether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},reduced:{description:"Toggles whether the element is a filter or not",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldDate/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_36__),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/utils/colours.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_hooks__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","label","legend","hint","validate","initialValue","labels","required","invalid","format","reduced"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _require=__webpack_require__("./src/client/utils/date.js"),isNormalisedDateValid=_require.isNormalisedDateValid,isShortDateValid=_require.isShortDateValid,StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_31__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.Es.SCALE_2,";\n  ")})),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay)(_govuk_react_label__WEBPACK_IMPORTED_MODULE_27__.A)({marginRight:"20px",marginBottom:0},(function(_ref){return{width:_ref.year?"70px":"50px"}})),StyledList=styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay.div(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  display: flex;\n  "," {\n    height: 47px;\n  }\n"])),_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A),getValidator=function getValidator(required,invalid,format){return function(_ref2){var day=_ref2.day,month=_ref2.month,year=_ref2.year,isLong="LONG"===format,isValid=isLong?isNormalisedDateValid(year,month,day):isShortDateValid(year,month),isDateEmpty=isLong?!day&&!month&&!year:!month&&!year;return isDateEmpty&&!required?null:required&&isDateEmpty?required:isValid||isDateEmpty?4!=year.toString().length?"Enter a year as 4 digits":void 0:invalid||"Enter a valid date"}},getDefaultInitialValue=function getDefaultInitialValue(format){return"LONG"===format?{day:"",month:"",year:""}:{month:"",year:""}},FieldDate=function FieldDate(_ref3){var name=_ref3.name,label=_ref3.label,legend=_ref3.legend,hint=_ref3.hint,validate=_ref3.validate,initialValue=_ref3.initialValue,_ref3$labels=_ref3.labels,labels=void 0===_ref3$labels?{day:"Day",month:"Month",year:"Year"}:_ref3$labels,required=_ref3.required,invalid=_ref3.invalid,_ref3$format=_ref3.format,format=void 0===_ref3$format?"LONG":_ref3$format,reduced=_ref3.reduced,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,_excluded),_useField=(0,_hooks_useField__WEBPACK_IMPORTED_MODULE_33__.A)({name,initialValue:initialValue||getDefaultInitialValue(format),validate:[getValidator(required,invalid,format)].concat(_toConsumableArray((0,lodash__WEBPACK_IMPORTED_MODULE_25__.castArray)(validate)))}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_34__.xW)().setFieldValue,dataTest=props["data-test"]?props["data-test"]:(0,lodash__WEBPACK_IMPORTED_MODULE_25__.snakeCase)(name),_onChange=function onChange(valueKey,e){var date=e.target.value.split("-");setFieldValue(name,_objectSpread(_objectSpread({},value),{},reduced?{day:date[2],month:date[1],year:date[0]}:_defineProperty({},valueKey,e.target.value)))};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_32__.A,{name,label,legend,hint,error,reduced},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledInputWrapper,{error},error&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_26__.A,{"data-test":"field-".concat(name,"-error")},error),reduced?react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:name,name,error:touched&&error,type:"date",value:"".concat(value.year,"-").concat(value.month,"-").concat(value.day),onChange:function onChange(e){return _onChange(name,e)},onBlur}):react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledList,null,"LONG"===format&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.day),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".day"),name:"".concat(name,".day"),"data-test":"".concat(dataTest,"-day"),error:touched&&error,type:"text",value:value.day,onChange:function onChange(e){return _onChange("day",e)},onBlur})),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.month),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".month"),name:"".concat(name,".month"),"data-test":"".concat(dataTest,"-month"),error:touched&&error,type:"text",value:value.month,onChange:function onChange(e){return _onChange("month",e)},onBlur})),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,{year:!0},react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.year),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".year"),name:"".concat(name,".year"),"data-test":"".concat(dataTest,"-year"),error:touched&&error,type:"text",value:value.year,onChange:function onChange(e){return _onChange("year",e)},onBlur})))))};FieldDate.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_36___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_36___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,required:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,invalid:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,format:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,validate:prop_types__WEBPACK_IMPORTED_MODULE_36___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default().func,prop_types__WEBPACK_IMPORTED_MODULE_36___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_36___default().func)]),initialValue:prop_types__WEBPACK_IMPORTED_MODULE_36___default().shape({day:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,month:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,year:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string}),labels:prop_types__WEBPACK_IMPORTED_MODULE_36___default().shape({day:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,month:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,year:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string}),reduced:prop_types__WEBPACK_IMPORTED_MODULE_36___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldDate;FieldDate.__docgenInfo={description:"Date field for use in forms and filters.",methods:[],displayName:"FieldDate",props:{labels:{defaultValue:{value:"{\n  day: 'Day',\n  month: 'Month',\n  year: 'Year',\n}",computed:!1},description:"",type:{name:"shape",value:{day:{name:"string",required:!1},month:{name:"string",required:!1},year:{name:"string",required:!1}}},required:!1},format:{defaultValue:{value:"'LONG'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"string"},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},invalid:{description:"Text 'invalid' sets a custom error message for invalid dates",type:{name:"string"},required:!1},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"shape",value:{day:{name:"string",required:!1},month:{name:"string",required:!1},year:{name:"string",required:!1}}},required:!1},reduced:{description:"Toggles wether the element is a filter or not",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldHelp/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,_templateObject2,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),_client_components___WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding: 0;\n"]))),StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin: -"," 0 "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_4,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_5),FieldHelp=function FieldHelp(_ref){var helpSummary=_ref.helpSummary,helpText=_ref.helpText,footerUrl=_ref.footerUrl,footerUrlDescription=_ref.footerUrlDescription,open=_ref.open;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(ItemWrapper,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledDetails,{summary:helpSummary,open},helpText,footerUrl&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_client_components___WEBPACK_IMPORTED_MODULE_5__.bv,{href:footerUrl},footerUrlDescription))))};FieldHelp.propTypes={helpSummary:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,helpText:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,footerUrl:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,footerDescription:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,open:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldHelp;FieldHelp.__docgenInfo={description:"",methods:[],displayName:"FieldHelp",props:{helpSummary:{description:"",type:{name:"string"},required:!0},helpText:{description:"",type:{name:"node"},required:!0},footerUrl:{description:"",type:{name:"string"},required:!1},footerDescription:{description:"",type:{name:"string"},required:!1},open:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__),styled_components__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["name","type","validate","required","label","text","legend","hint","initialValue","reduced","dataTest"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  "," {\n    height: 47px;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_13__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_2,";\n  ")}),_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__.A),StyledText=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.Ay)("span")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_2}),setDataTest=function setDataTest(dataTest,name){var element=dataTest||name;return(0,lodash__WEBPACK_IMPORTED_MODULE_9__.kebabCase)("".concat(element,"-'input'"))},FieldInput=function FieldInput(_ref){var name=_ref.name,type=_ref.type,validate=_ref.validate,required=_ref.required,label=_ref.label,text=_ref.text,legend=_ref.legend,hint=_ref.hint,initialValue=_ref.initialValue,reduced=_ref.reduced,dataTest=_ref.dataTest,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_14__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur;return react__WEBPACK_IMPORTED_MODULE_8__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__.A,{name,label,legend,hint,error,reduced},react__WEBPACK_IMPORTED_MODULE_8__.createElement(StyledInputWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_8__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_11__.A,null,error),react__WEBPACK_IMPORTED_MODULE_8__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__.A,_extends({key:name,error:touched&&Boolean(error),id:name,type,name,value,onChange,onBlur,onWheel:function onWheel(event){"number"===type&&event.target.blur()},"data-test":setDataTest(dataTest,name)},rest)),text&&react__WEBPACK_IMPORTED_MODULE_8__.createElement(StyledText,null,text)))};FieldInput.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string.isRequired,type:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_17___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default().func,prop_types__WEBPACK_IMPORTED_MODULE_17___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_17___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_17___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default().string,prop_types__WEBPACK_IMPORTED_MODULE_17___default().number]),reduced:prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool,dataTest:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldInput;FieldInput.__docgenInfo={description:"A basic input field for numbers and text.",methods:[],displayName:"FieldInput",props:{name:{description:"Text for name attribute value",type:{name:"string"},required:!0},type:{description:"Text for type attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"union",value:[{name:"string"},{name:"number"}]},required:!1},reduced:{description:"Toggles wether the element is a filter or not",type:{name:"bool"},required:!1},dataTest:{description:"Sets the data-test ID if the name isn't suitable",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/lodash/lodash.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Task/utils.js"),_excluded=["name","label","required","placeholder","company"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldInvestmentProjectTypeahead=function FieldInvestmentProjectTypeahead(_ref){var name=_ref.name,label=_ref.label,required=_ref.required,_ref$placeholder=_ref.placeholder,placeholder=void 0===_ref$placeholder?"Type to search for investment projects":_ref$placeholder,_ref$company=_ref.company,company=void 0===_ref$company?null:_ref$company,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_6__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_8__.A,_extends({name,label,placeholder,noOptionsMessage:"",required,loadOptions:(0,lodash__WEBPACK_IMPORTED_MODULE_7__.throttle)((function(searchString){return _Task_utils__WEBPACK_IMPORTED_MODULE_9__.HD.get("/v3/investment",{params:{autocomplete:searchString,investor_company_id:company}}).then((function(_ref2){return _ref2.data.results.map((function(_ref3){var id=_ref3.id,name=_ref3.name;return{label:name,chipLabel:name,value:id}}))}))}),500)},props))};FieldInvestmentProjectTypeahead.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,required:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,isMulti:prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool,placeholder:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldInvestmentProjectTypeahead;FieldInvestmentProjectTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldInvestmentProjectTypeahead",props:{placeholder:{defaultValue:{value:"'Type to search for investment projects'",computed:!1},description:"",type:{name:"string"},required:!1},company:{defaultValue:{value:"null",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldRadios/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","validate","required","label","legend","bigLegend","hint","inline","initialValue","options"],_excluded2=["label","value","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<s.length;r++)o=s[r],t.includes(o)||{}.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 StyledChildField=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-left: 55px;\n  clear: both;\n"]))),StyledRadio=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)(_govuk_react_radio__WEBPACK_IMPORTED_MODULE_25__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.inline&&"\n      float: left;\n      clear: none;\n    "})),FieldRadios=function FieldRadios(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,bigLegend=_ref.bigLegend,hint=_ref.hint,inline=_ref.inline,initialValue=_ref.initialValue,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,props=_objectWithoutProperties(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_28__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur,getDataTest=function getDataTest(prefix,name,optionLabel){var dataTest=(0,lodash__WEBPACK_IMPORTED_MODULE_27__.kebabCase)("".concat(name,"-").concat(optionLabel));return prefix?"".concat(prefix,"-").concat(dataTest):dataTest};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_29__.A,_extends({},_objectSpread(_objectSpread({},props),{},{name,label,legend,hint,error,bigLegend}),{"data-component":"FieldRadios"}),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__.A,{meta:{error,touched}},options.map((function(_ref2){var optionLabel=_ref2.label,optionValue=_ref2.value,optionChildren=_ref2.children,optionLink=_ref2.link,optionProps=_objectWithoutProperties(_ref2,_excluded2);return react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,{key:optionValue},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledRadio,_extends({inline,value:optionValue,checked:value===optionValue,onChange,onBlur,name,"data-test":getDataTest(props.dataTestPrefix,name,optionLabel),"aria-label":optionLabel},optionProps),optionLabel,optionLink&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,null,optionLink)),value===optionValue&&optionChildren&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledChildField,null,optionChildren))}))))};FieldRadios.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_31___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_31___default().func,prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,inline:prop_types__WEBPACK_IMPORTED_MODULE_31___default().bool,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,hint:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node}))};const __WEBPACK_DEFAULT_EXPORT__=FieldRadios;FieldRadios.__docgenInfo={description:"",methods:[],displayName:"FieldRadios",props:{options:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0},hint:{name:"node",required:!1},children:{name:"node",required:!1}}}},required:!1},name:{description:"",type:{name:"string"},required:!0},validate:{description:"",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},inline:{description:"",type:{name:"bool"},required:!1},initialValue:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldSelect/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_29__),_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_hooks__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","label","legend","hint","validate","required","initialValue","options","emptyOption","fullWidth","boldLabel"];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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledSelect=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__.Ay)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  position: relative;\n  &::after {\n    border-bottom: 2px solid ",";\n    border-right: 2px solid ",";\n    content: '';\n    display: block;\n    height: 12px;\n    pointer-events: none;\n    position: absolute;\n    right: 16px;\n    ","\n    ","\n\n    transform: translate(0, -65%) rotate(45deg);\n    width: 12px;\n    @media (max-width: ",") {\n      right: 4%;\n    }\n  }\n  "," {\n    height: 47px;\n    padding: 0px 32px 0px 12px;\n    ","\n    appearance: none;\n    -webkit-appearance: none;\n    -moz-appearance: none;\n  }\n"])),_utils_colours__WEBPACK_IMPORTED_MODULE_27__.Uv,_utils_colours__WEBPACK_IMPORTED_MODULE_27__.Uv,(function(_ref){return _ref.fullWidth?"right: 2%;":"right: 52%;"}),(function(_ref2){return _ref2.meta.error?"top: 72%;":"top: 50%;"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.LO.TABLET,_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__.pp,(function(_ref3){return _ref3.fullWidth&&"width: 100%;"})),FieldSelect=function FieldSelect(_ref4){var _options$find,name=_ref4.name,label=_ref4.label,legend=_ref4.legend,hint=_ref4.hint,validate=_ref4.validate,required=_ref4.required,initialValue=_ref4.initialValue,_ref4$options=_ref4.options,options=void 0===_ref4$options?[]:_ref4$options,_ref4$emptyOption=_ref4.emptyOption,emptyOption=void 0===_ref4$emptyOption?"Please select":_ref4$emptyOption,fullWidth=_ref4.fullWidth,_ref4$boldLabel=_ref4.boldLabel,boldLabel=void 0===_ref4$boldLabel||_ref4$boldLabel,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_25__.Mt)({name,validate,required,initialValue}),error=_useField.error,touched=_useField.touched,value=_useField.value,onChange=_useField.onChange,onBlur=_useField.onBlur;return react__WEBPACK_IMPORTED_MODULE_22__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_26__.A,{name,label,legend,hint,error,boldLabel},react__WEBPACK_IMPORTED_MODULE_22__.createElement(StyledSelect,{fullWidth,name,onChange,onBlur,meta:{error,touched},key:Array.isArray(options)&&options.length>0?value:void 0,input:_objectSpread({id:name,defaultValue:value},rest)},emptyOption&&react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:"",value:""},emptyOption),options.map((function(_ref5){var optionLabel=_ref5.label,optionValue=_ref5.value;return react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:optionValue,value:optionValue,selected:value===optionValue},optionLabel)}))),null===(_options$find=options.find((function(o){return o.value===value})))||void 0===_options$find?void 0:_options$find.children)};FieldSelect.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,validate:prop_types__WEBPACK_IMPORTED_MODULE_29___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_29___default().func,prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired})),emptyOption:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,fullWidth:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldSelect;FieldSelect.__docgenInfo={description:"A Select dropdown field for use in forms.",methods:[],displayName:"FieldSelect",props:{options:{defaultValue:{value:"[]",computed:!1},description:"Items for the list",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0}}}},required:!1},emptyOption:{defaultValue:{value:"'Please select'",computed:!1},description:"Text to display when no items are selected",type:{name:"string"},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"string"},required:!1},fullWidth:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldTypeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_Typeahead__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Typeahead/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","validate","required","label","legend","hint","initialValue","options","autoScroll","className","onChange"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_29__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  textarea {\n    width: 100%;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.Es.SCALE_2,";\n  ")})),FieldTypeahead=function FieldTypeahead(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,hint=_ref.hint,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?null:_ref$initialValue,options=_ref.options,autoScroll=_ref.autoScroll,className=_ref.className,onChange=_ref.onChange,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_26__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_26__.xW)().setFieldValue;return react__WEBPACK_IMPORTED_MODULE_22__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_27__.A,{name,label,legend,hint,error,autoScroll,className},react__WEBPACK_IMPORTED_MODULE_22__.createElement(StyledWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_22__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_23__.A,null,error),react__WEBPACK_IMPORTED_MODULE_22__.createElement(_Typeahead__WEBPACK_IMPORTED_MODULE_28__.A,_extends({name,"aria-label":label||legend,onBlur,onChange:function handleChange(newValue){setFieldValue(name,props.isMulti?newValue:newValue[0]),onChange&&onChange(newValue)},error,value,initialOptions:options},props))))};FieldTypeahead.propTypes=_objectSpread(_objectSpread({},_Typeahead__WEBPACK_IMPORTED_MODULE_28__.A.propTypes),{},{name:prop_types__WEBPACK_IMPORTED_MODULE_30___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().func,prop_types__WEBPACK_IMPORTED_MODULE_30___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_30___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_30___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_30___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_30___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().string,prop_types__WEBPACK_IMPORTED_MODULE_30___default().object]),initialValue:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().object,prop_types__WEBPACK_IMPORTED_MODULE_30___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_30___default().object)]),autoScroll:prop_types__WEBPACK_IMPORTED_MODULE_30___default().bool,onChange:prop_types__WEBPACK_IMPORTED_MODULE_30___default().func});const __WEBPACK_DEFAULT_EXPORT__=FieldTypeahead;FieldTypeahead.__docgenInfo={description:"A Typeahead for use in forms.\n\nThis is a wrapper around the `react-select` by Jed Watson, for indepth documention refer to [Github](https://github.com/JedWatson/react-select) or the [api docs](https://react-select.com/home)",methods:[],displayName:"FieldTypeahead",props:{initialValue:{defaultValue:{value:"null",computed:!1},description:"Sets initial value of the input",type:{name:"union",value:[{name:"object"},{name:"arrayOf",value:{name:"object"}}]},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},autoScroll:{description:"Whether the window should auto scroll into view this component",type:{name:"bool"},required:!1},onChange:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Form/elements/FieldWrapper/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),_govuk_react_form_group__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/form-group/dist/govuk-react-form-group.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_hint_text__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["name","label","legend","bigLegend","hint","error","showBorder","children","reduced","groupId","boldLabel","autoScroll"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFormGroup=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_form_group__WEBPACK_IMPORTED_MODULE_10__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){var isReduced=props.reduced,hasHint=!!props.hint;return"\n    ".concat(isReduced&&"\n    background-color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.WS,";\n    label {\n      font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n        + span {\n          font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n          + div span {\n            font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n          }\n        }\n      }\n      input {\n        border-width: 1px;\n      }\n    "),"\n    padding: 8px;\n    ").concat(hasHint?"padding-bottom: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,";"):"padding-bottom: 8px;",";\n    ")})),StyledFieldset=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("fieldset")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  min-width: 0;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  ","\n"])),(function(props){return props.showBorder&&"\n    border: 1px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.Pe,";\n    padding: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n  ")})),StyledFieldsetNoStyling=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("fieldset")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  min-width: 0;\n  margin: 0;\n  padding: 0;\n  border: 0;\n"]))),StyledLegend=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("legend")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  box-sizing: border-box;\n  display: table;\n  white-space: normal;\n  font-size: 19px;\n  padding: 0;\n  margin: 0;\n  padding-bottom: ",";\n  * {\n    margin-bottom: "," !important;\n  }\n  ","\n  ","\n\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n    padding-left: 8px;\n  ")}),(function(props){return props.showBorder&&"\n    padding: 8px;\n    margin-left: -8px;\n  "}),(function(props){return props.bigLegend&&"\n    margin-bottom: 20px;\n    padding-bottom: 0px;\n    font-size: 24px;\n  "})),StyledLegendNoStyle=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("legend")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  padding: 0;\n  margin: 0;\n"]))),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_label__WEBPACK_IMPORTED_MODULE_11__.A)(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,(function(props){return props.boldLabel&&" font-weight: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.sO.bold,";")})),StyledHint=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_hint_text__WEBPACK_IMPORTED_MODULE_12__.A)(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  padding: 0;\n  margin: 0;\n  padding-bottom: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_2,(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_2,";\n    padding-bottom: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,";\n  ")})),FieldInner=function FieldInner(_ref){var legend=_ref.legend,error=_ref.error,showBorder=_ref.showBorder,children=_ref.children,bigLegend=_ref.bigLegend,groupId=_ref.groupId;return legend?react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFieldset,{showBorder},react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLegend,{className:"govuk-heading-m",error,showBorder,bigLegend,id:groupId},legend),children):children},FieldWrapper=function FieldWrapper(_ref2){var name=_ref2.name,label=_ref2.label,legend=_ref2.legend,bigLegend=_ref2.bigLegend,hint=_ref2.hint,error=_ref2.error,_ref2$showBorder=_ref2.showBorder,showBorder=void 0!==_ref2$showBorder&&_ref2$showBorder,children=_ref2.children,reduced=_ref2.reduced,groupId=_ref2.groupId,_ref2$boldLabel=_ref2.boldLabel,boldLabel=void 0===_ref2$boldLabel||_ref2$boldLabel,_ref2$autoScroll=_ref2.autoScroll,autoScroll=void 0!==_ref2$autoScroll&&_ref2$autoScroll,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded),styledWrapperRef=react__WEBPACK_IMPORTED_MODULE_9__.useRef(null);return(0,react__WEBPACK_IMPORTED_MODULE_9__.useEffect)((function(){autoScroll&&styledWrapperRef.current.scrollIntoView()}),[autoScroll]),react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFormGroup,_extends({id:"field-".concat(name),"data-test":"field-".concat(name),reduced,hint,ref:styledWrapperRef},rest),legend?react__WEBPACK_IMPORTED_MODULE_9__.createElement(FieldInner,{legend,error,showBorder,bigLegend,groupId},label&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLabel,{boldLabel,error,htmlFor:name},label),hint&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledHint,{"data-test":"hint-text",error},hint),children):react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFieldsetNoStyling,null,react__WEBPACK_IMPORTED_MODULE_9__.createElement(FieldInner,{legend,error,showBorder,bigLegend,groupId},label&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLegendNoStyle,null,react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLabel,{"data-test":"field-label",boldLabel,error,htmlFor:name},label)),hint&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledHint,{"data-test":"hint-text",error},hint),children)))};FieldInner.propTypes={legend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,error:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,showBorder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,bigLegend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node},FieldWrapper.propTypes={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,bigLegend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,hint:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,error:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,showBorder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,autoScroll:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldWrapper;FieldWrapper.__docgenInfo={description:"A simple wrapper for use in the field components, which applies supporting elements and stylings. The FieldWrapper component caters for the child element within, by providing it with the wrapping elements it needs. In particular, this wrapper looks for passed props such as legends, labels, and hints, and provides the required layout or additional elements.\n\nIn some design cases, there are pages that contain forms with a single radio or checkbox question. These pages have a requirement for a bigger, 'page-title like' legend. The `bigLegend` prop is a boolean which provides alternative styling to the legend, to make it match the bigger legend requirement.",methods:[],displayName:"FieldWrapper",props:{showBorder:{defaultValue:{value:"false",computed:!1},description:"Boolean for showing borders",type:{name:"bool"},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},autoScroll:{defaultValue:{value:"false",computed:!1},description:"Whether the window should auto scroll into view this component",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},bigLegend:{description:"Boolean for showing a big legend",type:{name:"bool"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},error:{description:"Text for error",type:{name:"string"},required:!1},children:{description:"Node for children elements",type:{name:"node"},required:!1}}}},"./src/client/components/Form/elements/FormActions.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_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    * {\n      vertical-align: baseline;\n    }\n\n    * + * {\n      margin-left: ",";\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_4)},"./src/client/components/Form/elements/ResourceOptionsField/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/utils/index.js"),_Resource_Resource__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Resource/Resource.jsx"),_excluded=["id","field","resource","payload","taskName","resultToOptions","interceptOption"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var ResourceOptionsField=function ResourceOptionsField(_ref){var _ref$id=_ref.id,id=void 0===_ref$id?"__RESOURCE_OPTIONS__":_ref$id,Field=_ref.field,_ref$resource=_ref.resource,Rsrc=void 0===_ref$resource?_Resource_Resource__WEBPACK_IMPORTED_MODULE_7__.Ay:_ref$resource,_ref$payload=_ref.payload,payload=void 0===_ref$payload?{_:"0"}:_ref$payload,taskName=_ref.taskName,_ref$resultToOptions=_ref.resultToOptions,resultToOptions=void 0===_ref$resultToOptions?_utils__WEBPACK_IMPORTED_MODULE_6__.Bc:_ref$resultToOptions,_ref$interceptOption=_ref.interceptOption,interceptOption=void 0===_ref$interceptOption?function(x){return x}:_ref$interceptOption,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(Rsrc,{name:taskName,id,payload,progressBox:!0},(function(result){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(Field,_extends({},props,{disabled:void 0===result,options:void 0===result?[]:resultToOptions(result).map(interceptOption)}))}))};ResourceOptionsField.propTypes={field:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,resource:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,taskName:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,resultToOptions:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func};const __WEBPACK_DEFAULT_EXPORT__=ResourceOptionsField;ResourceOptionsField.__docgenInfo={description:"@function ResourceOptionsField\n@description Makes it easy to convert an _options form field_ (a field which\npresents the user a number of options to the user) into a field, which\nresolve its options with a _resource_ or a _task_.\nYou need to either specify {props.resource} or {props.taskName}.\nAll other props not specified here will be forwarded to the field component\npassed to {props.field}.\n@type {import(\"./types\").ResourceOptionsField} Form\n@typedef {import(\"./types\").Props} Props\n@param {Object} props\n@param {Function} [props.field] - The _options form field_ to be wrapped.\n@param {Function} [props.resource] - A particular _resource_ component which\nrepresents a specific resource.\n@param {string} [props.taskName] - The name of the _task_ to use instead of\na {resource}.\n@param {string} [props.id] - ID for the _task_ or _resource_. This prop is\nrequired with if {props.taskName} is used and optional with {props.resource}.\n@param {any} [props.payload] - The optional ID\n@param {Props['resultToOptions']} [props.resultToOptions=idNamesToValueLabels]\n- Use this to transform the _task_/_resource_ result to the field options.\n@param {Props['interceptOption']} [props.interceptOption] - A function that\nwill be called for each option already resolved with {props.resultToOptions}\nand should return the tweaked option. Allows you to tweak the optios e.g.\nto add children or hint to it.\n@example\nimport CountriesResource from '../Resource'\nimport FieldSelect from '../Form/elements/FieldSelect'\n\nconst FieldCountriesSelect = (props) =>\n <ResourceOptionsField\n   {...props}\n   resource={CountriesResource}\n   field={FieldSelect}\n />",methods:[],displayName:"ResourceOptionsField",props:{id:{defaultValue:{value:"'__RESOURCE_OPTIONS__'",computed:!1},description:"",type:{name:"string"},required:!1},resource:{defaultValue:{value:"multiInstance({\n  name: 'Resource',\n  actionPattern: 'RESOURCE',\n  reducer: (state, { id, result }) => ({\n    ...state,\n    [id]: result,\n  }),\n  idProp: 'name',\n  componentStateToProps: (state, _, { id }) => ({ result: state[id] }),\n  component: ({\n    name,\n    id,\n    taskStatusProps,\n    children,\n    result,\n    payload,\n    transformer = (x) => [x],\n    progressBox,\n    noRetry,\n  }) =>\n    progressBox ? (\n      <LoadingBox\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n          ignoreIfInProgress: true,\n        }}\n      >\n        {result ? children(...transformer(result)) : children()}\n      </LoadingBox>\n    ) : (\n      <Task.Status\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n        }}\n      >\n        {() => result !== undefined && children(...transformer(result))}\n      </Task.Status>\n    ),\n})",computed:!0},description:"",type:{name:"func"},required:!1},payload:{defaultValue:{value:"{ _: '0' }",computed:!1},required:!1},resultToOptions:{defaultValue:{value:"(idNames) => idNames.map(idNameToValueLabel)",computed:!1},description:"",type:{name:"func"},required:!1},interceptOption:{defaultValue:{value:"(x) => x",computed:!1},required:!1},field:{description:"",type:{name:"func"},required:!0},taskName:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/Step.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_ButtonLink__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/ButtonLink/index.jsx"),_FormActions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx");function Step(_ref){var name=_ref.name,backButton=_ref.backButton,forwardButton=_ref.forwardButton,cancelUrl=_ref.cancelUrl,_ref$submitButtonLabe=_ref.submitButtonLabel,submitButtonLabel=void 0===_ref$submitButtonLabe?"Submit":_ref$submitButtonLabe,children=_ref.children,_useFormContext=(0,_hooks__WEBPACK_IMPORTED_MODULE_5__.xW)(),currentStep=_useFormContext.currentStep,goBack=_useFormContext.goBack,registerStep=_useFormContext.registerStep,deregisterStep=_useFormContext.deregisterStep,getStepIndex=_useFormContext.getStepIndex,isFirstStep=_useFormContext.isFirstStep,isLastStep=_useFormContext.isLastStep;(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){return registerStep(name),function(){return deregisterStep(name)}}),[name]);var index=getStepIndex(name);if(index!==currentStep||void 0===index||void 0===currentStep)return null;return react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,"function"==typeof children?children():children,react__WEBPACK_IMPORTED_MODULE_1__.createElement(_FormActions__WEBPACK_IMPORTED_MODULE_7__.A,null,function renderForwardButton(){if(void 0===forwardButton){var label=isLastStep()?submitButtonLabel:"Continue";return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{"data-test":(0,lodash__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(label.toLowerCase()),name:"forward"},label)}return"string"==typeof forwardButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{name:"forward"},forwardButton):forwardButton}(),!isFirstStep()&&function renderBackButton(){return void 0===backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},"Back"):"string"==typeof backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},backButton):backButton}(),isFirstStep()&&cancelUrl&&function renderCancelLink(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__.A,{"data-test":"cancel-link",href:cancelUrl},"Cancel")}()))}Step.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string.isRequired,backButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,forwardButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,prop_types__WEBPACK_IMPORTED_MODULE_8___default().node])};const __WEBPACK_DEFAULT_EXPORT__=Step;Step.__docgenInfo={description:"",methods:[],displayName:"Step",props:{submitButtonLabel:{defaultValue:{value:"'Submit'",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},backButton:{description:"",type:{name:"node"},required:!1},forwardButton:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"union",value:[{name:"func"},{name:"node"}]},required:!1}}}},"./src/client/components/Form/hooks/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Mt:()=>_useField__WEBPACK_IMPORTED_MODULE_0__.A,hN:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.h,xW:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.x});var _useField__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js")},"./src/client/components/Form/hooks/useField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js");const __WEBPACK_DEFAULT_EXPORT__=function useField(_ref){var name=_ref.name,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,_ref$validate=_ref.validate,validate=void 0===_ref$validate?null:_ref$validate,_ref$required=_ref.required,required=void 0===_ref$required?null:_ref$required,_useFormContext=(0,_useFormContext__WEBPACK_IMPORTED_MODULE_5__.x)(),registerField=_useFormContext.registerField,deregisterField=_useFormContext.deregisterField,setFieldTouched=_useFormContext.setFieldTouched,setFieldValue=_useFormContext.setFieldValue,getFieldState=_useFormContext.getFieldState;(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){var validators;return registerField({name,initialValue,validate:(validators=(0,lodash__WEBPACK_IMPORTED_MODULE_4__.castArray)(validate).filter((function(v){return v})),required&&validators.unshift((function(value){return(0,lodash__WEBPACK_IMPORTED_MODULE_4__.isEmpty)(value)?required:null})),validators)}),function(){deregisterField(name)}}),[name]);var fieldState=getFieldState(name,initialValue);return{name,value:fieldState.value,error:fieldState.error,touched:fieldState.touched,onChange:function onChange(e){return setFieldValue(name,e.target.value)},onChangeFileUpload:function onChangeFileUpload(e){return setFieldValue(name,e.target.files)},onBlur:function onBlur(){return setFieldTouched(name,!0)}}}},"./src/client/components/Form/hooks/useFormContext.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>FormContextProvider,x:()=>useFormContext});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var _constate2=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.")}()}((0,__webpack_require__("./node_modules/constate/dist/constate.es.js").A)((function(state){return state})),2),FormContextProvider=_constate2[0],useFormContext=_constate2[1]},"./src/client/components/Form/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Form});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),ErrorSummary=__webpack_require__("./src/client/components/ErrorSummary/index.jsx"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),LoadingBox=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Wrap=__webpack_require__("./src/client/components/Wrap.jsx"),Analytics=__webpack_require__("./src/client/components/Analytics/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["type","result"];function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 FormActions=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),hooks=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),Effect=__webpack_require__("./src/client/components/Effect.jsx");const HardRedirect=(0,__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs").connect)()((function(_ref){var to=_ref.to,when=_ref.when,dispatch=_ref.dispatch,_ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return(0,react.useEffect)((function(){when&&dispatch({type:actions.ntj,to})}),[to,when]),"function"==typeof children?children((function(to){return dispatch({type:actions.ntj,to})})):children}));var colours=__webpack_require__("./src/client/utils/colours.js");function Form_typeof(o){return Form_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},Form_typeof(o)}var Form_excluded=["submissionTaskName","id","analyticsFormName","analyticsData","cancelButtonLabel","cancelRedirectTo","keepValuesOnDeregister","initialValuesTaskName","initialValuesPayload","redirectTo","flashMessage","children","initialValues","redirectMode","scrollToTopOnStep","showStepInUrl","reactRouterRedirect","transformInitialValues","transformPayload","submissionTaskResultToValues","onSuccess","onError","submitButtonLabel","submitButtonColour","onLoad","result","resolved","errors","errorStatus","values","touched","steps","initialStepIndex","goToStep"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 Form_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return Form_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)?Form_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 Form_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Form_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 Form_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Form_ownKeys(Object(t),!0).forEach((function(r){Form_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Form_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Form_defineProperty(e,r,t){return(r=function Form_toPropertyKey(t){var i=function Form_toPrimitive(t,r){if("object"!=Form_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Form_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Form_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _validateForm3=function validateForm(state){return Object.values(state.fields).map((function(field){return{name:field.name,error:[].concat(field.validate).map((function(validator){var _state$values;return validator(null===(_state$values=state.values)||void 0===_state$values?void 0:_state$values[field.name],field,state)})).filter(Boolean)[0]}})).filter((function(_ref){return _ref.error})).reduce((function(acc,_ref2){var name=_ref2.name,error=_ref2.error;return{errors:Form_objectSpread(Form_objectSpread({},acc.errors),{},Form_defineProperty({},name,error)),touched:Form_objectSpread(Form_objectSpread({},acc.touched),{},Form_defineProperty({},name,!0))}}),{})},Form=(0,multiinstance.Ay)({name:"Form",reducer:function(){var _action$keepValuesOnD,_state$values$action$,_state$values,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{values:{},touched:{},errors:{},errorStatus:0,fields:{},currentStep:0,steps:[]},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,action=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);switch(type){case actions.IDk:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),action.initialValues),keepValuesOnDeregister:null!==(_action$keepValuesOnD=action.keepValuesOnDeregister)&&void 0!==_action$keepValuesOnD&&_action$keepValuesOnD,currentStep:action.initialStepIndex});case actions.n7E:return{values:_objectSpread({},action.values),touched:{},errors:{},errorStatus:0,fields:_objectSpread({},state.fields),currentStep:0,steps:_toConsumableArray(state.steps)};case actions.ZYf:return _objectSpread(_objectSpread({},state),{},{result,resolved:!0});case"FORM__RESET_RESOLVED":return(0,lodash.omit)(state,"result","resolved");case actions.J4U:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread(_objectSpread({},state.previousValues),state.values),{},_defineProperty({},action.field.name,null!==(_state$values$action$=null===(_state$values=state.values)||void 0===_state$values?void 0:_state$values[action.field.name])&&void 0!==_state$values$action$?_state$values$action$:action.field.initialValue)),touched:_objectSpread(_objectSpread({},state.touched),{},_defineProperty({},action.field.name,!1)),fields:_objectSpread(_objectSpread({},state.fields),{},_defineProperty({},action.field.name,action.field))});case actions.Wd_:return _objectSpread(_objectSpread({},state),{},{values:state.keepValuesOnDeregister?state.values:(0,lodash.omit)(state.values,action.fieldName),errors:(0,lodash.omit)(state.errors,action.fieldName),touched:(0,lodash.omit)(state.touched,action.fieldName),fields:(0,lodash.omit)(state.fields,action.fieldName)});case actions.i5T:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),{},_defineProperty({},action.fieldName,action.fieldValue))});case"FORM__FIELD_SET_VALUES":return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),action.values)});case actions.OlO:return _objectSpread(_objectSpread({},state),{},{touched:_objectSpread(_objectSpread({},state.touched),{},_defineProperty({},action.fieldName,!0))});case actions.zuV:return _objectSpread(_objectSpread({},state),{},{errors:action.errors,touched:action.touched});case actions.eEr:return _objectSpread(_objectSpread({},state),{},{errors:action.errors,touched:Object.fromEntries(Object.keys(action.errors).map((function(key){return[key,!0]}))),errorStatus:action.httpStatusCode});case actions.oWe:return _objectSpread(_objectSpread({},state),{},{currentStep:state.currentStep+1,previousValues:state.values});case actions.gaL:return _objectSpread(_objectSpread({},state),{},{currentStep:state.currentStep-1,previousValues:state.values});case actions.G2D:var nextCurrentStep=action.stepName?state.steps.indexOf(action.stepName):0;return _objectSpread(_objectSpread({},state),{},{currentStep:nextCurrentStep,currentStepName:action.stepName,previousValues:state.values});case actions.XpH:return _objectSpread(_objectSpread({},state),{},{steps:state.steps.includes(action.stepName)?state.steps:[].concat(_toConsumableArray(state.steps),[action.stepName])});case actions.I0G:return _objectSpread(_objectSpread({},state),{},{steps:state.steps.filter((function(s){return s!==action.stepName}))});default:return state}},component:function _Form(_ref3){var submissionTaskName=_ref3.submissionTaskName,id=_ref3.id,analyticsFormName=_ref3.analyticsFormName,analyticsData=_ref3.analyticsData,_ref3$cancelButtonLab=_ref3.cancelButtonLabel,cancelButtonLabel=void 0===_ref3$cancelButtonLab?"Cancel":_ref3$cancelButtonLab,cancelRedirectTo=_ref3.cancelRedirectTo,keepValuesOnDeregister=_ref3.keepValuesOnDeregister,initialValuesTaskName=_ref3.initialValuesTaskName,initialValuesPayload=_ref3.initialValuesPayload,redirectTo=_ref3.redirectTo,flashMessage=_ref3.flashMessage,children=_ref3.children,initialValues=_ref3.initialValues,_ref3$redirectMode=_ref3.redirectMode,redirectMode=void 0===_ref3$redirectMode?"hard":_ref3$redirectMode,_ref3$scrollToTopOnSt=_ref3.scrollToTopOnStep,scrollToTopOnStep=void 0!==_ref3$scrollToTopOnSt&&_ref3$scrollToTopOnSt,_ref3$showStepInUrl=_ref3.showStepInUrl,showStepInUrl=void 0!==_ref3$showStepInUrl&&_ref3$showStepInUrl,_ref3$transformInitia=(_ref3.reactRouterRedirect,_ref3.transformInitialValues),transformInitialValues=void 0===_ref3$transformInitia?function(x){return x}:_ref3$transformInitia,_ref3$transformPayloa=_ref3.transformPayload,transformPayload=void 0===_ref3$transformPayloa?function(x){return x}:_ref3$transformPayloa,submissionTaskResultToValues=_ref3.submissionTaskResultToValues,onSuccess=_ref3.onSuccess,onError=_ref3.onError,_ref3$submitButtonLab=_ref3.submitButtonLabel,submitButtonLabel=void 0===_ref3$submitButtonLab?"Save":_ref3$submitButtonLab,_ref3$submitButtonCol=_ref3.submitButtonColour,submitButtonColour=void 0===_ref3$submitButtonCol?colours.EI:_ref3$submitButtonCol,onLoad=_ref3.onLoad,result=_ref3.result,resolved=_ref3.resolved,_ref3$errors=_ref3.errors,errors=void 0===_ref3$errors?{}:_ref3$errors,_ref3$values=(_ref3.errorStatus,_ref3.values),values=void 0===_ref3$values?{}:_ref3$values,_ref3$touched=_ref3.touched,touched=void 0===_ref3$touched?{}:_ref3$touched,_ref3$steps=_ref3.steps,steps=void 0===_ref3$steps?[]:_ref3$steps,_ref3$initialStepInde=_ref3.initialStepIndex,initialStepIndex=void 0===_ref3$initialStepInde?0:_ref3$initialStepInde,goToStep=_ref3.goToStep,props=function Form_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function Form_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,Form_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));(0,react.useEffect)((function(){onLoad(initialValues,initialStepIndex,keepValuesOnDeregister)}),[]),(0,react.useEffect)((function(){scrollToTopOnStep&&window.scrollTo(0,0)}),[scrollToTopOnStep,props.currentStep]),(0,react.useEffect)((function(){showStepInUrl&&(qsParams.step?goToStep(qsParams.step||steps[initialStepIndex]):navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[initialStepIndex]}))},{replace:!0}))}),[showStepInUrl,qsParams.step,steps]),(0,react.useEffect)((function(){null!=result&&result.errors&&(onError(Object.fromEntries(Object.entries(result.errors).map((function(_ref4){var _ref5=_slicedToArray(_ref4,2),k=_ref5[0],v=_ref5[1];return[(0,lodash.camelCase)(k),v.join(", ")]})))),window.scrollTo({top:0}))}),[result]);var contextProps=Form_objectSpread(Form_objectSpread({},props),{},{errors,values,touched,steps,goToStep,getStepIndex:function getStepIndex(stepName){var index=null==steps?void 0:steps.indexOf(stepName);return-1!==index?index:null},isFirstStep:function isFirstStep(){return 0===(null==props?void 0:props.currentStep)},isLastStep:function isLastStep(){return!steps.length||(null==props?void 0:props.currentStep)===(null==steps?void 0:steps.length)-1},getFieldState:function getFieldState(fieldName,initialValue){var _values$fieldName,_touched$fieldName;return{value:null!==(_values$fieldName=values[fieldName])&&void 0!==_values$fieldName?_values$fieldName:initialValue,touched:null!==(_touched$fieldName=touched[fieldName])&&void 0!==_touched$fieldName&&_touched$fieldName,error:errors[fieldName]}}}),ref=(0,react.useRef)();return react.createElement(Wrap.A,{with:Resource.Ay,when:initialValuesTaskName,props:{id,name:initialValuesTaskName,payload:initialValuesPayload,taskStatusProps:{dismissable:!1}}},(function(initialValues){return react.createElement(Analytics.A,null,(function(pushAnalytics){var analytics=function analytics(action,extra){return pushAnalytics({category:"Form interaction",action,label:analyticsFormName,extra})};return react.createElement(react.Fragment,null,react.createElement(hooks.hN,_extends({},contextProps,{registerField:props.registerField(initialValues),setIsLoading:function setIsLoading(isLoading){},goBack:function goBack(){(0,react_dom.flushSync)((function(){return props.goBack()})),analytics("previous step",{currentStep:props.currentStep}),showStepInUrl&&navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[props.currentStep-1]}))})},resetFields:function resetFields(){var values=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};props.resetFields(Form_objectSpread(Form_objectSpread({},initialValues),values))},validateForm:function validateForm(fieldNamesToValidate){var _validateForm=_validateForm3(Form_objectSpread(Form_objectSpread({},contextProps),{},{fields:null!=fieldNamesToValidate&&fieldNamesToValidate.length?lodash_default().pick(contextProps.fields,fieldNamesToValidate):contextProps.fields})),errors=_validateForm.errors,touched=_validateForm.touched;return props.onValidate(errors,touched),errors}}),react.createElement(Task.A,null,(function(t){var submissionTask=t(submissionTaskName,id);return react.createElement(LoadingBox.A,{name:submissionTaskName,id,when:"hard"===redirectMode&&redirectTo&&resolved},react.createElement("form",{autoComplete:"off",noValidate:!0,onSubmit:function onSubmit(e){e.preventDefault();var _validateForm2=_validateForm3(contextProps),errors=_validateForm2.errors,touched=_validateForm2.touched;props.onValidate(errors,touched),(0,lodash.isEmpty)(errors)?contextProps.isLastStep()?(submissionTask.start({payload:transformPayload(values),onSuccessDispatch:"FORM__RESOLVED"}),analytics("Submit")):(props.goForward(),analytics("Next step",{currentStep:props.currentStep}),showStepInUrl&&navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[props.currentStep+1]}))})):(requestAnimationFrame((function(){var _ref$current;return null===(_ref$current=ref.current)||void 0===_ref$current?void 0:_ref$current.focus()})),analytics("Validation errors",{errors}))}},react.createElement(HardRedirect,null,(function(hardRedirect){return react.createElement(Effect.A,{dependencyList:[submissionTaskName,id,resolved,result],effect:function effect(){if(resolved&&(null==result||!result.errors)){if(analytics("Submission request success",analyticsData&&analyticsData(values)),flashMessage){var message=flashMessage(result,values);props.writeFlashMessage(message)}"soft"===redirectMode&&redirectTo&&navigate(redirectTo(result,values)),onSuccess&&onSuccess(result,values,{flashMessage:props.writeFlashMessage,hardRedirect,softRedirect:navigate}),props.resetResolved()}}})})),react.createElement(Effect.A,{dependencyList:[initialValues],effect:function effect(){initialValues&&onLoad(transformInitialValues(initialValues),initialStepIndex)}}),submissionTaskResultToValues&&result&&react.createElement(Effect.A,{dependencyList:[result],effect:function effect(){props.setValues(null==submissionTaskResultToValues?void 0:submissionTaskResultToValues(result))}}),react.createElement(Effect.A,{dependencyList:[submissionTask.hasError],effect:function effect(){submissionTask.hasError&&analytics("Submission request error",{error:submissionTask.errorMessage})}}),"hard"===redirectMode&&redirectTo&&resolved&&react.createElement(HardRedirect,{to:redirectTo(result,values),when:resolved}),!(0,lodash.isEmpty)(errors)&&react.createElement(ErrorSummary.A,{ref,id:"form-errors","data-test":"summary-form-errors",errors:Object.entries(errors).map((function(_ref6){var _ref7=_slicedToArray(_ref6,2);return{targetName:_ref7[0],text:_ref7[1]}}))}),"function"==typeof children?children(contextProps):children,!steps.length&&react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{buttonColour:submitButtonColour,"data-test":"submit-button"},submitButtonLabel),cancelRedirectTo&&react.createElement(govuk_react_link_esm.A,{href:cancelRedirectTo(),"data-test":"cancel-button"},cancelButtonLabel))))}))))}))}))},dispatchToProps:function dispatchToProps(dispatch){return{onLoad:function onLoad(initialValues,initialStepIndex,keepValuesOnDeregister){return dispatch({type:"FORM__LOADED",initialValues,initialStepIndex,keepValuesOnDeregister})},resetResolved:function resetResolved(){return dispatch({type:"FORM__RESET_RESOLVED"})},registerField:function registerField(initialValues){return function(field){return dispatch({type:"FORM__FIELD_REGISTER",field:Form_objectSpread({initialValue:null==initialValues?void 0:initialValues[field.name]},field)})}},deregisterField:function deregisterField(fieldName){return dispatch({type:"FORM__FIELD_DEREGISTER",fieldName})},resetFields:function resetFields(values){return dispatch({type:"FORM__FIELDS__RESET",values})},setFieldValue:function setFieldValue(fieldName,fieldValue){return dispatch({type:"FORM__FIELD_SET_VALUE",fieldName,fieldValue})},setValues:function setValues(values){return dispatch({type:"FORM__FIELD_SET_VALUES",values})},setFieldTouched:function setFieldTouched(fieldName){return dispatch({type:"FORM__FIELD_TOUCHED",fieldName})},onValidate:function onValidate(errors,touched){return dispatch({type:"FORM__VALIDATE",errors,touched})},onError:function onError(errors){return dispatch({type:"FORM__ERRORED",errors})},goForward:function goForward(values){return dispatch({type:"FORM__FORWARD",values})},goBack:function goBack(){return dispatch({type:"FORM__BACK"})},goToStep:function goToStep(stepName){dispatch({type:"FORM__GO_TO_STEP",stepName})},registerStep:function registerStep(stepName){return dispatch({type:"FORM__STEP_REGISTER",stepName})},deregisterStep:function deregisterStep(stepName){return dispatch({type:"FORM__STEP_DEREGISTER",stepName})},writeFlashMessage:function writeFlashMessage(message){if(message)if("string"!=typeof message){var _message=_slicedToArray(message,3),heading=_message[0],body=_message[1],messageType=_message[2];dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType,message:[heading,body]})}else dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType:"success",message})}}},actionPattern:"FORM__"});Form.propTypes={id:prop_types_default().string.isRequired,analyticsFormName:prop_types_default().string.isRequired,analyticsData:prop_types_default().func,cancelRedirectTo:prop_types_default().oneOfType([prop_types_default().func,prop_types_default().bool]),cancelButtonLabel:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]),submissionTaskName:prop_types_default().string.isRequired,submitButtonLabel:prop_types_default().string,redirectTo:prop_types_default().func,redirectMode:prop_types_default().oneOf(["hard","soft"]),flashMessage:prop_types_default().func,initialValuesTaskName:prop_types_default().string,initialValues:prop_types_default().object,keepValuesOnDeregister:prop_types_default().bool,transformInitialValues:prop_types_default().func,transformPayload:prop_types_default().func,initialStepIndex:prop_types_default().number,scrollToTopOnStep:prop_types_default().bool};const components_Form=Form},"./src/client/components/Form/validators.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Rp:()=>email,ai:()=>number});__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./src/client/utils/date.js"),__webpack_require__("./src/client/transformers/index.js");var EMAIL_PATTERN=/(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,IS_NUMBER=/^[0-9]*$/,email=function email(x){return EMAIL_PATTERN.test(x)?null:"Enter an email address in the correct format, like name@example.com"},number=function number(x,errorMessage){return!x||IS_NUMBER.test(x)?null:errorMessage}},"./src/client/components/InlineIcon/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _templateObject;__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay.span(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  height: 2ex;\n  width: 2ex;\n  vertical-align: -10%;\n  display: inline-block;\n"])))},"./src/client/components/InvestmentProjectLocalHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentProjectLocalHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),Timeline=__webpack_require__("./src/client/components/Timeline/index.jsx"),date=__webpack_require__("./src/client/utils/date.js"),colours=(__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/client/utils/colours.js"));const timeline_theme={container:{backgroundColor:colours.P1,largeScreen:{padding:"23px 0 0 18px"}},li:{before:{left:"-8px",top:"2px",width:govuk_react_constants_esm.Es.SCALE_2,height:govuk_react_constants_esm.Es.SCALE_2,border:"2px solid ".concat(colours.ej)},span:{display:"inline"},mqLargeScreen:{padding:"".concat(govuk_react_constants_esm.Es.SCALE_4," 0 ").concat(govuk_react_constants_esm.Es.SCALE_4," 0"),borderTop:"2px solid ".concat(colours.ej),before:{top:"-8px",left:"-10px"}}}};var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var MetaList=(0,styled_components_browser_esm.Ay)("ul")({}),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({marginRight:govuk_react_constants_esm.Es.SCALE_5,display:"inline-grid","&:last-child":{marginTop:govuk_react_constants_esm.Es.SCALE_3,marginBottom:govuk_react_constants_esm.Es.SCALE_3}},govuk_react_constants_esm.qs.LARGESCREEN,{"&:last-child":{marginTop:0,marginBottom:0}})),StyledListItemText=(0,styled_components_browser_esm.Ay)("span")({color:"#6f777b",fontSize:govuk_react_constants_esm.SG.SIZE_16,fontWeight:400,marginBottom:govuk_react_constants_esm.Es.SCALE_1}),StyledChild=(0,styled_components_browser_esm.Ay)("span")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),StyledStatusMessage=(0,styled_components_browser_esm.Ay)(StatusMessage.A)({fontSize:govuk_react_constants_esm.SG.SIZE_20,fontWeight:700,marginBottom:govuk_react_constants_esm.Es.SCALE_1,marginTop:govuk_react_constants_esm.Es.SCALE_2,backgroundColor:colours.UE}),MetaListItem=function MetaListItem(_ref){var text=_ref.text,children=_ref.children;return react.createElement(StyledListItem,null,react.createElement(StyledListItemText,null,text),react.createElement(StyledChild,null,children))},InvestmentProjectLocalHeader=function InvestmentProjectLocalHeader(_ref2){var _investment$createdBy,investment=_ref2.investment;return react.createElement(react.Fragment,null,react.createElement(MetaList,{"data-test":"meta-list"},react.createElement(MetaListItem,{text:"Status"},(0,lodash.upperFirst)(investment.status)," -"," ",react.createElement("a",{href:urls_default().investments.projects.status(investment.id)},"change")),react.createElement(MetaListItem,{text:"Project code"},investment.projectCode),react.createElement(MetaListItem,{text:"Valuation"},investment.valueComplete?"Project valued":"Not yet valued"),react.createElement(MetaListItem,{text:"Created on"},(0,date.formatMediumDateTime)(investment.createdOn)),(null===(_investment$createdBy=investment.createdBy)||void 0===_investment$createdBy||null===(_investment$createdBy=_investment$createdBy.ditTeam)||void 0===_investment$createdBy?void 0:_investment$createdBy.name)&&react.createElement(MetaListItem,{text:"Created by"},investment.createdBy.ditTeam.name)),react.createElement(styled_components_browser_esm.NP,{theme:timeline_theme},react.createElement(Timeline.A,{stages:constants.s1,currentStage:investment.stage.name})),"Won"===investment.stage.name&&!investment.archived&&react.createElement(StyledStatusMessage,{"data-test":"project-won-message"},"This project has been verified as won. You should not make any changes to this project.",react.createElement("br",null),react.createElement("br",null),"If you would like to make changes, please contact the Investment Promotion Performance team."))};InvestmentProjectLocalHeader.propTypes={investment:prop_types_default().object.isRequired};const components_InvestmentProjectLocalHeader=InvestmentProjectLocalHeader;InvestmentProjectLocalHeader.__docgenInfo={description:"The **InvestmentProjectLocalHeader** contains the following:\n\n- Investment metadata such as: Status (Ongoing, Delayed, Abandoned, Lost and Dormant), Project code, Valuation and a Created on date\n\n- A list of five stages (Prospect', 'Assign PM', 'Active', 'Verify win' and 'Won') in chronological order where the current stage is clear to see",methods:[],displayName:"InvestmentProjectLocalHeader",props:{investment:{description:"An investment project",type:{name:"object"},required:!0}}}},"./src/client/components/InvestmentReminders/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentReminders});var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),state=__webpack_require__("./src/client/components/InvestmentReminders/state.js"),actions=__webpack_require__("./src/client/actions.js"),styled_components_browser_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js")),govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),constants=__webpack_require__("./src/common/constants.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),colours=__webpack_require__("./src/client/utils/colours.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _require=__webpack_require__("./src/client/utils/date.js"),formatWithoutParsing=_require.formatWithoutParsing,getDifferenceInDaysLabel=_require.getDifferenceInDaysLabel,StyledSubHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  color: ",";\n  font-size: ",";\n  font-weight: ",";\n  margin-top: ",";\n  margin-bottom: ",";\n"])),colours.Bk,govuk_react_constants_esm.SG.SIZE_19,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),StyledSubHeadingEmpty=(0,styled_components_browser_esm.Ay)(StyledSubHeading)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n  margin: 0;\n"])),colours.hM),StyledProjectLink=(0,styled_components_browser_esm.Ay)("a")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: block;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_19,colours.yV),StyledProjectCode=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin: "," 0;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.hM),StyledDueDate=(0,styled_components_browser_esm.Ay)("span")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledDueCountdown=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  margin-top: ",";\n  text-align: right;\n  white-space: nowrap;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n"]))),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: space-between;\n  align-items: flex-end;\n"])),govuk_react_constants_esm.Es.SCALE_4),StyledDetails=(0,styled_components_browser_esm.Ay)("div")(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n  padding-right: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),OutstandingPropositions=function OutstandingPropositions(_ref){var results=_ref.results,count=_ref.count;return react.createElement(react.Fragment,null,results.length?react.createElement("div",{"data-test":"outstanding-propositions"},react.createElement(StyledSubHeading,{"data-test":"outstanding-propositions-heading"},"Outstanding propositions (",count,")"),react.createElement(StyledList,{"data-test":"outstanding-propositions-list"},results.map((function(_ref2){var id=_ref2.id,investment_project=_ref2.investment_project,name=_ref2.name,deadline=_ref2.deadline;return react.createElement(StyledListItem,{key:id},react.createElement(StyledDetails,null,react.createElement(StyledProjectLink,{href:urls_default().investments.projects.propositions(investment_project.id)},name),react.createElement(StyledProjectCode,{"data-test":"outstanding-proposition-project-code"},investment_project.project_code),react.createElement(StyledDueDate,{"data-test":"outstanding-proposition-deadline"},"Due"," ",formatWithoutParsing(new Date(deadline),constants.DATE_DAY_LONG_FORMAT))),react.createElement(StyledDueCountdown,{"data-test":"outstanding-proposition-countdown"},getDifferenceInDaysLabel(deadline)))})))):react.createElement(StyledSubHeadingEmpty,{"data-test":"outstanding-propositions-empty"},"Projects with propositions due will be displayed here."))};OutstandingPropositions.propTypes={count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const InvestmentReminders_OutstandingPropositions=OutstandingPropositions;OutstandingPropositions.__docgenInfo={description:"",methods:[],displayName:"OutstandingPropositions",props:{count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),InvestmentReminders=function InvestmentReminders(_ref){var adviser=_ref.adviser,results=_ref.results,count=_ref.count;return react.createElement("div",{"data-test":"investment-reminders"},react.createElement(Task.A.Status,{name:state.M,id:state.ID,progressMessage:"Loading your reminders",startOnRender:{payload:{adviser},onSuccessDispatch:actions.gEw}},(function(){return react.createElement(InvestmentReminders_OutstandingPropositions,{results,count})})))};InvestmentReminders.propTypes={adviser:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired,count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const components_InvestmentReminders=(0,react_redux.connect)(state.o)(InvestmentReminders);InvestmentReminders.__docgenInfo={description:"Shows reminders of upcoming propositions for an adviser to deal with.",methods:[],displayName:"InvestmentReminders",props:{adviser:{description:"The adviser to display investment reminders for.",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0},count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}}},"./src/client/components/InvestmentReminders/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,M:()=>TASK_GET_OUTSTANDING_PROPOSITIONS,o:()=>state2props});var ID="investmentReminders",TASK_GET_OUTSTANDING_PROPOSITIONS="TASK_GET_OUTSTANDING_PROPOSITIONS",state2props=function state2props(state){return state[ID]}},"./src/client/components/Layout/DefaultLayout.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__),_govuk_react_grid_col__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),_govuk_react_grid_row__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),_Footer__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/Footer/index.jsx"),_Main__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Main/index.jsx"),_LocalHeader_LocalHeader__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),_DataHubHeader__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/DataHubHeader/index.jsx"),_WatchTextContent__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/WatchTextContent.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var GlobalStyles=(0,styled_components__WEBPACK_IMPORTED_MODULE_21__.DU)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  *, *:before, *:after {\n    box-sizing: initial;\n  }\n"]))),DefaultLayout=function DefaultLayout(_ref){var heading=_ref.heading,headingLink=_ref.headingLink,subheading=_ref.subheading,pageTitle=_ref.pageTitle,flashMessages=_ref.flashMessages,breadcrumbs=_ref.breadcrumbs,children=_ref.children,_ref$useReactRouter=_ref.useReactRouter,useReactRouter=void 0!==_ref$useReactRouter&&_ref$useReactRouter,localHeaderChildren=_ref.localHeaderChildren,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(!1),2),showVerticalNav=_useState2[0],setShowVerticalNav=_useState2[1];return react__WEBPACK_IMPORTED_MODULE_13__.createElement(react__WEBPACK_IMPORTED_MODULE_13__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_WatchTextContent__WEBPACK_IMPORTED_MODULE_20__.A,{onTextContentChange:function onTextContentChange(text){document.title=text}},pageTitle," - DBT Data Hub"),react__WEBPACK_IMPORTED_MODULE_13__.createElement(GlobalStyles,null),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_DataHubHeader__WEBPACK_IMPORTED_MODULE_19__.A,{showVerticalNav,onShowVerticalNav:setShowVerticalNav}),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_LocalHeader_LocalHeader__WEBPACK_IMPORTED_MODULE_18__.A,{heading,headingLink,subheading,flashMessages,breadcrumbs:breadcrumbs||[{link:"/",text:"Home"},{text:heading}],useReactRouter},localHeaderChildren),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_Main__WEBPACK_IMPORTED_MODULE_17__.A,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_govuk_react_grid_row__WEBPACK_IMPORTED_MODULE_15__.A,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_govuk_react_grid_col__WEBPACK_IMPORTED_MODULE_14__.Ay,null,children))),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_Footer__WEBPACK_IMPORTED_MODULE_16__.h,null))};DefaultLayout.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node]),headingLink:prop_types__WEBPACK_IMPORTED_MODULE_22___default().shape({url:prop_types__WEBPACK_IMPORTED_MODULE_22___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_22___default().string.isRequired}),subheading:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node]),pageTitle:prop_types__WEBPACK_IMPORTED_MODULE_22___default().node.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node])};const __WEBPACK_DEFAULT_EXPORT__=DefaultLayout;DefaultLayout.__docgenInfo={description:"",methods:[],displayName:"DefaultLayout",props:{useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},heading:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},subheading:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},pageTitle:{description:"",type:{name:"node"},required:!0},children:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1}}}},"./src/client/components/LocalHeader/FlashMessages.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/lodash/lodash.js"),react_redux__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/colours.js"),_components_StatusMessage__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_state__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/LocalHeader/state.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledBody=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("p")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("h2")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-top: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.SG.SIZE_20,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("p")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin: 0;\n  font-size: ",";\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.SG.SIZE_20,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledStatusMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)(_components_StatusMessage__WEBPACK_IMPORTED_MODULE_21__.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin-top: ",";\n  background-color: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.Es.SCALE_3,_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.UE),messageColours={info:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.ft,success:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.EI,warning:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.hN,error:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.su,muted:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.Uv},FlashMessages=function FlashMessages(_ref){var flashMessages=_ref.flashMessages,getFlashMessages=_ref.getFlashMessages,clearFlashMessages=_ref.clearFlashMessages;return(0,react__WEBPACK_IMPORTED_MODULE_16__.useEffect)((function(){return getFlashMessages(),function(){return clearFlashMessages()}}),[]),(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isEmpty)(flashMessages)?null:react__WEBPACK_IMPORTED_MODULE_16__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_19__.A,{listStyleType:"none","data-test":"flash"},Object.entries(flashMessages).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),type=_ref3[0],messages=_ref3[1],parts=String(type).split(":");return(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isNull)(messages[0])?null:parts.length>1?messages.map((function(_ref4){var body=_ref4.body,heading=_ref4.heading;return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:body},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[parts[0]]},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledHeading,null,heading),"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,null,body)))})):messages.map((function(body,i){return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:i},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[type]},"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,null,body)))}))})))},flashMessagePropTypes={flashMessages:prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({type:prop_types__WEBPACK_IMPORTED_MODULE_23___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({body:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string})),prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().string).isRequired])})};FlashMessages.propTypes=flashMessagePropTypes;const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_24__.connect)(_state__WEBPACK_IMPORTED_MODULE_25__.o,(function(dispatch){return{getFlashMessages:function getFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.vl8})},clearFlashMessages:function clearFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.PqX})}}}))(FlashMessages);FlashMessages.__docgenInfo={description:'Flash messages for users in different colours depending on the message.\n\nNote: If the props "flashMessages" are not passed down to the component then flash messages will be taken from session storage, if none exist in session storage then `null` is returned.',methods:[],displayName:"FlashMessages",props:{flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1}}}},"./src/client/components/LocalHeader/LocalHeader.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>LocalHeader_LocalHeader});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_main_esm=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),govuk_react_breadcrumbs_esm=__webpack_require__("./node_modules/@govuk-react/breadcrumbs/dist/govuk-react-breadcrumbs.esm.js"),dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),LocalHeaderHeading=__webpack_require__("./src/client/components/LocalHeader/LocalHeaderHeading.jsx");const LocalHeader_LocalSubHeader=(0,styled_components_browser_esm.Ay)("h2")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ","px;\n"])),govuk_react_constants_esm.iU.M);var LocalHeader_templateObject,_templateObject2,_templateObject3,FlashMessages=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx");function LocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeader=(0,styled_components_browser_esm.Ay)("div")(LocalHeader_templateObject||(LocalHeader_templateObject=LocalHeader_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  background-color: ",";\n  padding-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,colours.P1,govuk_react_constants_esm.Es.SCALE_3),StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(_templateObject2||(_templateObject2=LocalHeader_taggedTemplateLiteral(["\n  padding-top: 0;\n"]))),BreadcrumbsWrapper=(0,styled_components_browser_esm.Ay)(govuk_react_breadcrumbs_esm.A)(_templateObject3||(_templateObject3=LocalHeader_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  margin-top: 0;\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledSuperheading=styled_components_browser_esm.Ay.div({fontSize:20,lineHeight:"32px"}),StyledLink=(0,styled_components_browser_esm.Ay)("a")({fontSize:20,display:"inline-block",fontFamily:"Arial, sans-serif",marginTop:8,marginBottom:8}),LocalHeader=function LocalHeader(_ref){var breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,heading=_ref.heading,subheading=_ref.subheading,headingLink=_ref.headingLink,superheading=_ref.superheading,children=_ref.children,_ref$useReactRouter=_ref.useReactRouter,useReactRouter=void 0!==_ref$useReactRouter&&_ref$useReactRouter;return react.createElement(StyledHeader,{"aria-label":"local header","data-auto-id":"localHeader","data-test":"localHeader",role:"region"},react.createElement(StyledMain,null,react.createElement(BreadcrumbsWrapper,{"data-test":"breadcrumbs"},null==breadcrumbs?void 0:breadcrumbs.map((function(breadcrumb){return breadcrumb.link?useReactRouter&&"Home"!==breadcrumb.text?react.createElement(govuk_react_breadcrumbs_esm.A.Link,{as:dist.N_,key:breadcrumb.link,to:breadcrumb.link},breadcrumb.text):react.createElement(govuk_react_breadcrumbs_esm.A.Link,{key:breadcrumb.link,href:breadcrumb.link},breadcrumb.text):breadcrumb.text}))),react.createElement(FlashMessages.A,{flashMessages}),superheading&&react.createElement(StyledSuperheading,null,superheading),headingLink&&react.createElement(StyledLink,{"data-test":"heading-link",href:headingLink.url},headingLink.text),heading&&react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},heading),subheading&&react.createElement(LocalHeader_LocalSubHeader,{"data-test":"subheading"},subheading),children))};LocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),heading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),subheading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),headingLink:prop_types_default().shape({url:prop_types_default().string.isRequired,text:prop_types_default().string.isRequired}),superheading:prop_types_default().node,children:prop_types_default().node};const LocalHeader_LocalHeader=LocalHeader;LocalHeader.__docgenInfo={description:"The generic local header component.",methods:[],displayName:"LocalHeader",props:{useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},breadcrumbs:{description:"Contains the breadcrumbs",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},heading:{description:"Contains the heading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subheading:{description:"Contains the subheading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"Contains a link that appears above the heading",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},superheading:{description:"Contains an item that renders above the heading (in the same position as the headingLink)",type:{name:"node"},required:!1},children:{description:"Contains an item that renders below the heading",type:{name:"node"},required:!1}}}},"./src/client/components/LocalHeader/LocalHeaderHeading.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)("h1")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ","px;\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.iU.L,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.sO.bold)},"./src/client/components/LocalHeader/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props});var ID="flashMessages",state2props=function state2props(state){return state[ID]}},"./src/client/components/Main/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,w:()=>InnerContainer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 OuterContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("main")({paddingTop:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5,textAlign:"center"}),InnerContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("div")(_defineProperty(_defineProperty({maxWidth:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.DJ,marginLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,marginRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,textAlign:"left"},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.qs.LARGESCREEN,{marginLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5,marginRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5}),"@media only screen and (min-width:1020px)",{margin:"0 auto"})),Main=function Main(_ref){var children=_ref.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_13__.createElement(OuterContainer,_extends({},props,{role:"main",id:"main-content","data-test":"bodyMainContent"}),react__WEBPACK_IMPORTED_MODULE_13__.createElement(InnerContainer,null,children))};Main.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node};const __WEBPACK_DEFAULT_EXPORT__=Main;Main.__docgenInfo={description:"The`<Main>`is a layout component which wraps content inside the`<main>`HTML tag, this component also contains a grid container which will center the content in the page with the appropriate gutters and responsive behaviour we expect from [our grid](https://design-system.service.gov.uk/styles/layout/).\n\nIt's important that we include this in all pages as the`<main>`represents the dominant content of the`<body>`of the document, this also acts as a landmark which can help assistive technologies.",methods:[],displayName:"Main",props:{children:{description:"Text for main",type:{name:"node"},required:!1}}}},"./src/client/components/Metadata/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Metadata});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledMetaWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  color: ",";\n"])),colours.Uv),StyledItemLabel=(0,styled_components_browser_esm.Ay)("span")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n"])),colours.hM);function MetadataItem(_ref){var label=_ref.label,children=_ref.children;return react.createElement(StyledMetaWrapper,{"data-test":"metadata-item"},label&&react.createElement(StyledItemLabel,null,label)," ",children)}MetadataItem.propTypes={label:prop_types_default().string,children:prop_types_default().node.isRequired};const Metadata_MetadataItem=MetadataItem;var Metadata_templateObject;MetadataItem.__docgenInfo={description:"",methods:[],displayName:"MetadataItem",props:{label:{description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!0}}};var StyledMetadataWrapper=(0,styled_components_browser_esm.Ay)("div")(Metadata_templateObject||(Metadata_templateObject=function Metadata_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  line-height: ",";\n  display: grid;\n\n  & > * {\n    margin-bottom: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.SG.SIZE_27,govuk_react_constants_esm.Es.SCALE_1),Metadata=function Metadata(_ref){var rows=_ref.rows;return rows&&react.createElement(StyledMetadataWrapper,{"data-test":"metadata"},rows.map((function(_ref2){var label=_ref2.label,value=_ref2.value,key=_ref2.key;return react.createElement(Metadata_MetadataItem,{key:key||label,label},value)})))};Metadata.propTypes={rows:prop_types_default().arrayOf(prop_types_default().shape({label:prop_types_default().node,value:prop_types_default().node}))};const components_Metadata=Metadata;Metadata.__docgenInfo={description:"",methods:[],displayName:"Metadata",props:{rows:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"node",required:!1},value:{name:"node",required:!1}}}},required:!1}}}},"./src/client/components/MyInvestmentProjects/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,c:()=>TASK_GET_MY_INVESTMENTS_LIST,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _utils_date__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/date.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="myInvestmentProjects",TASK_GET_MY_INVESTMENTS_LIST="TASK_GET_MY_INVESTMENTS_LIST",state2props=function state2props(state){var financialYearStart=(0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.getFinancialYearStart)(new Date);return _objectSpread(_objectSpread({},state[ID]),{},{landDateOptions:[{name:"Show all",id:"all-land-dates"},{name:"Current year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart)),id:"".concat(financialYearStart)},{name:"Last year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart-1)),id:"".concat(financialYearStart-1)},{name:"Next year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart+1)),id:"".concat(financialYearStart+1)}]})}},"./src/client/components/NewWindowLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__),_excluded=["href","children","showWarning"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var NewWindowLink=function NewWindowLink(_ref){var href=_ref.href,children=_ref.children,_ref$showWarning=_ref.showWarning,showWarning=void 0===_ref$showWarning||_ref$showWarning,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,_extends({"data-test":"newWindowLink",href,rel:"noreferrer noopener",target:"_blank"},rest),children,showWarning&&" (opens in new tab)")};NewWindowLink.propTypes={href:prop_types__WEBPACK_IMPORTED_MODULE_6___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_6___default().node,showWarning:prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool};const __WEBPACK_DEFAULT_EXPORT__=NewWindowLink;NewWindowLink.__docgenInfo={description:'When using a screen reader the aria-label attribute overrides\nthe link text entirely.\n\nWhen setting the aria-label ensure the text contains both\nmeaningful link text AND a warning.\n\n For example:\n<NewWindowLink\n href="tax-hike.html"\n aria-label="Read more about a HMRC tax hike (opens in new tab)"\n ...\n>\n Read more...\n</NewWindowLink>\n\nGDS recommends to use (opens in new tab) as part of the link and not to mention \'window\'.\nhttps://design-system.service.gov.uk/styles/typography/#links',methods:[],displayName:"NewWindowLink",props:{showWarning:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},href:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/NotificationAlert/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props,r:()=>TASK_GET_REMINDER_SUMMARY});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _lib_urls__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_15__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="reminderSummary",TASK_GET_REMINDER_SUMMARY="TASK_GET_REMINDER_SUMMARY",state2props=function state2props(state){return _objectSpread(_objectSpread({},state[ID]),{},{remindersURL:_lib_urls__WEBPACK_IMPORTED_MODULE_15___default().reminders.index()})}},"./src/client/components/NotificationBadge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,or:()=>Size,y_:()=>Count,yp:()=>Shape});__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js"),Size={SMALL:20,MEDIUM:25},Shape=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.span((function(_ref){var size=_ref.size,digits=_ref.digits;return{display:"flex",justifyContent:"center",backgroundColor:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Bk,fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.sO.bold,height:size,width:digits<3?size:size+10,borderRadius:digits<3?"50%":"75px"}})),Count=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")({color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.UE,alignSelf:"center",fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_14}),NotificationBadge=function NotificationBadge(_ref2){var value=_ref2.value,_ref2$size=_ref2.size,size=void 0===_ref2$size?Size.MEDIUM:_ref2$size;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(Shape,{size,digits:value.toString().length,"aria-label":value,"data-test":"notification-badge"},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Count,null,value<100?value:"99+"))};NotificationBadge.propTypes={value:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number};const __WEBPACK_DEFAULT_EXPORT__=NotificationBadge;NotificationBadge.__docgenInfo={description:"",methods:[],displayName:"NotificationBadge",props:{size:{defaultValue:{value:"25",computed:!1},required:!1},value:{description:"Badge value",type:{name:"number"},required:!1}}}},"./src/client/components/Pagination/RoutedPagination.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/index.js"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js"),_constants__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Pagination/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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)||_unsupportedIterableToArray(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 _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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledNav=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("nav")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  text-align: center;\n  line-height: 1;\n  display: flex;\n  justify-content: space-around;\n  padding: "," 0;\n\n  "," {\n    display: block;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_3,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET),StyledPaginationList=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  width: 100%;\n  margin: 0;\n  list-style: none;\n  padding: 0;\n  display: flex;\n  justify-content: space-between;\n\n  "," {\n    display: block;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET),StyledPaginationPiece=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("li")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: none;\n  &:first-child,\n  &:last-child {\n    display: inline-block;\n  }\n  &:first-child {\n    margin-right: auto;\n  }\n  &:last-child {\n    margin-left: auto;\n  }\n\n  "," {\n    display: inline-block;\n\n    & + & {\n      margin-left: ",";\n      margin-bottom: ",";\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1),StyledPaginationLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_26__.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  &:link {\n    cursor: pointer;\n    font-weight: bold;\n    font-size: ",";\n    display: inline-block;\n    padding: "," 12px;\n    line-height: 1.9em;\n    text-decoration: underline;\n    text-decoration-thickness: max(1px, 0.0625rem);\n    :hover {\n      background-color: ",";\n      text-decoration-thickness: max(3px, 0.1875rem, 0.12em);\n    }\n    ","\n    ","\n    "," {\n      ","\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.WS,(function(_ref){return _ref.$isActive?"\n        color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.UE,";\n        background-color: ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        :hover {\n          background-color: ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        }\n       "):"\n        color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        background-color: transparent;\n      ")}),(function(props){return props["data-page-number"]&&"display: none;"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET,(function(props){return props["data-page-number"]&&"display: block;"})),Pagination=function Pagination(_ref2){var items=_ref2.items,_ref2$pageSize=_ref2.pageSize,pageSize=void 0===_ref2$pageSize?10:_ref2$pageSize,_ref2$onChangePage=_ref2.onChangePage,onChangePage=void 0===_ref2$onChangePage?function(){}:_ref2$onChangePage,_ref2$initialPage=_ref2.initialPage,initialPage=void 0===_ref2$initialPage?1:_ref2$initialPage,linkRefs=(0,react__WEBPACK_IMPORTED_MODULE_24__.useRef)([]),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_24__.useState)({}),2),pager=_useState2[0],setPagerState=_useState2[1],pages=pager.pages,totalPages=pager.totalPages,currentPage=pager.currentPage;(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){items&&setPage(initialPage)}),[items]),(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){linkRefs.current.map((function(link){return parseInt(null==link?void 0:link.dataset.pageNumber,10)===currentPage&&link.focus()})),window.scrollTo({top:0})}),[currentPage]);var setPage=function setPage(page){if(!(page<1||page>totalPages)){var newPager=getPager(items,page,pageSize);setPagerState(newPager),onChangePage(newPager)}},getPager=function getPager(totalItems,currentPage,pageSize){currentPage=currentPage||1,pageSize=pageSize||10;var totalPages=Math.ceil(totalItems/pageSize),_getStartAndEndPage=function getStartAndEndPage(totalPages,currentPage){var startPage,endPage;return totalPages<=10?(startPage=1,endPage=totalPages):currentPage<=6?(startPage=1,endPage=10):currentPage+4>=totalPages?(startPage=totalPages-9,endPage=totalPages):(startPage=currentPage-5,endPage=currentPage+4),{startPage,endPage}}(totalPages,currentPage),startPage=_getStartAndEndPage.startPage,endPage=_getStartAndEndPage.endPage,startIndex=(currentPage-1)*pageSize,endIndex=Math.min(startIndex+pageSize-1,totalItems-1),pages=_toConsumableArray(Array(endPage+1-startPage).keys()).map((function(i){return startPage+i}));return{totalItems,currentPage,pageSize,totalPages,startPage,endPage,startIndex,endIndex,pages}},navigate=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.Zp)(),location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),qsParams=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1)),handleOnClick=function handleOnClick(pageNumber,e){e.preventDefault(),setPage(pageNumber),navigate({search:qs__WEBPACK_IMPORTED_MODULE_30___default().stringify(_objectSpread(_objectSpread({},qsParams),{},{page:pageNumber}))})};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,null,(null==pages?void 0:pages.length)>1?react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledNav,{"data-test":"pagination","aria-label":"Pagination: total ".concat(totalPages),"data-total-pages":totalPages},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationList,null,1!==currentPage&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage-1,e)},"data-test":"previous",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Qp)),pages.map((function(page,index){var isActive=currentPage===page;return react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,{key:index},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{$isActive:isActive,onClick:function onClick(e){return handleOnClick(page,e)},"data-page-number":page,"data-test":"".concat(isActive&&"page-number-active"),"aria-label":"Page ".concat(page),"aria-current":!!isActive&&"page",ref:function ref(el){return linkRefs.current[index]=el},href:"#"},page))})),currentPage!==totalPages&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage+1,e)},"data-test":"next",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Cy)))):null)};Pagination.propTypes={items:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number.isRequired,onChangePage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().func,initialPage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number};const __WEBPACK_DEFAULT_EXPORT__=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{pageSize:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1},onChangePage:{defaultValue:{value:"() => {}",computed:!1},description:"",type:{name:"func"},required:!1},initialPage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},items:{description:"",type:{name:"number"},required:!0}}}},"./src/client/components/Pagination/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cn:()=>PAGINATION_PIECE_PAGE_NUMBER,Cy:()=>PAGINATION_PIECE_NEXT,Qp:()=>PAGINATION_PIECE_PREVIOUS,RP:()=>DEFAULT_MAX_PAGE_NUMBER_LINKS,i7:()=>PAGINATION_PIECE_ELLIPSIS});var PAGINATION_PIECE_PREVIOUS="Previous",PAGINATION_PIECE_ELLIPSIS="ellipsis",PAGINATION_PIECE_PAGE_NUMBER="page-number",PAGINATION_PIECE_NEXT="Next",DEFAULT_MAX_PAGE_NUMBER_LINKS=5},"./src/client/components/Pagination/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Pagination});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),constants=__webpack_require__("./src/client/components/Pagination/constants.js");const Pagination_computeVisiblePieces=function computeVisiblePieces(numberOfPages,activePage){var maxPageNumbers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:constants.RP,visiblePieces=[],lowerLimit=activePage,upperLimit=Math.min(activePage,numberOfPages);visiblePieces.push({type:constants.Qp,pageNumber:Math.max(1,activePage-1),isDisabled:1===activePage});for(var i=1;i<maxPageNumbers&&i<numberOfPages;)lowerLimit>1&&(lowerLimit-=1,i+=1),i<maxPageNumbers&&upperLimit<numberOfPages&&(upperLimit+=1,i+=1);lowerLimit>1&&(visiblePieces.push({type:constants.Cn,pageNumber:1,isActive:1===activePage}),activePage>4&&visiblePieces.push({type:constants.i7}));for(var _i=lowerLimit;_i<=upperLimit;_i+=1)visiblePieces.push({type:constants.Cn,pageNumber:_i,isActive:activePage===_i});return activePage<numberOfPages-2&&numberOfPages>maxPageNumbers&&(visiblePieces.push({type:constants.i7}),visiblePieces.push({type:constants.Cn,pageNumber:numberOfPages,isActive:activePage===numberOfPages})),visiblePieces.push({type:constants.Cy,pageNumber:Math.min(numberOfPages,activePage+1),isDisabled:activePage===numberOfPages}),visiblePieces};var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledNav=(0,styled_components_browser_esm.Ay)("nav")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  text-align: center;\n  line-height: 1;\n  display: flex;\n  justify-content: space-around;\n  padding: "," 0;\n\n  "," {\n    display: block;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.TABLET),StyledPaginationList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin: 0;\n  list-style: none;\n"]))),StyledPaginationPiece=(0,styled_components_browser_esm.Ay)("li")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: inline-block;\n\n  & + & {\n    margin-left: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_1),StyledPaginationLink=(0,styled_components_browser_esm.Ay)(govuk_react_link_esm.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  font-weight: bold;\n  font-size: ",";\n  display: inline-block;\n  padding: "," ",";\n  line-height: 1.9em;\n  color: ",";\n  text-decoration: none;\n\n  :hover {\n    background-color: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,colours.yV,colours.WS),StyledActivePaginationLink=(0,styled_components_browser_esm.Ay)(StyledPaginationLink)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  :link {\n    color: ",";\n    background-color: ",";\n  }\n"])),colours.UE,colours.ft),StyledPagesTruncation=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  font-weight: bold;\n  font-size: ",";\n  display: inline-block;\n  padding: ",";\n  background-color: transparent;\n  line-height: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.SG.SIZE_24,colours.IC);function Pagination(_ref){var totalPages=_ref.totalPages,_ref$activePage=_ref.activePage,activePage=void 0===_ref$activePage?1:_ref$activePage,_ref$getPageUrl=_ref.getPageUrl,getPageUrl=void 0===_ref$getPageUrl?function(){return"#"}:_ref$getPageUrl,onPageClick=_ref.onPageClick,visiblePieces=Pagination_computeVisiblePieces(totalPages,activePage);return totalPages<2?null:react.createElement(StyledNav,{"data-test":"pagination","data-total-pages":totalPages,"aria-label":"pagination: total ".concat(totalPages," pages")},react.createElement(StyledPaginationList,null,visiblePieces.map((function(_ref2,index){var type=_ref2.type,pageNumber=_ref2.pageNumber,isActive=_ref2.isActive,isDisabled=_ref2.isDisabled,key="".concat(type,"-").concat(index),onClick=function onClick(event){event.target.blur(),event.preventDefault(),onPageClick(pageNumber,event),window.scrollTo({top:0})},PageNumberLink=isActive?StyledActivePaginationLink:StyledPaginationLink;return isDisabled?null:react.createElement(StyledPaginationPiece,{key},type===constants.Qp&&react.createElement(StyledPaginationLink,{"data-test":"prev",onClick,href:getPageUrl(pageNumber)},"Previous"),type===constants.i7&&react.createElement(StyledPagesTruncation,{"data-test":"ellipsis"},"…"),type===constants.Cn&&react.createElement(PageNumberLink,{"data-test":isActive?"page-number-active":"page-number","data-page-number":pageNumber,"aria-label":"Page ".concat(pageNumber),"aria-current":!!isActive&&"page",onClick,href:getPageUrl(pageNumber)},pageNumber),type===constants.Cy&&react.createElement(StyledPaginationLink,{"data-test":"next",onClick,href:getPageUrl(pageNumber)},"Next"))}))))}Pagination.propTypes={totalPages:prop_types_default().number.isRequired,activePage:prop_types_default().number,onPageClick:prop_types_default().func,getPageUrl:prop_types_default().func};const components_Pagination=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{activePage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},getPageUrl:{defaultValue:{value:"() => '#'",computed:!1},description:"",type:{name:"func"},required:!1},totalPages:{description:"",type:{name:"number"},required:!0},onPageClick:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Panel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_24__),styled_components__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["title","children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 focusMixin={":focus":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft}},hoverMixin={color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Cu},StyledPanel=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("div")({padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_4,color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE,backgroundColor:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft,a:_objectSpread(_objectSpread({":link":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE},":visited":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE},":hover":hoverMixin},focusMixin),{},{":active":_objectSpread(_objectSpread({},hoverMixin),focusMixin)})}),StyledTitle=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("h2")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-size: ",";\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__.Il.font({size:19,weight:"bold"})),StyledBody=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__.Il.font({size:16})),Panel=function Panel(_ref){var title=_ref.title,children=_ref.children,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledPanel,rest,react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledTitle,null,title),children&&react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledBody,null,children))};Panel.propTypes={title:prop_types__WEBPACK_IMPORTED_MODULE_24___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_24___default().element};const __WEBPACK_DEFAULT_EXPORT__=Panel;Panel.__docgenInfo={description:"Making it easier for users to notice and find help content / DH updates",methods:[],displayName:"Panel",props:{title:{description:"Text for title",type:{name:"string"},required:!1},children:{description:"Text for panel",type:{name:"element"},required:!1}}}},"./src/client/components/PersonalisedDashboard/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$F:()=>CHECK_FOR_MY_TASKS_ID,I4:()=>DATA_HUB_FEED_ID,ID:()=>ID});var ID="checkInvestmentProjects",DATA_HUB_FEED_ID="checkDataHubFeed",CHECK_FOR_MY_TASKS_ID="checkForMyTasks"},"./src/client/components/ProgressIndicator.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/InlineIcon/index.js"),StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay.div({textAlign:"center"}),StyledLoadingBox=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__.A)({height:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginTop:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_3}),ProgressIndicator=function ProgressIndicator(_ref){var noun=_ref.noun,_ref$message=_ref.message,message=void 0===_ref$message?"Loading ".concat(noun):_ref$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledRoot,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLoadingBox,{loading:!0}),message&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,message))};ProgressIndicator.Inline=function(_ref2){var noun=_ref2.noun,_ref2$message=_ref2.message,message=void 0===_ref2$message?"Loading ".concat(noun):_ref2$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_4__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__.y$,null))," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{opacity:.3}},message))};const __WEBPACK_DEFAULT_EXPORT__=ProgressIndicator;ProgressIndicator.__docgenInfo={description:"@function ProgressIndicator\n@description A progress indicator\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered underneath the spinner icon.\n@returns {JSX.Element}",methods:[{name:"Inline",docblock:"@function ProgressIndicator.Inline\n@description A progress indicator designed to be rendered nicely in any\ninline context.\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered next to the spinner icon.\n@returns {JSX.Element}",modifiers:["static"],params:[{name:"{ noun, message = `Loading ${noun}` }",optional:!1}],returns:null,description:null}],displayName:"ProgressIndicator",props:{}}},"./src/client/components/ProtectedLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),ProtectedLink=function ProtectedLink(_ref){var module=_ref.module,modulePermissions=_ref.modulePermissions,_ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return null!=modulePermissions&&modulePermissions.includes(module)?children:null};ProtectedLink.propTypes={module:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string.isRequired,modulePermissions:prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string).isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().element};const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)((function(state){return state}))(ProtectedLink)},"./src/client/components/ReadMore/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),styled_components__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_ButtonLink__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/ButtonLink/index.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var StyledButtonLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_17__.Ay)(_ButtonLink__WEBPACK_IMPORTED_MODULE_16__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  margin: 0;\n  display: inline-block;\n  padding: 0;\n  width: auto;\n  border: none;\n  vertical-align: baseline;\n  &::before {\n    display: none;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.SG.SIZE_16),ReadMore=function ReadMore(_ref){var text=_ref.text,_ref$count=_ref.count,count=void 0===_ref$count?255:_ref$count,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_14__.useState)(!1),2),showingAll=_useState2[0],setIsShowingAll=_useState2[1];return text?text.length<count?text:react__WEBPACK_IMPORTED_MODULE_14__.createElement(react__WEBPACK_IMPORTED_MODULE_14__.Fragment,null,showingAll?text:text.slice(0,count).split(" ").slice(0,-1).join(" ")+"..."," ",react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledButtonLink,{onClick:function onClick(){return setIsShowingAll(!showingAll)}},showingAll?"Show Less":"Read More")):null};ReadMore.propTypes={text:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string.isRequired,count:prop_types__WEBPACK_IMPORTED_MODULE_18___default().number};const __WEBPACK_DEFAULT_EXPORT__=ReadMore;ReadMore.__docgenInfo={description:"For truncating content with a link to read more.",methods:[],displayName:"ReadMore",props:{count:{defaultValue:{value:"255",computed:!1},description:"Specifies a custom character count to truncate content",type:{name:"number"},required:!1},text:{description:"The content to truncate",type:{name:"string"},required:!0}}}},"./src/client/components/ReferralList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ReferralList});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),govuk_react_hint_text_esm=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),pluralize=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize_default=__webpack_require__.n(pluralize),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),ContentWithHeading=__webpack_require__("./src/client/components/ContentWithHeading.jsx"),govuk_react_ordered_list_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/@govuk-react/ordered-list/dist/govuk-react-ordered-list.esm.js")),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledOL=(0,styled_components_browser_esm.Ay)(govuk_react_ordered_list_esm.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  & > * {\n    margin-top: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_4);function StyledOrderedList(_ref){var children=_ref.children;return react.createElement(StyledOL,{listStyleType:"none"},children)}const components_StyledOrderedList=StyledOrderedList;StyledOrderedList.__docgenInfo={description:"",methods:[],displayName:"StyledOrderedList"};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),govuk_react_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),colours=__webpack_require__("./src/client/utils/colours.js"),react_redux=(__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs")),govuk_react_details_esm=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),url=__webpack_require__("./node_modules/url/url.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),client_state=__webpack_require__("./src/apps/companies/apps/referrals/details/client/state.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),components=__webpack_require__("./src/client/components/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["referrerUrl"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 format=__webpack_require__("./src/client/utils/date.js").format,AdviserDetails=function AdviserDetails(_ref){var name=_ref.name,email=_ref.email,team=_ref.team;return react.createElement(react.Fragment,null,name,email&&react.createElement(react.Fragment,null,", ",react.createElement("a",{href:"mailto:".concat(email)},email)),team&&react.createElement(react.Fragment,null,", ",team))};AdviserDetails.propTypes={name:prop_types_default().string.isRequired,email:prop_types_default().string,team:prop_types_default().string};(0,react_redux.connect)((function(_ref2){var referrerUrl=_ref2.referrerUrl;return _objectSpread(_objectSpread({},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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded)[client_state.ID]),{},{referrerUrl})}))((function(_ref3){var subject=_ref3.subject,referralId=_ref3.referralId,company=_ref3.company,contact=_ref3.contact,sendingAdviser=_ref3.sendingAdviser,receivingAdviser=_ref3.receivingAdviser,date=_ref3.date,notes=_ref3.notes,completed=_ref3.completed,interaction=_ref3.interaction,referrerUrl=_ref3.referrerUrl,cameFromHomePage=url.parse(referrerUrl).pathname===urls_default().companies.referrals.list();return react.createElement(Task.A.Status,{name:"Referral details",id:"referralDetails",progressMessage:"loading referral details",startOnRender:{payload:referralId,onSuccessDispatch:actions.Vmx}},(function(){return company&&react.createElement(react.Fragment,null,react.createElement(components.bD,{caption:subject},react.createElement(components.bD.Row,{heading:"Company"},react.createElement(govuk_react_link_esm.A,{href:urls_default().companies.detail(company.id)},company.name)),contact&&react.createElement(components.bD.Row,{heading:"Contact"},react.createElement(govuk_react_link_esm.A,{href:urls_default().contacts.contact(contact.id)},contact.name)),react.createElement(components.bD.Row,{heading:"Sending adviser"},sendingAdviser&&react.createElement(AdviserDetails,sendingAdviser)),react.createElement(components.bD.Row,{heading:"Receiving adviser"},receivingAdviser&&react.createElement(AdviserDetails,receivingAdviser)),react.createElement(components.bD.Row,{heading:"Date of referral"},format(date)),react.createElement(components.bD.Row,{heading:"Notes"},notes)),completed?react.createElement(components.bD,{caption:"Referral accepted"},react.createElement(components.bD.Row,{heading:"Date"},format(completed.on)),react.createElement(components.bD.Row,{heading:"By"},react.createElement(AdviserDetails,completed.by)),react.createElement(components.bD.Row,{heading:"With interaction"},react.createElement(govuk_react_link_esm.A,{href:urls_default().interactions.detail(interaction.id)},interaction.subject))):react.createElement(react.Fragment,null,react.createElement(govuk_react_details_esm.A,{summary:"Why can I not edit the referral?"},react.createElement("p",null,"For now, you can't edit the referral once it's been sent."),react.createElement("p",null,"Contact the recipient if something's changed.")),react.createElement(components.IY,null,react.createElement(govuk_react_button_esm.A,{as:"a",href:urls_default().companies.referrals.interactions.create(company.id,referralId)},"Accept referral"),react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companies.referrals.help(company.id,referralId)},"I cannot accept the referral"),react.createElement(govuk_react_link_esm.A,{href:cameFromHomePage?urls_default().companies.referrals.list():urls_default().companies.detail(company.id)},"Back"))))}))}));AdviserDetails.__docgenInfo={description:"",methods:[],displayName:"AdviserDetails",props:{name:{description:"",type:{name:"string"},required:!0},email:{description:"",type:{name:"string"},required:!1},team:{description:"",type:{name:"string"},required:!1}}};var Card_templateObject;__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.reflect.construct.js");function Card_typeof(o){return Card_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},Card_typeof(o)}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Card_toPropertyKey(o.key),o)}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(t,e){if(e&&("object"==Card_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function Card_defineProperty(e,r,t){return(r=Card_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Card_toPropertyKey(t){var i=function Card_toPrimitive(t,r){if("object"!=Card_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Card_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Card_typeof(i)?i:i+""}var CardContainer=(0,styled_components_browser_esm.Ay)("div")(Card_templateObject||(Card_templateObject=function Card_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  padding: ",";\n"])),(function(_ref){return _ref.isUpcoming?"1px dashed ".concat(colours.Pe):"1px solid ".concat(colours.Pe)}),govuk_react_constants_esm.Es.SCALE_3),Card=function(_React$PureComponent){function Card(){return function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}(this,Card),_callSuper(this,Card,arguments)}return function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}(Card,_React$PureComponent),function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(Card,[{key:"render",value:function render(){var _this$props=this.props,isUpcoming=_this$props.isUpcoming,children=_this$props.children;return react.createElement(CardContainer,{isUpcoming},children)}}])}(react.PureComponent);Card_defineProperty(Card,"propTypes",{isUpcoming:prop_types_default().bool,children:prop_types_default().node}),Card_defineProperty(Card,"defaultProps",{isUpcoming:!1,children:null}),Card.__docgenInfo={description:"",methods:[],displayName:"Card",props:{isUpcoming:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},children:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var CardDetails_templateObject,Analytics=__webpack_require__("./src/client/components/Analytics/index.jsx");function CardDetails_typeof(o){return CardDetails_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},CardDetails_typeof(o)}function CardDetails_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,CardDetails_toPropertyKey(o.key),o)}}function CardDetails_callSuper(t,o,e){return o=CardDetails_getPrototypeOf(o),function CardDetails_possibleConstructorReturn(t,e){if(e&&("object"==CardDetails_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function CardDetails_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,CardDetails_isNativeReflectConstruct()?Reflect.construct(o,e||[],CardDetails_getPrototypeOf(t).constructor):o.apply(t,e))}function CardDetails_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(CardDetails_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function CardDetails_getPrototypeOf(t){return CardDetails_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CardDetails_getPrototypeOf(t)}function CardDetails_setPrototypeOf(t,e){return CardDetails_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CardDetails_setPrototypeOf(t,e)}function CardDetails_defineProperty(e,r,t){return(r=CardDetails_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CardDetails_toPropertyKey(t){var i=function CardDetails_toPrimitive(t,r){if("object"!=CardDetails_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CardDetails_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CardDetails_typeof(i)?i:i+""}var GovUkDetails=(0,styled_components_browser_esm.Ay)(govuk_react_details_esm.A)(CardDetails_templateObject||(CardDetails_templateObject=function CardDetails_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  margin: "," 0 0;\n\n  & > div {\n    padding: ",";\n    padding-bottom: ",";\n    margin: "," 0 "," 4px;\n\n    & > a {\n      padding: "," 0 "," ",";\n    }\n  }\n\n  "," {\n    margin-top: -",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3),CardDetails=function(_React$PureComponent){function CardDetails(){var _this;!function CardDetails_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}(this,CardDetails);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return CardDetails_defineProperty(_this=CardDetails_callSuper(this,CardDetails,[].concat(args)),"renderLink",(function(link){return link?react.createElement(govuk_react_link_esm.A,{href:link.url},link.text):null})),_this}return function CardDetails_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CardDetails_setPrototypeOf(t,e)}(CardDetails,_React$PureComponent),function CardDetails_createClass(e,r,t){return r&&CardDetails_defineProperties(e.prototype,r),t&&CardDetails_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(CardDetails,[{key:"render",value:function render(){var _this2=this,_this$props=this.props,summary=_this$props.summary,showDetails=_this$props.showDetails,link=_this$props.link,children=_this$props.children,summaryVisuallyHidden=_this$props.summaryVisuallyHidden,analyticsAccordionType=_this$props.analyticsAccordionType,SummaryWithHiddenContent=react.createElement(react.Fragment,null,summary,react.createElement(govuk_react_esm.s6,null,summaryVisuallyHidden));return react.createElement(Analytics.A,null,(function(pushAnalytics){return react.createElement(GovUkDetails,{summary:summaryVisuallyHidden?SummaryWithHiddenContent:summary,open:showDetails,onClick:function onClick(){pushAnalytics({event:"viewInteractionEngagement",extra:{accordionEngagement:"clicked",accordionType:analyticsAccordionType}})}},children,_this2.renderLink(link))}))}}])}(react.PureComponent);CardDetails_defineProperty(CardDetails,"propTypes",{summary:prop_types_default().string.isRequired,summaryVisuallyHidden:prop_types_default().string,showDetails:prop_types_default().bool.isRequired,link:prop_types_default().shape({url:prop_types_default().string,text:prop_types_default().string}),children:prop_types_default().node.isRequired,analyticsAccordionType:prop_types_default().string}),CardDetails_defineProperty(CardDetails,"defaultProps",{link:null}),CardDetails.__docgenInfo={description:"",methods:[{name:"renderLink",docblock:null,modifiers:[],params:[{name:"link",optional:!1,type:null}],returns:null}],displayName:"CardDetails",props:{link:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"shape",value:{url:{name:"string",required:!1},text:{name:"string",required:!1}}},required:!1},summary:{description:"",type:{name:"string"},required:!0},summaryVisuallyHidden:{description:"",type:{name:"string"},required:!1},showDetails:{description:"",type:{name:"bool"},required:!0},children:{description:"",type:{name:"node"},required:!0},analyticsAccordionType:{description:"",type:{name:"string"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_list_item_esm=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),Badge=__webpack_require__("./src/client/components/Badge/index.jsx");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}colours.AV,colours.ft,colours.ft,colours.Bk,colours.AV,colours.AV,colours.ft;var SOURCE_TYPES={external:"externalDataSource"};constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty({"Account Management":"Account Management","A Specific Service":"Specific Service","A Specific DBT Export Service or Funding":"Service or Funding",COP26:"COP26","Enquiry received":"Enquiry","Enquiry or Referral Received":"Enquiry or Referral",Events:"Event","Export Win":"Export Win","Global Investment Summit (2021)":"Global Investment Summit (2021)","Investment Enquiry":"Enquiry","Investment - IST Aftercare Offered (IST use only)":"IST Aftercare","Investment - Services":"Service","IST Specific Service":"IST Service","Proposition Development":"Proposition Development","Trade Agreement Implementation Activity":"Implementation","GREAT - Unicorn Kingdom Campaign - North America (2023)":"GREAT - Unicorn Kingdom Campaign","Account management":"Account management","Specific service":"Specific service","DBT export service or funding":"DBT export service or funding"},"Enquiry received","Enquiry"),"Enquiry or referral","Enquiry or referral"),"Export win","Export win"),"Global Investment Summit (2021)","Global Investment Summit (2021)"),"Investment Enquiry","Enquiry"),"Investment - IST aftercare offered (IST use only)","IST Aftercare"),"Investment - services","Service"),"IST service","IST service"),"Proposition development","Proposition development"),"Trade agreement implementation activity","Implementation");var CardHeader_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function CardHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var CardHeader_format=__webpack_require__("./src/client/utils/date.js").format,StyledBlockText=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(CardHeader_templateObject||(CardHeader_templateObject=CardHeader_taggedTemplateLiteral(["\n  display: inline-block;\n  font-weight: normal;\n  color: white;\n  padding: 2px 5px;\n  background-color: ",";\n  margin-bottom: ",";\n"])),(function(_ref){return _ref.sourceType===SOURCE_TYPES.external?colours.IC:colours.ft}),govuk_react_constants_esm.Es.SCALE_2),StyledCardHeader=(0,styled_components_browser_esm.Ay)("div")(_templateObject2||(_templateObject2=CardHeader_taggedTemplateLiteral(["\n  display: flex;\n  flex-flow: row wrap;\n"]))),StyledCompanyName=(0,styled_components_browser_esm.Ay)("div")(_templateObject3||(_templateObject3=CardHeader_taggedTemplateLiteral(["\n  margin: -"," -"," "," -",";\n  padding: "," ",";\n  background: ",";\n  font-size: initial;\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_3,colours.P1),StyledHeadingWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=CardHeader_taggedTemplateLiteral(["\n  width: 100%;\n\n  "," {\n    width: 0;\n    flex-grow: 1;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject5||(_templateObject5=CardHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n  font-size: ","px;\n\n  & > a:link,\n  a:visited,\n  a:hover,\n  a:active {\n    text-decoration: none;\n    color: ",";\n  }\n\n  "," {\n    margin-bottom: ",";\n  }\n"])),govuk_react_constants_esm.iU.MEDIUM,colours.ft,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_5),StyledSubHeading=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=CardHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n  font-size: ","px;\n  margin-left: ","px;\n  color: ",";\n"])),govuk_react_constants_esm._m.MEDIUM,govuk_react_constants_esm.Ge[1],colours.IC),StyledMetaItems=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=CardHeader_taggedTemplateLiteral(["\n  list-style: none;\n  padding: 0;\n  margin: 0;\n\n  li {\n    font-size: ",";\n    margin-bottom: ",";\n    text-align: right;\n    display: inline;\n\n    "," {\n      display: block;\n    }\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET),CardHeader=function CardHeader(_ref2){var blockText=_ref2.blockText,subHeading=_ref2.subHeading,company=_ref2.company,sourceType=_ref2.sourceType,heading=_ref2.heading,startTime=_ref2.startTime,badge=_ref2.badge,_ref2$headingLevel=_ref2.headingLevel,headingLevel=void 0===_ref2$headingLevel?3:_ref2$headingLevel;return react.createElement(react.Fragment,null,company&&company.name&&react.createElement(StyledCompanyName,null,company.name),react.createElement(StyledCardHeader,null,react.createElement(StyledHeadingWrapper,null,blockText&&react.createElement(StyledBlockText,{sourceType},blockText),subHeading&&react.createElement(StyledSubHeading,null,subHeading),heading&&react.createElement(StyledHeading,{level:headingLevel},heading)),react.createElement(StyledMetaItems,null,startTime&&react.createElement(govuk_react_list_item_esm.A,null,CardHeader_format(startTime)),badge&&react.createElement(govuk_react_list_item_esm.A,null,react.createElement(Badge.A,{borderColour:badge.borderColour},badge.text)))))};CardHeader.propTypes={startTime:prop_types_default().string,heading:prop_types_default().node,blockText:prop_types_default().string,subHeading:prop_types_default().string,company:prop_types_default().shape({name:prop_types_default().string}),sourceType:prop_types_default().oneOf(Object.values(SOURCE_TYPES)),badge:prop_types_default().shape({text:prop_types_default().string,borderColour:prop_types_default().string})};const card_CardHeader=CardHeader;CardHeader.__docgenInfo={description:"",methods:[],displayName:"CardHeader",props:{headingLevel:{defaultValue:{value:"3",computed:!1},required:!1},startTime:{description:"",type:{name:"string"},required:!1},heading:{description:"",type:{name:"node"},required:!1},blockText:{description:"",type:{name:"string"},required:!1},subHeading:{description:"",type:{name:"string"},required:!1},company:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1}}},required:!1},sourceType:{description:"",type:{name:"enum",value:[{value:'"externalDataSource"',computed:!1}]},required:!1},badge:{description:"",type:{name:"shape",value:{text:{name:"string",required:!1},borderColour:{name:"string",required:!1}}},required:!1}}};var CardTable_templateObject,govuk_react_table_esm=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js");function CardTable_typeof(o){return CardTable_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},CardTable_typeof(o)}function CardTable_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function CardTable_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,CardTable_toPropertyKey(o.key),o)}}function CardTable_createClass(e,r,t){return r&&CardTable_defineProperties(e.prototype,r),t&&CardTable_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CardTable_callSuper(t,o,e){return o=CardTable_getPrototypeOf(o),function CardTable_possibleConstructorReturn(t,e){if(e&&("object"==CardTable_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function CardTable_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,CardTable_isNativeReflectConstruct()?Reflect.construct(o,e||[],CardTable_getPrototypeOf(t).constructor):o.apply(t,e))}function CardTable_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(CardTable_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function CardTable_getPrototypeOf(t){return CardTable_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CardTable_getPrototypeOf(t)}function CardTable_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CardTable_setPrototypeOf(t,e)}function CardTable_setPrototypeOf(t,e){return CardTable_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CardTable_setPrototypeOf(t,e)}function CardTable_defineProperty(e,r,t){return(r=CardTable_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CardTable_toPropertyKey(t){var i=function CardTable_toPrimitive(t,r){if("object"!=CardTable_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CardTable_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CardTable_typeof(i)?i:i+""}var GovUkTable=(0,styled_components_browser_esm.Ay)(govuk_react_table_esm.A)(CardTable_templateObject||(CardTable_templateObject=function CardTable_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    margin-bottom: ",";\n  }\n\n  th {\n    width: ",";\n  }\n\n  th,\n  td {\n    font-weight: normal;\n    border: 0;\n    padding: ",";\n    font-size: 16px;\n    vertical-align: top;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,(function(_ref){return _ref.isNotWrappedInDetails?"0":govuk_react_constants_esm.Es.SCALE_2}),(function(_ref2){return _ref2.isNotWrappedInDetails?"284px":"270px"}),govuk_react_constants_esm.Es.SCALE_2),DetailsRow=function(_React$PureComponent){function DetailsRow(){return CardTable_classCallCheck(this,DetailsRow),CardTable_callSuper(this,DetailsRow,arguments)}return CardTable_inherits(DetailsRow,_React$PureComponent),CardTable_createClass(DetailsRow,[{key:"render",value:function render(){var _this$props=this.props,header=_this$props.header,children=_this$props.children;return children?react.createElement(govuk_react_table_esm.A.Row,null,react.createElement(govuk_react_table_esm.A.CellHeader,{style:{fontWeight:"normal",border:0}},header),react.createElement(govuk_react_table_esm.A.Cell,{style:{border:0}},children)):null}}])}(react.PureComponent);CardTable_defineProperty(DetailsRow,"propTypes",{header:prop_types_default().string.isRequired,children:prop_types_default().node}),CardTable_defineProperty(DetailsRow,"defaultProps",{children:null});var CardTable=function(_React$Component){function CardTable(){return CardTable_classCallCheck(this,CardTable),CardTable_callSuper(this,CardTable,arguments)}return CardTable_inherits(CardTable,_React$Component),CardTable_createClass(CardTable,[{key:"render",value:function render(){var _this$props2=this.props,rows=_this$props2.rows,isNotWrappedInDetails=_this$props2.isNotWrappedInDetails;return react.createElement(GovUkTable,{isNotWrappedInDetails},rows.map((function(_ref3){var header=_ref3.header,content=_ref3.content,hasReadmore=_ref3.hasReadmore;return react.createElement(DetailsRow,{header,key:header},hasReadmore?react.createElement(components.vv,{text:content}):content)})))}}])}(react.Component);CardTable_defineProperty(CardTable,"propTypes",{isNotWrappedInDetails:prop_types_default().bool,rows:prop_types_default().arrayOf(prop_types_default().shape({header:prop_types_default().string,content:prop_types_default().node})).isRequired}),CardTable_defineProperty(CardTable,"defaultProps",{isNotWrappedInDetails:!1}),CardTable.__docgenInfo={description:"",methods:[],displayName:"CardTable",props:{isNotWrappedInDetails:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},rows:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{header:{name:"string",required:!1},content:{name:"node",required:!1}}}},required:!0}}};var CardDetailsList_templateObject,CardDetailsList_templateObject2,govuk_react_unordered_list_esm=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js");function CardDetailsList_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(CardDetailsList_templateObject||(CardDetailsList_templateObject=CardDetailsList_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledListItem=(0,styled_components_browser_esm.Ay)(govuk_react_list_item_esm.A)(CardDetailsList_templateObject2||(CardDetailsList_templateObject2=CardDetailsList_taggedTemplateLiteral(["\n  "," {\n    font-size: 16px;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),CardDetailsList=function CardDetailsList(_ref){var items=_ref.items,itemRenderer=_ref.itemRenderer,itemPropName=_ref.itemPropName;return react.createElement(StyledUnorderedList,{listStyleType:"none"},items.map((function(item,index){return react.createElement(StyledListItem,{key:item.id},itemRenderer(item,index,itemPropName))})))};CardDetailsList.propTypes={items:prop_types_default().arrayOf(prop_types_default().object).isRequired,itemRenderer:prop_types_default().any.isRequired,itemPropName:prop_types_default().string};CardDetailsList.__docgenInfo={description:"",methods:[],displayName:"CardDetailsList",props:{items:{description:"",type:{name:"arrayOf",value:{name:"object"}},required:!0},itemRenderer:{description:"",type:{name:"any"},required:!0},itemPropName:{description:"",type:{name:"string"},required:!1}}};var SummaryList=__webpack_require__("./src/client/components/SummaryList/index.jsx"),utils_date=__webpack_require__("./src/client/utils/date.js");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<a;e++)n[e]=r[e];return n}var StyledSummaryListWrapper=styled_components_browser_esm.Ay.div({flexGrow:1,marginRight:govuk_react_constants_esm.Es.SCALE_2,dt:{fontSize:"".concat(govuk_react_constants_esm.SG.SIZE_16),flexShrink:0,flexBasis:160},dd:{fontSize:"".concat(govuk_react_constants_esm.SG.SIZE_16)}}),Referral=function Referral(_ref){var id=_ref.id,companyId=_ref.companyId,companyName=_ref.companyName,subject=_ref.subject,date=_ref.date,sender=_ref.sender,recipient=_ref.recipient,dateAccepted=_ref.dateAccepted;return react.createElement(Card,null,react.createElement(card_CardHeader,{company:{name:companyName},heading:react.createElement(govuk_react_esm.N_,{href:urls_default().companies.referrals.details(companyId,id)},subject),headingLevel:2,startTime:date,badge:dateAccepted?{text:"Accepted referral",borderColour:colours.AV}:{text:"Outstanding referral",borderColour:colours.ft}}),react.createElement(StyledSummaryListWrapper,null,react.createElement(SummaryList.A,{rows:[{label:"Sending adviser",value:react.createElement(AdviserDetails,sender)},{label:"Receiving adviser",value:react.createElement(AdviserDetails,recipient)}].concat(_toConsumableArray(dateAccepted?[{label:"Accepted on",value:(0,utils_date.format)(dateAccepted)}]:[]))})))};Referral.propTypes={id:prop_types_default().string.isRequired,companyId:prop_types_default().string.isRequired,subject:prop_types_default().string.isRequired,companyName:prop_types_default().string.isRequired,date:prop_types_default().string.isRequired,sender:prop_types_default().shape(AdviserDetails.propTypes).isRequired,recipient:prop_types_default().shape(AdviserDetails.propTypes).isRequired,dateAccepted:prop_types_default().string};const ReferralList_Referral=Referral;Referral.__docgenInfo={description:"",methods:[],displayName:"Referral",props:{id:{description:"",type:{name:"string"},required:!0},companyId:{description:"",type:{name:"string"},required:!0},subject:{description:"",type:{name:"string"},required:!0},companyName:{description:"",type:{name:"string"},required:!0},date:{description:"",type:{name:"string"},required:!0},sender:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},email:{name:"string",required:!1},team:{name:"string",required:!1}}},required:!0},recipient:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},email:{name:"string",required:!1},team:{name:"string",required:!1}}},required:!0},dateAccepted:{description:"",type:{name:"string"},required:!1}}};var multiinstance=__webpack_require__("./src/client/utils/multiinstance.js");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)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducer_ownKeys(Object(t),!0).forEach((function(r){reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducer_defineProperty(e,r,t){return(r=function reducer_toPropertyKey(t){var i=function reducer_toPrimitive(t,r){if("object"!=reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==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 ReferralList_excluded=["id"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledLabel=styled_components_browser_esm.Ay.label({display:"flex",alignItems:"baseline"}),StyledSelectInput=(0,styled_components_browser_esm.Ay)(govuk_react_select_esm.pp)({marginLeft:10,"&":{width:"initial"}});const ReferralList=(0,multiinstance.Ay)({name:"ReferralList",reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filter:"received"},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,filter=_ref.filter;switch(type){case actions.Im2:return reducer_objectSpread(reducer_objectSpread({},state),{},{referrals:result});case actions.ilQ:return reducer_objectSpread(reducer_objectSpread({},state),{},{filter});default:return state}},dispatchToProps:function dispatchToProps(dispatch){return{onFilterChange:function onFilterChange(filter){return dispatch({type:actions.ilQ,filter})}}},actionPattern:"REFERRAL_LIST__",component:function component(_ref){var id=_ref.id,referrals=_ref.referrals,onFilterChange=_ref.onFilterChange,filter=_ref.filter;return react.createElement(Task.A.Status,{name:"Referrals",id,progressMessage:"Loading referrals",startOnRender:{onSuccessDispatch:actions.Im2}},(function(){if(referrals){var filteredReferrals=referrals.filter((function(_ref2){return _ref2.direction===filter})).sort((function(a,b){return new Date(b.date)-new Date(a.date)}));return react.createElement(ContentWithHeading.A,{heading:pluralize_default()("".concat(filter," referral"),filteredReferrals.length,!0),headingActions:react.createElement(StyledLabel,{htmlFor:"view-referrals"},"View",react.createElement(StyledSelectInput,{value:filter,id:"view-referrals",onChange:function onChange(e){return onFilterChange(e.target.value)}},react.createElement("option",{value:"received","aria-label":"received-referrals"},"Received referrals"),react.createElement("option",{value:"sent","aria-label":"sent-referrals"},"Sent referrals")))},referrals.length?react.createElement(components_StyledOrderedList,null,filteredReferrals.map((function(_ref3){var id=_ref3.id,referral=function ReferralList_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function ReferralList_objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,ReferralList_excluded);return react.createElement("li",{key:id},react.createElement(ReferralList_Referral,_extends({id},referral)))}))):react.createElement(govuk_react_hint_text_esm.A,null,"You have not received or sent any referrals.",react.createElement("br",null),"You can refer companies to other advisers from a company page."))}}))}})},"./src/client/components/Resource/BusinessPotential.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("BusinessPotential","business-potential")},"./src/client/components/Resource/Company.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Company",(function(id){return"v4/company/".concat(id)}))},"./src/client/components/Resource/Contact.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Contact",(function(id){return"v3/contact/".concat(id)}))},"./src/client/components/Resource/Countries.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Countries","country")},"./src/client/components/Resource/Paginated.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/index.js"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_Pagination__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Pagination/index.jsx"),_CollectionList_CollectionHeader__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx"),_CollectionList_CollectionSort__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/CollectionList/CollectionSort.jsx"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledCollectionSort=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)(_CollectionList_CollectionSort__WEBPACK_IMPORTED_MODULE_26__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: 15px;\n"]))),PaginatedResource=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_21__.Ay)({name:"PaginatedResource",actionPattern:"PAGINATED_RESOURCE__",reducer:function reducer(state,_ref){var type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case _actions__WEBPACK_IMPORTED_MODULE_28__.Vdv:return _objectSpread(_objectSpread({},state),{},{clickedPage:page});case _actions__WEBPACK_IMPORTED_MODULE_28__.ONB:return _objectSpread(_objectSpread({},state),{},{currentPage:null==state?void 0:state.clickedPage,clickedPage:null,result});default:return state}},dispatchToProps:function dispatchToProps(dispatch){return{onPageClick:function onPageClick(page){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.Vdv,page})}}},component:function component(_ref2){var _sortOptions$defaultS,name=_ref2.name,heading=_ref2.heading,id=_ref2.id,children=_ref2.children,_ref2$pageSize=_ref2.pageSize,pageSize=void 0===_ref2$pageSize?10:_ref2$pageSize,_ref2$payload=_ref2.payload,payload=void 0===_ref2$payload?{}:_ref2$payload,_ref2$sortOptions=_ref2.sortOptions,sortOptions=void 0===_ref2$sortOptions?[]:_ref2$sortOptions,_ref2$defaultSortOpti=_ref2.defaultSortOptionIndex,defaultSortOptionIndex=void 0===_ref2$defaultSortOpti?0:_ref2$defaultSortOpti,_ref2$sortByQsParamNa=_ref2.sortByQsParamName,sortByQsParamName=void 0===_ref2$sortByQsParamNa?"sortby":_ref2$sortByQsParamNa,_onPageClick=_ref2.onPageClick,currentPage=_ref2.currentPage,result=_ref2.result,shouldPluralize=_ref2.shouldPluralize,_ref2$noResults=_ref2.noResults,noResults=void 0===_ref2$noResults?"You don't have any results":_ref2$noResults,location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),sortby=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1))[sortByQsParamName]||(null===(_sortOptions$defaultS=sortOptions[defaultSortOptionIndex])||void 0===_sortOptions$defaultS?void 0:_sortOptions$defaultS.value);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A,null,(function(getTask){var location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),qsParams=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1)),routePage=parseInt(qsParams.page,10)||1,totalPages=result?Math.ceil(result.count/pageSize):0,hasZeroResults=0===(null==result?void 0:result.count),task=getTask(name,id);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A.StartOnRender,{name,id,payload:_objectSpread(_objectSpread({},payload),{},{sortby,limit:pageSize,offset:(routePage-1)*pageSize}),onSuccessDispatch:_actions__WEBPACK_IMPORTED_MODULE_28__.ONB}),currentPage&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_29__.C5,{to:_objectSpread(_objectSpread({},location),{},{search:qs__WEBPACK_IMPORTED_MODULE_30___default().stringify(_objectSpread(_objectSpread({},qsParams),{},{page:currentPage}))})}),result?react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_23__.A,{name,id},react__WEBPACK_IMPORTED_MODULE_20__.createElement(_CollectionList_CollectionHeader__WEBPACK_IMPORTED_MODULE_25__.A,{totalItems:result.count,collectionName:heading||name,shouldPluralize}),totalPages>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledCollectionSort,{totalPages,sortOptions,qsParamName:sortByQsParamName}),result?children(result.results):null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Pagination__WEBPACK_IMPORTED_MODULE_24__.A,{totalPages,activePage:routePage,onPageClick:function onPageClick(clickedPage){_onPageClick(clickedPage),null==task||task.start({onSuccessDispatch:_actions__WEBPACK_IMPORTED_MODULE_28__.ONB,payload:_objectSpread(_objectSpread({},payload),{},{limit:pageSize,offset:(clickedPage-1)*pageSize})})}}),1===totalPages&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("br",null)):react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A.Status,{name,id}),hasZeroResults&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("p",{"data-test":"no-results"},noResults))}))}});PaginatedResource.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_31___default().func,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_31___default().number,payload:prop_types__WEBPACK_IMPORTED_MODULE_31___default().object};const __WEBPACK_DEFAULT_EXPORT__=PaginatedResource},"./src/client/components/Resource/Resource.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AU:()=>createEntityResource,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,wn:()=>createMetadataResource,xo:()=>createCollectionResource});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var lodash__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_23__),prop_types__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_39__),react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Task/utils.js"),_Task__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_utils__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/utils/index.js"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_Task_Error__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Task/Error.jsx"),_Paginated__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Resource/Paginated.js"),_Form_elements_ResourceOptionsField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),_Form_elements_FieldRadios__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),_Form_elements_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),_Form_elements_FieldTypeahead__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Form_elements_FieldSelect__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),_Form_elements_FieldChoice__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),_excluded=["id"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 Resource=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_25__.Ay)({name:"Resource",actionPattern:"RESOURCE",reducer:function reducer(state,_ref){var id=_ref.id,result=_ref.result;return _objectSpread(_objectSpread({},state),{},_defineProperty({},id,result))},idProp:"name",componentStateToProps:function componentStateToProps(state,_,_ref2){return{result:state[_ref2.id]}},component:function component(_ref3){var name=_ref3.name,id=_ref3.id,taskStatusProps=_ref3.taskStatusProps,children=_ref3.children,result=_ref3.result,payload=_ref3.payload,_ref3$transformer=_ref3.transformer,transformer=void 0===_ref3$transformer?function(x){return[x]}:_ref3$transformer,progressBox=_ref3.progressBox,noRetry=_ref3.noRetry;return progressBox?react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_28__.A,_extends({},taskStatusProps,{name,id,noRetry,startOnRender:{onSuccessDispatch:"RESOURCE",payload,ignoreIfInProgress:!0}}),result?children.apply(void 0,_toConsumableArray(transformer(result))):children()):react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Task__WEBPACK_IMPORTED_MODULE_27__.A.Status,_extends({},taskStatusProps,{name,id,noRetry,startOnRender:{onSuccessDispatch:"RESOURCE",payload}}),(function(){return void 0!==result&&children.apply(void 0,_toConsumableArray(transformer(result)))}))}});Resource.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_39___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_39___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_39___default().func,taskStatusProps:prop_types__WEBPACK_IMPORTED_MODULE_39___default().shape(lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(_Task__WEBPACK_IMPORTED_MODULE_27__.A.Status.propTypes,"name","id"))},Resource.Inline=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource,_extends({},props,{taskStatusProps:_objectSpread({dismissable:!1,noun:props.noun||props.name,renderProgress:_ProgressIndicator__WEBPACK_IMPORTED_MODULE_30__.A.Inline,renderError:_Task_Error__WEBPACK_IMPORTED_MODULE_31__.A.Inline},props.taskStatusProps)}))};const __WEBPACK_DEFAULT_EXPORT__=Resource;var createEntityResource=function createEntityResource(name,endpoint){var transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult),rawResult]},Component=function Component(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource,_extends({transformer},props,{name}))};return Component.Inline=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource.Inline,_extends({transformer},props,{name}))},Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"name"),Component.tasks=_defineProperty({},name,(function(payload,id){return _Task_utils__WEBPACK_IMPORTED_MODULE_26__.HD.get("/".concat(endpoint(id)),{params:payload}).then((function(_ref4){return _ref4.data}))})),Component.transformer=transformer,Component.taskName=name,Component},createCollectionResource=function createCollectionResource(name,endpoint){var EntityResource=createEntityResource(name,"function"==typeof endpoint?endpoint:function(){return endpoint}),transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult.results),rawResult.count,rawResult]},Component=function Component(_ref5){var _ref5$id=_ref5.id,id=void 0===_ref5$id?"__COLLECTION__":_ref5$id,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,_excluded);return react__WEBPACK_IMPORTED_MODULE_24__.createElement(EntityResource,_extends({transformer,id},props))};return Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"id"),Component.tasks=EntityResource.tasks,Component.transformer=transformer,Component.taskName=name,Component.resourceName=name,Component.Paginated=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Paginated__WEBPACK_IMPORTED_MODULE_32__.A,_extends({},props,{name}))},Component},createMetadataResource=function createMetadataResource(name,endpoint){var EntityResource=createEntityResource(name,(function(){return"v4/metadata/".concat(endpoint)})),transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult),rawResult.length,rawResult]},Component=function Component(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(EntityResource,_extends({transformer,id:"__METADATA__",payload:props.payload||{_:"0"}},props))};return Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"id"),Component.tasks=EntityResource.tasks,Component.transformer=transformer,Component.taskName=name,Component.FieldOptions=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Form_elements_ResourceOptionsField__WEBPACK_IMPORTED_MODULE_33__.A,_extends({id:"__METADATA__"},props,{resource:Component}))},Component.FieldRadios=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldRadios__WEBPACK_IMPORTED_MODULE_34__.A}))},Component.FieldSelect=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldSelect__WEBPACK_IMPORTED_MODULE_37__.A}))},Component.FieldCheckboxes=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_35__.A}))},Component.FieldTypeahead=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldTypeahead__WEBPACK_IMPORTED_MODULE_36__.A}))},(Component.FieldChoice=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldChoice__WEBPACK_IMPORTED_MODULE_38__.A}))}).Radio=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldChoice,_extends({},props,{type:"radio"}))},Component.FieldChoice.Checkbox=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldChoice,_extends({},props,{type:"checkbox"}))},Component}},"./src/client/components/Resource/Sector.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Sector","sector")},"./src/client/components/Resource/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ar:()=>Company.A,xb:()=>Contact.A,NW:()=>Countries.A,sv:()=>Investment,uf:()=>RelatedCompaniesCount,_n:()=>TaskCompaniesAndProjects});var Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx");(0,Resource.AU)("Adviser",(function(id){return"adviser/".concat(id,"/")})),(0,Resource.wn)("AssetClasses","capital-investment/asset-class-interest"),(0,Resource.wn)("AssociatedProgramme","associated-programme"),(0,Resource.wn)("BreakdownType","breakdown-type");__webpack_require__("./src/client/components/Resource/BusinessPotential.js");(0,Resource.wn)("BusinessActivity","investment-business-activity");var Company=__webpack_require__("./src/client/components/Resource/Company.js");(0,Resource.xo)("changes to company business details",(function(id){return"v4/company/".concat(id,"/audit")})),(0,Resource.AU)("CompanyContacts",(function(id){return"v4/contact?company_id=".concat(id)})),(0,Resource.AU)("CompanyObjectivesCount",(function(id){return"v4/company/".concat(id,"/objective/count")})),(0,Resource.AU)("CompanyObjectives",(function(id){return"v4/company/".concat(id,"/objective?sortby=target_date")})),(0,Resource.AU)("CompanyOneListTeam",(function(id){return"v4/company/".concat(id,"/one-list-group-core-team")})),(0,Resource.wn)("ConstructionRisks","capital-investment/construction-risk");var Contact=__webpack_require__("./src/client/components/Resource/Contact.js");(0,Resource.xo)("contact change",(function(id){return"v3/contact/".concat(id,"/audit")}));var Countries=__webpack_require__("./src/client/components/Resource/Countries.js");(0,Resource.wn)("DealTicketSizes","capital-investment/deal-ticket-size"),(0,Resource.wn)("DeliveryPartners","investment-delivery-partner"),(0,Resource.wn)("DesiredDealRoles","capital-investment/desired-deal-role"),(0,Resource.AU)("Event",(function(id){return"v3/event/".concat(id)})),(0,Resource.wn)("EvidenceTag","evidence-tag"),(0,Resource.wn)("ExpectedValueRelation","expected-value-relation"),(0,Resource.wn)("Experience","experience"),(0,Resource.wn)("ExperienceCategories","experience-categories"),(0,Resource.wn)("ExportExperience","export-experience"),(0,Resource.wn)("ExportExperienceCategory","export-experience-category"),(0,Resource.AU)("Export",(function(id){return"v4/export/".concat(id)})),(0,Resource.wn)("ExportYears","export-years"),(0,Resource.wn)("FDITypes","fdi-type"),(0,Resource.wn)("FDIValues","fdi-value"),(0,Resource.wn)("HQTeamRegionOrPost","hq-team-region-or-post"),(0,Resource.wn)("HvoProgrammes","hvo-programmes"),(0,Resource.wn)("Hvc","hvc"),(0,Resource.AU)("Interaction",(function(id){return"v4/interaction/".concat(id)})),(0,Resource.xo)("Interactions","v4/interaction");const Investment=(0,Resource.AU)("Investment",(function(id){return"v3/investment/".concat(id)})),RelatedCompaniesCount=((0,Resource.AU)("InvestmentEvidence",(function(id){return"v3/investment/".concat(id,"/evidence-document")})),(0,Resource.wn)("InvestmentProjectStages","investment-project-stage"),(0,Resource.wn)("InvestmentTypes","investment-type"),(0,Resource.wn)("InvestorType","capital-investment/investor-type"),(0,Resource.wn)("InvestmentInvestorTypes","investment-investor-type"),(0,Resource.xo)("InvestmentProjectTasks","v4/task"),(0,Resource.wn)("LargeCapitalInvestmentEquityPercentages","capital-investment/equity-percentage"),(0,Resource.wn)("LargeCapitalInvestmentRestrictions","capital-investment/restriction"),(0,Resource.wn)("LargeCapitalInvestmentReturnRates","capital-investment/return-rate"),(0,Resource.wn)("LargeCapitalInvestmentTypes","capital-investment/large-capital-investment-type"),(0,Resource.AU)("LargeInvestorProfile",(function(id){return"v4/large-investor-profile?investor_company_id=".concat(id)})),(0,Resource.wn)("LevelOfInvolvement","investment-involvement"),(0,Resource.wn)("LikelihoodToLand","likelihood-to-land"),(0,Resource.wn)("MarketingSource","marketing-source"),(0,Resource.AU)("MyTasksDueDateApproachingSettings",(function(){return"v4/reminder/subscription/my-tasks-due-date-approaching"})),(0,Resource.AU)("TaskAssignedToMeFromOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-assigned-to-me-from-others"})),(0,Resource.AU)("TaskAmendedByOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-amended-by-others"})),(0,Resource.AU)("TaskOverdueSettings",(function(){return"v4/reminder/subscription/my-tasks-task-overdue"})),(0,Resource.wn)("OmisMarkets","omis-market"),(0,Resource.wn)("OneListTiers","one-list-tier"),(0,Resource.AU)("Opportunity",(function(id){return"v4/large-capital-opportunity/".concat(id)})),(0,Resource.wn)("OpportunityStatuses","large-capital-opportunity/opportunity-status"),(0,Resource.wn)("OpportunityValueType","large-capital-opportunity/opportunity-value-type"),(0,Resource.AU)("Order",(function(id){return"v3/omis/order/".concat(id)})),(0,Resource.AU)("OrderAssignees",(function(id){return"v3/omis/order/".concat(id,"/assignee")})),(0,Resource.wn)("OrderCancellationReasons","order-cancellation-reason"),(0,Resource.AU)("OrderInvoice",(function(id){return"v3/omis/order/".concat(id,"/invoice")})),(0,Resource.AU)("OrderQuote",(function(id){return"v3/omis/order/".concat(id,"/quote")})),(0,Resource.AU)("OrderPayment",(function(id){return"v3/omis/order/".concat(id,"/payment")})),(0,Resource.wn)("OrderServiceTypes","order-service-type"),(0,Resource.AU)("OrderSubscribers",(function(id){return"v3/omis/order/".concat(id,"/subscriber-list")})),(0,Resource.xo)("project change",(function(id){return"v3/investment/".concat(id,"/audit")})),(0,Resource.AU)("ProjectDocument",(function(id){return id})),(0,Resource.AU)("Proposition",(function(id){return id})),(0,Resource.xo)("Propositions","v4/proposition"),(0,Resource.AU)("PropositionEvidence",(function(id){return id})),(0,Resource.wn)("Rating","rating"),(0,Resource.wn)("ReferralSourceActivity","referral-source-activity"),(0,Resource.wn)("ReferralSourceMarketing","referral-source-marketing"),(0,Resource.wn)("ReferralSourceWebsite","referral-source-website"),(0,Resource.wn)("RequiredChecksConducted","capital-investment/required-checks-conducted"),(0,Resource.AU)("RelatedCompaniesCount",(function(id){return"v4/dnb/".concat(id,"/related-companies/count?include_manually_linked_companies=true")})));(0,Resource.wn)("SalaryRanges","salary-range");__webpack_require__("./src/client/components/Resource/Sector.js");(0,Resource.wn)("StrategicDrivers","investment-strategic-driver"),(0,Resource.wn)("SpecificProgrammes","investment-specific-programme"),(0,Resource.wn)("SupportType","support-type"),(0,Resource.AU)("Task",(function(id){return"v4/task/".concat(id)})),(0,Resource.wn)("TeamType","team-type"),(0,Resource.wn)("TimeHorizons","capital-investment/time-horizon"),(0,Resource.wn)("UKRegions","uk-region"),(0,Resource.wn)("WinType","win-type"),(0,Resource.wn)("Win UK Regions","winukregion"),(0,Resource.wn)("WithoutOurSupport","without-our-support"),(0,Resource.AU)("TaskCompletedSettings",(function(){return"v4/reminder/subscription/my-tasks-task-completed"}));const TaskCompaniesAndProjects=(0,Resource.AU)("TaskCompaniesAndProjectsResource",(function(){return"v4/task/companies-and-projects"}))},"./src/client/components/RoutedInput/Filter.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/utils/colours.js"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(___WEBPACK_IMPORTED_MODULE_2__.A)({fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__.SG.SIZE_16,lineHeight:"25px",padding:"6px 10px",marginTop:5,border:"2px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.Uv),appearance:null,display:"block",boxSizing:"border-box",width:"100%","&:focus":{outline:"3px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.eM),outlineOffset:0}})},"./src/client/components/RoutedInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_RoutedInput});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js");__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["qsParam","onChange","onEnter","reset","qsValue","value","selectedValue","dispatch","staticContext","id","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 RoutedInput=function RoutedInput(_ref){var qsParam=_ref.qsParam,_onChange=_ref.onChange,onEnter=_ref.onEnter,reset=_ref.reset,_ref$qsValue=_ref.qsValue,qsValue=void 0===_ref$qsValue?"":_ref$qsValue,_ref$value=_ref.value,value=void 0===_ref$value?qsValue:_ref$value,selectedValue=_ref.selectedValue,type=(_ref.dispatch,_ref.staticContext,_ref.id,_ref.type),props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useTextCaretPosition=function useTextCaretPosition(){var _useState2=_slicedToArray((0,react.useState)(0),2),start=_useState2[0],setStart=_useState2[1],_useState4=_slicedToArray((0,react.useState)(0),2),end=_useState4[0],setEnd=_useState4[1],inputRef=(0,react.useRef)(null),updateTextCaret=(0,react.useCallback)((function(){if("text"===inputRef.current.type){var _inputRef$current=inputRef.current,selectionStart=_inputRef$current.selectionStart,selectionEnd=_inputRef$current.selectionEnd;setStart(selectionStart),setEnd(selectionEnd)}}),[]);return(0,react.useEffect)((function(){"text"===inputRef.current.type&&inputRef.current.setSelectionRange(start,end)})),{start,end,ref:inputRef,updateTextCaret}}(),ref=_useTextCaretPosition.ref,updateTextCaret=_useTextCaretPosition.updateTextCaret;(0,react.useEffect)((function(){!qsValue&&selectedValue&&reset()}),[selectedValue,qsValue]);var location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1)),writeQs=function writeQs(){return navigate({search:lib_default().stringify(_objectSpread(_objectSpread({},qsParams),{},_defineProperty({},qsParam,value))),replace:!0})};return react.createElement(govuk_react_input_esm.A,_extends({},props,{ref,value,type,onChange:function onChange(e){_onChange(e.target.value),updateTextCaret()},onKeyDown:function onKeyDown(e){"Enter"===e.key&&(onEnter(e.target.value),writeQs())},onBlur:writeQs}))};RoutedInput.propTypes={qsParam:prop_types_default().string.isRequired,type:prop_types_default().string};const components_RoutedInput=(0,multiinstance.Ay)({name:"RoutedInput",actionPattern:"ROUTED_INPUT__",component:RoutedInput,dispatchToProps:function dispatchToProps(dispatch){return{onChange:function onChange(value){return dispatch({type:actions.R5F,value})},onEnter:function onEnter(selectedValue){return dispatch({type:actions.z_g,selectedValue})},reset:function reset(){return dispatch({type:actions._jk})}}},componentStateToProps:function componentStateToProps(cs,_ref2,_ref3){var router=_ref2.router,qsParam=_ref3.qsParam,qsValue=lib_default().parse(router.location.search.slice(1))[qsParam];return _objectSpread(_objectSpread({},cs),{},{qsValue})},reducer:function reducer(state,_ref4){var type=_ref4.type,value=_ref4.value,selectedValue=_ref4.selectedValue;switch(type){case actions.R5F:return _objectSpread(_objectSpread({},state),{},{value});case actions.z_g:return _objectSpread(_objectSpread({},state),{},{selectedValue});case actions._jk:return{};default:return state}}})},"./src/client/components/RoutedInputField/Filter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["label"];var StyledFilterLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_FilterLabel__WEBPACK_IMPORTED_MODULE_5__.A)({marginBottom:32}),RoutedInputFieldFilter=function RoutedInputFieldFilter(_ref){var label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFilterLabel,null,label,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,props))};RoutedInputFieldFilter.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=RoutedInputFieldFilter;RoutedInputFieldFilter.__docgenInfo={description:"",methods:[],displayName:"RoutedInputFieldFilter",props:{label:{description:"",type:{name:"node"},required:!0}}}},"./src/client/components/RoutedNumericRangeField/Filter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["id","qsParam","label"];var StyledContainer=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({display:"flex",alignItems:"baseline"}),StyledDivider=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({padding:"0.5rem"}),StyledFieldset=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.fieldset({marginBottom:32}),RoutedNumericRangeField=function RoutedNumericRangeField(_ref){var id=_ref.id,qsParam=_ref.qsParam,label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFieldset,props,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_FilterLabel__WEBPACK_IMPORTED_MODULE_5__.A,{as:"legend"},label),react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledContainer,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,{id:"".concat(id,"-min"),qsParam:"".concat(qsParam,"_min"),type:"number",placeholder:"No min","aria-label":"".concat(label," min")}),react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledDivider,null,"-"),react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,{id:"".concat(id,"-max"),qsParam:"".concat(qsParam,"_max"),type:"number",placeholder:"No max","aria-label":"".concat(label," max")})))};RoutedNumericRangeField.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,qsParam:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=RoutedNumericRangeField;RoutedNumericRangeField.__docgenInfo={description:"",methods:[],displayName:"RoutedNumericRangeField",props:{label:{description:"",type:{name:"node"},required:!0},id:{description:"",type:{name:"string"},required:!0},qsParam:{description:"",type:{name:"string"},required:!0}}}},"./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>INCLUDE_RELATED_COMPANIES_DISABLED_SUBSIDIARY,j:()=>INCLUDE_RELATED_COMPANIES});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 INCLUDE_RELATED_COMPANIES=[{label:"Parent companies",value:"include_parent_companies"},{label:"Subsidiary companies",value:"include_subsidiary_companies"}],INCLUDE_RELATED_COMPANIES_DISABLED_SUBSIDIARY=INCLUDE_RELATED_COMPANIES.map((function(option){return"include_subsidiary_companies"===option.value?_objectSpread(_objectSpread({},option),{},{disabled:"disabled"}):option}))},"./src/client/components/SecondaryButton.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.object.assign.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var SecondaryButton=react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_4__.A,_extends({ref,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF},props))}));SecondaryButton.Inline=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(SecondaryButton)(_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-block;\n  width: auto;\n  font-size: 0.8em;\n  vertical-align: baseline;\n  padding: 0.2em;\n  line-height: 0.5lh;\n  margin: 0;\n"])));const __WEBPACK_DEFAULT_EXPORT__=SecondaryButton;SecondaryButton.__docgenInfo={description:"",methods:[],displayName:"SecondaryButton"}},"./src/client/components/Select/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["input"],_excluded2=["onChange","initialValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var StyledGovSelect=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_25__.l6)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n\n  select {\n    flex: 1;\n    width: 'initial';\n    min-width: 200px;\n  }\n\n  "," {\n    display: flex;\n    align-items: center;\n    flex-direction: row;\n    ","\n    span {\n      ","\n    }\n  }\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:2,property:"margin",direction:["top"]}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.TABLET,_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:0,property:"margin",direction:["top"]}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:1,property:"margin",direction:["right"]})),Select=function Select(_ref){var input=_ref.input,props=_objectWithoutProperties(_ref,_excluded),_input$onChange=input.onChange,_onChange=void 0===_input$onChange?function(){}:_input$onChange,_input$initialValue=input.initialValue,initialValue=void 0===_input$initialValue?"":_input$initialValue,inputProps=_objectWithoutProperties(input,_excluded2),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_24__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledGovSelect,_extends({},props,{input:_objectSpread({onChange:function onChange(e){setValue(e.target.value),_onChange(e)},value},inputProps)}))};const __WEBPACK_DEFAULT_EXPORT__=Select;Select.__docgenInfo={description:"",methods:[],displayName:"Select"}},"./src/client/components/SpacedSectionBreak.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var govuk_react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_0__.B5)({marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.Es.SCALE_3})},"./src/client/components/StatusMessage/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StatusMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div").attrs((function(props){return{colour:props.colour||_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.ft,role:"alert","data-test":props["data-test"]||"status-message"}}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  color: ",";\n  font-weight: bold;\n  line-height: 1.5;\n  ",";\n  ",";\n  ",";\n"])),(function(_ref){var colour=_ref.colour;return"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1," solid ").concat(colour)}),(function(_ref2){return _ref2.colour}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.responsivePadding(4),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.withWhiteSpace({marginBottom:6}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs);StatusMessage.propTypes={colour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=StatusMessage},"./src/client/components/SummaryList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),_excluded=["rows"];function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledInnerRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding: "," 0;\n\n  "," {\n    display: inline-flex;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDL=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dl")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  "," {\n    display: flex;\n    flex-direction: column;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDT=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dt")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  padding-right: ",";\n  width: 30%;\n  font-weight: bold;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_4),StyledDD=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dd")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  width: 70%;\n"]))),SummaryList=function SummaryList(_ref){var rows=_ref.rows,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return rows?react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDL,rest,rows.filter((function(r){return!(0,lodash__WEBPACK_IMPORTED_MODULE_10__.isEmpty)(r)&&!(0,lodash__WEBPACK_IMPORTED_MODULE_10__.isEmpty)(r.value)})).map((function(_ref2){var label=_ref2.label,value=_ref2.value;return react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledInnerRow,{key:label},react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDT,null,label),react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDD,null,Array.isArray(value)?value.join(", "):value))}))):null};SummaryList.propTypes={rows:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_13___default().node,value:prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().node,prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)])}))};const __WEBPACK_DEFAULT_EXPORT__=SummaryList;SummaryList.__docgenInfo={description:"A styled version of a description list, with terms and descriptions.",methods:[],displayName:"SummaryList",props:{rows:{description:"Items to display in the list",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"node",required:!1},value:{name:"union",value:[{name:"node"},{name:"arrayOf",value:{name:"node"}}],required:!1}}}},required:!1}}}},"./src/client/components/SummaryTable/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),lodash__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/utils/number-utils.js"),_Tag__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["caption","actions","children"],_excluded2=["heading","children","hideWhenEmpty","flag"],_excluded3=["heading","value","emptyValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<s.length;r++)o=s[r],t.includes(o)||{}.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 StyledTable=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  & > tbody th {\n    width: 30%;\n  }\n  & > caption {\n    ",";\n    margin-bottom: ",";\n  }\n  & > tbody > tr:first-child {\n    border-top: 1px solid ",";\n  }\n  & > caption > * {\n    ",";\n    float: right;\n    margin-left: ",";\n  }\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:24,weight:"bold"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.Pe,_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:19,weight:"normal"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3),StyledCellList=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  list-style: none;\n  padding: 0;\n  margin: 0;\n"]))),StyledTag=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_Tag__WEBPACK_IMPORTED_MODULE_17__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  float: right;\n"]))),SummaryTable=function SummaryTable(_ref){var caption=_ref.caption,actions=_ref.actions,children=_ref.children,rest=_objectWithoutProperties(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTable,_extends({caption:caption&&[caption,actions]},rest,{"data-component":"SummaryTable"}),children)},StyledTableRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Row)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  font-size: ",";\n  line-height: ",";\n  white-space: pre-wrap;\n\n  /* Conditionally apply the red border when flag is false */\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.$g.SIZE_24,(function(props){return props.invalid&&"\n      border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.su,";\n      margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,";\n      padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,";\n    ")}));SummaryTable.Row=function(_ref2){var heading=_ref2.heading,children=_ref2.children,hideWhenEmpty=_ref2.hideWhenEmpty,flag=_ref2.flag,props=_objectWithoutProperties(_ref2,_excluded2);if(hideWhenEmpty&&(0,lodash__WEBPACK_IMPORTED_MODULE_12__.isEmpty)(children))return null;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTableRow,_extends({invalid:flag},props),heading&&react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.CellHeader,null,heading),react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Cell,null,function renderChildren(){return Array.isArray(children)?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledCellList,props,children.filter((function(c){return c})).map((function(c,index){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(c,"-").concat(index)},c)}))):children}()))},SummaryTable.TextRow=function(_ref3){var heading=_ref3.heading,value=_ref3.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value||react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.CurrencyRow=function(_ref4){var heading=_ref4.heading,value=_ref4.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value?(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__.Dv)(value):react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.ListRow=function(_ref5){var heading=_ref5.heading,_ref5$value=_ref5.value,value=void 0===_ref5$value?[]:_ref5$value,emptyValue=_ref5.emptyValue,rest=_objectWithoutProperties(_ref5,_excluded3);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,_extends({heading},rest),value&&value.length?react__WEBPACK_IMPORTED_MODULE_11__.createElement("ul",null,value.map((function(v,i){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(heading,"-").concat(i)},v.label)}))):void 0===emptyValue?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"):emptyValue)},SummaryTable.propTypes={caption:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element]),actions:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.Row.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.TextRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element,prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().element)])},SummaryTable.CurrencyRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().number},SummaryTable.ListRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string}))};const __WEBPACK_DEFAULT_EXPORT__=SummaryTable;SummaryTable.__docgenInfo={description:"",methods:[{name:"Row",docblock:null,modifiers:["static"],params:[{name:"{ heading, children, hideWhenEmpty, flag, ...props }",optional:!1,type:null}],returns:null},{name:"TextRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"CurrencyRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"ListRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value = [], emptyValue, ...rest }",optional:!1,type:null}],returns:null}],displayName:"SummaryTable",props:{caption:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},actions:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/TabNav/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_TabNav});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.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.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.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 _templateObject;function TabNav_typeof(o){return TabNav_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},TabNav_typeof(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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function TabNav_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 TabNav_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TabNav_ownKeys(Object(t),!0).forEach((function(r){TabNav_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TabNav_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TabNav_defineProperty(e,r,t){return(r=function TabNav_toPropertyKey(t){var i=function TabNav_toPrimitive(t,r){if("object"!=TabNav_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TabNav_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TabNav_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var focusStyle={"&:focus":TabNav_defineProperty({outline:"3px solid ".concat(colours.eM),background:colours.eM},govuk_react_constants_esm.qs.TABLET,{background:colours.UE})},StyledSpan=(0,styled_components_browser_esm.Ay)("span")(TabNav_defineProperty({display:"block","::before":{color:"".concat(colours.Uv),content:'"— "',paddingRight:"".concat(govuk_react_constants_esm.Ge[1],"px")}},govuk_react_constants_esm.qs.TABLET,{display:"inline-block","::before":{display:"none"}})),buttonStyle={padding:0,margin:"0 0 ".concat(govuk_react_constants_esm.Ge[2],"px 0"),color:colours.yV,fontSize:16,fontFamily:"Arial, sans-serif",textDecoration:"underline",border:"none",background:"transparent"},StyledButton=(0,styled_components_browser_esm.Ay)("button")(TabNav_objectSpread(TabNav_objectSpread(TabNav_objectSpread({},buttonStyle),focusStyle),{},TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{color:colours.pF,fontSize:19,textDecoration:function textDecoration(_ref){var theme=_ref.theme;return(0,lodash.get)(theme,"tabNav.button.textDecoration","none")},padding:"".concat(govuk_react_constants_esm.Ge[2],"px ").concat(govuk_react_constants_esm.Ge[4],"px"),margin:"".concat(govuk_react_constants_esm.Ge[1],"px 0 ").concat(govuk_react_constants_esm.Ge[1],"px"),background:colours.P1,border:"none",cursor:"pointer"}))),StyledSelectedButton=(0,styled_components_browser_esm.Ay)("button")(TabNav_objectSpread(TabNav_objectSpread({},buttonStyle),{},TabNav_defineProperty({"&:focus":{outline:"3px solid ".concat(colours.eM),background:colours.eM}},govuk_react_constants_esm.qs.TABLET,{fontSize:19,textDecoration:"none",color:function color(_ref2){var theme=_ref2.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.color",colours.pF)},border:function border(_ref3){var theme=_ref3.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.border","1px solid ".concat(colours.GU))},borderBottom:"none",background:function background(_ref4){var theme=_ref4.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.background",colours.UE)},"&:focus":{background:function background(_ref5){var theme=_ref5.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.background",colours.UE)}},marginBottom:-1,padding:"14px 19px 16px"}))),StyledTablist=styled_components_browser_esm.Ay.div(TabNav_defineProperty({borderBottom:"none"},govuk_react_constants_esm.qs.TABLET,{borderBottom:function borderBottom(_ref6){var theme=_ref6.theme;return(0,lodash.get)(theme,"tabNav.tabList.borderBottom","1px solid ".concat(colours.GU))},"& > *:not(:last-child)":{marginRight:5}})),StyledTabpanel=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n"])),(function(_ref7){var theme=_ref7.theme;return theme.tabNav?"\n        border: ".concat((0,lodash.get)(theme,"tabNav.tabPanel.border"),";\n        padding: ").concat((0,lodash.get)(theme,"tabNav.tabPanel.padding"),";\n        margin-bottom: ").concat((0,lodash.get)(theme,"tabNav.tabPanel.marginBottom"),";\n      "):"\n        margin-top: 15px;\n        ".concat(govuk_react_constants_esm.qs.TABLET," {\n          margin-top: 30px;\n        }\n      ")})),createId=function createId(id,key,routed){return routed?"".concat(id,".tab.").concat(key.replace("/","_")):"tab.".concat(key)};function getContent(tabs,keys,selectedTab){if(keys.includes(selectedTab))return tabs[selectedTab].content;var _step,_iterator=function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}(keys);try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;if(key.length>1&&selectedTab.startsWith(key))return tabs[key].content}}catch(err){_iterator.e(err)}finally{_iterator.f()}}var TabNav=function TabNav(_ref8){var selectedIndex=_ref8.selectedIndex,focusIndex=_ref8.focusIndex,tabs=_ref8.tabs,label=_ref8.label,onChange=_ref8.onChange,onTabChange=_ref8.onTabChange,onFocusChange=_ref8.onFocusChange,id=_ref8.id,routed=_ref8.routed,_ref8$keepQueryParams=_ref8.keepQueryParams,keepQueryParams=void 0!==_ref8$keepQueryParams&&_ref8$keepQueryParams,location=(0,dist.zy)(),navigate=(0,dist.Zp)(),tabKeys=Object.keys(tabs),tablistRef=(0,react.useRef)();selectedIndex=routed?location.pathname:selectedIndex;var isSelectedValid=tabKeys.includes(selectedIndex);return(0,react.useEffect)((function(){var _tablistRef$current;null===(_tablistRef$current=tablistRef.current)||void 0===_tablistRef$current||null===(_tablistRef$current=_tablistRef$current.querySelectorAll("[role=tab]")[focusIndex])||void 0===_tablistRef$current||_tablistRef$current.focus()}),[focusIndex,selectedIndex]),react.createElement(react.Fragment,null,react.createElement(StyledTablist,{tabIndex:-1,role:"tablist",ref:tablistRef,"data-test":"tablist","aria-label":label,onKeyUp:function onKeyUp(_ref9){var _selectedIndex,keyCode=_ref9.keyCode,totalTabs=tabKeys.length,foundIndex=tabKeys.indexOf(null===(_selectedIndex=selectedIndex)||void 0===_selectedIndex?void 0:_selectedIndex.toString()),currentFocusIndex=void 0!==focusIndex?focusIndex:void 0===selectedIndex||-1===foundIndex?0:foundIndex;39===keyCode&&onFocusChange((currentFocusIndex+1)%totalTabs),37===keyCode&&onFocusChange(((currentFocusIndex<1?totalTabs:currentFocusIndex)-1)%totalTabs)}},Object.entries(tabs).map((function(_ref10,index){var _ref11=_slicedToArray(_ref10,2),key=_ref11[0],label=_ref11[1].label,selected=isSelectedValid?key===selectedIndex:key.length>1&&selectedIndex.startsWith(key),Button=selected?StyledSelectedButton:StyledButton,tabId=createId(id,key,routed);return react.createElement(StyledSpan,{key:tabId,"data-test":"tab-item"},react.createElement(Button,{role:"tab","aria-selected":selected,id:tabId,tabIndex:void 0!==selectedIndex||index?selected?0:-1:0,onClick:function onClick(){if(onChange(key,index),onTabChange&&onTabChange({path:key}),routed&&!selected){var url=keepQueryParams?"".concat(key).concat(location.search):key;navigate(url)}}},label))}))),react.createElement(StyledTabpanel,{role:"tabpanel",tabIndex:-1,"aria-labelledby":createId(id,selectedIndex,!0),"data-test":"tabpanel"},getContent(tabs,tabKeys,selectedIndex)))},tabPropType=prop_types_default().shape({label:prop_types_default().node.isRequired,content:prop_types_default().node});TabNav.propTypes={label:prop_types_default().string.isRequired,routed:prop_types_default().any,keepQueryParams:prop_types_default().bool,onTabChange:prop_types_default().func,tabs:prop_types_default().oneOfType([prop_types_default().arrayOf(tabPropType),prop_types_default().objectOf(tabPropType)]).isRequired};const components_TabNav=(0,multiinstance.Ay)({name:"TabNav",actionPattern:"TAB_NAV__",dispatchToProps:function dispatchToProps(dispatch){return{onChange:function onChange(selectedIndex,focusIndex){return dispatch({type:actions.eyX,selectedIndex,focusIndex})},onFocusChange:function onFocusChange(focusIndex){return dispatch({type:actions.mKW,focusIndex})}}},component:TabNav,reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,focusIndex=_ref.focusIndex,selectedIndex=_ref.selectedIndex;switch(type){case actions.mKW:return _objectSpread(_objectSpread({},state),{},{focusIndex});case actions.eyX:return{selectedIndex,focusIndex};default:return state}}})},"./src/client/components/Tag/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.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__),_govuk_react_tag__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/tag/dist/govuk-react-tag.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["colour","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledTag=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_tag__WEBPACK_IMPORTED_MODULE_8__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  background-color: ",";\n  color: ",";\n  white-space: nowrap;\n"])),(function(props){return _client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px[props.colour].background}),(function(props){return _client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px[props.colour].colour})),Tag=function Tag(_ref){var _ref$colour=_ref.colour,colour=void 0===_ref$colour?"default":_ref$colour,children=_ref.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledTag,_extends({colour},props),children)};Tag.propTypes={colour:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(Object.keys(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px)),children:prop_types__WEBPACK_IMPORTED_MODULE_11___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Tag;Tag.__docgenInfo={description:"`Tag` is a implementation of the [Tag](https://design-system.service.gov.uk/components/tag/) component from the GovUK Design System.\n\nUse the tag component when it’s possible for something to have more than one status and it’s useful for the user to know about that status.\nFor example, you can use a tag to show whether an item in a [task list](https://design-system.service.gov.uk/patterns/task-list-pages) has been ‘completed’.\n\nIf no colour is specified the tag will default to a blue background and white text.",methods:[],displayName:"Tag",props:{colour:{defaultValue:{value:"'default'",computed:!1},description:"Dictates the `background-color` and `color`",type:{name:"enum",value:[{value:'"default"',computed:!1},{value:'"grey"',computed:!1},{value:'"green"',computed:!1},{value:'"darkGreen"',computed:!1},{value:'"turquoise"',computed:!1},{value:'"blue"',computed:!1},{value:'"purple"',computed:!1},{value:'"pink"',computed:!1},{value:'"red"',computed:!1},{value:'"orange"',computed:!1},{value:'"yellow"',computed:!1}]},required:!1},children:{description:"Text of tag",type:{name:"node"},required:!0}}}},"./src/client/components/Task/Error.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/InlineIcon/index.js"),_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/SecondaryButton.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay.div(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.pF,background:"white",wordWrap:"break-word",padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.mobile,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d5," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su),"&:focus":{outline:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.uk," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.eM),outlineOffset:"0"}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.qs.LARGESCREEN,{padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.tablet,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.gP," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su)}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__.YK.withWhiteSpace({marginBottom:6})),StyledSecondaryButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A)({marginBottom:0}),Err=function Err(_ref){var errorMessage=_ref.errorMessage,retry=_ref.retry,dismiss=_ref.dismiss,noun=_ref.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledRoot,{"data-test":"error-dialog"},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__.H2,{size:"MEDIUM"},"Could not load ",noun),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isString)(errorMessage)&&react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",null,"Error: ",errorMessage),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isArray)(errorMessage)&&errorMessage.map((function(error){return react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",{key:error},error)})),retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:retry},"Retry"),dismiss&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:dismiss},"Dismiss")))};Err.propTypes={noun:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,errorMessage:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,retry:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func,dismiss:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func},Err.Inline=function(_ref2){var retry=_ref2.retry,noun=_ref2.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement("span",{style:{color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su}},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_18__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__.wo,null))," ","Could not load ",noun,retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(react__WEBPACK_IMPORTED_MODULE_12__.Fragment,null," ",react__WEBPACK_IMPORTED_MODULE_12__.createElement(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A.Inline,{onClick:retry},"Retry")))};const __WEBPACK_DEFAULT_EXPORT__=Err;Err.__docgenInfo={description:"",methods:[{name:"Inline",docblock:null,modifiers:["static"],params:[{name:"{ retry, noun }",optional:!1,type:null}],returns:null}],displayName:"Err",props:{noun:{description:"",type:{name:"string"},required:!0},errorMessage:{description:"",type:{name:"string"},required:!0},retry:{description:"",type:{name:"func"},required:!1},dismiss:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Task/LoadingBox.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_Effect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Effect.jsx"),___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Task/index.jsx"),_excluded=["name","id","when","children","startOnRender"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledContentWrapper=styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay.div({position:"relative"}),StyledErrorOverlay=styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay.div({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:"rgba(255, 255, 255, 0.85)"});const __WEBPACK_DEFAULT_EXPORT__=function(_ref){var name=_ref.name,id=_ref.id,when=_ref.when,children=_ref.children,startOnRender=_ref.startOnRender,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(___WEBPACK_IMPORTED_MODULE_8__.A,null,(function(t){var task=t(name,id);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_6__.A,{loading:task.progress||when},react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Effect__WEBPACK_IMPORTED_MODULE_7__.A,{dependencyList:[name,id,startOnRender],effect:function effect(){startOnRender&&task.start(startOnRender)}}),react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledContentWrapper,null,task.hasError?react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Fragment,null,children,react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledErrorOverlay,null,react__WEBPACK_IMPORTED_MODULE_5__.createElement(___WEBPACK_IMPORTED_MODULE_8__.A.Status,_extends({},props,{name,id})))):children))}))}},"./src/client/components/Task/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),prop_types__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__),react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),govuk_react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js"),_Error__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/Error.jsx"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_AccessDenied__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/AccessDenied/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["start","cancel","dismissError","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledLoadingBox=(0,styled_components__WEBPACK_IMPORTED_MODULE_25__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_21__.I5)({paddingBottom:0}),nameIdPropTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string.isRequired},startOnRenderPropTypes={payload:prop_types__WEBPACK_IMPORTED_MODULE_26___default().any,onSuccessDispatch:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string},Task=(0,react_redux__WEBPACK_IMPORTED_MODULE_27__.connect)((function(state){return state.tasks}),(function(dispatch){return{start:function start(name,id,_ref){var payload=_ref.payload,onSuccessDispatch=_ref.onSuccessDispatch;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.EGH,payload,id,name,onSuccessDispatch})},cancel:function cancel(name,id){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.KQv,id,name})},dismissError:function dismissError(name,id){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.RnU,id,name})}}}))((function Task(_ref2){var _start=_ref2.start,_cancel=_ref2.cancel,_dismissError=_ref2.dismissError,children=_ref2.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return children((function(name,id){var taskState=(0,lodash__WEBPACK_IMPORTED_MODULE_19__.get)(props,[name,id],{});return _objectSpread(_objectSpread({},taskState),{},{progress:"progress"===taskState.status,hasError:"error"===taskState.status,start:function start(options){return _start(name,id,options)},cancel:function cancel(){return _cancel(name,id)},retry:function retry(){return _start(name,id,taskState)},dismissError:function dismissError(){return _dismissError(name,id)}})}))}));Task.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_26___default().func.isRequired},Task.StartOnRender=(0,react_redux__WEBPACK_IMPORTED_MODULE_27__.connect)((function(state,_ref3){var name=_ref3.name,id=_ref3.id;return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.get)(state,["tasks",name,id],{})}),(function(dispatch,_ref4){var id=_ref4.id,name=_ref4.name;return{start:function start(options){return dispatch(_objectSpread(_objectSpread({},options),{},{type:_actions__WEBPACK_IMPORTED_MODULE_28__.EGH,id,name}))}}}))((function(_ref5){var start=_ref5.start,name=_ref5.name,id=_ref5.id,payload=_ref5.payload,onSuccessDispatch=_ref5.onSuccessDispatch,status=_ref5.status;return(0,react__WEBPACK_IMPORTED_MODULE_20__.useEffect)((function(){status||start({payload,onSuccessDispatch})}),[name,id,JSON.stringify(payload),onSuccessDispatch]),null})),Task.StartOnRender.propTypes=_objectSpread(_objectSpread({},nameIdPropTypes),startOnRenderPropTypes),Task.Status=function(_ref6){var name=_ref6.name,id=_ref6.id,_ref6$noun=_ref6.noun,noun=void 0===_ref6$noun?name:_ref6$noun,startOnRender=_ref6.startOnRender,progressMessage=_ref6.progressMessage,_ref6$renderError=_ref6.renderError,renderError=void 0===_ref6$renderError?_Error__WEBPACK_IMPORTED_MODULE_22__.A:_ref6$renderError,_ref6$renderProgress=_ref6.renderProgress,renderProgress=void 0===_ref6$renderProgress?_ProgressIndicator__WEBPACK_IMPORTED_MODULE_23__.A:_ref6$renderProgress,_ref6$progressOverlay=_ref6.progressOverlay,progressOverlay=void 0!==_ref6$progressOverlay&&_ref6$progressOverlay,_ref6$dismissable=_ref6.dismissable,dismissable=void 0===_ref6$dismissable||_ref6$dismissable,noRetry=_ref6.noRetry,noDismiss=_ref6.noDismiss,_ref6$children=_ref6.children,children=void 0===_ref6$children?function(){return null}:_ref6$children;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(Task,null,(function(getTask){var _getTask=getTask(name,id),start=_getTask.start,status=_getTask.status,progress=_getTask.progress,hasError=_getTask.hasError,payload=_getTask.payload,errorMessage=_getTask.errorMessage,onSuccessDispatch=_getTask.onSuccessDispatch,dismissError=_getTask.dismissError,error=_getTask.error;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,!!startOnRender&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(Task.StartOnRender,_extends({},startOnRender,{name,id})),!progressOverlay&&progress&&renderProgress({message:progressMessage,noun}),hasError&&("You do not have permission to perform this action."===errorMessage?react__WEBPACK_IMPORTED_MODULE_20__.createElement(_AccessDenied__WEBPACK_IMPORTED_MODULE_24__.A,null):renderError({noun,error,errorMessage,retry:!noRetry&&function retry(){return start({payload,onSuccessDispatch,ignoreIfInProgress:!0})},dismiss:!noDismiss&&dismissError,dismissable})),progressOverlay?react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledLoadingBox,{loading:progress},children()):!status&&children())}))},Task.Status.propTypes=_objectSpread(_objectSpread({},nameIdPropTypes),{},{noun:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string,progressMessage:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string,progressOverlay:prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool,startOnRender:prop_types__WEBPACK_IMPORTED_MODULE_26___default().shape(startOnRenderPropTypes),renderProgress:prop_types__WEBPACK_IMPORTED_MODULE_26___default().elementType,renderError:prop_types__WEBPACK_IMPORTED_MODULE_26___default().elementType});const __WEBPACK_DEFAULT_EXPORT__=Task},"./src/client/components/Task/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{HD:()=>apiProxyAxios});__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var axios__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/axios/lib/axios.js"),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["url"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}(0,lodash__WEBPACK_IMPORTED_MODULE_25__.curry)((function(duration,task,payload){return Promise.all([task(payload),new Promise((function(resolve){return setTimeout(resolve,duration)}))]).then((function(_ref){return _slicedToArray(_ref,1)[0]}))}));var apiProxyAxios=axios__WEBPACK_IMPORTED_MODULE_26__.A.create();apiProxyAxios.interceptors.request.use((function(_ref4){var url=_ref4.url;return _objectSpread(_objectSpread({},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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded)),{},{url:url.startsWith("/api-proxy")?url:url.replace(/^\/?/,"/api-proxy/")})})),apiProxyAxios.interceptors.response.use(lodash__WEBPACK_IMPORTED_MODULE_25__.identity,(function catchApiError(_ref3){var _response$data,_response$data2,response=_ref3.response,message=_ref3.message;return Promise.reject({message:(null==response||null===(_response$data=response.data)||void 0===_response$data?void 0:_response$data.detail)||(null==response?void 0:response.text)||(null==response||null===(_response$data2=response.data)||void 0===_response$data2?void 0:_response$data2.non_field_errors)||(null==response?void 0:response.statusText)||response.data||message,data:response.data,httpStatusCode:response.status})}))},"./src/client/components/Timeline/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["stages","currentStage"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 TimelineContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("div")(_defineProperty({backgroundColor:function backgroundColor(_ref){var theme=_ref.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"container.backgroundColor",_utils_colours__WEBPACK_IMPORTED_MODULE_17__.WS)},padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_2},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{padding:function padding(_ref2){var theme=_ref2.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"container.largeScreen.padding",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_5)}})),StyledOl=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("ol")(_defineProperty({fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.SG.SIZE_14,listStyleType:"none",boxSizing:"border-box",padding:"0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_3)},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{padding:"0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_3),margin:0,display:"table",width:"100%"})),StyledLi=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("li")(_defineProperty({borderLeft:"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G),padding:"0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0"),position:"relative","&:last-child":{padding:0,"&::before":{top:"2px"}},"&::before":{position:"absolute",display:"block",content:'""',borderRadius:"50%",left:function left(_ref3){var theme=_ref3.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.left","-12px")},width:function width(_ref4){var theme=_ref4.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.width",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)},height:function height(_ref5){var theme=_ref5.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.height",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)},backgroundColor:function backgroundColor(_ref6){var isStageComplete=_ref6.isStageComplete;return"".concat(isStageComplete?_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G:_utils_colours__WEBPACK_IMPORTED_MODULE_17__.UE)},border:function border(_ref7){var theme=_ref7.theme,isStageComplete=_ref7.isStageComplete,border=(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.border");return border?isStageComplete?"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G):border:"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G)}},span:{display:function display(_ref8){var theme=_ref8.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.span.display","block")},padding:"2px 0 4px ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{display:"table-cell",width:"25%",padding:function padding(_ref9){var theme=_ref9.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.padding","".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0 0 0"))},borderTop:function borderTop(_ref10){var theme=_ref10.theme,isLinkActive=_ref10.isLinkActive,borderTop=(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.borderTop");return borderTop?isLinkActive?"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G):borderTop:"3px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G)},borderLeft:"none","&:last-child":{padding:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0 0 0"),borderColor:"transparent","&::before":{top:function top(_ref11){var theme=_ref11.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.top","-12px")}}},"&::before":{top:function top(_ref12){var theme=_ref12.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.top","-12px")},left:function left(_ref13){var theme=_ref13.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.left","-12px")}},span:{padding:0,position:"absolute",width:"100px",textAlign:"center",left:"-50px"}})),Timeline=function Timeline(_ref14){var stages=_ref14.stages,_ref14$currentStage=_ref14.currentStage,currentStage=void 0===_ref14$currentStage?"":_ref14$currentStage,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref14,_excluded),stageIndex=stages.indexOf(currentStage);return react__WEBPACK_IMPORTED_MODULE_14__.createElement(TimelineContainer,_extends({"data-test":"timeline"},props),react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledOl,null,stages.map((function(stage,i){var isStageComplete=i<=stageIndex,isLinkActive=i<stageIndex;return react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledLi,{key:i,isLinkActive,isStageComplete,"aria-label":isStageComplete?"stage complete":"stage incomplete"},react__WEBPACK_IMPORTED_MODULE_14__.createElement("span",null,stage))}))))};Timeline.propTypes={stages:prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().string).isRequired,currentStage:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string};const __WEBPACK_DEFAULT_EXPORT__=Timeline;Timeline.__docgenInfo={description:"The timeline displays a list of events/stages in chronological order and indicates the current progress of a particular event/stage.",methods:[],displayName:"Timeline",props:{currentStage:{defaultValue:{value:"''",computed:!1},description:"Marks the current stage",type:{name:"string"},required:!1},stages:{description:"Text for the stages",type:{name:"arrayOf",value:{name:"string"}},required:!0}}}},"./src/client/components/ToggleSection/BaseToggleSection.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,EE:()=>ButtonContent,KC:()=>MultiInstanceToggleSection,Of:()=>ToggleContent,d$:()=>BadgeContainer,ff:()=>ToggleButton,yK:()=>ToggleHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_25__),styled_components__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/multiinstance.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_excluded=["label","badge","open","onOpen","isOpen","colour","children","justifyHeaderContent"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ToggleContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral([""]))),ToggleHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  display: flex;\n  position: relative;\n  ","\n"])),(function(_ref){return _ref.justifyHeaderContent?"justify-content: space-between;":"align-items: center;"})),ToggleButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("button")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: flex;\n  align-items: center;\n  background: transparent;\n  border: none;\n  font-size: ",";\n  font-family: inherit;\n  color: ",";\n  cursor: pointer;\n  &:hover {\n    text-decoration: underline;\n  }\n  &:focus {\n    outline: none;\n    text-decoration: none;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_19,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft),ToggleButtonIconStyle=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin-right: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2,(function(_ref2){var isOpen=_ref2.isOpen;return"\n    transform: ".concat(isOpen?"rotate(0deg)":"rotate(180deg)",";\n  ")})),ToggleButtonIcon=function ToggleButtonIcon(_ref3){var _ref3$colour=_ref3.colour,colour=void 0===_ref3$colour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv:_ref3$colour,isOpen=_ref3.isOpen;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButtonIconStyle,{isOpen},react__WEBPACK_IMPORTED_MODULE_20__.createElement("svg",{width:"18px",height:"18px",version:"1.1",viewBox:"210 275 600 425",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",fill:colour},react__WEBPACK_IMPORTED_MODULE_20__.createElement("path",{d:"m798.16 609.84l-256-256c-16.683-16.683-43.691-16.683-60.331 0l-256 256c-16.683 16.683-16.683 43.691 0 60.331s43.691 16.683 60.331 0l225.84-225.84 225.84 225.84c16.683 16.683 43.691 16.683 60.331 0s16.683-43.691 0-60.331z"})))},ButtonContent=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))),BadgeContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  margin-left: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_1),ToggleContent=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  ","\n"])),(function(_ref4){var isOpen=_ref4.isOpen;return"\n    display: ".concat(isOpen?"block":"none",";\n    padding: 0;\n  ")})),BaseToggleSection=function BaseToggleSection(_ref5){var label=_ref5.label,_ref5$badge=_ref5.badge,badge=void 0===_ref5$badge?null:_ref5$badge,open=_ref5.open,onOpen=_ref5.onOpen,_ref5$isOpen=_ref5.isOpen,isOpen=void 0!==_ref5$isOpen&&_ref5$isOpen,_ref5$colour=_ref5.colour,colour=void 0===_ref5$colour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv:_ref5$colour,children=_ref5.children,_ref5$justifyHeaderCo=_ref5.justifyHeaderContent,justifyHeaderContent=void 0!==_ref5$justifyHeaderCo&&_ref5$justifyHeaderCo,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,_excluded);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleContainer,props,react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleHeader,{justifyHeaderContent},react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButton,{id:props.id&&"".concat(props.id,"-toggle-button-").concat(isOpen?"close":"open"),"data-test":"toggle-section-button",onClick:function onClick(){open(!isOpen),onOpen&&onOpen(!isOpen)},isOpen,"aria-expanded":isOpen},react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButtonIcon,{onClick:function onClick(){open(!isOpen),onOpen&&onOpen(!isOpen)},isOpen,colour,alt:"Toggle details"}),react__WEBPACK_IMPORTED_MODULE_20__.createElement(ButtonContent,{"data-test":"toggle-section-button-content"},label)),badge&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(BadgeContainer,null,badge)),react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleContent,{isOpen},children))};BaseToggleSection.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,badge:prop_types__WEBPACK_IMPORTED_MODULE_25___default().node,open:prop_types__WEBPACK_IMPORTED_MODULE_25___default().func,onOpen:prop_types__WEBPACK_IMPORTED_MODULE_25___default().func,isOpen:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_25___default().node,major:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,justifyHeaderContent:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,colour:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string};var MultiInstanceToggleSection=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_23__.Ay)({name:"ToggleSection",actionPattern:"TOGGLE_SECTION__",dispatchToProps:function dispatchToProps(dispatch){return{open:function open(isOpen){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.HmC,isOpen})}}},component:BaseToggleSection,reducer:function reducer(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref6=arguments.length>1?arguments[1]:void 0,type=_ref6.type,isOpen=_ref6.isOpen;return type===_actions__WEBPACK_IMPORTED_MODULE_26__.HmC?_objectSpread(_objectSpread({},state),{},{isOpen}):state}});const __WEBPACK_DEFAULT_EXPORT__=MultiInstanceToggleSection;ToggleButtonIcon.__docgenInfo={description:"",methods:[],displayName:"ToggleButtonIcon",props:{colour:{defaultValue:{value:"'#0b0c0c'",computed:!1},required:!1}}}},"./src/client/components/ToggleSection/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{cQ:()=>ToggleSection_DashboardToggleSection,Q:()=>ToggleSection_FilterToggleSection,xQ:()=>ToggleSection_NoHighlightToggleSection,Os:()=>components_ToggleSection_ToggleSection});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx");const ToggleSection_DashboardToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n\n  "," {\n    background-color: ",";\n    padding-top: ",";\n    padding-bottom: ",";\n  }\n\n  "," {\n    font-weight: ",";\n    margin-left: ",";\n  }\n\n  "," {\n    text-decoration: underline;\n    white-space: nowrap;\n  }\n\n  "," {\n    display: flex;\n    justify-content: flex-end;\n    width: 100%;\n    margin-right: ",";\n  }\n\n  "," {\n    padding: 0 ",";\n    margin-top: ",";\n    margin-bottom: ",";\n  }\n"])),(function(_ref){var major=_ref.major;return"\n    border: solid 2px ".concat(colours.WS,";\n    border-top-color: ").concat(major?colours.Bk:colours.ft,";\n  ")}),BaseToggleSection.yK,colours.WS,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.ff,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.EE,BaseToggleSection.d$,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3);var ToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var ToggleSection_ToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(ToggleSection_templateObject||(ToggleSection_templateObject=function ToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: ",";\n\n  "," {\n    padding: "," 0 ",";\n\n    &:focus "," {\n      color: ",";\n      background-color: ",";\n      box-shadow:\n        0 -2px ",",\n        0 4px ",";\n    }\n  }\n\n  "," {\n    margin: 0;\n    padding: "," 0;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,BaseToggleSection.EE,colours.Uv,colours.Iz,colours.Iz,colours.Uv,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);const components_ToggleSection_ToggleSection=ToggleSection_ToggleSection;function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ToggleSection_FilterToggleSection=(0,styled_components_browser_esm.Ay)(ToggleSection_ToggleSection)(_defineProperty(_defineProperty({borderBottom:"solid 1px ".concat(colours.Pe),paddingBottom:govuk_react_constants_esm.Es.SCALE_2},BaseToggleSection.ff,{textAlign:"left"}),BaseToggleSection.Of,{"> *:last-child":{marginBottom:0},"> *:last-child div:last-child":{marginBottom:0}}));var NoHighlightToggleSection_templateObject;const ToggleSection_NoHighlightToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(NoHighlightToggleSection_templateObject||(NoHighlightToggleSection_templateObject=function NoHighlightToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    padding: 0;\n  }\n\n  "," {\n    text-decoration: underline;\n  }\n\n  "," {\n    padding: "," 0;\n  }\n"])),BaseToggleSection.ff,BaseToggleSection.EE,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);var RemindersToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(RemindersToggleSection_templateObject||(RemindersToggleSection_templateObject=function RemindersToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border-top: 1px solid ",";\n  ","\n\n  "," {\n    text-align: left;\n    padding-top: ",";\n    padding-bottom: ",";\n  }\n\n  "," {\n    font-weight: ",";\n  }\n"])),colours.Pe,(function(_ref){return _ref.borderBottom&&"border-bottom: 1px solid ".concat(colours.Pe,";")}),BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.EE,govuk_react_constants_esm.sO.bold)},"./src/client/components/Typeahead/Highlighter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),react_string_replace__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react-string-replace/index.js"),react_string_replace__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react_string_replace__WEBPACK_IMPORTED_MODULE_4__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledSpan=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__.sO.bold),Highlighter=function Highlighter(_ref){var _ref$optionLabel=_ref.optionLabel,optionLabel=void 0===_ref$optionLabel?null:_ref$optionLabel,searchStr=_ref.searchStr;return optionLabel&&react_string_replace__WEBPACK_IMPORTED_MODULE_4___default()(optionLabel,searchStr,(function(matchedTxt,i){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSpan,{key:i},matchedTxt)}))};Highlighter.propTypes={optionLabel:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,searchStr:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Highlighter},"./src/client/components/Typeahead/Typeahead.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Typeahead_Typeahead});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),Highlighter=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),AssistiveText=function AssistiveText(_ref){var name=_ref.name;return react.createElement("span",{id:"autocomplete-".concat(name,"-assistiveHint"),style:{display:"none"}},"When autocomplete results are available use up and down arrows to review and enter to select.")};const Typeahead_AssistiveText=AssistiveText;AssistiveText.__docgenInfo={description:"",methods:[],displayName:"AssistiveText"};var ChipList=(0,styled_components_browser_esm.Ay)("ul")({listStyleType:"none",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0"),padding:0}),Chip=(0,styled_components_browser_esm.Ay)("li")({display:"inline-block",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0")}),ChipButton=(0,styled_components_browser_esm.Ay)("button")(govuk_react_constants_esm.bs,{backgroundColor:colours.WS,border:"none",borderRadius:3,color:colours.pF,fontSize:"0.75em",fontWeight:"bold",marginBottom:0,marginRight:6,padding:"".concat(govuk_react_constants_esm.Es.SCALE_1," 1.75em ").concat(govuk_react_constants_esm.Es.SCALE_1," ").concat(govuk_react_constants_esm.Es.SCALE_1),position:"relative",cursor:"pointer","&::before, &::after":{borderRight:"1px solid ".concat(colours.pF),content:'""',height:"1em",right:"0.75em",position:"absolute",top:"50%",width:0},"&::before":{transform:"translate(0, -50%) rotate(45deg)"},"&::after":{transform:"translate(0, -50%) rotate(-45deg)"}}),SelectedChips=function SelectedChips(_ref){var name=_ref.name,selectedOptions=_ref.selectedOptions,onOptionRemove=_ref.onOptionRemove;return react.createElement(ChipList,{id:"".concat(name,"-selected"),"data-test":"typeahead-chip-list"},react.createElement("span",{id:"".concat(name,"-remove"),style:{display:"none"}},"remove"),selectedOptions.map((function(option){return react.createElement(Chip,{key:option.value,"data-test":"typeahead-chip"},react.createElement(ChipButton,{type:"button","aria-describedby":"".concat(name,"-remove"),onClick:function onClick(){onOptionRemove(option)}},option.chipLabel||option.label))})))};const Typeahead_SelectedChips=SelectedChips;SelectedChips.__docgenInfo={description:"",methods:[],displayName:"SelectedChips"};var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),keys_down="ArrowDown",keys_end="End",keys_enter="Enter",keys_escape="Escape",keys_home="Home",keys_left="ArrowLeft",keys_right="ArrowRight",keys_up="ArrowUp",menuActions_close="close",menuActions_closeSelect="closeSelect",menuActions_first="first",menuActions_last="last",menuActions_next="next",menuActions_open="open",menuActions_previous="previous",getFilteredOptions=function getFilteredOptions(_ref){var input=_ref.input,options=_ref.options;return(input?options.filter((function(option){return option.label.toLowerCase().includes(input.toLowerCase())})):options)||[]},valueEqual=function valueEqual(item1,item2){return item1.value==item2.value},getNewSelectedOptions=function getNewSelectedOptions(_ref2){var selectedOptions=_ref2.selectedOptions,option=_ref2.option;return _ref2.isMulti?(0,lodash.xorWith)(selectedOptions,[option],valueEqual):[option]},valueAsArray=function valueAsArray(value){return value?Array.isArray(value)?value:[value]:[]};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 initialState={menuOpen:!1,activeIndex:-1,focusIndex:-1,input:"",selectedOptions:[],options:[],ignoreBlur:!1,isMulti:!0};var state=__webpack_require__("./src/client/components/Typeahead/state.js");function Typeahead_typeof(o){return Typeahead_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},Typeahead_typeof(o)}var _excluded=["id","name","className","label","error","closeMenuOnSelect","isMulti","noOptionsMessage","defaultValue","value","menuOpen","loadOptions","initialOptions","options","input","selectedOptions","placeholder","activeIndex","focusIndex","onInitialise","onBlur","onActiveChange","onInput","onOptionMouseDown","onOptionToggle","onOptionRemove","onOptionsClear","onMenuClose","onMenuOpen","onChange","data-test","OptionContent"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function Typeahead_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 Typeahead_defineProperty(e,r,t){return(r=function Typeahead_toPropertyKey(t){var i=function Typeahead_toPrimitive(t,r){if("object"!=Typeahead_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Typeahead_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Typeahead_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ListboxOption=(0,styled_components_browser_esm.Ay)("div")((function(props){return{display:"flex",padding:props.isMulti?"".concat(govuk_react_constants_esm.Es.SCALE_3," 0 ").concat(govuk_react_constants_esm.Es.SCALE_3," 48px"):govuk_react_constants_esm.Es.SCALE_3,borderBottom:"solid 1px ".concat(colours.Pe),position:"relative",boxSizing:"border-box",minHeight:53,alignItems:"center",cursor:"pointer",backgroundColor:props.active?colours.ft:colours.UE,color:props.active?colours.UE:colours.pF,"&:last-child":{borderBottom:"none"},"::before":{content:props.isMulti?'""':"",position:"absolute",left:10,top:"calc(50% - 14px)",width:26,height:26,backgroundColor:colours.UE,boxSizing:"border-box",border:"solid 2px ".concat(colours.pF),outline:props.focussed?"3px solid ".concat(colours.eM):"none",outlineOffset:0},"::after":{display:props["aria-selected"]?"block":"none",content:props.isMulti?'""':"",position:"absolute",left:19,top:"calc(50% - 3px)",width:5,height:14,borderRight:"3px solid ".concat(colours.pF),borderBottom:"3px solid ".concat(colours.pF),transform:"translate(0, -50%) rotate(45deg)"}}})),NoOptionsMessage=(0,styled_components_browser_esm.Ay)("div")({padding:"".concat(govuk_react_constants_esm.Es.SCALE_3," 0"),boxSizing:"border-box",minHeight:53,textAlign:"center",color:colours.IC}),InputWrapper=(0,styled_components_browser_esm.Ay)("div")({position:"relative","&::after":{borderBottom:"2px solid ".concat(colours.Uv),borderRight:"2px solid ".concat(colours.Uv),content:'""',display:"block",height:12,pointerEvents:"none",position:"absolute",right:16,top:"50%",transform:"translate(0, -65%) rotate(45deg)",width:12}}),AutocompleteInput=(0,styled_components_browser_esm.Ay)("input")((function(_ref){var error=_ref.error;return function Typeahead_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Typeahead_ownKeys(Object(t),!0).forEach((function(r){Typeahead_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Typeahead_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({backgroundColor:colours.UE,boxSizing:"border-box",border:error?"4px solid ".concat(colours.Bk):"2px solid ".concat(colours.Uv),display:"block",fontSize:"1em",padding:"8px 12px 10px",textAlign:"left",width:"100%"},govuk_react_constants_esm.bs)})),TypeaheadOptionContent=function TypeaheadOptionContent(_ref2){var option=_ref2.option,searchString=_ref2.searchString;return react.createElement(Highlighter.A,{optionLabel:option.label,searchStr:searchString})},Menu=(0,styled_components_browser_esm.Ay)("div")((function(_ref3){return{visibility:_ref3.open?"visible":"hidden",backgroundColor:colours.UE,boxSizing:"border-box",border:"1px solid ".concat(colours.Uv),maxHeight:336,overflowY:"scroll",left:0,position:"absolute",top:"100%",width:"100%",zIndex:100}})),Typeahead=function Typeahead(_ref4){var id=_ref4.id,name=_ref4.name,className=_ref4.className,_ref4$label=_ref4.label,label=void 0===_ref4$label?"":_ref4$label,_ref4$error=_ref4.error,error=void 0!==_ref4$error&&_ref4$error,_ref4$closeMenuOnSele=_ref4.closeMenuOnSelect,closeMenuOnSelect=void 0!==_ref4$closeMenuOnSele&&_ref4$closeMenuOnSele,_ref4$isMulti=_ref4.isMulti,isMulti=void 0!==_ref4$isMulti&&_ref4$isMulti,_ref4$noOptionsMessag=_ref4.noOptionsMessage,noOptionsMessage=void 0===_ref4$noOptionsMessag?"No Options":_ref4$noOptionsMessag,defaultValue=_ref4.defaultValue,value=_ref4.value,menuOpen=_ref4.menuOpen,loadOptions=_ref4.loadOptions,_ref4$initialOptions=_ref4.initialOptions,initialOptions=void 0===_ref4$initialOptions?[]:_ref4$initialOptions,_ref4$options=_ref4.options,options=void 0===_ref4$options?[]:_ref4$options,_ref4$input=_ref4.input,input=void 0===_ref4$input?"":_ref4$input,_ref4$selectedOptions=_ref4.selectedOptions,selectedOptions=void 0===_ref4$selectedOptions?[]:_ref4$selectedOptions,_ref4$placeholder=_ref4.placeholder,placeholder=void 0===_ref4$placeholder?"Start typing":_ref4$placeholder,activeIndex=_ref4.activeIndex,focusIndex=_ref4.focusIndex,onInitialise=_ref4.onInitialise,onBlur=_ref4.onBlur,onActiveChange=_ref4.onActiveChange,_onInput=_ref4.onInput,onOptionMouseDown=_ref4.onOptionMouseDown,onOptionToggle=_ref4.onOptionToggle,_onOptionRemove=_ref4.onOptionRemove,onOptionsClear=_ref4.onOptionsClear,onMenuClose=_ref4.onMenuClose,onMenuOpen=_ref4.onMenuOpen,_ref4$onChange=_ref4.onChange,onChange=void 0===_ref4$onChange?function(){}:_ref4$onChange,testId=_ref4["data-test"],_ref4$OptionContent=_ref4.OptionContent,OptionContent=void 0===_ref4$OptionContent?TypeaheadOptionContent:_ref4$OptionContent,inputProps=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded),closeOnSelect=!isMulti||closeMenuOnSelect,initialValue=value||defaultValue;(0,react.useEffect)((function(){onInitialise({isMulti,value:initialValue})}),[JSON.stringify(initialValue),isMulti]);var inputRef=react.useRef(null),listRef=react.useRef(null),ignoreFilter=!isMulti&&selectedOptions.map((function(_ref5){return _ref5.label})).includes(input),filteredOptions=getFilteredOptions({options,input:!ignoreFilter&&input}),activeId=menuOpen&&filteredOptions[activeIndex]?"".concat(name,"-").concat(filteredOptions[activeIndex].value):"",scrollItemAtIndexIntoView=function scrollItemAtIndexIntoView(index){var _listRef$current,item=null===(_listRef$current=listRef.current)||void 0===_listRef$current?void 0:_listRef$current.children[index];item&&item.scrollIntoView({block:"nearest"})},menuActive=!loadOptions||!!input;return react.createElement("div",{id:"".concat(name,"-wrapper"),"data-test":testId,className},label&&react.createElement(govuk_react_label_esm.A,{id:"".concat(name,"-label"),"data-test":"typeahead-label",htmlFor:name},label),isMulti&&Boolean(selectedOptions.length)&&react.createElement(Typeahead_SelectedChips,{name,selectedOptions,onOptionRemove:function onOptionRemove(option){_onOptionRemove(option),onChange(selectedOptions.filter((function(_ref6){return _ref6.value!==option.value})))}}),react.createElement(InputWrapper,null,react.createElement(AutocompleteInput,_extends({},inputProps,{id:name,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",inputMode:"search","aria-activedescendant":activeId,"aria-autocomplete":"list","aria-owns":"".concat(name,"-listbox"),"aria-controls":"".concat(name,"-listbox"),"aria-expanded":menuOpen?"true":"false","aria-haspopup":"listbox","aria-describedby":"autocomplete-".concat(name,"-assistiveHint"),role:"combobox",type:"text",placeholder,value:input,onBlur,onClick:function onClick(){onMenuOpen(),scrollItemAtIndexIntoView(activeIndex)},onInput:function onInput(e){_onInput(e),isMulti||e.target.value||(onOptionsClear(),onChange([]))},onKeyDown:function onInputKeyDown(event){var max=filteredOptions.length-1,action=function getActionFromKey(key,menuOpen){return menuOpen||key!==keys_down?key===keys_down||key===keys_right?menuActions_next:key===keys_up||key===keys_left?menuActions_previous:key===keys_home?menuActions_first:key===keys_end?menuActions_last:key===keys_escape?menuActions_close:key===keys_enter?menuActions_closeSelect:void 0:menuActions_open}(event.code,menuOpen);switch(action){case menuActions_next:case menuActions_last:case menuActions_first:case menuActions_previous:event.preventDefault();var newActiveIndex=function getUpdatedIndex(current,max,action){switch(action){case menuActions_first:return 0;case menuActions_last:return max;case menuActions_previous:return Math.max(0,current-1);case menuActions_next:return Math.min(max,current+1);default:return current}}(activeIndex,max,action);return onActiveChange(newActiveIndex),void scrollItemAtIndexIntoView(newActiveIndex);case menuActions_closeSelect:return event.preventDefault(),filteredOptions[activeIndex]&&(onOptionToggle(filteredOptions[activeIndex]),onChange(getNewSelectedOptions({selectedOptions,isMulti,option:filteredOptions[activeIndex]}))),void(closeOnSelect&&onMenuClose());case menuActions_close:return event.preventDefault(),void onMenuClose();case menuActions_open:return onMenuOpen(),void scrollItemAtIndexIntoView(activeIndex)}},error,ref:inputRef,"data-test":"typeahead-input"})),react.createElement(Menu,{id:"".concat(name,"-listbox"),open:menuOpen&&menuActive,role:"listbox","aria-labelledby":"".concat(name,"-label"),"aria-multiselectable":"true","data-test":"typeahead-menu"},menuOpen&&menuActive&&react.createElement(Task.A.Status,{name:state.S,id,progressMessage:"Loading options",startOnRender:{payload:{options:initialOptions,loadOptions,autocomplete:input},onSuccessDispatch:actions.STT}},(function(){return react.createElement("div",{ref:listRef},filteredOptions.map((function(option,index){return react.createElement(ListboxOption,{id:"".concat(name,"-").concat(option.value),key:option.value,active:index===activeIndex,focussed:index===focusIndex,isMulti,role:"option","aria-selected":selectedOptions.map((function(_ref7){return _ref7.value})).indexOf(option.value)>-1,"aria-setsize":filteredOptions.length,"aria-posinset":index,onClick:function onClick(){inputRef.current&&inputRef.current.select(),onOptionToggle(option),onChange(getNewSelectedOptions({selectedOptions,isMulti,option})),closeOnSelect&&onMenuClose()},onMouseMove:function onMouseMove(){onActiveChange(index)},onMouseDown:function onMouseDown(){onOptionMouseDown(index)},"data-test":"typeahead-menu-option"},react.createElement("span",null,react.createElement(OptionContent,{option,searchString:input})))})),!filteredOptions.length&&react.createElement(NoOptionsMessage,{"data-test":"typeahead-no-options"},noOptionsMessage))})))),react.createElement(Typeahead_AssistiveText,{name}))},keyPairPropType=prop_types_default().shape({label:prop_types_default().string,value:prop_types_default().string});Typeahead.propTypes={id:prop_types_default().string.isRequired,name:prop_types_default().string,className:prop_types_default().string,label:prop_types_default().string,error:prop_types_default().string,closeMenuOnSelect:prop_types_default().bool,isMulti:prop_types_default().bool,noOptionsMessage:prop_types_default().string,defaultValue:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),value:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),menuOpen:prop_types_default().bool,loadOptions:prop_types_default().func,onChange:prop_types_default().func,options:prop_types_default().arrayOf(keyPairPropType),input:prop_types_default().string,selectedOptions:prop_types_default().arrayOf(keyPairPropType),activeIndex:prop_types_default().number,focusIndex:prop_types_default().number,onInitialise:prop_types_default().func,onBlur:prop_types_default().func,onActiveChange:prop_types_default().func,onInput:prop_types_default().func,onOptionMouseDown:prop_types_default().func,onOptionToggle:prop_types_default().func,onOptionRemove:prop_types_default().func,onOptionsClear:prop_types_default().func,onMenuClose:prop_types_default().func,onMenuOpen:prop_types_default().func};const Typeahead_Typeahead=(0,multiinstance.Ay)({name:"Typeahead",actionPattern:"TYPEAHEAD__",dispatchToProps:function dispatchToProps(dispatch){return{onInitialise:function onInitialise(_ref8){var isMulti=_ref8.isMulti,value=_ref8.value;dispatch({type:actions.b2l,isMulti,value})},onBlur:function onBlur(){dispatch({type:actions.TdV})},onActiveChange:function onActiveChange(activeIndex){dispatch({type:actions.tgm,activeIndex})},onInput:function onInput(event){dispatch({type:actions.GqW,input:event.target.value})},onMenuClose:function onMenuClose(){dispatch({type:actions.WCI})},onMenuOpen:function onMenuOpen(){dispatch({type:actions.aQO})},onOptionMouseDown:function onOptionMouseDown(focusIndex){dispatch({type:actions.MQe,focusIndex})},onOptionToggle:function onOptionToggle(option){dispatch({type:actions.y3g,option})},onOptionRemove:function onOptionRemove(option){dispatch({type:actions.WnY,option})},onOptionsClear:function onOptionsClear(){dispatch({type:actions.aud})}}},component:Typeahead,reducer:function(){var _state$selectedOption,_valueAsArray$,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,value=_ref.value,input=_ref.input,isMulti=_ref.isMulti,option=_ref.option,activeIndex=_ref.activeIndex,focusIndex=_ref.focusIndex,result=_ref.result,selectedValue=!state.isMulti&&(null===(_state$selectedOption=state.selectedOptions[0])||void 0===_state$selectedOption?void 0:_state$selectedOption.label),filteredOptions=getFilteredOptions({options:state.options,input:state.input});switch(type){case actions.b2l:return _objectSpread(_objectSpread({},state),{},{isMulti,selectedOptions:valueAsArray(value),input:isMulti?state.input:(null===(_valueAsArray$=valueAsArray(value)[0])||void 0===_valueAsArray$?void 0:_valueAsArray$.label)||""});case actions.STT:var newOptions=getFilteredOptions({options:result,input:state.input});return _objectSpread(_objectSpread({},state),{},{options:result||[],activeIndex:newOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newOptions.indexOf(filteredOptions[state.focusIndex])});case actions.TdV:return _objectSpread(_objectSpread({},state),{},{menuOpen:!!state.ignoreBlur&&state.menuOpen,focusIndex:-1,input:state.ignoreBlur?state.input:state.input&&selectedValue||"",ignoreBlur:!1});case actions.GqW:var newInputOptions=getFilteredOptions({options:state.options,input});return _objectSpread(_objectSpread({},state),{},{input,activeIndex:newInputOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newInputOptions.indexOf(filteredOptions[state.focusIndex]),menuOpen:!0});case actions.tgm:return _objectSpread(_objectSpread({},state),{},{activeIndex});case actions.WCI:return _objectSpread(_objectSpread({},state),{},{input:state.isMulti?"":state.input,menuOpen:!1});case actions.aQO:var selectedIndex=state.options.map((function(_ref2){return _ref2.label})).indexOf(selectedValue);return _objectSpread(_objectSpread({},state),{},{menuOpen:!0,activeIndex:selectedIndex});case actions.MQe:return _objectSpread(_objectSpread({},state),{},{ignoreBlur:!0,focusIndex});case actions.y3g:var newInput=state.isMulti?state.input:option.label,toggledIndex=getFilteredOptions({options:state.options,input:state.isMulti&&newInput}).indexOf(option);return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.isMulti?(0,lodash.xorWith)(state.selectedOptions,[option],valueEqual):[option],input:newInput,activeIndex:toggledIndex,focusIndex:toggledIndex});case actions.WnY:return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.selectedOptions.filter((function(_ref3){return _ref3.value!==option.value}))});case actions.aud:return _objectSpread(_objectSpread({},state),{},{selectedOptions:[]});default:return state}}})},"./src/client/components/Typeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_Typeahead__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var Typeahead=function Typeahead(_ref){var id=_ref.id,name=_ref.name,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Typeahead__WEBPACK_IMPORTED_MODULE_6__.A,_extends({id:id||"".concat(name,"-typeahead"),name},props))};const __WEBPACK_DEFAULT_EXPORT__=Typeahead;Typeahead.__docgenInfo={description:"",methods:[],displayName:"Typeahead"}},"./src/client/components/Typeahead/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>TASK_GET_TYPEAHEAD_OPTIONS});var TASK_GET_TYPEAHEAD_OPTIONS="TASK_GET_TYPEAHEAD_OPTIONS"},"./src/client/components/WatchTextContent.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_excluded=["onTextContentChange"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var WatchTextContent=function WatchTextContent(_ref){var onTextContentChange=_ref.onTextContentChange,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),ref=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(),previousTextContent=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)((function(){ref.current.remove(),onTextContentChange(ref.current.textContent),previousTextContent.current=ref.current.textContent;var observer=new MutationObserver((function(){ref.current.textContent!==previousTextContent.current&&(onTextContentChange(ref.current.textContent),previousTextContent.current=ref.current.textContent)}));return ref.current&&observer.observe(ref.current,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),function(){observer.disconnect()}}),[]),react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",{hidden:!0},react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",_extends({ref},props)))};const __WEBPACK_DEFAULT_EXPORT__=WatchTextContent;WatchTextContent.__docgenInfo={description:"@function WatchTextContent\n@description Calls {onTextContentChange} anytime the `textContent`\nof {children} changes. The {children} will be rendered hidden.\n@param {Object} props\n@param {React.Children} props.children - Vdom to whose changes the component subscribes to.\nIt will be rendered in a hidden div.\n@param {(textContent: string) => void} props.onTextContentChange - A callback that will\nbe called anytime the `textContent` of this component changes with the value\nof the current `textContent`.",methods:[],displayName:"WatchTextContent"}},"./src/client/components/Wrap.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.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var Wrap=function Wrap(_ref){var With=_ref.with,when=_ref.when,children=_ref.children,props=_ref.props;return when?react__WEBPACK_IMPORTED_MODULE_1__.createElement(With,_extends({},props,{children})):"function"==typeof children?children():children};const __WEBPACK_DEFAULT_EXPORT__=Wrap;Wrap.__docgenInfo={description:"@function Wrap\n@description Wraps children in a component specified in the {with} prop\nif the {when} condition is met.\n@param {Object} props\n@param {(props: Object) => React.ReactNode} props.with - The wrapping component.\n@param {any} props.when - Wrapping takes place only if this prop is truthy,\notherwise the children will be rendered unwrapped\n@param {Object} props.props - Will be passed as the props to the wrapping\ncomponent.\n@param {React.ReactNode} props.props - The children to be wrapped\n@returns {React.ReactNode}\n@example\n<Wrap with=\"span\" when={true} props={{style: {color: 'red'}}}>\n  <h1>I'm gonna be wrapped</h1>\n</Wrap>",methods:[],displayName:"Wrap"}},"./src/client/components/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ex:()=>Badge.A,vx:()=>ButtonLink.A,vu:()=>Chip.A,SG:()=>CollectionHeader.A,ID:()=>CollectionHeaderRow.A,G1:()=>CollectionItem.Ay,xG:()=>CollectionSort.A,Nh:()=>components_ContactLocalHeader,fx:()=>elements_FieldAddress,y7:()=>FieldCheckboxes.A,TZ:()=>FieldInput.A,$o:()=>FieldRadios.A,lW:()=>elements_FieldTextarea,wk:()=>components_FilterReset,IY:()=>FormActions.A,Hb:()=>Layout_FormLayout,IC:()=>components_InvestmentLocalHeader,Jw:()=>LocalHeader.A,Vu:()=>LocalNav,hs:()=>LocalNavLink,gZ:()=>Main.A,bv:()=>NewWindowLink.A,dK:()=>Pagination.A,vv:()=>ReadMore.A,Jd:()=>components_RoutedDownloadDataHeader,Fh:()=>components_RoutedFilterChips,bD:()=>SummaryTable.A,Kf:()=>Timeline.A});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),lodash=(__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.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/lodash/lodash.js")),lodash_default=__webpack_require__.n(lodash),date=__webpack_require__("./src/client/utils/date.js"),transformFieldName=function transformFieldName(fieldName){return(0,lodash.capitalize)((0,lodash.lowerCase)(fieldName))},unwrapFromArray=function unwrapFromArray(change){return Array.isArray(change)?change.length>1?change:change[0]||null:change},getUpdatedBy=function getUpdatedBy(timestamp,user){var formattedTime=(0,date.formatMediumDateTime)(timestamp),changedBy=user?(0,lodash.isEmpty)(null==user?void 0:user.name)?null==user?void 0:user.email:null==user?void 0:user.name:"automaticUpdate";return"automaticUpdate"===changedBy?"Automatically updated on ".concat(formattedTime):"Updated on ".concat(formattedTime," by ").concat(changedBy)},getBadgeText=function getBadgeText(length){return 1==length?"1 change":length+" changes"},transformAuditLogItem=function transformAuditLogItem(logItem,valueTransformer,fieldMapper,excludedFields,auditType){var changesSaved=!!Object.keys(logItem.changes).length,metadata=[],transformedChanges=function transformChanges(changes,fieldMapper,excludedFields){return Object.keys(changes).filter((function(fieldName){return!excludedFields.includes(fieldName)})).map((function(fieldName){return{fieldName:fieldMapper(fieldName),oldValue:unwrapFromArray(changes[fieldName][0]),newValue:unwrapFromArray(changes[fieldName][1])}}))}(logItem.changes,fieldMapper,excludedFields);changesSaved?transformedChanges.map((function(change,index){return metadata.push({key:"".concat(logItem.id,"-").concat(index,"-field-name"),value:react.createElement("strong",null,change.fieldName)})&&metadata.push({key:"".concat(logItem.id,"-").concat(index,"-old-value"),label:"Information before change: ",value:valueTransformer(change.oldValue,change.fieldName)})&&metadata.push({label:"Information after change: ",key:"".concat(logItem.id,"-").concat(index,"-new-value"),value:valueTransformer(change.newValue,change.fieldName)})})):metadata.push({value:"No changes were made to ".concat(auditType," in this update")});var badges=[{text:changesSaved?getBadgeText(transformedChanges.length):""}];return{id:logItem.id,metadata,badges:badges.filter((function(item){return item.text})),headingText:getUpdatedBy(logItem.timestamp,logItem.user)}},AuditHistory=function AuditHistory(_ref){var _ref$resource=_ref.resource,Rsrc=void 0===_ref$resource?Resource.Ay:_ref$resource,id=_ref.id,valueTransformer=_ref.valueTransformer,_ref$fieldMapper=_ref.fieldMapper,fieldMapper=void 0===_ref$fieldMapper?transformFieldName:_ref$fieldMapper,_ref$excludedFields=_ref.excludedFields,excludedFields=void 0===_ref$excludedFields?[]:_ref$excludedFields,auditType=_ref.auditType;return react.createElement(Rsrc.Paginated,{id},(function(items){return react.createElement("ul",null,function transformAuditResponseToCollection(){var valueTransformer=arguments.length>1?arguments[1]:void 0,fieldMapper=arguments.length>2?arguments[2]:void 0,excludedFields=arguments.length>3?arguments[3]:void 0,auditType=arguments.length>4?arguments[4]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(result){return transformAuditLogItem(result,valueTransformer,fieldMapper,excludedFields,auditType)}))}(items,valueTransformer,fieldMapper,excludedFields,auditType).map((function(item){return react.createElement(CollectionItem.Ay,{key:item.id,headingText:item.headingText,metadata:item.metadata,badges:item.badges})})))}))};AuditHistory.propTypes={resource:prop_types_default().func.isRequired,id:prop_types_default().string.isRequired,valueTransformer:prop_types_default().func.isRequired,fieldMapper:prop_types_default().func,excludedFields:prop_types_default().arrayOf(prop_types_default().string),auditType:prop_types_default().string.isRequired};AuditHistory.__docgenInfo={description:"A component that makes a call to a audit log endpoint and displays the results in the familiar CollectionList style.",methods:[],displayName:"AuditHistory",props:{resource:{defaultValue:{value:"multiInstance({\n  name: 'Resource',\n  actionPattern: 'RESOURCE',\n  reducer: (state, { id, result }) => ({\n    ...state,\n    [id]: result,\n  }),\n  idProp: 'name',\n  componentStateToProps: (state, _, { id }) => ({ result: state[id] }),\n  component: ({\n    name,\n    id,\n    taskStatusProps,\n    children,\n    result,\n    payload,\n    transformer = (x) => [x],\n    progressBox,\n    noRetry,\n  }) =>\n    progressBox ? (\n      <LoadingBox\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n          ignoreIfInProgress: true,\n        }}\n      >\n        {result ? children(...transformer(result)) : children()}\n      </LoadingBox>\n    ) : (\n      <Task.Status\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n        }}\n      >\n        {() => result !== undefined && children(...transformer(result))}\n      </Task.Status>\n    ),\n})",computed:!0},description:"The resource to use for the audit log call.\nThis **must** be a collection resource as these are the only ones that support pagination.",type:{name:"func"},required:!1},fieldMapper:{defaultValue:{value:"(fieldName) =>\ncapitalize(lowerCase(fieldName))",computed:!1},description:"A function that makes field names render correctly. If no function is passed the field names will\nrender as they are named in the API, which isn't ideal for any field names with acronyms.",type:{name:"func"},required:!1},excludedFields:{defaultValue:{value:"[]",computed:!1},description:"An array of fields that can be ignored or shouldn't be displayed in the audit log.",type:{name:"arrayOf",value:{name:"string"}},required:!1},id:{description:"The endpoint containing a dynamic ID for the resource to use.",type:{name:"string"},required:!0},valueTransformer:{description:"The transformer for the values. These will be different for each type of record.",type:{name:"func"},required:!0},auditType:{description:"The type of record. This is displayed as part of the 'no changes saved' text.",type:{name:"string"},required:!0}}};var Badge=__webpack_require__("./src/client/components/Badge/index.jsx"),ButtonLink=__webpack_require__("./src/client/components/ButtonLink/index.jsx"),CollectionItem=(__webpack_require__("./src/client/components/CollectionList/index.jsx"),__webpack_require__("./src/client/components/CollectionList/CollectionItem.jsx")),CollectionHeader=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx"),CollectionSort=__webpack_require__("./src/client/components/CollectionList/CollectionSort.jsx"),govuk_react_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),FilterHeader=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H2)({marginTop:0,fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.iU.MEDIUM,marginBottom:0}),CollectionFilters=function CollectionFilters(_ref){var children=_ref.children,taskProps=_ref.taskProps;return react.createElement(govuk_react_esm.bn,{setWidth:"one-third"},react.createElement(Task.A.Status,taskProps,(function(){return react.createElement("nav",{"aria-label":"Filters","data-test":"collection-filters"},react.createElement(FilterHeader,null,"Filters"),children)})))};CollectionFilters.__docgenInfo={description:"",methods:[],displayName:"CollectionFilters"};var CollectionHeaderRow=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),govuk_react_hint_text_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.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.regexp.constructor.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/es.string.match.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/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js")),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),actions=__webpack_require__("./src/client/actions.js"),SpacedSectionBreak=__webpack_require__("./src/client/components/SpacedSectionBreak.js"),ContentWithHeading=__webpack_require__("./src/client/components/ContentWithHeading.jsx"),Filters=__webpack_require__("./src/client/components/CompanyLists/Filters.jsx"),pluralize=(__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/pluralize/pluralize.js")),pluralize_default=__webpack_require__.n(pluralize),Select=__webpack_require__("./src/client/components/Select/index.jsx"),CompanyLists_state=__webpack_require__("./src/client/components/CompanyLists/state.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 _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<a;e++)n[e]=r[e];return n}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 StyledRoot=styled_components_browser_esm.Ay.div({display:"flex",alignItems:"baseline",flexWrap:"wrap",marginBottom:govuk_react_constants_esm.Es.SCALE_2}),StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({flexGrow:1}),StyledSelect=(0,styled_components_browser_esm.Ay)(Select.A)((function(_ref){var theme=_ref.theme;return _defineProperty({width:"100%"},(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET,{width:"auto",marginLeft:govuk_react_constants_esm.Es.SCALE_2})})),Header=(0,react_redux.connect)(CompanyLists_state.o,(function(dispatch){return{onChange:function onChange(id){return dispatch({type:actions.UJl,id})}}}))((function(_ref3){var selectedId=_ref3.selectedId,lists=_ref3.lists,_onChange=_ref3.onChange,listLength=Object.keys(lists).length;return react.createElement(StyledRoot,null,react.createElement(StyledHeading,null,pluralize_default()("My companies list",listLength,!0)),listLength>1&&react.createElement(StyledSelect,{label:"View list",htmlFor:"view-list",input:{onChange:function onChange(e){return _onChange(e.target.value)},initialValue:selectedId,id:"view-list"}},Object.entries(lists).map((function(_ref4){var _ref5=_slicedToArray(_ref4,2),id=_ref5[0],name=_ref5[1].name;return react.createElement("option",{key:id,value:id,"aria-label":name},name)}))))}));const CompanyLists_Header=Header;Header.__docgenInfo={description:"",methods:[],displayName:"Header"};var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),FormActions=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),ListHeader_StyledRoot=styled_components_browser_esm.Ay.div({display:"flex",alignItems:"baseline",justifyContent:"space-between"}),ListHeader_StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({flexGrow:1,marginBottom:0}),StyledFormActions=(0,styled_components_browser_esm.Ay)(FormActions.A)({textAlign:"right"}),ListHeader=function ListHeader(_ref){var id=_ref.id,name=_ref.name;return react.createElement(ListHeader_StyledRoot,null,react.createElement(ListHeader_StyledHeading,null,name),react.createElement(StyledFormActions,null,react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companyLists.rename(id)},"Edit list name"),react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companyLists.delete(id)},"Delete list")))};const CompanyLists_ListHeader=ListHeader;ListHeader.__docgenInfo={description:"",methods:[],displayName:"ListHeader"};var govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_table_esm=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js"),govuk_react_visually_hidden_esm=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),index_modern=__webpack_require__("./node_modules/react-lines-ellipsis/lib/index.modern.mjs"),colours=__webpack_require__("./src/client/utils/colours.js");function Table_typeof(o){return Table_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},Table_typeof(o)}function Table_defineProperty(e,r,t){return(r=function Table_toPropertyKey(t){var i=function Table_toPrimitive(t,r){if("object"!=Table_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Table_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Table_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var format=__webpack_require__("./src/client/utils/date.js").format,getMediaQuery=function getMediaQuery(theme){return(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET},StyledButtonLink=styled_components_browser_esm.Ay.a({marginBottom:0,width:"100%"}),StyledTableRow=styled_components_browser_esm.Ay.tr((function(_ref){var theme=_ref.theme;return Table_defineProperty({borderBottom:"1px solid ".concat(colours.GU)},getMediaQuery(theme),{borderBottom:"none"})})),StyledCell=styled_components_browser_esm.Ay.td({padding:0,borderBottom:"none"}),StyledHeaderCell=styled_components_browser_esm.Ay.th({padding:0,borderBottom:"none"}),StyledTableCell=(0,styled_components_browser_esm.Ay)(StyledCell)((function(_ref3){var theme=_ref3.theme;return Table_defineProperty({display:"inline-block",width:"100%"},getMediaQuery(theme),{display:"table-cell",width:"auto",padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_4," ").concat(govuk_react_constants_esm.Es.SCALE_2," 0"),borderBottom:"1px solid ".concat(colours.GU)})})),StyledTableHeaderCell=(0,styled_components_browser_esm.Ay)(StyledHeaderCell)((function(_ref5){var theme=_ref5.theme;return Table_defineProperty({display:"none",fontWeight:govuk_react_constants_esm.sO.bold},getMediaQuery(theme),{display:"table-cell",borderBottom:"1px solid ".concat(colours.GU)})})),TitleCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref7){var theme=_ref7.theme;return Table_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_3},getMediaQuery(theme),{paddingTop:govuk_react_constants_esm.Es.SCALE_2})})),ColumnLabelCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref9){var theme=_ref9.theme;return Table_defineProperty({position:"relative",marginTop:"".concat(govuk_react_constants_esm.Es.SCALE_5),"::before":{content:"'Last interaction'",position:"absolute",top:"-".concat(govuk_react_constants_esm.Es.SCALE_4),fontSize:"smaller"}},getMediaQuery(theme),{marginTop:0,"::before":{content:"none"}})})),ActionCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref11){var theme=_ref11.theme;return Table_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_2,paddingBottom:govuk_react_constants_esm.Es.SCALE_4},getMediaQuery(theme),{paddingRight:0,paddingBottom:govuk_react_constants_esm.Es.SCALE_2})})),StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_link_esm.A)({":focus":{color:colours.yV,":active":{color:colours.Df},":hover":{color:colours.FY},":visited":{color:colours.Nu}}}),StyledLinesEllipsis=(0,styled_components_browser_esm.Ay)(index_modern.A)({display:"inline-block",background:colours.Vd,textDecoration:"underline"}),Advisers=function Advisers(_ref13){var ditParticipants=_ref13.ditParticipants;return 0===ditParticipants.length?"Unknown adviser - Unknown team":ditParticipants.length>1?"Multiple advisers":ditParticipants.map((function(adviser,index){return react.createElement("div",{key:index},"".concat(adviser.name||"Unknown adviser"," - ").concat(adviser.team||"Unknown team"))}))},CompaniesTable=function CompaniesTable(_ref14){var companies=_ref14.companies;return react.createElement(govuk_react_table_esm.A,{head:react.createElement(govuk_react_table_esm.A.Row,null,react.createElement(StyledTableHeaderCell,{width:"auto"},"Company name"),react.createElement(StyledTableHeaderCell,{width:"15%"},"Last interaction"),react.createElement(StyledTableHeaderCell,{width:"25%"},"Subject"),react.createElement(StyledTableHeaderCell,{width:"20%"},"Added by"),react.createElement(StyledTableHeaderCell,{width:"151px"},react.createElement(govuk_react_visually_hidden_esm.A,null,"Action")))},companies.map((function(_ref15){var id=_ref15.id,name=_ref15.name,date=_ref15.date,subject=_ref15.subject,interactionId=_ref15.interactionId,ditParticipants=_ref15.ditParticipants;return react.createElement(StyledTableRow,{key:id},react.createElement(TitleCell,null,react.createElement(StyledLink,{href:urls_default().companies.detail(id)},react.createElement(StyledLinesEllipsis,{text:name,maxLine:"2",ellipsis:"...",trimRight:!0,basedOn:"words"}))),react.createElement(ColumnLabelCell,null,date?format(date):"-"),react.createElement(StyledTableCell,null,interactionId?react.createElement(StyledLink,{href:urls_default().interactions.detail(interactionId)},react.createElement(StyledLinesEllipsis,{text:subject,maxLine:"2",ellipsis:"...",trimRight:!0,basedOn:"words"})):"No interactions have been recorded"),react.createElement(StyledTableCell,null,react.createElement(Advisers,{ditParticipants})),react.createElement(ActionCell,null,react.createElement(SecondaryButton.A,{as:StyledButtonLink,href:urls_default().companies.interactions.create(id),"aria-label":"Add interaction with ".concat(name)},"Add interaction")))})))};const Table=CompaniesTable;function CompanyLists_typeof(o){return CompanyLists_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_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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){CompanyLists_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLists_defineProperty(e,r,t){return(r=function CompanyLists_toPropertyKey(t){var i=function CompanyLists_toPrimitive(t,r){if("object"!=CompanyLists_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLists_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLists_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return CompanyLists_arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function CompanyLists_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return CompanyLists_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)?CompanyLists_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 CompanyLists_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}CompaniesTable.__docgenInfo={description:"",methods:[],displayName:"CompaniesTable"};var applyFilters=function applyFilters(companies,query,orderBy){return lodash.orderBy.apply(void 0,[companies.filter((function(c){return c.name.match(new RegExp(query,"i"))}))].concat(_toConsumableArray(CompanyLists_defineProperty(CompanyLists_defineProperty(CompanyLists_defineProperty({},Filters.Ot,[function(c){return c.date||""},"desc"]),Filters.MR,[function(c){return c.date||""},"asc"]),Filters.X8,[function(c){return c.name},"asc"])[orderBy])))},CompanyList=(0,react_redux.connect)((function(state){var _state2props=(0,CompanyLists_state.o)(state),lists=_state2props.lists,selectedId=_state2props.selectedId,orderBy=_state2props.orderBy,query=_state2props.query;return _objectSpread(_objectSpread({},lists[selectedId]),{},{id:selectedId,orderBy,query})}))((function(_ref){var id=_ref.id,name=_ref.name,companies=_ref.companies,query=_ref.query,orderBy=_ref.orderBy;return react.createElement("section",null,react.createElement(CompanyLists_Header,null),react.createElement(SpacedSectionBreak.A,null),react.createElement(CompanyLists_ListHeader,{id,name}),react.createElement(Task.A.Status,{name:"Company list",id,progressMessage:"loading companies",startOnRender:{payload:id,onSuccessDispatch:actions.Hfi}},(function(){return companies&&companies.length?react.createElement(react.Fragment,null,companies.length>1&&react.createElement(Filters.Ay,null),react.createElement(Table,{companies:applyFilters(companies,query,orderBy)})):react.createElement(govuk_react_hint_text_esm.A,null,"You have not added any companies to your list.",react.createElement("br",null),"You can add companies to this list from a company page, and only you can see this list.")})))})),EmptyState=function EmptyState(){return react.createElement(ContentWithHeading.A,{heading:"My companies lists"},react.createElement(govuk_react_hint_text_esm.A,null,"You have not yet created any lists with companies.",react.createElement("br",null),"You can add companies to lists from a company page, and only you can see these lists."))};const CompanyLists=(0,react_redux.connect)(CompanyLists_state.o)((function(_ref2){var lists=_ref2.lists;return lists?Object.keys(lists).length?react.createElement(CompanyList,null):react.createElement(EmptyState,null):react.createElement(Task.A.Status,{name:"Company lists",id:"dashboard",progressMessage:"Loading my companies lists",startOnRender:{onSuccessDispatch:actions.Twh}})}));__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var _templateObject,govuk_react_main_esm=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),govuk_react_grid_col_esm=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),govuk_react_grid_row_esm=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_details_esm=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),LocalHeaderHeading=__webpack_require__("./src/client/components/LocalHeader/LocalHeaderHeading.jsx"),state=__webpack_require__("./src/client/components/CompanyLocalHeader/state.js");var StyledCompanyReferButton=(0,styled_components_browser_esm.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: 4px 8px 4px 8px;\n  border: none;\n  vertical-align: middle;\n  cursor: pointer;\n  margin-right: 10px;\n  font-size: ",";\n  span {\n    pointer-events: none;\n    display: inline-block;\n  }\n  background-color: ",";\n  border-bottom: 3px solid ",";\n"])),govuk_react_constants_esm.SG.SIZE_14,colours.WS,colours.ej),LocalHeaderCompanyRefer=function LocalHeaderCompanyRefer(_ref){var companyId=_ref.companyId;return react.createElement(react.Fragment,null,react.createElement(StyledCompanyReferButton,{"data-test":"refer-company-button",onClick:function handleClickRefer(){window.location.href=urls_default().companies.referrals.send(companyId)}},react.createElement("span",null,"Refer this company")))};const CompanyLocalHeader_LocalHeaderCompanyRefer=LocalHeaderCompanyRefer;var LocalHeaderCompanyLists_templateObject,_templateObject2,_templateObject3;function LocalHeaderCompanyLists_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}LocalHeaderCompanyRefer.__docgenInfo={description:"",methods:[],displayName:"LocalHeaderCompanyRefer"};var StyledCompanyListButton=(0,styled_components_browser_esm.Ay)("button")(LocalHeaderCompanyLists_templateObject||(LocalHeaderCompanyLists_templateObject=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  display: inline-table;\n  padding: 4px 8px 4px 8px;\n  border: none;\n  vertical-align: middle;\n  cursor: pointer;\n  margin-right: 10px;\n  font-size: ",";\n  span {\n    pointer-events: none;\n    display: inline-block;\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_14,govuk_react_constants_esm.SG.SIZE_16),StyledCompanyListItemButton=(0,styled_components_browser_esm.Ay)(StyledCompanyListButton)(_templateObject2||(_templateObject2=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  background-color: ",";\n  color: ",";\n  border-bottom: 3px solid ",";\n  font-weight: ",";\n"])),colours.sB,colours._G,colours._G,govuk_react_constants_esm.sO.bold),StyledAddButton=(0,styled_components_browser_esm.Ay)(StyledCompanyListButton)(_templateObject3||(_templateObject3=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  background-color: ",";\n  border-bottom: 3px solid ",";\n"])),colours.WS,colours.ej),LocalHeaderCompanyLists=function LocalHeaderCompanyLists(_ref){var results=_ref.results,companyId=_ref.companyId,handleClickAddRemove=function handleClickAddRemove(){window.location.href="".concat(urls_default().companies.lists.addRemove(companyId),"?returnUrl=").concat(window.location.pathname)};return react.createElement(Task.A.Status,{name:state.wD,id:state.ID,progressMessage:"Loading my lists",startOnRender:{payload:{id:companyId},onSuccessDispatch:actions.PDO}},(function(){return results&&react.createElement(react.Fragment,null,Object.keys(results).map((function(list){return react.createElement(StyledCompanyListItemButton,{key:list,"data-test":"list-item-".concat((0,lodash.kebabCase)(results[list].name),"-button"),onClick:handleClickAddRemove},results[list].name," ",react.createElement("span",null,"x"))})),react.createElement(StyledAddButton,{"data-test":"add-to-list-button",onClick:handleClickAddRemove},react.createElement("span",null,"+")," Add to list"),react.createElement(CompanyLocalHeader_LocalHeaderCompanyRefer,{companyId}))}))};const CompanyLocalHeader_LocalHeaderCompanyLists=(0,react_redux.connect)(state.oK)(LocalHeaderCompanyLists);LocalHeaderCompanyLists.__docgenInfo={description:"",methods:[],displayName:"LocalHeaderCompanyLists"};var utils_templateObject,utils_templateObject2,StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),addresses=__webpack_require__("./src/client/utils/addresses.js"),ArchivePanel=__webpack_require__("./src/client/components/ArchivePanel/index.jsx");__webpack_require__("./src/client/modules/Companies/CollectionList/state.js");function utils_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var CollectionListPlaceholder_templateObject,CollectionListPlaceholder_templateObject2,CollectionListPlaceholder_templateObject3,shimmer=(0,styled_components_browser_esm.i7)(utils_templateObject||(utils_templateObject=utils_taggedTemplateLiteral(["\n  0% {\n    background-position: -500px 0;\n  }\n  100% {\n    background-position: 500px 0;\n  }\n"]))),animation=(0,styled_components_browser_esm.AH)(utils_templateObject2||(utils_templateObject2=utils_taggedTemplateLiteral(["\n  animation-duration: 1.5s;\n  animation-fill-mode: forwards;\n  animation-iteration-count: infinite;\n  animation-timing-function: linear;\n  animation-name: ",";\n  background: linear-gradient(to right, #eee 8%, #ddd 18%, #eee 33%);\n  background-size: 1000px 104px;\n"])),shimmer);function CollectionListPlaceholder_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(0,styled_components_browser_esm.Ay)("ul")(CollectionListPlaceholder_templateObject||(CollectionListPlaceholder_templateObject=CollectionListPlaceholder_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),(0,styled_components_browser_esm.Ay)("li")(CollectionListPlaceholder_templateObject2||(CollectionListPlaceholder_templateObject2=CollectionListPlaceholder_taggedTemplateLiteral(["\n  border-top: 1px solid ",";\n  ",";\n"])),colours.P1,(function(_ref){var marginTop=_ref.marginTop;return marginTop&&"margin-top: ".concat(marginTop,"px;")})),(0,styled_components_browser_esm.Ay)("div")(CollectionListPlaceholder_templateObject3||(CollectionListPlaceholder_templateObject3=CollectionListPlaceholder_taggedTemplateLiteral(["\n  ",";\n  ",";\n  ",";\n  ",";\n"])),animation,(function(_ref2){var height=_ref2.height;return height&&"height: ".concat(height,"px;")}),(function(_ref3){var widthPercent=_ref3.widthPercent;return widthPercent&&"width: ".concat(widthPercent,"%;")}),(function(_ref4){var marginTop=_ref4.marginTop;return marginTop&&"margin-top: ".concat(marginTop,"px;")}));var CollectionListFiltersPlaceholder_templateObject,CollectionListFiltersPlaceholder_templateObject2,CollectionListFiltersPlaceholder_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;__webpack_require__("./node_modules/core-js/modules/es.array.fill.js");function CollectionListFiltersPlaceholder_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(0,styled_components_browser_esm.Ay)("div")(CollectionListFiltersPlaceholder_templateObject||(CollectionListFiltersPlaceholder_templateObject=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 150px;\n  height: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_4),(0,styled_components_browser_esm.Ay)("ul")(CollectionListFiltersPlaceholder_templateObject2||(CollectionListFiltersPlaceholder_templateObject2=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  margin-bottom: 40px;\n"]))),(0,styled_components_browser_esm.Ay)("li")(CollectionListFiltersPlaceholder_templateObject3||(CollectionListFiltersPlaceholder_templateObject3=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  display: flex;\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 25px;\n  height: 25px;\n"])),animation),(0,styled_components_browser_esm.Ay)("div")(_templateObject5||(_templateObject5=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  align-self: center;\n  width: ","%;\n  height: ",";\n  margin-left: ",";\n"])),animation,function randomNumberMinToMax(min,max){return Math.floor(Math.random()*(max-min+1)+min)}(50,90),govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_2),(0,styled_components_browser_esm.Ay)("ul")(_templateObject6||(_templateObject6=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  margin-bottom: 30px;\n"]))),(0,styled_components_browser_esm.Ay)("li")(_templateObject7||(_templateObject7=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  &:first-child {\n    margin-top: 50px;\n  }\n  &:only-child {\n    margin-top: 0;\n  }\n"]))),(0,styled_components_browser_esm.Ay)("div")(_templateObject8||(_templateObject8=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 150px;\n  height: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_4),(0,styled_components_browser_esm.Ay)("div")(_templateObject9||(_templateObject9=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: ",";\n  height: 35px;\n  margin-top: ",";\n"])),animation,govuk_react_constants_esm.rC,govuk_react_constants_esm.Es.SCALE_1),(0,styled_components_browser_esm.Ay)("div")(_templateObject10||(_templateObject10=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 250px;\n  height: ",";\n  margin-bottom: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_4);var CompanyLocalHeader_templateObject,CompanyLocalHeader_templateObject2,CompanyLocalHeader_templateObject3,CompanyLocalHeader_templateObject4,CompanyLocalHeader_templateObject5,CompanyLocalHeader_templateObject6,CompanyLocalHeader_templateObject7,CompanyLocalHeader_templateObject8,CompanyLocalHeader_templateObject9,CompanyLocalHeader_templateObject10,_templateObject11,isItaTierDAccount=function isItaTierDAccount(oneListGroupTier){return oneListGroupTier&&"1929c808-99b4-4abf-a891-45f2e187b410"===oneListGroupTier.id},buildCompanyBreadcrumbs=function buildCompanyBreadcrumbs(pageBreadcrumbs,companyId,companyName){return[{link:urls_default().dashboard.index(),text:"Home"},{link:urls_default().companies.index(),text:"Companies"},{link:urls_default().companies.detail(companyId),text:companyName}].concat(pageBreadcrumbs)},components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx");function CompanyLocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var LocalHeaderTradingNames=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H4)(CompanyLocalHeader_templateObject||(CompanyLocalHeader_templateObject=CompanyLocalHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n"]))),StyledAddress=(0,styled_components_browser_esm.Ay)("p")(CompanyLocalHeader_templateObject2||(CompanyLocalHeader_templateObject2=CompanyLocalHeader_taggedTemplateLiteral(["\n  margin-top: ",";\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),BadgeText=(0,styled_components_browser_esm.Ay)("span")(CompanyLocalHeader_templateObject3||(CompanyLocalHeader_templateObject3=CompanyLocalHeader_taggedTemplateLiteral(["\n  font-weight: 600;\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),TypeWrapper=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject4||(CompanyLocalHeader_templateObject4=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    display: table-row;\n  }\n"])),govuk_react_constants_esm.LO.TABLET),StyledButtonContainer=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject5||(CompanyLocalHeader_templateObject5=CompanyLocalHeader_taggedTemplateLiteral(["\n  width: 100%;\n  display: inline-block;\n"]))),StyledList=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject6||(CompanyLocalHeader_templateObject6=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: 10px;\n  display: inline-flex;\n"]))),CompanyLocalHeader_StyledButtonLink=styled_components_browser_esm.Ay.a({marginBottom:10,float:"right"}),BadgeWrapper=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject7||(CompanyLocalHeader_templateObject7=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    display: table-cell;\n  }\n"])),govuk_react_constants_esm.LO.TABLET),StyledDetails=(0,styled_components_browser_esm.Ay)(govuk_react_details_esm.A)(CompanyLocalHeader_templateObject8||(CompanyLocalHeader_templateObject8=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    margin: 0 0 0 ",";\n  }\n  span,\n  div {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.LO.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.SG.SIZE_16),StyledDescription=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject9||(CompanyLocalHeader_templateObject9=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding: ",";\n  background-color: ",";\n\n  * + & {\n    margin-top: ",";\n  }\n\n  p {\n    margin-top: 0;\n    margin-bottom: 0;\n\n    &:not(:last-child) {\n      margin-bottom: ",";\n    }\n  }\n\n  & + * {\n    margin-top: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_2,colours.WS,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_3),StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(CompanyLocalHeader_templateObject10||(CompanyLocalHeader_templateObject10=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-top: ",";\n  div {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_20),StyledRelatedCompaniesWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject11||(_templateObject11=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: 20px;\n"]))),isUltimate=function isUltimate(company){return!!company.isGlobalUltimate},hasManagedAccountDetails=function hasManagedAccountDetails(company){return company.oneListGroupTier&&function hasAllocatedLeadIta(company){return null!=company.oneListGroupGlobalAccountManager}(company)},CompanyLocalHeader=function CompanyLocalHeader(_ref){var _company$tradingNames,breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,company=_ref.company,csrfToken=_ref.csrfToken;return company&&react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{breadcrumbs:buildCompanyBreadcrumbs(breadcrumbs,company.id,company.name),flashMessages},react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth:"two-thirds"},react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},company.name),(null==company||null===(_company$tradingNames=company.tradingNames)||void 0===_company$tradingNames?void 0:_company$tradingNames.length)>0&&react.createElement(LocalHeaderTradingNames,{"data-test":"trading-names"},"Trading as: ",company.tradingNames.join(", ")),react.createElement(StyledAddress,{"data-test":"address"},(0,addresses.addressToStringResource)(company.address)),company.dunsNumber&&react.createElement(components_Resource.uf,{id:company.id},(function(_ref2){var relatedCompaniesCount=_ref2.relatedCompaniesCount;return relatedCompaniesCount>0&&react.createElement(StyledRelatedCompaniesWrapper,null,react.createElement(govuk_react_esm.N_,{href:urls_default().companies.dnbHierarchy.tree(company.id),"data-test":"company-tree-link"},"View company tree: ".concat(relatedCompaniesCount+1," companies")))}))),react.createElement(govuk_react_grid_col_esm.Ay,{setWith:"one-third"},react.createElement(StyledButtonContainer,null,react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-interaction",href:urls_default().companies.interactions.create(company.id),"aria-label":"Add interaction with ".concat(company.name)},"Add interaction"),react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-export-project",href:urls_default().exportPipeline.create(company.id),"aria-label":"Add export project",buttonColour:colours.WS,buttonTextColour:colours.pF},"Add export project"),react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-export-win",href:urls_default().companies.exportWins.create(company.id),"aria-label":"Add export win",buttonColour:colours.WS,buttonTextColour:colours.pF},"Add export win")))),react.createElement(StyledList,null,react.createElement(CompanyLocalHeader_LocalHeaderCompanyLists,{companyId:company.id})),(isUltimate(company)||function isGlobalHQ(company){return company.headquarterType&&"ghq"===company.headquarterType.name}(company))&&react.createElement(TypeWrapper,null,react.createElement(BadgeWrapper,null,react.createElement(Badge.A,null,react.createElement(BadgeText,{"data-test":"badge"},isUltimate(company)?"Ultimate HQ":"Global HQ"))),isUltimate(company)&&react.createElement(StyledDetails,{summary:"What does Ultimate HQ mean?","data-test":"ultimate-hq-details"},"This HQ is in control of all related company records for"," ",company.name,".")),hasManagedAccountDetails(company)&&react.createElement(StyledDescription,{"data-test":"description"},hasManagedAccountDetails(company)&&react.createElement(react.Fragment,null,react.createElement("p",null,"This is an account managed company (One List"," ",company.oneListGroupTier.name,")"),react.createElement("p",null,isItaTierDAccount(company.oneListGroupTier)?"Lead ITA":"Global Account Manager",": ",company.oneListGroupGlobalAccountManager.name," ",react.createElement("a",{href:urls_default().companies.accountManagement.index(company.id)},isItaTierDAccount(company.oneListGroupTier)?"View Lead adviser":"View core team"))))),company.archived&&react.createElement(ArchivePanel.A,{archivedBy:company.archivedBy,archivedOn:company.archivedOn,archiveReason:company.archivedReason,unarchiveUrl:"".concat(urls_default().companies.unarchive(company.id),"?_csrf=").concat(csrfToken),type:"company"}),company.pendingDnbInvestigation&&react.createElement(StyledMain,{"data-test":"investigation-message"},react.createElement(StatusMessage.A,null,"This company record is based on information that has not yet been validated. This information is currently being checked by the Data Hub support team.")))};CompanyLocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().string.isRequired})).isRequired,flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),company:prop_types_default().object.isRequired,dnbRelatedCompaniesCount:prop_types_default().number};(0,react_redux.connect)(state.x0)(CompanyLocalHeader);CompanyLocalHeader.__docgenInfo={description:"",methods:[],displayName:"CompanyLocalHeader",props:{breadcrumbs:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"string",required:!0}}}},required:!0},flashMessages:{description:"",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},company:{description:"",type:{name:"object"},required:!0},dnbRelatedCompaniesCount:{description:"",type:{name:"number"},required:!1}}};var CompanyLocalTab_templateObject,CompanyLocalTab_templateObject2,CompanyLocalTab_templateObject3,govuk_react_paragraph_esm=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),govuk_react_warning_text_esm=__webpack_require__("./node_modules/@govuk-react/warning-text/dist/govuk-react-warning-text.esm.js");__webpack_require__("./node_modules/core-js/modules/es.string.search.js");function CompanyLocalTab_typeof(o){return CompanyLocalTab_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},CompanyLocalTab_typeof(o)}function CompanyLocalTab_defineProperty(e,r,t){return(r=function CompanyLocalTab_toPropertyKey(t){var i=function CompanyLocalTab_toPrimitive(t,r){if("object"!=CompanyLocalTab_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLocalTab_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLocalTab_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CompanyLocalTab_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledListItem=styled_components_browser_esm.Ay.li(CompanyLocalTab_templateObject||(CompanyLocalTab_templateObject=CompanyLocalTab_taggedTemplateLiteral(["\n  *,\n  *:before,\n  *:after {\n    box-sizing: border-box;\n  }\n  border-left-width: 1px;\n  text-align: center;\n  border-bottom: 1px solid ",";\n\n  @media (min-width: 1020px) {\n    white-space: nowrap;\n  }\n  @media (max-width: 839px) {\n    text-align: left;\n    margin-left: 25px;\n    line-height: 2.5em;\n    border-bottom: none;\n    &::before {\n      content: '—';\n      margin-left: -25px;\n      padding-right: 5px;\n    }\n    a {\n      width: calc(100% - 5px);\n    }\n  }\n"])),colours.Pe),StyledAnchorTag=styled_components_browser_esm.Ay.a(CompanyLocalTab_templateObject2||(CompanyLocalTab_templateObject2=CompanyLocalTab_taggedTemplateLiteral(["\n  display: inline-block;\n\n  @media (min-width: 840px) {\n    padding: 10px 11px;\n    margin: 0 5px 0 0;\n    &:link,\n    &:visited,\n    &:hover,\n    &:active {\n      color: ",";\n    }\n    background-color: ",";\n    text-align: center;\n    text-decoration: none;\n    height: 90%;\n\n    ","\n  }\n"])),colours.Uv,colours.P1,(function(props){return props.selected&&(0,styled_components_browser_esm.AH)(CompanyLocalTab_templateObject3||(CompanyLocalTab_templateObject3=CompanyLocalTab_taggedTemplateLiteral(["\n        margin: -5px 5px -1px 0px;\n        padding-top: 14px;\n        padding-right: 19px;\n        padding-bottom: 16px;\n        padding-left: 19px;\n        border: 1px solid ",";\n        border-bottom: 0px;\n        color: ",";\n        background-color: ",";\n        height: auto;\n      "])),colours.Pe,colours.Uv,colours.UE)})),CompanyLocalTab=function CompanyLocalTab(props){var navItem=props.navItem,index=props.index,isActive=props.isActive;return react.createElement(StyledListItem,{key:"tab-".concat(index)},react.createElement(StyledAnchorTag,{selected:isActive,href:"".concat(navItem.url).concat(navItem.search?navItem.search:""),id:"tab-".concat(navItem.path),key:"tab-link-".concat(navItem.path),"aria-label":navItem.ariaDescription},navItem.label))};CompanyLocalTab.propTypes={navItem:prop_types_default().shape(CompanyLocalTab_defineProperty(CompanyLocalTab_defineProperty(CompanyLocalTab_defineProperty({path:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,permissions:prop_types_default().array,url:prop_types_default().string.isRequired},"label",prop_types_default().string.isRequired),"isActive",prop_types_default().bool.isRequired),"ariaDescription",prop_types_default().string)).isRequired,index:prop_types_default().number.isRequired};const CompanyTabbedLocalNavigation_CompanyLocalTab=CompanyLocalTab;CompanyLocalTab.__docgenInfo={description:"",methods:[],displayName:"CompanyLocalTab",props:{navItem:{description:"",type:{name:"shape",value:{path:{name:"string",required:!0},label:{name:"string",required:!0},permissions:{name:"array",required:!1},url:{name:"string",required:!0},isActive:{name:"bool",required:!0},ariaDescription:{name:"string",required:!1}}},required:!0},index:{description:"",type:{name:"number"},required:!0}}};var CompanyTabbedLocalNavigation_templateObject,CompanyTabbedLocalNavigation_templateObject2,CompanyTabbedLocalNavigation_templateObject3,CompanyTabbedLocalNavigation_templateObject4,CompanyTabbedLocalNavigation_templateObject5,filters=__webpack_require__("./src/modules/permissions/filters.js");function CompanyTabbedLocalNavigation_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledGridRow=styled_components_browser_esm.Ay.div(CompanyTabbedLocalNavigation_templateObject||(CompanyTabbedLocalNavigation_templateObject=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-right: -15px;\n  margin-left: -15px;\n"]))),StyledGridColumn=styled_components_browser_esm.Ay.div(CompanyTabbedLocalNavigation_templateObject2||(CompanyTabbedLocalNavigation_templateObject2=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  box-sizing: border-box;\n  width: 100%;\n  padding: 0 15px;\n  @media (min-width: 840px) {\n    width: 100%;\n    float: left;\n  }\n"]))),StyledNav=styled_components_browser_esm.Ay.nav(CompanyTabbedLocalNavigation_templateObject3||(CompanyTabbedLocalNavigation_templateObject3=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-bottom: 15px;\n  color: #0b0c0c;\n  margin-top: 5px;\n  @media (min-width: 840px) {\n    margin-bottom: 30px;\n    margin-top: 5px;\n  }\n"]))),StyledUnorderedList=styled_components_browser_esm.Ay.ul(CompanyTabbedLocalNavigation_templateObject4||(CompanyTabbedLocalNavigation_templateObject4=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  display: flex;\n  border-bottom: none;\n  @media (max-width: 839px) {\n    display: block;\n    padding-bottom: 20px;\n    border-bottom: 0;\n  }\n"]))),CompanyTabbedLocalNavigation_StyledLink=(0,styled_components_browser_esm.Ay)("a")(CompanyTabbedLocalNavigation_templateObject5||(CompanyTabbedLocalNavigation_templateObject5=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),CompanyTabbedLocalNavigation=function CompanyTabbedLocalNavigation(_ref){var company=_ref.company,userPermissions=_ref.userPermissions;return react.createElement(StyledGridRow,null,function showMatchingPrompt(company){return!company.dunsNumber&&!company.pendingDnbInvestigation}(company)&&react.createElement(StatusMessage.A,{colour:colours.Uv,id:"ga-company-details-matching-prompt"},react.createElement(govuk_react_warning_text_esm.A,null,"Business details on this company record have not been verified and could be wrong."),react.createElement(govuk_react_details_esm.A,{summary:"Why verify?"},react.createElement(govuk_react_paragraph_esm.A,null,"Using verified business details from a trusted third-party supplier means we can keep certain information up to date automatically. This helps reduce duplicate records, provide a shared view of complex companies and make it more likely we can link other data sources together."),react.createElement(govuk_react_paragraph_esm.A,null,"Verification can often be done in just 4 clicks.")),react.createElement(govuk_react_button_esm.A,{as:CompanyTabbedLocalNavigation_StyledLink,href:urls_default().companies.match.index(company.id)},"Verify business details")),react.createElement(StyledGridColumn,null,react.createElement(StyledNav,{"aria-label":"local navigation","data-test":"tabbedLocalNav"},react.createElement(StyledUnorderedList,{"data-test":"tabbedLocalNavList"},function transformLocalNavItems(navItems,userPermissions){return navItems.filter((0,filters.filterNonPermittedItem)(userPermissions)).map((function(item,index){return react.createElement(CompanyTabbedLocalNavigation_CompanyLocalTab,{navItem:item,index,isActive:location.pathname.includes(item.path),key:"company-tab-".concat(index)})}))}(function localNavItems(companyId){return[{path:"overview",url:urls_default().companies.overview.index(companyId),label:"Overview",permissions:["company.view_contact"]},{path:"activity",url:urls_default().companies.activity.index(companyId),label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",url:urls_default().companies.businessDetails(companyId),label:"Business details"},{path:"contacts",url:urls_default().companies.contacts(companyId),label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",url:urls_default().companies.accountManagement.index(companyId),label:"Account management",ariaDescription:"Account management"},{path:"investments",url:urls_default().companies.investments.companyInvestmentProjectsWithSearch(companyId),label:"Investment",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",url:urls_default().companies.exports.index(companyId),label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",url:urls_default().companies.orders(companyId),label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}]}(company.id),userPermissions)))))};(0,react_redux.connect)((function state2props(state){return{userPermissions:state.userPermissions}}))(CompanyTabbedLocalNavigation);CompanyTabbedLocalNavigation.__docgenInfo={description:"",methods:[],displayName:"CompanyTabbedLocalNavigation"};__webpack_require__("./src/client/components/ContactInformation/index.jsx");var govuk_react_error_summary_esm=__webpack_require__("./node_modules/@govuk-react/error-summary/dist/govuk-react-error-summary.esm.js"),govuk_react_inset_text_esm=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),govuk_react_list_item_esm=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),govuk_react_unordered_list_esm=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),DeleteCompanyListSection=function DeleteCompanyListSection(_ref){var companyList=_ref.companyList,errorMessage=_ref.errorMessage,onDelete=_ref.onDelete,returnUrl=_ref.returnUrl,companyCountText=pluralize_default()("company",companyList.item_count,!0);return react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{heading:"Delete list",breadcrumbs:[{link:urls_default().dashboard.index(),text:"Home"},{text:"Delete list"}]}),react.createElement(Main.A,null,errorMessage&&react.createElement(govuk_react_error_summary_esm.A,{heading:"There was an error deleting this list",description:errorMessage,errors:[]}),react.createElement(govuk_react_paragraph_esm.A,null,"Deleting this list will remove all companies from this list. These companies will remain on any other lists."),react.createElement(govuk_react_inset_text_esm.A,null,react.createElement(govuk_react_unordered_list_esm.A,{listStyleType:"none",mb:0},react.createElement(govuk_react_list_item_esm.A,{"data-test":"list-name"},react.createElement("strong",null,companyList.name)),react.createElement(govuk_react_list_item_esm.A,{"data-test":"company-count"},companyCountText))),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{buttonColour:colours.Bk,onClick:onDelete},"Delete list"),react.createElement(govuk_react_link_esm.A,{href:returnUrl,"data-test":"return-link"},"Return without deleting"))))};DeleteCompanyListSection.propTypes={companyList:prop_types_default().object.isRequired,errorMessage:prop_types_default().string,onDelete:prop_types_default().func.isRequired,returnUrl:prop_types_default().string.isRequired};DeleteCompanyListSection.__docgenInfo={description:"",methods:[],displayName:"DeleteCompanyListSection",props:{companyList:{description:"",type:{name:"object"},required:!0},errorMessage:{description:"",type:{name:"string"},required:!1},onDelete:{description:"",type:{name:"func"},required:!0},returnUrl:{description:"",type:{name:"string"},required:!0}}};var InvestmentLocalHeader_templateObject,InvestmentLocalHeader_templateObject2,InvestmentLocalHeader_templateObject3,DateField=__webpack_require__("./src/client/components/DateField/index.jsx"),EntityList=__webpack_require__("./src/client/components/EntityList/index.jsx"),govuk_react_breadcrumbs_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.link.js"),__webpack_require__("./node_modules/@govuk-react/breadcrumbs/dist/govuk-react-breadcrumbs.esm.js")),FlashMessages=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx"),InvestmentProjectLocalHeader=__webpack_require__("./src/client/components/InvestmentProjectLocalHeader/index.jsx");function InvestmentLocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeader=(0,styled_components_browser_esm.Ay)("div")(InvestmentLocalHeader_templateObject||(InvestmentLocalHeader_templateObject=InvestmentLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  background-color: ",";\n  padding-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,colours.P1,govuk_react_constants_esm.Es.SCALE_3),InvestmentLocalHeader_StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(InvestmentLocalHeader_templateObject2||(InvestmentLocalHeader_templateObject2=InvestmentLocalHeader_taggedTemplateLiteral(["\n  padding-top: 0;\n"]))),BreadcrumbsWrapper=(0,styled_components_browser_esm.Ay)(govuk_react_breadcrumbs_esm.A)(InvestmentLocalHeader_templateObject3||(InvestmentLocalHeader_templateObject3=InvestmentLocalHeader_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  margin-top: 0;\n"])),govuk_react_constants_esm.Es.SCALE_5),InvestmentLocalHeader_StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_esm.N_)({fontSize:20,display:"inline-block",fontFamily:"Arial, sans-serif",marginTop:8,marginBottom:8}),InvestmentLocalHeader=function InvestmentLocalHeader(_ref){var breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,projectId=_ref.projectId;return react.createElement(StyledHeader,{"aria-label":"local header","data-auto-id":"localHeader","data-test":"localHeader",role:"region"},react.createElement(InvestmentLocalHeader_StyledMain,null,react.createElement(BreadcrumbsWrapper,{"data-test":"breadcrumbs"},null==breadcrumbs?void 0:breadcrumbs.map((function(breadcrumb){return breadcrumb.link?react.createElement(govuk_react_breadcrumbs_esm.A.Link,{key:breadcrumb.link,href:breadcrumb.link},breadcrumb.text):react.createElement(react.Fragment,{key:breadcrumb.text},breadcrumb.text)}))),react.createElement(FlashMessages.A,{flashMessages}),react.createElement(components_Resource.sv,{id:projectId},(function(project){return react.createElement(react.Fragment,null,react.createElement(InvestmentLocalHeader_StyledLink,{"data-test":"heading-link",href:urls_default().companies.detail(project.investorCompany.id)},project.investorCompany.name),react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},project.name),react.createElement(InvestmentProjectLocalHeader.A,{investment:project}))}))))};InvestmentLocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),heading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),subheading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),headingLink:prop_types_default().shape({url:prop_types_default().string.isRequired,text:prop_types_default().string.isRequired}),superheading:prop_types_default().node,children:prop_types_default().node};const components_InvestmentLocalHeader=InvestmentLocalHeader;InvestmentLocalHeader.__docgenInfo={description:"The generic local header component.",methods:[],displayName:"InvestmentLocalHeader",props:{breadcrumbs:{description:"Contains the breadcrumbs",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},heading:{description:"Contains the heading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subheading:{description:"Contains the subheading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"Contains a link that appears above the heading",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},superheading:{description:"Contains an item that renders above the heading (in the same position as the headingLink)",type:{name:"node"},required:!1},children:{description:"Contains an item that renders below the heading",type:{name:"node"},required:!1}}};var Main=__webpack_require__("./src/client/components/Main/index.jsx"),NewWindowLink=(__webpack_require__("./src/client/components/Metadata/index.jsx"),__webpack_require__("./src/client/components/NewWindowLink/index.jsx")),Pagination=(__webpack_require__("./src/client/components/NotificationBadge/index.jsx"),__webpack_require__("./src/client/components/Pagination/index.jsx")),SummaryTable=(__webpack_require__("./src/client/components/Panel/index.jsx"),__webpack_require__("./src/client/components/SummaryList/index.jsx"),__webpack_require__("./src/client/components/SummaryTable/index.jsx")),Tag=__webpack_require__("./src/client/components/Tag/index.jsx"),FieldTypeahead=(__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx")),formatAdviser=__webpack_require__("./src/common/formatAdviser.js"),utils=__webpack_require__("./src/client/components/Task/utils.js"),_excluded=["name","label","required","isMulti","onlyShowActiveAdvisers","placeholder"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldAdvisersTypeahead=function FieldAdvisersTypeahead(_ref){var name=_ref.name,_ref$label=_ref.label,label=void 0===_ref$label?"":_ref$label,required=_ref.required,isMulti=_ref.isMulti,_ref$onlyShowActiveAd=_ref.onlyShowActiveAdvisers,onlyShowActiveAdvisers=void 0===_ref$onlyShowActiveAd||_ref$onlyShowActiveAd,_ref$placeholder=_ref.placeholder,placeholder=void 0===_ref$placeholder?"Type to search for advisers":_ref$placeholder,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(FieldTypeahead.A,_extends({name,label,placeholder,noOptionsMessage:"Type to search for advisers",required,loadOptions:(0,lodash.throttle)((function(searchString){return utils.HD.get("/adviser/",{params:{autocomplete:searchString,is_active:onlyShowActiveAdvisers}}).then((function(_ref2){var results=_ref2.data.results;return(0,formatAdviser.parseAdviserData)(results)}))}),500),isMulti},props))};FieldAdvisersTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,required:prop_types_default().string,isMulti:prop_types_default().bool,placeholder:prop_types_default().string};FieldAdvisersTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldAdvisersTypeahead",props:{label:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},onlyShowActiveAdvisers:{defaultValue:{value:"true",computed:!1},required:!1},placeholder:{defaultValue:{value:"'Type to search for advisers'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1}}};__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx");var FieldTextarea_templateObject,FieldWrapper=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),FieldInput=(__webpack_require__("./src/client/components/Form/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx")),FieldCheckboxes=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),FieldSelect=(__webpack_require__("./src/client/components/Form/elements/FieldDate/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx")),govuk_react_text_area_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/@govuk-react/text-area/dist/govuk-react-text-area.esm.js")),govuk_react_error_text_esm=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),hooks=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),FieldTextarea_excluded=["name","validate","required","label","legend","hint","maxWords","invalid","initialValue"];function FieldTextarea_extends(){return FieldTextarea_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldTextarea_extends.apply(null,arguments)}function FieldTextarea_slicedToArray(r,e){return function FieldTextarea_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FieldTextarea_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 FieldTextarea_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FieldTextarea_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)?FieldTextarea_arrayLikeToArray(r,a):void 0}}(r,e)||function FieldTextarea_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 FieldTextarea_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var WORD_REGEX=/\b\w+(?:-\w+)*\b/g,getWordCountFromString=function getWordCountFromString(str){var words=str.trim().match(WORD_REGEX);return words?words.length:0},getMaxWordValidator=function getMaxWordValidator(maxWords,required,invalid){return function(value){var wordCount=getWordCountFromString(value);return 0===wordCount?required:wordCount>maxWords?invalid:null}},StyledTextareaWrapper=(0,styled_components_browser_esm.Ay)("div")(FieldTextarea_templateObject||(FieldTextarea_templateObject=function FieldTextarea_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  textarea {\n    width: 100%;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(govuk_react_constants_esm.d6," solid ").concat(colours.su,";\n    margin-right: ").concat(govuk_react_constants_esm.Es.SCALE_3,";\n    padding-left: ").concat(govuk_react_constants_esm.Es.SCALE_2,";\n  ")})),StyledParagraph=(0,styled_components_browser_esm.Ay)("p")({color:function color(_ref){return _ref.color}}),FieldTextarea=function FieldTextarea(_ref2){var name=_ref2.name,validate=_ref2.validate,required=_ref2.required,label=_ref2.label,legend=_ref2.legend,hint=_ref2.hint,maxWords=_ref2.maxWords,invalid=_ref2.invalid,initialValue=_ref2.initialValue,rest=function FieldTextarea_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function FieldTextarea_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,FieldTextarea_excluded),_useField=(0,hooks.Mt)({name,validate:maxWords>0?getMaxWordValidator(maxWords,required,invalid):validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,_onChange=_useField.onChange,onBlur=_useField.onBlur,_useState2=FieldTextarea_slicedToArray((0,react.useState)(0),2),wordCount=_useState2[0],setWordCount=_useState2[1];return react.createElement(FieldWrapper.A,{name,label,legend,hint,error},react.createElement(StyledTextareaWrapper,{error},touched&&error&&react.createElement(govuk_react_error_text_esm.A,{"data-test":"textarea-error"},error),react.createElement(govuk_react_text_area_esm.l2,FieldTextarea_extends({"data-test":"textarea",id:name,key:name,error:touched&&error,name,value,onChange:function onChange(e){_onChange(e),maxWords>0&&setWordCount(getWordCountFromString(e.target.value))},onBlur,rows:"5"},rest)),maxWords>0&&react.createElement(StyledParagraph,{"data-test":"word-count",color:wordCount>maxWords?colours.su:colours.Uv},function updateMaxWordsDescription(maxWords,wordCount){var delta=maxWords-wordCount,count=Math.abs(delta),word=pluralize_default()("word",count);return"You have ".concat(count," ").concat(word," ").concat(delta>=0?"remaining.":"too many.")}(maxWords,wordCount))))};FieldTextarea.propTypes={name:prop_types_default().string.isRequired,validate:prop_types_default().oneOfType([prop_types_default().func,prop_types_default().arrayOf(prop_types_default().func)]),required:prop_types_default().string,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,initialValue:prop_types_default().string,maxWords:prop_types_default().number};const elements_FieldTextarea=FieldTextarea;FieldTextarea.__docgenInfo={description:"",methods:[],displayName:"FieldTextarea",props:{name:{description:"",type:{name:"string"},required:!0},validate:{description:"",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},initialValue:{description:"",type:{name:"string"},required:!1},maxWords:{description:"",type:{name:"number"},required:!1}}};var FieldUneditable=function FieldUneditable(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,onChangeClick=_ref.onChangeClick,children=_ref.children;return react.createElement(FieldWrapper.A,{name,label,legend,hint},children," ",onChangeClick&&react.createElement(ButtonLink.A,{inline:"true",type:"button",onClick:onChangeClick},"Change ",react.createElement(govuk_react_visually_hidden_esm.A,null,label||legend)))};FieldUneditable.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,onChangeClick:prop_types_default().func,children:prop_types_default().node.isRequired};const elements_FieldUneditable=FieldUneditable;FieldUneditable.__docgenInfo={description:"",methods:[],displayName:"FieldUneditable",props:{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:"node"},required:!1},onChangeClick:{description:"",type:{name:"func"},required:!1},children:{description:"",type:{name:"node"},required:!0}}};var govuk_react_icons_esm=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),govuk_react_form_group_esm=__webpack_require__("./node_modules/@govuk-react/form-group/dist/govuk-react-form-group.esm.js");__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.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");function useAddressSearch_typeof(o){return useAddressSearch_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},useAddressSearch_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"==useAddressSearch_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(useAddressSearch_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 useAddressSearch_slicedToArray(r,e){return function useAddressSearch_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function useAddressSearch_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 useAddressSearch_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return useAddressSearch_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)?useAddressSearch_arrayLikeToArray(r,a):void 0}}(r,e)||function useAddressSearch_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 useAddressSearch_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}const AddressSearch_useAddressSearch=function useAddressSearch(addressSearchCallback){var _useState2=useAddressSearch_slicedToArray((0,react.useState)(null),2),addressList=_useState2[0],setAddressList=_useState2[1],_useState4=useAddressSearch_slicedToArray((0,react.useState)(null),2),error=_useState4[0],setError=_useState4[1],_useState6=useAddressSearch_slicedToArray((0,react.useState)(!1),2),isSubmitting=_useState6[0],setIsSubmitting=_useState6[1];function _onAddressSearch(){return _onAddressSearch=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(postcode){return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.prev=0,setIsSubmitting(!0),setError(null),_context.t0=setAddressList,_context.next=6,addressSearchCallback(postcode);case 6:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=14;break;case 10:_context.prev=10,_context.t2=_context.catch(0),setAddressList(null),setError("Error occurred while searching for an address.");case 14:return _context.prev=14,setIsSubmitting(!1),_context.finish(14);case 17:case"end":return _context.stop()}}),_callee,null,[[0,10,14,17]])}))),_onAddressSearch.apply(this,arguments)}return{error,addressList,isSubmitting,onAddressSearch:function onAddressSearch(_x){return _onAddressSearch.apply(this,arguments)}}};var axios=__webpack_require__("./node_modules/axios/lib/axios.js");function usePostcodeLookup_typeof(o){return usePostcodeLookup_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},usePostcodeLookup_typeof(o)}function usePostcodeLookup_regeneratorRuntime(){usePostcodeLookup_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"==usePostcodeLookup_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(usePostcodeLookup_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 usePostcodeLookup_toConsumableArray(r){return function usePostcodeLookup_arrayWithoutHoles(r){if(Array.isArray(r))return usePostcodeLookup_arrayLikeToArray(r)}(r)||function usePostcodeLookup_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function usePostcodeLookup_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return usePostcodeLookup_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)?usePostcodeLookup_arrayLikeToArray(r,a):void 0}}(r)||function usePostcodeLookup_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 usePostcodeLookup_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function usePostcodeLookup_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)}const AddressSearch_usePostcodeLookup=function usePostcodeLookup(apiEndpoint){function createAddressCount(addresses){var addressCount=pluralize_default()("address",addresses.length,!0);return{address1:"".concat(addressCount," found")}}return function(){var _findAddress=function usePostcodeLookup_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){usePostcodeLookup_asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){usePostcodeLookup_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(usePostcodeLookup_regeneratorRuntime().mark((function _callee(postcode){var _yield$axios$get,data,addressCount;return usePostcodeLookup_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios.A.get("".concat(apiEndpoint,"/").concat(postcode));case 2:return _yield$axios$get=_context.sent,data=_yield$axios$get.data,addressCount=createAddressCount(data),_context.abrupt("return",[addressCount].concat(usePostcodeLookup_toConsumableArray(data)));case 6:case"end":return _context.stop()}}),_callee)})));return function findAddress(_x){return _findAddress.apply(this,arguments)}}()};var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js"),transformers=__webpack_require__("./src/apps/transformers.js");function FieldCountrySelect_extends(){return FieldCountrySelect_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldCountrySelect_extends.apply(null,arguments)}var FieldCountrySelect=function FieldCountrySelect(props){return react.createElement(components_Resource.NW,null,(function(countries){return react.createElement(FieldSelect.A,FieldCountrySelect_extends({label:"Country"},props,{options:countries.map((function(_ref){return{label:_ref.name,value:_ref.id}}))}))}))};FieldCountrySelect.propTypes=lodash_default().omit(FieldSelect.A.propTypes,"options");const elements_FieldCountrySelect=FieldCountrySelect;FieldCountrySelect.__docgenInfo={description:"",methods:[],displayName:"FieldCountrySelect",composes:["lodash"]};var FieldAddress_templateObject,FieldAddress_templateObject2,FieldAddress_templateObject3,FieldAddress_templateObject4,constants=__webpack_require__("./src/common/constants.js");function FieldAddress_slicedToArray(r,e){return function FieldAddress_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FieldAddress_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 FieldAddress_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FieldAddress_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)?FieldAddress_arrayLikeToArray(r,a):void 0}}(r,e)||function FieldAddress_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 FieldAddress_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function FieldAddress_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFieldPostcode=(0,styled_components_browser_esm.Ay)(FieldInput.A)(FieldAddress_templateObject||(FieldAddress_templateObject=FieldAddress_taggedTemplateLiteral(["\n  "," {\n    max-width: 200px;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),SyledDiv=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject2||(FieldAddress_templateObject2=FieldAddress_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledButtonWrapper=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject3||(FieldAddress_templateObject3=FieldAddress_taggedTemplateLiteral(["\n  margin-bottom: -22px;\n  margin-left: 10px;\n"]))),StyledRowDiv=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject4||(FieldAddress_templateObject4=FieldAddress_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: row;\n  justify-content: flex-start;\n  align-items: center;\n"]))),FieldAddress=function FieldAddress(_ref){var label=_ref.label,legend=_ref.legend,hint=_ref.hint,name=_ref.name,country=_ref.country,apiEndpoint=_ref.apiEndpoint,onSelectUKAddress=_ref.onSelectUKAddress,isCountrySelectable=_ref.isCountrySelectable,_ref$hideCountyField=_ref.hideCountyField,hideCountyField=void 0!==_ref$hideCountyField&&_ref$hideCountyField,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?null:_ref$initialValue,_ref$useStaticPostcod=_ref.useStaticPostcodeField,useStaticPostcodeField=void 0!==_ref$useStaticPostcod&&_ref$useStaticPostcod,_ref$isPostcodeRequir=_ref.isPostcodeRequired,isPostcodeRequired=void 0!==_ref$isPostcodeRequir&&_ref$isPostcodeRequir,_ref$showBorder=_ref.showBorder,showBorder=void 0===_ref$showBorder||_ref$showBorder,_ref$useStaticCountyF=_ref.useStaticCountyField,useStaticCountyField=void 0!==_ref$useStaticCountyF&&_ref$useStaticCountyF,findAdministrativeAreas=(0,useAdministrativeAreaLookup.A)(),_useAdministrativeAre=(0,useAdministrativeAreaSearch.A)(findAdministrativeAreas),onAdministrativeAreaSearch=_useAdministrativeAre.onAdministrativeAreaSearch,administrativeAreaSearchError=_useAdministrativeAre.administrativeAreaSearchError,administrativeAreaList=_useAdministrativeAre.administrativeAreaList,isAreaFilterSubmitting=_useAdministrativeAre.isAreaFilterSubmitting,findAddress=AddressSearch_usePostcodeLookup(apiEndpoint),_useAddressSearch=AddressSearch_useAddressSearch(findAddress),onAddressSearch=_useAddressSearch.onAddressSearch,isSubmitting=_useAddressSearch.isSubmitting,error=_useAddressSearch.error,addressList=_useAddressSearch.addressList,_useFormContext=(0,hooks.xW)(),_useFormContext$value=_useFormContext.values,postcode=_useFormContext$value.postcode,country_form_value=_useFormContext$value.country,setFieldValue=_useFormContext.setFieldValue,validateForm=_useFormContext.validateForm,setIsLoading=_useFormContext.setIsLoading,_useState2=FieldAddress_slicedToArray((0,react.useState)([]),2),usStates=_useState2[0],setUsStates=_useState2[1],_useState4=FieldAddress_slicedToArray((0,react.useState)([]),2),canadaProvinces=_useState4[0],setCanadaProvinces=_useState4[1],_useState6=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.UNITED_KINGDOM_ID),2),isUK=_useState6[0],setIsUK=_useState6[1],_useState8=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.UNITED_STATES_ID),2),isUS=_useState8[0],setIsUS=_useState8[1],_useState10=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.CANADA_ID),2),isCanada=_useState10[0],setIsCanada=_useState10[1];(0,react.useEffect)((function(){setIsLoading(isSubmitting&&isAreaFilterSubmitting)}),[isSubmitting,isAreaFilterSubmitting]),(0,react.useEffect)((function(){country_form_value&&isCountrySelectable&&(setIsUK(country_form_value===constants.UNITED_KINGDOM_ID),setIsUS(country_form_value===constants.UNITED_STATES_ID),setIsCanada(country_form_value===constants.CANADA_ID))}),[country_form_value]),(0,react.useEffect)((function(){onAdministrativeAreaSearch()}),[]),(0,react.useEffect)((function(){administrativeAreaList&&(setUsStates((0,useAdministrativeAreaLookup.p)(administrativeAreaList,constants.UNITED_STATES_ID).map((function(states){return(0,transformers.transformObjectToOption)(states)}))),setCanadaProvinces((0,useAdministrativeAreaLookup.p)(administrativeAreaList,constants.CANADA_ID).map((function(states){return(0,transformers.transformObjectToOption)(states)}))))}),[administrativeAreaList]);var buildPostcodeLabel=function buildPostcodeLabel(isRequired,isUK,label){return isRequired||isUK?label:"".concat(label," (optional)")},postcodeLabel=function postcodeLabel(isPostcodeRequired){return buildPostcodeLabel(isPostcodeRequired,isUK,isUS?"ZIP code":isCanada?"Postal code":"Postcode")},usZipCodeRegex=/^\d{5}(-\d{4})?$/i,canadaPostalCodeRegex=/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,postcodeValidator=function postcodeValidator(value){return isUS?function usZipCodeValidator(value){return value?value&&!usZipCodeRegex.test(value)?"Enter a valid ZIP code":void 0:"Enter a ZIP code"}(value):isCanada?function canadaPostalCodeValidator(value){return value?value&&!canadaPostalCodeRegex.test(value)?"Enter a valid Postal code":void 0:"Enter a Postal code"}(value):null},postcodeErrorMessage=function postcodeErrorMessage(isPostcodeRequired){if(isUK||isPostcodeRequired)return"Enter a postcode"};return react.createElement(FieldWrapper.A,{label,legend,hint,name,showBorder},isCountrySelectable?react.createElement(SyledDiv,null,react.createElement(elements_FieldCountrySelect,{name:"country",required:"Select a country",initialValue:null==country?void 0:country.id,onChange:function onChange(){setFieldValue("country_form_value",country_form_value)}})):react.createElement(elements_FieldUneditable,{name:"country",label:"Country"},country.name),(country_form_value||!isCountrySelectable)&&react.createElement(react.Fragment,null,isUK&&!useStaticPostcodeField&&react.createElement(react.Fragment,null,react.createElement(StyledRowDiv,null,react.createElement(StyledFieldPostcode,{type:"search",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:10,validate:postcodeValidator}),react.createElement(StyledButtonWrapper,null,react.createElement(govuk_react_button_esm.A,{onClick:function onSearchClick(e){return e.preventDefault(),(0,lodash.isEmpty)(validateForm(["postcode"]))?onAddressSearch(postcode):null},buttonColour:colours.WS,buttonTextColour:colours.Uv,icon:react.createElement(govuk_react_icons_esm.vj,null),id:"postcode-search"},"Find UK address"))),error&&react.createElement(StatusMessage.A,null,"Error occurred while searching for an address. Enter the address manually."),addressList&&addressList.length>0&&react.createElement(govuk_react_form_group_esm.A,null,react.createElement(govuk_react_select_esm.Ay,{label:"Select an address",onChange:function onAddressSelect(evt){var index=evt.target.selectedIndex;if(0!==index){var address=addressList[index];setFieldValue("postcode",address.postcode),setFieldValue("address1",address.address1),setFieldValue("address2",address.address2),setFieldValue("city",address.city),setFieldValue("county",address.county),onSelectUKAddress&&onSelectUKAddress(address)}}},addressList.map((function(_ref2,index){var address1=_ref2.address1;return react.createElement("option",{key:index,value:index},address1)}))))),react.createElement(FieldInput.A,{type:"text",name:"address1",label:"Address line 1",required:"Enter an address",initialValue:null==initialValue?void 0:initialValue.address1}),react.createElement(FieldInput.A,{type:"text",name:"address2",label:"Address line 2 (optional)",initialValue:null==initialValue?void 0:initialValue.address2}),react.createElement(FieldInput.A,{type:"text",name:"city",label:"Town or city",required:"Enter a town or city",initialValue:null==initialValue?void 0:initialValue.town}),(!(isUS||isCanada||hideCountyField)||useStaticCountyField)&&react.createElement(FieldInput.A,{type:"text",name:"county",label:"County (optional)",initialValue:null==initialValue?void 0:initialValue.county}),react.createElement(react.Fragment,null,function renderUsStateField(useStaticCountyField){if(isUS&&(null==usStates?void 0:usStates.length)>0&&!useStaticCountyField)return react.createElement(FieldSelect.A,{type:"text",name:"area",label:"State",options:usStates,required:"Select a state",emptyOption:"Select"})}(useStaticCountyField),function renderCanadaProvinceField(useStaticCountyField){if(isCanada&&(null==canadaProvinces?void 0:canadaProvinces.length)>0&&!useStaticCountyField)return react.createElement(FieldSelect.A,{type:"text",name:"areaCanada",label:"Province",options:canadaProvinces,required:"Select a province",emptyOption:"Select"})}(useStaticCountyField),administrativeAreaSearchError&&react.createElement(StatusMessage.A,null,"Error occurred while retrieving Administrative Areas.")),useStaticPostcodeField&&react.createElement(FieldInput.A,{type:"text",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:10,validate:postcodeValidator,initialValue:null==initialValue?void 0:initialValue.postcode}),!isUK&&country_form_value!==constants.UNITED_KINGDOM_ID&&!useStaticPostcodeField&&react.createElement(StyledFieldPostcode,{type:"text",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:null,validate:postcodeValidator})))};FieldAddress.propTypes={label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,name:prop_types_default().string.isRequired,apiEndpoint:prop_types_default().string,onSelectUKAddress:prop_types_default().func,isCountrySelectable:prop_types_default().any,country:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired})};const elements_FieldAddress=FieldAddress;FieldAddress.__docgenInfo={description:"",methods:[],displayName:"FieldAddress",props:{hideCountyField:{defaultValue:{value:"false",computed:!1},required:!1},initialValue:{defaultValue:{value:"null",computed:!1},required:!1},useStaticPostcodeField:{defaultValue:{value:"false",computed:!1},required:!1},isPostcodeRequired:{defaultValue:{value:"false",computed:!1},required:!1},showBorder:{defaultValue:{value:"true",computed:!1},required:!1},useStaticCountyField:{defaultValue:{value:"false",computed:!1},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},name:{description:"",type:{name:"string"},required:!0},apiEndpoint:{description:"",type:{name:"string"},required:!1},onSelectUKAddress:{description:"",type:{name:"func"},required:!1},isCountrySelectable:{description:"",type:{name:"any"},required:!1},country:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0}}},required:!1}}};var FieldRadios=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),govuk_react_loading_box_esm=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),EntityListItem=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function FieldCompany_typeof(o){return FieldCompany_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},FieldCompany_typeof(o)}function FieldCompany_defineProperty(e,r,t){return(r=function FieldCompany_toPropertyKey(t){var i=function FieldCompany_toPrimitive(t,r){if("object"!=FieldCompany_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FieldCompany_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FieldCompany_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FieldCompany_extends(){return FieldCompany_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldCompany_extends.apply(null,arguments)}var validateMinLength=function validateMinLength(minLength){return function(value){return value&&value.length<minLength?"Enter at least ".concat(pluralize_default()("character",minLength,!0)):null}},validateMaxLength=function validateMaxLength(maxLength){return function(value){return value&&value.length>maxLength?"".concat(pluralize_default()("character",value.length-maxLength,!0)," too long"):null}},CompanyItemRenderer=function CompanyItemRenderer(item){var _useFormContext=(0,hooks.xW)(),setFieldValue=_useFormContext.setFieldValue,goForward=_useFormContext.goForward;return react.createElement(EntityListItem.A,FieldCompany_extends({onEntityClick:function onEntityClick(company){setFieldValue("company",company),goForward()}},item))},FieldCompany_StyledHeader=(0,styled_components_browser_esm.Ay)("header")({borderBottom:"".concat(govuk_react_constants_esm.gP," solid ").concat(colours.Uv),marginBottom:govuk_react_constants_esm.Es.SCALE_2}),FieldCompany_StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({marginBottom:0}),StyledCount=(0,styled_components_browser_esm.Ay)("span")(FieldCompany_defineProperty({fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.SG.SIZE_24},govuk_react_constants_esm.qs.TABLET,{fontSize:govuk_react_constants_esm.SG.SIZE_27})),StyledSearchTerm=(0,styled_components_browser_esm.Ay)("span")({backgroundColor:colours.Bd}),FieldCompany_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(FieldCompany_defineProperty({background:colours.P1,fontWeight:govuk_react_constants_esm.sO.regular,borderLeft:"".concat(govuk_react_constants_esm.gP," solid ").concat(colours.Pe),marginTop:govuk_react_constants_esm.Es.SCALE_2,fontSize:govuk_react_constants_esm.SG.SIZE_16,lineHeight:govuk_react_constants_esm.$g.SIZE_24,padding:govuk_react_constants_esm.Es.SCALE_2},govuk_react_constants_esm.qs.TABLET,{marginTop:govuk_react_constants_esm.Es.SCALE_3,fontSize:govuk_react_constants_esm.SG.SIZE_18,lineHeight:govuk_react_constants_esm.$g.SIZE_27,padding:govuk_react_constants_esm.Es.SCALE_3})),FieldCompany=function FieldCompany(_ref){var results=_ref.results,onSearchClick=_ref.onSearchClick,progress=_ref.progress,searchTerm=_ref.searchTerm,_useFormContext2=(0,hooks.xW)(),values=_useFormContext2.values,validateForm=_useFormContext2.validateForm;return react.createElement(FieldWrapper.A,{name:"add-company"},react.createElement(FieldInput.A,{name:"companyName",label:"Search for a company as the source of foreign equity",bigLegend:!0,"data-test":"company-name",type:"search",required:"Enter company name",validate:[validateMinLength(2),validateMaxLength(30)]}),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{onClick:function onClick(e){e.preventDefault();var validationErrors=validateForm();(0,lodash.isEmpty)(validationErrors)&&onSearchClick(values.companyName)}},"Search")),results&&react.createElement(react.Fragment,null,react.createElement("article",null,react.createElement(FieldCompany_StyledHeader,null,react.createElement(FieldCompany_StyledHeading,null,react.createElement(StyledCount,null,results.length)," ",pluralize_default()("company",results.length)," matching"," ",react.createElement(StyledSearchTerm,null,searchTerm))),results.length>0&&react.createElement(govuk_react_loading_box_esm.A,{loading:progress},react.createElement(EntityList.A,{entities:results,entityRenderer:CompanyItemRenderer}))),0===results.length&&!progress&&react.createElement(FieldCompany_StyledParagraph,null,"If you can't find the company you're looking for,"," ",react.createElement(govuk_react_link_esm.A,{href:urls_default().companies.create(),"aria-label":"Add a new company"},"add a new company."," "),"Unfortunately you will lose your progress.")))};function useEntitySearch_typeof(o){return useEntitySearch_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},useEntitySearch_typeof(o)}function useEntitySearch_regeneratorRuntime(){useEntitySearch_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"==useEntitySearch_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(useEntitySearch_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 useEntitySearch_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 useEntitySearch_slicedToArray(r,e){return function useEntitySearch_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function useEntitySearch_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 useEntitySearch_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return useEntitySearch_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)?useEntitySearch_arrayLikeToArray(r,a):void 0}}(r,e)||function useEntitySearch_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 useEntitySearch_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}FieldCompany.__docgenInfo={description:"",methods:[],displayName:"FieldCompany"};const EntityList_useEntitySearch=function useEntitySearch(searchEntitiesCallback){var _useState2=useEntitySearch_slicedToArray((0,react.useState)([]),2),entities=_useState2[0],setEntities=_useState2[1],_useState4=useEntitySearch_slicedToArray((0,react.useState)(null),2),error=_useState4[0],setError=_useState4[1],_useState6=useEntitySearch_slicedToArray((0,react.useState)(!1),2),searching=_useState6[0],setSearching=_useState6[1],_useState8=useEntitySearch_slicedToArray((0,react.useState)(!1),2),searched=_useState8[0],setSearched=_useState8[1];function _onEntitySearch(){return _onEntitySearch=function useEntitySearch_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){useEntitySearch_asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){useEntitySearch_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(useEntitySearch_regeneratorRuntime().mark((function _callee(){var filters,newEntities,_args=arguments;return useEntitySearch_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return filters=_args.length>0&&void 0!==_args[0]?_args[0]:{},_context.prev=1,setSearching(!0),setError(null),_context.next=6,searchEntitiesCallback(filters);case 6:newEntities=_context.sent,setEntities(newEntities),_context.next=14;break;case 10:_context.prev=10,_context.t0=_context.catch(1),setEntities([]),setError("Error occurred while searching entities.");case 14:return _context.prev=14,setSearching(!1),setSearched(!0),_context.finish(14);case 18:case"end":return _context.stop()}}),_callee,null,[[1,10,14,18]])}))),_onEntitySearch.apply(this,arguments)}return{onEntitySearch:function onEntitySearch(){return _onEntitySearch.apply(this,arguments)},entities,error,searching,searched}};var useDnbSearch=__webpack_require__("./src/client/components/EntityList/useDnbSearch.jsx"),FormLayout=function FormLayout(_ref){var setWidth=_ref.setWidth,children=_ref.children;return react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth},children))};FormLayout.propTypes={setWidth:prop_types_default().string.isRequired,children:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().element),prop_types_default().element]).isRequired};const Layout_FormLayout=FormLayout;function FieldDnbCompany_typeof(o){return FieldDnbCompany_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},FieldDnbCompany_typeof(o)}var FieldDnbCompany_templateObject;function FieldDnbCompany_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 FieldDnbCompany_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?FieldDnbCompany_ownKeys(Object(t),!0).forEach((function(r){FieldDnbCompany_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FieldDnbCompany_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function FieldDnbCompany_defineProperty(e,r,t){return(r=function FieldDnbCompany_toPropertyKey(t){var i=function FieldDnbCompany_toPrimitive(t,r){if("object"!=FieldDnbCompany_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FieldDnbCompany_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FieldDnbCompany_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}FormLayout.__docgenInfo={description:"",methods:[],displayName:"FormLayout",props:{setWidth:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"union",value:[{name:"arrayOf",value:{name:"element"}},{name:"element"}]},required:!0}}};var FieldDnbCompany_StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(FieldDnbCompany_templateObject||(FieldDnbCompany_templateObject=function FieldDnbCompany_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  list-style-type: disc;\n  padding-left: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),FieldDnbCompany_validateMinLength=function validateMinLength(minLength){return function(value){return value&&value.length<minLength?"Enter at least ".concat(pluralize_default()("character",minLength,!0)):null}},FieldDnbCompany_validateMaxLength=function validateMaxLength(maxLength){return function(value){return value&&value.length>maxLength?"".concat(pluralize_default()("character",value.length-maxLength,!0)," too long"):null}},FieldDnbCompany=function FieldDnbCompany(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,country=_ref.country,apiEndpoint=_ref.apiEndpoint,_ref$queryParams=_ref.queryParams,queryParams=void 0===_ref$queryParams?{}:_ref$queryParams,entityRenderer=_ref.entityRenderer,onCannotFind=_ref.onCannotFind,_ref$searchResultsMes=_ref.searchResultsMessage,searchResultsMessage=void 0===_ref$searchResultsMes?"The search results below are verified company records from an external and verified source of company information.":_ref$searchResultsMes,features=_ref.features,_useFormContext=(0,hooks.xW)(),values=_useFormContext.values,goBack=_useFormContext.goBack,validateForm=_useFormContext.validateForm,setIsLoading=_useFormContext.setIsLoading,findCompany=(0,useDnbSearch.A)(apiEndpoint,features).findCompany,_useEntitySearch=EntityList_useEntitySearch(findCompany),onEntitySearch=_useEntitySearch.onEntitySearch,searching=_useEntitySearch.searching,searched=_useEntitySearch.searched,error=_useEntitySearch.error,entities=_useEntitySearch.entities;return(0,react.useEffect)((function(){return setIsLoading(searching)}),[searching]),react.createElement(Layout_FormLayout,{setWidth:constants.FORM_LAYOUT.THREE_QUARTERS},react.createElement(FieldWrapper.A,{name,label,legend,hint},country&&react.createElement(elements_FieldUneditable,{legend:"Country",name:"dnbCountry",onChangeClick:goBack},country),react.createElement(FieldInput.A,{label:"Company name",name:"dnbCompanyName",type:"search",required:"Enter company name",validate:[FieldDnbCompany_validateMinLength(2),FieldDnbCompany_validateMaxLength(60)]}),react.createElement(FieldInput.A,{label:"Company postcode (optional)",name:"dnbPostalCode",style:{width:govuk_react_constants_esm._8["one-third"]},type:"search"}),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{icon:react.createElement(govuk_react_icons_esm.vj,null),onClick:function onSearchClick(e){return e.preventDefault(),(0,lodash.isEmpty)(validateForm())?onEntitySearch((0,lodash.omitBy)(FieldDnbCompany_objectSpread(FieldDnbCompany_objectSpread({},queryParams),{},{search_term:values.dnbCompanyName,postal_code:values.dnbPostalCode}),lodash.isEmpty)):null}},"Find company")),searched&&react.createElement(react.Fragment,null,entities.length>0&&react.createElement(react.Fragment,null,searchResultsMessage&&react.createElement(StatusMessage.A,null,searchResultsMessage),react.createElement(EntityList.A,{entities,entityRenderer})),!error&&0===entities.length&&react.createElement(StatusMessage.A,null,"No match found. Try one of the options below."),error&&react.createElement(StatusMessage.A,null,"Error occurred while searching for company."),react.createElement(govuk_react_details_esm.A,{summary:"I can't find what I'm looking for"},react.createElement(govuk_react_paragraph_esm.A,null,"Try:"),react.createElement(FieldDnbCompany_StyledUnorderedList,null,react.createElement(govuk_react_list_item_esm.A,null,"checking or removing the postcode"),react.createElement(govuk_react_list_item_esm.A,null,'removing "limited" or "ltd"'),react.createElement(govuk_react_list_item_esm.A,null,"checking for spelling errors"),country&&react.createElement(govuk_react_list_item_esm.A,null,"checking if the right country was selected"),react.createElement(govuk_react_list_item_esm.A,null,"check you're using the company's registered name")),onCannotFind&&react.createElement(ButtonLink.A,{onClick:onCannotFind},"I still can't find what I'm looking for")))))};FieldDnbCompany.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,country:prop_types_default().string,apiEndpoint:prop_types_default().string.isRequired,queryParams:prop_types_default().shape({}),entityRenderer:prop_types_default().func,onCannotFind:prop_types_default().func,searchResultsMessage:prop_types_default().string};FieldDnbCompany.__docgenInfo={description:"",methods:[],displayName:"FieldDnbCompany",props:{queryParams:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},searchResultsMessage:{defaultValue:{value:"'The search results below are verified company records from an external and verified source of company information.'",computed:!1},description:"",type:{name:"string"},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:"node"},required:!1},country:{description:"",type:{name:"string"},required:!1},apiEndpoint:{description:"",type:{name:"string"},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1},onCannotFind:{description:"",type:{name:"func"},required:!1}}};__webpack_require__("./src/client/components/Form/elements/FieldHelp/index.jsx"),__webpack_require__("./src/client/components/Form/elements/Step.jsx");var ReadMore=__webpack_require__("./src/client/components/ReadMore/index.jsx"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),components_Typeahead=__webpack_require__("./src/client/components/Typeahead/index.jsx");function RoutedTypeahead_typeof(o){return RoutedTypeahead_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},RoutedTypeahead_typeof(o)}var RoutedTypeahead_templateObject,RoutedTypeahead_excluded=["name","qsParam","label","hint","isMulti","placeholder","closeMenuOnSelect","selectedOptions","loadOptions","noOptionsMessage","options","labelAsQueryParam"];function RoutedTypeahead_extends(){return RoutedTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedTypeahead_extends.apply(null,arguments)}function RoutedTypeahead_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 RoutedTypeahead_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedTypeahead_ownKeys(Object(t),!0).forEach((function(r){RoutedTypeahead_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedTypeahead_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedTypeahead_defineProperty(e,r,t){return(r=function RoutedTypeahead_toPropertyKey(t){var i=function RoutedTypeahead_toPrimitive(t,r){if("object"!=RoutedTypeahead_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTypeahead_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTypeahead_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledFieldWrapper=(0,styled_components_browser_esm.Ay)(FieldWrapper.A)(RoutedTypeahead_templateObject||(RoutedTypeahead_templateObject=function RoutedTypeahead_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  label {\n    font-weight: ",";\n    line-height: ",";\n  }\n"])),govuk_react_constants_esm.sO.bold,govuk_react_constants_esm.$g.SIZE_16),getParamIds=function getParamIds(qsParam,pickedOptions){return RoutedTypeahead_defineProperty({},qsParam,pickedOptions?pickedOptions.map((function(_ref){return _ref.value})):[])},getParamLabels=function getParamLabels(qsParam,pickedOptions){return RoutedTypeahead_defineProperty({},qsParam,pickedOptions?pickedOptions.map((function(_ref3){return _ref3.label})):[])},RoutedTypeahead=function RoutedTypeahead(_ref5){var name=_ref5.name,qsParam=_ref5.qsParam,label=_ref5.label,hint=_ref5.hint,isMulti=_ref5.isMulti,placeholder=_ref5.placeholder,closeMenuOnSelect=_ref5.closeMenuOnSelect,selectedOptions=_ref5.selectedOptions,loadOptions=_ref5.loadOptions,noOptionsMessage=_ref5.noOptionsMessage,options=_ref5.options,labelAsQueryParam=_ref5.labelAsQueryParam,props=function RoutedTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,RoutedTypeahead_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));return react.createElement(StyledFieldWrapper,RoutedTypeahead_extends({label,name,hint},props),react.createElement(components_Typeahead.A,{name,"aria-label":label||name,placeholder,initialOptions:options,closeMenuOnSelect,isMulti,value:selectedOptions.map((function(_ref6){return{value:_ref6.value,label:_ref6.label}})),loadOptions,noOptionsMessage,onChange:function onChange(pickedOptions){navigate({search:lib_default().stringify(RoutedTypeahead_objectSpread(RoutedTypeahead_objectSpread(RoutedTypeahead_objectSpread({},qsParams),labelAsQueryParam?getParamLabels(qsParam,pickedOptions):getParamIds(qsParam,pickedOptions)),{},{page:1}))})}}))};RoutedTypeahead.propTypes={name:prop_types_default().string.isRequired,qsParam:prop_types_default().string.isRequired,labelAsQueryParam:prop_types_default().bool};const components_RoutedTypeahead=RoutedTypeahead;RoutedTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedTypeahead",props:{name:{description:"",type:{name:"string"},required:!0},qsParam:{description:"",type:{name:"string"},required:!0},labelAsQueryParam:{description:"",type:{name:"bool"},required:!1}}};var RoutedAdvisersTypeahead_excluded=["taskProps","closeMenuOnSelect","onlyShowActiveAdvisers","loadOptions"];function RoutedAdvisersTypeahead_extends(){return RoutedAdvisersTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedAdvisersTypeahead_extends.apply(null,arguments)}var RoutedAdvisersTypeahead=function RoutedAdvisersTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,_ref2$onlyShowActiveA=_ref2.onlyShowActiveAdvisers,onlyShowActiveAdvisers=void 0===_ref2$onlyShowActiveA||_ref2$onlyShowActiveA,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?function fetchAdvisers(onlyShowActiveAdvisers){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get("/adviser/",{params:{autocomplete:searchString,is_active:!!onlyShowActiveAdvisers||null}}).then((function(_ref){var results=_ref.data.results;return(0,formatAdviser.parseAdviserData)(results)})):Promise.resolve([])}),500)}(onlyShowActiveAdvisers):_ref2$loadOptions,props=function RoutedAdvisersTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedAdvisersTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedAdvisersTypeahead_excluded);return react.createElement(Task.A.Status,RoutedAdvisersTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedAdvisersTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedAdvisersTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedAdvisersTypeahead=RoutedAdvisersTypeahead;RoutedAdvisersTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedAdvisersTypeahead",props:{closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},onlyShowActiveAdvisers:{defaultValue:{value:"true",computed:!1},required:!1},loadOptions:{defaultValue:{value:"fetchAdvisers(onlyShowActiveAdvisers)",computed:!0},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var client_transformers=__webpack_require__("./src/client/transformers/index.js"),RoutedCompanyTypeahead_excluded=["taskProps","loadOptions","closeMenuOnSelect"];function RoutedCompanyTypeahead_extends(){return RoutedCompanyTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedCompanyTypeahead_extends.apply(null,arguments)}var fetchCompanies=function fetchCompanies(){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get("/v4/company",{params:{autocomplete:searchString}}).then((function(_ref){return function parseCompanyData(companies){return companies.filter((function(company){return company.name&&company.name.trim().length})).map(client_transformers.Vi)}(_ref.data.results)})):Promise.resolve([])}),500)},RoutedCompanyTypeahead=function RoutedCompanyTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?fetchCompanies():_ref2$loadOptions,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,props=function RoutedCompanyTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedCompanyTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedCompanyTypeahead_excluded);return react.createElement(Task.A.Status,RoutedCompanyTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedCompanyTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedCompanyTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedCompanyTypeahead=RoutedCompanyTypeahead;RoutedCompanyTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedCompanyTypeahead",props:{loadOptions:{defaultValue:{value:"fetchCompanies()",computed:!0},required:!1},closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var ToggleSection=__webpack_require__("./src/client/components/ToggleSection/index.jsx"),Analytics=(__webpack_require__("./src/client/components/Pagination/RoutedPagination.jsx"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./src/client/components/Analytics/index.jsx")),DownloadDataHeader=__webpack_require__("./src/client/components/DownloadDataHeader/index.jsx"),RoutedDownloadDataHeader_excluded=["page"],_excluded2=["baseDownloadLink"];function RoutedDownloadDataHeader_extends(){return RoutedDownloadDataHeader_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedDownloadDataHeader_extends.apply(null,arguments)}function RoutedDownloadDataHeader_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedDownloadDataHeader_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var isBool=function isBool(value){return["true","false"].includes(value)},getDownloadLinkFromLocation=function getDownloadLinkFromLocation(location,baseDownloadLink){var _qs$parse=lib_default().parse(location.search.slice(1)),queryString=(_qs$parse.page,function getQueryStringFromQueryParams(params){var transformedParams={};for(var param in params){var field=params[param];(0,lodash.isArray)(field)&&field.every(isBool)?1===field.length&&(transformedParams[param]="true"===field[0]):transformedParams[param]=params[param]}return lib_default().stringify(transformedParams)}(RoutedDownloadDataHeader_objectWithoutProperties(_qs$parse,RoutedDownloadDataHeader_excluded)));return queryString?"".concat(baseDownloadLink,"?").concat(queryString):baseDownloadLink},RoutedDownloadDataHeader=function RoutedDownloadDataHeader(_ref){var baseDownloadLink=_ref.baseDownloadLink,props=RoutedDownloadDataHeader_objectWithoutProperties(_ref,_excluded2),location=(0,dist.zy)(),downloadLink=getDownloadLinkFromLocation(location,baseDownloadLink);return react.createElement(DownloadDataHeader.A,RoutedDownloadDataHeader_extends({downloadLink},props))};RoutedDownloadDataHeader.propTypes={id:prop_types_default().string,count:prop_types_default().number,maxItems:prop_types_default().number,baseDownloadLink:prop_types_default().string};const components_RoutedDownloadDataHeader=RoutedDownloadDataHeader;RoutedDownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"RoutedDownloadDataHeader",props:{id:{description:"",type:{name:"string"},required:!1},count:{description:"",type:{name:"number"},required:!1},maxItems:{description:"",type:{name:"number"},required:!1},baseDownloadLink:{description:"",type:{name:"string"},required:!1}}};var FilteredCollectionHeader_templateObject,FilteredCollectionHeader_templateObject2,FilteredCollectionHeader_templateObject3,FilteredCollectionHeader_templateObject4,FilteredCollectionHeader_templateObject5,FilteredCollectionHeader_templateObject6,FilteredCollectionHeader_templateObject7,FilteredCollectionHeader_templateObject8,react_router_dom_dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),number_utils=__webpack_require__("./src/client/utils/number-utils.js");function FilteredCollectionHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeaderText=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H2)(FilteredCollectionHeader_templateObject||(FilteredCollectionHeader_templateObject=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-weight: normal;\n  font-size: ","px;\n  margin-bottom: 0;\n"])),govuk_react_constants_esm.iU.MEDIUM),FilteredCollectionHeader_StyledLink=styled_components_browser_esm.Ay.a(FilteredCollectionHeader_templateObject2||(FilteredCollectionHeader_templateObject2=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  white-space: nowrap;\n"]))),StyledReactRouterLink=(0,styled_components_browser_esm.Ay)(react_router_dom_dist.N_)(FilteredCollectionHeader_templateObject3||(FilteredCollectionHeader_templateObject3=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledResultCount=(0,styled_components_browser_esm.Ay)("span")(FilteredCollectionHeader_templateObject4||(FilteredCollectionHeader_templateObject4=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-size: 36px;\n  font-weight: 600;\n  line-height: 1;\n"]))),CollectionHeaderRowContainer=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject5||(FilteredCollectionHeader_templateObject5=FilteredCollectionHeader_taggedTemplateLiteral(["\n  > div {\n    border: none;\n  }\n  border-bottom: "," solid ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,colours.Uv),StyledDiv=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject6||(FilteredCollectionHeader_templateObject6=FilteredCollectionHeader_taggedTemplateLiteral(["\n  display: flex;\n  flex: 50%;\n  align-items: center;\n  flex-flow: nowrap;\n\n  h2 {\n    flex-grow: 2;\n  }\n\n  button {\n    text-align: right;\n    width: auto;\n    margin: 0;\n  }\n"]))),StyledSummary=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject7||(FilteredCollectionHeader_templateObject7=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),StyledSummaryTotal=(0,styled_components_browser_esm.Ay)("span")(FilteredCollectionHeader_templateObject8||(FilteredCollectionHeader_templateObject8=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-weight: ",";\n"])),govuk_react_constants_esm.sO.bold),RoutedFilterChipsCollection=function RoutedFilterChipsCollection(_ref){var selectedFilters=_ref.selectedFilters;return react.createElement(react.Fragment,null,Object.keys(selectedFilters).map((function(key){return react.createElement(components_RoutedFilterChips,{key,selectedOptions:selectedFilters[key].options,qsParamName:selectedFilters[key].queryParam})})))};function FilteredCollectionHeader(_ref2){var totalItems=_ref2.totalItems,summary=_ref2.summary,_ref2$collectionName=_ref2.collectionName,collectionName=void 0===_ref2$collectionName?"result":_ref2$collectionName,_ref2$addItemUrl=_ref2.addItemUrl,addItemUrl=void 0===_ref2$addItemUrl?null:_ref2$addItemUrl,selectedFilters=_ref2.selectedFilters,hasFilters=_ref2.hasFilters,_ref2$useReactRouter=_ref2.useReactRouter,useReactRouter=void 0!==_ref2$useReactRouter&&_ref2$useReactRouter,formattedTotal=(0,number_utils._)(totalItems),counterSuffix=pluralize_default()(collectionName,totalItems),actions=addItemUrl&&(useReactRouter?react.createElement(govuk_react_button_esm.A,{id:"add-".concat((0,lodash.kebabCase)(collectionName)),as:StyledReactRouterLink,to:addItemUrl,buttonColour:colours.WS,buttonTextColour:colours.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName):react.createElement(govuk_react_button_esm.A,{id:"add-".concat((0,lodash.kebabCase)(collectionName)),as:FilteredCollectionHeader_StyledLink,href:addItemUrl,buttonColour:colours.WS,buttonTextColour:colours.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName));return react.createElement(CollectionHeaderRowContainer,null,react.createElement(CollectionHeaderRow.A,{actions},react.createElement(StyledDiv,{role:"status"},react.createElement(StyledHeaderText,null,react.createElement(StyledResultCount,{"data-test":"collectionCount"},formattedTotal)," ",counterSuffix),hasFilters&&react.createElement(components_FilterReset,{"data-test":"clear-filters",id:"clear-filters"},"Remove all filters"))),summary&&react.createElement(StyledSummary,{"data-test":"summary"},"Total value:"," ",react.createElement(StyledSummaryTotal,null,"£",(0,number_utils._)(summary.total_subtotal_cost/100))),react.createElement(CollectionHeaderRow.A,{"data-test":"filter-chips",id:"filter-chips"},react.createElement(RoutedFilterChipsCollection,{selectedFilters})))}FilteredCollectionHeader.propTypes={totalItems:prop_types_default().number.isRequired,summary:prop_types_default().object,collectionName:prop_types_default().string.isRequired,addItemUrl:prop_types_default().string,selectedFilters:prop_types_default().objectOf(prop_types_default().shape({queryParam:prop_types_default().string.isRequired,options:prop_types_default().arrayOf(prop_types_default().shape({value:prop_types_default().string.isRequired,label:prop_types_default().string,categoryLabel:prop_types_default().string}))}))};const FilteredCollectionList_FilteredCollectionHeader=FilteredCollectionHeader;function FilteredCollectionList_typeof(o){return FilteredCollectionList_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},FilteredCollectionList_typeof(o)}function FilteredCollectionList_extends(){return FilteredCollectionList_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FilteredCollectionList_extends.apply(null,arguments)}function FilteredCollectionList_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 FilteredCollectionList_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?FilteredCollectionList_ownKeys(Object(t),!0).forEach((function(r){FilteredCollectionList_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FilteredCollectionList_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function FilteredCollectionList_defineProperty(e,r,t){return(r=function FilteredCollectionList_toPropertyKey(t){var i=function FilteredCollectionList_toPrimitive(t,r){if("object"!=FilteredCollectionList_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FilteredCollectionList_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FilteredCollectionList_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FilteredCollectionList_slicedToArray(r,e){return function FilteredCollectionList_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FilteredCollectionList_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 FilteredCollectionList_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FilteredCollectionList_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)?FilteredCollectionList_arrayLikeToArray(r,a):void 0}}(r,e)||function FilteredCollectionList_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 FilteredCollectionList_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}FilteredCollectionHeader.__docgenInfo={description:"",methods:[],displayName:"FilteredCollectionHeader",props:{collectionName:{defaultValue:{value:"'result'",computed:!1},description:"",type:{name:"string"},required:!1},addItemUrl:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},totalItems:{description:"",type:{name:"number"},required:!0},summary:{description:"",type:{name:"object"},required:!1},selectedFilters:{description:"",type:{name:"objectOf",value:{name:"shape",value:{queryParam:{name:"string",required:!0},options:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!0},label:{name:"string",required:!1},categoryLabel:{name:"string",required:!1}}},required:!1}}}},required:!1}}};var filtersToAnalytics=function filtersToAnalytics(filters){return Object.fromEntries(Object.entries(filters).filter((function(_ref){var value=FilteredCollectionList_slicedToArray(_ref,2)[1];return value&&value.options&&value.options.length})).map((function(_ref3){var _ref4=FilteredCollectionList_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return[(null==value?void 0:value.queryParam)||key,value.options.map((function(option){return option.label}))]})))},getSelectedFilters=function getSelectedFilters(filters){return Object.fromEntries(Object.entries(filters).filter((function(_ref5){var value=FilteredCollectionList_slicedToArray(_ref5,2)[1];return value&&value.options&&value.options.length})))},collectionItemTemplateDefault=function collectionItemTemplateDefault(item,titleRenderer,useReactRouter,pushAnalytics,selectedFilters,sanitizeFiltersForAnalytics){return react.createElement(CollectionItem.Ay,FilteredCollectionList_extends({},item,{key:item.id,titleRenderer,useReactRouter,onClick:function onClick(){pushAnalytics({event:"filterResultClick",extra:FilteredCollectionList_objectSpread(FilteredCollectionList_objectSpread({},filtersToAnalytics(selectedFilters)),sanitizeFiltersForAnalytics&&sanitizeFiltersForAnalytics(getSelectedFilters(selectedFilters)))})}}))},FilteredCollectionList=function FilteredCollectionList(_ref7){var _ref7$results=_ref7.results,results=void 0===_ref7$results?[]:_ref7$results,_ref7$summary=_ref7.summary,summary=void 0===_ref7$summary?null:_ref7$summary,_ref7$itemsPerPage=_ref7.itemsPerPage,itemsPerPage=void 0===_ref7$itemsPerPage?10:_ref7$itemsPerPage,_ref7$sortOptions=_ref7.sortOptions,sortOptions=void 0===_ref7$sortOptions?null:_ref7$sortOptions,taskProps=_ref7.taskProps,_ref7$count=_ref7.count,count=void 0===_ref7$count?0:_ref7$count,isComplete=_ref7.isComplete,children=_ref7.children,collectionName=_ref7.collectionName,_ref7$maxItemsToPagin=_ref7.maxItemsToPaginate,maxItemsToPaginate=void 0===_ref7$maxItemsToPagin?1e4:_ref7$maxItemsToPagin,maxItemsToDownload=_ref7.maxItemsToDownload,selectedFilters=_ref7.selectedFilters,_ref7$baseDownloadLin=_ref7.baseDownloadLink,baseDownloadLink=void 0===_ref7$baseDownloadLin?null:_ref7$baseDownloadLin,entityName=_ref7.entityName,entityNamePlural=_ref7.entityNamePlural,addItemUrl=_ref7.addItemUrl,defaultQueryParams=_ref7.defaultQueryParams,_ref7$titleRenderer=_ref7.titleRenderer,titleRenderer=void 0===_ref7$titleRenderer?null:_ref7$titleRenderer,_ref7$sanitizeFilters=_ref7.sanitizeFiltersForAnalytics,sanitizeFiltersForAnalytics=void 0===_ref7$sanitizeFilters?null:_ref7$sanitizeFilters,_ref7$useReactRouter=_ref7.useReactRouter,useReactRouter=void 0!==_ref7$useReactRouter&&_ref7$useReactRouter,_ref7$collectionItemT=_ref7.collectionItemTemplate,collectionItemTemplate=void 0===_ref7$collectionItemT?collectionItemTemplateDefault:_ref7$collectionItemT,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),totalPages=Math.ceil(Math.min(count,maxItemsToPaginate)/itemsPerPage),qsParams=lib_default().parse(location.search.slice(1));(0,react.useEffect)((function(){defaultQueryParams&&(0,lodash.isEmpty)(qsParams)&&navigate({search:lib_default().stringify(FilteredCollectionList_objectSpread({},defaultQueryParams))})}),[]);var initialPage=function getPageNumber(qsParams){var defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,pageNumber=parseInt(qsParams.page,10);return isNaN(pageNumber)?defaultValue:pageNumber}(qsParams);return react.createElement(govuk_react_esm.TW,{"data-test":"collection-list"},children,react.createElement(govuk_react_esm.bn,null,react.createElement("article",null,isComplete&&react.createElement(FilteredCollectionList_FilteredCollectionHeader,{totalItems:count,summary,collectionName,hasFilters:void 0!==children,selectedFilters,addItemUrl,useReactRouter}),sortOptions&&react.createElement(CollectionSort.A,{sortOptions,totalPages}),baseDownloadLink&&react.createElement(components_RoutedDownloadDataHeader,{count,maxItems:maxItemsToDownload,"data-test":"download-data-header",baseDownloadLink,entityName,entityNamePlural}),react.createElement(Task.A.Status,taskProps,(function(){return isComplete&&react.createElement("ol",{"aria-live":"polite"},results.map((function(item,index){return react.createElement(Analytics.A,{key:"".concat(item.id,"-").concat(index)},(function(pushAnalytics){return collectionItemTemplate(item,titleRenderer,useReactRouter,pushAnalytics,selectedFilters,sanitizeFiltersForAnalytics)}))})))})),react.createElement(Pagination.A,{totalPages,activePage:initialPage,onPageClick:function onPageClick(page,e){e.preventDefault(),navigate({search:lib_default().stringify(FilteredCollectionList_objectSpread(FilteredCollectionList_objectSpread({},qsParams),{},{page}))})}}))))};FilteredCollectionList.propTypes={taskProps:prop_types_default().shape({name:prop_types_default().string,id:prop_types_default().string,progressMessage:prop_types_default().string,renderProgress:prop_types_default().func,startOnRender:prop_types_default().shape({payload:prop_types_default().shape({page:prop_types_default().number,filters:prop_types_default().object,search:prop_types_default().string}).isRequired,onSuccessDispatch:prop_types_default().string}).isRequired}),isComplete:prop_types_default().bool,children:prop_types_default().node,collectionName:prop_types_default().string,router:prop_types_default().shape({location:prop_types_default().shape({search:prop_types_default().string.isRequired,query:prop_types_default().object.isRequired})}),maxItemsToPaginate:prop_types_default().number,maxItemsToDownload:prop_types_default().number,selectedFilters:prop_types_default().shape({label:prop_types_default().string,value:prop_types_default().string}),summary:prop_types_default().object,defaultQueryParams:prop_types_default().object,titleRenderer:prop_types_default().func,sanitizeFiltersForAnalytics:prop_types_default().func,width:prop_types_default().string};function RoutedFilterChips_typeof(o){return RoutedFilterChips_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},RoutedFilterChips_typeof(o)}FilteredCollectionList.__docgenInfo={description:"",methods:[],displayName:"FilteredCollectionList",props:{results:{defaultValue:{value:"[]",computed:!1},required:!1},summary:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"object"},required:!1},itemsPerPage:{defaultValue:{value:"10",computed:!1},required:!1},sortOptions:{defaultValue:{value:"null",computed:!1},required:!1},count:{defaultValue:{value:"0",computed:!1},required:!1},maxItemsToPaginate:{defaultValue:{value:"10000",computed:!1},description:"",type:{name:"number"},required:!1},baseDownloadLink:{defaultValue:{value:"null",computed:!1},required:!1},titleRenderer:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},sanitizeFiltersForAnalytics:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},collectionItemTemplate:{defaultValue:{value:"(\n  item,\n  titleRenderer,\n  useReactRouter,\n  pushAnalytics,\n  selectedFilters,\n  sanitizeFiltersForAnalytics\n) => {\n  return (\n    <CollectionItem\n      {...item}\n      key={item.id}\n      titleRenderer={titleRenderer}\n      useReactRouter={useReactRouter}\n      onClick={() => {\n        pushAnalytics({\n          event: 'filterResultClick',\n          extra: {\n            ...filtersToAnalytics(selectedFilters),\n            ...(sanitizeFiltersForAnalytics &&\n              sanitizeFiltersForAnalytics(getSelectedFilters(selectedFilters))),\n          },\n        })\n      }}\n    />\n  )\n}",computed:!1},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1},id:{name:"string",required:!1},progressMessage:{name:"string",required:!1},renderProgress:{name:"func",required:!1},startOnRender:{name:"shape",value:{payload:{name:"shape",value:{page:{name:"number",required:!1},filters:{name:"object",required:!1},search:{name:"string",required:!1}},required:!0},onSuccessDispatch:{name:"string",required:!1}},required:!0}}},required:!1},isComplete:{description:"",type:{name:"bool"},required:!1},children:{description:"",type:{name:"node"},required:!1},collectionName:{description:"",type:{name:"string"},required:!1},router:{description:"",type:{name:"shape",value:{location:{name:"shape",value:{search:{name:"string",required:!0},query:{name:"object",required:!0}},required:!1}}},required:!1},maxItemsToDownload:{description:"",type:{name:"number"},required:!1},selectedFilters:{description:"",type:{name:"shape",value:{label:{name:"string",required:!1},value:{name:"string",required:!1}}},required:!1},defaultQueryParams:{description:"",type:{name:"object"},required:!1},width:{description:"",type:{name:"string"},required:!1}}};var RoutedFilterChips_excluded=["qsParamName","selectedOptions"];function RoutedFilterChips_extends(){return RoutedFilterChips_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedFilterChips_extends.apply(null,arguments)}function RoutedFilterChips_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 RoutedFilterChips_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedFilterChips_ownKeys(Object(t),!0).forEach((function(r){RoutedFilterChips_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedFilterChips_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedFilterChips_defineProperty(e,r,t){return(r=function RoutedFilterChips_toPropertyKey(t){var i=function RoutedFilterChips_toPrimitive(t,r){if("object"!=RoutedFilterChips_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedFilterChips_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedFilterChips_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RoutedFilterChips_slicedToArray(r,e){return function RoutedFilterChips_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function RoutedFilterChips_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 RoutedFilterChips_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return RoutedFilterChips_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)?RoutedFilterChips_arrayLikeToArray(r,a):void 0}}(r,e)||function RoutedFilterChips_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 RoutedFilterChips_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var RoutedFilterChips=function RoutedFilterChips(_ref3){var qsParamName=_ref3.qsParamName,_ref3$selectedOptions=_ref3.selectedOptions,selectedOptions=void 0===_ref3$selectedOptions?[]:_ref3$selectedOptions,props=function RoutedFilterChips_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedFilterChips_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,RoutedFilterChips_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),clearFilter=function clearFilter(value){var newQsParams=function removeParamFromQs(qsParams,targetParam){var targetValue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.entries(qsParams).map((function(_ref){var key=RoutedFilterChips_slicedToArray(_ref,1)[0];if(key===targetParam)return Array.isArray(qsParams[key])?RoutedFilterChips_objectSpread(RoutedFilterChips_objectSpread({},qsParams),{},RoutedFilterChips_defineProperty({},key,qsParams[key].filter((function(x){return x!==targetValue})))):(0,lodash.omit)(qsParams,targetParam)})).filter(Boolean)[0]}(lib_default().parse(location.search.slice(1)),qsParamName,value);navigate({search:lib_default().stringify(newQsParams)})};return selectedOptions.map((function(_ref4){var value=_ref4.value,label=_ref4.label,categoryLabel=_ref4.categoryLabel;return react.createElement(Chip.A,RoutedFilterChips_extends({key:value,value,onClick:function onClick(){return clearFilter(value)}},props),categoryLabel?"".concat(categoryLabel,": ").concat(label):label)}))};RoutedFilterChips.propTypes={qsParamName:prop_types_default().string.isRequired,selectedOptions:prop_types_default().arrayOf(prop_types_default().shape({value:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,categoryLabel:prop_types_default().string}))};const components_RoutedFilterChips=RoutedFilterChips;var FilterReset_templateObject,Chip=__webpack_require__("./src/client/components/Chip/index.jsx"),FilterReset_excluded=["children"],FilterReset_excluded2=["sortby","page"];function FilterReset_extends(){return FilterReset_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FilterReset_extends.apply(null,arguments)}function FilterReset_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function FilterReset_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var FilterReset_StyledButtonLink=(0,styled_components_browser_esm.Ay)(ButtonLink.A)(FilterReset_templateObject||(FilterReset_templateObject=function FilterReset_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),FilterReset=function FilterReset(_ref){var children=_ref.children,props=FilterReset_objectWithoutProperties(_ref,FilterReset_excluded),navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_qs$parse=lib_default().parse(location.search.slice(1)),filters=(_qs$parse.sortby,_qs$parse.page,FilterReset_objectWithoutProperties(_qs$parse,FilterReset_excluded2));return react.createElement(react.Fragment,null,(0,lodash.isEmpty)(filters)?null:react.createElement(FilterReset_StyledButtonLink,FilterReset_extends({},props,{onClick:function onClick(){navigate("".concat(location.pathname,"?page=1"))}}),children))};FilterReset.propTypes={children:prop_types_default().node.isRequired};const components_FilterReset=FilterReset;FilterReset.__docgenInfo={description:"",methods:[],displayName:"FilterReset",props:{children:{description:"",type:{name:"node"},required:!0}}};__webpack_require__("./src/client/components/Checkbox/index.jsx");var CheckboxGroupField=__webpack_require__("./src/client/components/CheckboxGroupField/index.jsx");function RoutedCheckboxGroupField_typeof(o){return RoutedCheckboxGroupField_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},RoutedCheckboxGroupField_typeof(o)}var RoutedCheckboxGroupField_excluded=["qsParam"];function RoutedCheckboxGroupField_extends(){return RoutedCheckboxGroupField_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedCheckboxGroupField_extends.apply(null,arguments)}function RoutedCheckboxGroupField_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 RoutedCheckboxGroupField_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedCheckboxGroupField_ownKeys(Object(t),!0).forEach((function(r){RoutedCheckboxGroupField_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedCheckboxGroupField_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedCheckboxGroupField_defineProperty(e,r,t){return(r=function RoutedCheckboxGroupField_toPropertyKey(t){var i=function RoutedCheckboxGroupField_toPrimitive(t,r){if("object"!=RoutedCheckboxGroupField_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedCheckboxGroupField_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedCheckboxGroupField_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var RoutedCheckboxGroupField=function RoutedCheckboxGroupField(_ref){var qsParam=_ref.qsParam,props=function RoutedCheckboxGroupField_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedCheckboxGroupField_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,RoutedCheckboxGroupField_excluded),qsParams=lib_default().parse(location.search.slice(1)),navigate=(0,dist.Zp)();return void 0===props.options?null:react.createElement(CheckboxGroupField.A,RoutedCheckboxGroupField_extends({},props,{onChange:function onChange(pickedOptions){return navigate({search:lib_default().stringify(RoutedCheckboxGroupField_objectSpread(RoutedCheckboxGroupField_objectSpread({},qsParams),{},RoutedCheckboxGroupField_defineProperty(RoutedCheckboxGroupField_defineProperty({},qsParam,pickedOptions.map((function(_ref2){return _ref2.value}))),"page",1)))})}}))};RoutedCheckboxGroupField.propTypes={name:prop_types_default().string.isRequired};const components_RoutedCheckboxGroupField=RoutedCheckboxGroupField;RoutedCheckboxGroupField.__docgenInfo={description:"",methods:[],displayName:"RoutedCheckboxGroupField",props:{name:{description:"",type:{name:"string"},required:!0}}};const timeline_namespaceObject=__webpack_require__.p+"static/media/timeline.ea4a156a.png";var NoInvestmentProjects_templateObject,NoInvestmentProjects_templateObject2,NoInvestmentProjects_templateObject3,NoInvestmentProjects_templateObject4,NoInvestmentProjects_templateObject5;function NoInvestmentProjects_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledContainer=(0,styled_components_browser_esm.Ay)("div")(NoInvestmentProjects_templateObject||(NoInvestmentProjects_templateObject=NoInvestmentProjects_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  "," {\n    margin: 25px 0 50px 0;\n  }\n  "," {\n    margin: 45px 0 95px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.qs.DESKTOP),NoInvestmentProjects_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(NoInvestmentProjects_templateObject2||(NoInvestmentProjects_templateObject2=NoInvestmentProjects_taggedTemplateLiteral(["\n  color: ",";\n  "," {\n    margin-bottom: 25px;\n    font-size: ",";\n  }\n"])),colours.hM,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_24),StyledImage=(0,styled_components_browser_esm.Ay)("img")(NoInvestmentProjects_templateObject3||(NoInvestmentProjects_templateObject3=NoInvestmentProjects_taggedTemplateLiteral(["\n  display: none;\n  "," {\n    display: block;\n    width: 655px;\n    margin-bottom: ",";\n  }\n  "," {\n    width: 760px;\n    margin: "," 0 35px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.DESKTOP,govuk_react_constants_esm.Es.SCALE_3),NoInvestmentProjects_StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(NoInvestmentProjects_templateObject4||(NoInvestmentProjects_templateObject4=NoInvestmentProjects_taggedTemplateLiteral(["\n  color: ",";\n  margin-bottom: ",";\n  "," {\n    margin-left: 7px;\n    margin-bottom: 40px;\n  }\n"])),colours.hM,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.qs.TABLET),NoInvestmentProjects_StyledListItem=(0,styled_components_browser_esm.Ay)("li")(NoInvestmentProjects_templateObject5||(NoInvestmentProjects_templateObject5=NoInvestmentProjects_taggedTemplateLiteral(["\n  "," {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_24),NoInvestmentProjects=function NoInvestmentProjects(){return react.createElement(StyledContainer,null,react.createElement(govuk_react_heading_esm.H3,{as:govuk_react_heading_esm.H1},"No investment projects"),react.createElement(NoInvestmentProjects_StyledParagraph,null,"View and track investment projects from your dashboard"),react.createElement(StyledImage,{src:timeline_namespaceObject,alt:"An image of the stage timeline and estimated land date"}),react.createElement("div",null,react.createElement(NoInvestmentProjects_StyledParagraph,null,"Once added, you'll be able to:"),react.createElement(NoInvestmentProjects_StyledUnorderedList,{listStyleType:"bullet"},react.createElement(NoInvestmentProjects_StyledListItem,null,"view the progress of each project"),react.createElement(NoInvestmentProjects_StyledListItem,null,"move projects onto the next stage"),react.createElement(NoInvestmentProjects_StyledListItem,null,"view estimated land dates"),react.createElement(NoInvestmentProjects_StyledListItem,null,"view project summaries for the next financial year."))),react.createElement(govuk_react_button_esm.A,{as:"a",href:urls.investments.index()},"Add project"))};const MyInvestmentProjects_NoInvestmentProjects=NoInvestmentProjects;NoInvestmentProjects.__docgenInfo={description:"",methods:[],displayName:"NoInvestmentProjects"};__webpack_require__("./node_modules/core-js/modules/es.array.sort.js");var InvestmentCheckbox_templateObject,MyInvestmentProjects_state=__webpack_require__("./src/client/components/MyInvestmentProjects/state.js"),govuk_react_checkbox_esm=__webpack_require__("./node_modules/@govuk-react/checkbox/dist/govuk-react-checkbox.esm.js"),InvestmentCheckbox_excluded=["children"];var StyledCheckbox=(0,styled_components_browser_esm.Ay)(govuk_react_checkbox_esm.A)(InvestmentCheckbox_templateObject||(InvestmentCheckbox_templateObject=function InvestmentCheckbox_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: flex;\n  align-items: center;\n  min-height: 26px;\n  margin-bottom: 0;\n\n  & > span {\n    margin: 0;\n    padding: 0;\n    white-space: nowrap;\n\n    &::before {\n      background: ",";\n      width: 26px;\n      height: 26px;\n    }\n\n    &::after {\n      top: 6px;\n      left: ",";\n      width: 12px;\n      height: 6px;\n      box-sizing: unset;\n      border-width: 0 0 "," ",";\n    }\n  }\n\n  input {\n    width: 26px;\n    height: 26px;\n    margin: 0;\n    padding: 0;\n  }\n"])),colours.UE,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.d5,govuk_react_constants_esm.d5),InvestmentCheckbox=function InvestmentCheckbox(_ref){var children=_ref.children,rest=function InvestmentCheckbox_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentCheckbox_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentCheckbox_excluded);return react.createElement(StyledCheckbox,rest,children)};InvestmentCheckbox.propTypes={children:prop_types_default().node.isRequired,onChange:prop_types_default().func.isRequired,checked:prop_types_default().bool,disabled:prop_types_default().bool,name:prop_types_default().string};const MyInvestmentProjects_InvestmentCheckbox=InvestmentCheckbox;InvestmentCheckbox.__docgenInfo={description:"",methods:[],displayName:"InvestmentCheckbox",props:{children:{description:"",type:{name:"node"},required:!0},onChange:{description:"",type:{name:"func"},required:!0},checked:{description:"",type:{name:"bool"},required:!1},disabled:{description:"",type:{name:"bool"},required:!1},name:{description:"",type:{name:"string"},required:!1}}};var InvestmentListShowDetails_templateObject,InvestmentListShowDetails_excluded=["children"];function InvestmentListShowDetails_extends(){return InvestmentListShowDetails_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentListShowDetails_extends.apply(null,arguments)}var CheckboxContainer=(0,styled_components_browser_esm.Ay)("div")(InvestmentListShowDetails_templateObject||(InvestmentListShowDetails_templateObject=function InvestmentListShowDetails_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding: ",";\n"])),govuk_react_constants_esm.Es.SCALE_2),InvestmentListShowDetails=function InvestmentListShowDetails(_ref){var children=_ref.children,rest=function InvestmentListShowDetails_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentListShowDetails_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentListShowDetails_excluded);return react.createElement(CheckboxContainer,null,react.createElement(MyInvestmentProjects_InvestmentCheckbox,InvestmentListShowDetails_extends({name:"investmentListShowDetails"},rest),children))};InvestmentListShowDetails.propTypes={children:prop_types_default().node.isRequired,onChange:prop_types_default().func.isRequired,checked:prop_types_default().bool.isRequired,disabled:prop_types_default().bool.isRequired};InvestmentListShowDetails.__docgenInfo={description:"",methods:[],displayName:"InvestmentListShowDetails",props:{children:{description:"",type:{name:"node"},required:!0},onChange:{description:"",type:{name:"func"},required:!0},checked:{description:"",type:{name:"bool"},required:!0},disabled:{description:"",type:{name:"bool"},required:!0}}};var InvestmentListSelect_excluded=["initialValue","label","options","onChange","input"];function InvestmentListSelect_typeof(o){return InvestmentListSelect_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},InvestmentListSelect_typeof(o)}function InvestmentListSelect_extends(){return InvestmentListSelect_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentListSelect_extends.apply(null,arguments)}function InvestmentListSelect_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 InvestmentListSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentListSelect_ownKeys(Object(t),!0).forEach((function(r){InvestmentListSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentListSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentListSelect_defineProperty(e,r,t){return(r=function InvestmentListSelect_toPropertyKey(t){var i=function InvestmentListSelect_toPrimitive(t,r){if("object"!=InvestmentListSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentListSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentListSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var InvestmentListSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(Select.A)(InvestmentListSelect_defineProperty({alignItems:"flex-start",flexDirection:"column",flex:"1 1",select:{width:"100%",minWidth:170},marginBottom:govuk_react_constants_esm.Es.SCALE_1},govuk_react_constants_esm.qs.DESKTOP,{margin:govuk_react_constants_esm.Es.SCALE_1})),InvestmentListSelect=function InvestmentListSelect(_ref){var initialValue=_ref.initialValue,label=_ref.label,options=_ref.options,onChange=_ref.onChange,input=_ref.input,props=function InvestmentListSelect_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentListSelect_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentListSelect_excluded);return react.createElement(InvestmentListSelect_StyledSelect,InvestmentListSelect_extends({label,input:InvestmentListSelect_objectSpread({onChange,initialValue},input)},props),options.map((function(_ref2,index){var id=_ref2.id,name=_ref2.name;return react.createElement("option",{value:id,"aria-label":name,key:index,id:(0,lodash.kebabCase)(name)},name)})))};const MyInvestmentProjects_InvestmentListSelect=InvestmentListSelect;InvestmentListSelect.__docgenInfo={description:"",methods:[],displayName:"InvestmentListSelect"};var InvestmentEstimatedLandDate_templateObject,InvestmentEstimatedLandDate_templateObject2,InvestmentEstimatedLandDate_templateObject3,InvestmentEstimatedLandDate_templateObject4,InvestmentEstimatedLandDate_templateObject5,InvestmentEstimatedLandDate_templateObject6,InvestmentEstimatedLandDate_templateObject7,PROJECT_STATUS_OPTIONS=[{name:"Show all",id:"all-statuses"},{name:"Ongoing",id:"ongoing"},{name:"Delayed",id:"delayed"},{name:"Abandoned",id:"abandoned"},{name:"Lost",id:"lost"},{name:"Dormant",id:"dormant"}],STAGE_OPTIONS=[{name:"Show all",id:"all-stages"},{name:"Prospect",id:"8a320cc9-ae2e-443e-9d26-2f36452c2ced"},{name:"Assign PM",id:"c9864359-fb1a-4646-a4c1-97d10189fc03"},{name:"Active",id:"7606cc19-20da-4b74-aba1-2cec0d753ad8"},{name:"Verify win",id:"49b8f6f3-0c50-4150-a965-2c974f3149e3"},{name:"Won",id:"945ea6d1-eee3-4f5b-9144-84a75b71b8e6"}],SORT_OPTIONS=[{name:"Recently created",id:"created_on:desc"},{name:"Recently updated",id:"modified_on:desc"},{name:"Earliest land date",id:"estimated_land_date:asc"},{name:"Latest land date",id:"estimated_land_date:desc"},{name:"Project name (A-Z)",id:"name:asc"},{name:"Project name (Z-A)",id:"name:desc"}],INCOMPLETE_FIELDS={client_cannot_provide_total_investment:"Can client provide total investment value?",number_new_jobs:"Number of new jobs",strategic_drivers:"Strategic drivers behind this investment",client_requirements:"Client requirements",client_considering_other_countries:"Is the client considering other countries?",total_investment:"Total investment",uk_region_locations:"Possible UK locations for this investment",project_manager:"Project Manager",project_assurance_adviser:"Project Assurance Adviser",government_assistance:"Is this project receiving government financial assistance?",number_safeguarded_jobs:"Number of safeguarded jobs",r_and_d_budget:"Does this project have budget for a research and development?",non_fdi_r_and_d_budget:"Is this project associated with a non-FDI R&D project?",new_tech_to_uk:"Does the project bring ‘New To World’ Technology, IP or Business Model to the UK site?",export_revenue:"Will the UK company export a significant proportion of their products and services produced in the UK as a result of the FDI project?",address_1:"Street",address_town:"Town",address_postcode:"Postcode",actual_uk_regions:"UK regions landed",actual_land_date:"Actual land date",average_salary:"Average salary of new jobs",client_cannot_provide_foreign_investment:"Can client provide capital expenditure value?",delivery_partners:"Delivery partners",competitor_countries:"Competitor countries",foreign_equity_investment:"Foreign equity investment",associated_non_fdi_r_and_d_project:"Non-FDI R&D project",fdi_type:"FDI type",specific_programmes:"Specific investment programme",uk_company:"UK recipient company",investor_type:"Investor type",level_of_involvement:"Level of investor involvement"},STAGE_TAG_COLOURS={Prospect:"purple","Assign PM":"red",Active:"blue","Verify win":"yellow",Won:"green"},Projects_constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js"),InvestmentEstimatedLandDate_excluded=["estimatedLandDate"];function InvestmentEstimatedLandDate_extends(){return InvestmentEstimatedLandDate_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentEstimatedLandDate_extends.apply(null,arguments)}function InvestmentEstimatedLandDate_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var InvestmentEstimatedLandDate_require=__webpack_require__("./src/client/utils/date.js"),formatWithoutParsing=InvestmentEstimatedLandDate_require.formatWithoutParsing,getDifferenceInDays=InvestmentEstimatedLandDate_require.getDifferenceInDays,getDifferenceInDaysLabel=InvestmentEstimatedLandDate_require.getDifferenceInDaysLabel,StyledPanel=(0,styled_components_browser_esm.Ay)("div")(InvestmentEstimatedLandDate_templateObject||(InvestmentEstimatedLandDate_templateObject=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  padding: ",";\n  color: ",";\n  background-color: ",";\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n"])),govuk_react_constants_esm.Es.SCALE_2,colours.Uv,colours.Iz),GreenPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject2||(InvestmentEstimatedLandDate_templateObject2=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.EI,.3)),AmberPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject3||(InvestmentEstimatedLandDate_templateObject3=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Iz,.5)),RedPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject4||(InvestmentEstimatedLandDate_templateObject4=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Bk,.4)),GreyPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject5||(InvestmentEstimatedLandDate_templateObject5=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Pe,.5)),StyledTitle=(0,styled_components_browser_esm.Ay)("h2")(InvestmentEstimatedLandDate_templateObject6||(InvestmentEstimatedLandDate_templateObject6=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  margin: 0;\n  text-align: center;\n  font-size: ",";\n  font-weight: ",";\n"])),govuk_react_constants_esm.SG.SIZE_24,govuk_react_constants_esm.sO.bold),StyledBody=(0,styled_components_browser_esm.Ay)("div")(InvestmentEstimatedLandDate_templateObject7||(InvestmentEstimatedLandDate_templateObject7=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  text-align: center;\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_14),InvestmentEstimatedLandDate=function InvestmentEstimatedLandDate(_ref){var estimatedLandDate=_ref.estimatedLandDate,props=function InvestmentEstimatedLandDate_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentEstimatedLandDate_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentEstimatedLandDate_excluded),difference=getDifferenceInDays(estimatedLandDate),Panel=difference>=90?GreenPanel:difference>=30?AmberPanel:difference>=0?RedPanel:GreyPanel;return react.createElement(Panel,InvestmentEstimatedLandDate_extends({"data-test":"estimated-land-date"},props),react.createElement(StyledBody,{"data-test":"estimated-land-date-label"},"Estimated land date"),react.createElement(StyledTitle,{"data-test":"estimated-land-date-countdown"},getDifferenceInDaysLabel(estimatedLandDate)),react.createElement(StyledBody,{"data-test":"estimated-land-date-date"},formatWithoutParsing(new Date(estimatedLandDate),constants.DATE_DAY_LONG_FORMAT)))};InvestmentEstimatedLandDate.propTypes={estimatedLandDate:prop_types_default().string.isRequired};const MyInvestmentProjects_InvestmentEstimatedLandDate=InvestmentEstimatedLandDate;InvestmentEstimatedLandDate.__docgenInfo={description:"",methods:[],displayName:"InvestmentEstimatedLandDate",props:{estimatedLandDate:{description:"",type:{name:"string"},required:!0}}};var InvestmentTimeline_excluded=["stage"];function InvestmentTimeline_extends(){return InvestmentTimeline_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentTimeline_extends.apply(null,arguments)}var InvestmentTimeline=function InvestmentTimeline(_ref){var stage=_ref.stage,props=function InvestmentTimeline_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentTimeline_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentTimeline_excluded);return react.createElement(Timeline.A,InvestmentTimeline_extends({stages:Projects_constants.s1,currentStage:stage.name},props))};InvestmentTimeline.propTypes={stage:prop_types_default().shape({name:prop_types_default().string.isRequired})};const MyInvestmentProjects_InvestmentTimeline=InvestmentTimeline;function InvestmentDetails_typeof(o){return InvestmentDetails_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},InvestmentDetails_typeof(o)}function InvestmentDetails_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 InvestmentDetails_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentDetails_ownKeys(Object(t),!0).forEach((function(r){InvestmentDetails_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentDetails_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentDetails_defineProperty(e,r,t){return(r=function InvestmentDetails_toPropertyKey(t){var i=function InvestmentDetails_toPrimitive(t,r){if("object"!=InvestmentDetails_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentDetails_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentDetails_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}InvestmentTimeline.__docgenInfo={description:"",methods:[],displayName:"InvestmentTimeline",props:{stage:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0}}},required:!1}}};var InvestmentDetails_format=__webpack_require__("./src/client/utils/date.js").format,InvestmentDetails_StyledDiv=(0,styled_components_browser_esm.Ay)("div")({height:"100%",backgroundColor:colours.WS,padding:"9px ".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_1," ").concat(govuk_react_constants_esm.Es.SCALE_2)}),InvestmentDetails_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")({fontSize:govuk_react_constants_esm.SG.SIZE_16,fontWeight:govuk_react_constants_esm.sO.bold,marginBottom:0}),StyledDL=(0,styled_components_browser_esm.Ay)("dl")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),lineHeightMixin={lineHeight:"1.5"},StyledDT=(0,styled_components_browser_esm.Ay)("dt")(InvestmentDetails_objectSpread({color:colours.hM,float:"left",clear:"left",marginRight:"5px"},lineHeightMixin)),StyledDD=(0,styled_components_browser_esm.Ay)("dd")(InvestmentDetails_objectSpread({},lineHeightMixin)),Truncate=(0,styled_components_browser_esm.Ay)("span")({display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),InvestmentDetails=function InvestmentDetails(_ref){var investor=_ref.investor,sector=_ref.sector,countryOrigin=_ref.countryOrigin,latestInteraction=_ref.latestInteraction;return react.createElement(InvestmentDetails_StyledDiv,{"data-test":"investment-details"},react.createElement(InvestmentDetails_StyledHeader,null,"Details"),react.createElement(StyledDL,null,react.createElement(StyledDT,null,"Investor:"),react.createElement(StyledDD,null,react.createElement(govuk_react_link_esm.A,{href:urls.companies.details(investor.id)},react.createElement(Truncate,null,investor.name))),react.createElement(StyledDT,null,"Sector:"),react.createElement(StyledDD,null,react.createElement(Truncate,null,sector.name)),countryOrigin&&react.createElement(react.Fragment,null,react.createElement(StyledDT,null,"Country of origin:"),react.createElement(StyledDD,null,countryOrigin.name)),latestInteraction&&react.createElement(react.Fragment,null,react.createElement(StyledDT,null,"Last interaction:"),react.createElement(StyledDD,null,InvestmentDetails_format(latestInteraction.date)),react.createElement(StyledDT,null,"Interaction subject:"),react.createElement(StyledDD,null,react.createElement(govuk_react_link_esm.A,{href:urls.interactions.detail(latestInteraction.id)},react.createElement(Truncate,null,latestInteraction.subject))))))};const MyInvestmentProjects_InvestmentDetails=InvestmentDetails;var InvestmentNextSteps_templateObject,InvestmentNextSteps_templateObject2,InvestmentNextSteps_templateObject3,InvestmentNextSteps_templateObject4,InvestmentNextSteps_templateObject5,InvestmentNextSteps_templateObject6;function InvestmentNextSteps_toConsumableArray(r){return function InvestmentNextSteps_arrayWithoutHoles(r){if(Array.isArray(r))return InvestmentNextSteps_arrayLikeToArray(r)}(r)||function InvestmentNextSteps_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||InvestmentNextSteps_unsupportedIterableToArray(r)||function InvestmentNextSteps_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 InvestmentNextSteps_slicedToArray(r,e){return function InvestmentNextSteps_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function InvestmentNextSteps_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)||InvestmentNextSteps_unsupportedIterableToArray(r,e)||function InvestmentNextSteps_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 InvestmentNextSteps_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return InvestmentNextSteps_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)?InvestmentNextSteps_arrayLikeToArray(r,a):void 0}}function InvestmentNextSteps_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function InvestmentNextSteps_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentDetails.__docgenInfo={description:"",methods:[],displayName:"InvestmentDetails"};var InvestmentNextSteps_StyledDiv=(0,styled_components_browser_esm.Ay)("div")(InvestmentNextSteps_templateObject||(InvestmentNextSteps_templateObject=InvestmentNextSteps_taggedTemplateLiteral(["\n  height: 100%;\n  /* Colour is in the Gov uk design system but not in our govuk-colors dependancy */\n  background-color: ",";\n  padding: 9px "," 8px ",";\n"])),(0,colours.B3)(colours.eM,.2),govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),InvestmentNextSteps_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")(InvestmentNextSteps_templateObject2||(InvestmentNextSteps_templateObject2=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-bottom: 0;\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.sO.bold),InvestmentNextSteps_StyledList=(0,styled_components_browser_esm.Ay)(govuk_react_esm.Xy)(InvestmentNextSteps_templateObject3||(InvestmentNextSteps_templateObject3=InvestmentNextSteps_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),InvestmentNextSteps_StyledListItem=(0,styled_components_browser_esm.Ay)(govuk_react_esm.ck)(InvestmentNextSteps_templateObject4||(InvestmentNextSteps_templateObject4=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n  /* I can't see any other way to override this margin */\n  margin-bottom: 0 !important;\n  &::marker {\n    font-size: 22px;\n    line-height: 1;\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16),OverflowWrapper=(0,styled_components_browser_esm.Ay)("span")(InvestmentNextSteps_templateObject5||(InvestmentNextSteps_templateObject5=InvestmentNextSteps_taggedTemplateLiteral(["\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  display: block;\n  width: calc(100% - 8px);\n"]))),InvestmentNextSteps_StyledLink=(0,styled_components_browser_esm.Ay)("a")(InvestmentNextSteps_templateObject6||(InvestmentNextSteps_templateObject6=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),InvestmentNextSteps=function InvestmentNextSteps(_ref){var nextSteps=_ref.nextSteps,nextStage=_ref.nextStage,projectId=_ref.projectId,stepsToComplete=Object.entries(INCOMPLETE_FIELDS).reduce((function(newObj,_ref2){var _ref3=InvestmentNextSteps_slicedToArray(_ref2,2),key=_ref3[0],value=_ref3[1];return nextSteps&&nextSteps.includes(key)?[].concat(InvestmentNextSteps_toConsumableArray(newObj),[value]):newObj}),[]).sort(),totalSteps=stepsToComplete.length,hasStepsToComplete=!!totalSteps,additionalSteps=totalSteps>=3?totalSteps-3:0,hasAdditonalSteps=!!additionalSteps;return react.createElement(InvestmentNextSteps_StyledDiv,{"data-test":"investment-steps"},react.createElement(InvestmentNextSteps_StyledHeader,null,"Next step",totalSteps>1&&"s"),hasStepsToComplete&&react.createElement(react.Fragment,null,react.createElement(InvestmentNextSteps_StyledList,{listStyleType:"bullet"},stepsToComplete.map((function(step,i){return i<=2&&react.createElement(InvestmentNextSteps_StyledListItem,{key:i},react.createElement(OverflowWrapper,null,step))})),hasAdditonalSteps&&react.createElement(InvestmentNextSteps_StyledListItem,null,"Plus ",additionalSteps," additional field",additionalSteps>1&&"s")),react.createElement(InvestmentNextSteps_StyledLink,{href:urls.investments.projects.details(projectId)},"Add details to move to ",nextStage," stage")))};InvestmentNextSteps.propTypes={nextSteps:prop_types_default().arrayOf(prop_types_default().string),nextStage:prop_types_default().string.isRequired,projectId:prop_types_default().string.isRequired};const MyInvestmentProjects_InvestmentNextSteps=InvestmentNextSteps;function InvestmentListItem_typeof(o){return InvestmentListItem_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},InvestmentListItem_typeof(o)}var InvestmentListItem_templateObject,InvestmentListItem_templateObject2,InvestmentListItem_templateObject3,InvestmentListItem_templateObject4;function InvestmentListItem_defineProperty(e,r,t){return(r=function InvestmentListItem_toPropertyKey(t){var i=function InvestmentListItem_toPrimitive(t,r){if("object"!=InvestmentListItem_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentListItem_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentListItem_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function InvestmentListItem_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentNextSteps.__docgenInfo={description:"",methods:[],displayName:"InvestmentNextSteps",props:{nextSteps:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},nextStage:{description:"",type:{name:"string"},required:!0},projectId:{description:"",type:{name:"string"},required:!0}}};var Row=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_templateObject||(InvestmentListItem_templateObject=InvestmentListItem_taggedTemplateLiteral(["\n  margin-bottom: ",";\n\n  "," {\n    display: flex;\n    align-items: stretch;\n    justify-content: space-between;\n    flex-wrap: wrap;\n  }\n\n  "," {\n    flex-wrap: nowrap;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.LARGESCREEN,govuk_react_constants_esm.qs.DESKTOP),Col=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_templateObject2||(InvestmentListItem_templateObject2=InvestmentListItem_taggedTemplateLiteral(["\n  margin-bottom: ",";\n\n  "," {\n    width: ",";\n    margin-bottom: 0;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.LARGESCREEN,(function(_ref){return _ref.fullWidth?"100%":"calc(50% - ".concat(govuk_react_constants_esm.Es.SCALE_2,")")})),InvestmentListItem_ListItem=(0,styled_components_browser_esm.Ay)("li")(InvestmentListItem_defineProperty({padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0"),borderBottom:"1px solid ".concat(colours.pA),"&:last-child":{borderBottom:"none"},display:"grid",columnGap:govuk_react_constants_esm.Es.SCALE_2,rowGap:govuk_react_constants_esm.Es.SCALE_3,gridTemplateAreas:'\n    "tags"\n    "title"\n    "details"\n    "actions"\n  ',gridTemplateColumns:"100%"},govuk_react_constants_esm.qs.DESKTOP,{gridTemplateColumns:"minmax(130px, 2fr) minmax(140px, 1fr) minmax(0, 170px)",gridTemplateAreas:'\n      "title tags actions"\n      "details details details"\n    '})),ListItemTitle=(0,styled_components_browser_esm.Ay)("h2")({fontSize:govuk_react_constants_esm.SG.SIZE_19,fontWeight:govuk_react_constants_esm.sO.bold,margin:0,gridArea:"title"}),ListItemTags=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({gridArea:"tags"},govuk_react_constants_esm.qs.DESKTOP,{padding:"0 ".concat(govuk_react_constants_esm.Es.SCALE_5),marginBottom:"-".concat(govuk_react_constants_esm.Es.SCALE_6)})),ListItemTagRow=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({display:"inline-block",paddingBottom:govuk_react_constants_esm.Es.SCALE_4,marginRight:govuk_react_constants_esm.Es.SCALE_1},govuk_react_constants_esm.qs.DESKTOP,{minWidth:"140px",display:"block"})),ListItemActions=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({boxSizing:"border-box",gridArea:"actions",a:{width:"100%",marginBottom:0}},govuk_react_constants_esm.qs.DESKTOP,{marginBottom:"-".concat(govuk_react_constants_esm.Es.SCALE_6)})),ListItemDetails=(0,styled_components_browser_esm.Ay)(ToggleSection.xQ)({maxWidth:"100%",gridArea:"details"}),StyledInvestmentTimeline=(0,styled_components_browser_esm.Ay)(MyInvestmentProjects_InvestmentTimeline)(InvestmentListItem_templateObject3||(InvestmentListItem_templateObject3=InvestmentListItem_taggedTemplateLiteral(["\n  display: none;\n  box-sizing: border-box;\n\n  "," {\n    display: flex;\n    flex: 1 0 100%;\n  }\n\n  "," {\n    flex: 1 0 335px;\n  }\n"])),govuk_react_constants_esm.qs.LARGESCREEN,govuk_react_constants_esm.qs.DESKTOP),StyledInvestmentEstimatedLandDate=(0,styled_components_browser_esm.Ay)(MyInvestmentProjects_InvestmentEstimatedLandDate)(InvestmentListItem_templateObject4||(InvestmentListItem_templateObject4=InvestmentListItem_taggedTemplateLiteral(["\n  flex: 1 1 100%;\n  box-sizing: border-box;\n  min-height: 93px;\n\n  "," {\n    flex: 0 1 152px;\n  }\n"])),govuk_react_constants_esm.qs.DESKTOP),InvestmentListItem=function InvestmentListItem(_ref2){var id=_ref2.id,name=_ref2.name,stage=_ref2.stage,status=_ref2.status,estimated_land_date=_ref2.estimated_land_date,investor_company=_ref2.investor_company,project_code=_ref2.project_code,sector=_ref2.sector,country_investment_originates_from=_ref2.country_investment_originates_from,latest_interaction=_ref2.latest_interaction,incomplete_fields=_ref2.incomplete_fields,hasStepsToComplete=!!incomplete_fields.length;return react.createElement(InvestmentListItem_ListItem,{"data-test":"projects-list-item"},react.createElement(ListItemTitle,{"data-test":"project-title"},react.createElement("a",{href:"".concat(urls.investments.projects.details(id))},name)),react.createElement(ListItemTags,null,react.createElement(ListItemTagRow,null,react.createElement(Tag.A,{colour:STAGE_TAG_COLOURS[stage.name],"data-test":"project-stage-tag","aria-label":"project stage"},stage.name)),react.createElement(ListItemTagRow,null,react.createElement(Tag.A,{colour:"grey","data-test":"project-status-tag","aria-label":"project status"},status))),react.createElement(ListItemActions,null,react.createElement(govuk_react_button_esm.A,{buttonColour:colours.ft,href:urls.investments.projects.interactions.index(id),as:"a","data-test":"add-interaction"},"View interactions")),react.createElement(ListItemDetails,{id,label:project_code,"data-test":"project-details"},react.createElement(Row,null,react.createElement(StyledInvestmentTimeline,{stage}),react.createElement(StyledInvestmentEstimatedLandDate,{estimatedLandDate:estimated_land_date})),react.createElement(Row,null,react.createElement(Col,{fullWidth:!hasStepsToComplete},react.createElement(MyInvestmentProjects_InvestmentDetails,{investor:investor_company,sector,countryOrigin:country_investment_originates_from,latestInteraction:latest_interaction})),hasStepsToComplete&&react.createElement(Col,null,react.createElement(MyInvestmentProjects_InvestmentNextSteps,{nextSteps:incomplete_fields,nextStage:Projects_constants.s1[Projects_constants.s1.indexOf(stage.name)+1],projectId:id})))))};InvestmentListItem.propTypes={id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired,stage:prop_types_default().shape({name:prop_types_default().string}).isRequired,estimated_land_date:prop_types_default().string.isRequired,investor_company:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired};const MyInvestmentProjects_InvestmentListItem=InvestmentListItem;InvestmentListItem.__docgenInfo={description:"",methods:[],displayName:"InvestmentListItem",props:{id:{description:"",type:{name:"string"},required:!0},name:{description:"",type:{name:"string"},required:!0},project_code:{description:"",type:{name:"string"},required:!0},stage:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1}}},required:!0},estimated_land_date:{description:"",type:{name:"string"},required:!0},investor_company:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0}}};var InvestmentList_templateObject,InvestmentList_excluded=["items","isPaginated","showDetails"];function InvestmentList_extends(){return InvestmentList_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentList_extends.apply(null,arguments)}var StyledOrderedList=(0,styled_components_browser_esm.Ay)("ol")(InvestmentList_templateObject||(InvestmentList_templateObject=function InvestmentList_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-top: 0;\n  ","\n"])),(function(_ref){return _ref.isPaginated&&"border-bottom: 1px solid ".concat(colours.pA,";")})),InvestmentList=function InvestmentList(_ref2){var items=_ref2.items,isPaginated=_ref2.isPaginated,showDetails=_ref2.showDetails,props=function InvestmentList_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentList_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,InvestmentList_excluded);return react.createElement(StyledOrderedList,InvestmentList_extends({isPaginated},props),items.map((function(item){return react.createElement(MyInvestmentProjects_InvestmentListItem,InvestmentList_extends({key:item.id,showDetails},item))})))};InvestmentList.propTypes={items:prop_types_default().array.isRequired};const MyInvestmentProjects_InvestmentList=InvestmentList;InvestmentList.__docgenInfo={description:"",methods:[],displayName:"InvestmentList",props:{items:{description:"",type:{name:"array"},required:!0}}};var nivo_pie_es=__webpack_require__("./node_modules/@nivo/pie/dist/nivo-pie.es.js"),StyledLegend=(0,styled_components_browser_esm.Ay)("figcaption")({}),Legend_StyledList=(0,styled_components_browser_esm.Ay)("ul")({listStyle:"none",paddingLeft:govuk_react_constants_esm.Es.SCALE_2}),Legend_StyledListItem=(0,styled_components_browser_esm.Ay)("li")((function(_ref){var colour=_ref.colour;return{margin:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0"),position:"relative",textIndent:"1.8em","&::before":{content:'""',position:"absolute",left:0,bottom:0,backgroundColor:colour,width:"1.2em",height:"1.2em"}}})),Legend=function Legend(_ref2){var data=_ref2.data;return react.createElement(StyledLegend,{"data-test":"pie-chart-legend"},react.createElement(Legend_StyledList,null,data.map((function(_ref3){var id=_ref3.id,name=_ref3.name,value=_ref3.value,link=_ref3.link,colour=_ref3.colour;return react.createElement(Legend_StyledListItem,{key:name,colour,"data-test":"pie-chart-legend-".concat(name)},value?react.createElement(govuk_react_esm.N_,{href:link},id):id," (",value,")")}))))};Legend.propTypes={data:prop_types_default().arrayOf(prop_types_default().shape({name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string,colour:prop_types_default().string})).isRequired};const PieChart_Legend=Legend;Legend.__docgenInfo={description:"",methods:[],displayName:"Legend",props:{data:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!0}}};var StyledFigure=(0,styled_components_browser_esm.Ay)("figure")({border:"1px solid ".concat(colours.pA)}),StyledPieContainer=(0,styled_components_browser_esm.Ay)("div")((function(_ref){var height=_ref.height;return{paddingTop:govuk_react_constants_esm.Es.SCALE_3,height:"".concat(height,"px")}})),centredText=function centredText(text,fontSize,x,y){return react.createElement("text",{x,y,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"".concat(fontSize,"px"),fontWeight:govuk_react_constants_esm.sO.bold}},text)},PieChart=function PieChart(_ref2){var data=_ref2.data,_ref2$unit=_ref2.unit,unit=void 0===_ref2$unit?"":_ref2$unit,height=_ref2.height;return react.createElement(StyledFigure,null,react.createElement(StyledPieContainer,{height,"data-test":"pie-chart"},react.createElement(nivo_pie_es.fO,{theme:{fontSize:"16px"},data,colors:function colors(item){return item.data.colour},margin:{top:20,bottom:20},startAngle:-90,innerRadius:.75,padAngle:0,enableArcLabels:!1,isInteractive:!1,layers:["arcs",function CentredProjectTotal(_ref3){var dataWithArc=_ref3.dataWithArc,centerX=_ref3.centerX,centerY=_ref3.centerY,total=dataWithArc.reduce((function(accumulator,datum){return accumulator+datum.value}),0);return react.createElement(react.Fragment,null,centredText(total,60,centerX,centerY-20),centredText(pluralize_default()(unit,total),20,centerX,centerY+30))}]})),react.createElement(PieChart_Legend,{data}))};PieChart.propTypes={data:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string})).isRequired,height:prop_types_default().number,unit:prop_types_default().string};const components_PieChart=PieChart;PieChart.__docgenInfo={description:"",methods:[],displayName:"PieChart",props:{unit:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},data:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1}}}},required:!0},height:{description:"",type:{name:"number"},required:!1}}};var PersonalisedDashboard_state=__webpack_require__("./src/client/components/PersonalisedDashboard/state.js");function InvestmentProjectSummary_typeof(o){return InvestmentProjectSummary_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},InvestmentProjectSummary_typeof(o)}var InvestmentProjectSummary_excluded=["label","value"];function InvestmentProjectSummary_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 InvestmentProjectSummary_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentProjectSummary_ownKeys(Object(t),!0).forEach((function(r){InvestmentProjectSummary_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentProjectSummary_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentProjectSummary_defineProperty(e,r,t){return(r=function InvestmentProjectSummary_toPropertyKey(t){var i=function InvestmentProjectSummary_toPrimitive(t,r){if("object"!=InvestmentProjectSummary_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentProjectSummary_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentProjectSummary_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var segmentColours=[colours.hr,colours.hN,colours.ft,colours.Iz,colours.AV],InvestmentProjectSummary=function InvestmentProjectSummary(_ref2){var _ref2$summary=_ref2.summary,summary=void 0===_ref2$summary?[]:_ref2$summary;return react.createElement(components_PieChart,{unit:"Project",height:290,data:summary})};InvestmentProjectSummary.propTypes={summary:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string,colour:prop_types_default().string})).isRequired};const MyInvestmentProjects_InvestmentProjectSummary=(0,react_redux.connect)((function state2props(state){var unfilteredSummary=state[PersonalisedDashboard_state.ID].summary,projectsSummary=state[MyInvestmentProjects_state.ID].summary;return{summary:(projectsSummary.length?projectsSummary:unfilteredSummary).map((function(_ref,index){var label=_ref.label,value=_ref.value;return InvestmentProjectSummary_objectSpread(InvestmentProjectSummary_objectSpread({},function InvestmentProjectSummary_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentProjectSummary_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentProjectSummary_excluded)),{},{colour:segmentColours[index%segmentColours.length],value,id:label})}))}}))(InvestmentProjectSummary);function MyInvestmentProjects_typeof(o){return MyInvestmentProjects_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_typeof(o)}var MyInvestmentProjects_templateObject,MyInvestmentProjects_templateObject2;function MyInvestmentProjects_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentProjectSummary.__docgenInfo={description:"",methods:[],displayName:"InvestmentProjectSummary",props:{summary:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!1}}};var MyInvestmentProjects_StyledHeader=(0,styled_components_browser_esm.Ay)("header")(function MyInvestmentProjects_defineProperty(e,r,t){return(r=function MyInvestmentProjects_toPropertyKey(t){var i=function MyInvestmentProjects_toPrimitive(t,r){if("object"!=MyInvestmentProjects_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=MyInvestmentProjects_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==MyInvestmentProjects_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},govuk_react_constants_esm.qs.DESKTOP,{display:"flex",flexWrap:"wrap",margin:"-".concat(govuk_react_constants_esm.Es.SCALE_1," -").concat(govuk_react_constants_esm.Es.SCALE_2)})),MyInvestmentProjects_StyledParagraph=(0,styled_components_browser_esm.Ay)(govuk_react_esm.fz)(MyInvestmentProjects_templateObject||(MyInvestmentProjects_templateObject=MyInvestmentProjects_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),StyledListContainer=(0,styled_components_browser_esm.Ay)("div")(MyInvestmentProjects_templateObject2||(MyInvestmentProjects_templateObject2=MyInvestmentProjects_taggedTemplateLiteral(["\n  border-top: 1px solid ",";\n  margin-top: ",";\n"])),colours.pA,govuk_react_constants_esm.Es.SCALE_3),StyledCol=(0,styled_components_browser_esm.Ay)(govuk_react_esm.bn)((function(){return{paddingBottom:govuk_react_constants_esm.Es.SCALE_3}})),MyInvestmentProjects=function MyInvestmentProjects(_ref){var results=_ref.results,count=_ref.count,itemsPerPage=_ref.itemsPerPage,page=_ref.page,stage=_ref.stage,status=_ref.status,landDateOptions=_ref.landDateOptions,landDate=_ref.landDate,sort=_ref.sort,onLoad=_ref.onLoad,onSortChange=_ref.onSortChange,onStageChange=_ref.onStageChange,onStatusChange=_ref.onStatusChange,onLandDateChange=_ref.onLandDateChange,onPaginationClick=_ref.onPaginationClick,adviser=(_ref.onShowDetailsChange,_ref.adviser),showDetails=_ref.showDetails;return(0,react.useEffect)((function(){onLoad()}),[]),react.createElement(react.Fragment,null,react.createElement(govuk_react_esm.TW,null,react.createElement(StyledCol,{setWidth:"one-third"},react.createElement(MyInvestmentProjects_InvestmentProjectSummary,{adviser})),react.createElement(govuk_react_esm.bn,null,react.createElement("article",null,react.createElement(MyInvestmentProjects_StyledHeader,null,!1,react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-stage-label",input:{id:"my-projects-stage-select"},"data-test":"stage-select",label:"Stage",options:STAGE_OPTIONS,initialValue:stage,onChange:function onChange(event){return onStageChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-status-label",input:{id:"my-projects-status-select"},"data-test":"status-select",label:"Status",options:PROJECT_STATUS_OPTIONS,initialValue:status,onChange:function onChange(event){return onStatusChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-land-date-label",input:{id:"my-projects-land-date-select"},"data-test":"land-date-select",label:"Land date",options:landDateOptions,initialValue:landDate,onChange:function onChange(event){return onLandDateChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-sort-label",input:{id:"my-projects-sort-select"},"data-test":"sort-select",label:"Sort",options:SORT_OPTIONS,initialValue:sort,onChange:function onChange(event){return onSortChange(event.target.value)}})),react.createElement(StyledListContainer,null,react.createElement(Task.A.Status,{name:MyInvestmentProjects_state.c,id:MyInvestmentProjects_state.ID,progressMessage:"Loading your investment projects",startOnRender:{payload:{adviser,page,stage,status,landDate,sort},onSuccessDispatch:actions.yQE}},(function(){var totalPages=Math.ceil(count/itemsPerPage);return react.createElement(react.Fragment,null,results.length?react.createElement(react.Fragment,null,react.createElement(MyInvestmentProjects_InvestmentList,{"data-test":"my-investment-projects-list",items:results,isPaginated:totalPages>1,showDetails}),react.createElement(Pagination.A,{totalPages,activePage:page,onPageClick:onPaginationClick})):react.createElement(MyInvestmentProjects_StyledParagraph,null,"No investment projects"))})))))))};MyInvestmentProjects.propTypes={results:prop_types_default().array.isRequired,count:prop_types_default().number.isRequired,itemsPerPage:prop_types_default().number.isRequired,page:prop_types_default().number.isRequired,onStageChange:prop_types_default().func.isRequired,onStatusChange:prop_types_default().func.isRequired,onLandDateChange:prop_types_default().func.isRequired,onSortChange:prop_types_default().func.isRequired,onPaginationClick:prop_types_default().func.isRequired,onShowDetailsChange:prop_types_default().func.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired,showDetails:prop_types_default().bool.isRequired};const components_MyInvestmentProjects=(0,react_redux.connect)(MyInvestmentProjects_state.o,(function(dispatch){return{onLoad:function onLoad(){dispatch({type:actions.GD3})},onShowDetailsChange:function onShowDetailsChange(showDetails){dispatch({type:actions.rNT,showDetails})},onStageChange:function onStageChange(stage){dispatch({type:actions.L_p,stage,page:1}),dispatch({type:actions.CuW,stage,page:1})},onStatusChange:function onStatusChange(status){dispatch({type:actions.ttR,status,page:1}),dispatch({type:actions.CuW,status,page:1})},onLandDateChange:function onLandDateChange(landDate){dispatch({type:actions.JlV,landDate,page:1}),dispatch({type:actions.CuW,landDate,page:1})},onSortChange:function onSortChange(sort){dispatch({type:actions.N84,sort,page:1}),dispatch({type:actions.CuW,sort,page:1})},onPaginationClick:function onPaginationClick(page){dispatch({type:actions.Fd_,page}),dispatch({type:actions.CuW,page})}}}))(MyInvestmentProjects);MyInvestmentProjects.__docgenInfo={description:"",methods:[],displayName:"MyInvestmentProjects",props:{results:{description:"",type:{name:"array"},required:!0},count:{description:"",type:{name:"number"},required:!0},itemsPerPage:{description:"",type:{name:"number"},required:!0},page:{description:"",type:{name:"number"},required:!0},onStageChange:{description:"",type:{name:"func"},required:!0},onStatusChange:{description:"",type:{name:"func"},required:!0},onLandDateChange:{description:"",type:{name:"func"},required:!0},onSortChange:{description:"",type:{name:"func"},required:!0},onPaginationClick:{description:"",type:{name:"func"},required:!0},onShowDetailsChange:{description:"",type:{name:"func"},required:!0},adviser:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0},showDetails:{description:"",type:{name:"bool"},required:!0}}};var ExportPipeline_constants=__webpack_require__("./src/client/modules/ExportPipeline/constants.js"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx");function ResultItem_typeof(o){return ResultItem_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},ResultItem_typeof(o)}function ResultItem_slicedToArray(r,e){return function ResultItem_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function ResultItem_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 ResultItem_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ResultItem_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)?ResultItem_arrayLikeToArray(r,a):void 0}}(r,e)||function ResultItem_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 ResultItem_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ResultItem_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 ResultItem_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ResultItem_ownKeys(Object(t),!0).forEach((function(r){ResultItem_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ResultItem_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ResultItem_defineProperty(e,r,t){return(r=function ResultItem_toPropertyKey(t){var i=function ResultItem_toPrimitive(t,r){if("object"!=ResultItem_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ResultItem_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ResultItem_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ResultItem_ListItem=(0,styled_components_browser_esm.Ay)("li")(ResultItem_defineProperty(ResultItem_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_4,borderBottom:"1px solid ".concat(colours.pA)},"&:first-child",{paddingTop:0}),"&:last-child",{borderBottom:"none"})),TagContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexWrap:"wrap",justifyContent:"space-between"}),LinkContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexDirection:"column"}),ResultItem_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")({marginBottom:5,marginTop:govuk_react_constants_esm.Es.SCALE_4,fontSize:govuk_react_constants_esm.SG.SIZE_19,fontWeight:govuk_react_constants_esm.sO.bold}),ResultItem_StyledDL=(0,styled_components_browser_esm.Ay)("dl")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),ResultItem_lineHeightMixin={lineHeight:"1.5"},ResultItem_StyledDT=(0,styled_components_browser_esm.Ay)("dt")(ResultItem_objectSpread({color:colours.hM,float:"left",clear:"left",marginRight:"5px"},ResultItem_lineHeightMixin)),ResultItem_StyledDD=(0,styled_components_browser_esm.Ay)("dd")(ResultItem_objectSpread({color:colours.Uv},ResultItem_lineHeightMixin)),DashboardToggleSection=(0,styled_components_browser_esm.Ay)(ToggleSection.Os)(ResultItem_defineProperty({},BaseToggleSection.ff,{fontSize:govuk_react_constants_esm.SG.SIZE_16})),statusToColourMap={WON:"green",ACTIVE:"blue",INACTIVE:"orange"},EstimatedExport=function EstimatedExport(_ref){var estimated_export_value_amount=_ref.estimated_export_value_amount,estimated_export_value_years=_ref.estimated_export_value_years;return estimated_export_value_amount&&estimated_export_value_years?react.createElement(react.Fragment,null,(0,number_utils.Dv)(estimated_export_value_amount)," ",react.createElement("span",null,"(",estimated_export_value_years.name,")")):estimated_export_value_amount?react.createElement(react.Fragment,null,(0,number_utils.Dv)(estimated_export_value_amount)):estimated_export_value_years?react.createElement(react.Fragment,null,estimated_export_value_years.name):react.createElement("span",null,"Not set")},ResultItem=function ResultItem(item){var _useState2=ResultItem_slicedToArray((0,react.useState)("Show"),2),toggleLabel=_useState2[0],setToggleLabel=_useState2[1],status=item.status.toUpperCase(),exportPotential=item.export_potential.toUpperCase();return react.createElement(ResultItem_ListItem,{key:item.id,"data-test":"export-item"},react.createElement(TagContainer,null,react.createElement(Tag.A,{colour:"grey"},"".concat(exportPotential," POTENTIAL")),react.createElement(Tag.A,{colour:statusToColourMap[status]},status)),react.createElement(LinkContainer,null,react.createElement(ResultItem_StyledHeader,null,react.createElement("a",{href:"/companies/".concat(item.company.id,"/overview")},item.company.name)),react.createElement("a",{href:"/export/".concat(item.id,"/details")},item.title)),react.createElement(DashboardToggleSection,{onOpen:function onOpen(open){return setToggleLabel(open?"Hide":"Show")},label:toggleLabel,id:"".concat(item.id,"_toggle")},react.createElement(ResultItem_StyledDL,{"data-test":"export-details"},react.createElement(ResultItem_StyledDT,null,"Destination:"),react.createElement(ResultItem_StyledDD,null,(0,lodash.get)(item,"destination_country.name","Not set")),react.createElement(ResultItem_StyledDT,null,"Total estimated export value:"),react.createElement(ResultItem_StyledDD,null,react.createElement(EstimatedExport,{estimated_export_value_amount:item.estimated_export_value_amount,estimated_export_value_years:item.estimated_export_value_years})),react.createElement(ResultItem_StyledDT,null,"Estimated date for win:"),react.createElement(ResultItem_StyledDD,null,item.estimated_win_date?(0,date.formatShortDate)(item.estimated_win_date):"Not set"),react.createElement(ResultItem_StyledDT,null,"Main sector:"),react.createElement(ResultItem_StyledDD,null,(0,lodash.get)(item,"sector.name","Not set")),react.createElement(ResultItem_StyledDT,null,"Owner:"),react.createElement(ResultItem_StyledDD,null,item.owner.name),react.createElement(ResultItem_StyledDT,null,"Created on:"),react.createElement(ResultItem_StyledDD,null,(0,date.formatMediumDateTime)(item.created_on)))))},shape=prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired;ResultItem.propTypes={item:prop_types_default().shape({id:prop_types_default().string.isRequired,company:shape,owner:shape,destination_country:shape,sector:shape,estimated_export_value_years:shape,created_on:prop_types_default().string.isRequired,estimated_export_value_amount:prop_types_default().string.isRequired,estimated_win_date:prop_types_default().string.isRequired,export_potential:prop_types_default().string.isRequired,status:prop_types_default().string.isRequired})};const ExportList_ResultItem=ResultItem;ResultItem.__docgenInfo={description:"",methods:[],displayName:"ResultItem",props:{item:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},company:{name:"custom",raw:"shape",required:!1},owner:{name:"custom",raw:"shape",required:!1},destination_country:{name:"custom",raw:"shape",required:!1},sector:{name:"custom",raw:"shape",required:!1},estimated_export_value_years:{name:"custom",raw:"shape",required:!1},created_on:{name:"string",required:!0},estimated_export_value_amount:{name:"string",required:!0},estimated_win_date:{name:"string",required:!0},export_potential:{name:"string",required:!0},status:{name:"string",required:!0}}},required:!1}}};const components_HR=styled_components_browser_esm.Ay.hr({borderTop:"1px solid ".concat(colours.Pe),margin:0,background:"none"});function ExportSelect_typeof(o){return ExportSelect_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},ExportSelect_typeof(o)}function ExportSelect_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 ExportSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportSelect_ownKeys(Object(t),!0).forEach((function(r){ExportSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportSelect_defineProperty(e,r,t){return(r=function ExportSelect_toPropertyKey(t){var i=function ExportSelect_toPrimitive(t,r){if("object"!=ExportSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ExportSelect_slicedToArray(r,e){return function ExportSelect_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function ExportSelect_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 ExportSelect_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ExportSelect_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)?ExportSelect_arrayLikeToArray(r,a):void 0}}(r,e)||function ExportSelect_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 ExportSelect_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var ExportSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_esm.l6)({select:{width:"100%"}}),ExportSelect=function ExportSelect(_ref){var label=_ref.label,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,qsParam=_ref.qsParam,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_useState2=ExportSelect_slicedToArray((0,react.useState)(),2),value=_useState2[0],setValue=_useState2[1],qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParam,"");(0,react.useEffect)((function(){return setValue(initialValue)}),[initialValue]);return react.createElement(ExportSelect_StyledSelect,{label,"data-test":(0,lodash.kebabCase)("".concat(qsParam,"-select")),input:{onChange:function onChange(e){setValue(e.target.value),function onChange(e){navigate({search:lib_default().stringify(ExportSelect_objectSpread(ExportSelect_objectSpread({},qsParams),{},ExportSelect_defineProperty(ExportSelect_defineProperty({},qsParam,e.target.value),"page",1)))})}(e)},value}},options.map((function(_ref2,index){var value=_ref2.value,label=_ref2.label;return react.createElement("option",{value,"aria-label":label,key:index,id:(0,lodash.kebabCase)(label)},label)})))};const ExportList_ExportSelect=ExportSelect;function RoutedDateField_typeof(o){return RoutedDateField_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},RoutedDateField_typeof(o)}ExportSelect.__docgenInfo={description:"",methods:[],displayName:"ExportSelect",props:{options:{defaultValue:{value:"[]",computed:!1},required:!1}}};var RoutedDateField_excluded=["qsParamName"];function RoutedDateField_extends(){return RoutedDateField_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedDateField_extends.apply(null,arguments)}function RoutedDateField_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 RoutedDateField_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedDateField_ownKeys(Object(t),!0).forEach((function(r){RoutedDateField_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedDateField_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedDateField_defineProperty(e,r,t){return(r=function RoutedDateField_toPropertyKey(t){var i=function RoutedDateField_toPrimitive(t,r){if("object"!=RoutedDateField_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedDateField_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedDateField_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var RoutedDateField=function RoutedDateField(_ref){var qsParamName=_ref.qsParamName,props=function RoutedDateField_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedDateField_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,RoutedDateField_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));return react.createElement(DateField.A,RoutedDateField_extends({},props,{onChange:function onChange(e){navigate({search:lib_default().stringify(RoutedDateField_objectSpread(RoutedDateField_objectSpread({},qsParams),{},RoutedDateField_defineProperty(RoutedDateField_defineProperty({},qsParamName,e.target.value),"page",1)))})},initialValue:(0,lodash.get)(qsParams,qsParamName,"")}))};const components_RoutedDateField=RoutedDateField;RoutedDateField.__docgenInfo={description:"",methods:[],displayName:"RoutedDateField"};const ExportDate=(0,styled_components_browser_esm.Ay)(components_RoutedDateField)({paddingBottom:0,marginBottom:0,label:{paddingBottom:2},input:{width:"100%",maxHeight:38}});var Countries=__webpack_require__("./src/client/components/Resource/Countries.js"),Sector=__webpack_require__("./src/client/components/Resource/Sector.js");const ExportOwner=(0,Resource.AU)("ExportOwner",(function(){return"v4/export/owner"}));var ResourceOptionsField=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),ExportList_state=__webpack_require__("./src/client/modules/ExportPipeline/ExportList/state.js");function ExportList_typeof(o){return ExportList_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},ExportList_typeof(o)}function ExportList_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 ExportList_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportList_ownKeys(Object(t),!0).forEach((function(r){ExportList_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportList_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportList_toConsumableArray(r){return function ExportList_arrayWithoutHoles(r){if(Array.isArray(r))return ExportList_arrayLikeToArray(r)}(r)||function ExportList_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function ExportList_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ExportList_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)?ExportList_arrayLikeToArray(r,a):void 0}}(r)||function ExportList_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 ExportList_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ExportList_defineProperty(e,r,t){return(r=function ExportList_toPropertyKey(t){var i=function ExportList_toPrimitive(t,r){if("object"!=ExportList_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportList_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportList_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ExportList_StyledHeader=(0,styled_components_browser_esm.Ay)(govuk_react_esm.H2)({marginTop:0,fontWeight:"normal",fontSize:govuk_react_constants_esm.iU.MEDIUM,marginBottom:0}),ExportList_StyledResultCount=(0,styled_components_browser_esm.Ay)("span")({fontSize:36,fontWeight:600,lineHeight:1}),StyledContent=styled_components_browser_esm.Ay.div({display:"flex",flexDirection:"column",rowGap:govuk_react_constants_esm.SG.SIZE_20}),FiltersContainer=(0,styled_components_browser_esm.Ay)("div")(ExportList_defineProperty(ExportList_defineProperty({display:"grid",rowGap:15},govuk_react_constants_esm.qs.TABLET,{columnGap:2,gridTemplateColumns:"50% 50%"}),govuk_react_constants_esm.qs.DESKTOP,{gridTemplateColumns:"25% 25% 25% 25%"})),HeaderContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexWrap:"wrap",justifyContent:"space-between",borderBottom:"1px solid ".concat(colours.pA),paddingBottom:10,marginTop:30}),ExportList_LinkContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexDirection:"column",padding:5,alignItems:"end",gap:10}),ExportList_StyledButtonLink=(0,styled_components_browser_esm.Ay)(ButtonLink.A)({marginBottom:0,border:0,padding:0}),ListContainer=(0,styled_components_browser_esm.Ay)("div")({marginTop:20}),ExportWinsLink=function ExportWinsLink(){return react.createElement(govuk_react_esm.$n,{as:"a",href:"/exportwins"},"View export wins")},HRWithMargin=(0,styled_components_browser_esm.Ay)(components_HR)({marginBottom:20}),resultToOptions=function resultToOptions(result){return[ExportPipeline_constants.sl].concat(ExportList_toConsumableArray(result.map((function(country){return{label:country.name,value:country.id}}))))},ExportList=function ExportList(_ref){var count=_ref.count,results=_ref.results,itemsPerPage=_ref.itemsPerPage,maxItemsToPaginate=_ref.maxItemsToPaginate,payload=_ref.payload,filters=_ref.filters,navigate=(0,dist.Zp)(),maxItems=Math.min(count,maxItemsToPaginate),totalPages=Math.ceil(maxItems/itemsPerPage),hasZeroExports=!filters.areActive&&0===count;return react.createElement(react.Fragment,null,react.createElement(FiltersContainer,null,react.createElement(ExportList_ExportSelect,{label:"Status",qsParam:"status",options:filters.status.options}),react.createElement(ExportList_ExportSelect,{label:"Export Potential",qsParam:"export_potential",options:filters.exportPotential.options}),react.createElement(ResourceOptionsField.A,{id:"sector",qsParam:"sector",label:"Sector",payload:{level__lte:"2"},resource:Sector.A,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ResourceOptionsField.A,{id:"country",qsParam:"destination_country",label:"Country",resource:Countries.A,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ExportDate,{type:"month",boldLabel:!1,label:"Win from",name:"estimated_win_date_after",qsParamName:"estimated_win_date_after","data-test":"estimated-win-date-after"}),react.createElement(ExportDate,{type:"month",boldLabel:!1,label:"Win to",name:"estimated_win_date_before",qsParamName:"estimated_win_date_before","data-test":"estimated-win-date-before"}),react.createElement(ResourceOptionsField.A,{id:"owner",qsParam:"owner",label:"Owner",resource:ExportOwner,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ExportList_ExportSelect,{qsParam:"sortby",label:"Sort by",options:filters.sortby.options})),react.createElement(HeaderContainer,{role:"status"},react.createElement(ExportList_StyledHeader,null,react.createElement(ExportList_StyledResultCount,{"data-test":"collectionCount"},count)," ","Exports"),filters.areActive&&react.createElement(ExportList_LinkContainer,null,react.createElement(ExportList_StyledButtonLink,{onClick:function onClearAll(){navigate({search:lib_default().stringify({page:1})})},"data-test":"clear-filters"},"Remove all filters"))),react.createElement(Task.A.Status,{name:ExportList_state.e,id:ExportList_state.ID,progressMessage:"loading export pipeline list",startOnRender:{payload,onSuccessDispatch:actions._kX}},(function(){return react.createElement(react.Fragment,null,hasZeroExports?react.createElement("div",{"data-test":"no-export-items"},react.createElement(ContentWithHeading.A,{"data-test":"no-export-items",heading:"You have no exports"},react.createElement(StyledContent,null,react.createElement("div",null,"Here you can create an export project to track a company's export progress. These will appear on your home page, so you keep track of your exports in one place."),react.createElement("span",null,"To add an export:"),react.createElement("div",null,react.createElement(govuk_react_esm.Xy,{listStyleType:"bullet"},react.createElement(govuk_react_esm.ck,null,"go to the company page"),react.createElement(govuk_react_esm.ck,null,"select 'Add export project' button")))),react.createElement(ExportWinsLink,null))):react.createElement(ListContainer,null,react.createElement(ExportWinsLink,null),react.createElement(HRWithMargin,null),react.createElement("ul",null,results.map((function(result){return react.createElement(ExportList_ResultItem,result)}))),react.createElement(Pagination.A,{totalPages,activePage:payload.page,onPageClick:function onPageClick(page,e){e.preventDefault(),navigate({search:lib_default().stringify(ExportList_objectSpread(ExportList_objectSpread({},payload),{},{page}))})}})))})))};ExportList.propTypes={count:prop_types_default().number,results:prop_types_default().array,itemsPerPage:prop_types_default().number,maxItemsToPaginate:prop_types_default().number};const ExportPipeline_ExportList=(0,react_redux.connect)(ExportList_state.o)(ExportList);ExportList.__docgenInfo={description:"",methods:[],displayName:"ExportList",props:{count:{description:"",type:{name:"number"},required:!1},results:{description:"",type:{name:"array"},required:!1},itemsPerPage:{description:"",type:{name:"number"},required:!1},maxItemsToPaginate:{description:"",type:{name:"number"},required:!1}}};var MyTasksTable_templateObject,my_tasks_state=__webpack_require__("./src/client/components/Dashboard/my-tasks/state.js"),TaskForm_constants=__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");var StyledTableCellHeader=(0,styled_components_browser_esm.Ay)(govuk_react_esm.XI.CellHeader)(MyTasksTable_templateObject||(MyTasksTable_templateObject=function MyTasksTable_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding-top: 0px;\n"]))),header=react.createElement(govuk_react_esm.XI.Row,null,react.createElement(StyledTableCellHeader,null,"Date due"),react.createElement(StyledTableCellHeader,null,"Task title"),react.createElement(StyledTableCellHeader,null,"Company name"),react.createElement(StyledTableCellHeader,null,"Project"),react.createElement(StyledTableCellHeader,null,"Assigned to"),react.createElement(StyledTableCellHeader,null,"Status")),rows=function rows(_ref){return _ref.results.map((function(task,index){var _task$company,_task$investment_proj;return react.createElement(govuk_react_esm.XI.Row,{key:"task_row_".concat(index),"data-test":"task-item"},react.createElement(govuk_react_esm.XI.Cell,{setWidth:"12%"},(0,date.formatMediumDate)(task.due_date)),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"23%"},react.createElement(govuk_react_esm.N_,{href:urls_default().tasks.details(task.id),"data-test":"".concat(task.id,"-task-link")},task.title)),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"20%"},null===(_task$company=task.company)||void 0===_task$company?void 0:_task$company.name),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"20%"},null===(_task$investment_proj=task.investment_project)||void 0===_task$investment_proj?void 0:_task$investment_proj.name),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"15%"},react.createElement("ul",null,function transformAdvisersListItem(advisers){return advisers.map((function(adviser,index){return react.createElement("li",{key:"task_adviser_".concat(index)},null==adviser?void 0:adviser.name)}))}(task.advisers))),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"10%"},task.archived?"Deleted":task.status==TaskForm_constants.X.COMPLETED?"Completed":"Active"))}))},MyTasksTable=function MyTasksTable(_ref2){var myTasks=_ref2.myTasks;return react.createElement(govuk_react_esm.XI,{head:header,"data-test":"my-tasks-table"},rows(myTasks))};const my_tasks_MyTasksTable=MyTasksTable;function TaskListSelect_typeof(o){return TaskListSelect_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},TaskListSelect_typeof(o)}function TaskListSelect_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 TaskListSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TaskListSelect_ownKeys(Object(t),!0).forEach((function(r){TaskListSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TaskListSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TaskListSelect_defineProperty(e,r,t){return(r=function TaskListSelect_toPropertyKey(t){var i=function TaskListSelect_toPrimitive(t,r){if("object"!=TaskListSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TaskListSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TaskListSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function TaskListSelect_slicedToArray(r,e){return function TaskListSelect_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function TaskListSelect_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 TaskListSelect_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return TaskListSelect_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)?TaskListSelect_arrayLikeToArray(r,a):void 0}}(r,e)||function TaskListSelect_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 TaskListSelect_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}MyTasksTable.__docgenInfo={description:"",methods:[],displayName:"MyTasksTable"};var TaskListSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_esm.l6)({select:{width:"100%"},span:{fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.SG.SIZE_16}}),TaskSelect=function TaskSelect(_ref){var label=_ref.label,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,qsParam=_ref.qsParam,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_useState2=TaskListSelect_slicedToArray((0,react.useState)(),2),value=_useState2[0],setValue=_useState2[1],qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParam,"");(0,react.useEffect)((function(){return setValue(initialValue)}),[initialValue]);return react.createElement(TaskListSelect_StyledSelect,{label,"data-test":(0,lodash.kebabCase)("".concat(qsParam,"-select")),input:{onChange:function onChange(e){setValue(e.target.value),function onChange(e){navigate({search:lib_default().stringify(TaskListSelect_objectSpread(TaskListSelect_objectSpread({},qsParams),{},TaskListSelect_defineProperty(TaskListSelect_defineProperty({},qsParam,e.target.value),"page",1)))})}(e)},value}},options.map((function(_ref2,index){var value=_ref2.value,label=_ref2.label;return react.createElement("option",{value,"aria-label":label,key:index,id:(0,lodash.kebabCase)(label)},label)})))};const TaskListSelect=TaskSelect;TaskSelect.__docgenInfo={description:"",methods:[],displayName:"TaskSelect",props:{options:{defaultValue:{value:"[]",computed:!1},required:!1}}};var my_tasks_constants=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js");function transformers_toConsumableArray(r){return function transformers_arrayWithoutHoles(r){if(Array.isArray(r))return transformers_arrayLikeToArray(r)}(r)||function transformers_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function transformers_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return transformers_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)?transformers_arrayLikeToArray(r,a):void 0}}(r)||function transformers_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 transformers_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var MyTasks_templateObject,companyAndProjectOptions=function companyAndProjectOptions(options){return[my_tasks_constants.sl].concat(transformers_toConsumableArray((0,client_transformers.ce)(options)))};var MyTasks_FiltersContainer=styled_components_browser_esm.Ay.div(MyTasks_templateObject||(MyTasks_templateObject=function MyTasks_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: grid;\n  row-gap: 15px;\n  column-gap: 2px;\n  margin-bottom: ",";\n\n  grid-template-columns: repeat(5, ",") 3.5% ",";\n  @media (max-width: ",") {\n    grid-template-columns: repeat(2, 50%);\n    span.task-select-spacer {\n      display: none;\n    }\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,"16%","16%",govuk_react_constants_esm.DJ),MyTasksContent=function MyTasksContent(_ref){var myTasks=_ref.myTasks;return react.createElement(react.Fragment,null,react.createElement(SpacedSectionBreak.A,null),react.createElement(ContentWithHeading.A,{heading:"".concat(null==myTasks?void 0:myTasks.count," ").concat(1==(null==myTasks?void 0:myTasks.count)?"task":"tasks"),headingActions:react.createElement(govuk_react_esm.$n,{buttonColour:colours.ft,href:urls_default().tasks.create(),as:"a","data-test":"add-task"},"Add task"),"data-test":"my-tasks-heading"},null!=myTasks&&myTasks.count?react.createElement(my_tasks_MyTasksTable,{myTasks}):react.createElement(govuk_react_esm.XY,null,"You do not have any tasks at this time.")))},MyTasks=function MyTasks(_ref2){var myTasks=_ref2.myTasks,filters=_ref2.filters,payload=_ref2.payload;return react.createElement(react.Fragment,null,react.createElement(components_Resource._n,null,(function(_ref3){var _filters$status,_filters$assignedTo,_filters$createdBy,_filters$sortby,companies=_ref3.companies,projects=_ref3.projects;return react.createElement(MyTasks_FiltersContainer,null,react.createElement(TaskListSelect,{label:"Status",qsParam:"status",options:null==filters||null===(_filters$status=filters.status)||void 0===_filters$status?void 0:_filters$status.options}),react.createElement(TaskListSelect,{label:"Assigned to",qsParam:"assigned_to",options:null==filters||null===(_filters$assignedTo=filters.assignedTo)||void 0===_filters$assignedTo?void 0:_filters$assignedTo.options}),react.createElement(TaskListSelect,{label:"Created by",qsParam:"created_by",options:null==filters||null===(_filters$createdBy=filters.createdBy)||void 0===_filters$createdBy?void 0:_filters$createdBy.options}),react.createElement(TaskListSelect,{label:"Company",qsParam:"company",options:companyAndProjectOptions(companies)}),react.createElement(TaskListSelect,{label:"Project",qsParam:"project",options:companyAndProjectOptions(projects)}),react.createElement("span",{className:"task-select-spacer",id:"task-select-spacer"}),react.createElement(TaskListSelect,{label:"Sort by",qsParam:"sortby",options:null==filters||null===(_filters$sortby=filters.sortby)||void 0===_filters$sortby?void 0:_filters$sortby.options}))})),react.createElement(Task.A.Status,{name:my_tasks_state.L,id:my_tasks_state.ID,progressMessage:"Loading your tasks",startOnRender:{payload,onSuccessDispatch:actions.SJe}},(function(){return react.createElement(MyTasksContent,{myTasks})})))};const my_tasks_MyTasks=(0,react_redux.connect)(my_tasks_state.o)(MyTasks);MyTasksContent.__docgenInfo={description:"",methods:[],displayName:"MyTasksContent"},MyTasks.__docgenInfo={description:"",methods:[],displayName:"MyTasks"};var TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx"),ReferralList=__webpack_require__("./src/client/components/ReferralList/index.jsx");const img_tasks_namespaceObject=__webpack_require__.p+"static/media/img-tasks.42f82b5e.jpg";var NoTasks_templateObject,NoTasks_templateObject2,NoTasks_templateObject3;function NoTasks_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var NoTasks_StyledContainer=(0,styled_components_browser_esm.Ay)("div")(NoTasks_templateObject||(NoTasks_templateObject=NoTasks_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  "," {\n    margin: 25px 0 50px 0;\n  }\n  "," {\n    margin: 45px 0 95px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.qs.DESKTOP),NoTasks_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(NoTasks_templateObject2||(NoTasks_templateObject2=NoTasks_taggedTemplateLiteral(["\n  color: ",";\n  "," {\n    margin-bottom: 25px;\n    font-size: ",";\n  }\n"])),colours.hM,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_19),NoTasks_StyledImage=(0,styled_components_browser_esm.Ay)("img")(NoTasks_templateObject3||(NoTasks_templateObject3=NoTasks_taggedTemplateLiteral(["\n  display: none;\n  "," {\n    display: block;\n    width: 380px;\n    margin-bottom: ",";\n  }\n  "," {\n    width: 460px;\n    margin: "," 0 35px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.DESKTOP,govuk_react_constants_esm.Es.SCALE_3),NoTasks=function NoTasks(){return react.createElement(NoTasks_StyledContainer,null,react.createElement(govuk_react_heading_esm.H3,{as:govuk_react_heading_esm.H1},"You don't currently have any tasks"),react.createElement(NoTasks_StyledParagraph,null,"You can create your own tasks or collaborate with colleagues and assign tasks to other users."),react.createElement(govuk_react_button_esm.A,{as:"a",href:urls.tasks.create()},"Add a task"),react.createElement(NoTasks_StyledImage,{src:img_tasks_namespaceObject,alt:"An image of a list of tasks"}))};const my_tasks_NoTasks=NoTasks;function DashboardTabs_typeof(o){return DashboardTabs_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},DashboardTabs_typeof(o)}var DashboardTabs_templateObject;function DashboardTabs_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 DashboardTabs_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?DashboardTabs_ownKeys(Object(t),!0).forEach((function(r){DashboardTabs_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DashboardTabs_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function DashboardTabs_defineProperty(e,r,t){return(r=function DashboardTabs_toPropertyKey(t){var i=function DashboardTabs_toPrimitive(t,r){if("object"!=DashboardTabs_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=DashboardTabs_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==DashboardTabs_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}NoTasks.__docgenInfo={description:"",methods:[],displayName:"NoTasks"};var DashboardTabs_StyledDiv=(0,styled_components_browser_esm.Ay)("div")(DashboardTabs_templateObject||(DashboardTabs_templateObject=function DashboardTabs_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding-top: 16px;\n"]))),canViewCompanyLists=function canViewCompanyLists(permissions){return permissions.includes("company_list.view_companylist")},canViewReferrals=function canViewReferrals(permissions){return permissions.includes("company_referral.view_companyreferral")},DashboardTabs=function DashboardTabs(_ref){var id=_ref.id,adviser=_ref.adviser,hasInvestmentProjects=_ref.hasInvestmentProjects,onTabChange=_ref.onTabChange,userPermissions=_ref.userPermissions,hasTasks=_ref.hasTasks;return react.createElement(DashboardTabs_StyledDiv,{"data-test":"dashboard-tabs"},react.createElement(TabNav.A,{id:"".concat(id,".TabNav"),label:"Dashboard",routed:!0,keepQueryParams:!1,onTabChange,tabs:DashboardTabs_objectSpread(DashboardTabs_objectSpread(DashboardTabs_defineProperty({},urls_default().dashboard.myTasks(),{label:"Tasks",content:hasTasks?react.createElement(my_tasks_MyTasks,{adviser}):react.createElement(my_tasks_NoTasks,null)}),canViewCompanyLists(userPermissions)&&DashboardTabs_defineProperty({},urls_default().dashboard.index(),{label:"Company lists",content:react.createElement(CompanyLists,null)})),{},DashboardTabs_defineProperty(DashboardTabs_defineProperty({},urls_default().dashboard.investmentProjects(),{label:"Investment projects",content:hasInvestmentProjects?react.createElement(components_MyInvestmentProjects,{adviser}):react.createElement(MyInvestmentProjects_NoInvestmentProjects,null)}),urls_default().exportPipeline.index(),{label:"Export projects",content:react.createElement(ExportPipeline_ExportList,null)}),canViewReferrals(userPermissions)&&DashboardTabs_defineProperty({},urls_default().companies.referrals.list(),{label:"Referrals",content:react.createElement(ReferralList.A,{id:"ReferralList"})}))}))};DashboardTabs.propTypes={id:prop_types_default().string.isRequired,adviser:prop_types_default().object.isRequired,onTabChange:prop_types_default().func};(0,react_redux.connect)((function state2props(state){return{userPermissions:state.userPermissions}}))(DashboardTabs);DashboardTabs.__docgenInfo={description:"",methods:[],displayName:"DashboardTabs",props:{id:{description:"",type:{name:"string"},required:!0},adviser:{description:"",type:{name:"object"},required:!0},onTabChange:{description:"",type:{name:"func"},required:!1}}};__webpack_require__("./src/client/components/InvestmentReminders/index.jsx");var NotificationAlert_state=__webpack_require__("./src/client/components/NotificationAlert/state.js");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ReminderSummary_templateObject,ReminderSummary_templateObject2,ReminderSummary_templateObject3;(0,lodash.snakeCase)("investments-estimated-land-dates"),urls_default().reminders.investments.estimatedLandDate(),(0,lodash.snakeCase)("investments-no-recent-interactions"),urls_default().reminders.investments.noRecentInteraction(),(0,lodash.snakeCase)("investments-outstanding-propositions"),urls_default().reminders.investments.outstandingPropositions(),(0,lodash.snakeCase)("companies-no-recent-interactions"),urls_default().reminders.exports.noRecentInteractions(),(0,lodash.snakeCase)("companies-new-interactions"),urls_default().reminders.exports.newInteractions(),(0,lodash.snakeCase)("my-tasks-due-date-approaching"),urls_default().reminders.myTasks.dueDateApproaching(),(0,lodash.snakeCase)("my-tasks-task-assigned-to-me-from-others"),urls_default().reminders.myTasks.taskAssignedToMeFromOthers(),(0,lodash.snakeCase)("my-tasks-task-amended-by-others"),urls_default().reminders.myTasks.taskAmendedByOthers(),(0,lodash.snakeCase)("my-tasks-task-overdue"),urls_default().reminders.myTasks.taskOverdue(),(0,lodash.snakeCase)("my-tasks-task-completed"),urls_default().reminders.myTasks.taskCompleted(),constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty({},"investments-estimated-land-dates","Approaching estimated land dates"),"investments-no-recent-interactions","Projects with no recent interactions"),"investments-outstanding-propositions","Outstanding propositions"),"companies-no-recent-interactions","Companies with no recent interactions"),"companies-new-interactions","Companies with new interactions"),"my-tasks-due-date-approaching","Due date approaching"),"my-tasks-task-assigned-to-me-from-others","Task assigned to me from others"),"my-tasks-task-amended-by-others","Task amended by others"),"my-tasks-task-overdue","Task overdue"),"my-tasks-task-completed","Task completed");function ReminderSummary_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledSubHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H5)(ReminderSummary_templateObject||(ReminderSummary_templateObject=ReminderSummary_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-top: ",";\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.SG.SIZE_10,govuk_react_constants_esm.sO.bold,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),StyledReminderLink=(0,styled_components_browser_esm.Ay)("a")(ReminderSummary_templateObject2||(ReminderSummary_templateObject2=ReminderSummary_taggedTemplateLiteral(["\n  display: inline;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,colours.yV),ReminderSummary_StyledList=(0,styled_components_browser_esm.Ay)("ul")(ReminderSummary_templateObject3||(ReminderSummary_templateObject3=ReminderSummary_taggedTemplateLiteral(["\n  list-style-type: disc;\n  padding: 0 0;\n  margin: "," ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_5),ReminderSummary_StyledListItem=(0,styled_components_browser_esm.Ay)("li")((function(){return{margin:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0")}})),ReminderSummary=function ReminderSummary(_ref){var summary=_ref.summary,hasSummary=!!summary,showInvestment=_ref.hasInvestmentFeatureGroup&&hasSummary,showExport=_ref.hasExportFeatureGroup&&hasSummary;return react.createElement("div",{"data-test":"reminder-summary"},showInvestment&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"investment-heading"},"Investment"),react.createElement(ReminderSummary_StyledList,null,summary.investment.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"investment-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),showExport&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"export-heading"},"Export"),react.createElement(ReminderSummary_StyledList,null,summary.export.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"export-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),hasSummary&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"my-tasks-heading"},"My Tasks"),react.createElement(ReminderSummary_StyledList,null,summary.myTasks.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"my-tasks-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),react.createElement(StyledReminderLink,{href:urls_default().reminders.settings.index()},"Settings: reminders and email notifications"))},reminderType=prop_types_default().arrayOf(prop_types_default().shape({name:prop_types_default().string.isRequired,url:prop_types_default().string.isRequired,count:prop_types_default().number.isRequired}));ReminderSummary.propTypes={summary:prop_types_default().shape({count:prop_types_default().number,investment:reminderType,export:reminderType,my_tasks:reminderType}),hasExportFeatureGroup:prop_types_default().bool.isRequired,hasInvestmentFeatureGroup:prop_types_default().bool.isRequired};(0,react_redux.connect)((function state2props(state){return{summary:function transformReminderSummary(data){return{count:data.count,investment:[{name:"Approaching estimated land dates",url:urls_default().reminders.investments.estimatedLandDate(),count:data.investment.estimated_land_date},{name:"Projects with no recent interactions",url:urls_default().reminders.investments.noRecentInteraction(),count:data.investment.no_recent_interaction},{name:"Outstanding propositions",url:urls_default().reminders.investments.outstandingPropositions(),count:data.investment.outstanding_propositions}],export:[{name:"Companies with no recent interactions",url:urls_default().reminders.exports.noRecentInteractions(),count:data.export.no_recent_interaction},{name:"Companies with new interactions",url:urls_default().reminders.exports.newInteractions(),count:data.export.new_interaction}],myTasks:[{name:"Due date approaching",url:urls_default().reminders.myTasks.dueDateApproaching(),count:data.my_tasks.due_date_approaching},{name:"Task assigned to me from others",url:urls_default().reminders.myTasks.taskAssignedToMeFromOthers(),count:data.my_tasks.task_assigned_to_me_from_others},{name:"Task amended by others",url:urls_default().reminders.myTasks.taskAmendedByOthers(),count:data.my_tasks.task_amended_by_others},{name:"Task overdue",url:urls_default().reminders.myTasks.taskOverdue(),count:data.my_tasks.task_overdue},{name:"Task completed",url:urls_default().reminders.myTasks.taskCompleted(),count:data.my_tasks.task_completed}]}}(state[NotificationAlert_state.ID]),hasExportFeatureGroup:state.activeFeatureGroups.includes("export-notifications"),hasInvestmentFeatureGroup:state.activeFeatureGroups.includes("investment-notifications")}}))(ReminderSummary);ReminderSummary.__docgenInfo={description:"",methods:[],displayName:"ReminderSummary",props:{summary:{description:"",type:{name:"shape",value:{count:{name:"number",required:!1},investment:{name:"custom",raw:"reminderType",required:!1},export:{name:"custom",raw:"reminderType",required:!1},my_tasks:{name:"custom",raw:"reminderType",required:!1}}},required:!1},hasExportFeatureGroup:{description:"",type:{name:"bool"},required:!0},hasInvestmentFeatureGroup:{description:"",type:{name:"bool"},required:!0}}};var FeedContainer=styled_components_browser_esm.Ay.div({fontSize:govuk_react_constants_esm.SG.SIZE_14,borderTop:"2px solid ".concat(colours.Pe),padding:"".concat(govuk_react_constants_esm.Es.SCALE_4," 0")}),DataHubFeed_Date=(0,styled_components_browser_esm.Ay)("div")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_14}),DataHubFeed=function DataHubFeed(_ref){var items=_ref.items,_ref$feedLimit=_ref.feedLimit,feedLimit=void 0===_ref$feedLimit?5:_ref$feedLimit;return react.createElement(FeedContainer,null,react.createElement(govuk_react_heading_esm.H3,null,'"What\'s new"'),!!items.length&&react.createElement(react.Fragment,null,react.createElement(govuk_react_unordered_list_esm.A,{listStyleType:"none"},items.slice(0,feedLimit).map((function(item,index){return react.createElement(govuk_react_list_item_esm.A,{key:index},react.createElement(NewWindowLink.A,{href:item.link,"data-test":"data-hub-feed-link-".concat(index),"aria-labelledby":"link-label"},item.heading),react.createElement(DataHubFeed_Date,{"data-test":"data-hub-feed-date-".concat(index)},item.date))}))),react.createElement(NewWindowLink.A,{href:urls_default().external.helpCentre.allUpdates,"data-test":"data-hub-feed-view-all"},"View all Data Hub updates")),!items.length&&react.createElement(govuk_react_paragraph_esm.A,null,"No updates available"))};DataHubFeed.__docgenInfo={description:"",methods:[],displayName:"DataHubFeed",props:{feedLimit:{defaultValue:{value:"5",computed:!1},required:!1}}};var SearchButton_templateObject,govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js");var StyledButton=(0,styled_components_browser_esm.Ay)("button")(SearchButton_templateObject||(SearchButton_templateObject=function SearchButton_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  border: 0;\n  margin: 0;\n  border-radius: 0;\n  cursor: pointer;\n  padding: 12px;\n  overflow: hidden;\n  box-sizing: border-box;\n  width: ",";\n  height: ",";\n  background-color: ",";\n"])),(function(_ref){var size=_ref.size;return"".concat(size,"px")}),(function(_ref2){var size=_ref2.size;return"".concat(size,"px")}),(function(_ref3){return _ref3.backgroundColour})),SearchButton=function SearchButton(_ref4){var _ref4$size=_ref4.size,size=void 0===_ref4$size?40:_ref4$size,_ref4$colour=_ref4.colour,colour=void 0===_ref4$colour?colours.UE:_ref4$colour,backgroundColour=_ref4.backgroundColour;return react.createElement(StyledButton,{type:"submit",size,backgroundColour},react.createElement(react.Fragment,null,react.createElement("svg",{viewBox:"0 0 18 18",focusable:"false","aria-hidden":"true"},react.createElement("g",{fill:colour},react.createElement("path",{d:"M18,16.56l-4.32-4.32a7.65,7.65,0,1,0-1.44,1.44L16.56,18ZM2,7.62a5.6,5.6,0,1,1,5.59,5.59A5.6,5.6,0,0,1,2,7.62Z"}))),react.createElement(govuk_react_visually_hidden_esm.A,null,"Submit Search")))};SearchButton.propTypes={size:prop_types_default().number,colour:prop_types_default().string,backgroundColour:prop_types_default().string};const components_SearchButton=SearchButton;function Search_typeof(o){return Search_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},Search_typeof(o)}var Search_templateObject,Search_templateObject2;function Search_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 Search_defineProperty(e,r,t){return(r=function Search_toPropertyKey(t){var i=function Search_toPrimitive(t,r){if("object"!=Search_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Search_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Search_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Search_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}SearchButton.__docgenInfo={description:"",methods:[],displayName:"SearchButton",props:{size:{defaultValue:{value:"40",computed:!1},description:"",type:{name:"number"},required:!1},colour:{defaultValue:{value:"'#ffffff'",computed:!1},description:"",type:{name:"string"},required:!1},backgroundColour:{description:"",type:{name:"string"},required:!1}}};var StyledSearchContainer=(0,styled_components_browser_esm.Ay)("div")(Search_templateObject||(Search_templateObject=Search_taggedTemplateLiteral(["\n  position: relative;\n  width: 100%;\n"]))),StyledSearchInput=(0,styled_components_browser_esm.Ay)(govuk_react_input_esm.A)(Search_templateObject2||(Search_templateObject2=Search_taggedTemplateLiteral(["\n  border: 0;\n  width: 100%;\n  padding-left: ",";\n  outline: ",";\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3,(function(_ref){return _ref.showBorder?"2px solid ".concat(colours.Uv):0}),(function(_ref2){return _ref2.showBorder?-govuk_react_constants_esm.Es.SCALE_1:0})),getSearchTerm=function getSearchTerm(location){var queryString=location.search.slice(1),queryParams=(0,lodash.omitBy)(function Search_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Search_ownKeys(Object(t),!0).forEach((function(r){Search_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Search_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},lib_default().parse(queryString)),lodash.isEmpty);return queryParams.term},Search=function Search(_ref3){var csrfToken=_ref3.csrfToken,_ref3$buttonColour=_ref3.buttonColour,buttonColour=void 0===_ref3$buttonColour?colours.Uv:_ref3$buttonColour,_ref3$showBorder=_ref3.showBorder,showBorder=void 0!==_ref3$showBorder&&_ref3$showBorder,location=(0,dist.zy)();return react.createElement("form",{method:"GET",action:"".concat(urls_default().search.type("companies"),"?_csrf=").concat(csrfToken)},react.createElement(StyledSearchContainer,{role:"search"},react.createElement("label",{htmlFor:"search-input"},react.createElement(govuk_react_visually_hidden_esm.A,null,"Input your search term")),react.createElement(StyledSearchInput,{name:"term",type:"text",id:"search-input",placeholder:"Search Data Hub",defaultValue:getSearchTerm(location),showBorder}),react.createElement(components_SearchButton,{backgroundColour:buttonColour})))};Search.propTypes={csrfToken:prop_types_default().string.isRequired};Search.__docgenInfo={description:"",methods:[],displayName:"Search",props:{buttonColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},required:!1},showBorder:{defaultValue:{value:"false",computed:!1},required:!1},csrfToken:{description:"",type:{name:"string"},required:!0}}};var CustomContainer_templateObject,Timeline=__webpack_require__("./src/client/components/Timeline/index.jsx");(0,styled_components_browser_esm.Ay)("div")(CustomContainer_templateObject||(CustomContainer_templateObject=function CustomContainer_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  box-sizing: 'border-box';\n  padding: 0 ",";\n\n  "," {\n    padding: 0 ",";\n  }\n\n  @media only screen and (min-width: ",") {\n    margin: 0 auto;\n    max-width: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_5,(function(_ref){var width=_ref.width;return"".concat(width,"px")}),(function(_ref2){var width=_ref2.width;return"".concat(width,"px")}));__webpack_require__("./src/client/components/ErrorSummary/index.jsx");var RoutedTeamsTypeahead_excluded=["taskProps","closeMenuOnSelect","loadOptions"];function RoutedTeamsTypeahead_extends(){return RoutedTeamsTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedTeamsTypeahead_extends.apply(null,arguments)}var fetchTeams=function fetchTeams(){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get(urls_default().metadata.team(),{params:{autocomplete:searchString}}).then((function(_ref){return function parseTeamData(teams){return teams.filter((function(team){return team.name&&team.name.trim().length})).map(client_transformers.Vi)}(_ref.data)})):Promise.resolve([])}),500)},RoutedTeamsTypeahead=function RoutedTeamsTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?fetchTeams():_ref2$loadOptions,props=function RoutedTeamsTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedTeamsTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedTeamsTypeahead_excluded);return react.createElement(Task.A.Status,RoutedTeamsTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedTeamsTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedTeamsTypeahead.propTypes={name:prop_types_default().string.isRequired,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedTeamsTypeahead=RoutedTeamsTypeahead;RoutedTeamsTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedTeamsTypeahead",props:{closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},loadOptions:{defaultValue:{value:"fetchTeams()",computed:!0},required:!1},name:{description:"",type:{name:"string"},required:!0},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var LocalNav_excluded=["children","href","dataTest"];function LocalNav_extends(){return LocalNav_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},LocalNav_extends.apply(null,arguments)}var StyledActiveLink=(0,styled_components_browser_esm.Ay)("a")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_20,padding:"11px 16px","&:link, &:visited":{color:colours.UE,background:colours._G,textDecoration:"none",fontWeight:600}}),StyledInactiveLink=(0,styled_components_browser_esm.Ay)("a")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_20,padding:"11px 16px","&:link, &:visited":{color:colours.ft,textDecoration:"none"},"&:hover, &:focus":{color:colours.Uv,backgroundColor:colours.P1}}),LocalNav=function LocalNav(_ref){var children=_ref.children,_ref$dataTest=_ref.dataTest,dataTest=void 0===_ref$dataTest?"local-nav":_ref$dataTest;return children=children.filter((function(child){return!1!==child})),react.createElement("nav",{"data-test":dataTest},react.createElement("ul",null,children.map((function(link,index){return react.createElement("li",{key:"".concat(index,"-").concat(link)},link)}))))},LocalNavLink=function LocalNavLink(_ref2){var children=_ref2.children,href=_ref2.href,_ref2$dataTest=_ref2.dataTest,dataTest=void 0===_ref2$dataTest?"local-nav-link":_ref2$dataTest,rest=function LocalNav_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function LocalNav_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,LocalNav_excluded),location=(0,dist.zy)(),NavLink=null!=href&&href.includes(location.pathname)?StyledActiveLink:StyledInactiveLink;return react.createElement(NavLink,LocalNav_extends({href,"data-test":dataTest},rest),children)};LocalNav.propTypes={dataTest:prop_types_default().string,children:prop_types_default().node},LocalNavLink.propTypes={dataTest:prop_types_default().string,href:prop_types_default().string,children:prop_types_default().node},LocalNav.__docgenInfo={description:"",methods:[],displayName:"LocalNav",props:{dataTest:{defaultValue:{value:"'local-nav'",computed:!1},description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!1}}},LocalNavLink.__docgenInfo={description:"",methods:[],displayName:"LocalNavLink",props:{dataTest:{defaultValue:{value:"'local-nav-link'",computed:!1},description:"",type:{name:"string"},required:!1},href:{description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!1}}};__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx");var InvestmentLayout_templateObject,Footer=__webpack_require__("./src/client/components/Footer/index.jsx"),DataHubHeader=__webpack_require__("./src/client/components/DataHubHeader/index.jsx"),WatchTextContent=__webpack_require__("./src/client/components/WatchTextContent.jsx"),InvestmentLayout_excluded=["children","pageTitle"];function InvestmentLayout_slicedToArray(r,e){return function InvestmentLayout_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function InvestmentLayout_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 InvestmentLayout_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return InvestmentLayout_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)?InvestmentLayout_arrayLikeToArray(r,a):void 0}}(r,e)||function InvestmentLayout_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 InvestmentLayout_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var GlobalStyles=(0,styled_components_browser_esm.DU)(InvestmentLayout_templateObject||(InvestmentLayout_templateObject=function InvestmentLayout_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  *, *:before, *:after {\n    box-sizing: initial;\n  }\n"]))),InvestmentLayout=function InvestmentLayout(_ref){var children=_ref.children,pageTitle=_ref.pageTitle,props=function InvestmentLayout_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentLayout_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentLayout_excluded),_useState2=InvestmentLayout_slicedToArray((0,react.useState)(!1),2),showVerticalNav=_useState2[0],setShowVerticalNav=_useState2[1];return react.createElement(react.Fragment,null,react.createElement(WatchTextContent.A,{onTextContentChange:function onTextContentChange(text){document.title=text}},pageTitle," - DBT Data Hub"),react.createElement(GlobalStyles,null),react.createElement(DataHubHeader.A,{showVerticalNav,onShowVerticalNav:setShowVerticalNav}),react.createElement(components_InvestmentLocalHeader,props),react.createElement(Main.A,null,react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,null,children))),react.createElement(Footer.h,null))};InvestmentLayout.propTypes={projectId:prop_types_default().string.isRequired,pageTitle:prop_types_default().node.isRequired,flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),children:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node])};InvestmentLayout.__docgenInfo={description:"",methods:[],displayName:"InvestmentLayout",props:{projectId:{description:"",type:{name:"string"},required:!0},pageTitle:{description:"",type:{name:"node"},required:!0},flashMessages:{description:"",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},breadcrumbs:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},children:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1}}};var AccessDenied=__webpack_require__("./src/client/components/AccessDenied/index.jsx"),ProtectedRoute=function ProtectedRoute(_ref){var module=_ref.module,modulePermissions=_ref.modulePermissions,_ref$userPermissions=_ref.userPermissions,userPermissions=void 0===_ref$userPermissions?[]:_ref$userPermissions,_ref$routePermissions=_ref.routePermissions,routePermissions=void 0===_ref$routePermissions?[]:_ref$routePermissions,children=_ref.children;return routePermissions.every((function(p){return userPermissions.includes(p)}))&modulePermissions.includes(module)?children:react.createElement(AccessDenied.A,null)};ProtectedRoute.propTypes={module:prop_types_default().string.isRequired,modulePermissions:prop_types_default().arrayOf(prop_types_default().string).isRequired,userPermissions:prop_types_default().arrayOf(prop_types_default().string).isRequired,routePermissions:prop_types_default().arrayOf(prop_types_default().string),redirect:prop_types_default().string};(0,react_redux.connect)((function(state){return state}))(ProtectedRoute);ProtectedRoute.__docgenInfo={description:"",methods:[],displayName:"ProtectedRoute",props:{userPermissions:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},routePermissions:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},module:{description:"",type:{name:"string"},required:!0},modulePermissions:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!0},redirect:{description:"",type:{name:"string"},required:!1}}};__webpack_require__("./src/client/components/ProtectedLink/index.jsx");function Filter_typeof(o){return Filter_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},Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedAdvisersTypeahead)(function Filter_defineProperty(e,r,t){return(r=function Filter_toPropertyKey(t){var i=function Filter_toPrimitive(t,r){if("object"!=Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedCompanyTypeahead_Filter_typeof(o){return RoutedCompanyTypeahead_Filter_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},RoutedCompanyTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedCompanyTypeahead)(function RoutedCompanyTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedCompanyTypeahead_Filter_toPropertyKey(t){var i=function RoutedCompanyTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedCompanyTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedCompanyTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedCompanyTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedDateField_Filter_typeof(o){return RoutedDateField_Filter_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},RoutedDateField_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedDateField)(function RoutedDateField_Filter_defineProperty(e,r,t){return(r=function RoutedDateField_Filter_toPropertyKey(t){var i=function RoutedDateField_Filter_toPrimitive(t,r){if("object"!=RoutedDateField_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedDateField_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedDateField_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16,input:{fontSize:govuk_react_constants_esm.SG.SIZE_16}},govuk_react_constants_esm.qs.TABLET,{fontSize:govuk_react_constants_esm.SG.SIZE_16,marginBottom:24,input:{fontSize:govuk_react_constants_esm.SG.SIZE_16}}));var RoutedInputField_Filter=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx"),RoutedNumericRangeField_Filter=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");function RoutedTypeahead_Filter_typeof(o){return RoutedTypeahead_Filter_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},RoutedTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedTypeahead)(function RoutedTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedTypeahead_Filter_toPropertyKey(t){var i=function RoutedTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedTeamsTypeahead_Filter_typeof(o){return RoutedTeamsTypeahead_Filter_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},RoutedTeamsTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedTeamsTypeahead)(function RoutedTeamsTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedTeamsTypeahead_Filter_toPropertyKey(t){var i=function RoutedTeamsTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedTeamsTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTeamsTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTeamsTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));var RoutedInput_Filter=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),FilterLabel=__webpack_require__("./src/client/components/FilterLabel.js"),Filter_excluded=["label","hint"];var StyledFilterLabel=(0,styled_components_browser_esm.Ay)(FilterLabel.A)({marginBottom:govuk_react_constants_esm.Es.SCALE_5}),StyledHintText=(0,styled_components_browser_esm.Ay)(govuk_react_hint_text_esm.A)({marginBottom:govuk_react_constants_esm.Es.SCALE_2}),RoutedAventriIdFieldFilter=function RoutedAventriIdFieldFilter(_ref){var label=_ref.label,hint=_ref.hint,props=function Filter_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function Filter_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,Filter_excluded);return react.createElement(StyledFilterLabel,null,label,react.createElement(StyledHintText,null,hint),react.createElement(RoutedInput_Filter.A,props))};RoutedAventriIdFieldFilter.propTypes={label:prop_types_default().node.isRequired,hint:prop_types_default().string};RoutedAventriIdFieldFilter.__docgenInfo={description:"",methods:[],displayName:"RoutedAventriIdFieldFilter",props:{label:{description:"",type:{name:"node"},required:!0},hint:{description:"",type:{name:"string"},required:!1}}};var Filter_templateObject,Filter_templateObject2,RoutedRelatedCompaniesCheckboxGroup_constants=__webpack_require__("./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js");function Filter_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var SUBSIDIARIES_LIMITED_LABEL="Due to the large number of related companies in this  tree, we can only show projects from parent companies.",Filter_StyledParagraph=(0,styled_components_browser_esm.Ay)(govuk_react_esm.fz)(Filter_templateObject||(Filter_templateObject=Filter_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),Filter_StyledDetails=(0,styled_components_browser_esm.Ay)(govuk_react_esm.B_)(Filter_templateObject2||(Filter_templateObject2=Filter_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  span {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16),RoutedRelatedCompaniesCheckboxGroup=function RoutedRelatedCompaniesCheckboxGroup(_ref){var company=_ref.company,selectedOptions=_ref.selectedOptions;return react.createElement(react.Fragment,null,company.dunsNumber&&react.createElement(components_Resource.uf,{id:company.id},(function(relatedCompaniesCountResponse){return react.createElement(react.Fragment,null,relatedCompaniesCountResponse.relatedCompaniesCount>0&&react.createElement(ToggleSection.Q,{id:"ProjectCollection.include-related-companies-filters",label:"Related companies",isOpen:!0},react.createElement(components_RoutedCheckboxGroupField,{legend:"Include related companies",name:"include_related_companies",qsParam:"include_related_companies",options:relatedCompaniesCountResponse.reducedTree?RoutedRelatedCompaniesCheckboxGroup_constants.S:RoutedRelatedCompaniesCheckboxGroup_constants.j,selectedOptions,"data-test":"include-related-companies-filter","aria-describedby":relatedCompaniesCountResponse.reducedTree?SUBSIDIARIES_LIMITED_LABEL:void 0}),relatedCompaniesCountResponse.reducedTree&&react.createElement(Filter_StyledDetails,{summary:"Why can't I filter by subsidiary companies?"},react.createElement(Filter_StyledParagraph,null,SUBSIDIARIES_LIMITED_LABEL))))})))};RoutedRelatedCompaniesCheckboxGroup.__docgenInfo={description:"",methods:[],displayName:"RoutedRelatedCompaniesCheckboxGroup"};RoutedInputField_Filter.A,RoutedNumericRangeField_Filter.A;var ContactLocalHeader_StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_esm.N_)({fontSize:govuk_react_constants_esm.SG.SIZE_20}),StyledLocalHeaderHeading=(0,styled_components_browser_esm.Ay)(LocalHeaderHeading.A)({display:"flex",flexWrap:"wrap",columnGap:govuk_react_constants_esm.Es.SCALE_2,marginTop:govuk_react_constants_esm.Es.SCALE_1}),currentTab=function getCurrentTab(currentPath){return currentPath.includes("/interactions")?"Activity":currentPath.includes("/audit")?"Audit history":null}(location.pathname),buildBreadcrumbs=function buildBreadcrumbs(currentTab,id,name){var initialBreadcrumbs=[{link:urls_default().dashboard.index(),text:"Home"},{link:urls_default().contacts.index(),text:"Contacts"}],dynamicBreadcrumbs=currentTab?[{link:urls_default().contacts.contact(id),text:name},{text:currentTab}]:[{text:name}];return initialBreadcrumbs.concat(dynamicBreadcrumbs)},ContactLocalHeader=function ContactLocalHeader(_ref){var contact=_ref.contact,writeFlashMessage=_ref.writeFlashMessage;return react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{breadcrumbs:buildBreadcrumbs(currentTab,contact.id,contact.name)},react.createElement(govuk_react_esm.TW,null,react.createElement(govuk_react_esm.bn,null,react.createElement(ContactLocalHeader_StyledLink,{"data-test":"company-link",href:urls_default().companies.overview.index(contact.company.id)},contact.company.name),react.createElement(StyledLocalHeaderHeading,{"data-test":"contact-name"},contact.name,contact.primary&&react.createElement(Badge.A,{"data-test":"primary-badge",borderColour:"purple",textColour:"purple",fontSize:govuk_react_constants_esm.SG.SIZE_24},"Primary"))),!contact.archived&&react.createElement(govuk_react_esm.bn,{setWidth:"one-quarter"},react.createElement(govuk_react_esm.$n,{as:"a","data-test":"add-interaction-button",href:urls_default().companies.interactions.create(contact.company.id)},"Add interaction"))),contact.archived&&react.createElement(ArchivePanel.A,{archivedBy:contact.archivedBy,archivedOn:contact.archivedOn,archiveReason:contact.archivedReason,unarchiveUrl:urls_default().contacts.unarchive(contact.id),onClick:function onClick(){writeFlashMessage("Contact record updated")},type:"contact"})))};ContactLocalHeader.propTypes={contact:prop_types_default().object.isRequired,writeFlashMessage:prop_types_default().func};const components_ContactLocalHeader=(0,react_redux.connect)(null,(function dispatchToProps(dispatch){return{writeFlashMessage:function writeFlashMessage(message){return dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType:"success",message})}}}))(ContactLocalHeader);ContactLocalHeader.__docgenInfo={description:"",methods:[],displayName:"ContactLocalHeader",props:{contact:{description:"",type:{name:"object"},required:!0},writeFlashMessage:{description:"",type:{name:"func"},required:!1}}};var SectionHeader_templateObject,govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js");var StyledSectionHeader=(0,styled_components_browser_esm.Ay)("div")(SectionHeader_templateObject||(SectionHeader_templateObject=function SectionHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ",";\n  margin-bottom: ",";\n"])),govuk_react_lib_esm.Il.font({size:24,weight:"bold"}),govuk_react_constants_esm.Es.SCALE_4),SectionHeader=function SectionHeader(_ref){var type=_ref.type,children=_ref.children;return react.createElement(StyledSectionHeader,{"data-test":(0,lodash.kebabCase)("".concat(type,"-header"))},children)};SectionHeader.propTypes={type:prop_types_default().string.isRequired,children:prop_types_default().string.isRequired};var ContactLayout_templateObject;SectionHeader.__docgenInfo={description:"",methods:[],displayName:"SectionHeader",props:{type:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"string"},required:!0}}};var StyledNavWrapper=(0,styled_components_browser_esm.Ay)("div")(ContactLayout_templateObject||(ContactLayout_templateObject=function ContactLayout_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),ContactLayout=function ContactLayout(_ref){var contact=_ref.contact,flashMessages=_ref.flashMessages,permissions=_ref.permissions,children=_ref.children,canViewActivityLink=permissions.includes("interaction.view_all_interaction");return react.createElement(react.Fragment,null,react.createElement(components_ContactLocalHeader,{contact,writeFlashMessage:flashMessages}),react.createElement(Main.A,null,react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth:"one-quarter"},react.createElement(StyledNavWrapper,null,react.createElement(LocalNav,null,react.createElement(LocalNavLink,{dataTest:"contact-details-link",href:urls_default().contacts.details(contact.id)},"Details"),canViewActivityLink&&react.createElement(LocalNavLink,{dataTest:"contact-activity-link",href:urls_default().contacts.interactions.index(contact.id)},"Activity"),react.createElement(LocalNavLink,{dataTest:"contact-audit-link",href:urls_default().contacts.audit(contact.id)},"Audit history")))),react.createElement(govuk_react_grid_col_esm.Ay,null,children))))};ContactLayout.propTypes={contact:prop_types_default().object.isRequired,permissions:prop_types_default().array.isRequired,children:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().element),prop_types_default().element]).isRequired};ContactLayout.__docgenInfo={description:"",methods:[],displayName:"ContactLayout",props:{contact:{description:"",type:{name:"object"},required:!0},permissions:{description:"",type:{name:"array"},required:!0},children:{description:"",type:{name:"union",value:[{name:"arrayOf",value:{name:"element"}},{name:"element"}]},required:!0}}};__webpack_require__("./src/client/components/Form/elements/FieldCurrency/index.jsx"),__webpack_require__("./src/client/components/Wrap.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldCompaniesTypeahead/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx")},"./src/client/filters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _require=__webpack_require__("./src/client/utils/date.js");_require.formatLongDate,_require.formatShortDate},"./src/client/modules/Companies/CollectionList/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/client/modules/Companies/CollectionList/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./src/apps/companies/apps/edit-company/client/constants.js"),__webpack_require__("./src/client/filters.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/constants.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/transformers.js"),__webpack_require__("./src/client/utils/index.js");var ID="companiesList"},"./src/client/modules/Companies/CollectionList/transformers.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__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"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/lodash/lodash.js");__webpack_require__("./src/lib/urls.js"),__webpack_require__("./src/client/utils/addresses.js");var _require=__webpack_require__("./src/client/utils/date.js");_require.format,_require.formatMediumDateTime},"./src/client/modules/ExportPipeline/ExportList/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,e:()=>TASK_GET_EXPORT_PIPELINE_LIST,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/modules/ExportPipeline/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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 TASK_GET_EXPORT_PIPELINE_LIST="TASK_GET_EXPORT_PIPELINE_LIST",ID="exportPipelineList",areFiltersActive=function areFiltersActive(queryParams){var filters=(0,lodash__WEBPACK_IMPORTED_MODULE_17__.omitBy)(queryParams,(function(filterValue,filterName){return"all-statuses"===filterValue||"page"===filterName}));return!(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isEmpty)(filters)},state2props=function state2props(_ref){var router=_ref.router,state=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),queryParams=(0,_client_utils_url__WEBPACK_IMPORTED_MODULE_18__.g)(router.location);return _objectSpread(_objectSpread({},state[ID]),{},{payload:_objectSpread(_objectSpread({},queryParams),{},{page:(0,_client_utils_pagination__WEBPACK_IMPORTED_MODULE_19__.parsePage)(queryParams.page)}),filters:{areActive:areFiltersActive(queryParams),status:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.Js},exportPotential:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.Uo},sortby:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.QB}}})}},"./src/client/modules/ExportPipeline/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Js:()=>STATUS_LIST_OPTIONS,QB:()=>SORT_OPTIONS,Uo:()=>EXPORT_POTENTIAL_LIST_OPTIONS,sl:()=>SHOW_ALL_OPTION});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var SORT_OPTIONS=[{label:"Recently created",value:"created_on:desc"},{label:"Export title A-Z",value:"title"},{label:"Export title Z-A",value:"-title"},{label:"Company name A-Z",value:"company__name"},{label:"Company name Z-A",value:"-company__name"},{label:"Earliest expected date for win",value:"estimated_win_date"},{label:"Latest expected date for win",value:"-estimated_win_date"},{label:"Value increasing",value:"estimated_export_value_amount"},{label:"Value decreasing",value:"-estimated_export_value_amount"}],SHOW_ALL_OPTION={label:"Show all",value:"all-statuses"},EXPORT_POTENTIAL_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"High",value:"high"},{label:"Medium",value:"medium"},{label:"Low",value:"low"}]),STATUS_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"Active",value:"active"},{label:"Won",value:"won"},{label:"Inactive",value:"inactive"}])},"./src/client/modules/Investments/Projects/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cb:()=>STAGE_VERIFY_WIN,Li:()=>STAGE_ASSIGN_PM,QB:()=>SORT_OPTIONS,aO:()=>STAGE_ACTIVE,c0:()=>STAGE_WON,s1:()=>INVESTMENT_PROJECT_STAGES,sy:()=>STAGE_PROSPECT,ud:()=>NOT_LINKED_TO_R_AND_D});__webpack_require__("./node_modules/react/index.js");var STAGE_PROSPECT="Prospect",STAGE_ASSIGN_PM="Assign PM",STAGE_ACTIVE="Active",STAGE_VERIFY_WIN="Verify win",STAGE_WON="Won",INVESTMENT_PROJECT_STAGES=[STAGE_PROSPECT,STAGE_ASSIGN_PM,STAGE_ACTIVE,STAGE_VERIFY_WIN,STAGE_WON],NOT_LINKED_TO_R_AND_D="Not linked to a non-FDI R&D project",SORT_OPTIONS=[{name:"Recently created",value:"created_on:desc"},{name:"Earliest land date",value:"estimated_land_date:asc"},{name:"Latest land date",value:"estimated_land_date:desc"},{name:"Project name A-Z",value:"name:asc"}]},"./src/client/modules/Tasks/TaskForm/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>STATUS});var STATUS={ACTIVE:"active",COMPLETED:"complete"}},"./src/client/styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>focusMixin});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _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"),focusMixin={"&:focus":{outline:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.uk," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.eM),outlineOffset:"0"}}},"./src/client/transformers/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Vi:()=>transformIdNameToValueLabel,ce:()=>transformArrayIdNameToValueLabel});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/lodash/lodash.js"),__webpack_require__("./src/common/constants.js"),__webpack_require__("./src/client/utils/date.js");var transformIdNameToValueLabel=function transformIdNameToValueLabel(value){return value?{value:value.id,label:value.name}:null},transformArrayIdNameToValueLabel=function transformArrayIdNameToValueLabel(values){return values&&values.length>0?values.map(transformIdNameToValueLabel):[]}},"./src/client/utils/addresses.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),get=_require.get,compact=_require.compact;module.exports={addressToString:function addressToString(address){return["line_1","line_2","town","county","postcode","area.name","country.name"].map((function(component){return get(address,component)})).filter((function(value){return value})).join(", ")},addressToStringResource:function addressToStringResource(address){return["line1","line2","town","county","postcode","area.name","country.name"].map((function(component){return get(address,component)})).filter((function(value){return value})).join(", ")},getCompanyAddress:function getCompanyAddress(dnb_company){if(dnb_company)return compact([dnb_company.address_line_1,dnb_company.address_line_2,dnb_company.address_town,dnb_company.address_county,dnb_company.address_area_name,dnb_company.address_postcode]).join(", ")}}},"./src/client/utils/colours.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AV:()=>GREEN,B3:()=>rgba,Bd:()=>YELLOW_25,Bk:()=>RED,Br:()=>LIGHT_GREY,Cu:()=>LIGHT_BLUE_50,Df:()=>LINK_ACTIVE_COLOUR,EI:()=>BUTTON_COLOUR,FY:()=>LINK_HOVER_COLOUR,GU:()=>BORDER_COLOUR,IC:()=>GREY_1,Iz:()=>YELLOW,Kk:()=>FOOTER_TEXT,Np:()=>FOOTER_BACKGROUND,Nu:()=>LINK_VISITED_COLOUR,P1:()=>GREY_4,Pe:()=>GREY_2,Px:()=>TAG_COLOURS,UE:()=>WHITE,Uv:()=>BLACK,Vd:()=>PAGE_COLOUR,WS:()=>GREY_3,Xs:()=>BUTTON_COLOUR_DARKEN_15,Y0:()=>FOOTER_LINK_HOVER,Y8:()=>SECONDARY_TEXT_COLOUR,_G:()=>DARK_BLUE_LEGACY,eJ:()=>PROPOSITION_BORDER,eM:()=>FOCUS_COLOUR,ej:()=>GREY_3_LEGACY,fl:()=>FOOTER_BORDER_TOP,ft:()=>BLUE,hM:()=>DARK_GREY,hN:()=>ORANGE,hr:()=>PURPLE,jK:()=>FOOTER_LINK,m8:()=>LIGHT_BLUE,pA:()=>MID_GREY,pF:()=>TEXT_COLOUR,sB:()=>LIGHT_BLUE_25,su:()=>ERROR_COLOUR,yV:()=>LINK_COLOUR});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js");var rgba=function rgba(colorHex,alpha){return"rgba(".concat(function hexToRgb(colorHex){var colorValue=parseInt(colorHex.replace("#",""),16);return[colorValue>>16&255,colorValue>>8&255,255&colorValue].join()}(colorHex),",").concat(alpha,")")},GREY_3_LEGACY="#dee0e2",DARK_BLUE_LEGACY="#005ea5",DARK_GREY="#505a5f",MID_GREY="#b1b4b6",LIGHT_GREY="#f3f2f1",BLUE="#1d70b8",PURPLE="#2e358b",RED="#d4351c",ORANGE="#f47738",YELLOW="#ffdd00",YELLOW_25="#fff2d3",GREEN="#006435",LIGHT_BLUE="#2b8cc4",LIGHT_BLUE_50="#96c6e2",LIGHT_BLUE_25="#d5e8f3",BLACK="#0b0c0c",GREY_1=DARK_GREY,GREY_2="#bfc1c3",GREY_3=LIGHT_GREY,GREY_4="#f8f8f8",WHITE="#ffffff",LINK_COLOUR=BLUE,LINK_ACTIVE_COLOUR=LIGHT_BLUE,LINK_HOVER_COLOUR=LIGHT_BLUE,LINK_VISITED_COLOUR="#4c2c92",BUTTON_COLOUR="#00703c",BUTTON_COLOUR_DARKEN_15="#002413",FOCUS_COLOUR=YELLOW,TEXT_COLOUR=BLACK,SECONDARY_TEXT_COLOUR=DARK_GREY,BORDER_COLOUR=GREY_2,PAGE_COLOUR=WHITE,ERROR_COLOUR=RED,PROPOSITION_BORDER="#2e3133",FOOTER_BACKGROUND=LIGHT_GREY,FOOTER_BORDER_TOP="#a1acb2",FOOTER_LINK="#454a4c",FOOTER_LINK_HOVER="#171819",FOOTER_TEXT=FOOTER_LINK,TAG_COLOURS={default:{colour:WHITE,background:BLUE},grey:{colour:"#454a4d",background:"#eff0f1"},green:{colour:"#005a30",background:"#cce2d8"},darkGreen:{colour:WHITE,background:"#10403c"},turquoise:{colour:"#10403c",background:"#bfe3e0"},blue:{colour:"#144e81",background:"#d2e2f1"},purple:{colour:"#3d2375",background:"#dbd5e9"},pink:{colour:"#80224d",background:"#f7d7e6"},red:{colour:"#942514",background:"#f6d7d2"},orange:{colour:"#6e3619",background:"#fcd6c3"},yellow:{colour:"#594d00",background:"#fff7bf"}}},"./src/client/utils/date.js":(module,__unused_webpack_exports,__webpack_require__)=>{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}__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.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.number.is-nan.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _require=__webpack_require__("./node_modules/date-fns/esm/index.js"),addDaysFns=_require.addDays,addMonthsFns=_require.addMonths,addYearsFns=_require.addYears,differenceInDays=_require.differenceInDays,differenceInCalendarDays=_require.differenceInCalendarDays,isSameDay=_require.isSameDay,endOfToday=_require.endOfToday,getStartOfMonth=_require.startOfMonth,isWithinInterval=_require.isWithinInterval,endOfYesterday=_require.endOfYesterday,formatFns=_require.format,formatDistanceToNowStrict=_require.formatDistanceToNowStrict,isAfter=_require.isAfter,isValid=_require.isValid,parse=_require.parse,parseISO=_require.parseISO,subDays=_require.subDays,subMonths=_require.subMonths,subYears=_require.subYears,subWeeks=_require.subWeeks,differenceInCalendarMonths=_require.differenceInCalendarMonths,isFuture=_require.isFuture,areDatesEqual=_require.isEqual,endOfTomorrow=_require.endOfTomorrow,_require2=__webpack_require__("./src/common/constants.js"),DATE_LONG_FORMAT_1=_require2.DATE_LONG_FORMAT_1,DATE_LONG_FORMAT_2=_require2.DATE_LONG_FORMAT_2,DATE_LONG_FORMAT_3=_require2.DATE_LONG_FORMAT_3,DATE_MEDIUM_FORMAT=_require2.DATE_MEDIUM_FORMAT,DATE_TIME_MEDIUM_FORMAT=_require2.DATE_TIME_MEDIUM_FORMAT,DATE_SHORT_FORMAT=_require2.DATE_SHORT_FORMAT,DATE_SHORT_FORMAT_2=_require2.DATE_SHORT_FORMAT_2,INTERACTION_TIMESTAMP_FORMAT=_require2.INTERACTION_TIMESTAMP_FORMAT,DATE_DAY_MONTH=_require2.DATE_DAY_MONTH;function addDays(date,daysToAdd){return addDaysFns(date,daysToAdd)}function isDateAfter(date1,date2){return isAfter(date1,date2)}function subtractMonths(date,numberOfMonths){return subMonths(date,numberOfMonths)}function isDateValid(date){return isValid(parseISO(date))}function isUnparsedDateValid(date){return isValid(date)}function isNormalisedDateValid(year,month,day){var format=arguments.length>3&&void 0!==arguments[3]?arguments[3]:DATE_LONG_FORMAT_3,date=normaliseAndFormatDate(year,month,day);return isValid(parse(date,format,new Date))}function format(dateStr){var dateFormat=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_2;return isDateValid(dateStr)?formatFns(parseISO(dateStr),dateFormat):null}var padZero=function padZero(value){var parsedValue=parseInt(value,10);return Number.isNaN(parsedValue)?value:parsedValue<10?"0".concat(parsedValue):parsedValue.toString()};function normaliseAndFormatDate(year,month,day){var y=padZero(year),m=padZero(month),yearAndMonth="".concat(padZero(y),"-").concat(padZero(m));return day?"".concat(yearAndMonth,"-").concat(padZero(day)):yearAndMonth}function getDifferenceInDays(dateIn){var today=endOfToday();return differenceInCalendarDays(new Date(dateIn),today)}function convertDateToFieldDateObject(date){var parsedTime=parseISO(date);return isValid(parsedTime)?{day:parsedTime.getDate(),month:parsedTime.getMonth()+1,year:parsedTime.getFullYear()}:{day:"",month:"",year:""}}function getStartDateOfTwelveMonthsAgo(){return subMonths(getStartOfMonth(new Date),12)}module.exports=_defineProperty(_defineProperty(_defineProperty({addDays,addMonths:function addMonths(date,numberOfMonths){return addMonthsFns(date,numberOfMonths)},addYears:function addYears(date,yearsToAdd){return addYearsFns(date,yearsToAdd)},createAndFormatDateObject:function createAndFormatDateObject(date){return parse(date,arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_3,new Date)},format,formatMediumDate:function formatMediumDate(dateString){return format(dateString,DATE_MEDIUM_FORMAT)},formatMediumDateTime:function formatMediumDateTime(dateString){return format(dateString,DATE_TIME_MEDIUM_FORMAT)},formatLongDate:function formatLongDate(dateString){return format(dateString,DATE_LONG_FORMAT_1)},formatShortDate:function formatShortDate(dateString){return format(dateString,DATE_SHORT_FORMAT_2)},formatMonthYearDate:function formatMonthYearDate(date){return formatFns(parse(date,DATE_SHORT_FORMAT,new Date),DATE_LONG_FORMAT_3)},formatWithoutParsing:function formatWithoutParsing(date){var dateFormat=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_2;return isUnparsedDateValid(date)?formatFns(date,dateFormat):null},generateFinancialYearLabel:function generateFinancialYearLabel(yearStart){return"".concat(yearStart,"-").concat((yearStart+1).toString().slice(-2))},getDifferenceInDays,getDifferenceInDaysLabel:function getDifferenceInDaysLabel(dateIn){var difference=getDifferenceInDays(dateIn);return 1===Math.abs(difference)?difference+" day":difference+" days"},getDifferenceInWords:function getDifferenceInWords(date){var suffix=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],formattedDate=formatDistanceToNowStrict(parseISO(date),{addSuffix:suffix});return"1 day ago"==formattedDate?"a day ago":formattedDate},getInteractionTimestamp:function getInteractionTimestamp(_ref2){var offset=_ref2.offset,date=new Date;return offset>0&&subMonths(date,offset),format(date,INTERACTION_TIMESTAMP_FORMAT)},getFinancialYearStart:function getFinancialYearStart(date){return date.getMonth()<3?date.getFullYear()-1:date.getFullYear()},getYesterday:function getYesterday(){return endOfYesterday()},isDateAfter,isDateValid,isNormalisedDateValid,isShortDateValid:function isShortDateValid(year,month){return isNormalisedDateValid(year,month,null,DATE_SHORT_FORMAT)},isUnparsedDateValid,parseDateString:function parseDateString(dateString){if(-1!==dateString.indexOf("/")){var parts=dateString.split("/");return new Date(parts[2],parts[1]-1,parts[0])}var date=new Date(dateString);return"Invalid Date"!==date.toString()?date:null},subtractDays:function subtractDays(date,daysToSubtract){return subDays(date,daysToSubtract)},subtractMonths,subtractYears:function subtractYears(date,yearsToSubtract){return subYears(date,yearsToSubtract)},subtractWeeks:function subtractWeeks(date,numberOfweeks){return subWeeks(date,numberOfweeks)},today:function today(){return format(new Date)},transformValueForAPI:function transformValueForAPI(_ref){var year=_ref.year,month=_ref.month,_ref$day=_ref.day,day=void 0===_ref$day?1:_ref$day;return year&&month&&day?normaliseAndFormatDate(year,month,day):null},createDateFromObject:function createDateFromObject(_ref3){var day=_ref3.day,month=_ref3.month,year=_ref3.year,monthIndex=parseInt(month,10)-1;return new Date(year,monthIndex,day)},formatStartAndEndDate:function formatStartAndEndDate(startDate,endDate){var startDateParsed=parseISO(startDate),endDateParsed=parseISO(endDate),startDateFormatted=format(startDate),endDateFormatted=format(endDate);return endDate&&isDateAfter(endDateParsed,startDateParsed)?startDateParsed.toDateString()===endDateParsed.toDateString()?startDateFormatted:0==differenceInCalendarMonths(endDateParsed,startDateParsed)?"".concat(startDateParsed.getDate()," to ").concat(endDateFormatted):startDateParsed.getFullYear()===endDateParsed.getFullYear()?"".concat(format(startDate,DATE_DAY_MONTH)," to ").concat(endDateFormatted):"".concat(startDateFormatted," to ").concat(endDateFormatted):startDateFormatted},convertDateToFieldShortDateObject:function convertDateToFieldShortDateObject(date){var _convertDateToFieldDa=convertDateToFieldDateObject(date);return{month:_convertDateToFieldDa.month,year:_convertDateToFieldDa.year}},isDateInFuture:function isDateInFuture(date){return isFuture(parseISO(date))},parseDateISO:function parseDateISO(date){return parseISO(date)},convertDateToFieldDateObject,getRandomDateInRange:function getRandomDateInRange(startDate,endDate){if(isSameDay(startDate,endDate))throw new Error("Start date and end date cannot be the same.");if(startDate>endDate)throw new Error("Start date cannot be greater than end date.");var daysDifference=differenceInDays(endDate,startDate);return addDays(startDate,Math.floor(Math.random()*(daysDifference+1)))},isWithinLastTwelveMonths:function isWithinLastTwelveMonths(date){return isWithinInterval(date,{start:getStartDateOfTwelveMonthsAgo(),end:new Date})},getStartDateOfTwelveMonthsAgo,getStartOfMonth},"subtractMonths",subtractMonths),"areDatesEqual",areDatesEqual),"tomorrow",(function tomorrow(){return endOfTomorrow()}))},"./src/client/utils/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Bc:()=>idNamesToValueLabels,OM:()=>_deepKeysToCamelCase});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/lodash/lodash.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var idNameToValueLabel=function idNameToValueLabel(_ref){return{value:_ref.id,label:_ref.name}},idNamesToValueLabels=function idNamesToValueLabels(idNames){return idNames.map(idNameToValueLabel)},_deepKeysToCamelCase=function deepKeysToCamelCase(x){return Array.isArray(x)?x.map(_deepKeysToCamelCase):(0,lodash__WEBPACK_IMPORTED_MODULE_23__.isPlainObject)(x)?Object.fromEntries(Object.entries(x).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),k=_ref3[0],v=_ref3[1];return[(0,lodash__WEBPACK_IMPORTED_MODULE_23__.camelCase)(k),_deepKeysToCamelCase(v)]}))):x}},"./src/client/utils/multiinstance.js":(__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.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var react__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/lodash/lodash.js"),react_redux__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),prop_types__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["type"],_excluded2=["type"],_excluded3=["dispatch"];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<a;e++)n[e]=r[e];return n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var interceptDispatch=function interceptDispatch(dispatch,id){return function(_ref2){var type=_ref2.type,action=_objectWithoutProperties(_ref2,_excluded2);return dispatch(_objectSpread(_objectSpread({},action),{},{type,id}))}},connect=function connect(componentState2props,dispatch2props){for(var _len=arguments.length,rest=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)rest[_key-2]=arguments[_key];return(0,lodash__WEBPACK_IMPORTED_MODULE_28__.curry)((function(Component,name,idProp){componentState2props=componentState2props||function(x){return x};var Connected=react_redux__WEBPACK_IMPORTED_MODULE_29__.connect.apply(react_redux__WEBPACK_IMPORTED_MODULE_29__,[function(state,props){var _state$name;return componentState2props((null===(_state$name=state[name])||void 0===_state$name?void 0:_state$name[props[idProp]])||{},state,props)},dispatch2props&&function(dispatch,props){for(var _len2=arguments.length,rest=new Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)rest[_key2-2]=arguments[_key2];return dispatch2props.apply(void 0,[interceptDispatch(dispatch,props[idProp]),props].concat(rest))}].concat(rest))((function(_ref3){var dispatch=_ref3.dispatch,props=_objectWithoutProperties(_ref3,_excluded3);return react__WEBPACK_IMPORTED_MODULE_27__.createElement(Component,_extends({},props,{dispatch:interceptDispatch(dispatch,props[idProp])}))}));return Connected.propTypes=_defineProperty({},idProp,prop_types__WEBPACK_IMPORTED_MODULE_30___default().string.isRequired),Connected}))};const __WEBPACK_DEFAULT_EXPORT__=function(_ref4){var name=_ref4.name,component=_ref4.component,reducer=_ref4.reducer,actionPattern=_ref4.actionPattern,_ref4$connectArgs=_ref4.connectArgs,connectArgs=void 0===_ref4$connectArgs?[]:_ref4$connectArgs,_ref4$componentStateT=_ref4.componentStateToProps,componentStateToProps=void 0===_ref4$componentStateT?function(x){return x}:_ref4$componentStateT,dispatchToProps=_ref4.dispatchToProps,_ref4$idProp=_ref4.idProp,idProp=void 0===_ref4$idProp?"id":_ref4$idProp;console.assert(component,"component is required"),console.assert(reducer,"reducer is required"),console.assert(name,"name is required"),console.assert(actionPattern,"actionPattern is required");var Connected=connect.apply(void 0,[componentStateToProps,dispatchToProps].concat(_toConsumableArray(connectArgs)))(component)(name,idProp);return Connected.reducerSpread=_defineProperty({},name,function reducerDecorator(reducer,actionPattern){var idProp=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return function(){var _String$Object$Array$,_String$Object$Array$2,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,action=_objectWithoutProperties(_ref,_excluded),id=action[idProp],handleAction=null===(_String$Object$Array$=(_String$Object$Array$2={String:function String(){return type.startsWith(actionPattern)},Object:function(_Object){function Object(){return _Object.apply(this,arguments)}return Object.toString=function(){return _Object.toString()},Object}((function(){return Object.values(actionPattern).includes(type)})),Array:function Array(){return actionPattern.includes(type)},RegExp:function RegExp(){return type.match(actionPattern)}})[Object.prototype.toString.apply(actionPattern).slice(8,-1)])||void 0===_String$Object$Array$?void 0:_String$Object$Array$.call(_String$Object$Array$2);if(handleAction&&id){var nextState=reducer(state[id],_objectSpread({type},action));return(0,lodash__WEBPACK_IMPORTED_MODULE_28__.isEmpty)(nextState)?(0,lodash__WEBPACK_IMPORTED_MODULE_28__.omit)(state,id):_objectSpread(_objectSpread({},state),{},_defineProperty({},id,nextState))}return state}}(reducer,actionPattern,idProp)),Connected.displayName="multiInstance(".concat(name,")"),Connected}},"./src/client/utils/number-utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Dv:()=>currencyGBP,_:()=>decimal,hx:()=>indexToOrdinal,vE:()=>parseLocaleNumber});__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.regexp.constructor.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/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 decimal=function decimal(number){return number||0===number?new Intl.NumberFormat("en-GB",{style:"decimal"}).format(number):null},currencyGBP=function currencyGBP(number){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maximumSignificantDigits:21};return number||0===number?new Intl.NumberFormat("en-GB",_objectSpread({style:"currency",currency:"GBP"},options)).format(number):null},indexToOrdinal=function indexToOrdinal(zeroBasedIndex){var naturalIndex=zeroBasedIndex+1,units=naturalIndex%10;return units>3||1===~~(naturalIndex/10)%10?naturalIndex+"th":1===units?naturalIndex+"st":2===units?naturalIndex+"nd":3===units?naturalIndex+"rd":void 0},parseLocaleNumber=function parseLocaleNumber(stringNumber){var locale=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB";if(!stringNumber.length)return stringNumber;var thousandSeparator=Intl.NumberFormat(locale).format(11111).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g,""),decimalSeparator=Intl.NumberFormat(locale).format(1.1).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g,"");return Number(stringNumber.replace(new RegExp("\\"+thousandSeparator,"g"),"").replace(new RegExp("\\"+decimalSeparator),"."))}},"./src/client/utils/pagination.js":module=>{module.exports={getPageOffset:function getPageOffset(_ref){var limit=_ref.limit,page=_ref.page,_ref$maxItems=_ref.maxItems,maxItems=void 0===_ref$maxItems?1e4:_ref$maxItems;return Math.min(limit*(page-1),maxItems-limit)||0},parsePage:function parsePage(page){var defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,pageNumber=parseInt(page,10);return isNaN(pageNumber)?defaultValue:pageNumber}}},"./src/client/utils/url.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>getQueryParamsFromLocation});__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.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),qs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_19__);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}var getQueryParamsFromLocation=function getQueryParamsFromLocation(location){var queryString=location.search.slice(1);return(0,lodash__WEBPACK_IMPORTED_MODULE_18__.omitBy)(function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},qs__WEBPACK_IMPORTED_MODULE_19___default().parse(queryString)),lodash__WEBPACK_IMPORTED_MODULE_18__.isEmpty)}},"./src/common/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var OPTIONS_YES_NO=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],EXPORT_INTEREST_STATUS={EXPORTING_TO:"currently_exporting",FUTURE_INTEREST:"future_interest",NOT_INTERESTED:"not_interested"};module.exports={DATE_DAY_LONG_FORMAT:"E, dd MMM yyyy",DATE_DAY_MONTH:"dd MMM",DATE_LONG_FORMAT_1:"d MMMM yyyy",DATE_LONG_FORMAT_2:"dd MMM yyyy",DATE_LONG_FORMAT_3:"yyyy-MM-dd",DATE_MEDIUM_FORMAT:"d MMM yyyy",DATE_TIME_MEDIUM_FORMAT:"d MMM yyyy, h:mmaaa",DATE_SHORT_FORMAT:"yyyy-MM",DATE_SHORT_FORMAT_2:"MMMM yyyy",INTERACTION_TIMESTAMP_FORMAT:"y-MM-d",UNITED_KINGDOM_ID:"80756b9a-5d95-e211-a939-e4115bead28a",UNITED_STATES_ID:"81756b9a-5d95-e211-a939-e4115bead28a",CANADA_ID:"5daf72a6-5d95-e211-a939-e4115bead28a",UK_REGIONS:{EAST_MIDLANDS:"844cd12a-6095-e211-a939-e4115bead28a",EAST_OF_ENGLAND:"864cd12a-6095-e211-a939-e4115bead28a",LONDON:"874cd12a-6095-e211-a939-e4115bead28a",NORTH_EAST:"814cd12a-6095-e211-a939-e4115bead28a",NORTHERN_IRELAND:"8e4cd12a-6095-e211-a939-e4115bead28a",NORTH_WEST:"824cd12a-6095-e211-a939-e4115bead28a",SCOTLAND:"8c4cd12a-6095-e211-a939-e4115bead28a",SOUTH_EAST:"884cd12a-6095-e211-a939-e4115bead28a",SOUTH_WEST:"894cd12a-6095-e211-a939-e4115bead28a",WALES:"8d4cd12a-6095-e211-a939-e4115bead28a",WEST_MIDLANDS:"854cd12a-6095-e211-a939-e4115bead28a",YORKSHIRE_AND_THE_HUMBER:"834cd12a-6095-e211-a939-e4115bead28a"},PRIMARY_LINK_PARAMS:{companies:"?archived[0]=false&sortby=modified_on:desc&page=1",contacts:"?archived[0]=false&sortby=modified_on:desc&page=1",events:"?page=1&sortby=modified_on:desc",interactions:"?page=1&sortby=date:desc",investments:"?page=1&sortby=created_on:desc",omis:"?page=1&sortby=created_on:desc",reconciliation:"?page=1&sortby=payment_due_date:asc&status=quote_accepted"},INVESTMENT_LINK_PARAM:"?sortby=-created_on&page=1",GENERIC_PHONE_NUMBER_REGEX:/^$|([0-9]|#|\+|\s|\(|\))+$/,OPTIONS_YES_NO,OPTION_YES:"yes",OPTION_NO:"no",FORM_LAYOUT:{THREE_QUARTERS:"three-quarters",ONE_THIRD:"one-third",TWO_THIRDS:"two-thirds",ONE_HALF:"one-half"},METHOD_PATCH:"PATCH",METHOD_POST:"POST",EXPORT_INTEREST_STATUS,EXPORT_INTEREST_STATUS_VALUES:Object.values(EXPORT_INTEREST_STATUS)}},"./src/common/formatAdviser.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.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.trim.js");module.exports={parseAdviserData:function parseAdviserData(advisers){return advisers.filter((function(adviser){return adviser.name&&adviser.name.trim().length})).map((function(_ref){var id=_ref.id,name=_ref.name,dit_team=_ref.dit_team;return{label:"".concat(name).concat(dit_team?", "+dit_team.name:""),chipLabel:name,value:id}}))}}},"./src/lib/group-export-countries.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.sort.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/web.dom-collections.for-each.js");var EXPORT_INTEREST_STATUS_VALUES=__webpack_require__("./src/common/constants.js").EXPORT_INTEREST_STATUS_VALUES;module.exports=function(countries){var buckets={};return Array.isArray(countries)&&(EXPORT_INTEREST_STATUS_VALUES.forEach((function(status){buckets[status]=[]}),{}),countries.forEach((function(item){var bucket=buckets[item.status];bucket&&bucket.push(item.country)})),EXPORT_INTEREST_STATUS_VALUES.forEach((function(status){buckets[status]=buckets[status].sort((function(a,b){return a.name.localeCompare(b.name)}))}))),buckets}},"./src/lib/urls.js":(module,__unused_webpack_exports,__webpack_require__)=>{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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var queryString=__webpack_require__("./node_modules/qs/lib/index.js"),_require=__webpack_require__("./src/common/constants.js"),INVESTMENT_LINK_PARAM=_require.INVESTMENT_LINK_PARAM,PRIMARY_LINK_PARAMS=_require.PRIMARY_LINK_PARAMS;function url(mountPoint,subMountPoint,path){var tokenPath;path?tokenPath=subMountPoint+path:path=tokenPath=subMountPoint||"/";var tokens=function getTokens(path){var tokens=[];return path.split("/").forEach((function(part){part.startsWith(":")&&tokens.push(part)})),tokens}(tokenPath);function getUrl(){for(var _len=arguments.length,params=new Array(_len),_key=0;_key<_len;_key++)params[_key]=arguments[_key];return function getPath(mountPoint,path,tokens,params){return"/"===path?mountPoint:[].concat(params).reduce((function(acc,param,index){return param&&param.constructor===Object?acc+(acc.includes("?")?"&":"?")+queryString.stringify(param):tokens[index]?acc.replace(tokens[index],param):acc}),mountPoint+path).replace(/\/:\w+\?\//,"/")}(mountPoint,tokenPath,tokens,params)}return getUrl.mountPoint=mountPoint,getUrl.route=path,getUrl}function createInteractionsSubApp(mountPoint){var pathPrefix=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{index:"/interactions"===mountPoint?url(mountPoint,PRIMARY_LINK_PARAMS.interactions,pathPrefix):url(mountPoint,pathPrefix),detail:url(mountPoint,pathPrefix+"/:interactionId"),create:url(mountPoint,pathPrefix+"/create"),createType:url(mountPoint,pathPrefix+"/create/:theme/:kind"),edit:url(mountPoint,pathPrefix+"/:interactionId/edit")}}module.exports={testing:{index:url("/testing")},external:{companiesHouse:function companiesHouse(companyNumber){return"https://beta.companieshouse.gov.uk/company/".concat(companyNumber)},exportWins:"https://www.exportwins.service.trade.gov.uk/",omis:"https://omis.trade.gov.uk/",dataWorkspace:{findExporters:"https://data.trade.gov.uk/datasets/4a0da123-a933-4250-90b5-df5cde34930b",accountPlans:function accountPlans(id){return"https://data.trade.gov.uk/visualisations/link/e69bbfde-0e68-49d3-ad81-ddffbad6bac6#p.CompanyID=".concat(id)}},nationalArchives:{copyright:"https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/",openGovLicence:"https://www.nationalarchives.gov.uk/doc/open-government-licence"},great:{companyProfile:function companyProfile(id){return"https://www.great.gov.uk/international/trade/suppliers/".concat(id)},privacyPolicy:"https://www.great.gov.uk/uk/privacy-policy/"},govUkHomepage:"https://www.gov.uk/",digitalWorkspace:{teams:"https://people.trade.gov.uk/teams/department-for-international-trade",accountManagement:"https://workspace.trade.gov.uk/working-at-dit/policies-and-guidance/strategic-relationship-account-management/"},helpCentre:{community:{roadmap:"https://data-services-help.trade.gov.uk/data-hub/updates/roadmap/data-hub-roadmap/ ",feedback:"https://data-services-help.trade.gov.uk/data-hub/crm-community/feedback-or-propose-changes",principles:"https://data-services-help.trade.gov.uk/data-hub/crm-community/crm-principles",training:"https://data-services-help.trade.gov.uk/data-hub/crm-community/training"},accessibilityStatement:"https://data-services-help.trade.gov.uk/data-hub/how-articles/data-hub-accessibility-statement/data-hub-accessibility-statement/",dhHomepage:"https://data-services-help.trade.gov.uk/data-hub/",policyFeedback:"https://data-services-help.trade.gov.uk/data-hub/how-articles/interactions-and-service-delivery/record-business-intelligence-interaction/",tradeAgreementGuidance:"https://data-services-help.trade.gov.uk/data-hub/how-articles/trade-agreement-activity/recording-trade-agreement-activity/",cookies:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/data-hub-cookie-policy/",privacyNotice:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/data-hub-privacy-notice/",allUpdates:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/",referrals:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/improving-collaboration-internal-referrals/",reminderAndSettings:"https://data-services-help.trade.gov.uk/data-hub/how-articles/reminders-and-email-notifications/"},euVIES:"https://ec.europa.eu/taxation_customs/vies/",cleanEnergyTransition:"https://www.gov.uk/government/consultations/aligning-uk-international-support-for-the-clean-energy-transition"},dashboard:{index:url("/"),investmentProjects:url("/investment-projects"),myTasks:url("/my-tasks")},oauth:{redirect:url("/oauth"),callback:url("/oauth/callback"),signout:url("/oauth/sign-out")},company:{exportWin:url("/api-proxy/v4/company","/:companyId/export-win")},community:{index:url("/community")},companies:{index:url("/companies",PRIMARY_LINK_PARAMS.companies),create:url("/companies","/create"),createFromDNB:url("/companies/create?duns_number=",":dunsNumber"),export:url("/companies","/export"),detail:url("/companies","/:companyId"),edit:url("/companies","/:companyId/edit"),audit:url("/companies","/:companyId/audit"),lists:{index:url("/companies","/:companyId/lists"),addRemove:url("/companies","/:companyId/lists/add-remove")},orders:url("/companies","/:companyId/orders"),details:url("/companies","/:companyId/details"),archive:url("/companies","/:companyId/archive"),contacts:url("/companies","/:companyId/contacts"),unarchive:url("/companies","/:companyId/unarchive"),businessDetails:url("/companies","/:companyId/business-details"),editOneList:url("/companies","/:companyId/edit-one-list"),editVirtualTeam:url("/companies","/:companyId/edit-one-list?step=oneListAdvisers"),interactions:createInteractionsSubApp("/companies","/:companyId/interactions"),manageCompanyList:url("/companies","/:companyId/manage-company-list"),referrals:{list:url("/my-referrals"),send:url("/companies","/:companyId/referrals/send"),details:url("/companies","/:companyId/referrals/:referralId"),help:url("/companies","/:companyId/referrals/:referralId/help"),interactions:createInteractionsSubApp("/companies","/:companyId/referrals/:referralId/interactions")},activity:{index:url("/companies","/:companyId/activity")},editHistory:{index:url("/companies","/:companyId/edit-history"),data:url("/companies","/:companyId/edit-history/data")},dnbHierarchy:{index:url("/companies","/:companyId/dnb-hierarchy"),data:url("/companies","/:companyId/dnb-hierarchy/data"),tree:url("/companies","/:companyId/company-tree"),relatedCompaniesCount:url("/v4/dnb","/:companyId/related-companies/count")},exports:{index:url("/companies","/:companyId/exports"),edit:url("/companies","/:companyId/exports/edit"),editCountries:url("/companies","/:companyId/exports/edit-countries"),history:{index:url("/companies","/:companyId/exports/history"),country:url("/companies","/:companyId/exports/history/:countryId")}},exportWins:{index:url("/exportwins"),confirmed:url("/exportwins/confirmed"),pending:url("/exportwins/pending"),rejected:url("/exportwins/rejected"),create:url("/companies","/:companyId/exportwins/create"),createFromExport:url("/companies","/:companyId/export/:exportId/exportwins/create"),createSuccess:url("/exportwins","/:winId/success"),customerFeedback:url("/companies","/:companyId/exportwins/:winId/customer-feedback"),editOfficerDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=officer_details"),editCreditForThisWin:url("/companies","/:companyId/exportwins/:winId/edit?step=credit_for_this_win"),editCustomerDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=customer_details"),editWinDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=win_details"),editSupportProvided:url("/companies","/:companyId/exportwins/:winId/edit?step=support_provided"),editSummary:url("/companies","/:companyId/exportwins/:winId/edit?step=summary"),editSuccess:url("/companies","/:companyId/exportwins/:winId/edit-success")},overview:{index:url("/companies","/:companyId/overview")},hierarchies:{ghq:{add:url("/companies","/:companyId/hierarchies/ghq/:globalHqId/add"),link:url("/companies","/:companyId/hierarchies/ghq/search"),remove:url("/companies","/:companyId/hierarchies/ghq/remove")},subsidiaries:{index:url("/companies","/:companyId/subsidiaries"),search:url("/companies","/:companyId/hierarchies/subsidiaries/search"),add:url("/companies","/:companyId/hierarchies/subsidiaries/:subsidiaryCompanyId/add")}},investments:{companyInvestment:url("/companies","/:companyId/investments"),companyInvestmentProjects:url("/companies","/:companyId/investments/projects"),companyInvestmentProjectsWithSearch:url("/companies","/:companyId/investments/projects?page=1&sortby=created_on%3Adesc"),largeCapitalProfile:url("/companies","/:companyId/investments/large-capital-profile")},match:{index:url("/companies","/:companyId/match"),confirmation:url("/companies","/:companyId/match/:dunsNumber"),link:url("/companies","/:companyId/match/link"),merge:url("/companies","/:companyId/match/merge"),cannotFind:url("/companies","/:companyId/match/cannot-find")},subsidiaries:{index:url("/companies","/:companyId/subsidiaries"),link:url("/companies","/:companyId/subsidiaries/link")},accountManagement:{index:url("/companies","/:companyId/account-management"),strategy:{create:url("/companies","/:companyId/account-management/strategy/create"),edit:url("/companies","/:companyId/account-management/strategy/edit")},objectives:{create:url("/companies","/:companyId/account-management/objective/create"),edit:url("/companies","/:companyId/account-management/objective/:objectiveId/edit"),archived:url("/companies","/:companyId/account-management/objective/archived"),archive:url("/companies","/:companyId/account-management/objective/:objectiveId/archive")},advisers:{assign:url("/companies","/:companyId/account-management/advisers/assign"),remove:url("/companies","/:companyId/account-management/advisers/remove")}}},companyLists:{index:url("/company-lists"),delete:url("/company-lists","/:listId/delete"),rename:url("/company-lists","/:listId/rename")},contacts:{index:url("/contacts",PRIMARY_LINK_PARAMS.contacts),export:url("/contacts","/export"),audit:url("/contacts","/:contactId/audit"),contact:url("/contacts","/:contactId"),create:url("/contacts/create?company=",":companyId"),contactActivities:url("/contacts","/:contactId/interactions"),details:url("/contacts","/:contactId/details"),edit:url("/contacts","/:contactId/edit"),interactions:createInteractionsSubApp("/contacts","/:contactId/interactions"),archive:url("/contacts","/:contactId/archive"),unarchive:url("/contacts","/:contactId/unarchive")},events:{activity:{data:url("/events","/activity/data")},index:url("/events",PRIMARY_LINK_PARAMS.events),create:url("/events/create"),details:url("/events","/:eventId/details"),edit:url("/events","/:eventId/edit"),attendees:url("/events","/:eventId/attendees"),find:url("/events","/:eventId/attendees/find-new"),addAttendee:url("/events","/:eventId/attendees/create/:contactId"),aventri:{details:url("/events","/aventri/:aventriEventId/details"),detailsData:url("/events","/aventri/:aventriEventId/details/data"),registrationStatus:url("/events","/aventri/:aventriEventId/registration/:status"),registrationStatusData:url("/events","/aventri/:aventriEventId/registration/attendees/data")}},search:{index:url("/search"),type:url("/search","/:searchPath?")},interactions:_objectSpread(_objectSpread({},createInteractionsSubApp("/interactions")),{},{activeEvents:url("/activeEvents"),activeEventsData:url("/interactions","/activeEvents"),export:url("/interactions","/export"),exportSupportService:{details:url("/interactions","/ess/:essInteractionId/details"),detailsData:url("/interactions","/ess/:essInteractionId/details/data")}}),investments:{index:url("/investments",PRIMARY_LINK_PARAMS.investments),projects:{index:url("/investments","/projects"),export:url("/investments","/projects","/export"),details:url("/investments","/projects/:investmentId/details"),editDetails:url("/investments","/projects/:investmentId/edit-details"),editRequirements:url("/investments","/projects/:investmentId/edit-requirements"),editTeamMembers:url("/investments","/projects/:investmentId/edit-team-members"),editValue:url("/investments","/projects/:investmentId/edit-value"),propositions:url("/investments","/projects/:investmentId/propositions",INVESTMENT_LINK_PARAM),proposition:{details:url("/investments","/projects/:investmentId/propositions/:propositionId"),abandon:url("/investments","/projects/:investmentId/propositions/:propositionId/abandon"),document:{index:url("/investments","/projects/:investmentId/propositions/:propositionId/document"),delete:url("/investments","/projects/:investmentId/propositions/:propositionId/document/:documentId/delete")},complete:url("/investments","/projects/:investmentId/propositions/:propositionId/complete"),create:url("/investments","/projects/:investmentId/propositions/create/proposition")},team:url("/investments","/projects/:investmentId/team"),clientRelationshipManagement:url("/investments","/projects/:investmentId/edit-client-relationship-management"),interactions:createInteractionsSubApp("/investments/projects","/:investmentId/interactions",INVESTMENT_LINK_PARAM),status:url("/investments","/projects/:projectId/status"),admin:url("/investments","/projects/:projectId/admin"),create:url("/investments","/projects/create/:companyId"),editProjectManagement:url("/investments","/projects/:projectId/edit-project-management"),findAssociatedProject:url("/investments","/projects/:projectId/find-associated"),editAssociatedProject:url("/investments","/projects/:projectId/edit-associated/:associatedProjectId"),evidence:{index:url("/investments","/projects/:projectId/evidence"),add:url("/investments","/projects/:projectId/evidence/add-new"),delete:url("/investments","/projects/:projectId/evidence/:evidenceId/delete")},recipientCompany:url("/investments","/projects/:projectId/find-ukcompany"),editRecipientCompany:url("/investments","/projects/:projectId/edit-ukcompany/:companyId"),removeRecipientCompany:url("/investments","/projects/:projectId/remove-ukcompany"),removeAssociatedProject:url("/investments","/projects/:projectId/remove-associated"),evaluation:url("/investments","/projects/:projectId/evaluation"),tasks:{index:url("/investments","/projects/:projectId/tasks","?sortby=-created_on")}},profiles:{index:url("/investments","/profiles"),data:url("/investments","/profiles/data")},opportunities:{index:url("/investments","/opportunities"),opportunity:url("/investments","/opportunities/:opportunityId"),details:url("/investments","/opportunities/:opportunityId/details"),interactions:url("/investments","/opportunities/:opportunityId/interactions"),largeCapitalOpportunityDetails:url("/api-proxy/v4/large-capital-opportunity","/:opportunityId"),status:url("/investments","/opportunities/:opportunityId/status"),create:url("/investments","/opportunities/create")},editHistory:{index:url("/investments/projects","/:investmentId/edit-history"),data:url("/investments/projects","/:investmentId/edit-history/data")}},metadata:{likelihoodToLand:url("/api-proxy/v4/metadata","/likelihood-to-land"),investmentInvestorType:url("/api-proxy/v4/metadata","/investment-investor-type"),investmentInvolvement:url("/api-proxy/v4/metadata","/investment-involvement"),investmentSpecificProgramme:url("/api-proxy/v4/metadata","/investment-specific-programme"),investmentProjectStage:url("/api-proxy/v4/metadata","/investment-project-stage"),investmentBusinessActivity:url("/api-proxy/v4/metadata","/investment-business-activity"),investmentType:url("/api-proxy/v4/metadata","/investment-type"),investmentStrategicDriver:url("/api-proxy/v4/metadata","/investment-strategic-driver"),orderServiceType:url("/api-proxy/v4/metadata","/order-service-type"),orderCancellationReason:url("/api-proxy/v4/metadata","/order-cancellation-reason"),omisMarket:url("/api-proxy/v4/metadata","/omis-market"),salaryRange:url("/api-proxy/v4/metadata","/salary-range"),fdiValue:url("/api-proxy/v4/metadata","/fdi-value"),fdiType:url("/api-proxy/v4/metadata","/fdi-type"),turnover:url("/api-proxy/v4/metadata","/turnover"),sector:url("/api-proxy/v4/metadata","/sector"),locationType:url("/api-proxy/v4/metadata","/location-type"),eventType:url("/api-proxy/v4/metadata","/event-type"),programme:url("/api-proxy/v4/metadata","/programme"),businessType:url("/api-proxy/v4/metadata","/business-type"),evidenceTag:url("/api-proxy/v4/metadata","/evidence-tag"),employeeRange:url("/api-proxy/v4/metadata","/employee-range"),country:url("/api-proxy/v4/metadata","/country"),ukRegion:url("/api-proxy/v4/metadata","/uk-region"),administrativeArea:url("/api-proxy/v4/metadata","/administrative-area"),referralSourceWebsite:url("/api-proxy/v4/metadata","/referral-source-website"),referralSourceMarketing:url("/api-proxy/v4/metadata","/referral-source-marketing"),referralSourceActivity:url("/api-proxy/v4/metadata","/referral-source-activity"),headquarterType:url("/api-proxy/v4/metadata","/headquarter-type"),service:url("/api-proxy/v4/metadata","/service"),communicationChannel:url("/api-proxy/v4/metadata","/communication-channel"),team:url("/api-proxy/v4/metadata","/team"),policyArea:url("/api-proxy/v4/metadata","/policy-area"),policyIssueType:url("/api-proxy/v4/metadata","/policy-issue-type"),serviceDeliveryStatus:url("/api-proxy/v4/metadata","/service-delivery-status"),capitalInvestmentInvestorType:url("/api-proxy/v4/metadata/capital-investment","/investor-type"),capitalInvestmentRequiredChecksConducted:url("/api-proxy/v4/metadata/capital-investment","/required-checks-conducted"),capitalInvestmentDealTicketSize:url("/api-proxy/v4/metadata/capital-investment","/deal-ticket-size"),capitalInvestmentLargeCapitalInvestment:url("/api-proxy/v4/metadata/capital-investment","/large-capital-investment"),capitalInvestmentLargeCapitalInvestmentType:url("/api-proxy/v4/metadata/capital-investment","/large-capital-investment-type"),capitalInvestmentReturnRate:url("/api-proxy/v4/metadata/capital-investment","/return-rate"),capitalInvestmentTimeHorizon:url("/api-proxy/v4/metadata/capital-investment","/time-horizon"),capitalInvestmentRestriction:url("/api-proxy/v4/metadata/capital-investment","/restriction"),capitalInvestmentConstructionRisk:url("/api-proxy/v4/metadata/capital-investment","/construction-risk"),capitalInvestmentEquityPercentage:url("/api-proxy/v4/metadata/capital-investment","/equity-percentage"),capitalInvestmentDesiredDealRole:url("/api-proxy/v4/metadata/capital-investment","/desired-deal-role"),capitalInvestmentAssetClassInterest:url("/api-proxy/v4/metadata/capital-investment","/asset-class-interest"),largeCapitalOpportunityMetadata:url("/api-proxy/v4/metadata/large-capital-opportunity","/opportunity-value-type"),oneListTier:url("/api-proxy/v4/metadata","/one-list-tier"),tradeAgreement:url("/api-proxy/v4/metadata","/trade-agreement")},omis:{index:url("/omis",PRIMARY_LINK_PARAMS.omis),export:url("/omis","/export"),create:{companySelect:url("/omis","/create"),form:url("/omis","/create/:companyId")},reconciliation:url("/omis/reconciliation",PRIMARY_LINK_PARAMS.reconciliation),order:url("/omis","/:orderId"),paymentReconciliation:url("/omis","/:orderId","/edit/payment-reconciliation"),paymentReceipt:url("/omis","/:orderId/payment-receipt"),workOrder:url("/omis","/:orderId/work-order"),quote:url("/omis","/:orderId/quote"),edit:{quote:url("/omis","/:orderId/edit/quote-details"),assignees:url("/omis","/:orderId/edit/assignees"),subscribers:url("/omis","/:orderId/edit/subscribers"),internalInfo:url("/omis","/:orderId/edit/internal-details"),invoiceDetails:url("/omis","/:orderId/edit/invoice-details"),billingAddress:url("/omis","/:orderId/edit/billing-address"),vatStatus:url("/omis","/:orderId/edit/vat-status"),assigneeTime:url("/omis","/:orderId/edit/assignee-time"),contact:url("/omis","/:orderId/edit/contact"),setLeadAssignee:url("/omis","/:orderId/edit/lead-adviser/:adviserId")},cancel:url("/omis","/:orderId/edit/cancel-order"),complete:url("/omis","/:orderId/edit/complete-order"),paymentReceiptReconciliation:url("/omis","/:orderId/reconciliation/payment-receipt")},support:url("/support"),reminders:{index:url("/reminders"),investments:{estimatedLandDate:url("/reminders/investments-estimated-land-dates"),noRecentInteraction:url("/reminders/investments-no-recent-interactions"),outstandingPropositions:url("/reminders/investments-outstanding-propositions")},exports:{noRecentInteractions:url("/reminders/companies-no-recent-interactions"),newInteractions:url("/reminders/companies-new-interactions")},myTasks:{dueDateApproaching:url("/reminders/my-tasks-due-date-approaching"),taskAssignedToMeFromOthers:url("/reminders/my-tasks-task-assigned-to-me-from-others"),taskAmendedByOthers:url("/reminders/my-tasks-task-amended-by-others"),taskOverdue:url("/reminders/my-tasks-task-overdue"),taskCompleted:url("/reminders/my-tasks-task-completed")},settings:{index:url("/reminders/settings"),investments:{estimatedLandDate:url("/reminders/settings/investments-estimated-land-dates"),noRecentInteraction:url("/reminders/settings/investments-no-recent-interactions")},exports:{noRecentInteraction:url("/reminders/settings/companies-no-recent-interactions"),newInteraction:url("/reminders/settings/companies-new-interactions")},myTasks:{dueDateApproaching:url("/reminders/settings/my-tasks-due-date-approaching"),taskAssignedToMeFromOthers:url("/reminders/settings/my-tasks-task-assigned-to-me-from-others"),taskAmendedByOthers:url("/reminders/settings/my-tasks-task-amended-by-others"),taskOverdue:url("/reminders/settings/my-tasks-task-overdue"),taskCompleted:url("/reminders/settings/my-tasks-task-completed")}}},exportPipeline:{index:url("/export"),create:url("/export/create?companyId=",":companyId"),details:url("/export","/:exportId/details"),edit:url("/export","/:exportId/edit"),delete:url("/export","/:exportId/delete")},tasks:{details:url("/tasks","/:taskId/details"),create:url("/tasks","/create"),createInvestmentProject:url("/tasks/create?investmentProjectId=",":investmentProjectId"),createInteraction:url("/tasks/create?interactionId=",":interactionId"),createCopyTask:url("/tasks/create?copyTaskId=",":copyTaskId"),edit:url("/tasks","/:taskId/edit"),statusComplete:url("/tasks","/:taskId/status-complete"),statusActive:url("/tasks","/:taskId/status-active"),archive:url("/tasks","/:taskId/archive"),unarchive:url("/tasks","/:taskId/unarchive")}}},"./src/modules/permissions/filters.js":(module,__unused_webpack_exports,__webpack_require__)=>{var _require=__webpack_require__("./node_modules/lodash/lodash.js"),get=_require.get,intersection=_require.intersection;module.exports={filterNonPermittedItem:function filterNonPermittedItem(userPermissions){return function(item){return!get(item,"permissions.length",0)||intersection(item.permissions,userPermissions).length>0}},filterDisabledOption:function filterDisabledOption(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref$currentValue=_ref.currentValue,currentValue=void 0===_ref$currentValue?null:_ref$currentValue,createdOn=_ref.createdOn,createdOnTime=Date.parse(createdOn)||Date.now();return function(item){if(!item.disabled_on)return!0;var isDisabled=Date.parse(item.disabled_on)>createdOnTime,isCurrentValue=item.id===currentValue;return isDisabled||isCurrentValue}}}},"./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Form/elements/__stories__/FieldAddAnother.stories":["./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx",3220],"./Form/elements/__stories__/FieldAddAnother.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx",3220],"./Form/elements/__stories__/FieldCheckboxes.stories":["./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx",8141],"./Form/elements/__stories__/FieldCheckboxes.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx",8141],"./Form/elements/__stories__/FieldChoice.stories":["./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx",7163],"./Form/elements/__stories__/FieldChoice.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx",7163],"./Form/elements/__stories__/FieldCompaniesTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx",6286],"./Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx",6286],"./Form/elements/__stories__/FieldCurrency.stories":["./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx",1555],"./Form/elements/__stories__/FieldCurrency.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx",1555],"./Form/elements/__stories__/FieldDate.stories":["./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx",8262],"./Form/elements/__stories__/FieldDate.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx",8262],"./Form/elements/__stories__/FieldHelp.stories":["./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx",3943],"./Form/elements/__stories__/FieldHelp.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx",3943],"./Form/elements/__stories__/FieldInput.stories":["./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx",7310],"./Form/elements/__stories__/FieldInput.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx",7310],"./Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx",8575],"./Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx",8575],"./Form/elements/__stories__/FieldSelect.stories":["./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx",8458],"./Form/elements/__stories__/FieldSelect.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx",8458],"./Form/elements/__stories__/FieldTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx",6653],"./Form/elements/__stories__/FieldTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx",6653],"./Form/elements/__stories__/FieldWrapper.stories":["./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx",1791],"./Form/elements/__stories__/FieldWrapper.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx",1791]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return __webpack_require__.e(ids[1]).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$",module.exports=webpackAsyncContext},"./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./ArchivePanel/__stories__/ArchivePanel.stories":["./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx",5328],"./ArchivePanel/__stories__/ArchivePanel.stories.jsx":["./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx",5328],"./Badge/__stories__/Badge.stories":["./src/client/components/Badge/__stories__/Badge.stories.jsx",362],"./Badge/__stories__/Badge.stories.jsx":["./src/client/components/Badge/__stories__/Badge.stories.jsx",362],"./ButtonLink/__stories__/ButtonLink.stories":["./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx",8840],"./ButtonLink/__stories__/ButtonLink.stories.jsx":["./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx",8840],"./CheckboxGroupField/__stories__/CheckboxGroupField.stories":["./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx",9768],"./CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx":["./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx",9768],"./Chip/__stories__/Chip.stories":["./src/client/components/Chip/__stories__/Chip.stories.jsx",6704],"./Chip/__stories__/Chip.stories.jsx":["./src/client/components/Chip/__stories__/Chip.stories.jsx",6704],"./CollectionList/__stories__/CollectionHeader.stories":["./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx",9355],"./CollectionList/__stories__/CollectionHeader.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx",9355],"./CollectionList/__stories__/CollectionItem.stories":["./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx",4785],"./CollectionList/__stories__/CollectionItem.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx",4785],"./CollectionList/__stories__/CollectionList.stories":["./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx",3152],"./CollectionList/__stories__/CollectionList.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx",3152],"./ContactInformation/__stories__/ContactInformation.stories":["./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx",8964],"./ContactInformation/__stories__/ContactInformation.stories.jsx":["./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx",8964],"./DataHubHeader/__stories__/DataHubHeader.stories":["./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx",5074],"./DataHubHeader/__stories__/DataHubHeader.stories.jsx":["./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx",5074],"./DateField/__stories__/DateField.stories":["./src/client/components/DateField/__stories__/DateField.stories.jsx",1506],"./DateField/__stories__/DateField.stories.jsx":["./src/client/components/DateField/__stories__/DateField.stories.jsx",1506],"./DownloadDataHeader/__stories__/DownloadDataHeader.stories":["./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx",4786],"./DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx":["./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx",4786],"./EntityList/__stories__/EntityList.stories":["./src/client/components/EntityList/__stories__/EntityList.stories.jsx",2614],"./EntityList/__stories__/EntityList.stories.jsx":["./src/client/components/EntityList/__stories__/EntityList.stories.jsx",2614],"./ErrorSummary/__stories__/ErrorSummary.stories":["./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx",4108],"./ErrorSummary/__stories__/ErrorSummary.stories.jsx":["./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx",4108],"./Footer/__stories__/Footer.stories":["./src/client/components/Footer/__stories__/Footer.stories.jsx",2142],"./Footer/__stories__/Footer.stories.jsx":["./src/client/components/Footer/__stories__/Footer.stories.jsx",2142],"./Form/__stories__/Form.stories":["./src/client/components/Form/__stories__/Form.stories.jsx",9580],"./Form/__stories__/Form.stories.jsx":["./src/client/components/Form/__stories__/Form.stories.jsx",9580],"./InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories":["./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx",280],"./InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx":["./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx",280],"./InvestmentReminders/__stories__/InvestmentReminders.stories":["./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx",8490],"./InvestmentReminders/__stories__/InvestmentReminders.stories.jsx":["./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx",8490],"./LocalHeader/__stories__/FlashMessages.stories":["./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx",4350],"./LocalHeader/__stories__/FlashMessages.stories.jsx":["./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx",4350],"./LocalHeader/__stories__/LocalHeader.stories":["./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx",7546],"./LocalHeader/__stories__/LocalHeader.stories.jsx":["./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx",7546],"./LocalHeaderDetails/__stories__/LocalHeaderDetails.stories":["./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx",1684],"./LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx":["./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx",1684],"./Main/__stories__/Main.stories":["./src/client/components/Main/__stories__/Main.stories.jsx",1322],"./Main/__stories__/Main.stories.jsx":["./src/client/components/Main/__stories__/Main.stories.jsx",1322],"./Metadata/__stories__/Metadata.stories":["./src/client/components/Metadata/__stories__/Metadata.stories.jsx",2558],"./Metadata/__stories__/Metadata.stories.jsx":["./src/client/components/Metadata/__stories__/Metadata.stories.jsx",2558],"./NewWindowLink/__stories__/NewWindowLink.stories":["./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx",1186],"./NewWindowLink/__stories__/NewWindowLink.stories.jsx":["./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx",1186],"./NotificationBadge/__stories__/NotificationBadge.stories":["./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx",2342],"./NotificationBadge/__stories__/NotificationBadge.stories.jsx":["./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx",2342],"./Pagination/__stories__/Pagination.stories":["./src/client/components/Pagination/__stories__/Pagination.stories.jsx",3480],"./Pagination/__stories__/Pagination.stories.jsx":["./src/client/components/Pagination/__stories__/Pagination.stories.jsx",3480],"./Panel/__stories__/Panel.stories":["./src/client/components/Panel/__stories__/Panel.stories.jsx",6214],"./Panel/__stories__/Panel.stories.jsx":["./src/client/components/Panel/__stories__/Panel.stories.jsx",6214],"./ReadMore/__stories__/ReadMore.stories":["./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx",7322],"./ReadMore/__stories__/ReadMore.stories.jsx":["./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx",7322],"./Resource/__stories__/Resource.stories":["./src/client/components/Resource/__stories__/Resource.stories.jsx",2496],"./Resource/__stories__/Resource.stories.jsx":["./src/client/components/Resource/__stories__/Resource.stories.jsx",2496],"./RoutedInput/__stories__/RoutedInput.stories":["./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx",6846],"./RoutedInput/__stories__/RoutedInput.stories.jsx":["./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx",6846],"./RoutedInputField/__stories__/RoutedInputFieldFilter.stories":["./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx",4428],"./RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx":["./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx",4428],"./RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories":["./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx",1796],"./RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx":["./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx",1796],"./StatusMessage/__stories__/DismissableStatusMessage.stories":["./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx",1468],"./StatusMessage/__stories__/DismissableStatusMessage.stories.jsx":["./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx",1468],"./StatusMessage/__stories__/StatusMessage.stories":["./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx",3318],"./StatusMessage/__stories__/StatusMessage.stories.jsx":["./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx",3318],"./SummaryList/__stories__/SummaryList.stories":["./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx",1586],"./SummaryList/__stories__/SummaryList.stories.jsx":["./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx",1586],"./SummaryTable/__stories__/SummaryTable.stories":["./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx",1288],"./SummaryTable/__stories__/SummaryTable.stories.jsx":["./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx",1288],"./TabNav/__stories__/TabNav.stories":["./src/client/components/TabNav/__stories__/TabNav.stories.jsx",2192],"./TabNav/__stories__/TabNav.stories.jsx":["./src/client/components/TabNav/__stories__/TabNav.stories.jsx",2192],"./Tag/__stories__/Tag.stories":["./src/client/components/Tag/__stories__/Tag.stories.jsx",1122],"./Tag/__stories__/Tag.stories.jsx":["./src/client/components/Tag/__stories__/Tag.stories.jsx",1122],"./Task/__stories__/Error.stories":["./src/client/components/Task/__stories__/Error.stories.jsx",9925],"./Task/__stories__/Error.stories.jsx":["./src/client/components/Task/__stories__/Error.stories.jsx",9925],"./Task/__stories__/ProgressIndicator.stories":["./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx",5099],"./Task/__stories__/ProgressIndicator.stories.jsx":["./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx",5099],"./Task/__stories__/Task.stories":["./src/client/components/Task/__stories__/Task.stories.jsx",5158],"./Task/__stories__/Task.stories.jsx":["./src/client/components/Task/__stories__/Task.stories.jsx",5158],"./Timeline/__stories__/Timeline.stories":["./src/client/components/Timeline/__stories__/Timeline.stories.jsx",790],"./Timeline/__stories__/Timeline.stories.jsx":["./src/client/components/Timeline/__stories__/Timeline.stories.jsx",790],"./ToggleSection/__stories__/ToggleSection.stories":["./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx",710],"./ToggleSection/__stories__/ToggleSection.stories.jsx":["./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx",710],"./Typeahead/__stories__/Typeahead.stories":["./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx",1310],"./Typeahead/__stories__/Typeahead.stories.jsx":["./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx",1310]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return __webpack_require__.e(ids[1]).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$",module.exports=webpackAsyncContext},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"?4f7e":()=>{}},__webpack_require__=>{__webpack_require__.O(0,[9892],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]);
\ No newline at end of file
diff --git a/main.92e43082.iframe.bundle.js.LICENSE.txt b/main.0da5e94c.iframe.bundle.js.LICENSE.txt
similarity index 100%
rename from main.92e43082.iframe.bundle.js.LICENSE.txt
rename to main.0da5e94c.iframe.bundle.js.LICENSE.txt
diff --git a/main.92e43082.iframe.bundle.js b/main.92e43082.iframe.bundle.js
deleted file mode 100644
index c72dbb54050..00000000000
--- a/main.92e43082.iframe.bundle.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see main.92e43082.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;i<importers.length;i++){const moduleExports=await(x=()=>importers[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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function startTask(task,action){var result,id,name,payload,onSuccessDispatch,_id,_name;return _regeneratorRuntime().wrap((function startTask$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.yJ)(_objectSpread(_objectSpread({},action),{},{type:actions.p8B}));case 2:return _context.prev=2,_context.next=5,(0,redux_saga_effects_npm_proxy_esm.T1)(task,action.payload,action.id);case 5:if(result=_context.sent,id=action.id,name=action.name,payload=action.payload,!(onSuccessDispatch=action.onSuccessDispatch)){_context.next=10;break}return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:onSuccessDispatch,name,id,payload,result});case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.n_2,id,name});case 12:_context.next=23;break;case 14:if(_context.prev=14,_context.t0=_context.catch(2),!(_context.t0 instanceof Error)){_context.next=20;break}throw _context.t0;case 20:return _id=action.id,_name=action.name,_context.next=23,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.GAr,id:_id,name:_name,error:_context.t0,errorMessage:"string"==typeof _context.t0?_context.t0:_context.t0.message});case 23:case"end":return _context.stop()}}),_marked,null,[[2,14]])}function manageTask(task,action){var s;return _regeneratorRuntime().wrap((function manageTask$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(startTask,task,action);case 2:s=_context2.sent;case 3:return _context2.next=6,(0,redux_saga_effects_npm_proxy_esm.s)((function(_ref){var type=_ref.type,name=_ref.name,id=_ref.id;return type===actions.KQv&&name===action.name&&id===action.id}));case 6:return _context2.next=8,(0,redux_saga_effects_npm_proxy_esm.ZT)(s);case 8:_context2.next=3;break;case 10:case"end":return _context2.stop()}}),_marked2)}function subscribeToDismiss(){var _loop;return _regeneratorRuntime().wrap((function subscribeToDismiss$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:_loop=_regeneratorRuntime().mark((function _loop(){var _yield$take,id,name;return _regeneratorRuntime().wrap((function _loop$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=2,(0,redux_saga_effects_npm_proxy_esm.s)(actions.RnU);case 2:return _yield$take=_context3.sent,id=_yield$take.id,name=_yield$take.name,_context3.next=7,(0,redux_saga_effects_npm_proxy_esm.Lt)((function(state){return"error"===(0,lodash.get)(state,["tasks",name,id,"status"])}));case 7:if(!_context3.sent){_context3.next=11;break}return _context3.next=11,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.n_2,id,name});case 11:case"end":return _context3.stop()}}),_loop)}));case 1:return _context4.delegateYield(_loop(),"t0",3);case 3:_context4.next=1;break;case 5:case"end":return _context4.stop()}}),_marked3)}function subscribeToStart(registry){var _loop2;return _regeneratorRuntime().wrap((function subscribeToStart$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:_loop2=_regeneratorRuntime().mark((function _loop2(){var action,name,id,task;return _regeneratorRuntime().wrap((function _loop2$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.next=2,(0,redux_saga_effects_npm_proxy_esm.s)(actions.EGH);case 2:if(action=_context5.sent,name=action.name,id=action.id,task=registry[action.name]){_context5.next=7;break}throw Error('Task "'.concat(name,'" is not registered!'));case 7:return _context5.next=9,(0,redux_saga_effects_npm_proxy_esm.Lt)((function(state){return(0,lodash.get)(state,["tasks",name,id,"status"])}));case 9:if("progress"!==_context5.sent){_context5.next=12;break}return _context5.abrupt("return",1);case 12:return _context5.next=14,(0,redux_saga_effects_npm_proxy_esm.cH)(manageTask,task,action);case 14:case"end":return _context5.stop()}}),_loop2)}));case 1:return _context6.delegateYield(_loop2(),"t0",3);case 3:if(!_context6.t0){_context6.next=5;break}return _context6.abrupt("continue",1);case 5:_context6.next=1;break;case 7:case"end":return _context6.stop()}}),_marked4)}const saga=function(registry){return _regeneratorRuntime().mark((function _callee(){return _regeneratorRuntime().wrap((function _callee$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.next=2,(0,redux_saga_effects_npm_proxy_esm.cH)(subscribeToStart,registry);case 2:return _context7.next=4,(0,redux_saga_effects_npm_proxy_esm.cH)(subscribeToDismiss);case 4:case"end":return _context7.stop()}}),_callee)}))};function saga_typeof(o){return 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},saga_typeof(o)}function saga_regeneratorRuntime(){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"==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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?saga_ownKeys(Object(t),!0).forEach((function(r){saga_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):saga_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function saga_defineProperty(e,r,t){return(r=function saga_toPropertyKey(t){var i=function saga_toPrimitive(t,r){if("object"!=saga_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=saga_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==saga_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _callee(){var _yield$take,category,action,label,extra,event,data;return saga_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.bVo);case 3:_yield$take=_context.sent,category=_yield$take.category,action=_yield$take.action,label=_yield$take.label,extra=_yield$take.extra,event=_yield$take.event,window.dataLayer=window.dataLayer||[],data=(0,lodash.omitBy)(saga_objectSpread(saga_objectSpread({},extra),{},{event,category,action,label}),lodash.isUndefined),window.dataLayer.push(data),_context.next=0;break;case 14:case"end":return _context.stop()}}),saga_marked)}function HardRedirect_saga_typeof(o){return HardRedirect_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},HardRedirect_saga_typeof(o)}function HardRedirect_saga_regeneratorRuntime(){HardRedirect_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"==HardRedirect_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(HardRedirect_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(sagas_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<a;e++)n[e]=r[e];return n}function writeFlashMessages(){var _yield$take,messageType,message;return sagas_regeneratorRuntime().wrap((function writeFlashMessages$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.$rh);case 3:_yield$take=_context.sent,messageType=_yield$take.messageType,message=_yield$take.message,Array.isArray(message)?addMessageWithBody.apply(void 0,[messageType].concat(_toConsumableArray(message))):addMessage(messageType,message),_context.next=0;break;case 9:case"end":return _context.stop()}}),sagas_marked)}function readFlashMesages(){var flashMessages;return sagas_regeneratorRuntime().wrap((function readFlashMesages$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.vl8);case 3:if(flashMessages=getMessages(),!Object.keys(flashMessages).length){_context2.next=8;break}return _context2.next=7,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.Ijb,flashMessages});case 7:clearMessages();case 8:_context2.next=0;break;case 10:case"end":return _context2.stop()}}),sagas_marked2)}function writeAnnouncementLinkToLocalStorage(){var _yield$take2,announcementLink;return sagas_regeneratorRuntime().wrap((function writeAnnouncementLinkToLocalStorage$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.Edz);case 3:if(_yield$take2=_context3.sent,!(announcementLink=_yield$take2.announcementLink)){_context3.next=9;break}return writeToLocalStorage(announcementLink),_context3.next=9,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.F8v,announcementLink});case 9:_context3.next=0;break;case 11:case"end":return _context3.stop()}}),sagas_marked3)}function readAnnouncementLinkFromLocalStorage(){var announcementLink;return sagas_regeneratorRuntime().wrap((function readAnnouncementLinkFromLocalStorage$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:return _context4.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.krh);case 3:if(!(announcementLink=readFromLocalStorage())){_context4.next=7;break}return _context4.next=7,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.F8v,announcementLink});case 7:_context4.next=0;break;case 9:case"end":return _context4.stop()}}),sagas_marked4)}__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var saveToSession=function saveToSession(payload){var state=(0,lodash.assign)(getFromSession(),payload);window.sessionStorage.setItem("myInvestmentProjects",JSON.stringify(state))},getFromSession=function getFromSession(){try{return JSON.parse(window.sessionStorage.getItem("myInvestmentProjects"))||{}}catch(_unused){return{}}};function MyInvestmentProjects_sagas_typeof(o){return MyInvestmentProjects_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},MyInvestmentProjects_sagas_typeof(o)}var _excluded=["type"];function MyInvestmentProjects_sagas_regeneratorRuntime(){MyInvestmentProjects_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"==MyInvestmentProjects_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(MyInvestmentProjects_sagas_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var MyInvestmentProjects_sagas_marked=MyInvestmentProjects_sagas_regeneratorRuntime().mark(writeMyInvestmentsToSession),MyInvestmentProjects_sagas_marked2=MyInvestmentProjects_sagas_regeneratorRuntime().mark(readMyInvestmentsFromSession);function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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 CookiePage_saga_typeof(o){return CookiePage_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},CookiePage_saga_typeof(o)}function CookiePage_saga_regeneratorRuntime(){CookiePage_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"==CookiePage_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(CookiePage_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var CookiePage_saga_marked=CookiePage_saga_regeneratorRuntime().mark(cookiePreferenceChangeSaga),storageChannel=(0,redux_saga_core_npm_proxy_esm.Od)((function(emit){return window.addEventListener("storage",emit),function(){return window.removeEventListener(emit)}}));function cookiePreferenceChangeSaga(){var _yield$take,key,newValue;return CookiePage_saga_regeneratorRuntime().wrap((function cookiePreferenceChangeSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(storageChannel);case 3:if(_yield$take=_context.sent,key=_yield$take.key,newValue=_yield$take.newValue,"cookie-consent"!==key){_context.next=9;break}return _context.next=9,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:"RESOURCE",name:"load cookie preference",id:"cookieConsent",result:newValue});case 9:_context.next=0;break;case 11:case"end":return _context.stop()}}),CookiePage_saga_marked)}function root_saga_typeof(o){return root_saga_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},root_saga_typeof(o)}function root_saga_regeneratorRuntime(){root_saga_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==root_saga_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(root_saga_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducer_ownKeys(Object(t),!0).forEach((function(r){reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducer_defineProperty(e,r,t){return(r=function reducer_toPropertyKey(t){var i=function reducer_toPrimitive(t,r){if("object"!=reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function reducer_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function reducer_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<s.length;r++)o=s[r],t.includes(o)||{}.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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyLists_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyLists_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyLists_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLists_reducer_defineProperty(e,r,t){return(r=function CompanyLists_reducer_toPropertyKey(t){var i=function CompanyLists_reducer_toPrimitive(t,r){if("object"!=CompanyLists_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLists_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLists_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 initialState={orderBy:__webpack_require__("./src/client/components/CompanyLists/Filters.jsx").Ot};var client_state=__webpack_require__("./src/apps/companies/apps/referrals/details/client/state.js");function client_reducer_typeof(o){return client_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},client_reducer_typeof(o)}function client_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 client_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?client_reducer_ownKeys(Object(t),!0).forEach((function(r){client_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):client_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function client_reducer_defineProperty(e,r,t){return(r=function client_reducer_toPropertyKey(t){var i=function client_reducer_toPrimitive(t,r){if("object"!=client_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=client_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==client_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ExportHistory_reducer_typeof(o){return ExportHistory_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},ExportHistory_reducer_typeof(o)}function ExportHistory_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 ExportHistory_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportHistory_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportHistory_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportHistory_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportHistory_reducer_defineProperty(e,r,t){return(r=function ExportHistory_reducer_toPropertyKey(t){var i=function ExportHistory_reducer_toPrimitive(t,r){if("object"!=ExportHistory_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportHistory_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportHistory_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 reducer_initialState={count:0,results:[],activePage:1};var TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx"),ReferralList=__webpack_require__("./src/client/components/ReferralList/index.jsx"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx"),Typeahead=__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx"),FieldAddAnother=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx");__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");function CollectionList_reducer_typeof(o){return 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},CollectionList_reducer_typeof(o)}function 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 CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CollectionList_reducer_defineProperty(e,r,t){return(r=function CollectionList_reducer_toPropertyKey(t){var i=function CollectionList_reducer_toPrimitive(t,r){if("object"!=CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CollectionList_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 CollectionList_reducer_initialState={results:[],isComplete:!1,count:0,activePage:1};function Opportunities_reducer_typeof(o){return Opportunities_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},Opportunities_reducer_typeof(o)}function Opportunities_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 Opportunities_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Opportunities_reducer_ownKeys(Object(t),!0).forEach((function(r){Opportunities_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Opportunities_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Opportunities_reducer_defineProperty(e,r,t){return(r=function Opportunities_reducer_toPropertyKey(t){var i=function Opportunities_reducer_toPrimitive(t,r){if("object"!=Opportunities_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Opportunities_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Opportunities_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 Opportunities_reducer_initialState={incompleteDetailsFields:0,incompleteRequirementsFields:0,opportunity:{isEditingDetails:!1,isEditingRequirements:!1,detailsFields:{name:"",description:"",ukRegions:[],promoters:[],requiredChecksConducted:[],requiredChecksConductedOn:0,requiredChecksConductedBy:{},leadRelationshipManager:{},otherDitContacts:[],assetClasses:[],valueType:[],opportunityValue:{label:"Opportunity value",value:0},constructionRisks:[]},requirementsFields:{totalInvestmentSought:0,currentInvestmentSecured:0,investmentTypes:[],returnRate:{},timeHorizons:[]},status:[]},metadata:{investmentTypes:[],returnRates:[],timeScales:[]}};function CompanyBusinessDetails_reducer_typeof(o){return CompanyBusinessDetails_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},CompanyBusinessDetails_reducer_typeof(o)}function CompanyBusinessDetails_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 CompanyBusinessDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyBusinessDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyBusinessDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyBusinessDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyBusinessDetails_reducer_defineProperty(e,r,t){return(r=function CompanyBusinessDetails_reducer_toPropertyKey(t){var i=function CompanyBusinessDetails_reducer_toPrimitive(t,r){if("object"!=CompanyBusinessDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyBusinessDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyBusinessDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Profiles_reducer_typeof(o){return Profiles_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},Profiles_reducer_typeof(o)}function Profiles_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 Profiles_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Profiles_reducer_ownKeys(Object(t),!0).forEach((function(r){Profiles_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Profiles_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Profiles_reducer_defineProperty(e,r,t){return(r=function Profiles_reducer_toPropertyKey(t){var i=function Profiles_reducer_toPrimitive(t,r){if("object"!=Profiles_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Profiles_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Profiles_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 Profiles_reducer_initialState={page:1,results:[],isComplete:!1,filterOptions:{countries:[],assetClassesOfInterest:[],dealTicketSize:[],investmentTypes:[],minimumReturnRate:[],timeHorizon:[],restrictions:[],constructionRisk:[],minimumEquityPercentage:[],desiredDealRole:[]}};__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/client/utils/date.js");var utils=__webpack_require__("./src/client/utils/index.js"),Projects_constants=(__webpack_require__("./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js"),__webpack_require__("./src/client/filters.js"),__webpack_require__("./src/client/modules/Investments/Projects/constants.js")),common_constants=(__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),__webpack_require__("./src/common/constants.js")),lib_urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(lib_urls);__webpack_require__("./src/apps/companies/constants.js"),__webpack_require__("./src/client/components/Tag/index.jsx");function Projects_reducer_typeof(o){return Projects_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},Projects_reducer_typeof(o)}function Projects_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 Projects_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Projects_reducer_ownKeys(Object(t),!0).forEach((function(r){Projects_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Projects_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Projects_reducer_defineProperty(e,r,t){return(r=function Projects_reducer_toPropertyKey(t){var i=function Projects_reducer_toPrimitive(t,r){if("object"!=Projects_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Projects_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Projects_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 Projects_reducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1,completeStatus:""};const Projects_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?investmentProjectReducer_ownKeys(Object(t),!0).forEach((function(r){investmentProjectReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):investmentProjectReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function investmentProjectReducer_defineProperty(e,r,t){return(r=function investmentProjectReducer_toPropertyKey(t){var i=function investmentProjectReducer_toPrimitive(t,r){if("object"!=investmentProjectReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=investmentProjectReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==investmentProjectReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var investmentProjectReducer_initialState={project:void 0};__webpack_require__("./node_modules/core-js/modules/es.array.sort.js");function TableCards_reducer_typeof(o){return TableCards_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},TableCards_reducer_typeof(o)}function TableCards_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 TableCards_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TableCards_reducer_ownKeys(Object(t),!0).forEach((function(r){TableCards_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TableCards_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TableCards_reducer_defineProperty(e,r,t){return(r=function TableCards_reducer_toPropertyKey(t){var i=function TableCards_reducer_toPrimitive(t,r){if("object"!=TableCards_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TableCards_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TableCards_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 TableCards_reducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1};function exportStatusReducer_typeof(o){return exportStatusReducer_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},exportStatusReducer_typeof(o)}function exportStatusReducer_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 exportStatusReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?exportStatusReducer_ownKeys(Object(t),!0).forEach((function(r){exportStatusReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):exportStatusReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function exportStatusReducer_defineProperty(e,r,t){return(r=function exportStatusReducer_toPropertyKey(t){var i=function exportStatusReducer_toPrimitive(t,r){if("object"!=exportStatusReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=exportStatusReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==exportStatusReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var exportStatusReducer_initialState={results:[],selectedAdvisers:[],metadata:{},isComplete:!1};function recentReducer_typeof(o){return recentReducer_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},recentReducer_typeof(o)}function recentReducer_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 recentReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?recentReducer_ownKeys(Object(t),!0).forEach((function(r){recentReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):recentReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function recentReducer_defineProperty(e,r,t){return(r=function recentReducer_toPropertyKey(t){var i=function recentReducer_toPrimitive(t,r){if("object"!=recentReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=recentReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==recentReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var defaultState={total:0,page:1,result:[],isComplete:!1};function upcomingReducer_typeof(o){return upcomingReducer_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},upcomingReducer_typeof(o)}function upcomingReducer_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 upcomingReducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?upcomingReducer_ownKeys(Object(t),!0).forEach((function(r){upcomingReducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):upcomingReducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function upcomingReducer_defineProperty(e,r,t){return(r=function upcomingReducer_toPropertyKey(t){var i=function upcomingReducer_toPrimitive(t,r){if("object"!=upcomingReducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=upcomingReducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==upcomingReducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var upcomingReducer_defaultState={total:0,page:1,result:[],isComplete:!1};var CollectionList_state=__webpack_require__("./src/client/modules/Companies/CollectionList/state.js");function Companies_CollectionList_reducer_typeof(o){return Companies_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},Companies_CollectionList_reducer_typeof(o)}function Companies_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 Companies_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Companies_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Companies_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Companies_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Companies_CollectionList_reducer_defineProperty(e,r,t){return(r=function Companies_CollectionList_reducer_toPropertyKey(t){var i=function Companies_CollectionList_reducer_toPrimitive(t,r){if("object"!=Companies_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Companies_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Companies_CollectionList_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 Companies_CollectionList_reducer_initialState={results:[],selectedLeadItaOrGlobalAccountManagers:[],advisers:[],metadata:{},isComplete:!1};var PersonalisedDashboard_state=__webpack_require__("./src/client/components/PersonalisedDashboard/state.js");function PersonalisedDashboard_reducer_typeof(o){return PersonalisedDashboard_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},PersonalisedDashboard_reducer_typeof(o)}function PersonalisedDashboard_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 PersonalisedDashboard_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?PersonalisedDashboard_reducer_ownKeys(Object(t),!0).forEach((function(r){PersonalisedDashboard_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):PersonalisedDashboard_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function PersonalisedDashboard_reducer_defineProperty(e,r,t){return(r=function PersonalisedDashboard_reducer_toPropertyKey(t){var i=function PersonalisedDashboard_reducer_toPrimitive(t,r){if("object"!=PersonalisedDashboard_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=PersonalisedDashboard_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==PersonalisedDashboard_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 PersonalisedDashboard_reducer_initialState={hasInvestmentProjects:!1,summary:[],dataHubFeed:[],hasTasks:!1};const PersonalisedDashboard_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?MyInvestmentProjects_reducer_ownKeys(Object(t),!0).forEach((function(r){MyInvestmentProjects_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):MyInvestmentProjects_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function MyInvestmentProjects_reducer_defineProperty(e,r,t){return(r=function MyInvestmentProjects_reducer_toPropertyKey(t){var i=function MyInvestmentProjects_reducer_toPrimitive(t,r){if("object"!=MyInvestmentProjects_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=MyInvestmentProjects_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==MyInvestmentProjects_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 MyInvestmentProjects_reducer_initialState={count:0,results:[],summary:[],itemsPerPage:10,page:1,sort:"created_on:desc",stage:"all-stages",status:"all-statuses",landDate:"all-land-dates",showDetails:!1};function create_reducer_typeof(o){return create_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},create_reducer_typeof(o)}function create_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 create_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?create_reducer_ownKeys(Object(t),!0).forEach((function(r){create_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):create_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function create_reducer_defineProperty(e,r,t){return(r=function create_reducer_toPropertyKey(t){var i=function create_reducer_toPrimitive(t,r){if("object"!=create_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=create_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==create_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 create_reducer_initialState={results:null,searchTerm:"",companyInvestmentCount:0};const create_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Contacts_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Contacts_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Contacts_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Contacts_CollectionList_reducer_defineProperty(e,r,t){return(r=function Contacts_CollectionList_reducer_toPropertyKey(t){var i=function Contacts_CollectionList_reducer_toPrimitive(t,r){if("object"!=Contacts_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Contacts_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Contacts_CollectionList_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 Contacts_CollectionList_reducer_initialState={results:[],metadata:{},isComplete:!1};const Contacts_CollectionList_reducer=function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Interactions_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Interactions_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Interactions_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Interactions_CollectionList_reducer_defineProperty(e,r,t){return(r=function Interactions_CollectionList_reducer_toPropertyKey(t){var i=function Interactions_CollectionList_reducer_toPrimitive(t,r){if("object"!=Interactions_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Interactions_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Interactions_CollectionList_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 Interactions_CollectionList_reducer_initialState={results:[],metadata:{},selectedAdvisers:[],selectedTeams:[],selectedCompanies:[],isComplete:!1};__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");function EventDetails_reducer_typeof(o){return EventDetails_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},EventDetails_reducer_typeof(o)}function EventDetails_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 EventDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){EventDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventDetails_reducer_defineProperty(e,r,t){return(r=function EventDetails_reducer_toPropertyKey(t){var i=function EventDetails_reducer_toPrimitive(t,r){if("object"!=EventDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function EventAventriDetails_reducer_typeof(o){return EventAventriDetails_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},EventAventriDetails_reducer_typeof(o)}function EventAventriDetails_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 EventAventriDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventAventriDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){EventAventriDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventAventriDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventAventriDetails_reducer_defineProperty(e,r,t){return(r=function EventAventriDetails_reducer_toPropertyKey(t){var i=function EventAventriDetails_reducer_toPrimitive(t,r){if("object"!=EventAventriDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventAventriDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventAventriDetails_reducer_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__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/esnext.string.replace-all.js");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_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 constants_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?constants_ownKeys(Object(t),!0).forEach((function(r){constants_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):constants_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var EVENT_ATTENDEES_STATUS_waitingList="Waiting list",EVENT_ATTENDEES_STATUS_didNotAttend="Did not attend",EVENT_ATTENDEES_STATUS_attended="Attended",EVENT_ATTENDEES_STATUS_cancelled="Cancelled",EVENT_AVENTRI_ATTENDEES_STATUS_attended="Attended",EVENT_AVENTRI_ATTENDEES_STATUS_cancelled="Cancelled",EVENT_AVENTRI_ATTENDEES_STATUS_noShow="No Show",EVENT_AVENTRI_ATTENDEES_STATUS_waitlist="Waitlist",createMappingObject=function createMappingObject(status,aventriStatuses){return constants_defineProperty({},status,{statuses:aventriStatuses,urlSlug:status.replaceAll(" ","-").toLowerCase()})};[createMappingObject("Registered",["Activated","Confirmed"]),createMappingObject(EVENT_ATTENDEES_STATUS_cancelled,[EVENT_AVENTRI_ATTENDEES_STATUS_cancelled]),createMappingObject(EVENT_ATTENDEES_STATUS_attended,[EVENT_AVENTRI_ATTENDEES_STATUS_attended]),createMappingObject(EVENT_ATTENDEES_STATUS_didNotAttend,[EVENT_AVENTRI_ATTENDEES_STATUS_noShow]),createMappingObject(EVENT_ATTENDEES_STATUS_waitingList,[EVENT_AVENTRI_ATTENDEES_STATUS_waitlist])].reduce((function(a,v){return constants_objectSpread(constants_objectSpread({},a),v)}),{});function EventAventriRegistrationStatus_reducer_typeof(o){return EventAventriRegistrationStatus_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},EventAventriRegistrationStatus_reducer_typeof(o)}function EventAventriRegistrationStatus_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 EventAventriRegistrationStatus_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EventAventriRegistrationStatus_reducer_ownKeys(Object(t),!0).forEach((function(r){EventAventriRegistrationStatus_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EventAventriRegistrationStatus_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EventAventriRegistrationStatus_reducer_defineProperty(e,r,t){return(r=function EventAventriRegistrationStatus_reducer_toPropertyKey(t){var i=function EventAventriRegistrationStatus_reducer_toPrimitive(t,r){if("object"!=EventAventriRegistrationStatus_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EventAventriRegistrationStatus_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EventAventriRegistrationStatus_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ESSInteractionDetails_reducer_typeof(o){return ESSInteractionDetails_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},ESSInteractionDetails_reducer_typeof(o)}function ESSInteractionDetails_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 ESSInteractionDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ESSInteractionDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){ESSInteractionDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ESSInteractionDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ESSInteractionDetails_reducer_defineProperty(e,r,t){return(r=function ESSInteractionDetails_reducer_toPropertyKey(t){var i=function ESSInteractionDetails_reducer_toPrimitive(t,r){if("object"!=ESSInteractionDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ESSInteractionDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ESSInteractionDetails_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Events_CollectionList_reducer_typeof(o){return Events_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},Events_CollectionList_reducer_typeof(o)}function Events_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 Events_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Events_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Events_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Events_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Events_CollectionList_reducer_defineProperty(e,r,t){return(r=function Events_CollectionList_reducer_toPropertyKey(t){var i=function Events_CollectionList_reducer_toPrimitive(t,r){if("object"!=Events_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Events_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Events_CollectionList_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 Events_CollectionList_reducer_initialState={results:[],metadata:{},selectedOrganisers:[],isComplete:!1};function AttendeeSearch_reducer_typeof(o){return AttendeeSearch_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},AttendeeSearch_reducer_typeof(o)}function AttendeeSearch_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 AttendeeSearch_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?AttendeeSearch_reducer_ownKeys(Object(t),!0).forEach((function(r){AttendeeSearch_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AttendeeSearch_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function AttendeeSearch_reducer_defineProperty(e,r,t){return(r=function AttendeeSearch_reducer_toPropertyKey(t){var i=function AttendeeSearch_reducer_toPrimitive(t,r){if("object"!=AttendeeSearch_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=AttendeeSearch_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==AttendeeSearch_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 AttendeeSearch_reducer_initialState={results:[],metadata:{},isComplete:!1};function Omis_CollectionList_reducer_typeof(o){return Omis_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},Omis_CollectionList_reducer_typeof(o)}function Omis_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 Omis_CollectionList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Omis_CollectionList_reducer_ownKeys(Object(t),!0).forEach((function(r){Omis_CollectionList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Omis_CollectionList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Omis_CollectionList_reducer_defineProperty(e,r,t){return(r=function Omis_CollectionList_reducer_toPropertyKey(t){var i=function Omis_CollectionList_reducer_toPrimitive(t,r){if("object"!=Omis_CollectionList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Omis_CollectionList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Omis_CollectionList_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 Omis_CollectionList_reducer_initialState={results:[],metadata:{},isComplete:!1};const Omis_CollectionList_reducer=function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Omis_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XiH:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.BUu:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};var RoutedInput=__webpack_require__("./src/client/components/RoutedInput/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Paginated=__webpack_require__("./src/client/components/Resource/Paginated.js"),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url.to-json.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx"),validators=__webpack_require__("./src/client/components/Form/validators.js");const State=(0,react_redux.connect)((function(state){return{state}}))((function(_ref){var state=_ref.state;return(0,_ref.children)(state)}));var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js");function ContactForm_typeof(o){return ContactForm_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ContactForm_typeof(o)}var _templateObject,ContactForm_excluded=["update","contactId","companyId","primary","addressSameAsCompany","acceptsDitEmailMarketing","addressPostcode","addressTown","addressCounty","addressArea","addressCountry","dispatch","id","notes"],ContactForm_excluded2=["address1","address2","city","county","postcode","acceptsDitEmailMarketing","addressSameAsCompany","primary","email","valid_email","moreDetails"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function ContactForm_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function ContactForm_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ContactForm_ownKeys(Object(t),!0).forEach((function(r){ContactForm_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ContactForm_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ContactForm_defineProperty(e,r,t){return(r=function ContactForm_toPropertyKey(t){var i=function ContactForm_toPrimitive(t,r){if("object"!=ContactForm_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ContactForm_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ContactForm_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ContactForm_toConsumableArray(r){return function ContactForm_arrayWithoutHoles(r){if(Array.isArray(r))return ContactForm_arrayLikeToArray(r)}(r)||function ContactForm_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function ContactForm_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ContactForm_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)?ContactForm_arrayLikeToArray(r,a):void 0}}(r)||function ContactForm_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 ContactForm_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ContactForm_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function ContactForm_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<s.length;r++)o=s[r],t.includes(o)||{}.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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LocalHeader_reducer_ownKeys(Object(t),!0).forEach((function(r){LocalHeader_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LocalHeader_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LocalHeader_reducer_defineProperty(e,r,t){return(r=function LocalHeader_reducer_toPropertyKey(t){var i=function LocalHeader_reducer_toPrimitive(t,r){if("object"!=LocalHeader_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LocalHeader_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LocalHeader_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ContactActivity_reducer_typeof(o){return ContactActivity_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},ContactActivity_reducer_typeof(o)}function ContactActivity_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 ContactActivity_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ContactActivity_reducer_ownKeys(Object(t),!0).forEach((function(r){ContactActivity_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ContactActivity_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ContactActivity_reducer_defineProperty(e,r,t){return(r=function ContactActivity_reducer_toPropertyKey(t){var i=function ContactActivity_reducer_toPrimitive(t,r){if("object"!=ContactActivity_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ContactActivity_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ContactActivity_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 reducer_defaultState={total:0,page:1,selectedSortBy:"newest",result:[],isComplete:!1};function Reminders_reducer_typeof(o){return Reminders_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},Reminders_reducer_typeof(o)}function reducer_toConsumableArray(r){return function reducer_arrayWithoutHoles(r){if(Array.isArray(r))return reducer_arrayLikeToArray(r)}(r)||function reducer_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function reducer_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return reducer_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)?reducer_arrayLikeToArray(r,a):void 0}}(r)||function reducer_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 reducer_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Reminders_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 Reminders_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Reminders_reducer_ownKeys(Object(t),!0).forEach((function(r){Reminders_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Reminders_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Reminders_reducer_defineProperty(e,r,t){return(r=function Reminders_reducer_toPropertyKey(t){var i=function Reminders_reducer_toPrimitive(t,r){if("object"!=Reminders_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Reminders_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Reminders_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 Reminders_reducer_initialState={reminders:{results:[],count:0,nextPending:!1}};function CompanyDetails_reducer_typeof(o){return CompanyDetails_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},CompanyDetails_reducer_typeof(o)}function CompanyDetails_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 CompanyDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyDetails_reducer_defineProperty(e,r,t){return(r=function CompanyDetails_reducer_toPropertyKey(t){var i=function CompanyDetails_reducer_toPrimitive(t,r){if("object"!=CompanyDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyDetails_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 CompanyDetails_reducer_initialState={company:null};function ExportDetails_reducer_typeof(o){return ExportDetails_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},ExportDetails_reducer_typeof(o)}function ExportDetails_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 ExportDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportDetails_reducer_defineProperty(e,r,t){return(r=function ExportDetails_reducer_toPropertyKey(t){var i=function ExportDetails_reducer_toPrimitive(t,r){if("object"!=ExportDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportDetails_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 ExportDetails_reducer_initialState={exportItem:null};var ExportList_state=__webpack_require__("./src/client/modules/ExportPipeline/ExportList/state.js");function ExportList_reducer_typeof(o){return ExportList_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},ExportList_reducer_typeof(o)}function ExportList_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 ExportList_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportList_reducer_ownKeys(Object(t),!0).forEach((function(r){ExportList_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportList_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportList_reducer_defineProperty(e,r,t){return(r=function ExportList_reducer_toPropertyKey(t){var i=function ExportList_reducer_toPrimitive(t,r){if("object"!=ExportList_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportList_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportList_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 ExportList_reducer_initialState={count:0,results:[],sector:[],itemsPerPage:10,maxItemsToPaginate:1e4};var CompanyLocalHeader_state=__webpack_require__("./src/client/components/CompanyLocalHeader/state.js");function CompanyLocalHeader_reducer_typeof(o){return CompanyLocalHeader_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},CompanyLocalHeader_reducer_typeof(o)}function CompanyLocalHeader_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 CompanyLocalHeader_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyLocalHeader_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyLocalHeader_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyLocalHeader_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLocalHeader_reducer_defineProperty(e,r,t){return(r=function CompanyLocalHeader_reducer_toPropertyKey(t){var i=function CompanyLocalHeader_reducer_toPrimitive(t,r){if("object"!=CompanyLocalHeader_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLocalHeader_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLocalHeader_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 CompanyLocalHeader_reducer_initialState={count:0,results:[]};function CompanyHierarchy_reducer_typeof(o){return CompanyHierarchy_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},CompanyHierarchy_reducer_typeof(o)}function CompanyHierarchy_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 CompanyHierarchy_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyHierarchy_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyHierarchy_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyHierarchy_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyHierarchy_reducer_defineProperty(e,r,t){return(r=function CompanyHierarchy_reducer_toPropertyKey(t){var i=function CompanyHierarchy_reducer_toPrimitive(t,r){if("object"!=CompanyHierarchy_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyHierarchy_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyHierarchy_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 CompanyHierarchy_reducer_initialState={familyTree:null};__webpack_require__("./src/client/modules/Companies/CollectionList/transformers.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/constants.js");function LinkGlobalHQ_reducer_typeof(o){return LinkGlobalHQ_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},LinkGlobalHQ_reducer_typeof(o)}function LinkGlobalHQ_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 LinkGlobalHQ_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LinkGlobalHQ_reducer_ownKeys(Object(t),!0).forEach((function(r){LinkGlobalHQ_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LinkGlobalHQ_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LinkGlobalHQ_reducer_defineProperty(e,r,t){return(r=function LinkGlobalHQ_reducer_toPropertyKey(t){var i=function LinkGlobalHQ_reducer_toPrimitive(t,r){if("object"!=LinkGlobalHQ_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LinkGlobalHQ_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LinkGlobalHQ_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 LinkGlobalHQ_reducer_initialState={results:[],metadata:{},isComplete:!1};function LinkSubsidiary_reducer_typeof(o){return LinkSubsidiary_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},LinkSubsidiary_reducer_typeof(o)}function LinkSubsidiary_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 LinkSubsidiary_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?LinkSubsidiary_reducer_ownKeys(Object(t),!0).forEach((function(r){LinkSubsidiary_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LinkSubsidiary_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function LinkSubsidiary_reducer_defineProperty(e,r,t){return(r=function LinkSubsidiary_reducer_toPropertyKey(t){var i=function LinkSubsidiary_reducer_toPrimitive(t,r){if("object"!=LinkSubsidiary_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=LinkSubsidiary_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==LinkSubsidiary_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 LinkSubsidiary_reducer_initialState={results:[],metadata:{},isComplete:!1};__webpack_require__("./src/client/transformers/index.js");function AccountManagement_reducer_typeof(o){return AccountManagement_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},AccountManagement_reducer_typeof(o)}function AccountManagement_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 AccountManagement_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?AccountManagement_reducer_ownKeys(Object(t),!0).forEach((function(r){AccountManagement_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AccountManagement_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function AccountManagement_reducer_defineProperty(e,r,t){return(r=function AccountManagement_reducer_toPropertyKey(t){var i=function AccountManagement_reducer_toPrimitive(t,r){if("object"!=AccountManagement_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=AccountManagement_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==AccountManagement_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 AccountManagement_reducer_initialState={objectiveItem:null};__webpack_require__("./src/apps/companies/apps/edit-company/client/constants.js");function EditRecipientCompany_reducer_typeof(o){return EditRecipientCompany_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},EditRecipientCompany_reducer_typeof(o)}function EditRecipientCompany_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 EditRecipientCompany_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EditRecipientCompany_reducer_ownKeys(Object(t),!0).forEach((function(r){EditRecipientCompany_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EditRecipientCompany_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EditRecipientCompany_reducer_defineProperty(e,r,t){return(r=function EditRecipientCompany_reducer_toPropertyKey(t){var i=function EditRecipientCompany_reducer_toPrimitive(t,r){if("object"!=EditRecipientCompany_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EditRecipientCompany_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EditRecipientCompany_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 EditRecipientCompany_reducer_initialState={results:[],metadata:{},isComplete:!1};function EditAssociatedProject_reducer_typeof(o){return EditAssociatedProject_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},EditAssociatedProject_reducer_typeof(o)}function EditAssociatedProject_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 EditAssociatedProject_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?EditAssociatedProject_reducer_ownKeys(Object(t),!0).forEach((function(r){EditAssociatedProject_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EditAssociatedProject_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function EditAssociatedProject_reducer_defineProperty(e,r,t){return(r=function EditAssociatedProject_reducer_toPropertyKey(t){var i=function EditAssociatedProject_reducer_toPrimitive(t,r){if("object"!=EditAssociatedProject_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=EditAssociatedProject_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==EditAssociatedProject_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 EditAssociatedProject_reducer_initialState={results:[],metadata:{},isComplete:!1};__webpack_require__("./src/apps/transformers.js");function CoreTeam_reducer_typeof(o){return CoreTeam_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},CoreTeam_reducer_typeof(o)}function CoreTeam_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 CoreTeam_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CoreTeam_reducer_ownKeys(Object(t),!0).forEach((function(r){CoreTeam_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CoreTeam_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CoreTeam_reducer_defineProperty(e,r,t){return(r=function CoreTeam_reducer_toPropertyKey(t){var i=function CoreTeam_reducer_toPrimitive(t,r){if("object"!=CoreTeam_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CoreTeam_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CoreTeam_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 CoreTeam_reducer_initialState={company:null,oneListTeam:null,oneListTiers:null};__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");function TaskDetails_reducer_typeof(o){return TaskDetails_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},TaskDetails_reducer_typeof(o)}function TaskDetails_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 TaskDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TaskDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){TaskDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TaskDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TaskDetails_reducer_defineProperty(e,r,t){return(r=function TaskDetails_reducer_toPropertyKey(t){var i=function TaskDetails_reducer_toPrimitive(t,r){if("object"!=TaskDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TaskDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TaskDetails_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 TaskDetails_reducer_initialState={task:void 0,copyTask:!1};function CompanySelect_reducer_typeof(o){return CompanySelect_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},CompanySelect_reducer_typeof(o)}function CompanySelect_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 CompanySelect_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanySelect_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanySelect_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanySelect_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanySelect_reducer_defineProperty(e,r,t){return(r=function CompanySelect_reducer_toPropertyKey(t){var i=function CompanySelect_reducer_toPrimitive(t,r){if("object"!=CompanySelect_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanySelect_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanySelect_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 CompanySelect_reducer_initialState={results:[],metadata:{},isComplete:!1};var my_tasks_state=__webpack_require__("./src/client/components/Dashboard/my-tasks/state.js");function my_tasks_reducer_typeof(o){return my_tasks_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},my_tasks_reducer_typeof(o)}function my_tasks_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 my_tasks_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?my_tasks_reducer_ownKeys(Object(t),!0).forEach((function(r){my_tasks_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):my_tasks_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function my_tasks_reducer_defineProperty(e,r,t){return(r=function my_tasks_reducer_toPropertyKey(t){var i=function my_tasks_reducer_toPrimitive(t,r){if("object"!=my_tasks_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=my_tasks_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==my_tasks_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 my_tasks_reducer_initialState={myTasks:null};function InteractionDetails_reducer_typeof(o){return InteractionDetails_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},InteractionDetails_reducer_typeof(o)}function InteractionDetails_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 InteractionDetails_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InteractionDetails_reducer_ownKeys(Object(t),!0).forEach((function(r){InteractionDetails_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InteractionDetails_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InteractionDetails_reducer_defineProperty(e,r,t){return(r=function InteractionDetails_reducer_toPropertyKey(t){var i=function InteractionDetails_reducer_toPrimitive(t,r){if("object"!=InteractionDetails_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InteractionDetails_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InteractionDetails_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 InteractionDetails_reducer_initialState={interaction:void 0};function Omis_reducer_typeof(o){return Omis_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},Omis_reducer_typeof(o)}function Omis_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 Omis_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Omis_reducer_ownKeys(Object(t),!0).forEach((function(r){Omis_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Omis_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Omis_reducer_defineProperty(e,r,t){return(r=function Omis_reducer_toPropertyKey(t){var i=function Omis_reducer_toPrimitive(t,r){if("object"!=Omis_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Omis_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Omis_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CompanyActivity_reducer_typeof(o){return CompanyActivity_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},CompanyActivity_reducer_typeof(o)}function CompanyActivity_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 CompanyActivity_reducer_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?CompanyActivity_reducer_ownKeys(Object(t),!0).forEach((function(r){CompanyActivity_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CompanyActivity_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyActivity_reducer_defineProperty(e,r,t){return(r=function CompanyActivity_reducer_toPropertyKey(t){var i=function CompanyActivity_reducer_toPrimitive(t,r){if("object"!=CompanyActivity_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyActivity_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyActivity_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 CompanyActivity_reducer_initialState={results:[],metadata:{},selectedAdvisers:[],selectedTeams:[],selectedCompanies:[],isComplete:!1};var govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),StyledButton=(0,styled_components_browser_esm.Ay)(govuk_react_button_esm.A)({margin:0}),ResendExportWin=(0,multiinstance.Ay)({name:"ResendExportWin",actionPattern:"EXPORT_WIN_RESENT__",reducer:function reducer(state,action){return action.type===actions.R2h?{success:!0}:state},component:function _ResendExportWin(_ref){var id=_ref.id;return react.createElement(Task.A,null,(function(getTask){var task=getTask("TASK_RESEND_EXPORT_WIN",id);return react.createElement(StyledButton,{type:"button",buttonColour:colours.WS,buttonTextColour:colours.pF,disabled:task.progress,"data-test":"resend-export-win",onClick:function onClick(){task.start({payload:id,onSuccessDispatch:actions.R2h})}},"Resend export win")}))}}),RecentResult_excluded=["children","id"];function RecentResult_typeof(o){return RecentResult_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},RecentResult_typeof(o)}function RecentResult_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 RecentResult_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RecentResult_ownKeys(Object(t),!0).forEach((function(r){RecentResult_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RecentResult_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RecentResult_defineProperty(e,r,t){return(r=function RecentResult_toPropertyKey(t){var i=function RecentResult_toPrimitive(t,r){if("object"!=RecentResult_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RecentResult_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RecentResult_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const RecentResult=(0,multiinstance.Ay)({name:"Task/RecentResult",actionPattern:/.*/,idProp:"name",reducer:function reducer(state,_ref){var _state$id,type=_ref.type,id=_ref.id,onSuccessDispatch=_ref.onSuccessDispatch,result=_ref.result;switch(type){case actions.EGH:return RecentResult_objectSpread(RecentResult_objectSpread({},state),{},RecentResult_defineProperty({},id,RecentResult_objectSpread(RecentResult_objectSpread({},null==state?void 0:state[id]),{},{successActionType:onSuccessDispatch})));case null==state||null===(_state$id=state[id])||void 0===_state$id?void 0:_state$id.successActionType:return RecentResult_objectSpread(RecentResult_objectSpread({},state),{},RecentResult_defineProperty({},id,{result}));default:return state}},component:function component(_ref2){var _props$id,children=_ref2.children,id=_ref2.id;return children(null===(_props$id=function RecentResult_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RecentResult_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RecentResult_excluded)[id])||void 0===_props$id?void 0:_props$id.result)}});var _objectSpread3;function reducers_typeof(o){return reducers_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},reducers_typeof(o)}function reducers_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 reducers_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducers_ownKeys(Object(t),!0).forEach((function(r){reducers_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducers_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducers_defineProperty(e,r,t){return(r=function reducers_toPropertyKey(t){var i=function reducers_toPrimitive(t,r){if("object"!=reducers_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducers_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==reducers_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _document$getElementB,reducers=reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_objectSpread(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty({tasks:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,type=_ref3.type,action=reducer_objectWithoutProperties(_ref3,_excluded2);switch(type){case actions.p8B:return setTaskState(state,action,"progress");case actions.GAr:return setTaskState(state,action,"error");case actions.KQv:case actions.n_2:return remove(state,action);default:return state}}},LocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,flashMessages=_ref.flashMessages,announcementLink=_ref.announcementLink;switch(type){case actions.Ijb:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages});case actions.PqX:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages:{}});case actions.F8v:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{announcementLink});default:return state}})),state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,id=_ref.id,result=_ref.result,payload=_ref.payload,query=_ref.query,orderBy=_ref.orderBy;switch(type){case actions.Twh:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:(0,lodash.mapValues)(result,(function(name){return{name}})),selectedId:Object.keys(result)[0]});case actions.Hfi:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists),{},CompanyLists_reducer_defineProperty({},payload,CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists[payload]),{},{companies:result})))});case actions.UJl:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{selectedId:id,query:""});case actions.WvE:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{query});case actions.OCZ:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{orderBy});default:return state}})),CollectionList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Companies_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.nAW:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{selectedLeadItaOrGlobalAccountManagers:result});case actions.bWZ:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{advisers:result});default:return state}})),"exportsHistory",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case actions.MFr:var count=result.count,results=result.results;return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.zTo:return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),client_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Vmx?result:state})),"referralForm",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case actions.GAr:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!1});case actions.KZ$:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!0,formSubmitted:!0});default:return state}})),"addCompany",(function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})),TabNav.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),RecentResult.reducerSpread),{},(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3={},"dnbCheckPendingRequest",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDnbPending:!1,globalUltimate:!1},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.rTD:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{isDnbPending:result});case actions.VRR:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{globalUltimate:result?result.data.results[0]:null});default:return state}})),"opportunitiesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,page=_ref.page,result=_ref.result;switch(type){case actions.ILj:var count=result.count,results=result.results;return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.V8_:return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),"opportunityDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Opportunities_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,opportunity=_ref.opportunity;switch(type){case actions.J1h:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.EPX:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:result});case actions.A3K:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{metadata:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.metadata),{},{investmentTypes:result.investmentTypes,returnRates:result.returnRates,timeScales:result.timeScales})});case actions.TBR:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!0,isEditingRequirements:!1})});case actions.Rm3:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!0})});case actions.j2f:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.Xpy:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),result),{},{isEditingDetails:!1,isEditingRequirements:!1})});default:return state}})),"profilesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Profiles_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.j2I:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.XYJ:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{filterOptions:result});default:return state}})),"projectsList",Projects_reducer),"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;i<statusNames.length;i++)_loop(i);for(var _loop2=function _loop2(_i){var name=(0,lodash.camelCase)(stageNames[_i]);stageList[name]=resultList.filter((function(investment){return investment.stage.name===stageNames[_i]})).length},_i=0;_i<stageNames.length;_i++)_loop2(_i);for(var allActiveInvestments=[],_i2=0,_resultList=resultList;_i2<_resultList.length;_i2++){var investment=_resultList[_i2];if(investment.stage.name===Projects_constants.aO&&"delayed"===investment.status||investment.stage.name===Projects_constants.aO&&"ongoing"===investment.status){var newDate=new Date(investment.estimated_land_date);investment.estimated_land_date=newDate,allActiveInvestments.push(investment)}}return allActiveInvestments.sort((function(dateA,dateB){return Number(dateA.estimated_land_date)-Number(dateB.estimated_land_date)})),upcomingActiveInvestments=allActiveInvestments.length>3?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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?NotificationAlert_reducer_ownKeys(Object(t),!0).forEach((function(r){NotificationAlert_reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NotificationAlert_reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},result):state})),"contactsList",Contacts_CollectionList_reducer),"contactActivity",(function(){var state=arguments.length>0&&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;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?createProvider_ownKeys(Object(t),!0).forEach((function(r){createProvider_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):createProvider_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function createProvider_defineProperty(e,r,t){return(r=function createProvider_toPropertyKey(t){var i=function createProvider_toPrimitive(t,r){if("object"!=createProvider_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=createProvider_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==createProvider_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var preloadedState=createProvider_objectSpread(createProvider_objectSpread({},JSON.parse((null===(_document$getElementB=document.getElementById("react-app"))||void 0===_document$getElementB?void 0:_document$getElementB.dataset.props)||"{}")),{},{referrerUrl:window.document.referrer}),ConnectedReactRouter=(0,react_redux.connect)((function(_ref){var _ref$router=_ref.router;return{location:_ref$router.location,navigationType:_ref$router.action}}))(dist.Ix),esm=(__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/@faker-js/faker/dist/esm/index.mjs")),tasks_OPTIONS=Array(1e3).fill().map((function(){return esm.Jb.person.fullName()}));const tasks={"Task typeahead example options":function fakerOptions(){var query=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve,reject){return"reject"===query?setTimeout(reject,1e3,"Something went horribly wrong"):setTimeout(resolve,1e3,tasks_OPTIONS.filter((function(x){return x.toLowerCase().includes(query.toLowerCase())})).slice(0,10).map((function(x){return{value:lodash_default().snakeCase(x),label:x}})))}))}};function tasks_typeof(o){return tasks_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},tasks_typeof(o)}const Typeahead_tasks=function tasks_defineProperty(e,r,t){return(r=function tasks_toPropertyKey(t){var i=function tasks_toPrimitive(t,r){if("object"!=tasks_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=tasks_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==tasks_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},__webpack_require__("./src/client/components/Typeahead/state.js").S,(function getTypeaheadOptions(_ref){var loadOptions=_ref.loadOptions,options=_ref.options,autocomplete=_ref.autocomplete;return loadOptions?(0,lodash.throttle)(loadOptions,500)(autocomplete):new Promise((function(resolve){return resolve(options)}))})),country_namespaceObject=JSON.parse('[{"id":"87756b9a-5d95-e211-a939-e4115bead28a","name":"Afghanistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AF"},{"id":"88756b9a-5d95-e211-a939-e4115bead28a","name":"Aland Islands","disabled_on":"2017-12-15T17:12:09Z","overseas_region":null,"iso_alpha2_code":""},{"id":"945f66a0-5d95-e211-a939-e4115bead28a","name":"Albania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AL"},{"id":"955f66a0-5d95-e211-a939-e4115bead28a","name":"Algeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DZ"},{"id":"965f66a0-5d95-e211-a939-e4115bead28a","name":"American Samoa","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"975f66a0-5d95-e211-a939-e4115bead28a","name":"Andorra","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AD"},{"id":"985f66a0-5d95-e211-a939-e4115bead28a","name":"Angola","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"AO"},{"id":"995f66a0-5d95-e211-a939-e4115bead28a","name":"Anguilla","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"AI"},{"id":"9a5f66a0-5d95-e211-a939-e4115bead28a","name":"Antarctica","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9b5f66a0-5d95-e211-a939-e4115bead28a","name":"Antigua and Barbuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AG"},{"id":"9c5f66a0-5d95-e211-a939-e4115bead28a","name":"Argentina","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AR"},{"id":"9d5f66a0-5d95-e211-a939-e4115bead28a","name":"Armenia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AM"},{"id":"9e5f66a0-5d95-e211-a939-e4115bead28a","name":"Aruba","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9f5f66a0-5d95-e211-a939-e4115bead28a","name":"Australia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"AU"},{"id":"a05f66a0-5d95-e211-a939-e4115bead28a","name":"Austria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AT"},{"id":"a15f66a0-5d95-e211-a939-e4115bead28a","name":"Azerbaijan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AZ"},{"id":"a25f66a0-5d95-e211-a939-e4115bead28a","name":"Bahamas","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BS"},{"id":"a35f66a0-5d95-e211-a939-e4115bead28a","name":"Bahrain","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"BH"},{"id":"a45f66a0-5d95-e211-a939-e4115bead28a","name":"Bangladesh","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BD"},{"id":"a55f66a0-5d95-e211-a939-e4115bead28a","name":"Barbados","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BB"},{"id":"a65f66a0-5d95-e211-a939-e4115bead28a","name":"Belarus","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"BY"},{"id":"a75f66a0-5d95-e211-a939-e4115bead28a","name":"Belgium","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BE"},{"id":"a85f66a0-5d95-e211-a939-e4115bead28a","name":"Belize","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BZ"},{"id":"a95f66a0-5d95-e211-a939-e4115bead28a","name":"Benin","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BJ"},{"id":"aa5f66a0-5d95-e211-a939-e4115bead28a","name":"Bermuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BM"},{"id":"ab5f66a0-5d95-e211-a939-e4115bead28a","name":"Bhutan","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BT"},{"id":"98c8d93d-5d06-e311-a78e-e4115bead28a","name":"BLANK","disabled_on":"2017-12-28T14:27:49Z","overseas_region":null,"iso_alpha2_code":""},{"id":"ac5f66a0-5d95-e211-a939-e4115bead28a","name":"Bolivia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BO"},{"id":"ad5f66a0-5d95-e211-a939-e4115bead28a","name":"Bosnia and Herzegovina","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BA"},{"id":"ae5f66a0-5d95-e211-a939-e4115bead28a","name":"Botswana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BW"},{"id":"af5f66a0-5d95-e211-a939-e4115bead28a","name":"Bouvet Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b05f66a0-5d95-e211-a939-e4115bead28a","name":"Brazil","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BR"},{"id":"b15f66a0-5d95-e211-a939-e4115bead28a","name":"British Indian Ocean Territory","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b25f66a0-5d95-e211-a939-e4115bead28a","name":"British Virgin Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"VG"},{"id":"56af72a6-5d95-e211-a939-e4115bead28a","name":"Brunei","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"BN"},{"id":"57af72a6-5d95-e211-a939-e4115bead28a","name":"Bulgaria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BG"},{"id":"58af72a6-5d95-e211-a939-e4115bead28a","name":"Burkina","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BF"},{"id":"59af72a6-5d95-e211-a939-e4115bead28a","name":"Burma","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MM"},{"id":"5aaf72a6-5d95-e211-a939-e4115bead28a","name":"Burundi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BI"},{"id":"5baf72a6-5d95-e211-a939-e4115bead28a","name":"Cambodia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KH"},{"id":"5caf72a6-5d95-e211-a939-e4115bead28a","name":"Cameroon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CM"},{"id":"5daf72a6-5d95-e211-a939-e4115bead28a","name":"Canada","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"CA"},{"id":"5eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cape Verde","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CV"},{"id":"5faf72a6-5d95-e211-a939-e4115bead28a","name":"Cayman Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"KY"},{"id":"60af72a6-5d95-e211-a939-e4115bead28a","name":"Central African Republic","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CF"},{"id":"61af72a6-5d95-e211-a939-e4115bead28a","name":"Chad","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TD"},{"id":"62af72a6-5d95-e211-a939-e4115bead28a","name":"Chile","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CL"},{"id":"63af72a6-5d95-e211-a939-e4115bead28a","name":"China","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"CN"},{"id":"64af72a6-5d95-e211-a939-e4115bead28a","name":"Christmas Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"65af72a6-5d95-e211-a939-e4115bead28a","name":"Cocos (Keeling) Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"66af72a6-5d95-e211-a939-e4115bead28a","name":"Colombia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CO"},{"id":"67af72a6-5d95-e211-a939-e4115bead28a","name":"Comoros","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KM"},{"id":"69af72a6-5d95-e211-a939-e4115bead28a","name":"Congo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CG"},{"id":"68af72a6-5d95-e211-a939-e4115bead28a","name":"Congo (Democratic Republic)","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CD"},{"id":"6aaf72a6-5d95-e211-a939-e4115bead28a","name":"Cook Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"6baf72a6-5d95-e211-a939-e4115bead28a","name":"Costa Rica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CR"},{"id":"6caf72a6-5d95-e211-a939-e4115bead28a","name":"Croatia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HR"},{"id":"6daf72a6-5d95-e211-a939-e4115bead28a","name":"Cuba","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CU"},{"id":"6eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cyprus","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CY"},{"id":"6faf72a6-5d95-e211-a939-e4115bead28a","name":"Czech Republic","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CZ"},{"id":"70af72a6-5d95-e211-a939-e4115bead28a","name":"Denmark","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DK"},{"id":"71af72a6-5d95-e211-a939-e4115bead28a","name":"Djibouti","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DJ"},{"id":"72af72a6-5d95-e211-a939-e4115bead28a","name":"Dominica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DM"},{"id":"73af72a6-5d95-e211-a939-e4115bead28a","name":"Dominican Republic","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DO"},{"id":"74af72a6-5d95-e211-a939-e4115bead28a","name":"East Timor","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TL"},{"id":"75af72a6-5d95-e211-a939-e4115bead28a","name":"Ecuador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"EC"},{"id":"76af72a6-5d95-e211-a939-e4115bead28a","name":"Egypt","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"EG"},{"id":"d2f682ac-5d95-e211-a939-e4115bead28a","name":"El Salvador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SV"},{"id":"d3f682ac-5d95-e211-a939-e4115bead28a","name":"Equatorial Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GQ"},{"id":"d4f682ac-5d95-e211-a939-e4115bead28a","name":"Eritrea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ER"},{"id":"d5f682ac-5d95-e211-a939-e4115bead28a","name":"Estonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"EE"},{"id":"d6f682ac-5d95-e211-a939-e4115bead28a","name":"Ethiopia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ET"},{"id":"d7f682ac-5d95-e211-a939-e4115bead28a","name":"Falkland Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FK"},{"id":"d8f682ac-5d95-e211-a939-e4115bead28a","name":"Faroe Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FO"},{"id":"d9f682ac-5d95-e211-a939-e4115bead28a","name":"Fiji","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FJ"},{"id":"daf682ac-5d95-e211-a939-e4115bead28a","name":"Finland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FI"},{"id":"82756b9a-5d95-e211-a939-e4115bead28a","name":"France","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FR"},{"id":"dbf682ac-5d95-e211-a939-e4115bead28a","name":"French Guiana","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"dcf682ac-5d95-e211-a939-e4115bead28a","name":"French Polynesia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ddf682ac-5d95-e211-a939-e4115bead28a","name":"French Southern Territories","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"def682ac-5d95-e211-a939-e4115bead28a","name":"Gabon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GA"},{"id":"dff682ac-5d95-e211-a939-e4115bead28a","name":"Gambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GM"},{"id":"e0f682ac-5d95-e211-a939-e4115bead28a","name":"Georgia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"GE"},{"id":"83756b9a-5d95-e211-a939-e4115bead28a","name":"Germany","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DE"},{"id":"e1f682ac-5d95-e211-a939-e4115bead28a","name":"Ghana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GH"},{"id":"e2f682ac-5d95-e211-a939-e4115bead28a","name":"Gibraltar","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GI"},{"id":"e3f682ac-5d95-e211-a939-e4115bead28a","name":"Greece","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GR"},{"id":"e4f682ac-5d95-e211-a939-e4115bead28a","name":"Greenland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GL"},{"id":"e5f682ac-5d95-e211-a939-e4115bead28a","name":"Grenada","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GD"},{"id":"e6f682ac-5d95-e211-a939-e4115bead28a","name":"Guadeloupe","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e7f682ac-5d95-e211-a939-e4115bead28a","name":"Guam","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e8f682ac-5d95-e211-a939-e4115bead28a","name":"Guatemala","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GT"},{"id":"77756b9a-5d95-e211-a939-e4115bead28a","name":"Guernsey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GG"},{"id":"e9f682ac-5d95-e211-a939-e4115bead28a","name":"Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GN"},{"id":"eaf682ac-5d95-e211-a939-e4115bead28a","name":"Guinea-Bissau","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GW"},{"id":"ebf682ac-5d95-e211-a939-e4115bead28a","name":"Guyana","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GY"},{"id":"ecf682ac-5d95-e211-a939-e4115bead28a","name":"Haiti","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"HT"},{"id":"edf682ac-5d95-e211-a939-e4115bead28a","name":"Heard Island and McDonald Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"eff682ac-5d95-e211-a939-e4115bead28a","name":"Honduras","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":""},{"id":"f0f682ac-5d95-e211-a939-e4115bead28a","name":"Hong Kong (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"HK"},{"id":"6d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Hungary","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HU"},{"id":"6e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Iceland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IS"},{"id":"6f6a9ab2-5d95-e211-a939-e4115bead28a","name":"India","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"IN"},{"id":"706a9ab2-5d95-e211-a939-e4115bead28a","name":"Indonesia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"ID"},{"id":"716a9ab2-5d95-e211-a939-e4115bead28a","name":"Iran","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IR"},{"id":"726a9ab2-5d95-e211-a939-e4115bead28a","name":"Iraq","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IQ"},{"id":"736a9ab2-5d95-e211-a939-e4115bead28a","name":"Ireland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IE"},{"id":"79756b9a-5d95-e211-a939-e4115bead28a","name":"Isle of Man","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"IM"},{"id":"746a9ab2-5d95-e211-a939-e4115bead28a","name":"Israel","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IL"},{"id":"84756b9a-5d95-e211-a939-e4115bead28a","name":"Italy","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IT"},{"id":"756a9ab2-5d95-e211-a939-e4115bead28a","name":"Ivory Coast","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CI"},{"id":"766a9ab2-5d95-e211-a939-e4115bead28a","name":"Jamaica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"JM"},{"id":"85756b9a-5d95-e211-a939-e4115bead28a","name":"Japan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"JP"},{"id":"78756b9a-5d95-e211-a939-e4115bead28a","name":"Jersey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"JE"},{"id":"776a9ab2-5d95-e211-a939-e4115bead28a","name":"Jordan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"JO"},{"id":"786a9ab2-5d95-e211-a939-e4115bead28a","name":"Kazakhstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KZ"},{"id":"796a9ab2-5d95-e211-a939-e4115bead28a","name":"Kenya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KE"},{"id":"7a6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kiribati","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KI"},{"id":"7b6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (North)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KP"},{"id":"7c6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (South)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KR"},{"id":"7a756b9a-5d95-e211-a939-e4115bead28a","name":"Kosovo","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"XK"},{"id":"7d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kuwait","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"KW"},{"id":"7e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kyrgyzstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KG"},{"id":"7f6a9ab2-5d95-e211-a939-e4115bead28a","name":"Laos","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"LA"},{"id":"806a9ab2-5d95-e211-a939-e4115bead28a","name":"Latvia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LV"},{"id":"816a9ab2-5d95-e211-a939-e4115bead28a","name":"Lebanon","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"LB"},{"id":"826a9ab2-5d95-e211-a939-e4115bead28a","name":"Lesotho","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LS"},{"id":"836a9ab2-5d95-e211-a939-e4115bead28a","name":"Liberia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LR"},{"id":"846a9ab2-5d95-e211-a939-e4115bead28a","name":"Libya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LY"},{"id":"856a9ab2-5d95-e211-a939-e4115bead28a","name":"Liechtenstein","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LI"},{"id":"866a9ab2-5d95-e211-a939-e4115bead28a","name":"Lithuania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LT"},{"id":"876a9ab2-5d95-e211-a939-e4115bead28a","name":"Luxembourg","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LU"},{"id":"886a9ab2-5d95-e211-a939-e4115bead28a","name":"Macao (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"MO"},{"id":"896a9ab2-5d95-e211-a939-e4115bead28a","name":"Macedonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MK"},{"id":"0350bdb8-5d95-e211-a939-e4115bead28a","name":"Madagascar","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MG"},{"id":"0450bdb8-5d95-e211-a939-e4115bead28a","name":"Malawi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MW"},{"id":"0550bdb8-5d95-e211-a939-e4115bead28a","name":"Malaysia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MY"},{"id":"0650bdb8-5d95-e211-a939-e4115bead28a","name":"Maldives","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"MV"},{"id":"0750bdb8-5d95-e211-a939-e4115bead28a","name":"Mali","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ML"},{"id":"0850bdb8-5d95-e211-a939-e4115bead28a","name":"Malta","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MT"},{"id":"0950bdb8-5d95-e211-a939-e4115bead28a","name":"Marshall Islands","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"MH"},{"id":"0a50bdb8-5d95-e211-a939-e4115bead28a","name":"Martinique","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0b50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MR"},{"id":"0c50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritius","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MU"},{"id":"0d50bdb8-5d95-e211-a939-e4115bead28a","name":"Mayotte","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0e50bdb8-5d95-e211-a939-e4115bead28a","name":"Mexico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"MX"},{"id":"0f50bdb8-5d95-e211-a939-e4115bead28a","name":"Micronesia","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FM"},{"id":"1050bdb8-5d95-e211-a939-e4115bead28a","name":"Moldova","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MD"},{"id":"1150bdb8-5d95-e211-a939-e4115bead28a","name":"Monaco","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MC"},{"id":"1250bdb8-5d95-e211-a939-e4115bead28a","name":"Mongolia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MN"},{"id":"7f756b9a-5d95-e211-a939-e4115bead28a","name":"Montenegro","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ME"},{"id":"1350bdb8-5d95-e211-a939-e4115bead28a","name":"Montserrat","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"MS"},{"id":"1450bdb8-5d95-e211-a939-e4115bead28a","name":"Morocco","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MA"},{"id":"1550bdb8-5d95-e211-a939-e4115bead28a","name":"Mozambique","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MZ"},{"id":"1650bdb8-5d95-e211-a939-e4115bead28a","name":"Namibia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NA"},{"id":"1750bdb8-5d95-e211-a939-e4115bead28a","name":"Nauru","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NR"},{"id":"1850bdb8-5d95-e211-a939-e4115bead28a","name":"Nepal","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"NP"},{"id":"1950bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NL"},{"id":"1a50bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands Antilles","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":""},{"id":"1b50bdb8-5d95-e211-a939-e4115bead28a","name":"New Caledonia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"1c50bdb8-5d95-e211-a939-e4115bead28a","name":"New Zealand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NZ"},{"id":"1d50bdb8-5d95-e211-a939-e4115bead28a","name":"Nicaragua","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"NI"},{"id":"4461b8be-5d95-e211-a939-e4115bead28a","name":"Niger","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NE"},{"id":"4561b8be-5d95-e211-a939-e4115bead28a","name":"Nigeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NG"},{"id":"4661b8be-5d95-e211-a939-e4115bead28a","name":"Niue","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4761b8be-5d95-e211-a939-e4115bead28a","name":"Norfolk Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4861b8be-5d95-e211-a939-e4115bead28a","name":"Northern Mariana Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4961b8be-5d95-e211-a939-e4115bead28a","name":"Norway","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NO"},{"id":"35afd8d0-5d95-e211-a939-e4115bead28a","name":"Occupied Palestinian Territories","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PS"},{"id":"4a61b8be-5d95-e211-a939-e4115bead28a","name":"Oman","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"OM"},{"id":"4b61b8be-5d95-e211-a939-e4115bead28a","name":"Pakistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PK"},{"id":"4c61b8be-5d95-e211-a939-e4115bead28a","name":"Palau","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PW"},{"id":"4d61b8be-5d95-e211-a939-e4115bead28a","name":"Panama","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PA"},{"id":"4e61b8be-5d95-e211-a939-e4115bead28a","name":"Papua New Guinea","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PG"},{"id":"4f61b8be-5d95-e211-a939-e4115bead28a","name":"Paraguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PY"},{"id":"5061b8be-5d95-e211-a939-e4115bead28a","name":"Peru","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PE"},{"id":"5161b8be-5d95-e211-a939-e4115bead28a","name":"Philippines","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PH"},{"id":"5261b8be-5d95-e211-a939-e4115bead28a","name":"Pitcairn, Henderson, Ducie and Oeno Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"5361b8be-5d95-e211-a939-e4115bead28a","name":"Poland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PL"},{"id":"5461b8be-5d95-e211-a939-e4115bead28a","name":"Portugal","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PT"},{"id":"5561b8be-5d95-e211-a939-e4115bead28a","name":"Puerto Rico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PR"},{"id":"5661b8be-5d95-e211-a939-e4115bead28a","name":"Qatar","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"QA"},{"id":"5761b8be-5d95-e211-a939-e4115bead28a","name":"Reunion","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RE"},{"id":"5861b8be-5d95-e211-a939-e4115bead28a","name":"Romania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RO"},{"id":"5961b8be-5d95-e211-a939-e4115bead28a","name":"Russia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"RU"},{"id":"5a61b8be-5d95-e211-a939-e4115bead28a","name":"Rwanda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"RW"},{"id":"5b61b8be-5d95-e211-a939-e4115bead28a","name":"Samoa","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"WS"},{"id":"5c61b8be-5d95-e211-a939-e4115bead28a","name":"San Marino","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SM"},{"id":"5d61b8be-5d95-e211-a939-e4115bead28a","name":"Sao Tome and Principe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ST"},{"id":"1a0be5c4-5d95-e211-a939-e4115bead28a","name":"Saudi Arabia","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SA"},{"id":"1b0be5c4-5d95-e211-a939-e4115bead28a","name":"Senegal","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SN"},{"id":"1c0be5c4-5d95-e211-a939-e4115bead28a","name":"Serbia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RS"},{"id":"1d0be5c4-5d95-e211-a939-e4115bead28a","name":"Seychelles","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SC"},{"id":"1e0be5c4-5d95-e211-a939-e4115bead28a","name":"Sierra Leone","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SL"},{"id":"1f0be5c4-5d95-e211-a939-e4115bead28a","name":"Singapore","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SG"},{"id":"200be5c4-5d95-e211-a939-e4115bead28a","name":"Slovakia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SK"},{"id":"210be5c4-5d95-e211-a939-e4115bead28a","name":"Slovenia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SI"},{"id":"220be5c4-5d95-e211-a939-e4115bead28a","name":"Solomon Islands","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SB"},{"id":"230be5c4-5d95-e211-a939-e4115bead28a","name":"Somalia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SO"},{"id":"240be5c4-5d95-e211-a939-e4115bead28a","name":"South Africa","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZA"},{"id":"250be5c4-5d95-e211-a939-e4115bead28a","name":"South Georgia and South Sandwich Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"86756b9a-5d95-e211-a939-e4115bead28a","name":"Spain","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ES"},{"id":"260be5c4-5d95-e211-a939-e4115bead28a","name":"Sri Lanka","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"LK"},{"id":"7b756b9a-5d95-e211-a939-e4115bead28a","name":"St Barthelemy","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"270be5c4-5d95-e211-a939-e4115bead28a","name":"St Helena","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"280be5c4-5d95-e211-a939-e4115bead28a","name":"St Kitts and Nevis","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"KN"},{"id":"290be5c4-5d95-e211-a939-e4115bead28a","name":"St Lucia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"LC"},{"id":"7c756b9a-5d95-e211-a939-e4115bead28a","name":"St Martin","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MF"},{"id":"2a0be5c4-5d95-e211-a939-e4115bead28a","name":"St Pierre and Miquelon","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2b0be5c4-5d95-e211-a939-e4115bead28a","name":"St Vincent","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VC"},{"id":"2c0be5c4-5d95-e211-a939-e4115bead28a","name":"Sudan","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SD"},{"id":"7e756b9a-5d95-e211-a939-e4115bead28a","name":"Sudan, South","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SS"},{"id":"2d0be5c4-5d95-e211-a939-e4115bead28a","name":"Surinam","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SR"},{"id":"2e0be5c4-5d95-e211-a939-e4115bead28a","name":"Svalbard and Jan Mayen Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2f0be5c4-5d95-e211-a939-e4115bead28a","name":"Swaziland","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SZ"},{"id":"300be5c4-5d95-e211-a939-e4115bead28a","name":"Sweden","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SE"},{"id":"310be5c4-5d95-e211-a939-e4115bead28a","name":"Switzerland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CH"},{"id":"a46ee1ca-5d95-e211-a939-e4115bead28a","name":"Syria","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SY"},{"id":"a56ee1ca-5d95-e211-a939-e4115bead28a","name":"Taiwan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TW"},{"id":"a66ee1ca-5d95-e211-a939-e4115bead28a","name":"Tajikistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TJ"},{"id":"a76ee1ca-5d95-e211-a939-e4115bead28a","name":"Tanzania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TZ"},{"id":"76756b9a-5d95-e211-a939-e4115bead28a","name":"TEST","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"a86ee1ca-5d95-e211-a939-e4115bead28a","name":"Thailand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TH"},{"id":"a96ee1ca-5d95-e211-a939-e4115bead28a","name":"Togo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TG"},{"id":"aa6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tokelau","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ab6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tonga","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TO"},{"id":"ac6ee1ca-5d95-e211-a939-e4115bead28a","name":"Trinidad and Tobago","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"TT"},{"id":"ad6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tunisia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TN"},{"id":"ae6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkey","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TR"},{"id":"af6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkmenistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TM"},{"id":"b06ee1ca-5d95-e211-a939-e4115bead28a","name":"Turks and Caicos Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"TC"},{"id":"b16ee1ca-5d95-e211-a939-e4115bead28a","name":"Tuvalu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TV"},{"id":"b26ee1ca-5d95-e211-a939-e4115bead28a","name":"Uganda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"UG"},{"id":"b36ee1ca-5d95-e211-a939-e4115bead28a","name":"Ukraine","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UA"},{"id":"b46ee1ca-5d95-e211-a939-e4115bead28a","name":"United Arab Emirates","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AE"},{"id":"80756b9a-5d95-e211-a939-e4115bead28a","name":"United Kingdom","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GB"},{"id":"81756b9a-5d95-e211-a939-e4115bead28a","name":"United States","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"US"},{"id":"b56ee1ca-5d95-e211-a939-e4115bead28a","name":"United States Minor Outlying Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b66ee1ca-5d95-e211-a939-e4115bead28a","name":"Uruguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"UY"},{"id":"b76ee1ca-5d95-e211-a939-e4115bead28a","name":"Uzbekistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UZ"},{"id":"b86ee1ca-5d95-e211-a939-e4115bead28a","name":"Vanuatu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VU"},{"id":"eef682ac-5d95-e211-a939-e4115bead28a","name":"Vatican City","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"VA"},{"id":"b96ee1ca-5d95-e211-a939-e4115bead28a","name":"Venezuela","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VE"},{"id":"ba6ee1ca-5d95-e211-a939-e4115bead28a","name":"Vietnam","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VN"},{"id":"bb6ee1ca-5d95-e211-a939-e4115bead28a","name":"Virgin Islands (US)","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"VI"},{"id":"34afd8d0-5d95-e211-a939-e4115bead28a","name":"Wallis and Futuna","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"36afd8d0-5d95-e211-a939-e4115bead28a","name":"Western Sahara","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":""},{"id":"37afd8d0-5d95-e211-a939-e4115bead28a","name":"Yemen","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"YE"},{"id":"38afd8d0-5d95-e211-a939-e4115bead28a","name":"Zambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZM"},{"id":"39afd8d0-5d95-e211-a939-e4115bead28a","name":"Zimbabwe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZW"}]'),business_potential_namespaceObject=JSON.parse('[{"id":"0e6f1d69-e9c3-4460-a74b-3881930fe3e9","name":"The company is an exporter with High Export Potential","disabled_on":null},{"id":"e4d74957-60a4-4eab-a17b-d4c7b792ad25","name":"The company is a Medium Sized Business","disabled_on":null},{"id":"97f5e000-37a6-4452-b2be-25ccc94e5bd3","name":"The company is not an exporter with High Export Potential or a Medium Sized Business","disabled_on":null}]');var CONTACT={id:"some-random-contact-id",companyId:"008ba003-b528-4e79-b209-49fcfcceb371",companyName:"Little Britain",firstName:"Andy",lastName:"Pipkin",jobTitle:"Unemployed",primary:!1,telephoneCountrycode:"123",telephoneNumber:"456789",email:"andy.pipkin@littlebritain.co.uk",acceptsDitEmailMarketing:!0,addressSameAsCompany:!0,address1:"Foo",address2:"Bar",addressTown:"Town",addressCounty:"County",addressPostcode:null,addressCountry:"87756b9a-5d95-e211-a939-e4115bead28a",notes:"Notes"};const _stories_tasks={"Resource example":function Resource_example(payload,id){return new Promise((function(resolve,reject){return id.match("reject")?setTimeout(reject,1e3,"Could not load resource"):setTimeout(resolve,1e3,{example:"This is a dummy resource representation example",id,payload})}))},TASK_GET_REMINDER_SUMMARY:function TASK_GET_REMINDER_SUMMARY(){return Promise.resolve("???")},Countries:function Countries(){return country_namespaceObject},BusinessPotential:function BusinessPotential(){return business_potential_namespaceObject},Contact:function Contact(){return new Promise((function(resolve,reject){Math.random()>.5?setTimeout(reject,2e3,"You broke the internet"):setTimeout(resolve,2e3,CONTACT)}))},Company:function Company(payload,id){return null!=payload&&payload.reject?new Promise((function(resolve,reject){return setTimeout(reject,2e3,"World went down")})):new Promise((function(resolve){return setTimeout((function(){return resolve({id,referenceCode:"",name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",tradingName:"",tradingNames:[],ukBased:!0,companyNumber:"BR100000",vatNumber:"",dunsNumber:null,createdOn:"2019-01-09T09:45:06.080938Z",modifiedOn:"2019-01-09T09:45:06.080969Z",archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,description:"Doloribus accusamus qui non nam et earum inventore.",transferredBy:null,transferredOn:null,transferredTo:null,transferReason:"",website:"http://jamaal.biz",businessType:{name:"UK branch of foreign company (BR)",id:"b0730fc6-fcce-4071-bdab-ba8de4f4fc98"},oneListGroupTier:null,contacts:[{id:"0e75d636-1d24-416a-aaf0-3fb220d594ce",title:null,firstName:"Bob",lastName:"lawson",name:"Bob lawson",jobTitle:"Magician",company:{name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",id:"4cd4128b-1bad-4f1e-9146-5d4678c6a018"},adviser:{name:"DBT Staff",firstName:"DBT",lastName:"Staff",id:"7d19d407-9aec-4d06-b190-d3f404627f21"},primary:!0,telephoneCountrycode:"222",telephoneNumber:"3453454",email:"contact@bob.com",addressSameAsCompany:!0,address1:null,address2:null,addressTown:null,addressCounty:null,addressCountry:null,addressPostcode:null,notes:null,acceptsDitEmailMarketing:!1,archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,createdOn:"2019-02-04T15:59:14.267412Z",modifiedOn:"2019-02-05T13:17:23.112153Z"}],employeeRange:{name:"50 to 249",id:"3fafd8d0-5d95-e211-a939-e4115bead28a"},numberOfEmployees:null,isNumberOfEmployeesEstimated:null,exportToCountries:[],futureInterestCountries:[],headquarterType:null,oneListGroupGlobalAccountManager:null,globalHeadquarters:null,sector:{name:"Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales : Bio and Pharma Retail",id:"70f7ffde-5f95-e211-a939-e4115bead28a"},turnoverRange:{name:"£1.34 to £6.7M",id:"784cd12a-6095-e211-a939-e4115bead28a"},turnover:null,isTurnoverEstimated:null,ukRegion:{name:"London",id:common_constants.UK_REGIONS.LONDON},exportExperienceCategory:null,address:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}},registeredAddress:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}}})}),2e3)}))}},Form_stories_tasks={"Load initial values":function Load_initial_values(payload){return new Promise((function(resolve,reject){return"reject"===payload?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{foo:"Blah blah",bar:"b"})}))},"Submit Form example":function Submit_Form_example(formValues){return new Promise((function(resolve,reject){return"yes"===formValues.reject?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{task:"result"})}))},"Load options":function Load_options(payload,id){return new Promise((function(resolve,reject){return id.includes("reject")?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,5e3,payload)}))}};function preview_typeof(o){return preview_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},preview_typeof(o)}var preview_templateObject;function preview_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function preview_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?preview_ownKeys(Object(t),!0).forEach((function(r){preview_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):preview_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function preview_defineProperty(e,r,t){return(r=function preview_toPropertyKey(t){var i=function preview_toPrimitive(t,r){if("object"!=preview_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=preview_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==preview_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var GlobalStyle=(0,styled_components_browser_esm.DU)(preview_templateObject||(preview_templateObject=function preview_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  body {\n    font: "," ",";\n\n    "," {\n      font: "," ",";\n    }\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.PQ,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_19,govuk_react_constants_esm.PQ),Provider=function createProvider(tasks){var history=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,esm_history.zR)(),_createReduxHistoryCo=(0,es6.a1)({history}),createReduxHistory=_createReduxHistoryCo.createReduxHistory,routerMiddleware=_createReduxHistoryCo.routerMiddleware,routerReducer=_createReduxHistoryCo.routerReducer,sagaMiddleware=(0,redux_saga_core_npm_proxy_esm.Ay)(),store=(0,redux_toolkit_modern.U1)({devTools:!1,middleware:function middleware(){return[sagaMiddleware,routerMiddleware]},preloadedState,reducer:createProvider_objectSpread(createProvider_objectSpread(createProvider_objectSpread({},lodash_default().mapValues(preloadedState,(function(){return function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}))),reducers),{},{router:routerReducer})});sagaMiddleware.run(function(tasks){return root_saga_regeneratorRuntime().mark((function rootSaga(){return root_saga_regeneratorRuntime().wrap((function rootSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(saga(tasks));case 2:return _context.next=4,(0,redux_saga_effects_npm_proxy_esm.Zy)(_callee);case 4:return _context.next=6,(0,redux_saga_effects_npm_proxy_esm.Zy)(redirect);case 6:return _context.next=8,(0,redux_saga_effects_npm_proxy_esm.Zy)(readFlashMesages);case 8:return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeFlashMessages);case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeAnnouncementLinkToLocalStorage);case 12:return _context.next=14,(0,redux_saga_effects_npm_proxy_esm.Zy)(readAnnouncementLinkFromLocalStorage);case 14:return _context.next=16,(0,redux_saga_effects_npm_proxy_esm.Zy)(readMyInvestmentsFromSession);case 16:return _context.next=18,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeMyInvestmentsToSession);case 18:return _context.next=20,(0,redux_saga_effects_npm_proxy_esm.Zy)(cookiePreferenceChangeSaga);case 20:case"end":return _context.stop()}}),rootSaga)}))}(tasks));var reduxHistory=createReduxHistory(store);return function(_ref2){var children=_ref2.children;return react.createElement(react_redux.Provider,{store},react.createElement(ConnectedReactRouter,{navigator:reduxHistory},children))}}(preview_objectSpread(preview_objectSpread(preview_objectSpread(preview_objectSpread({},tasks),_stories_tasks),Typeahead_tasks),Form_stories_tasks)),decorators=[function(Story){return react.createElement(react.Fragment,null,react.createElement(GlobalStyle,null),react.createElement(Provider,null,react.createElement(Story,null)))}]},"./src/apps/companies/apps/edit-company/client/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/apps/companies/apps/referrals/details/client/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});var ID="referralDetails"},"./src/apps/companies/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var QUERY_FIELDS_MAP={leadIta:"one_list_group_global_account_manager",archived:"archived",name:"name",sectorDescends:"sector_descends",subSectorDescends:"sub_sector_descends",country:"country",ukRegion:"uk_region",headquarterType:"headquarter_type",exportingTo:"export_to_countries",interestedIn:"future_interest_countries",lastInteractionDate:"interaction_between",ukPostcode:"uk_postcode",usState:"us_state",canadianProvince:"canadian_province",area:"area"},GLOBAL_NAV_ITEM={path:"/companies",headerKey:"datahub-companies",permissions:["company.view_company"],key:"datahub-crm",order:1},LOCAL_NAV=[{path:"overview",label:"Overview",permissions:["company.view_contact"]},{path:"activity",label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",label:"Business details"},{path:"contacts",label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",label:"Account management",ariaDescription:"Account management"},{path:"investments",label:"Investment",search:"/projects?page=1&sortby=created_on%3Adesc",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}],APP_PERMISSIONS=(0,__webpack_require__("./node_modules/lodash/lodash.js").concat)(LOCAL_NAV,GLOBAL_NAV_ITEM),QUERY_FIELDS=Object.values(QUERY_FIELDS_MAP);module.exports={GLOBAL_NAV_ITEM,LOCAL_NAV,APP_PERMISSIONS,QUERY_FIELDS,QUERY_FIELDS_MAP,NONE_TEXT:"None",NOT_SET_TEXT:"Not set",NOT_AVAILABLE_TEXT:"Not available"}},"./src/apps/transformers.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),filter=_require.filter,upperFirst=_require.upperFirst,_require2=__webpack_require__("./src/client/utils/date.js"),format=_require2.format,isDateValid=_require2.isDateValid,_require3=__webpack_require__("./src/common/constants.js"),OPTION_NO=_require3.OPTION_NO,OPTION_YES=_require3.OPTION_YES,groupExportCountries=__webpack_require__("./src/lib/group-export-countries.js");function transformObjectToOption(_ref){return{value:_ref.id,label:_ref.name}}var transformOptionToValue=function transformOptionToValue(option){return option&&option.value?option.value:null};module.exports={transformObjectToOption,transformExportCountriesToGroupStatus:function transformExportCountriesToGroupStatus(countries){return groupExportCountries(countries)},transformContactToOption:function transformContactToOption(_ref2){var id=_ref2.id,first_name=_ref2.first_name,last_name=_ref2.last_name,job_title=_ref2.job_title;return{value:id,label:upperFirst(filter(["".concat(first_name," ").concat(last_name),job_title]).join(", "))}},transformCountryToOptionWithIsoCode:function transformCountryToOptionWithIsoCode(_ref3){return{key:_ref3.id,label:_ref3.name,value:_ref3.iso_alpha2_code}},transformDateObjectToDateString:function transformDateObjectToDateString(key){if(!key)throw Error("date object key is required to transform date");return function transformDateObjectToStringWithKey(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},dateString=["year","month","day"].map((function(x){return props["".concat(key,"_").concat(x)]})).join("-");return"--"===dateString?null:dateString}},transformDateStringToDateObject:function transformDateStringToDateObject(dateString){var isValidDate=dateString&&isDateValid(dateString);return{year:isValidDate?format(dateString,"yyyy"):"",month:isValidDate?format(dateString,"MM"):"",day:isValidDate?format(dateString,"dd"):""}},transformOptionToValue,transformArrayOfOptionsToValues:function transformArrayOfOptionsToValues(options){return options&&options.length?options.map(transformOptionToValue):[]},transformToYesNo:function transformToYesNo(value){return value?OPTION_YES:OPTION_NO},transformToID:function transformToID(value){return value?Array.isArray(value)?value.map((function(optionFromArrayOfOptions){return optionFromArrayOfOptions.id})):value.id:value},transformObjectToTypeahead:function transformObjectToTypeahead(value){return value?Array.isArray(value)?value.map(transformObjectToOption):transformObjectToOption(value):value}}},"./src/client/actions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$ah:()=>MY_INVESTMENTS__ADD_TO_STATE,$ft:()=>COMPANIES__METADATA_LOADED,$rh:()=>FLASH_MESSAGE__WRITE_TO_SESSION,A3K:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED,AIi:()=>INTERACTIONS_SELECTED_ADVISERS,AJt:()=>EVENTS__ATTENDEE_METADATA_LOADED,ATq:()=>INVESTMENTS__SET_PROJECTS_METADATA,Amb:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED,BEj:()=>INVESTMENT__COMPANY_SEARCH_TERM,BRO:()=>INVESTMENTS__PROJECTS_SELECTED_ADVISERS,BUu:()=>ORDERS__METADATA_LOADED,CuW:()=>MY_INVESTMENTS__SAVE_TO_SESSION,EGH:()=>TASK__START,EJT:()=>CONTACT_FORM__SUBMIT,EPX:()=>INVESTMENT_OPPORTUNITY_DETAILS__LOADED,Edz:()=>LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE,F0b:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED,F0x:()=>INTERACTION__ESS_DETAILS_LOADED,F8v:()=>LATEST_ANNOUNCEMENT__UPDATE_STATE,FN9:()=>OVERVIEW__EXPORT_WINS_SUMMARY,F__:()=>COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED,Fd_:()=>MY_INVESTMENTS__PAGINATION_CLICK,Fxn:()=>INVESTMENTS__PROJECTS_LOADED,G2D:()=>FORM__GO_TO_STEP,GAr:()=>TASK__ERROR,GD3:()=>MY_INVESTMENTS__GET_FROM_SESSION,GqW:()=>TYPEAHEAD__INPUT,Hfi:()=>COMPANY_LISTS__COMPANIES_LOADED,Hks:()=>REMINDER_SUMMARY__LOADED,HmC:()=>TOGGLE_SECTION__TOGGLE,I0G:()=>FORM__STEP_DEREGISTER,IDk:()=>FORM__LOADED,ILj:()=>INVESTMENTS__OPPORTUNITIES_LOADED,Ijb:()=>FLASH_MESSAGE__ADD_TO_STATE,Im2:()=>REFERRAL_LIST__LOADED,IpB:()=>COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED,J1h:()=>INVESTMENT_OPPORTUNITY__UPDATED,J4U:()=>FORM__FIELD_REGISTER,J6l:()=>DATA_HUB_FEED__FETCHED,JPR:()=>EVENTS__LOADED,JlV:()=>MY_INVESTMENTS__LAND_DATE_CHANGE,KQv:()=>TASK__CANCEL,KZ$:()=>SEND_REFERRAL_FORM__SUBMIT,Kk0:()=>EVENTS__DETAILS_LOADED,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,lZg:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED,mDK:()=>REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED,mKW:()=>TAB_NAV__FOCUS,mQv:()=>COMPANY_ACTIVITIES_SELECTED_COMPANIES,n7E:()=>FORM__FIELDS__RESET,nAW:()=>COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER,n_2:()=>TASK__CLEAR,nrO:()=>INTERACTIONS__METADATA_LOADED,ntj:()=>HARD_REDIRECT,nzr:()=>CONTACTS__ACTIVITIES_LOADED,oO0:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED,oWe:()=>FORM__FORWARD,p8B:()=>TASK__PROGRESS,pJE:()=>COMPANY_ACTIVITIES__LOADED,qLf:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT,rNT:()=>MY_INVESTMENTS__SHOW_DETAILS_CHANGE,rTD:()=>DNB__CHECK_PENDING_REQUEST,rpz:()=>INTERACTIONS_SELECTED_TEAMS,s7n:()=>INTERACTION__LOADED,sT5:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT,spP:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED,szG:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED,tgm:()=>TYPEAHEAD__SET_ACTIVE_OPTION,ttR:()=>MY_INVESTMENTS__STATUS_CHANGE,vMs:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED,vdS:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED,vl8:()=>FLASH_MESSAGE__GET_FROM_SESSION,vlr:()=>EVENTS__METADATA_LOADED,whB:()=>OBJECTIVE_LOADED,wwH:()=>EVENTS__SELECTED_ORGANISER,xOm:()=>FIELD_ADD_ANOTHER__REMOVE,y3g:()=>TYPEAHEAD__OPTION_TOGGLE,yKw:()=>EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED,yMX:()=>FIELD_ADD_ANOTHER__ADD,yQE:()=>MY_INVESTMENTS__LIST_LOADED,zT4:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT,zTo:()=>EXPORTS_HISTORY__SELECT_PAGE,z_g:()=>ROUTED_INPUT__SELECT,zdr:()=>EXPORT_LOADED,zp:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT,zsc:()=>DNB_FAMILY_TREE_LOADED,zuV:()=>FORM__VALIDATE});var INTERACTIONS__LOADED="INTERACTIONS__LOADED",INTERACTIONS__METADATA_LOADED="INTERACTIONS__METADATA_LOADED",INTERACTIONS_SELECTED_ADVISERS="INTERACTIONS_SELECTED_ADVISERS",INTERACTIONS_SELECTED_COMPANIES="INTERACTIONS_SELECTED_COMPANIES",INTERACTIONS_SELECTED_TEAMS="INTERACTIONS_SELECTED_TEAMS",COMPANIES__LOADED="COMPANIES__LOADED",COMPANIES__METADATA_LOADED="COMPANIES__METADATA_LOADED",COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER="COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER",COMPANIES__SELECTED_ADVISERS="COMPANIES__SELECTED_ADVISERS",COMPANY_LISTS__LISTS_LOADED="COMPANY_LISTS__LISTS_LOADED",COMPANY_LISTS__SELECT="COMPANY_LISTS__SELECT",COMPANY_LISTS__COMPANIES_LOADED="COMPANY_LISTS__COMPANIES_LOADED",COMPANY_LISTS__FILTER="COMPANY_LISTS__FILTER",COMPANY_LISTS__ORDER="COMPANY_LISTS__ORDER",CONTACTS__LOADED="CONTACTS__LOADED",CONTACTS__METADATA_LOADED="CONTACTS__METADATA_LOADED",CONTACTS__ACTIVITIES_LOADED="CONTACTS__ACTIVITIES_LOADED",ORDERS__LOADED="ORDERS__LOADED",ORDERS__METADATA_LOADED="ORDERS__METADATA_LOADED",EVENTS__LOADED="EVENTS__LOADED",EVENTS__METADATA_LOADED="EVENTS__METADATA_LOADED",EVENTS__SELECTED_ORGANISER="EVENTS__SELECTED_ORGANISER",EVENTS__DETAILS_LOADED="EVENTS__DETAILS_LOADED",EVENTS__AVENTRI_DETAILS_LOADED="EVENTS__AVENTRI_DETAILS_LOADED",EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED="EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED",EVENTS__SEARCH_ATTENDEE_LIST_LOADED="EVENTS__SEARCH_ATTENDEE_LIST_LOADED",EVENTS__ATTENDEE_METADATA_LOADED="EVENTS__ATTENDEE_METADATA_LOADED",INTERACTION__ESS_DETAILS_LOADED="INTERACTION__ESS_DETAILS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED="REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT",REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED="REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT="REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT",REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED="REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_OVERDUE_REMINDERS_LOADED="REMINDERS__TASK_OVERDUE_REMINDERS_LOADED",REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT="REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT",REMINDERS__TASK_OVERDUE_REMINDERS_DELETED="REMINDERS__TASK_OVERDUE_REMINDERS_DELETED",REMINDERS__TASK_COMPLETED_REMINDERS_LOADED="REMINDERS__TASK_COMPLETED_REMINDERS_LOADED",REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT="REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT",REMINDERS__TASK_COMPLETED_REMINDERS_DELETED="REMINDERS__TASK_COMPLETED_REMINDERS_DELETED",REFERRAL_DETAILS="REFERRAL_DETAILS",TASK__START="TASK__START",TASK__PROGRESS="TASK__PROGRESS",TASK__CANCEL="TASK__CANCEL",TASK__ERROR="TASK__ERROR",TASK__DISMISS_ERROR="TASK__DISMISS_ERROR",TASK__CLEAR="TASK__CLEAR",EXPORTS_HISTORY__LOADED="EXPORTS_HISTORY__LOADED",EXPORTS_HISTORY__SELECT_PAGE="EXPORTS_HISTORY__SELECT_PAGE",TAB_NAV__SELECT="TAB_NAV__SELECT",TAB_NAV__FOCUS="TAB_NAV__FOCUS",SEND_REFERRAL_FORM__SUBMIT="SEND_REFERRAL_FORM__SUBMIT",REFERRAL_LIST__LOADED="REFERRAL_LIST__LOADED",REFERRAL_LIST__FILTER_CHANGE="REFERRAL_LIST__FILTER_CHANGE",FORM__LOADED="FORM__LOADED",FORM__FIELD_SET_VALUE="FORM__FIELD_SET_VALUE",FORM__FIELD_TOUCHED="FORM__FIELD_TOUCHED",FORM__FIELD_REGISTER="FORM__FIELD_REGISTER",FORM__FIELD_DEREGISTER="FORM__FIELD_DEREGISTER",FORM__STEP_REGISTER="FORM__STEP_REGISTER",FORM__STEP_DEREGISTER="FORM__STEP_DEREGISTER",FORM__FIELDS__RESET="FORM__FIELDS__RESET",FORM__FORWARD="FORM__FORWARD",FORM__BACK="FORM__BACK",FORM__GO_TO_STEP="FORM__GO_TO_STEP",FORM__VALIDATE="FORM__VALIDATE",FORM__RESOLVED="FORM__RESOLVED",FORM__ERRORED="FORM__ERRORED",ANALYTICS__PUSH="ANALYTICS__PUSH",DNB__CHECK_PENDING_REQUEST="DNB__CHECK_PENDING_REQUEST",TOGGLE_SECTION__TOGGLE="TOGGLE_SECTION__TOGGLE",INVESTMENTS__PROJECTS_LOADED="INVESTMENTS__PROJECTS_LOADED",INVESTMENTS__PROJECTS_SELECTED_ADVISERS="INVESTMENTS__PROJECTS_SELECTED_ADVISERS",INVESTMENTS__PROFILES_LOADED="INVESTMENTS__PROFILES_LOADED",INVESTMENTS__SET_PROJECTS_METADATA="INVESTMENTS__SET_PROJECTS_METADATA",INVESTMENT__SEARCH_COMPANY_LIST_LOADED="INVESTMENT__SEARCH_COMPANY_LIST_LOADED",INVESTMENT__COMPANY_INVESTMENT_COUNT="INVESTMENT__COMPANY_INVESTMENT_COUNT",INVESTMENT__COMPANY_SEARCH_TERM="INVESTMENT__COMPANY_SEARCH_TERM",INVESTMENTS_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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);e<a;e++)n[e]=r[e];return n}const __WEBPACK_DEFAULT_EXPORT__=function useAdministrativeAreasSearch(areaSearchCallback){var _useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null),2),administrativeAreaList=_useState2[0],setAdministrativeAreaList=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null),2),administrativeAreaSearchError=_useState4[0],setAdministrativeAreaSearchError=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(!1),2),isSubmitting=_useState6[0],setIsSubmitting=_useState6[1];function _onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch=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,_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.prev=1,setIsSubmitting(!0),setAdministrativeAreaSearchError(null),_context.t0=setAdministrativeAreaList,_context.next=7,areaSearchCallback(countryId);case 7:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=15;break;case 11:_context.prev=11,_context.t2=_context.catch(1),setAdministrativeAreaList(null),setAdministrativeAreaSearchError("Error occurred while searching for an administrative area.");case 15:return _context.prev=15,setIsSubmitting(!1),_context.finish(15);case 18:case"end":return _context.stop()}}),_callee,null,[[1,11,15,18]])}))),_onAdministrativeAreaSearch.apply(this,arguments)}return{administrativeAreaSearchError,administrativeAreaList,isAreaFilterSubmitting:isSubmitting,onAdministrativeAreaSearch:function onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch.apply(this,arguments)}}}},"./src/client/components/Analytics/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/actions.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.connect)()((function(_ref){var children=_ref.children,dispatch=_ref.dispatch;return children((function(_ref2){var category=_ref2.category,action=_ref2.action,label=_ref2.label,extra=_ref2.extra,_ref2$event=_ref2.event,event=void 0===_ref2$event?"gaEvent":_ref2$event;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_1__.bVo,category,action,label,extra,event})}))}))},"./src/client/components/ArchivePanel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_utils_date__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/date.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var negativeSpacing="-"+_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_4,StyledMain=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding-top: ",";\n  div {\n    font-size: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.SG.SIZE_20),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("p")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.sO.bold),StyledReason=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(StyledMessage)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),negativeSpacing),ArchivePanel=function ArchivePanel(_ref){var _ref$archivedBy=_ref.archivedBy,archivedBy=void 0===_ref$archivedBy?null:_ref$archivedBy,archivedOn=_ref.archivedOn,archiveReason=_ref.archiveReason,unarchiveUrl=_ref.unarchiveUrl,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?null:_ref$onClick,type=_ref.type,_ref$archiveMessage=_ref.archiveMessage,archiveMessage=void 0===_ref$archiveMessage?"archived":_ref$archiveMessage;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMain,{"data-test":"archive-panel"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__.A,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMessage,{"data-test":"archive-message"},archivedBy?"This ".concat(type," was ").concat(archiveMessage," on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn)," by ").concat(function checkArchiverFormat(archivedBy){return"string"==typeof archivedBy?archivedBy:"".concat(archivedBy.first_name||archivedBy.firstName," ").concat(archivedBy.last_name||archivedBy.lastName)}(archivedBy),"."):"This ".concat(type," was automatically archived on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn),".")),react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledReason,{"data-test":"archive-reason"},"Reason: ".concat(archiveReason)),unarchiveUrl&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__.A,{"data-test":"unarchive-link",onClick,href:unarchiveUrl},"Unarchive")))};ArchivePanel.propTypes={archivedBy:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,prop_types__WEBPACK_IMPORTED_MODULE_11___default().object]),archivedOn:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,archiveReason:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,unarchiveUrl:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_11___default().func,type:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=ArchivePanel;ArchivePanel.__docgenInfo={description:"An extension of `StatusMessage` that is used to denote whether a record has been archived.",methods:[],displayName:"ArchivePanel",props:{archivedBy:{defaultValue:{value:"null",computed:!1},description:"An object containg the first and last name of the person who archived the record. If this is not defined, the automatic archive text will appear.",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},onClick:{defaultValue:{value:"null",computed:!1},description:"This is used when the unarchive link needs to contain an `onClick` event (such as displaying a flash message).",type:{name:"func"},required:!1},archiveMessage:{defaultValue:{value:"'archived'",computed:!1},required:!1},archivedOn:{description:"The date the record was archived.",type:{name:"string"},required:!0},archiveReason:{description:"The reason why the record was archived.",type:{name:"string"},required:!0},unarchiveUrl:{description:"The URL to unarchive the record.",type:{name:"string"},required:!1},type:{description:"The type of record.",type:{name:"string"},required:!0}}}},"./src/client/components/Badge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledBadge=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  border-radius: 4px;\n  padding: 2px 4px;\n  font-size: ",";\n  white-space: nowrap;\n  color: ",";\n"])),(function(_ref){var borderColour=_ref.borderColour;return"2px solid ".concat(borderColour)}),(function(props){return props.fontSize?props.fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14}),(function(props){return props.textColour?props.textColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF})),Badge=function Badge(_ref2){var label=_ref2.label,_ref2$borderColour=_ref2.borderColour,borderColour=void 0===_ref2$borderColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Pe:_ref2$borderColour,_ref2$textColour=_ref2.textColour,textColour=void 0===_ref2$textColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF:_ref2$textColour,_ref2$fontSize=_ref2.fontSize,fontSize=void 0===_ref2$fontSize?_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14:_ref2$fontSize,children=_ref2.children;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledBadge,{"data-test":"badge",borderColour,textColour,fontSize},label&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,null,label),children)};Badge.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,fontSize:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Badge;Badge.__docgenInfo={description:"A component to display the type of an element.",methods:[],displayName:"Badge",props:{borderColour:{defaultValue:{value:"'#bfc1c3'",computed:!1},description:"A custom colour for the border.",type:{name:"string"},required:!1},textColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},description:"A custom colour for the badge text.",type:{name:"string"},required:!1},fontSize:{defaultValue:{value:"FONT_SIZE.SIZE_14",computed:!0},description:"A custom size for the text of the badge.",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},children:{description:"The text that will be displayed on the badge.",type:{name:"node"},required:!0}}}},"./src/client/components/ButtonLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A).attrs((function(props){return props}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  &,\n  &:hover,\n  &:focus {\n    background: transparent;\n    box-shadow: none;\n    color: ",";\n    cursor: pointer;\n    text-decoration: underline;\n    ","\n  }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__.yV,(function(props){return props.inline&&"\n      padding: 0;\n      margin: 0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_1,";\n      border: 0;\n      width: auto;\n      font: inherit;\n    ")}))},"./src/client/components/Checkbox/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["onChange","name","initialChecked","value"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}var StyledGovCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_19__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_17__.Sc)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n"])),(function(props){return props.reduced&&"\n      padding: 8px 0 8px 33px !important;\n      min-height: auto;\n      margin-bottom: 1px;\n\n      input {\n        width: 18px;\n        height: 18px;\n      }\n      input + span {\n        padding: 0;\n        &:before {\n          margin: 8px 0 0 8px;\n          height: 18px;\n          width: 18px;\n          border-width: 1px;\n        }\n        &:after {\n          border-width: 0 0 2px 2px;\n          width: 10px;\n          height: 5px;\n          left: 11px;\n        }\n      }\n      input + span + span {\n        padding-left: 0;\n        font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__._m.S,"px;\n      }\n    ")})),Checkbox=function Checkbox(_ref){var _onChange=_ref.onChange,name=_ref.name,_ref$initialChecked=_ref.initialChecked,initialChecked=void 0!==_ref$initialChecked&&_ref$initialChecked,value=_ref.value,props=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_16__.useState)(initialChecked),2),checked=_useState2[0],setChecked=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_16__.useEffect)((function(){return setChecked(initialChecked)}),[initialChecked]),react__WEBPACK_IMPORTED_MODULE_16__.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;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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)||_unsupportedIterableToArray(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 _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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),pluralize__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(pluralize__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["totalItems","collectionName","addItemUrl","shouldPluralize"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeaderText=(0,styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_9__.H2)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-weight: normal;\n  font-size: ","px;\n  margin-bottom: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_10__.iU.MEDIUM),StyledLink=styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledResultCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_14__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  font-size: 36px;\n  font-weight: 600;\n  line-height: 1;\n"])));function CollectionHeader(_ref){var totalItems=_ref.totalItems,_ref$collectionName=_ref.collectionName,collectionName=void 0===_ref$collectionName?"result":_ref$collectionName,addItemUrl=_ref.addItemUrl,_ref$shouldPluralize=_ref.shouldPluralize,shouldPluralize=void 0===_ref$shouldPluralize||_ref$shouldPluralize,rest=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),formattedTotal=(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_13__._)(totalItems),counterSuffix=shouldPluralize?pluralize__WEBPACK_IMPORTED_MODULE_8___default()(collectionName,totalItems):collectionName,actions=addItemUrl&&react__WEBPACK_IMPORTED_MODULE_6__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_7__.A,{as:StyledLink,href:addItemUrl,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName);return react__WEBPACK_IMPORTED_MODULE_6__.createElement(_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,_extends({primary:!0,actions},rest),react__WEBPACK_IMPORTED_MODULE_6__.createElement(StyledHeaderText,{"data-test":"collection-header-name"},react__WEBPACK_IMPORTED_MODULE_6__.createElement(StyledResultCount,{"data-test":"collection-count"},formattedTotal)," ".concat(counterSuffix)))}CollectionHeader.propTypes={totalItems:prop_types__WEBPACK_IMPORTED_MODULE_15___default().number.isRequired,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_15___default().string.isRequired,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_15___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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["primary","actions","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledRowWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  display: flex;\n  flex-flow: row wrap;\n  align-items: center;\n  font-size: ",";\n  padding: "," 0;\n  border-bottom: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_2,(function(_ref){return _ref.primary?"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_1," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Uv):"1px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Pe)})),StyledActions=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  width: 100%;\n  margin-top: ",";\n\n  "," {\n    margin-top: 0;\n    margin-left: ",";\n    display: flex;\n    justify-content: flex-end;\n    flex-basis: 0;\n    flex-grow: 1;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__.Es.SCALE_1),CollectionHeaderRow=function CollectionHeaderRow(_ref2){var primary=_ref2.primary,actions=_ref2.actions,children=_ref2.children,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledRowWrapper,_extends({primary},rest),children,actions&&react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledActions,null,actions))};CollectionHeaderRow.propTypes={primary:prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool,actions:prop_types__WEBPACK_IMPORTED_MODULE_11___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_11___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.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 RoutedSelect=function RoutedSelect(_ref){var qsParamName=_ref.qsParamName,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},CollectionSort_extends.apply(null,arguments)}var StyledSpan=(0,styled_components_browser_esm.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  color: ",";\n"])),colours.hM),CollectionSort=function CollectionSort(_ref){var sortOptions=_ref.sortOptions,totalPages=_ref.totalPages,props=function CollectionSort_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function CollectionSort_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<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var CollectionList=function CollectionList(_ref){var _ref$results=_ref.results,results=void 0===_ref$results?[]:_ref$results,_ref$itemsPerPage=_ref.itemsPerPage,itemsPerPage=void 0===_ref$itemsPerPage?10:_ref$itemsPerPage,sortOptions=_ref.sortOptions,taskProps=_ref.taskProps,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,isComplete=_ref.isComplete,_ref$collectionName=_ref.collectionName,collectionName=void 0===_ref$collectionName?"result":_ref$collectionName,items=_ref.items,_ref$activePage=_ref.activePage,activePage=void 0===_ref$activePage?1:_ref$activePage,onPageClick=_ref.onPageClick,_ref$maxItemsToPagina=_ref.maxItemsToPaginate,maxItemsToPaginate=void 0===_ref$maxItemsToPagina?1e4:_ref$maxItemsToPagina,maxItemsToDownload=_ref.maxItemsToDownload,baseDownloadLink=_ref.baseDownloadLink,entityName=_ref.entityName,entityNamePlural=_ref.entityNamePlural,addItemUrl=_ref.addItemUrl,metadataRenderer=_ref.metadataRenderer,footerRenderer=_ref.footerRenderer,_ref$collectionItemTe=_ref.collectionItemTemplate,collectionItemTemplate=void 0===_ref$collectionItemTe?null:_ref$collectionItemTe,totalPages=Math.ceil(Math.min(count,maxItemsToPaginate)/itemsPerPage);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_4__.TW,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_4__.bn,{setWidth:"full"},react__WEBPACK_IMPORTED_MODULE_3__.createElement("article",null,isComplete&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.SG,{totalItems:count,collectionName,addItemUrl,"data-test":"collection-header"}),sortOptions&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.xG,{sortOptions,totalPages}),baseDownloadLink&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.Jd,{count,maxItems:maxItemsToDownload,"data-test":"download-data-header",baseDownloadLink,entityName,entityNamePlural}),react__WEBPACK_IMPORTED_MODULE_3__.createElement("ol",{"aria-live":"polite"},items.map((function(item,index){return collectionItemTemplate?collectionItemTemplate(item):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.G1,{key:[count,activePage,index].join("-"),headingUrl:item.headingUrl,headingText:item.headingText,subheading:item.subheading,badges:item.badges,metadata:item.metadata,metadataRenderer,buttons:item.buttons,footerRenderer,footerdata:item.footerdata})}))),taskProps&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(_client_components_Task__WEBPACK_IMPORTED_MODULE_5__.A.Status,taskProps,(function(){return isComplete&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement("ol",null,results.map((function(item,i){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.G1,_extends({},item,{key:i}))}))))})),react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.dK,{totalPages,onPageClick,activePage}))))};CollectionList.propTypes={taskProps:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({name:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,progressMessage:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,startOnRender:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({payload:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({page:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,filters:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object,search:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string}).isRequired,onSuccessDispatch:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string}).isRequired}),isComplete:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,router:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({location:prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({search:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,query:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})}),maxItemsToPaginate:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,maxItemsToDownload:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number,onPageClick:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,metadataRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func,footerRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=CollectionList;CollectionList.__docgenInfo={description:"",methods:[],displayName:"CollectionList",props:{results:{defaultValue:{value:"[]",computed:!1},required:!1},itemsPerPage:{defaultValue:{value:"10",computed:!1},required:!1},count:{defaultValue:{value:"0",computed:!1},required:!1},collectionName:{defaultValue:{value:"'result'",computed:!1},description:"",type:{name:"string"},required:!1},activePage:{defaultValue:{value:"1",computed:!1},required:!1},maxItemsToPaginate:{defaultValue:{value:"10000",computed:!1},description:"",type:{name:"number"},required:!1},collectionItemTemplate:{defaultValue:{value:"null",computed:!1},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1},id:{name:"string",required:!1},progressMessage:{name:"string",required:!1},startOnRender:{name:"shape",value:{payload:{name:"shape",value:{page:{name:"number",required:!1},filters:{name:"object",required:!1},search:{name:"string",required:!1}},required:!0},onSuccessDispatch:{name:"string",required:!1}},required:!0}}},required:!1},isComplete:{description:"",type:{name:"bool"},required:!1},children:{description:"",type:{name:"node"},required:!1},router:{description:"",type:{name:"shape",value:{location:{name:"shape",value:{search:{name:"string",required:!0},query:{name:"object",required:!0}},required:!1}}},required:!1},maxItemsToDownload:{description:"",type:{name:"number"},required:!1},onPageClick:{description:"",type:{name:"func"},required:!1},addItemUrl:{description:"",type:{name:"string"},required:!1},metadataRenderer:{description:"",type:{name:"func"},required:!1},footerRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/CompanyLists/Filters.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js"),_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["router"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="getMyTasks",TASK_GET_MY_TASKS="TASK_GET_MY_TASKS",areFiltersActive=function areFiltersActive(queryParams){var filters=(0,lodash__WEBPACK_IMPORTED_MODULE_18__.omitBy)(queryParams,(function(filterValue,filterName){return"all-statuses"===filterValue||"page"===filterName}));return!(0,lodash__WEBPACK_IMPORTED_MODULE_18__.isEmpty)(filters)},sortbyMapping={due_date:"due_date:asc",recently_updated:"modified_on:desc",least_recently_updated:"modified_on:asc",company_ascending:"company.name:asc",project_ascending:"investment_project.name:asc"},statusMapping={active:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__.X.ACTIVE},completed:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__.X.COMPLETED}},state2props=function state2props(_ref){var router=_ref.router,state=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),queryParams=(0,_client_utils_url__WEBPACK_IMPORTED_MODULE_19__.g)(router.location),currentAdviserId=state.currentAdviserId,payload=_objectSpread(_objectSpread({},queryParams),{},{page:(0,_client_utils_pagination__WEBPACK_IMPORTED_MODULE_20__.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_21__.sl.value&&(payload.company=queryParams.company),queryParams.project&&queryParams.project!==_constants__WEBPACK_IMPORTED_MODULE_21__.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_21__.l4},createdBy:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.l4},sortby:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.P$},status:{options:_constants__WEBPACK_IMPORTED_MODULE_21__.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.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),["id"]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var _templateObject,Task=__webpack_require__("./src/client/components/Task/index.jsx"),NotificationBadge=__webpack_require__("./src/client/components/NotificationBadge/index.jsx");var StyledNotificationAlertNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: flex;\n  min-width: 42px;\n  outline: none;\n  text-decoration: none;\n"]))),StyledShape=(0,styled_components_browser_esm.Ay)(NotificationBadge.yp)({position:"relative",top:-2,left:-7}),StyledBellIcon=(0,styled_components_browser_esm.Ay)((function(_ref){var id=_ref.id,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 COMMUNITY_PATHNAME=__webpack_require__.n(urls)().community.index(),googleAnalyticsUTM=lib_default().stringify({utm_source:"Data Hub",utm_medium:"referral",utm_campaign:"dataflow",utm_content:"Switch to Data Workspace"}),Layout=styled_components_browser_esm.Ay.div({maxWidth:960,marginLeft:"auto",marginRight:"auto"}),RootContainer=styled_components_browser_esm.Ay.div(_defineProperty({display:"inline-flex",alignItems:"center",justifyContent:"space-between",width:"calc(100% - 40px)",padding:"7px 25px 7px 15px"},govuk_react_constants_esm.qs.DESKTOP,{padding:"7px 0",width:"100%"})),Container=styled_components_browser_esm.Ay.div((function(_ref){var hasFeatureGroup=_ref.hasFeatureGroup;return _defineProperty({display:"inline-flex",alignItems:"center",justifyContent:"space-between"},govuk_react_constants_esm.qs.DESKTOP,_objectSpread({whiteSpace:"nowrap"},hasFeatureGroup&&{width:300}))})),DataHubContainer=(0,styled_components_browser_esm.Ay)("div")({display:"inline-flex",alignItems:"center",gap:10}),StyledLogoNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)({"&:link, &:visited":{fontSize:30,fontWeight:govuk_react_constants_esm.sO.bold,color:colours.UE,textDecoration:"none",boxShadow:"none",outline:"none","&::after":{content:'" "'},":focus":{color:colours.Uv,background:colours.Iz}}}),BetaTag=styled_components_browser_esm.Ay.strong({color:colours.UE,border:"none",lineHeight:1.25,letterSpacing:1,padding:"3px 8px",textDecoration:"none",textTransform:"uppercase",fontSize:govuk_react_constants_esm.SG.SIZE_14,fontWeight:govuk_react_constants_esm.sO.bold,backgroundColor:colours._G}),NavigationLink=styled_components_browser_esm.Ay.a((function(_ref3){var hasFeatureGroup=_ref3.hasFeatureGroup;return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({color:colours.UE,display:"none",marginLeft:"20px",marginRight:"20px","-webkit-font-smoothing":"antialiased"},govuk_react_constants_esm.qs.TABLET,{display:"block",marginRight:hasFeatureGroup?20:0}),"fontWeight",govuk_react_constants_esm.sO.bold),"textDecoration","none"),":focus",{color:colours.Uv,background:colours.Iz}),":visited",{color:colours.UE}),":hover",{textDecoration:"underline",textDecorationThickness:"3px",textUnderlineOffset:".1em"})})),MobileMenuButton=styled_components_browser_esm.Ay.button((function(_ref5){var showVerticalNav=_ref5.showVerticalNav;return _defineProperty({fontWeight:400,fontSize:govuk_react_constants_esm.SG.SIZE_14,marginLeft:15,padding:0,border:0,color:colours.UE,background:"0 0",outline:"none",":focus":{color:colours.Uv,background:colours.Iz},"&::after":_objectSpread({content:'""',display:"inline-block",width:0,height:0,borderStyle:"solid",borderColor:"transparent",borderBottomColor:"inherit",borderTopColor:"inherit",marginLeft:govuk_react_constants_esm.Es.SCALE_1},showVerticalNav?{clipPath:"polygon(50% 0, 0 100%, 100% 100%)",borderWidth:"0 5px 8px 5px"}:{clipPath:"polygon(0 0, 50% 100%, 100% 0)",borderWidth:"8px 5px 0 5px"})},govuk_react_constants_esm.qs.TABLET,{display:"none"})})),DataHubBar=function DataHubBar(_ref7){var onShowVerticalNav=_ref7.onShowVerticalNav,showVerticalNav=_ref7.showVerticalNav,hasFeatureGroup=_ref7.hasFeatureGroup;return react.createElement(Layout,null,react.createElement(RootContainer,null,react.createElement(DataHubContainer,null,react.createElement(govuk_react_visually_hidden_esm.A,null,"Department for Business and Trade"),react.createElement(StyledLogoNavLink,{as:"a",href:"/"},"Data Hub"),react.createElement(BetaTag,null,"beta")),react.createElement(Container,{hasFeatureGroup},react.createElement(NavigationLink,{"data-test":"crm-community-link",hasFeatureGroup,showVerticalNav,href:COMMUNITY_PATHNAME},"CRM community"),react.createElement(NavigationLink,{hasFeatureGroup,showVerticalNav,href:"https://data.trade.gov.uk?".concat(googleAnalyticsUTM)},"Switch to Data Workspace"),react.createElement(components_NotificationAlert,null),react.createElement(MobileMenuButton,{showVerticalNav,onClick:function onClick(){return onShowVerticalNav(!showVerticalNav)},role:"button","aria-expanded":showVerticalNav,"aria-label":"Show or hide navigation","aria-controls":"navigation sub-navigation logo-navigation"},"Menu"))))};DataHubBar.propTypes={onShowVerticalNav:prop_types_default().func.isRequired,showVerticalNav:prop_types_default().bool.isRequired,hasFeatureGroup:prop_types_default().bool.isRequired};const DataHubHeader_DataHubBar=DataHubBar;DataHubBar.__docgenInfo={description:"",methods:[],displayName:"DataHubBar",props:{onShowVerticalNav:{description:"",type:{name:"func"},required:!0},showVerticalNav:{description:"",type:{name:"bool"},required:!0},hasFeatureGroup:{description:"",type:{name:"bool"},required:!0}}};__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var react_router_dist=__webpack_require__("./node_modules/react-router/dist/index.js"),ProtectedLink=__webpack_require__("./src/client/components/ProtectedLink/index.jsx");const links=[{label:"Companies",module:"datahub:companies",useRouter:!0,to:{pathname:"/companies",search:"?archived[0]=false&sortby=modified_on:desc&page=1"}},{label:"Contacts",module:"datahub:contacts",useRouter:!0,to:{pathname:"/contacts",search:"?archived[0]=false&sortby=modified_on:desc&page=1"}},{label:"Events",module:"datahub:events",useRouter:!0,to:{pathname:"/events",search:"?page=1&sortby=modified_on:desc"}},{label:"Interactions",module:"datahub:interactions",useRouter:!0,to:{pathname:"/interactions",search:"?sortby=date:desc&page=1"}},{label:"Investments",module:"datahub:investments",useRouter:!1,to:{pathname:"/investments",search:"?page=1&sortby=created_on:desc"}},{label:"Orders",module:"datahub:orders",useRouter:!0,to:{pathname:"/omis",search:"?page=1&sortby=created_on:desc"}},{label:"Find exporters",module:"find-exporters",useRouter:!1,to:{pathname:"https://data.trade.gov.uk/datasets/4a0da123-a933-4250-90b5-df5cde34930b"}},{label:"Market access",module:"market-access",useRouter:!1,to:{pathname:"https://market-access.trade.gov.uk/"}}];function NavBar_typeof(o){return NavBar_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},NavBar_typeof(o)}var NavBar_excluded=["label","useRouter","module","to"];function NavBar_extends(){return NavBar_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},NavBar_extends.apply(null,arguments)}function NavBar_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function NavBar_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?NavBar_ownKeys(Object(t),!0).forEach((function(r){NavBar_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NavBar_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function NavBar_defineProperty(e,r,t){return(r=function NavBar_toPropertyKey(t){var i=function NavBar_toPrimitive(t,r){if("object"!=NavBar_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=NavBar_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==NavBar_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledNavContainer=styled_components_browser_esm.Ay.div({position:"relative",backgroundColor:colours.Uv,lineHeight:1.5}),StyledNav=styled_components_browser_esm.Ay.nav({backgroundColor:colours.ej,fontWeight:govuk_react_constants_esm.sO.bold}),StyledList=styled_components_browser_esm.Ay.ul(NavBar_defineProperty({margin:0,maxWidth:960,marginLeft:"auto",marginRight:"auto",position:"relative",listStyle:"none",boxSizing:"content-box",padding:"0 ".concat(govuk_react_constants_esm.Es.SCALE_3),display:function display(_ref){return _ref.showVerticalNav?"block":"none"}},govuk_react_constants_esm.qs.TABLET,{paddingLeft:govuk_react_constants_esm.Es.SCALE_5,paddingRight:govuk_react_constants_esm.Es.SCALE_5,display:"block"})),StyledListItem=styled_components_browser_esm.Ay.li(NavBar_defineProperty({paddingRight:govuk_react_constants_esm.Es.SCALE_4},govuk_react_constants_esm.qs.TABLET,{display:"inline-block"})),styledLinkMixin={content:'""',position:"absolute",left:0,right:0,bottom:0,borderBottom:"".concat(govuk_react_constants_esm.gP," solid")},styledLinkActive=NavBar_objectSpread(NavBar_objectSpread({},styledLinkMixin),{},{borderColor:colours._G}),styledLinkFocus=NavBar_objectSpread(NavBar_objectSpread({},styledLinkMixin),{},{borderColor:colours.Uv}),styledLink={"&:focus":{backgroundColor:"#FFDD00",boxShadow:"none",outline:"none"},"&:link, &:visited":NavBar_defineProperty({position:"relative",display:"block",margin:0,padding:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0"),fontSize:govuk_react_constants_esm.SG.SIZE_16,textDecoration:"none",lineHeight:"23px",color:colours.Uv,"&.active":{color:colours._G}},govuk_react_constants_esm.qs.TABLET,{display:"inline-block",padding:"8px 0",":hover::after":styledLinkActive,"&.active::after":styledLinkActive,":focus::after":styledLinkFocus})},StyledNavLink=(0,styled_components_browser_esm.Ay)(dist.k2)(styledLink),StyledLink=styled_components_browser_esm.Ay.a(styledLink),isActiveLink=function isActiveLink(location,to){return location.pathname.startsWith(to.pathname)},NavBar=function NavBar(_ref2){var onShowVerticalNav=_ref2.onShowVerticalNav,showVerticalNav=_ref2.showVerticalNav,disableReactRouter=_ref2.disableReactRouter,location=(0,react_router_dist.zy)();return react.createElement(StyledNavContainer,null,react.createElement(StyledNav,{"aria-labelledby":"navigation","data-test":"primary-navigation"},react.createElement(StyledList,{showVerticalNav,id:"navigation","aria-label":"Top Level Navigation",onClick:function onClick(){return onShowVerticalNav(!showVerticalNav)}},links.map((function(_ref3,i){var label=_ref3.label,useRouter=_ref3.useRouter,module=_ref3.module,to=_ref3.to,rest=function NavBar_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function NavBar_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<s.length;r++)o=s[r],t.includes(o)||{}.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}}};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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),_govuk_react_input__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["onChange","name","label","legend","hint","initialValue","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}var DateField=function DateField(_ref){var _ref$onChange=_ref.onChange,_onChange=void 0===_ref$onChange?function(){}:_ref$onChange,name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,initialValue=_ref.initialValue,_ref$type=_ref.type,type=void 0===_ref$type?"date":_ref$type,props=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_15__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_15__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),react__WEBPACK_IMPORTED_MODULE_15__.createElement(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_17__.A,_extends({name,label,legend,hint},props),react__WEBPACK_IMPORTED_MODULE_15__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_16__.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_18___default().func,name:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_18___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_18___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_18___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.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/utils/number-utils.js"),_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_excluded=["downloadLink","count","maxItems","entityName","entityNamePlural"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("a")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: 0;\n  ",": {\n    margin-left: ","px;\n  },\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.Ge[2]),DownloadDataHeader=function DownloadDataHeader(_ref){var downloadLink=_ref.downloadLink,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,_ref$maxItems=_ref.maxItems,maxItems=void 0===_ref$maxItems?5e3:_ref$maxItems,_ref$entityName=_ref.entityName,entityName=void 0===_ref$entityName?"":_ref$entityName,_ref$entityNamePlural=_ref.entityNamePlural,entityNamePlural=void 0===_ref$entityNamePlural?"".concat(entityName,"s"):_ref$entityNamePlural,props=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<s.length;r++)o=s[r],t.includes(o)||{}.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_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,props,"Filter to fewer than ",(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__._)(maxItems)," ",entityNamePlural," to download");var downloadAction=react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_8__.$n,{key:"download",as:StyledLink,href:downloadLink,download:!0},"Download");return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,_extends({actions:[downloadAction]},props),"You can now download"," ",1===count?"this ".concat(entityName):"these ".concat(count," ").concat(entityNamePlural))};DownloadDataHeader.propTypes={downloadLink:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,count:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,maxItems:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,entityName:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,entityNamePlural:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string};const __WEBPACK_DEFAULT_EXPORT__=DownloadDataHeader;DownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"DownloadDataHeader",props:{count:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},maxItems:{defaultValue:{value:"5000",computed:!1},description:"",type:{name:"number"},required:!1},entityName:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},entityNamePlural:{description:"",type:{name:"string"},required:!1},downloadLink:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Effect.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=function Effect(_ref){var dependencyList=_ref.dependencyList,effect=_ref.effect;return(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(effect,null==dependencyList?void 0:dependencyList.map(JSON.stringify)),null}},"./src/client/components/EntityList/EntityListItem.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_components_Metadata___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Metadata/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntity=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  padding: ",";\n  border: 1px solid ",";\n  ",";\n\n  &[role='button'] {\n    cursor: pointer;\n\n    h3 {\n      color: ",";\n    }\n\n    &:hover {\n      border: 1px solid ",";\n      background-color: ",";\n\n      & > h3 {\n        color: ",";\n      }\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.yV,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.P1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__.H3)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n  margin: 0 0 ",";\n  "," {\n    font-size: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_19),StyledInsetText=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  & {\n    margin-top: ",";\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2),EntityListItem=function EntityListItem(_ref){var id=_ref.id,onEntityClick=_ref.onEntityClick,_ref$data=_ref.data,data=void 0===_ref$data?{}:_ref$data,text=_ref.text,heading=_ref.heading,_ref$meta=_ref.meta,meta=void 0===_ref$meta?[]:_ref$meta,isClickable=!!onEntityClick;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledEntity,{key:"entity_".concat(id),tabIndex:isClickable?0:void 0,role:isClickable?"button":void 0,onClick:function onClick(){return isClickable&&onEntityClick(data)},onKeyDown:function onKeyDown(e){return isClickable&&13===e.keyCode&&onEntityClick(data)}},heading&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledHeading,null,heading),!(0,lodash__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(meta)&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_8__.A,{rows:meta}),text&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledInsetText,null,text))};EntityListItem.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,onEntityClick:prop_types__WEBPACK_IMPORTED_MODULE_10___default().func,data:prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),text:prop_types__WEBPACK_IMPORTED_MODULE_10___default().node,heading:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,meta:prop_types__WEBPACK_IMPORTED_MODULE_10___default().array};const __WEBPACK_DEFAULT_EXPORT__=EntityListItem;EntityListItem.__docgenInfo={description:"",methods:[],displayName:"EntityListItem",props:{data:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},meta:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},id:{description:"",type:{name:"string"},required:!0},onEntityClick:{description:"",type:{name:"func"},required:!1},text:{description:"",type:{name:"node"},required:!1},heading:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/EntityList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_EntityListItem__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntityList=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("ol")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  padding-left: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_4),StyledEntityListItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  list-style-type: none;\n"]))),EntityList=function EntityList(_ref){var entities=_ref.entities,Component=_ref.entityRenderer||_EntityListItem__WEBPACK_IMPORTED_MODULE_5__.A;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityList,{"aria-live":"polite","data-test":"entity-list"},entities.map((function(entity){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityListItem,{"data-test":"entity-list-item",key:"entity-list-item_".concat(entity.id)},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component,entity))})))};EntityList.propTypes={entities:prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,prop_types__WEBPACK_IMPORTED_MODULE_7___default().number]).isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,meta:prop_types__WEBPACK_IMPORTED_MODULE_7___default().array.isRequired,data:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})).isRequired,entityRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=EntityList;EntityList.__docgenInfo={description:"",methods:[],displayName:"EntityList",props:{entities:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"union",value:[{name:"string"},{name:"number"}],required:!0},heading:{name:"string",required:!0},meta:{name:"array",required:!0},data:{name:"object",required:!0}}}},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/EntityList/useDnbSearch.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),axios__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/axios/lib/axios.js"),_utils_addresses__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/addresses.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function getTradingNames(dnb_company){return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.isEmpty)(dnb_company.trading_names)?null:{label:"Trading name(s)",value:dnb_company.trading_names.join(", ")}}function getAddress(dnb_company,features){return{label:"Location at",value:(0,_utils_addresses__WEBPACK_IMPORTED_MODULE_20__.getCompanyAddress)(dnb_company,features)}}const __WEBPACK_DEFAULT_EXPORT__=function useDnbSearch(apiEndpoint,features){function transformCompanyRecord(record){var dnb_company=record.dnb_company;return{id:dnb_company.duns_number,heading:dnb_company.primary_name,meta:(0,lodash__WEBPACK_IMPORTED_MODULE_19__.compact)([getTradingNames(dnb_company),getAddress(dnb_company,features)]),data:record}}function _findCompany(){return _findCompany=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(filters){var _yield$axios$post,data;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios__WEBPACK_IMPORTED_MODULE_21__.A.post(apiEndpoint,filters);case 2:return _yield$axios$post=_context.sent,data=_yield$axios$post.data,_context.abrupt("return",data.results.map(transformCompanyRecord));case 5:case"end":return _context.stop()}}),_callee)}))),_findCompany.apply(this,arguments)}return{findCompany:function findCompany(_x){return _findCompany.apply(this,arguments)},transformCompanyRecord}}},"./src/client/components/ErrorSummary/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/utils/colours.js"),_styles__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/styles.js"),_excluded=["heading","description","errors"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledErrorText=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_24__.A)(_defineProperty(_defineProperty(_defineProperty({fontFamily:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.hM,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",fontWeight:700,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Es.SCALE_1,textDecoration:"underline",textDecorationSkipInk:"none",textTransform:"none",cursor:"pointer",fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.SG.SIZE_16,lineHeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.$g.SIZE_16,":link":{color:"".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)},":visited":{color:"".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.LARGESCREEN,{fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.SG.SIZE_19,lineHeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.$g.SIZE_19}),"paddingTop","4px"),"paddingBottom","2px")),StyledErrorSummary=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)("div")(_objectSpread(_objectSpread({color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.pF,padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Eh.mobile,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.d5," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)},_styles__WEBPACK_IMPORTED_MODULE_29__.W),{},_defineProperty({},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.LARGESCREEN,{padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.Eh.tablet,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.gP," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__.su)})),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.withWhiteSpace({marginBottom:6})),ErrorSummary=react__WEBPACK_IMPORTED_MODULE_20__.forwardRef((function(_ref,ref){var _ref$heading=_ref.heading,heading=void 0===_ref$heading?"There is a problem":_ref$heading,_ref$description=_ref.description,description=void 0===_ref$description?null:_ref$description,errors=_ref.errors,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledErrorSummary,_extends({tabIndex:-1},props,{ref}),react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_21__.H2,{size:"MEDIUM"},heading),description&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_22__.A,{mb:3},description),errors.length>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__.A,{mb:0,listStyleType:"none"},errors.map((function(_ref2){var targetName=_ref2.targetName,text=_ref2.text;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__.A,{key:targetName},react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledErrorText,{href:"#field-".concat(targetName)},text))}))))}));ErrorSummary.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,description:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,errors:prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().shape({targetName:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired}).isRequired)};const __WEBPACK_DEFAULT_EXPORT__=ErrorSummary;ErrorSummary.__docgenInfo={description:"When a user makes an error, you must show both an error summary and an error message next to each answer that contains an error. More information can be found on the [GDS Design system](https://design-system.service.gov.uk/components/error-summary/)\n\nUse this component at the top of a page to summarise any errors a user has made.",methods:[],displayName:"ErrorSummary",props:{heading:{defaultValue:{value:"'There is a problem'",computed:!1},description:"Text for the heading",type:{name:"string"},required:!1},description:{defaultValue:{value:"null",computed:!1},description:"Text for description",type:{name:"string"},required:!1},errors:{description:"The list of error descriptions and their target id's",type:{name:"arrayOf",value:{name:"shape",value:{targetName:{name:"string",required:!0},text:{name:"string",required:!0}}}},required:!1}}}},"./src/client/components/FilterLabel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay.label({"-webkit-font-smoothing":"antialiased",fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.sO.bold,fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.SG.SIZE_16,display:"block",color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.Uv})},"./src/client/components/Footer/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>Footer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js");var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");const govuk_crest_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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFooter=(0,styled_components_browser_esm.Ay)("footer")({clear:"both",borderTop:"1px solid ".concat(colours.fl),background:"".concat(colours.Np),color:"".concat(colours.Kk)},govuk_react_lib_esm.Il.font({size:16}),govuk_react_lib_esm.YK.withWhiteSpace({padding:[{size:7,direction:"top"},{size:5,direction:"bottom"}]})),StyleList=styled_components_browser_esm.Ay.ul(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  display: flex;\n  flex: 1;\n  flex-direction: row;\n  li + li {\n    margin-left: ",";\n  }\n  margin-bottom: ",";\n\n  @media (max-width: ",") {\n    margin-bottom: -",";\n    margin-right: ",";\n    flex-direction: column;\n    flex-wrap: wrap;\n\n    li + li {\n      margin-left: 0;\n    }\n\n    li {\n      margin-left: 0;\n      margin-bottom: ",";\n    }\n\n    li:last-child {\n      margin-bottom: ",";\n    }\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5),FooterLink=styled_components_browser_esm.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n  &:active,\n  &:focus,\n  &:visited,\n  &:hover {\n    color: ",";\n    outline: 3px solid transparent;\n  }\n  &:focus {\n    background-color: ",";\n    box-shadow:\n      0 -2px ",",\n      0 4px ",";\n    text-decoration: none;\n  }\n"])),colours.Uv,colours.Uv,colours.eM,colours.eM,colours.Uv),CopyrightLink=(0,styled_components_browser_esm.Ay)(FooterLink)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: inline-block;\n  min-width: 125px;\n  padding-top: 112px;\n  background-image: url(",");\n  background-repeat: no-repeat;\n  background-position: 50% 0%;\n  background-size: 125px 102px;\n  text-align: center;\n  text-decoration: none;\n  white-space: nowrap;\n  margin-bottom: ",";\n  @media (max-width: ",") {\n    margin-bottom: ",";\n  }\n"])),govuk_crest_2x_namespaceObject,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_5),Container=(0,styled_components_browser_esm.Ay)(Main.w)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  display: flex;\n  justify-content: center;\n  align-items: flex-end;\n  flex-wrap: wrap;\n"]))),LINKS={"Request support":urls_default().support(),"Help centre":urls_default().external.helpCentre.dhHomepage,"Privacy notice":urls_default().external.helpCentre.privacyNotice,Cookies:urls_default().external.helpCentre.cookies,"Accessibility statement":urls_default().external.helpCentre.accessibilityStatement};function Footer(_ref){var _ref$links=_ref.links,links=void 0===_ref$links?LINKS:_ref$links,props=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<s.length;r++)o=s[r],t.includes(o)||{}.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 `<footer/>` element\nwhich wraps this component.\n@param {Record<string, string>} [props.links = typeof LINKS] - bla",methods:[],displayName:"Footer",props:{links:{defaultValue:{value:"{\n  'Request support': urls.support(),\n  'Help centre': urls.external.helpCentre.dhHomepage,\n  'Privacy notice': urls.external.helpCentre.privacyNotice,\n  Cookies: urls.external.helpCentre.cookies,\n  'Accessibility statement': urls.external.helpCentre.accessibilityStatement,\n}",computed:!1},required:!1}}}},"./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>FieldAddAnother_FieldAddAnother});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),number_utils=__webpack_require__("./src/client/utils/number-utils.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),FieldWrapper=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 _templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledChildren=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1),StyledGroup=(0,styled_components_browser_esm.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),SecondaryButtonContainer=(0,styled_components_browser_esm.Ay)("div")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_4),StyledLink=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1),FieldAddAnother=function FieldAddAnother(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,children=_ref.children,dataTestPrefix=_ref.dataTestPrefix,itemName=_ref.itemName,buttonText=_ref.buttonText,_ref$initialChildGrou=_ref.initialChildGroupCount,initialChildGroupCount=void 0===_ref$initialChildGrou?1:_ref$initialChildGrou,_ref$limitChildGroupC=_ref.limitChildGroupCount,limitChildGroupCount=void 0===_ref$limitChildGroupC?Number.MAX_VALUE:_ref$limitChildGroupC,add=_ref.add,remove=_ref.remove,_ref$items=_ref.items,items=void 0===_ref$items?lodash_default()(initialChildGroupCount).range().keyBy().value():_ref$items,buttonMargin=_ref.buttonMargin,fieldGroupIds=Object.keys(items);return react.createElement(react.Fragment,null,react.createElement(FieldWrapper.A,{name,label,legend,hint,bigLegend:!0},fieldGroupIds.map((function(fieldGroupId,index){return react.createElement(StyledGroup,{role:"region","aria-label":"".concat((0,number_utils.hx)(index)," ").concat(itemName),"data-test":"".concat(dataTestPrefix).concat(index),key:fieldGroupId},react.createElement(StyledChildren,null,children({groupIndex:fieldGroupId})),fieldGroupIds.length>1&&react.createElement(StyledLink,null,react.createElement(govuk_react_link_esm.A,{href:"#","aria-label":"Remove ".concat((0,number_utils.hx)(index)," ").concat(itemName),onClick:function onClick(event){event.preventDefault(),remove(fieldGroupId,initialChildGroupCount)}},"Remove")))})),fieldGroupIds.length<limitChildGroupCount&&react.createElement(SecondaryButtonContainer,null,react.createElement(SecondaryButton.A,{"data-test":"add-another",onClick:function addAnotherHandler(event){event.preventDefault(),add(initialChildGroupCount)},"aria-label":"Add a ".concat((0,number_utils.hx)(fieldGroupIds.length||0)," ").concat(itemName),margin:buttonMargin},buttonText||"Add another ".concat(itemName)))))};FieldAddAnother.propTypes={dataTestPrefix:prop_types_default().string,buttonText:prop_types_default().string,itemName:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,children:prop_types_default().func,initialChildGroupCount:prop_types_default().number,limitChildGroupCount:prop_types_default().number};const FieldAddAnother_FieldAddAnother=(0,multiinstance.Ay)({name:"FieldAddAnother",actionPattern:"FIELD_ADD_ANOTHER__",dispatchToProps:function dispatchToProps(dispatch){return{add:function add(initialChildGroupCount){return dispatch({type:actions.yMX,initialChildGroupCount})},remove:function remove(fieldGroupId,initialChildGroupCount){return dispatch({type:actions.xOm,fieldGroupId,initialChildGroupCount})}}},component:FieldAddAnother,reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,initialChildGroupCount=_ref.initialChildGroupCount,fieldGroupId=_ref.fieldGroupId,_state$items=state.items,items=void 0===_state$items?lodash_default()(initialChildGroupCount).range().keyBy().value():_state$items,_state$currentId=state.currentId,currentId=void 0===_state$currentId?initialChildGroupCount:_state$currentId;switch(type){case actions.yMX:return{currentId:currentId+1,items:_objectSpread(_objectSpread({},items),{},_defineProperty({},currentId,currentId))};case actions.xOm:var itemsCopy=_objectSpread({},items);return delete itemsCopy[fieldGroupId],_objectSpread(_objectSpread({},state),{},{items:itemsCopy});default:return state}}})},"./src/client/components/Form/elements/FieldAddAnother/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_FieldAddAnother__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldAddAnother=function FieldAddAnother(_ref){var id=_ref.id,name=_ref.name,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_FieldAddAnother__WEBPACK_IMPORTED_MODULE_6__.A,_extends({id:id||"".concat(name,"-field-add-another"),name},props))};const __WEBPACK_DEFAULT_EXPORT__=FieldAddAnother;FieldAddAnother.__docgenInfo={description:"",methods:[],displayName:"FieldAddAnother"}},"./src/client/components/Form/elements/FieldCheckboxes/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_34__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","validate","required","label","legend","bigLegend","boldLabel","hint","options","initialValue","exclusive"],_excluded2=["value","label","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var StyledOr=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)("div")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2,paddingRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_2}),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)("span")({fontWeight:"bold"}),FieldCheckboxes=function FieldCheckboxes(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,bigLegend=_ref.bigLegend,_ref$boldLabel=_ref.boldLabel,boldLabel=void 0!==_ref$boldLabel&&_ref$boldLabel,hint=_ref.hint,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?[]:_ref$initialValue,_ref$exclusive=_ref.exclusive,exclusive=void 0!==_ref$exclusive&&_ref$exclusive,props=_objectWithoutProperties(_ref,_excluded),_useField=(0,_hooks_useField__WEBPACK_IMPORTED_MODULE_30__.A)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_32__.xW)().setFieldValue,onChange=function onChange(event){var eventTargetName=isNaN(event.target.name)?event.target.name:parseInt(event.target.name,10);event.target.checked?setFieldValue(name,[].concat(_toConsumableArray(value),[eventTargetName])):setFieldValue(name,value.filter((function(v){return v!==eventTargetName})))},onChangeExclusive=function onChangeExclusive(event){if(event.target.checked){var lastOption=options.slice(options.length-1)[0];lastOption.value===event.target.name?setFieldValue(name,[event.target.name]):setFieldValue(name,[].concat(_toConsumableArray(value.filter((function(v){return v!==lastOption.value}))),[event.target.name]))}else setFieldValue(name,value.filter((function(v){return v!==event.target.name})))};return react__WEBPACK_IMPORTED_MODULE_26__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__.A,_objectSpread(_objectSpread({},props),{},{name,label,legend,bigLegend,hint,error}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__.A,{meta:{error,touched}},options.map((function(_ref2,index){var optionValue=_ref2.value,optionLabel=_ref2.label,children=_ref2.children,optionLink=_ref2.link,optionProps=_objectWithoutProperties(_ref2,_excluded2);return react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionValue},exclusive&&index===options.length-1&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(StyledOr,{"data-test":"exclusive-or"},"or"),react__WEBPACK_IMPORTED_MODULE_26__.createElement(_Checkbox__WEBPACK_IMPORTED_MODULE_29__.A,_extends({name:optionValue,checked:value.includes(optionValue),onChange:exclusive?onChangeExclusive:onChange,onBlur,"aria-label":optionLabel},optionProps),boldLabel?react__WEBPACK_IMPORTED_MODULE_26__.createElement(StyledLabel,null,optionLabel):react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionLabel},optionLabel,optionLink&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(react__WEBPACK_IMPORTED_MODULE_26__.Fragment,{key:optionLink},optionLink))),value.includes(optionValue)&&children?children:null)}))))};FieldCheckboxes.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_34___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_34___default().func,prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node,exclusive:prop_types__WEBPACK_IMPORTED_MODULE_34___default().bool,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_34___default().array,options:prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_34___default().node}))};const __WEBPACK_DEFAULT_EXPORT__=FieldCheckboxes;FieldCheckboxes.__docgenInfo={description:"Checkboxes for use in forms and filters.",methods:[],displayName:"FieldCheckboxes",props:{boldLabel:{defaultValue:{value:"false",computed:!1},required:!1},options:{defaultValue:{value:"[]",computed:!1},description:"Defines the checkbox labels and values",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0},children:{name:"node",required:!1}}}},required:!1},initialValue:{defaultValue:{value:"[]",computed:!1},description:"Sets initial value of the input",type:{name:"array"},required:!1},exclusive:{defaultValue:{value:"false",computed:!1},description:"Splits the last checkbox from the others where the choice is exclusive between them",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets whether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1}}}},"./src/client/components/Form/elements/FieldChoice/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),_govuk_react_checkbox__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/checkbox/dist/govuk-react-checkbox.esm.js"),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","type","options","validate","required","label","legend","hint"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}var isRadio=function isRadio(type){return"radio"===type},FieldChoice=function FieldChoice(_ref){var name=_ref.name,type=_ref.type,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,hint=_ref.hint,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_30__.Mt)({name,validate,required}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_30__.xW)().setFieldValue,isChecked=function isChecked(option){return(0,lodash__WEBPACK_IMPORTED_MODULE_29__.isArray)(value)?value.some((function(v){return v.value===option.value})):(0,lodash__WEBPACK_IMPORTED_MODULE_29__.isEqual)(value,option)},Component=isRadio(type)?_govuk_react_radio__WEBPACK_IMPORTED_MODULE_28__.A:_govuk_react_checkbox__WEBPACK_IMPORTED_MODULE_27__.A;return react__WEBPACK_IMPORTED_MODULE_25__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__.A,_objectSpread(_objectSpread({},props),{},{name,label,legend,hint,error}),react__WEBPACK_IMPORTED_MODULE_25__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__.A,{meta:{error,touched}},options.map((function(option){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(react__WEBPACK_IMPORTED_MODULE_25__.Fragment,{key:option.value},react__WEBPACK_IMPORTED_MODULE_25__.createElement(Component,{key:option.id,value:option.value,checked:isChecked(option),onChange:function onChange(event){return function onChange(event,option){return setFieldValue(name,isRadio(type)?option:event.target.checked?[].concat(_toConsumableArray(value),[option]):value.filter((function(v){return v.value!==event.target.value})))}(event,option)},onBlur,name:option.value,"aria-label":option.label},option.label))}))))};FieldChoice.Checkbox=function(props){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(FieldChoice,_extends({},props,{type:"checkbox"}))},FieldChoice.Radio=function(props){return react__WEBPACK_IMPORTED_MODULE_25__.createElement(FieldChoice,_extends({},props,{type:"radio"}))},FieldChoice.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string.isRequired,type:prop_types__WEBPACK_IMPORTED_MODULE_32___default().oneOf(["radio","checkbox"]).isRequired,options:prop_types__WEBPACK_IMPORTED_MODULE_32___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_32___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string})).isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_32___default().func,required:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string,legend:prop_types__WEBPACK_IMPORTED_MODULE_32___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_32___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldChoice;FieldChoice.__docgenInfo={description:"",methods:[{name:"Checkbox",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null},{name:"Radio",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null}],displayName:"FieldChoice",props:{options:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!1},value:{name:"string",required:!1}}}},required:!1},name:{description:"",type:{name:"string"},required:!0},type:{description:"",type:{name:"enum",value:[{value:"'radio'",computed:!1},{value:"'checkbox'",computed:!1}]},required:!0},validate:{description:"",type:{name:"func"},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldCompaniesTypeahead/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.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),lodash__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/components/Task/utils.js"),_Typeahead_Highlighter__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),_Tag__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["name","label","required","isMulti","onlyShowActiveCompanies","placeholder","loadOptions"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var getOptionLabel=function getOptionLabel(option){return"".concat(option.label).concat(option.isInList?" (in your company lists)":"")},StyledRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_10__.TW)((function(){return{paddingBottom:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__.Es.SCALE_2)}})),CompanyResultWithTags=function CompanyResultWithTags(_ref){var option=_ref.option,searchString=_ref.searchString;return react__WEBPACK_IMPORTED_MODULE_7__.createElement(react__WEBPACK_IMPORTED_MODULE_7__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledRow,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.bn,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(_Typeahead_Highlighter__WEBPACK_IMPORTED_MODULE_13__.A,{optionLabel:getOptionLabel(option),searchStr:searchString}))),react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.TW,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_10__.bn,null,react__WEBPACK_IMPORTED_MODULE_7__.createElement(_Tag__WEBPACK_IMPORTED_MODULE_14__.A,{colour:"blue","data-test":"location-tag"},option.ukRegion?"".concat((0,lodash__WEBPACK_IMPORTED_MODULE_8__.get)(option,"ukRegion.name"),", UK"):(0,lodash__WEBPACK_IMPORTED_MODULE_8__.get)(option,"address.country.name","unknown")))))},FieldCompaniesTypeahead=function FieldCompaniesTypeahead(_ref2){var name=_ref2.name,label=_ref2.label,required=_ref2.required,isMulti=_ref2.isMulti,_ref2$onlyShowActiveC=_ref2.onlyShowActiveCompanies,onlyShowActiveCompanies=void 0===_ref2$onlyShowActiveC||_ref2$onlyShowActiveC,_ref2$placeholder=_ref2.placeholder,placeholder=void 0===_ref2$placeholder?"Type to search for companies":_ref2$placeholder,loadOptions=_ref2.loadOptions,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_11__.A,_extends({name,label,placeholder,noOptionsMessage:"Type to search for companies",required,loadOptions:null!=loadOptions?loadOptions:(0,lodash__WEBPACK_IMPORTED_MODULE_8__.throttle)((function(searchString){return _Task_utils__WEBPACK_IMPORTED_MODULE_12__.HD.get("/v4/company",{params:{autocomplete:searchString,is_active:onlyShowActiveCompanies}}).then((function(_ref3){return _ref3.data.results.map((function(_ref4){var id=_ref4.id,name=_ref4.name;return{label:name,chipLabel:name,value:id,isInList:_ref4.is_in_adviser_list,ukRegion:_ref4.uk_region,address:_ref4.address}}))}))}),500),isMulti,OptionContent:CompanyResultWithTags},props))};FieldCompaniesTypeahead.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string.isRequired,required:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,isMulti:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,placeholder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,loadOptions:prop_types__WEBPACK_IMPORTED_MODULE_16___default().func};const __WEBPACK_DEFAULT_EXPORT__=FieldCompaniesTypeahead;FieldCompaniesTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldCompaniesTypeahead",props:{onlyShowActiveCompanies:{defaultValue:{value:"true",computed:!1},required:!1},placeholder:{defaultValue:{value:"'Type to search for companies'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1},loadOptions:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Form/elements/FieldCurrency/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_28__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/validators.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["name","validate","required","label","text","legend","hint","initialValue","reduced","boldLabel","currencySymbol"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2,";\n  ")})),StyledText=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("span")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2}),StyledCurrencyPrefix=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  border: "," solid ",";\n  border-right: 0px;\n  display: inline-block;\n  padding: ",";\n  min-width: 47px;\n  box-sizing: border-box;\n  text-align: center;\n  flex: 0 0 auto;\n  cursor: default;\n  font-size: ",";\n  background-color: ",";\n  line-height: 1.8;\n\n  @media (max-width: ",") {\n    line-height: 2.1;\n    font-size: ",";\n  }\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Km,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.gP,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_19,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Br,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.LO.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_16,(function(props){return props.error&&"\n    border: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.su,";\n    border-right: 0px;\n    line-height: 1.6;\n    ")})),StyledCurrencyWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)("div")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: flex;\n  align-items: stretch;\n  height: 47px;\n  > * {\n    height: 100%;\n  }\n"]))),FieldCurrency=function FieldCurrency(_ref){var name=_ref.name,_ref$validate=_ref.validate,validate=void 0===_ref$validate?function(value){return(0,_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__.ai)(value,"Value must be a number")}:_ref$validate,required=_ref.required,label=_ref.label,text=_ref.text,legend=_ref.legend,hint=_ref.hint,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,reduced=_ref.reduced,_ref$boldLabel=_ref.boldLabel,boldLabel=void 0===_ref$boldLabel||_ref$boldLabel,_ref$currencySymbol=_ref.currencySymbol,currencySymbol=void 0===_ref$currencySymbol?"£":_ref$currencySymbol,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_23__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(""),2),displayValue=_useState2[0],setDisplayValue=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(""),2),rawValue=_useState4[0],setRawValue=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(!1),2),editing=_useState6[0],setEditing=_useState6[1];(0,react__WEBPACK_IMPORTED_MODULE_17__.useEffect)((function(){!editing&&value&&(setRawValue(value),setDisplayValue((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__._)(value)))}),[value]);return react__WEBPACK_IMPORTED_MODULE_17__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_24__.A,{name,label,legend,hint,error,reduced,boldLabel},react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledInputWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_17__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_20__.A,null,error),react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledCurrencyWrapper,null,react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledCurrencyPrefix,{error:touched&&Boolean(error),"aria-hidden":"true"},currencySymbol),react__WEBPACK_IMPORTED_MODULE_17__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_19__.A,_extends({key:name,error:touched&&Boolean(error),id:name,type:"text",name,value:displayValue,"data-raw-value":rawValue,onChange:function onChangeWrapper(e){isNaN((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__.vE)(e.target.value))?setRawValue(e.target.value):setRawValue((0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__.vE)(e.target.value)),setDisplayValue(e.target.value),onChange(e)},onBlur:function onBlurWrapper(e){setDisplayValue(isNaN(rawValue)?rawValue:(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__._)(rawValue)),setEditing(!1),onBlur(e)},onFocus:function onFocus(){setDisplayValue(rawValue),setEditing(!0)},"data-test":(0,lodash__WEBPACK_IMPORTED_MODULE_18__.kebabCase)("".concat(name,"-'input'")),inputMode:"numeric"},rest))),text&&react__WEBPACK_IMPORTED_MODULE_17__.createElement(StyledText,null,text)))};FieldCurrency.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_28___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_28___default().func,prop_types__WEBPACK_IMPORTED_MODULE_28___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_28___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_28___default().node,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_28___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_28___default().string,prop_types__WEBPACK_IMPORTED_MODULE_28___default().number]),reduced:prop_types__WEBPACK_IMPORTED_MODULE_28___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_28___default().bool,currencySymbol:prop_types__WEBPACK_IMPORTED_MODULE_28___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldCurrency;FieldCurrency.__docgenInfo={description:"A basic currency field for numbers.",methods:[],displayName:"FieldCurrency",props:{validate:{defaultValue:{value:"(value) => number(value, 'Value must be a number')",computed:!1},description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},initialValue:{defaultValue:{value:"''",computed:!1},description:"Sets initial value of the input",type:{name:"union",value:[{name:"string"},{name:"number"}]},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},currencySymbol:{defaultValue:{value:"'£'",computed:!1},description:"Sets the value for the currency prefix",type:{name:"string"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},required:{description:"Text 'required' sets whether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},reduced:{description:"Toggles whether the element is a filter or not",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldDate/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_36__),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/utils/colours.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_hooks__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","label","legend","hint","validate","initialValue","labels","required","invalid","format","reduced"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _require=__webpack_require__("./src/client/utils/date.js"),isNormalisedDateValid=_require.isNormalisedDateValid,isShortDateValid=_require.isShortDateValid,StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_31__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__.Es.SCALE_2,";\n  ")})),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay)(_govuk_react_label__WEBPACK_IMPORTED_MODULE_27__.A)({marginRight:"20px",marginBottom:0},(function(_ref){return{width:_ref.year?"70px":"50px"}})),StyledList=styled_components__WEBPACK_IMPORTED_MODULE_35__.Ay.div(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  display: flex;\n  "," {\n    height: 47px;\n  }\n"])),_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A),getValidator=function getValidator(required,invalid,format){return function(_ref2){var day=_ref2.day,month=_ref2.month,year=_ref2.year,isLong="LONG"===format,isValid=isLong?isNormalisedDateValid(year,month,day):isShortDateValid(year,month),isDateEmpty=isLong?!day&&!month&&!year:!month&&!year;return isDateEmpty&&!required?null:required&&isDateEmpty?required:isValid||isDateEmpty?4!=year.toString().length?"Enter a year as 4 digits":void 0:invalid||"Enter a valid date"}},getDefaultInitialValue=function getDefaultInitialValue(format){return"LONG"===format?{day:"",month:"",year:""}:{month:"",year:""}},FieldDate=function FieldDate(_ref3){var name=_ref3.name,label=_ref3.label,legend=_ref3.legend,hint=_ref3.hint,validate=_ref3.validate,initialValue=_ref3.initialValue,_ref3$labels=_ref3.labels,labels=void 0===_ref3$labels?{day:"Day",month:"Month",year:"Year"}:_ref3$labels,required=_ref3.required,invalid=_ref3.invalid,_ref3$format=_ref3.format,format=void 0===_ref3$format?"LONG":_ref3$format,reduced=_ref3.reduced,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,_excluded),_useField=(0,_hooks_useField__WEBPACK_IMPORTED_MODULE_33__.A)({name,initialValue:initialValue||getDefaultInitialValue(format),validate:[getValidator(required,invalid,format)].concat(_toConsumableArray((0,lodash__WEBPACK_IMPORTED_MODULE_25__.castArray)(validate)))}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_34__.xW)().setFieldValue,dataTest=props["data-test"]?props["data-test"]:(0,lodash__WEBPACK_IMPORTED_MODULE_25__.snakeCase)(name),_onChange=function onChange(valueKey,e){var date=e.target.value.split("-");setFieldValue(name,_objectSpread(_objectSpread({},value),{},reduced?{day:date[2],month:date[1],year:date[0]}:_defineProperty({},valueKey,e.target.value)))};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_32__.A,{name,label,legend,hint,error,reduced},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledInputWrapper,{error},error&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_26__.A,{"data-test":"field-".concat(name,"-error")},error),reduced?react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:name,name,error:touched&&error,type:"date",value:"".concat(value.year,"-").concat(value.month,"-").concat(value.day),onChange:function onChange(e){return _onChange(name,e)},onBlur}):react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledList,null,"LONG"===format&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.day),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".day"),name:"".concat(name,".day"),"data-test":"".concat(dataTest,"-day"),error:touched&&error,type:"text",value:value.day,onChange:function onChange(e){return _onChange("day",e)},onBlur})),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.month),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".month"),name:"".concat(name,".month"),"data-test":"".concat(dataTest,"-month"),error:touched&&error,type:"text",value:value.month,onChange:function onChange(e){return _onChange("month",e)},onBlur})),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledLabel,{year:!0},react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__.A,null,labels.year),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__.A,{id:"".concat(name,".year"),name:"".concat(name,".year"),"data-test":"".concat(dataTest,"-year"),error:touched&&error,type:"text",value:value.year,onChange:function onChange(e){return _onChange("year",e)},onBlur})))))};FieldDate.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_36___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_36___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,required:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,invalid:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,format:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,validate:prop_types__WEBPACK_IMPORTED_MODULE_36___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_36___default().func,prop_types__WEBPACK_IMPORTED_MODULE_36___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_36___default().func)]),initialValue:prop_types__WEBPACK_IMPORTED_MODULE_36___default().shape({day:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,month:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,year:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string}),labels:prop_types__WEBPACK_IMPORTED_MODULE_36___default().shape({day:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,month:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string,year:prop_types__WEBPACK_IMPORTED_MODULE_36___default().string}),reduced:prop_types__WEBPACK_IMPORTED_MODULE_36___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldDate;FieldDate.__docgenInfo={description:"Date field for use in forms and filters.",methods:[],displayName:"FieldDate",props:{labels:{defaultValue:{value:"{\n  day: 'Day',\n  month: 'Month',\n  year: 'Year',\n}",computed:!1},description:"",type:{name:"shape",value:{day:{name:"string",required:!1},month:{name:"string",required:!1},year:{name:"string",required:!1}}},required:!1},format:{defaultValue:{value:"'LONG'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"string"},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},invalid:{description:"Text 'invalid' sets a custom error message for invalid dates",type:{name:"string"},required:!1},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"shape",value:{day:{name:"string",required:!1},month:{name:"string",required:!1},year:{name:"string",required:!1}}},required:!1},reduced:{description:"Toggles wether the element is a filter or not",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldHelp/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,_templateObject2,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),_client_components___WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding: 0;\n"]))),StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin: -"," 0 "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_4,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_5),FieldHelp=function FieldHelp(_ref){var helpSummary=_ref.helpSummary,helpText=_ref.helpText,footerUrl=_ref.footerUrl,footerUrlDescription=_ref.footerUrlDescription,open=_ref.open;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(ItemWrapper,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledDetails,{summary:helpSummary,open},helpText,footerUrl&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_client_components___WEBPACK_IMPORTED_MODULE_5__.bv,{href:footerUrl},footerUrlDescription))))};FieldHelp.propTypes={helpSummary:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,helpText:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,footerUrl:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,footerDescription:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,open:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldHelp;FieldHelp.__docgenInfo={description:"",methods:[],displayName:"FieldHelp",props:{helpSummary:{description:"",type:{name:"string"},required:!0},helpText:{description:"",type:{name:"node"},required:!0},footerUrl:{description:"",type:{name:"string"},required:!1},footerDescription:{description:"",type:{name:"string"},required:!1},open:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__),styled_components__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["name","type","validate","required","label","text","legend","hint","initialValue","reduced","dataTest"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledInputWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  "," {\n    height: 47px;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_13__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_2,";\n  ")}),_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__.A),StyledText=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.Ay)("span")({paddingLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__.Es.SCALE_2}),setDataTest=function setDataTest(dataTest,name){var element=dataTest||name;return(0,lodash__WEBPACK_IMPORTED_MODULE_9__.kebabCase)("".concat(element,"-'input'"))},FieldInput=function FieldInput(_ref){var name=_ref.name,type=_ref.type,validate=_ref.validate,required=_ref.required,label=_ref.label,text=_ref.text,legend=_ref.legend,hint=_ref.hint,initialValue=_ref.initialValue,reduced=_ref.reduced,dataTest=_ref.dataTest,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_14__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur;return react__WEBPACK_IMPORTED_MODULE_8__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__.A,{name,label,legend,hint,error,reduced},react__WEBPACK_IMPORTED_MODULE_8__.createElement(StyledInputWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_8__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_11__.A,null,error),react__WEBPACK_IMPORTED_MODULE_8__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__.A,_extends({key:name,error:touched&&Boolean(error),id:name,type,name,value,onChange,onBlur,onWheel:function onWheel(event){"number"===type&&event.target.blur()},"data-test":setDataTest(dataTest,name)},rest)),text&&react__WEBPACK_IMPORTED_MODULE_8__.createElement(StyledText,null,text)))};FieldInput.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string.isRequired,type:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_17___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default().func,prop_types__WEBPACK_IMPORTED_MODULE_17___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_17___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_17___default().node,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_17___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default().string,prop_types__WEBPACK_IMPORTED_MODULE_17___default().number]),reduced:prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool,dataTest:prop_types__WEBPACK_IMPORTED_MODULE_17___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldInput;FieldInput.__docgenInfo={description:"A basic input field for numbers and text.",methods:[],displayName:"FieldInput",props:{name:{description:"Text for name attribute value",type:{name:"string"},required:!0},type:{description:"Text for type attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"union",value:[{name:"string"},{name:"number"}]},required:!1},reduced:{description:"Toggles wether the element is a filter or not",type:{name:"bool"},required:!1},dataTest:{description:"Sets the data-test ID if the name isn't suitable",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/lodash/lodash.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Task/utils.js"),_excluded=["name","label","required","placeholder","company"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldInvestmentProjectTypeahead=function FieldInvestmentProjectTypeahead(_ref){var name=_ref.name,label=_ref.label,required=_ref.required,_ref$placeholder=_ref.placeholder,placeholder=void 0===_ref$placeholder?"Type to search for investment projects":_ref$placeholder,_ref$company=_ref.company,company=void 0===_ref$company?null:_ref$company,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_6__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_8__.A,_extends({name,label,placeholder,noOptionsMessage:"",required,loadOptions:(0,lodash__WEBPACK_IMPORTED_MODULE_7__.throttle)((function(searchString){return _Task_utils__WEBPACK_IMPORTED_MODULE_9__.HD.get("/v3/investment",{params:{autocomplete:searchString,investor_company_id:company}}).then((function(_ref2){return _ref2.data.results.map((function(_ref3){var id=_ref3.id,name=_ref3.name;return{label:name,chipLabel:name,value:id}}))}))}),500)},props))};FieldInvestmentProjectTypeahead.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,required:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,isMulti:prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool,placeholder:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string};const __WEBPACK_DEFAULT_EXPORT__=FieldInvestmentProjectTypeahead;FieldInvestmentProjectTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldInvestmentProjectTypeahead",props:{placeholder:{defaultValue:{value:"'Type to search for investment projects'",computed:!1},description:"",type:{name:"string"},required:!1},company:{defaultValue:{value:"null",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldRadios/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","validate","required","label","legend","bigLegend","hint","inline","initialValue","options"],_excluded2=["label","value","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<s.length;r++)o=s[r],t.includes(o)||{}.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 StyledChildField=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-left: 55px;\n  clear: both;\n"]))),StyledRadio=(0,styled_components__WEBPACK_IMPORTED_MODULE_30__.Ay)(_govuk_react_radio__WEBPACK_IMPORTED_MODULE_25__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){return props.inline&&"\n      float: left;\n      clear: none;\n    "})),FieldRadios=function FieldRadios(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,bigLegend=_ref.bigLegend,hint=_ref.hint,inline=_ref.inline,initialValue=_ref.initialValue,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,props=_objectWithoutProperties(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_28__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onChange=_useField.onChange,onBlur=_useField.onBlur,getDataTest=function getDataTest(prefix,name,optionLabel){var dataTest=(0,lodash__WEBPACK_IMPORTED_MODULE_27__.kebabCase)("".concat(name,"-").concat(optionLabel));return prefix?"".concat(prefix,"-").concat(dataTest):dataTest};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_29__.A,_extends({},_objectSpread(_objectSpread({},props),{},{name,label,legend,hint,error,bigLegend}),{"data-component":"FieldRadios"}),react__WEBPACK_IMPORTED_MODULE_24__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__.A,{meta:{error,touched}},options.map((function(_ref2){var optionLabel=_ref2.label,optionValue=_ref2.value,optionChildren=_ref2.children,optionLink=_ref2.link,optionProps=_objectWithoutProperties(_ref2,_excluded2);return react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,{key:optionValue},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledRadio,_extends({inline,value:optionValue,checked:value===optionValue,onChange,onBlur,name,"data-test":getDataTest(props.dataTestPrefix,name,optionLabel),"aria-label":optionLabel},optionProps),optionLabel,optionLink&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,null,optionLink)),value===optionValue&&optionChildren&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledChildField,null,optionChildren))}))))};FieldRadios.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_31___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_31___default().func,prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,inline:prop_types__WEBPACK_IMPORTED_MODULE_31___default().bool,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,hint:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_31___default().node}))};const __WEBPACK_DEFAULT_EXPORT__=FieldRadios;FieldRadios.__docgenInfo={description:"",methods:[],displayName:"FieldRadios",props:{options:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0},hint:{name:"node",required:!1},children:{name:"node",required:!1}}}},required:!1},name:{description:"",type:{name:"string"},required:!0},validate:{description:"",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},inline:{description:"",type:{name:"bool"},required:!1},initialValue:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/FieldSelect/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_29__),_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_hooks__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","label","legend","hint","validate","required","initialValue","options","emptyOption","fullWidth","boldLabel"];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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledSelect=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__.Ay)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  position: relative;\n  &::after {\n    border-bottom: 2px solid ",";\n    border-right: 2px solid ",";\n    content: '';\n    display: block;\n    height: 12px;\n    pointer-events: none;\n    position: absolute;\n    right: 16px;\n    ","\n    ","\n\n    transform: translate(0, -65%) rotate(45deg);\n    width: 12px;\n    @media (max-width: ",") {\n      right: 4%;\n    }\n  }\n  "," {\n    height: 47px;\n    padding: 0px 32px 0px 12px;\n    ","\n    appearance: none;\n    -webkit-appearance: none;\n    -moz-appearance: none;\n  }\n"])),_utils_colours__WEBPACK_IMPORTED_MODULE_27__.Uv,_utils_colours__WEBPACK_IMPORTED_MODULE_27__.Uv,(function(_ref){return _ref.fullWidth?"right: 2%;":"right: 52%;"}),(function(_ref2){return _ref2.meta.error?"top: 72%;":"top: 50%;"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.LO.TABLET,_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__.pp,(function(_ref3){return _ref3.fullWidth&&"width: 100%;"})),FieldSelect=function FieldSelect(_ref4){var _options$find,name=_ref4.name,label=_ref4.label,legend=_ref4.legend,hint=_ref4.hint,validate=_ref4.validate,required=_ref4.required,initialValue=_ref4.initialValue,_ref4$options=_ref4.options,options=void 0===_ref4$options?[]:_ref4$options,_ref4$emptyOption=_ref4.emptyOption,emptyOption=void 0===_ref4$emptyOption?"Please select":_ref4$emptyOption,fullWidth=_ref4.fullWidth,_ref4$boldLabel=_ref4.boldLabel,boldLabel=void 0===_ref4$boldLabel||_ref4$boldLabel,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_25__.Mt)({name,validate,required,initialValue}),error=_useField.error,touched=_useField.touched,value=_useField.value,onChange=_useField.onChange,onBlur=_useField.onBlur;return react__WEBPACK_IMPORTED_MODULE_22__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_26__.A,{name,label,legend,hint,error,boldLabel},react__WEBPACK_IMPORTED_MODULE_22__.createElement(StyledSelect,{fullWidth,name,onChange,onBlur,meta:{error,touched},key:Array.isArray(options)&&options.length>0?value:void 0,input:_objectSpread({id:name,defaultValue:value},rest)},emptyOption&&react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:"",value:""},emptyOption),options.map((function(_ref5){var optionLabel=_ref5.label,optionValue=_ref5.value;return react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:optionValue,value:optionValue,selected:value===optionValue},optionLabel)}))),null===(_options$find=options.find((function(o){return o.value===value})))||void 0===_options$find?void 0:_options$find.children)};FieldSelect.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,validate:prop_types__WEBPACK_IMPORTED_MODULE_29___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_29___default().func,prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired})),emptyOption:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,fullWidth:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldSelect;FieldSelect.__docgenInfo={description:"A Select dropdown field for use in forms.",methods:[],displayName:"FieldSelect",props:{options:{defaultValue:{value:"[]",computed:!1},description:"Items for the list",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0}}}},required:!1},emptyOption:{defaultValue:{value:"'Please select'",computed:!1},description:"Text to display when no items are selected",type:{name:"string"},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"string"},required:!1},fullWidth:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldTypeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_Typeahead__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Typeahead/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","validate","required","label","legend","hint","initialValue","options","autoScroll","className","onChange"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_29__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  textarea {\n    width: 100%;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__.Es.SCALE_2,";\n  ")})),FieldTypeahead=function FieldTypeahead(_ref){var name=_ref.name,validate=_ref.validate,required=_ref.required,label=_ref.label,legend=_ref.legend,hint=_ref.hint,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?null:_ref$initialValue,options=_ref.options,autoScroll=_ref.autoScroll,className=_ref.className,onChange=_ref.onChange,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useField=(0,_hooks__WEBPACK_IMPORTED_MODULE_26__.Mt)({name,validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,onBlur=_useField.onBlur,setFieldValue=(0,_hooks__WEBPACK_IMPORTED_MODULE_26__.xW)().setFieldValue;return react__WEBPACK_IMPORTED_MODULE_22__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_27__.A,{name,label,legend,hint,error,autoScroll,className},react__WEBPACK_IMPORTED_MODULE_22__.createElement(StyledWrapper,{error},touched&&error&&react__WEBPACK_IMPORTED_MODULE_22__.createElement(_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_23__.A,null,error),react__WEBPACK_IMPORTED_MODULE_22__.createElement(_Typeahead__WEBPACK_IMPORTED_MODULE_28__.A,_extends({name,"aria-label":label||legend,onBlur,onChange:function handleChange(newValue){setFieldValue(name,props.isMulti?newValue:newValue[0]),onChange&&onChange(newValue)},error,value,initialOptions:options},props))))};FieldTypeahead.propTypes=_objectSpread(_objectSpread({},_Typeahead__WEBPACK_IMPORTED_MODULE_28__.A.propTypes),{},{name:prop_types__WEBPACK_IMPORTED_MODULE_30___default().string.isRequired,validate:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().func,prop_types__WEBPACK_IMPORTED_MODULE_30___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_30___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_30___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_30___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_30___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().string,prop_types__WEBPACK_IMPORTED_MODULE_30___default().object]),initialValue:prop_types__WEBPACK_IMPORTED_MODULE_30___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_30___default().object,prop_types__WEBPACK_IMPORTED_MODULE_30___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_30___default().object)]),autoScroll:prop_types__WEBPACK_IMPORTED_MODULE_30___default().bool,onChange:prop_types__WEBPACK_IMPORTED_MODULE_30___default().func});const __WEBPACK_DEFAULT_EXPORT__=FieldTypeahead;FieldTypeahead.__docgenInfo={description:"A Typeahead for use in forms.\n\nThis is a wrapper around the `react-select` by Jed Watson, for indepth documention refer to [Github](https://github.com/JedWatson/react-select) or the [api docs](https://react-select.com/home)",methods:[],displayName:"FieldTypeahead",props:{initialValue:{defaultValue:{value:"null",computed:!1},description:"Sets initial value of the input",type:{name:"union",value:[{name:"object"},{name:"arrayOf",value:{name:"object"}}]},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},autoScroll:{description:"Whether the window should auto scroll into view this component",type:{name:"bool"},required:!1},onChange:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Form/elements/FieldWrapper/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),_govuk_react_form_group__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/form-group/dist/govuk-react-form-group.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_hint_text__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["name","label","legend","bigLegend","hint","error","showBorder","children","reduced","groupId","boldLabel","autoScroll"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFormGroup=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_form_group__WEBPACK_IMPORTED_MODULE_10__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  ","\n"])),(function(props){var isReduced=props.reduced,hasHint=!!props.hint;return"\n    ".concat(isReduced&&"\n    background-color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.WS,";\n    label {\n      font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n        + span {\n          font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n          + div span {\n            font-size: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__._m.S,"px;\n          }\n        }\n      }\n      input {\n        border-width: 1px;\n      }\n    "),"\n    padding: 8px;\n    ").concat(hasHint?"padding-bottom: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,";"):"padding-bottom: 8px;",";\n    ")})),StyledFieldset=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("fieldset")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  min-width: 0;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  ","\n"])),(function(props){return props.showBorder&&"\n    border: 1px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.Pe,";\n    padding: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n  ")})),StyledFieldsetNoStyling=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("fieldset")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  min-width: 0;\n  margin: 0;\n  padding: 0;\n  border: 0;\n"]))),StyledLegend=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("legend")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  box-sizing: border-box;\n  display: table;\n  white-space: normal;\n  font-size: 19px;\n  padding: 0;\n  margin: 0;\n  padding-bottom: ",";\n  * {\n    margin-bottom: "," !important;\n  }\n  ","\n  ","\n\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n    padding-left: 8px;\n  ")}),(function(props){return props.showBorder&&"\n    padding: 8px;\n    margin-left: -8px;\n  "}),(function(props){return props.bigLegend&&"\n    margin-bottom: 20px;\n    padding-bottom: 0px;\n    font-size: 24px;\n  "})),StyledLegendNoStyle=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("legend")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  padding: 0;\n  margin: 0;\n"]))),StyledLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_label__WEBPACK_IMPORTED_MODULE_11__.A)(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,(function(props){return props.boldLabel&&" font-weight: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.sO.bold,";")})),StyledHint=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)(_govuk_react_hint_text__WEBPACK_IMPORTED_MODULE_12__.A)(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  padding: 0;\n  margin: 0;\n  padding-bottom: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_2,(function(props){return props.error&&"\n    border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__.su,";\n    margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_3,";\n    padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_2,";\n    padding-bottom: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__.Es.SCALE_1,";\n  ")})),FieldInner=function FieldInner(_ref){var legend=_ref.legend,error=_ref.error,showBorder=_ref.showBorder,children=_ref.children,bigLegend=_ref.bigLegend,groupId=_ref.groupId;return legend?react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFieldset,{showBorder},react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLegend,{className:"govuk-heading-m",error,showBorder,bigLegend,id:groupId},legend),children):children},FieldWrapper=function FieldWrapper(_ref2){var name=_ref2.name,label=_ref2.label,legend=_ref2.legend,bigLegend=_ref2.bigLegend,hint=_ref2.hint,error=_ref2.error,_ref2$showBorder=_ref2.showBorder,showBorder=void 0!==_ref2$showBorder&&_ref2$showBorder,children=_ref2.children,reduced=_ref2.reduced,groupId=_ref2.groupId,_ref2$boldLabel=_ref2.boldLabel,boldLabel=void 0===_ref2$boldLabel||_ref2$boldLabel,_ref2$autoScroll=_ref2.autoScroll,autoScroll=void 0!==_ref2$autoScroll&&_ref2$autoScroll,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded),styledWrapperRef=react__WEBPACK_IMPORTED_MODULE_9__.useRef(null);return(0,react__WEBPACK_IMPORTED_MODULE_9__.useEffect)((function(){autoScroll&&styledWrapperRef.current.scrollIntoView()}),[autoScroll]),react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFormGroup,_extends({id:"field-".concat(name),"data-test":"field-".concat(name),reduced,hint,ref:styledWrapperRef},rest),legend?react__WEBPACK_IMPORTED_MODULE_9__.createElement(FieldInner,{legend,error,showBorder,bigLegend,groupId},label&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLabel,{boldLabel,error,htmlFor:name},label),hint&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledHint,{"data-test":"hint-text",error},hint),children):react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledFieldsetNoStyling,null,react__WEBPACK_IMPORTED_MODULE_9__.createElement(FieldInner,{legend,error,showBorder,bigLegend,groupId},label&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLegendNoStyle,null,react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledLabel,{boldLabel,error,htmlFor:name},label)),hint&&react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledHint,{"data-test":"hint-text",error},hint),children)))};FieldInner.propTypes={legend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,error:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,showBorder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,bigLegend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node},FieldWrapper.propTypes={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,bigLegend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,hint:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,error:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,showBorder:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool,autoScroll:prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldWrapper;FieldWrapper.__docgenInfo={description:"A simple wrapper for use in the field components, which applies supporting elements and stylings. The FieldWrapper component caters for the child element within, by providing it with the wrapping elements it needs. In particular, this wrapper looks for passed props such as legends, labels, and hints, and provides the required layout or additional elements.\n\nIn some design cases, there are pages that contain forms with a single radio or checkbox question. These pages have a requirement for a bigger, 'page-title like' legend. The `bigLegend` prop is a boolean which provides alternative styling to the legend, to make it match the bigger legend requirement.",methods:[],displayName:"FieldWrapper",props:{showBorder:{defaultValue:{value:"false",computed:!1},description:"Boolean for showing borders",type:{name:"bool"},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},autoScroll:{defaultValue:{value:"false",computed:!1},description:"Whether the window should auto scroll into view this component",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},bigLegend:{description:"Boolean for showing a big legend",type:{name:"bool"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},error:{description:"Text for error",type:{name:"string"},required:!1},children:{description:"Node for children elements",type:{name:"node"},required:!1}}}},"./src/client/components/Form/elements/FormActions.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_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    * {\n      vertical-align: baseline;\n    }\n\n    * + * {\n      margin-left: ",";\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_4)},"./src/client/components/Form/elements/ResourceOptionsField/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/utils/index.js"),_Resource_Resource__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Resource/Resource.jsx"),_excluded=["id","field","resource","payload","taskName","resultToOptions","interceptOption"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var ResourceOptionsField=function ResourceOptionsField(_ref){var _ref$id=_ref.id,id=void 0===_ref$id?"__RESOURCE_OPTIONS__":_ref$id,Field=_ref.field,_ref$resource=_ref.resource,Rsrc=void 0===_ref$resource?_Resource_Resource__WEBPACK_IMPORTED_MODULE_7__.Ay:_ref$resource,_ref$payload=_ref.payload,payload=void 0===_ref$payload?{_:"0"}:_ref$payload,taskName=_ref.taskName,_ref$resultToOptions=_ref.resultToOptions,resultToOptions=void 0===_ref$resultToOptions?_utils__WEBPACK_IMPORTED_MODULE_6__.Bc:_ref$resultToOptions,_ref$interceptOption=_ref.interceptOption,interceptOption=void 0===_ref$interceptOption?function(x){return x}:_ref$interceptOption,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(Rsrc,{name:taskName,id,payload,progressBox:!0},(function(result){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(Field,_extends({},props,{disabled:void 0===result,options:void 0===result?[]:resultToOptions(result).map(interceptOption)}))}))};ResourceOptionsField.propTypes={field:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,resource:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,taskName:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,resultToOptions:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func};const __WEBPACK_DEFAULT_EXPORT__=ResourceOptionsField;ResourceOptionsField.__docgenInfo={description:"@function ResourceOptionsField\n@description Makes it easy to convert an _options form field_ (a field which\npresents the user a number of options to the user) into a field, which\nresolve its options with a _resource_ or a _task_.\nYou need to either specify {props.resource} or {props.taskName}.\nAll other props not specified here will be forwarded to the field component\npassed to {props.field}.\n@type {import(\"./types\").ResourceOptionsField} Form\n@typedef {import(\"./types\").Props} Props\n@param {Object} props\n@param {Function} [props.field] - The _options form field_ to be wrapped.\n@param {Function} [props.resource] - A particular _resource_ component which\nrepresents a specific resource.\n@param {string} [props.taskName] - The name of the _task_ to use instead of\na {resource}.\n@param {string} [props.id] - ID for the _task_ or _resource_. This prop is\nrequired with if {props.taskName} is used and optional with {props.resource}.\n@param {any} [props.payload] - The optional ID\n@param {Props['resultToOptions']} [props.resultToOptions=idNamesToValueLabels]\n- Use this to transform the _task_/_resource_ result to the field options.\n@param {Props['interceptOption']} [props.interceptOption] - A function that\nwill be called for each option already resolved with {props.resultToOptions}\nand should return the tweaked option. Allows you to tweak the optios e.g.\nto add children or hint to it.\n@example\nimport CountriesResource from '../Resource'\nimport FieldSelect from '../Form/elements/FieldSelect'\n\nconst FieldCountriesSelect = (props) =>\n <ResourceOptionsField\n   {...props}\n   resource={CountriesResource}\n   field={FieldSelect}\n />",methods:[],displayName:"ResourceOptionsField",props:{id:{defaultValue:{value:"'__RESOURCE_OPTIONS__'",computed:!1},description:"",type:{name:"string"},required:!1},resource:{defaultValue:{value:"multiInstance({\n  name: 'Resource',\n  actionPattern: 'RESOURCE',\n  reducer: (state, { id, result }) => ({\n    ...state,\n    [id]: result,\n  }),\n  idProp: 'name',\n  componentStateToProps: (state, _, { id }) => ({ result: state[id] }),\n  component: ({\n    name,\n    id,\n    taskStatusProps,\n    children,\n    result,\n    payload,\n    transformer = (x) => [x],\n    progressBox,\n    noRetry,\n  }) =>\n    progressBox ? (\n      <LoadingBox\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n          ignoreIfInProgress: true,\n        }}\n      >\n        {result ? children(...transformer(result)) : children()}\n      </LoadingBox>\n    ) : (\n      <Task.Status\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n        }}\n      >\n        {() => result !== undefined && children(...transformer(result))}\n      </Task.Status>\n    ),\n})",computed:!0},description:"",type:{name:"func"},required:!1},payload:{defaultValue:{value:"{ _: '0' }",computed:!1},required:!1},resultToOptions:{defaultValue:{value:"(idNames) => idNames.map(idNameToValueLabel)",computed:!1},description:"",type:{name:"func"},required:!1},interceptOption:{defaultValue:{value:"(x) => x",computed:!1},required:!1},field:{description:"",type:{name:"func"},required:!0},taskName:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/Step.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_ButtonLink__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/ButtonLink/index.jsx"),_FormActions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx");function Step(_ref){var name=_ref.name,backButton=_ref.backButton,forwardButton=_ref.forwardButton,cancelUrl=_ref.cancelUrl,_ref$submitButtonLabe=_ref.submitButtonLabel,submitButtonLabel=void 0===_ref$submitButtonLabe?"Submit":_ref$submitButtonLabe,children=_ref.children,_useFormContext=(0,_hooks__WEBPACK_IMPORTED_MODULE_5__.xW)(),currentStep=_useFormContext.currentStep,goBack=_useFormContext.goBack,registerStep=_useFormContext.registerStep,deregisterStep=_useFormContext.deregisterStep,getStepIndex=_useFormContext.getStepIndex,isFirstStep=_useFormContext.isFirstStep,isLastStep=_useFormContext.isLastStep;(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){return registerStep(name),function(){return deregisterStep(name)}}),[name]);var index=getStepIndex(name);if(index!==currentStep||void 0===index||void 0===currentStep)return null;return react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,"function"==typeof children?children():children,react__WEBPACK_IMPORTED_MODULE_1__.createElement(_FormActions__WEBPACK_IMPORTED_MODULE_7__.A,null,function renderForwardButton(){if(void 0===forwardButton){var label=isLastStep()?submitButtonLabel:"Continue";return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{"data-test":(0,lodash__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(label.toLowerCase()),name:"forward"},label)}return"string"==typeof forwardButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{name:"forward"},forwardButton):forwardButton}(),!isFirstStep()&&function renderBackButton(){return void 0===backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},"Back"):"string"==typeof backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},backButton):backButton}(),isFirstStep()&&cancelUrl&&function renderCancelLink(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__.A,{"data-test":"cancel-link",href:cancelUrl},"Cancel")}()))}Step.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string.isRequired,backButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,forwardButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,prop_types__WEBPACK_IMPORTED_MODULE_8___default().node])};const __WEBPACK_DEFAULT_EXPORT__=Step;Step.__docgenInfo={description:"",methods:[],displayName:"Step",props:{submitButtonLabel:{defaultValue:{value:"'Submit'",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},backButton:{description:"",type:{name:"node"},required:!1},forwardButton:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"union",value:[{name:"func"},{name:"node"}]},required:!1}}}},"./src/client/components/Form/hooks/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Mt:()=>_useField__WEBPACK_IMPORTED_MODULE_0__.A,hN:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.h,xW:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.x});var _useField__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js")},"./src/client/components/Form/hooks/useField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js");const __WEBPACK_DEFAULT_EXPORT__=function useField(_ref){var name=_ref.name,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,_ref$validate=_ref.validate,validate=void 0===_ref$validate?null:_ref$validate,_ref$required=_ref.required,required=void 0===_ref$required?null:_ref$required,_useFormContext=(0,_useFormContext__WEBPACK_IMPORTED_MODULE_5__.x)(),registerField=_useFormContext.registerField,deregisterField=_useFormContext.deregisterField,setFieldTouched=_useFormContext.setFieldTouched,setFieldValue=_useFormContext.setFieldValue,getFieldState=_useFormContext.getFieldState;(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){var validators;return registerField({name,initialValue,validate:(validators=(0,lodash__WEBPACK_IMPORTED_MODULE_4__.castArray)(validate).filter((function(v){return v})),required&&validators.unshift((function(value){return(0,lodash__WEBPACK_IMPORTED_MODULE_4__.isEmpty)(value)?required:null})),validators)}),function(){deregisterField(name)}}),[name]);var fieldState=getFieldState(name,initialValue);return{name,value:fieldState.value,error:fieldState.error,touched:fieldState.touched,onChange:function onChange(e){return setFieldValue(name,e.target.value)},onChangeFileUpload:function onChangeFileUpload(e){return setFieldValue(name,e.target.files)},onBlur:function onBlur(){return setFieldTouched(name,!0)}}}},"./src/client/components/Form/hooks/useFormContext.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>FormContextProvider,x:()=>useFormContext});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var _constate2=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.")}()}((0,__webpack_require__("./node_modules/constate/dist/constate.es.js").A)((function(state){return state})),2),FormContextProvider=_constate2[0],useFormContext=_constate2[1]},"./src/client/components/Form/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Form});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),ErrorSummary=__webpack_require__("./src/client/components/ErrorSummary/index.jsx"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),LoadingBox=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Wrap=__webpack_require__("./src/client/components/Wrap.jsx"),Analytics=__webpack_require__("./src/client/components/Analytics/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["type","result"];function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 FormActions=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),hooks=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),Effect=__webpack_require__("./src/client/components/Effect.jsx");const HardRedirect=(0,__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs").connect)()((function(_ref){var to=_ref.to,when=_ref.when,dispatch=_ref.dispatch,_ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return(0,react.useEffect)((function(){when&&dispatch({type:actions.ntj,to})}),[to,when]),"function"==typeof children?children((function(to){return dispatch({type:actions.ntj,to})})):children}));var colours=__webpack_require__("./src/client/utils/colours.js");function Form_typeof(o){return Form_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},Form_typeof(o)}var Form_excluded=["submissionTaskName","id","analyticsFormName","analyticsData","cancelButtonLabel","cancelRedirectTo","keepValuesOnDeregister","initialValuesTaskName","initialValuesPayload","redirectTo","flashMessage","children","initialValues","redirectMode","scrollToTopOnStep","showStepInUrl","reactRouterRedirect","transformInitialValues","transformPayload","submissionTaskResultToValues","onSuccess","onError","submitButtonLabel","submitButtonColour","onLoad","result","resolved","errors","errorStatus","values","touched","steps","initialStepIndex","goToStep"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 Form_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return Form_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)?Form_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 Form_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Form_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 Form_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Form_ownKeys(Object(t),!0).forEach((function(r){Form_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Form_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Form_defineProperty(e,r,t){return(r=function Form_toPropertyKey(t){var i=function Form_toPrimitive(t,r){if("object"!=Form_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Form_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Form_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _validateForm3=function validateForm(state){return Object.values(state.fields).map((function(field){return{name:field.name,error:[].concat(field.validate).map((function(validator){var _state$values;return validator(null===(_state$values=state.values)||void 0===_state$values?void 0:_state$values[field.name],field,state)})).filter(Boolean)[0]}})).filter((function(_ref){return _ref.error})).reduce((function(acc,_ref2){var name=_ref2.name,error=_ref2.error;return{errors:Form_objectSpread(Form_objectSpread({},acc.errors),{},Form_defineProperty({},name,error)),touched:Form_objectSpread(Form_objectSpread({},acc.touched),{},Form_defineProperty({},name,!0))}}),{})},Form=(0,multiinstance.Ay)({name:"Form",reducer:function(){var _action$keepValuesOnD,_state$values$action$,_state$values,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{values:{},touched:{},errors:{},errorStatus:0,fields:{},currentStep:0,steps:[]},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,action=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);switch(type){case actions.IDk:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),action.initialValues),keepValuesOnDeregister:null!==(_action$keepValuesOnD=action.keepValuesOnDeregister)&&void 0!==_action$keepValuesOnD&&_action$keepValuesOnD,currentStep:action.initialStepIndex});case actions.n7E:return{values:_objectSpread({},action.values),touched:{},errors:{},errorStatus:0,fields:_objectSpread({},state.fields),currentStep:0,steps:_toConsumableArray(state.steps)};case actions.ZYf:return _objectSpread(_objectSpread({},state),{},{result,resolved:!0});case"FORM__RESET_RESOLVED":return(0,lodash.omit)(state,"result","resolved");case actions.J4U:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread(_objectSpread({},state.previousValues),state.values),{},_defineProperty({},action.field.name,null!==(_state$values$action$=null===(_state$values=state.values)||void 0===_state$values?void 0:_state$values[action.field.name])&&void 0!==_state$values$action$?_state$values$action$:action.field.initialValue)),touched:_objectSpread(_objectSpread({},state.touched),{},_defineProperty({},action.field.name,!1)),fields:_objectSpread(_objectSpread({},state.fields),{},_defineProperty({},action.field.name,action.field))});case actions.Wd_:return _objectSpread(_objectSpread({},state),{},{values:state.keepValuesOnDeregister?state.values:(0,lodash.omit)(state.values,action.fieldName),errors:(0,lodash.omit)(state.errors,action.fieldName),touched:(0,lodash.omit)(state.touched,action.fieldName),fields:(0,lodash.omit)(state.fields,action.fieldName)});case actions.i5T:return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),{},_defineProperty({},action.fieldName,action.fieldValue))});case"FORM__FIELD_SET_VALUES":return _objectSpread(_objectSpread({},state),{},{values:_objectSpread(_objectSpread({},state.values),action.values)});case actions.OlO:return _objectSpread(_objectSpread({},state),{},{touched:_objectSpread(_objectSpread({},state.touched),{},_defineProperty({},action.fieldName,!0))});case actions.zuV:return _objectSpread(_objectSpread({},state),{},{errors:action.errors,touched:action.touched});case actions.eEr:return _objectSpread(_objectSpread({},state),{},{errors:action.errors,touched:Object.fromEntries(Object.keys(action.errors).map((function(key){return[key,!0]}))),errorStatus:action.httpStatusCode});case actions.oWe:return _objectSpread(_objectSpread({},state),{},{currentStep:state.currentStep+1,previousValues:state.values});case actions.gaL:return _objectSpread(_objectSpread({},state),{},{currentStep:state.currentStep-1,previousValues:state.values});case actions.G2D:var nextCurrentStep=action.stepName?state.steps.indexOf(action.stepName):0;return _objectSpread(_objectSpread({},state),{},{currentStep:nextCurrentStep,currentStepName:action.stepName,previousValues:state.values});case actions.XpH:return _objectSpread(_objectSpread({},state),{},{steps:state.steps.includes(action.stepName)?state.steps:[].concat(_toConsumableArray(state.steps),[action.stepName])});case actions.I0G:return _objectSpread(_objectSpread({},state),{},{steps:state.steps.filter((function(s){return s!==action.stepName}))});default:return state}},component:function _Form(_ref3){var submissionTaskName=_ref3.submissionTaskName,id=_ref3.id,analyticsFormName=_ref3.analyticsFormName,analyticsData=_ref3.analyticsData,_ref3$cancelButtonLab=_ref3.cancelButtonLabel,cancelButtonLabel=void 0===_ref3$cancelButtonLab?"Cancel":_ref3$cancelButtonLab,cancelRedirectTo=_ref3.cancelRedirectTo,keepValuesOnDeregister=_ref3.keepValuesOnDeregister,initialValuesTaskName=_ref3.initialValuesTaskName,initialValuesPayload=_ref3.initialValuesPayload,redirectTo=_ref3.redirectTo,flashMessage=_ref3.flashMessage,children=_ref3.children,initialValues=_ref3.initialValues,_ref3$redirectMode=_ref3.redirectMode,redirectMode=void 0===_ref3$redirectMode?"hard":_ref3$redirectMode,_ref3$scrollToTopOnSt=_ref3.scrollToTopOnStep,scrollToTopOnStep=void 0!==_ref3$scrollToTopOnSt&&_ref3$scrollToTopOnSt,_ref3$showStepInUrl=_ref3.showStepInUrl,showStepInUrl=void 0!==_ref3$showStepInUrl&&_ref3$showStepInUrl,_ref3$transformInitia=(_ref3.reactRouterRedirect,_ref3.transformInitialValues),transformInitialValues=void 0===_ref3$transformInitia?function(x){return x}:_ref3$transformInitia,_ref3$transformPayloa=_ref3.transformPayload,transformPayload=void 0===_ref3$transformPayloa?function(x){return x}:_ref3$transformPayloa,submissionTaskResultToValues=_ref3.submissionTaskResultToValues,onSuccess=_ref3.onSuccess,onError=_ref3.onError,_ref3$submitButtonLab=_ref3.submitButtonLabel,submitButtonLabel=void 0===_ref3$submitButtonLab?"Save":_ref3$submitButtonLab,_ref3$submitButtonCol=_ref3.submitButtonColour,submitButtonColour=void 0===_ref3$submitButtonCol?colours.EI:_ref3$submitButtonCol,onLoad=_ref3.onLoad,result=_ref3.result,resolved=_ref3.resolved,_ref3$errors=_ref3.errors,errors=void 0===_ref3$errors?{}:_ref3$errors,_ref3$values=(_ref3.errorStatus,_ref3.values),values=void 0===_ref3$values?{}:_ref3$values,_ref3$touched=_ref3.touched,touched=void 0===_ref3$touched?{}:_ref3$touched,_ref3$steps=_ref3.steps,steps=void 0===_ref3$steps?[]:_ref3$steps,_ref3$initialStepInde=_ref3.initialStepIndex,initialStepIndex=void 0===_ref3$initialStepInde?0:_ref3$initialStepInde,goToStep=_ref3.goToStep,props=function Form_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function Form_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,Form_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));(0,react.useEffect)((function(){onLoad(initialValues,initialStepIndex,keepValuesOnDeregister)}),[]),(0,react.useEffect)((function(){scrollToTopOnStep&&window.scrollTo(0,0)}),[scrollToTopOnStep,props.currentStep]),(0,react.useEffect)((function(){showStepInUrl&&(qsParams.step?goToStep(qsParams.step||steps[initialStepIndex]):navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[initialStepIndex]}))},{replace:!0}))}),[showStepInUrl,qsParams.step,steps]),(0,react.useEffect)((function(){null!=result&&result.errors&&(onError(Object.fromEntries(Object.entries(result.errors).map((function(_ref4){var _ref5=_slicedToArray(_ref4,2),k=_ref5[0],v=_ref5[1];return[(0,lodash.camelCase)(k),v.join(", ")]})))),window.scrollTo({top:0}))}),[result]);var contextProps=Form_objectSpread(Form_objectSpread({},props),{},{errors,values,touched,steps,goToStep,getStepIndex:function getStepIndex(stepName){var index=null==steps?void 0:steps.indexOf(stepName);return-1!==index?index:null},isFirstStep:function isFirstStep(){return 0===(null==props?void 0:props.currentStep)},isLastStep:function isLastStep(){return!steps.length||(null==props?void 0:props.currentStep)===(null==steps?void 0:steps.length)-1},getFieldState:function getFieldState(fieldName,initialValue){var _values$fieldName,_touched$fieldName;return{value:null!==(_values$fieldName=values[fieldName])&&void 0!==_values$fieldName?_values$fieldName:initialValue,touched:null!==(_touched$fieldName=touched[fieldName])&&void 0!==_touched$fieldName&&_touched$fieldName,error:errors[fieldName]}}}),ref=(0,react.useRef)();return react.createElement(Wrap.A,{with:Resource.Ay,when:initialValuesTaskName,props:{id,name:initialValuesTaskName,payload:initialValuesPayload,taskStatusProps:{dismissable:!1}}},(function(initialValues){return react.createElement(Analytics.A,null,(function(pushAnalytics){var analytics=function analytics(action,extra){return pushAnalytics({category:"Form interaction",action,label:analyticsFormName,extra})};return react.createElement(react.Fragment,null,react.createElement(hooks.hN,_extends({},contextProps,{registerField:props.registerField(initialValues),setIsLoading:function setIsLoading(isLoading){},goBack:function goBack(){(0,react_dom.flushSync)((function(){return props.goBack()})),analytics("previous step",{currentStep:props.currentStep}),showStepInUrl&&navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[props.currentStep-1]}))})},resetFields:function resetFields(){var values=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};props.resetFields(Form_objectSpread(Form_objectSpread({},initialValues),values))},validateForm:function validateForm(fieldNamesToValidate){var _validateForm=_validateForm3(Form_objectSpread(Form_objectSpread({},contextProps),{},{fields:null!=fieldNamesToValidate&&fieldNamesToValidate.length?lodash_default().pick(contextProps.fields,fieldNamesToValidate):contextProps.fields})),errors=_validateForm.errors,touched=_validateForm.touched;return props.onValidate(errors,touched),errors}}),react.createElement(Task.A,null,(function(t){var submissionTask=t(submissionTaskName,id);return react.createElement(LoadingBox.A,{name:submissionTaskName,id,when:"hard"===redirectMode&&redirectTo&&resolved},react.createElement("form",{autoComplete:"off",noValidate:!0,onSubmit:function onSubmit(e){e.preventDefault();var _validateForm2=_validateForm3(contextProps),errors=_validateForm2.errors,touched=_validateForm2.touched;props.onValidate(errors,touched),(0,lodash.isEmpty)(errors)?contextProps.isLastStep()?(submissionTask.start({payload:transformPayload(values),onSuccessDispatch:"FORM__RESOLVED"}),analytics("Submit")):(props.goForward(),analytics("Next step",{currentStep:props.currentStep}),showStepInUrl&&navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[props.currentStep+1]}))})):(requestAnimationFrame((function(){var _ref$current;return null===(_ref$current=ref.current)||void 0===_ref$current?void 0:_ref$current.focus()})),analytics("Validation errors",{errors}))}},react.createElement(HardRedirect,null,(function(hardRedirect){return react.createElement(Effect.A,{dependencyList:[submissionTaskName,id,resolved,result],effect:function effect(){if(resolved&&(null==result||!result.errors)){if(analytics("Submission request success",analyticsData&&analyticsData(values)),flashMessage){var message=flashMessage(result,values);props.writeFlashMessage(message)}"soft"===redirectMode&&redirectTo&&navigate(redirectTo(result,values)),onSuccess&&onSuccess(result,values,{flashMessage:props.writeFlashMessage,hardRedirect,softRedirect:navigate}),props.resetResolved()}}})})),react.createElement(Effect.A,{dependencyList:[initialValues],effect:function effect(){initialValues&&onLoad(transformInitialValues(initialValues),initialStepIndex)}}),submissionTaskResultToValues&&result&&react.createElement(Effect.A,{dependencyList:[result],effect:function effect(){props.setValues(null==submissionTaskResultToValues?void 0:submissionTaskResultToValues(result))}}),react.createElement(Effect.A,{dependencyList:[submissionTask.hasError],effect:function effect(){submissionTask.hasError&&analytics("Submission request error",{error:submissionTask.errorMessage})}}),"hard"===redirectMode&&redirectTo&&resolved&&react.createElement(HardRedirect,{to:redirectTo(result,values),when:resolved}),!(0,lodash.isEmpty)(errors)&&react.createElement(ErrorSummary.A,{ref,id:"form-errors","data-test":"summary-form-errors",errors:Object.entries(errors).map((function(_ref6){var _ref7=_slicedToArray(_ref6,2);return{targetName:_ref7[0],text:_ref7[1]}}))}),"function"==typeof children?children(contextProps):children,!steps.length&&react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{buttonColour:submitButtonColour,"data-test":"submit-button"},submitButtonLabel),cancelRedirectTo&&react.createElement(govuk_react_link_esm.A,{href:cancelRedirectTo(),"data-test":"cancel-button"},cancelButtonLabel))))}))))}))}))},dispatchToProps:function dispatchToProps(dispatch){return{onLoad:function onLoad(initialValues,initialStepIndex,keepValuesOnDeregister){return dispatch({type:"FORM__LOADED",initialValues,initialStepIndex,keepValuesOnDeregister})},resetResolved:function resetResolved(){return dispatch({type:"FORM__RESET_RESOLVED"})},registerField:function registerField(initialValues){return function(field){return dispatch({type:"FORM__FIELD_REGISTER",field:Form_objectSpread({initialValue:null==initialValues?void 0:initialValues[field.name]},field)})}},deregisterField:function deregisterField(fieldName){return dispatch({type:"FORM__FIELD_DEREGISTER",fieldName})},resetFields:function resetFields(values){return dispatch({type:"FORM__FIELDS__RESET",values})},setFieldValue:function setFieldValue(fieldName,fieldValue){return dispatch({type:"FORM__FIELD_SET_VALUE",fieldName,fieldValue})},setValues:function setValues(values){return dispatch({type:"FORM__FIELD_SET_VALUES",values})},setFieldTouched:function setFieldTouched(fieldName){return dispatch({type:"FORM__FIELD_TOUCHED",fieldName})},onValidate:function onValidate(errors,touched){return dispatch({type:"FORM__VALIDATE",errors,touched})},onError:function onError(errors){return dispatch({type:"FORM__ERRORED",errors})},goForward:function goForward(values){return dispatch({type:"FORM__FORWARD",values})},goBack:function goBack(){return dispatch({type:"FORM__BACK"})},goToStep:function goToStep(stepName){dispatch({type:"FORM__GO_TO_STEP",stepName})},registerStep:function registerStep(stepName){return dispatch({type:"FORM__STEP_REGISTER",stepName})},deregisterStep:function deregisterStep(stepName){return dispatch({type:"FORM__STEP_DEREGISTER",stepName})},writeFlashMessage:function writeFlashMessage(message){if(message)if("string"!=typeof message){var _message=_slicedToArray(message,3),heading=_message[0],body=_message[1],messageType=_message[2];dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType,message:[heading,body]})}else dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType:"success",message})}}},actionPattern:"FORM__"});Form.propTypes={id:prop_types_default().string.isRequired,analyticsFormName:prop_types_default().string.isRequired,analyticsData:prop_types_default().func,cancelRedirectTo:prop_types_default().oneOfType([prop_types_default().func,prop_types_default().bool]),cancelButtonLabel:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]),submissionTaskName:prop_types_default().string.isRequired,submitButtonLabel:prop_types_default().string,redirectTo:prop_types_default().func,redirectMode:prop_types_default().oneOf(["hard","soft"]),flashMessage:prop_types_default().func,initialValuesTaskName:prop_types_default().string,initialValues:prop_types_default().object,keepValuesOnDeregister:prop_types_default().bool,transformInitialValues:prop_types_default().func,transformPayload:prop_types_default().func,initialStepIndex:prop_types_default().number,scrollToTopOnStep:prop_types_default().bool};const components_Form=Form},"./src/client/components/Form/validators.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Rp:()=>email,ai:()=>number});__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./src/client/utils/date.js"),__webpack_require__("./src/client/transformers/index.js");var EMAIL_PATTERN=/(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,IS_NUMBER=/^[0-9]*$/,email=function email(x){return EMAIL_PATTERN.test(x)?null:"Enter an email address in the correct format, like name@example.com"},number=function number(x,errorMessage){return!x||IS_NUMBER.test(x)?null:errorMessage}},"./src/client/components/InlineIcon/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _templateObject;__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay.span(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  height: 2ex;\n  width: 2ex;\n  vertical-align: -10%;\n  display: inline-block;\n"])))},"./src/client/components/InvestmentProjectLocalHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentProjectLocalHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),Timeline=__webpack_require__("./src/client/components/Timeline/index.jsx"),date=__webpack_require__("./src/client/utils/date.js"),colours=(__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/client/utils/colours.js"));const timeline_theme={container:{backgroundColor:colours.P1,largeScreen:{padding:"23px 0 0 18px"}},li:{before:{left:"-8px",top:"2px",width:govuk_react_constants_esm.Es.SCALE_2,height:govuk_react_constants_esm.Es.SCALE_2,border:"2px solid ".concat(colours.ej)},span:{display:"inline"},mqLargeScreen:{padding:"".concat(govuk_react_constants_esm.Es.SCALE_4," 0 ").concat(govuk_react_constants_esm.Es.SCALE_4," 0"),borderTop:"2px solid ".concat(colours.ej),before:{top:"-8px",left:"-10px"}}}};var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var MetaList=(0,styled_components_browser_esm.Ay)("ul")({}),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({marginRight:govuk_react_constants_esm.Es.SCALE_5,display:"inline-grid","&:last-child":{marginTop:govuk_react_constants_esm.Es.SCALE_3,marginBottom:govuk_react_constants_esm.Es.SCALE_3}},govuk_react_constants_esm.qs.LARGESCREEN,{"&:last-child":{marginTop:0,marginBottom:0}})),StyledListItemText=(0,styled_components_browser_esm.Ay)("span")({color:"#6f777b",fontSize:govuk_react_constants_esm.SG.SIZE_16,fontWeight:400,marginBottom:govuk_react_constants_esm.Es.SCALE_1}),StyledChild=(0,styled_components_browser_esm.Ay)("span")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),StyledStatusMessage=(0,styled_components_browser_esm.Ay)(StatusMessage.A)({fontSize:govuk_react_constants_esm.SG.SIZE_20,fontWeight:700,marginBottom:govuk_react_constants_esm.Es.SCALE_1,marginTop:govuk_react_constants_esm.Es.SCALE_2,backgroundColor:colours.UE}),MetaListItem=function MetaListItem(_ref){var text=_ref.text,children=_ref.children;return react.createElement(StyledListItem,null,react.createElement(StyledListItemText,null,text),react.createElement(StyledChild,null,children))},InvestmentProjectLocalHeader=function InvestmentProjectLocalHeader(_ref2){var _investment$createdBy,investment=_ref2.investment;return react.createElement(react.Fragment,null,react.createElement(MetaList,{"data-test":"meta-list"},react.createElement(MetaListItem,{text:"Status"},(0,lodash.upperFirst)(investment.status)," -"," ",react.createElement("a",{href:urls_default().investments.projects.status(investment.id)},"change")),react.createElement(MetaListItem,{text:"Project code"},investment.projectCode),react.createElement(MetaListItem,{text:"Valuation"},investment.valueComplete?"Project valued":"Not yet valued"),react.createElement(MetaListItem,{text:"Created on"},(0,date.formatMediumDateTime)(investment.createdOn)),(null===(_investment$createdBy=investment.createdBy)||void 0===_investment$createdBy||null===(_investment$createdBy=_investment$createdBy.ditTeam)||void 0===_investment$createdBy?void 0:_investment$createdBy.name)&&react.createElement(MetaListItem,{text:"Created by"},investment.createdBy.ditTeam.name)),react.createElement(styled_components_browser_esm.NP,{theme:timeline_theme},react.createElement(Timeline.A,{stages:constants.s1,currentStage:investment.stage.name})),"Won"===investment.stage.name&&!investment.archived&&react.createElement(StyledStatusMessage,{"data-test":"project-won-message"},"This project has been verified as won. You should not make any changes to this project.",react.createElement("br",null),react.createElement("br",null),"If you would like to make changes, please contact the Investment Promotion Performance team."))};InvestmentProjectLocalHeader.propTypes={investment:prop_types_default().object.isRequired};const components_InvestmentProjectLocalHeader=InvestmentProjectLocalHeader;InvestmentProjectLocalHeader.__docgenInfo={description:"The **InvestmentProjectLocalHeader** contains the following:\n\n- Investment metadata such as: Status (Ongoing, Delayed, Abandoned, Lost and Dormant), Project code, Valuation and a Created on date\n\n- A list of five stages (Prospect', 'Assign PM', 'Active', 'Verify win' and 'Won') in chronological order where the current stage is clear to see",methods:[],displayName:"InvestmentProjectLocalHeader",props:{investment:{description:"An investment project",type:{name:"object"},required:!0}}}},"./src/client/components/InvestmentReminders/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentReminders});var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),state=__webpack_require__("./src/client/components/InvestmentReminders/state.js"),actions=__webpack_require__("./src/client/actions.js"),styled_components_browser_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js")),govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),constants=__webpack_require__("./src/common/constants.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),colours=__webpack_require__("./src/client/utils/colours.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _require=__webpack_require__("./src/client/utils/date.js"),formatWithoutParsing=_require.formatWithoutParsing,getDifferenceInDaysLabel=_require.getDifferenceInDaysLabel,StyledSubHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  color: ",";\n  font-size: ",";\n  font-weight: ",";\n  margin-top: ",";\n  margin-bottom: ",";\n"])),colours.Bk,govuk_react_constants_esm.SG.SIZE_19,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),StyledSubHeadingEmpty=(0,styled_components_browser_esm.Ay)(StyledSubHeading)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n  margin: 0;\n"])),colours.hM),StyledProjectLink=(0,styled_components_browser_esm.Ay)("a")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: block;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_19,colours.yV),StyledProjectCode=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin: "," 0;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.hM),StyledDueDate=(0,styled_components_browser_esm.Ay)("span")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledDueCountdown=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  margin-top: ",";\n  text-align: right;\n  white-space: nowrap;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n"]))),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: space-between;\n  align-items: flex-end;\n"])),govuk_react_constants_esm.Es.SCALE_4),StyledDetails=(0,styled_components_browser_esm.Ay)("div")(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n  padding-right: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),OutstandingPropositions=function OutstandingPropositions(_ref){var results=_ref.results,count=_ref.count;return react.createElement(react.Fragment,null,results.length?react.createElement("div",{"data-test":"outstanding-propositions"},react.createElement(StyledSubHeading,{"data-test":"outstanding-propositions-heading"},"Outstanding propositions (",count,")"),react.createElement(StyledList,{"data-test":"outstanding-propositions-list"},results.map((function(_ref2){var id=_ref2.id,investment_project=_ref2.investment_project,name=_ref2.name,deadline=_ref2.deadline;return react.createElement(StyledListItem,{key:id},react.createElement(StyledDetails,null,react.createElement(StyledProjectLink,{href:urls_default().investments.projects.propositions(investment_project.id)},name),react.createElement(StyledProjectCode,{"data-test":"outstanding-proposition-project-code"},investment_project.project_code),react.createElement(StyledDueDate,{"data-test":"outstanding-proposition-deadline"},"Due"," ",formatWithoutParsing(new Date(deadline),constants.DATE_DAY_LONG_FORMAT))),react.createElement(StyledDueCountdown,{"data-test":"outstanding-proposition-countdown"},getDifferenceInDaysLabel(deadline)))})))):react.createElement(StyledSubHeadingEmpty,{"data-test":"outstanding-propositions-empty"},"Projects with propositions due will be displayed here."))};OutstandingPropositions.propTypes={count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const InvestmentReminders_OutstandingPropositions=OutstandingPropositions;OutstandingPropositions.__docgenInfo={description:"",methods:[],displayName:"OutstandingPropositions",props:{count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),InvestmentReminders=function InvestmentReminders(_ref){var adviser=_ref.adviser,results=_ref.results,count=_ref.count;return react.createElement("div",{"data-test":"investment-reminders"},react.createElement(Task.A.Status,{name:state.M,id:state.ID,progressMessage:"Loading your reminders",startOnRender:{payload:{adviser},onSuccessDispatch:actions.gEw}},(function(){return react.createElement(InvestmentReminders_OutstandingPropositions,{results,count})})))};InvestmentReminders.propTypes={adviser:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired,count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const components_InvestmentReminders=(0,react_redux.connect)(state.o)(InvestmentReminders);InvestmentReminders.__docgenInfo={description:"Shows reminders of upcoming propositions for an adviser to deal with.",methods:[],displayName:"InvestmentReminders",props:{adviser:{description:"The adviser to display investment reminders for.",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0},count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}}},"./src/client/components/InvestmentReminders/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,M:()=>TASK_GET_OUTSTANDING_PROPOSITIONS,o:()=>state2props});var ID="investmentReminders",TASK_GET_OUTSTANDING_PROPOSITIONS="TASK_GET_OUTSTANDING_PROPOSITIONS",state2props=function state2props(state){return state[ID]}},"./src/client/components/Layout/DefaultLayout.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__),_govuk_react_grid_col__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),_govuk_react_grid_row__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),_Footer__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/Footer/index.jsx"),_Main__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Main/index.jsx"),_LocalHeader_LocalHeader__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),_DataHubHeader__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/DataHubHeader/index.jsx"),_WatchTextContent__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/WatchTextContent.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var GlobalStyles=(0,styled_components__WEBPACK_IMPORTED_MODULE_21__.DU)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  *, *:before, *:after {\n    box-sizing: initial;\n  }\n"]))),DefaultLayout=function DefaultLayout(_ref){var heading=_ref.heading,headingLink=_ref.headingLink,subheading=_ref.subheading,pageTitle=_ref.pageTitle,flashMessages=_ref.flashMessages,breadcrumbs=_ref.breadcrumbs,children=_ref.children,_ref$useReactRouter=_ref.useReactRouter,useReactRouter=void 0!==_ref$useReactRouter&&_ref$useReactRouter,localHeaderChildren=_ref.localHeaderChildren,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(!1),2),showVerticalNav=_useState2[0],setShowVerticalNav=_useState2[1];return react__WEBPACK_IMPORTED_MODULE_13__.createElement(react__WEBPACK_IMPORTED_MODULE_13__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_WatchTextContent__WEBPACK_IMPORTED_MODULE_20__.A,{onTextContentChange:function onTextContentChange(text){document.title=text}},pageTitle," - DBT Data Hub"),react__WEBPACK_IMPORTED_MODULE_13__.createElement(GlobalStyles,null),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_DataHubHeader__WEBPACK_IMPORTED_MODULE_19__.A,{showVerticalNav,onShowVerticalNav:setShowVerticalNav}),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_LocalHeader_LocalHeader__WEBPACK_IMPORTED_MODULE_18__.A,{heading,headingLink,subheading,flashMessages,breadcrumbs:breadcrumbs||[{link:"/",text:"Home"},{text:heading}],useReactRouter},localHeaderChildren),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_Main__WEBPACK_IMPORTED_MODULE_17__.A,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_govuk_react_grid_row__WEBPACK_IMPORTED_MODULE_15__.A,null,react__WEBPACK_IMPORTED_MODULE_13__.createElement(_govuk_react_grid_col__WEBPACK_IMPORTED_MODULE_14__.Ay,null,children))),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_Footer__WEBPACK_IMPORTED_MODULE_16__.h,null))};DefaultLayout.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node]),headingLink:prop_types__WEBPACK_IMPORTED_MODULE_22___default().shape({url:prop_types__WEBPACK_IMPORTED_MODULE_22___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_22___default().string.isRequired}),subheading:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node]),pageTitle:prop_types__WEBPACK_IMPORTED_MODULE_22___default().node.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_22___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_22___default().string,prop_types__WEBPACK_IMPORTED_MODULE_22___default().node])};const __WEBPACK_DEFAULT_EXPORT__=DefaultLayout;DefaultLayout.__docgenInfo={description:"",methods:[],displayName:"DefaultLayout",props:{useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},heading:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},subheading:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},pageTitle:{description:"",type:{name:"node"},required:!0},children:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1}}}},"./src/client/components/LocalHeader/FlashMessages.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/lodash/lodash.js"),react_redux__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/colours.js"),_components_StatusMessage__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_state__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/LocalHeader/state.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledBody=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("p")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("h2")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-top: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.SG.SIZE_20,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("p")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  margin: 0;\n  font-size: ",";\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.SG.SIZE_20,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.sO.bold),StyledStatusMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)(_components_StatusMessage__WEBPACK_IMPORTED_MODULE_21__.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin-top: ",";\n  background-color: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__.Es.SCALE_3,_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.UE),messageColours={info:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.ft,success:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.EI,warning:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.hN,error:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.su,muted:_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.Uv},FlashMessages=function FlashMessages(_ref){var flashMessages=_ref.flashMessages,getFlashMessages=_ref.getFlashMessages,clearFlashMessages=_ref.clearFlashMessages;return(0,react__WEBPACK_IMPORTED_MODULE_16__.useEffect)((function(){return getFlashMessages(),function(){return clearFlashMessages()}}),[]),(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isEmpty)(flashMessages)?null:react__WEBPACK_IMPORTED_MODULE_16__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_19__.A,{listStyleType:"none","data-test":"flash"},Object.entries(flashMessages).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),type=_ref3[0],messages=_ref3[1],parts=String(type).split(":");return(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isNull)(messages[0])?null:parts.length>1?messages.map((function(_ref4){var body=_ref4.body,heading=_ref4.heading;return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:body},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[parts[0]]},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledHeading,null,heading),"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,null,body)))})):messages.map((function(body,i){return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:i},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[type]},"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,null,body)))}))})))},flashMessagePropTypes={flashMessages:prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({type:prop_types__WEBPACK_IMPORTED_MODULE_23___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({body:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string})),prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().string).isRequired])})};FlashMessages.propTypes=flashMessagePropTypes;const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_24__.connect)(_state__WEBPACK_IMPORTED_MODULE_25__.o,(function(dispatch){return{getFlashMessages:function getFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.vl8})},clearFlashMessages:function clearFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.PqX})}}}))(FlashMessages);FlashMessages.__docgenInfo={description:'Flash messages for users in different colours depending on the message.\n\nNote: If the props "flashMessages" are not passed down to the component then flash messages will be taken from session storage, if none exist in session storage then `null` is returned.',methods:[],displayName:"FlashMessages",props:{flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1}}}},"./src/client/components/LocalHeader/LocalHeader.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>LocalHeader_LocalHeader});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_main_esm=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),govuk_react_breadcrumbs_esm=__webpack_require__("./node_modules/@govuk-react/breadcrumbs/dist/govuk-react-breadcrumbs.esm.js"),dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),LocalHeaderHeading=__webpack_require__("./src/client/components/LocalHeader/LocalHeaderHeading.jsx");const LocalHeader_LocalSubHeader=(0,styled_components_browser_esm.Ay)("h2")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ","px;\n"])),govuk_react_constants_esm.iU.M);var LocalHeader_templateObject,_templateObject2,_templateObject3,FlashMessages=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx");function LocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeader=(0,styled_components_browser_esm.Ay)("div")(LocalHeader_templateObject||(LocalHeader_templateObject=LocalHeader_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  background-color: ",";\n  padding-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,colours.P1,govuk_react_constants_esm.Es.SCALE_3),StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(_templateObject2||(_templateObject2=LocalHeader_taggedTemplateLiteral(["\n  padding-top: 0;\n"]))),BreadcrumbsWrapper=(0,styled_components_browser_esm.Ay)(govuk_react_breadcrumbs_esm.A)(_templateObject3||(_templateObject3=LocalHeader_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  margin-top: 0;\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledSuperheading=styled_components_browser_esm.Ay.div({fontSize:20,lineHeight:"32px"}),StyledLink=(0,styled_components_browser_esm.Ay)("a")({fontSize:20,display:"inline-block",fontFamily:"Arial, sans-serif",marginTop:8,marginBottom:8}),LocalHeader=function LocalHeader(_ref){var breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,heading=_ref.heading,subheading=_ref.subheading,headingLink=_ref.headingLink,superheading=_ref.superheading,children=_ref.children,_ref$useReactRouter=_ref.useReactRouter,useReactRouter=void 0!==_ref$useReactRouter&&_ref$useReactRouter;return react.createElement(StyledHeader,{"aria-label":"local header","data-auto-id":"localHeader","data-test":"localHeader",role:"region"},react.createElement(StyledMain,null,react.createElement(BreadcrumbsWrapper,{"data-test":"breadcrumbs"},null==breadcrumbs?void 0:breadcrumbs.map((function(breadcrumb){return breadcrumb.link?useReactRouter&&"Home"!==breadcrumb.text?react.createElement(govuk_react_breadcrumbs_esm.A.Link,{as:dist.N_,key:breadcrumb.link,to:breadcrumb.link},breadcrumb.text):react.createElement(govuk_react_breadcrumbs_esm.A.Link,{key:breadcrumb.link,href:breadcrumb.link},breadcrumb.text):breadcrumb.text}))),react.createElement(FlashMessages.A,{flashMessages}),superheading&&react.createElement(StyledSuperheading,null,superheading),headingLink&&react.createElement(StyledLink,{"data-test":"heading-link",href:headingLink.url},headingLink.text),heading&&react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},heading),subheading&&react.createElement(LocalHeader_LocalSubHeader,{"data-test":"subheading"},subheading),children))};LocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),heading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),subheading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),headingLink:prop_types_default().shape({url:prop_types_default().string.isRequired,text:prop_types_default().string.isRequired}),superheading:prop_types_default().node,children:prop_types_default().node};const LocalHeader_LocalHeader=LocalHeader;LocalHeader.__docgenInfo={description:"The generic local header component.",methods:[],displayName:"LocalHeader",props:{useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},breadcrumbs:{description:"Contains the breadcrumbs",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},heading:{description:"Contains the heading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subheading:{description:"Contains the subheading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"Contains a link that appears above the heading",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},superheading:{description:"Contains an item that renders above the heading (in the same position as the headingLink)",type:{name:"node"},required:!1},children:{description:"Contains an item that renders below the heading",type:{name:"node"},required:!1}}}},"./src/client/components/LocalHeader/LocalHeaderHeading.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)("h1")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ","px;\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.iU.L,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.sO.bold)},"./src/client/components/LocalHeader/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props});var ID="flashMessages",state2props=function state2props(state){return state[ID]}},"./src/client/components/Main/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,w:()=>InnerContainer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 OuterContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("main")({paddingTop:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5,textAlign:"center"}),InnerContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_15__.Ay)("div")(_defineProperty(_defineProperty({maxWidth:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.DJ,marginLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,marginRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,textAlign:"left"},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.qs.LARGESCREEN,{marginLeft:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5,marginRight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_5}),"@media only screen and (min-width:1020px)",{margin:"0 auto"})),Main=function Main(_ref){var children=_ref.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_13__.createElement(OuterContainer,_extends({},props,{role:"main",id:"main-content","data-test":"bodyMainContent"}),react__WEBPACK_IMPORTED_MODULE_13__.createElement(InnerContainer,null,children))};Main.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node};const __WEBPACK_DEFAULT_EXPORT__=Main;Main.__docgenInfo={description:"The`<Main>`is a layout component which wraps content inside the`<main>`HTML tag, this component also contains a grid container which will center the content in the page with the appropriate gutters and responsive behaviour we expect from [our grid](https://design-system.service.gov.uk/styles/layout/).\n\nIt's important that we include this in all pages as the`<main>`represents the dominant content of the`<body>`of the document, this also acts as a landmark which can help assistive technologies.",methods:[],displayName:"Main",props:{children:{description:"Text for main",type:{name:"node"},required:!1}}}},"./src/client/components/Metadata/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Metadata});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledMetaWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  color: ",";\n"])),colours.Uv),StyledItemLabel=(0,styled_components_browser_esm.Ay)("span")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  color: ",";\n"])),colours.hM);function MetadataItem(_ref){var label=_ref.label,children=_ref.children;return react.createElement(StyledMetaWrapper,{"data-test":"metadata-item"},label&&react.createElement(StyledItemLabel,null,label)," ",children)}MetadataItem.propTypes={label:prop_types_default().string,children:prop_types_default().node.isRequired};const Metadata_MetadataItem=MetadataItem;var Metadata_templateObject;MetadataItem.__docgenInfo={description:"",methods:[],displayName:"MetadataItem",props:{label:{description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!0}}};var StyledMetadataWrapper=(0,styled_components_browser_esm.Ay)("div")(Metadata_templateObject||(Metadata_templateObject=function Metadata_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  line-height: ",";\n  display: grid;\n\n  & > * {\n    margin-bottom: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.SG.SIZE_27,govuk_react_constants_esm.Es.SCALE_1),Metadata=function Metadata(_ref){var rows=_ref.rows;return rows&&react.createElement(StyledMetadataWrapper,{"data-test":"metadata"},rows.map((function(_ref2){var label=_ref2.label,value=_ref2.value,key=_ref2.key;return react.createElement(Metadata_MetadataItem,{key:key||label,label},value)})))};Metadata.propTypes={rows:prop_types_default().arrayOf(prop_types_default().shape({label:prop_types_default().node,value:prop_types_default().node}))};const components_Metadata=Metadata;Metadata.__docgenInfo={description:"",methods:[],displayName:"Metadata",props:{rows:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"node",required:!1},value:{name:"node",required:!1}}}},required:!1}}}},"./src/client/components/MyInvestmentProjects/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,c:()=>TASK_GET_MY_INVESTMENTS_LIST,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _utils_date__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/date.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="myInvestmentProjects",TASK_GET_MY_INVESTMENTS_LIST="TASK_GET_MY_INVESTMENTS_LIST",state2props=function state2props(state){var financialYearStart=(0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.getFinancialYearStart)(new Date);return _objectSpread(_objectSpread({},state[ID]),{},{landDateOptions:[{name:"Show all",id:"all-land-dates"},{name:"Current year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart)),id:"".concat(financialYearStart)},{name:"Last year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart-1)),id:"".concat(financialYearStart-1)},{name:"Next year ".concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_15__.generateFinancialYearLabel)(financialYearStart+1)),id:"".concat(financialYearStart+1)}]})}},"./src/client/components/NewWindowLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__),_excluded=["href","children","showWarning"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var NewWindowLink=function NewWindowLink(_ref){var href=_ref.href,children=_ref.children,_ref$showWarning=_ref.showWarning,showWarning=void 0===_ref$showWarning||_ref$showWarning,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,_extends({"data-test":"newWindowLink",href,rel:"noreferrer noopener",target:"_blank"},rest),children,showWarning&&" (opens in new tab)")};NewWindowLink.propTypes={href:prop_types__WEBPACK_IMPORTED_MODULE_6___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_6___default().node,showWarning:prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool};const __WEBPACK_DEFAULT_EXPORT__=NewWindowLink;NewWindowLink.__docgenInfo={description:'When using a screen reader the aria-label attribute overrides\nthe link text entirely.\n\nWhen setting the aria-label ensure the text contains both\nmeaningful link text AND a warning.\n\n For example:\n<NewWindowLink\n href="tax-hike.html"\n aria-label="Read more about a HMRC tax hike (opens in new tab)"\n ...\n>\n Read more...\n</NewWindowLink>\n\nGDS recommends to use (opens in new tab) as part of the link and not to mention \'window\'.\nhttps://design-system.service.gov.uk/styles/typography/#links',methods:[],displayName:"NewWindowLink",props:{showWarning:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},href:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/NotificationAlert/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props,r:()=>TASK_GET_REMINDER_SUMMARY});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _lib_urls__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_15__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 ID="reminderSummary",TASK_GET_REMINDER_SUMMARY="TASK_GET_REMINDER_SUMMARY",state2props=function state2props(state){return _objectSpread(_objectSpread({},state[ID]),{},{remindersURL:_lib_urls__WEBPACK_IMPORTED_MODULE_15___default().reminders.index()})}},"./src/client/components/NotificationBadge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,or:()=>Size,y_:()=>Count,yp:()=>Shape});__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js"),Size={SMALL:20,MEDIUM:25},Shape=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.span((function(_ref){var size=_ref.size,digits=_ref.digits;return{display:"flex",justifyContent:"center",backgroundColor:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Bk,fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.sO.bold,height:size,width:digits<3?size:size+10,borderRadius:digits<3?"50%":"75px"}})),Count=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")({color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.UE,alignSelf:"center",fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_14}),NotificationBadge=function NotificationBadge(_ref2){var value=_ref2.value,_ref2$size=_ref2.size,size=void 0===_ref2$size?Size.MEDIUM:_ref2$size;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(Shape,{size,digits:value.toString().length,"aria-label":value,"data-test":"notification-badge"},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Count,null,value<100?value:"99+"))};NotificationBadge.propTypes={value:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number};const __WEBPACK_DEFAULT_EXPORT__=NotificationBadge;NotificationBadge.__docgenInfo={description:"",methods:[],displayName:"NotificationBadge",props:{size:{defaultValue:{value:"25",computed:!1},required:!1},value:{description:"Badge value",type:{name:"number"},required:!1}}}},"./src/client/components/Pagination/RoutedPagination.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/index.js"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js"),_constants__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Pagination/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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)||_unsupportedIterableToArray(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 _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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledNav=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("nav")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  text-align: center;\n  line-height: 1;\n  display: flex;\n  justify-content: space-around;\n  padding: "," 0;\n\n  "," {\n    display: block;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_3,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET),StyledPaginationList=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  width: 100%;\n  margin: 0;\n  list-style: none;\n  padding: 0;\n  display: flex;\n  justify-content: space-between;\n\n  "," {\n    display: block;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET),StyledPaginationPiece=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)("li")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: none;\n  &:first-child,\n  &:last-child {\n    display: inline-block;\n  }\n  &:first-child {\n    margin-right: auto;\n  }\n  &:last-child {\n    margin-left: auto;\n  }\n\n  "," {\n    display: inline-block;\n\n    & + & {\n      margin-left: ",";\n      margin-bottom: ",";\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1),StyledPaginationLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_26__.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  &:link {\n    cursor: pointer;\n    font-weight: bold;\n    font-size: ",";\n    display: inline-block;\n    padding: "," 12px;\n    line-height: 1.9em;\n    text-decoration: underline;\n    text-decoration-thickness: max(1px, 0.0625rem);\n    :hover {\n      background-color: ",";\n      text-decoration-thickness: max(3px, 0.1875rem, 0.12em);\n    }\n    ","\n    ","\n    "," {\n      ","\n    }\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.Es.SCALE_1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.WS,(function(_ref){return _ref.$isActive?"\n        color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.UE,";\n        background-color: ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        :hover {\n          background-color: ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        }\n       "):"\n        color: ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__.yV,";\n        background-color: transparent;\n      ")}),(function(props){return props["data-page-number"]&&"display: none;"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__.qs.TABLET,(function(props){return props["data-page-number"]&&"display: block;"})),Pagination=function Pagination(_ref2){var items=_ref2.items,_ref2$pageSize=_ref2.pageSize,pageSize=void 0===_ref2$pageSize?10:_ref2$pageSize,_ref2$onChangePage=_ref2.onChangePage,onChangePage=void 0===_ref2$onChangePage?function(){}:_ref2$onChangePage,_ref2$initialPage=_ref2.initialPage,initialPage=void 0===_ref2$initialPage?1:_ref2$initialPage,linkRefs=(0,react__WEBPACK_IMPORTED_MODULE_24__.useRef)([]),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_24__.useState)({}),2),pager=_useState2[0],setPagerState=_useState2[1],pages=pager.pages,totalPages=pager.totalPages,currentPage=pager.currentPage;(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){items&&setPage(initialPage)}),[items]),(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){linkRefs.current.map((function(link){return parseInt(null==link?void 0:link.dataset.pageNumber,10)===currentPage&&link.focus()})),window.scrollTo({top:0})}),[currentPage]);var setPage=function setPage(page){if(!(page<1||page>totalPages)){var newPager=getPager(items,page,pageSize);setPagerState(newPager),onChangePage(newPager)}},getPager=function getPager(totalItems,currentPage,pageSize){currentPage=currentPage||1,pageSize=pageSize||10;var totalPages=Math.ceil(totalItems/pageSize),_getStartAndEndPage=function getStartAndEndPage(totalPages,currentPage){var startPage,endPage;return totalPages<=10?(startPage=1,endPage=totalPages):currentPage<=6?(startPage=1,endPage=10):currentPage+4>=totalPages?(startPage=totalPages-9,endPage=totalPages):(startPage=currentPage-5,endPage=currentPage+4),{startPage,endPage}}(totalPages,currentPage),startPage=_getStartAndEndPage.startPage,endPage=_getStartAndEndPage.endPage,startIndex=(currentPage-1)*pageSize,endIndex=Math.min(startIndex+pageSize-1,totalItems-1),pages=_toConsumableArray(Array(endPage+1-startPage).keys()).map((function(i){return startPage+i}));return{totalItems,currentPage,pageSize,totalPages,startPage,endPage,startIndex,endIndex,pages}},navigate=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.Zp)(),location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),qsParams=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1)),handleOnClick=function handleOnClick(pageNumber,e){e.preventDefault(),setPage(pageNumber),navigate({search:qs__WEBPACK_IMPORTED_MODULE_30___default().stringify(_objectSpread(_objectSpread({},qsParams),{},{page:pageNumber}))})};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,null,(null==pages?void 0:pages.length)>1?react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledNav,{"data-test":"pagination","aria-label":"Pagination: total ".concat(totalPages),"data-total-pages":totalPages},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationList,null,1!==currentPage&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage-1,e)},"data-test":"previous",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Qp)),pages.map((function(page,index){var isActive=currentPage===page;return react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,{key:index},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{$isActive:isActive,onClick:function onClick(e){return handleOnClick(page,e)},"data-page-number":page,"data-test":"".concat(isActive&&"page-number-active"),"aria-label":"Page ".concat(page),"aria-current":!!isActive&&"page",ref:function ref(el){return linkRefs.current[index]=el},href:"#"},page))})),currentPage!==totalPages&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage+1,e)},"data-test":"next",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Cy)))):null)};Pagination.propTypes={items:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number.isRequired,onChangePage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().func,initialPage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number};const __WEBPACK_DEFAULT_EXPORT__=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{pageSize:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1},onChangePage:{defaultValue:{value:"() => {}",computed:!1},description:"",type:{name:"func"},required:!1},initialPage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},items:{description:"",type:{name:"number"},required:!0}}}},"./src/client/components/Pagination/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cn:()=>PAGINATION_PIECE_PAGE_NUMBER,Cy:()=>PAGINATION_PIECE_NEXT,Qp:()=>PAGINATION_PIECE_PREVIOUS,RP:()=>DEFAULT_MAX_PAGE_NUMBER_LINKS,i7:()=>PAGINATION_PIECE_ELLIPSIS});var PAGINATION_PIECE_PREVIOUS="Previous",PAGINATION_PIECE_ELLIPSIS="ellipsis",PAGINATION_PIECE_PAGE_NUMBER="page-number",PAGINATION_PIECE_NEXT="Next",DEFAULT_MAX_PAGE_NUMBER_LINKS=5},"./src/client/components/Pagination/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Pagination});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),constants=__webpack_require__("./src/client/components/Pagination/constants.js");const Pagination_computeVisiblePieces=function computeVisiblePieces(numberOfPages,activePage){var maxPageNumbers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:constants.RP,visiblePieces=[],lowerLimit=activePage,upperLimit=Math.min(activePage,numberOfPages);visiblePieces.push({type:constants.Qp,pageNumber:Math.max(1,activePage-1),isDisabled:1===activePage});for(var i=1;i<maxPageNumbers&&i<numberOfPages;)lowerLimit>1&&(lowerLimit-=1,i+=1),i<maxPageNumbers&&upperLimit<numberOfPages&&(upperLimit+=1,i+=1);lowerLimit>1&&(visiblePieces.push({type:constants.Cn,pageNumber:1,isActive:1===activePage}),activePage>4&&visiblePieces.push({type:constants.i7}));for(var _i=lowerLimit;_i<=upperLimit;_i+=1)visiblePieces.push({type:constants.Cn,pageNumber:_i,isActive:activePage===_i});return activePage<numberOfPages-2&&numberOfPages>maxPageNumbers&&(visiblePieces.push({type:constants.i7}),visiblePieces.push({type:constants.Cn,pageNumber:numberOfPages,isActive:activePage===numberOfPages})),visiblePieces.push({type:constants.Cy,pageNumber:Math.min(numberOfPages,activePage+1),isDisabled:activePage===numberOfPages}),visiblePieces};var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledNav=(0,styled_components_browser_esm.Ay)("nav")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  text-align: center;\n  line-height: 1;\n  display: flex;\n  justify-content: space-around;\n  padding: "," 0;\n\n  "," {\n    display: block;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.TABLET),StyledPaginationList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  margin: 0;\n  list-style: none;\n"]))),StyledPaginationPiece=(0,styled_components_browser_esm.Ay)("li")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: inline-block;\n\n  & + & {\n    margin-left: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_1),StyledPaginationLink=(0,styled_components_browser_esm.Ay)(govuk_react_link_esm.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  font-weight: bold;\n  font-size: ",";\n  display: inline-block;\n  padding: "," ",";\n  line-height: 1.9em;\n  color: ",";\n  text-decoration: none;\n\n  :hover {\n    background-color: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,colours.yV,colours.WS),StyledActivePaginationLink=(0,styled_components_browser_esm.Ay)(StyledPaginationLink)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n  :link {\n    color: ",";\n    background-color: ",";\n  }\n"])),colours.UE,colours.ft),StyledPagesTruncation=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  font-weight: bold;\n  font-size: ",";\n  display: inline-block;\n  padding: ",";\n  background-color: transparent;\n  line-height: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.SG.SIZE_24,colours.IC);function Pagination(_ref){var totalPages=_ref.totalPages,_ref$activePage=_ref.activePage,activePage=void 0===_ref$activePage?1:_ref$activePage,_ref$getPageUrl=_ref.getPageUrl,getPageUrl=void 0===_ref$getPageUrl?function(){return"#"}:_ref$getPageUrl,onPageClick=_ref.onPageClick,visiblePieces=Pagination_computeVisiblePieces(totalPages,activePage);return totalPages<2?null:react.createElement(StyledNav,{"data-test":"pagination","data-total-pages":totalPages,"aria-label":"pagination: total ".concat(totalPages," pages")},react.createElement(StyledPaginationList,null,visiblePieces.map((function(_ref2,index){var type=_ref2.type,pageNumber=_ref2.pageNumber,isActive=_ref2.isActive,isDisabled=_ref2.isDisabled,key="".concat(type,"-").concat(index),onClick=function onClick(event){event.target.blur(),event.preventDefault(),onPageClick(pageNumber,event),window.scrollTo({top:0})},PageNumberLink=isActive?StyledActivePaginationLink:StyledPaginationLink;return isDisabled?null:react.createElement(StyledPaginationPiece,{key},type===constants.Qp&&react.createElement(StyledPaginationLink,{"data-test":"prev",onClick,href:getPageUrl(pageNumber)},"Previous"),type===constants.i7&&react.createElement(StyledPagesTruncation,{"data-test":"ellipsis"},"…"),type===constants.Cn&&react.createElement(PageNumberLink,{"data-test":isActive?"page-number-active":"page-number","data-page-number":pageNumber,"aria-label":"Page ".concat(pageNumber),"aria-current":!!isActive&&"page",onClick,href:getPageUrl(pageNumber)},pageNumber),type===constants.Cy&&react.createElement(StyledPaginationLink,{"data-test":"next",onClick,href:getPageUrl(pageNumber)},"Next"))}))))}Pagination.propTypes={totalPages:prop_types_default().number.isRequired,activePage:prop_types_default().number,onPageClick:prop_types_default().func,getPageUrl:prop_types_default().func};const components_Pagination=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{activePage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},getPageUrl:{defaultValue:{value:"() => '#'",computed:!1},description:"",type:{name:"func"},required:!1},totalPages:{description:"",type:{name:"number"},required:!0},onPageClick:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Panel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_24__),styled_components__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["title","children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 focusMixin={":focus":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft}},hoverMixin={color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Cu},StyledPanel=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("div")({padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_4,color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE,backgroundColor:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft,a:_objectSpread(_objectSpread({":link":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE},":visited":{color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.UE},":hover":hoverMixin},focusMixin),{},{":active":_objectSpread(_objectSpread({},hoverMixin),focusMixin)})}),StyledTitle=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("h2")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-size: ",";\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__.Il.font({size:19,weight:"bold"})),StyledBody=(0,styled_components__WEBPACK_IMPORTED_MODULE_23__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  font-size: ",";\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__.Il.font({size:16})),Panel=function Panel(_ref){var title=_ref.title,children=_ref.children,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledPanel,rest,react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledTitle,null,title),children&&react__WEBPACK_IMPORTED_MODULE_19__.createElement(StyledBody,null,children))};Panel.propTypes={title:prop_types__WEBPACK_IMPORTED_MODULE_24___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_24___default().element};const __WEBPACK_DEFAULT_EXPORT__=Panel;Panel.__docgenInfo={description:"Making it easier for users to notice and find help content / DH updates",methods:[],displayName:"Panel",props:{title:{description:"Text for title",type:{name:"string"},required:!1},children:{description:"Text for panel",type:{name:"element"},required:!1}}}},"./src/client/components/PersonalisedDashboard/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$F:()=>CHECK_FOR_MY_TASKS_ID,I4:()=>DATA_HUB_FEED_ID,ID:()=>ID});var ID="checkInvestmentProjects",DATA_HUB_FEED_ID="checkDataHubFeed",CHECK_FOR_MY_TASKS_ID="checkForMyTasks"},"./src/client/components/ProgressIndicator.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/InlineIcon/index.js"),StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay.div({textAlign:"center"}),StyledLoadingBox=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__.A)({height:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginTop:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_3}),ProgressIndicator=function ProgressIndicator(_ref){var noun=_ref.noun,_ref$message=_ref.message,message=void 0===_ref$message?"Loading ".concat(noun):_ref$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledRoot,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLoadingBox,{loading:!0}),message&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,message))};ProgressIndicator.Inline=function(_ref2){var noun=_ref2.noun,_ref2$message=_ref2.message,message=void 0===_ref2$message?"Loading ".concat(noun):_ref2$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_4__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__.y$,null))," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{opacity:.3}},message))};const __WEBPACK_DEFAULT_EXPORT__=ProgressIndicator;ProgressIndicator.__docgenInfo={description:"@function ProgressIndicator\n@description A progress indicator\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered underneath the spinner icon.\n@returns {JSX.Element}",methods:[{name:"Inline",docblock:"@function ProgressIndicator.Inline\n@description A progress indicator designed to be rendered nicely in any\ninline context.\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered next to the spinner icon.\n@returns {JSX.Element}",modifiers:["static"],params:[{name:"{ noun, message = `Loading ${noun}` }",optional:!1}],returns:null,description:null}],displayName:"ProgressIndicator",props:{}}},"./src/client/components/ProtectedLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),ProtectedLink=function ProtectedLink(_ref){var module=_ref.module,modulePermissions=_ref.modulePermissions,_ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return null!=modulePermissions&&modulePermissions.includes(module)?children:null};ProtectedLink.propTypes={module:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string.isRequired,modulePermissions:prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string).isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().element};const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)((function(state){return state}))(ProtectedLink)},"./src/client/components/ReadMore/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),styled_components__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_ButtonLink__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/ButtonLink/index.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var StyledButtonLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_17__.Ay)(_ButtonLink__WEBPACK_IMPORTED_MODULE_16__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  margin: 0;\n  display: inline-block;\n  padding: 0;\n  width: auto;\n  border: none;\n  vertical-align: baseline;\n  &::before {\n    display: none;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.SG.SIZE_16),ReadMore=function ReadMore(_ref){var text=_ref.text,_ref$count=_ref.count,count=void 0===_ref$count?255:_ref$count,_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_14__.useState)(!1),2),showingAll=_useState2[0],setIsShowingAll=_useState2[1];return text?text.length<count?text:react__WEBPACK_IMPORTED_MODULE_14__.createElement(react__WEBPACK_IMPORTED_MODULE_14__.Fragment,null,showingAll?text:text.slice(0,count).split(" ").slice(0,-1).join(" ")+"..."," ",react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledButtonLink,{onClick:function onClick(){return setIsShowingAll(!showingAll)}},showingAll?"Show Less":"Read More")):null};ReadMore.propTypes={text:prop_types__WEBPACK_IMPORTED_MODULE_18___default().string.isRequired,count:prop_types__WEBPACK_IMPORTED_MODULE_18___default().number};const __WEBPACK_DEFAULT_EXPORT__=ReadMore;ReadMore.__docgenInfo={description:"For truncating content with a link to read more.",methods:[],displayName:"ReadMore",props:{count:{defaultValue:{value:"255",computed:!1},description:"Specifies a custom character count to truncate content",type:{name:"number"},required:!1},text:{description:"The content to truncate",type:{name:"string"},required:!0}}}},"./src/client/components/ReferralList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ReferralList});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),govuk_react_hint_text_esm=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),pluralize=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize_default=__webpack_require__.n(pluralize),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),ContentWithHeading=__webpack_require__("./src/client/components/ContentWithHeading.jsx"),govuk_react_ordered_list_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/@govuk-react/ordered-list/dist/govuk-react-ordered-list.esm.js")),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledOL=(0,styled_components_browser_esm.Ay)(govuk_react_ordered_list_esm.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  & > * {\n    margin-top: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_4);function StyledOrderedList(_ref){var children=_ref.children;return react.createElement(StyledOL,{listStyleType:"none"},children)}const components_StyledOrderedList=StyledOrderedList;StyledOrderedList.__docgenInfo={description:"",methods:[],displayName:"StyledOrderedList"};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),govuk_react_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),colours=__webpack_require__("./src/client/utils/colours.js"),react_redux=(__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs")),govuk_react_details_esm=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),url=__webpack_require__("./node_modules/url/url.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),client_state=__webpack_require__("./src/apps/companies/apps/referrals/details/client/state.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),components=__webpack_require__("./src/client/components/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["referrerUrl"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 format=__webpack_require__("./src/client/utils/date.js").format,AdviserDetails=function AdviserDetails(_ref){var name=_ref.name,email=_ref.email,team=_ref.team;return react.createElement(react.Fragment,null,name,email&&react.createElement(react.Fragment,null,", ",react.createElement("a",{href:"mailto:".concat(email)},email)),team&&react.createElement(react.Fragment,null,", ",team))};AdviserDetails.propTypes={name:prop_types_default().string.isRequired,email:prop_types_default().string,team:prop_types_default().string};(0,react_redux.connect)((function(_ref2){var referrerUrl=_ref2.referrerUrl;return _objectSpread(_objectSpread({},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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded)[client_state.ID]),{},{referrerUrl})}))((function(_ref3){var subject=_ref3.subject,referralId=_ref3.referralId,company=_ref3.company,contact=_ref3.contact,sendingAdviser=_ref3.sendingAdviser,receivingAdviser=_ref3.receivingAdviser,date=_ref3.date,notes=_ref3.notes,completed=_ref3.completed,interaction=_ref3.interaction,referrerUrl=_ref3.referrerUrl,cameFromHomePage=url.parse(referrerUrl).pathname===urls_default().companies.referrals.list();return react.createElement(Task.A.Status,{name:"Referral details",id:"referralDetails",progressMessage:"loading referral details",startOnRender:{payload:referralId,onSuccessDispatch:actions.Vmx}},(function(){return company&&react.createElement(react.Fragment,null,react.createElement(components.bD,{caption:subject},react.createElement(components.bD.Row,{heading:"Company"},react.createElement(govuk_react_link_esm.A,{href:urls_default().companies.detail(company.id)},company.name)),contact&&react.createElement(components.bD.Row,{heading:"Contact"},react.createElement(govuk_react_link_esm.A,{href:urls_default().contacts.contact(contact.id)},contact.name)),react.createElement(components.bD.Row,{heading:"Sending adviser"},sendingAdviser&&react.createElement(AdviserDetails,sendingAdviser)),react.createElement(components.bD.Row,{heading:"Receiving adviser"},receivingAdviser&&react.createElement(AdviserDetails,receivingAdviser)),react.createElement(components.bD.Row,{heading:"Date of referral"},format(date)),react.createElement(components.bD.Row,{heading:"Notes"},notes)),completed?react.createElement(components.bD,{caption:"Referral accepted"},react.createElement(components.bD.Row,{heading:"Date"},format(completed.on)),react.createElement(components.bD.Row,{heading:"By"},react.createElement(AdviserDetails,completed.by)),react.createElement(components.bD.Row,{heading:"With interaction"},react.createElement(govuk_react_link_esm.A,{href:urls_default().interactions.detail(interaction.id)},interaction.subject))):react.createElement(react.Fragment,null,react.createElement(govuk_react_details_esm.A,{summary:"Why can I not edit the referral?"},react.createElement("p",null,"For now, you can't edit the referral once it's been sent."),react.createElement("p",null,"Contact the recipient if something's changed.")),react.createElement(components.IY,null,react.createElement(govuk_react_button_esm.A,{as:"a",href:urls_default().companies.referrals.interactions.create(company.id,referralId)},"Accept referral"),react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companies.referrals.help(company.id,referralId)},"I cannot accept the referral"),react.createElement(govuk_react_link_esm.A,{href:cameFromHomePage?urls_default().companies.referrals.list():urls_default().companies.detail(company.id)},"Back"))))}))}));AdviserDetails.__docgenInfo={description:"",methods:[],displayName:"AdviserDetails",props:{name:{description:"",type:{name:"string"},required:!0},email:{description:"",type:{name:"string"},required:!1},team:{description:"",type:{name:"string"},required:!1}}};var Card_templateObject;__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.reflect.construct.js");function Card_typeof(o){return Card_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},Card_typeof(o)}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Card_toPropertyKey(o.key),o)}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(t,e){if(e&&("object"==Card_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function Card_defineProperty(e,r,t){return(r=Card_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Card_toPropertyKey(t){var i=function Card_toPrimitive(t,r){if("object"!=Card_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Card_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Card_typeof(i)?i:i+""}var CardContainer=(0,styled_components_browser_esm.Ay)("div")(Card_templateObject||(Card_templateObject=function Card_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  padding: ",";\n"])),(function(_ref){return _ref.isUpcoming?"1px dashed ".concat(colours.Pe):"1px solid ".concat(colours.Pe)}),govuk_react_constants_esm.Es.SCALE_3),Card=function(_React$PureComponent){function Card(){return function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}(this,Card),_callSuper(this,Card,arguments)}return function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}(Card,_React$PureComponent),function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(Card,[{key:"render",value:function render(){var _this$props=this.props,isUpcoming=_this$props.isUpcoming,children=_this$props.children;return react.createElement(CardContainer,{isUpcoming},children)}}])}(react.PureComponent);Card_defineProperty(Card,"propTypes",{isUpcoming:prop_types_default().bool,children:prop_types_default().node}),Card_defineProperty(Card,"defaultProps",{isUpcoming:!1,children:null}),Card.__docgenInfo={description:"",methods:[],displayName:"Card",props:{isUpcoming:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},children:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var CardDetails_templateObject,Analytics=__webpack_require__("./src/client/components/Analytics/index.jsx");function CardDetails_typeof(o){return CardDetails_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},CardDetails_typeof(o)}function CardDetails_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,CardDetails_toPropertyKey(o.key),o)}}function CardDetails_callSuper(t,o,e){return o=CardDetails_getPrototypeOf(o),function CardDetails_possibleConstructorReturn(t,e){if(e&&("object"==CardDetails_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function CardDetails_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,CardDetails_isNativeReflectConstruct()?Reflect.construct(o,e||[],CardDetails_getPrototypeOf(t).constructor):o.apply(t,e))}function CardDetails_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(CardDetails_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function CardDetails_getPrototypeOf(t){return CardDetails_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CardDetails_getPrototypeOf(t)}function CardDetails_setPrototypeOf(t,e){return CardDetails_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CardDetails_setPrototypeOf(t,e)}function CardDetails_defineProperty(e,r,t){return(r=CardDetails_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CardDetails_toPropertyKey(t){var i=function CardDetails_toPrimitive(t,r){if("object"!=CardDetails_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CardDetails_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CardDetails_typeof(i)?i:i+""}var GovUkDetails=(0,styled_components_browser_esm.Ay)(govuk_react_details_esm.A)(CardDetails_templateObject||(CardDetails_templateObject=function CardDetails_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n  margin: "," 0 0;\n\n  & > div {\n    padding: ",";\n    padding-bottom: ",";\n    margin: "," 0 "," 4px;\n\n    & > a {\n      padding: "," 0 "," ",";\n    }\n  }\n\n  "," {\n    margin-top: -",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3),CardDetails=function(_React$PureComponent){function CardDetails(){var _this;!function CardDetails_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}(this,CardDetails);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return CardDetails_defineProperty(_this=CardDetails_callSuper(this,CardDetails,[].concat(args)),"renderLink",(function(link){return link?react.createElement(govuk_react_link_esm.A,{href:link.url},link.text):null})),_this}return function CardDetails_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CardDetails_setPrototypeOf(t,e)}(CardDetails,_React$PureComponent),function CardDetails_createClass(e,r,t){return r&&CardDetails_defineProperties(e.prototype,r),t&&CardDetails_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(CardDetails,[{key:"render",value:function render(){var _this2=this,_this$props=this.props,summary=_this$props.summary,showDetails=_this$props.showDetails,link=_this$props.link,children=_this$props.children,summaryVisuallyHidden=_this$props.summaryVisuallyHidden,analyticsAccordionType=_this$props.analyticsAccordionType,SummaryWithHiddenContent=react.createElement(react.Fragment,null,summary,react.createElement(govuk_react_esm.s6,null,summaryVisuallyHidden));return react.createElement(Analytics.A,null,(function(pushAnalytics){return react.createElement(GovUkDetails,{summary:summaryVisuallyHidden?SummaryWithHiddenContent:summary,open:showDetails,onClick:function onClick(){pushAnalytics({event:"viewInteractionEngagement",extra:{accordionEngagement:"clicked",accordionType:analyticsAccordionType}})}},children,_this2.renderLink(link))}))}}])}(react.PureComponent);CardDetails_defineProperty(CardDetails,"propTypes",{summary:prop_types_default().string.isRequired,summaryVisuallyHidden:prop_types_default().string,showDetails:prop_types_default().bool.isRequired,link:prop_types_default().shape({url:prop_types_default().string,text:prop_types_default().string}),children:prop_types_default().node.isRequired,analyticsAccordionType:prop_types_default().string}),CardDetails_defineProperty(CardDetails,"defaultProps",{link:null}),CardDetails.__docgenInfo={description:"",methods:[{name:"renderLink",docblock:null,modifiers:[],params:[{name:"link",optional:!1,type:null}],returns:null}],displayName:"CardDetails",props:{link:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"shape",value:{url:{name:"string",required:!1},text:{name:"string",required:!1}}},required:!1},summary:{description:"",type:{name:"string"},required:!0},summaryVisuallyHidden:{description:"",type:{name:"string"},required:!1},showDetails:{description:"",type:{name:"bool"},required:!0},children:{description:"",type:{name:"node"},required:!0},analyticsAccordionType:{description:"",type:{name:"string"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_list_item_esm=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),Badge=__webpack_require__("./src/client/components/Badge/index.jsx");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}colours.AV,colours.ft,colours.ft,colours.Bk,colours.AV,colours.AV,colours.ft;var SOURCE_TYPES={external:"externalDataSource"};constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty({"Account Management":"Account Management","A Specific Service":"Specific Service","A Specific DBT Export Service or Funding":"Service or Funding",COP26:"COP26","Enquiry received":"Enquiry","Enquiry or Referral Received":"Enquiry or Referral",Events:"Event","Export Win":"Export Win","Global Investment Summit (2021)":"Global Investment Summit (2021)","Investment Enquiry":"Enquiry","Investment - IST Aftercare Offered (IST use only)":"IST Aftercare","Investment - Services":"Service","IST Specific Service":"IST Service","Proposition Development":"Proposition Development","Trade Agreement Implementation Activity":"Implementation","GREAT - Unicorn Kingdom Campaign - North America (2023)":"GREAT - Unicorn Kingdom Campaign","Account management":"Account management","Specific service":"Specific service","DBT export service or funding":"DBT export service or funding"},"Enquiry received","Enquiry"),"Enquiry or referral","Enquiry or referral"),"Export win","Export win"),"Global Investment Summit (2021)","Global Investment Summit (2021)"),"Investment Enquiry","Enquiry"),"Investment - IST aftercare offered (IST use only)","IST Aftercare"),"Investment - services","Service"),"IST service","IST service"),"Proposition development","Proposition development"),"Trade agreement implementation activity","Implementation");var CardHeader_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function CardHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var CardHeader_format=__webpack_require__("./src/client/utils/date.js").format,StyledBlockText=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(CardHeader_templateObject||(CardHeader_templateObject=CardHeader_taggedTemplateLiteral(["\n  display: inline-block;\n  font-weight: normal;\n  color: white;\n  padding: 2px 5px;\n  background-color: ",";\n  margin-bottom: ",";\n"])),(function(_ref){return _ref.sourceType===SOURCE_TYPES.external?colours.IC:colours.ft}),govuk_react_constants_esm.Es.SCALE_2),StyledCardHeader=(0,styled_components_browser_esm.Ay)("div")(_templateObject2||(_templateObject2=CardHeader_taggedTemplateLiteral(["\n  display: flex;\n  flex-flow: row wrap;\n"]))),StyledCompanyName=(0,styled_components_browser_esm.Ay)("div")(_templateObject3||(_templateObject3=CardHeader_taggedTemplateLiteral(["\n  margin: -"," -"," "," -",";\n  padding: "," ",";\n  background: ",";\n  font-size: initial;\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_3,colours.P1),StyledHeadingWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=CardHeader_taggedTemplateLiteral(["\n  width: 100%;\n\n  "," {\n    width: 0;\n    flex-grow: 1;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject5||(_templateObject5=CardHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n  font-size: ","px;\n\n  & > a:link,\n  a:visited,\n  a:hover,\n  a:active {\n    text-decoration: none;\n    color: ",";\n  }\n\n  "," {\n    margin-bottom: ",";\n  }\n"])),govuk_react_constants_esm.iU.MEDIUM,colours.ft,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_5),StyledSubHeading=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=CardHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n  font-size: ","px;\n  margin-left: ","px;\n  color: ",";\n"])),govuk_react_constants_esm._m.MEDIUM,govuk_react_constants_esm.Ge[1],colours.IC),StyledMetaItems=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=CardHeader_taggedTemplateLiteral(["\n  list-style: none;\n  padding: 0;\n  margin: 0;\n\n  li {\n    font-size: ",";\n    margin-bottom: ",";\n    text-align: right;\n    display: inline;\n\n    "," {\n      display: block;\n    }\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET),CardHeader=function CardHeader(_ref2){var blockText=_ref2.blockText,subHeading=_ref2.subHeading,company=_ref2.company,sourceType=_ref2.sourceType,heading=_ref2.heading,startTime=_ref2.startTime,badge=_ref2.badge,_ref2$headingLevel=_ref2.headingLevel,headingLevel=void 0===_ref2$headingLevel?3:_ref2$headingLevel;return react.createElement(react.Fragment,null,company&&company.name&&react.createElement(StyledCompanyName,null,company.name),react.createElement(StyledCardHeader,null,react.createElement(StyledHeadingWrapper,null,blockText&&react.createElement(StyledBlockText,{sourceType},blockText),subHeading&&react.createElement(StyledSubHeading,null,subHeading),heading&&react.createElement(StyledHeading,{level:headingLevel},heading)),react.createElement(StyledMetaItems,null,startTime&&react.createElement(govuk_react_list_item_esm.A,null,CardHeader_format(startTime)),badge&&react.createElement(govuk_react_list_item_esm.A,null,react.createElement(Badge.A,{borderColour:badge.borderColour},badge.text)))))};CardHeader.propTypes={startTime:prop_types_default().string,heading:prop_types_default().node,blockText:prop_types_default().string,subHeading:prop_types_default().string,company:prop_types_default().shape({name:prop_types_default().string}),sourceType:prop_types_default().oneOf(Object.values(SOURCE_TYPES)),badge:prop_types_default().shape({text:prop_types_default().string,borderColour:prop_types_default().string})};const card_CardHeader=CardHeader;CardHeader.__docgenInfo={description:"",methods:[],displayName:"CardHeader",props:{headingLevel:{defaultValue:{value:"3",computed:!1},required:!1},startTime:{description:"",type:{name:"string"},required:!1},heading:{description:"",type:{name:"node"},required:!1},blockText:{description:"",type:{name:"string"},required:!1},subHeading:{description:"",type:{name:"string"},required:!1},company:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1}}},required:!1},sourceType:{description:"",type:{name:"enum",value:[{value:'"externalDataSource"',computed:!1}]},required:!1},badge:{description:"",type:{name:"shape",value:{text:{name:"string",required:!1},borderColour:{name:"string",required:!1}}},required:!1}}};var CardTable_templateObject,govuk_react_table_esm=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js");function CardTable_typeof(o){return CardTable_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},CardTable_typeof(o)}function CardTable_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function CardTable_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,CardTable_toPropertyKey(o.key),o)}}function CardTable_createClass(e,r,t){return r&&CardTable_defineProperties(e.prototype,r),t&&CardTable_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CardTable_callSuper(t,o,e){return o=CardTable_getPrototypeOf(o),function CardTable_possibleConstructorReturn(t,e){if(e&&("object"==CardTable_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function CardTable_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,CardTable_isNativeReflectConstruct()?Reflect.construct(o,e||[],CardTable_getPrototypeOf(t).constructor):o.apply(t,e))}function CardTable_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(CardTable_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function CardTable_getPrototypeOf(t){return CardTable_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CardTable_getPrototypeOf(t)}function CardTable_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CardTable_setPrototypeOf(t,e)}function CardTable_setPrototypeOf(t,e){return CardTable_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CardTable_setPrototypeOf(t,e)}function CardTable_defineProperty(e,r,t){return(r=CardTable_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CardTable_toPropertyKey(t){var i=function CardTable_toPrimitive(t,r){if("object"!=CardTable_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CardTable_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CardTable_typeof(i)?i:i+""}var GovUkTable=(0,styled_components_browser_esm.Ay)(govuk_react_table_esm.A)(CardTable_templateObject||(CardTable_templateObject=function CardTable_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    margin-bottom: ",";\n  }\n\n  th {\n    width: ",";\n  }\n\n  th,\n  td {\n    font-weight: normal;\n    border: 0;\n    padding: ",";\n    font-size: 16px;\n    vertical-align: top;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,(function(_ref){return _ref.isNotWrappedInDetails?"0":govuk_react_constants_esm.Es.SCALE_2}),(function(_ref2){return _ref2.isNotWrappedInDetails?"284px":"270px"}),govuk_react_constants_esm.Es.SCALE_2),DetailsRow=function(_React$PureComponent){function DetailsRow(){return CardTable_classCallCheck(this,DetailsRow),CardTable_callSuper(this,DetailsRow,arguments)}return CardTable_inherits(DetailsRow,_React$PureComponent),CardTable_createClass(DetailsRow,[{key:"render",value:function render(){var _this$props=this.props,header=_this$props.header,children=_this$props.children;return children?react.createElement(govuk_react_table_esm.A.Row,null,react.createElement(govuk_react_table_esm.A.CellHeader,{style:{fontWeight:"normal",border:0}},header),react.createElement(govuk_react_table_esm.A.Cell,{style:{border:0}},children)):null}}])}(react.PureComponent);CardTable_defineProperty(DetailsRow,"propTypes",{header:prop_types_default().string.isRequired,children:prop_types_default().node}),CardTable_defineProperty(DetailsRow,"defaultProps",{children:null});var CardTable=function(_React$Component){function CardTable(){return CardTable_classCallCheck(this,CardTable),CardTable_callSuper(this,CardTable,arguments)}return CardTable_inherits(CardTable,_React$Component),CardTable_createClass(CardTable,[{key:"render",value:function render(){var _this$props2=this.props,rows=_this$props2.rows,isNotWrappedInDetails=_this$props2.isNotWrappedInDetails;return react.createElement(GovUkTable,{isNotWrappedInDetails},rows.map((function(_ref3){var header=_ref3.header,content=_ref3.content,hasReadmore=_ref3.hasReadmore;return react.createElement(DetailsRow,{header,key:header},hasReadmore?react.createElement(components.vv,{text:content}):content)})))}}])}(react.Component);CardTable_defineProperty(CardTable,"propTypes",{isNotWrappedInDetails:prop_types_default().bool,rows:prop_types_default().arrayOf(prop_types_default().shape({header:prop_types_default().string,content:prop_types_default().node})).isRequired}),CardTable_defineProperty(CardTable,"defaultProps",{isNotWrappedInDetails:!1}),CardTable.__docgenInfo={description:"",methods:[],displayName:"CardTable",props:{isNotWrappedInDetails:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},rows:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{header:{name:"string",required:!1},content:{name:"node",required:!1}}}},required:!0}}};var CardDetailsList_templateObject,CardDetailsList_templateObject2,govuk_react_unordered_list_esm=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js");function CardDetailsList_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(CardDetailsList_templateObject||(CardDetailsList_templateObject=CardDetailsList_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledListItem=(0,styled_components_browser_esm.Ay)(govuk_react_list_item_esm.A)(CardDetailsList_templateObject2||(CardDetailsList_templateObject2=CardDetailsList_taggedTemplateLiteral(["\n  "," {\n    font-size: 16px;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),CardDetailsList=function CardDetailsList(_ref){var items=_ref.items,itemRenderer=_ref.itemRenderer,itemPropName=_ref.itemPropName;return react.createElement(StyledUnorderedList,{listStyleType:"none"},items.map((function(item,index){return react.createElement(StyledListItem,{key:item.id},itemRenderer(item,index,itemPropName))})))};CardDetailsList.propTypes={items:prop_types_default().arrayOf(prop_types_default().object).isRequired,itemRenderer:prop_types_default().any.isRequired,itemPropName:prop_types_default().string};CardDetailsList.__docgenInfo={description:"",methods:[],displayName:"CardDetailsList",props:{items:{description:"",type:{name:"arrayOf",value:{name:"object"}},required:!0},itemRenderer:{description:"",type:{name:"any"},required:!0},itemPropName:{description:"",type:{name:"string"},required:!1}}};var SummaryList=__webpack_require__("./src/client/components/SummaryList/index.jsx"),utils_date=__webpack_require__("./src/client/utils/date.js");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<a;e++)n[e]=r[e];return n}var StyledSummaryListWrapper=styled_components_browser_esm.Ay.div({flexGrow:1,marginRight:govuk_react_constants_esm.Es.SCALE_2,dt:{fontSize:"".concat(govuk_react_constants_esm.SG.SIZE_16),flexShrink:0,flexBasis:160},dd:{fontSize:"".concat(govuk_react_constants_esm.SG.SIZE_16)}}),Referral=function Referral(_ref){var id=_ref.id,companyId=_ref.companyId,companyName=_ref.companyName,subject=_ref.subject,date=_ref.date,sender=_ref.sender,recipient=_ref.recipient,dateAccepted=_ref.dateAccepted;return react.createElement(Card,null,react.createElement(card_CardHeader,{company:{name:companyName},heading:react.createElement(govuk_react_esm.N_,{href:urls_default().companies.referrals.details(companyId,id)},subject),headingLevel:2,startTime:date,badge:dateAccepted?{text:"Accepted referral",borderColour:colours.AV}:{text:"Outstanding referral",borderColour:colours.ft}}),react.createElement(StyledSummaryListWrapper,null,react.createElement(SummaryList.A,{rows:[{label:"Sending adviser",value:react.createElement(AdviserDetails,sender)},{label:"Receiving adviser",value:react.createElement(AdviserDetails,recipient)}].concat(_toConsumableArray(dateAccepted?[{label:"Accepted on",value:(0,utils_date.format)(dateAccepted)}]:[]))})))};Referral.propTypes={id:prop_types_default().string.isRequired,companyId:prop_types_default().string.isRequired,subject:prop_types_default().string.isRequired,companyName:prop_types_default().string.isRequired,date:prop_types_default().string.isRequired,sender:prop_types_default().shape(AdviserDetails.propTypes).isRequired,recipient:prop_types_default().shape(AdviserDetails.propTypes).isRequired,dateAccepted:prop_types_default().string};const ReferralList_Referral=Referral;Referral.__docgenInfo={description:"",methods:[],displayName:"Referral",props:{id:{description:"",type:{name:"string"},required:!0},companyId:{description:"",type:{name:"string"},required:!0},subject:{description:"",type:{name:"string"},required:!0},companyName:{description:"",type:{name:"string"},required:!0},date:{description:"",type:{name:"string"},required:!0},sender:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},email:{name:"string",required:!1},team:{name:"string",required:!1}}},required:!0},recipient:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},email:{name:"string",required:!1},team:{name:"string",required:!1}}},required:!0},dateAccepted:{description:"",type:{name:"string"},required:!1}}};var multiinstance=__webpack_require__("./src/client/utils/multiinstance.js");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)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?reducer_ownKeys(Object(t),!0).forEach((function(r){reducer_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):reducer_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function reducer_defineProperty(e,r,t){return(r=function reducer_toPropertyKey(t){var i=function reducer_toPrimitive(t,r){if("object"!=reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==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 ReferralList_excluded=["id"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledLabel=styled_components_browser_esm.Ay.label({display:"flex",alignItems:"baseline"}),StyledSelectInput=(0,styled_components_browser_esm.Ay)(govuk_react_select_esm.pp)({marginLeft:10,"&":{width:"initial"}});const ReferralList=(0,multiinstance.Ay)({name:"ReferralList",reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filter:"received"},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,filter=_ref.filter;switch(type){case actions.Im2:return reducer_objectSpread(reducer_objectSpread({},state),{},{referrals:result});case actions.ilQ:return reducer_objectSpread(reducer_objectSpread({},state),{},{filter});default:return state}},dispatchToProps:function dispatchToProps(dispatch){return{onFilterChange:function onFilterChange(filter){return dispatch({type:actions.ilQ,filter})}}},actionPattern:"REFERRAL_LIST__",component:function component(_ref){var id=_ref.id,referrals=_ref.referrals,onFilterChange=_ref.onFilterChange,filter=_ref.filter;return react.createElement(Task.A.Status,{name:"Referrals",id,progressMessage:"Loading referrals",startOnRender:{onSuccessDispatch:actions.Im2}},(function(){if(referrals){var filteredReferrals=referrals.filter((function(_ref2){return _ref2.direction===filter})).sort((function(a,b){return new Date(b.date)-new Date(a.date)}));return react.createElement(ContentWithHeading.A,{heading:pluralize_default()("".concat(filter," referral"),filteredReferrals.length,!0),headingActions:react.createElement(StyledLabel,{htmlFor:"view-referrals"},"View",react.createElement(StyledSelectInput,{value:filter,id:"view-referrals",onChange:function onChange(e){return onFilterChange(e.target.value)}},react.createElement("option",{value:"received","aria-label":"received-referrals"},"Received referrals"),react.createElement("option",{value:"sent","aria-label":"sent-referrals"},"Sent referrals")))},referrals.length?react.createElement(components_StyledOrderedList,null,filteredReferrals.map((function(_ref3){var id=_ref3.id,referral=function ReferralList_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function ReferralList_objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,ReferralList_excluded);return react.createElement("li",{key:id},react.createElement(ReferralList_Referral,_extends({id},referral)))}))):react.createElement(govuk_react_hint_text_esm.A,null,"You have not received or sent any referrals.",react.createElement("br",null),"You can refer companies to other advisers from a company page."))}}))}})},"./src/client/components/Resource/BusinessPotential.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("BusinessPotential","business-potential")},"./src/client/components/Resource/Company.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Company",(function(id){return"v4/company/".concat(id)}))},"./src/client/components/Resource/Contact.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Contact",(function(id){return"v3/contact/".concat(id)}))},"./src/client/components/Resource/Countries.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Countries","country")},"./src/client/components/Resource/Paginated.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/index.js"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_Pagination__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Pagination/index.jsx"),_CollectionList_CollectionHeader__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx"),_CollectionList_CollectionSort__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/CollectionList/CollectionSort.jsx"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledCollectionSort=(0,styled_components__WEBPACK_IMPORTED_MODULE_27__.Ay)(_CollectionList_CollectionSort__WEBPACK_IMPORTED_MODULE_26__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: 15px;\n"]))),PaginatedResource=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_21__.Ay)({name:"PaginatedResource",actionPattern:"PAGINATED_RESOURCE__",reducer:function reducer(state,_ref){var type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case _actions__WEBPACK_IMPORTED_MODULE_28__.Vdv:return _objectSpread(_objectSpread({},state),{},{clickedPage:page});case _actions__WEBPACK_IMPORTED_MODULE_28__.ONB:return _objectSpread(_objectSpread({},state),{},{currentPage:null==state?void 0:state.clickedPage,clickedPage:null,result});default:return state}},dispatchToProps:function dispatchToProps(dispatch){return{onPageClick:function onPageClick(page){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.Vdv,page})}}},component:function component(_ref2){var _sortOptions$defaultS,name=_ref2.name,heading=_ref2.heading,id=_ref2.id,children=_ref2.children,_ref2$pageSize=_ref2.pageSize,pageSize=void 0===_ref2$pageSize?10:_ref2$pageSize,_ref2$payload=_ref2.payload,payload=void 0===_ref2$payload?{}:_ref2$payload,_ref2$sortOptions=_ref2.sortOptions,sortOptions=void 0===_ref2$sortOptions?[]:_ref2$sortOptions,_ref2$defaultSortOpti=_ref2.defaultSortOptionIndex,defaultSortOptionIndex=void 0===_ref2$defaultSortOpti?0:_ref2$defaultSortOpti,_ref2$sortByQsParamNa=_ref2.sortByQsParamName,sortByQsParamName=void 0===_ref2$sortByQsParamNa?"sortby":_ref2$sortByQsParamNa,_onPageClick=_ref2.onPageClick,currentPage=_ref2.currentPage,result=_ref2.result,shouldPluralize=_ref2.shouldPluralize,_ref2$noResults=_ref2.noResults,noResults=void 0===_ref2$noResults?"You don't have any results":_ref2$noResults,location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),sortby=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1))[sortByQsParamName]||(null===(_sortOptions$defaultS=sortOptions[defaultSortOptionIndex])||void 0===_sortOptions$defaultS?void 0:_sortOptions$defaultS.value);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A,null,(function(getTask){var location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),qsParams=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1)),routePage=parseInt(qsParams.page,10)||1,totalPages=result?Math.ceil(result.count/pageSize):0,hasZeroResults=0===(null==result?void 0:result.count),task=getTask(name,id);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A.StartOnRender,{name,id,payload:_objectSpread(_objectSpread({},payload),{},{sortby,limit:pageSize,offset:(routePage-1)*pageSize}),onSuccessDispatch:_actions__WEBPACK_IMPORTED_MODULE_28__.ONB}),currentPage&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_29__.C5,{to:_objectSpread(_objectSpread({},location),{},{search:qs__WEBPACK_IMPORTED_MODULE_30___default().stringify(_objectSpread(_objectSpread({},qsParams),{},{page:currentPage}))})}),result?react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_23__.A,{name,id},react__WEBPACK_IMPORTED_MODULE_20__.createElement(_CollectionList_CollectionHeader__WEBPACK_IMPORTED_MODULE_25__.A,{totalItems:result.count,collectionName:heading||name,shouldPluralize}),totalPages>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledCollectionSort,{totalPages,sortOptions,qsParamName:sortByQsParamName}),result?children(result.results):null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Pagination__WEBPACK_IMPORTED_MODULE_24__.A,{totalPages,activePage:routePage,onPageClick:function onPageClick(clickedPage){_onPageClick(clickedPage),null==task||task.start({onSuccessDispatch:_actions__WEBPACK_IMPORTED_MODULE_28__.ONB,payload:_objectSpread(_objectSpread({},payload),{},{limit:pageSize,offset:(clickedPage-1)*pageSize})})}}),1===totalPages&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("br",null)):react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A.Status,{name,id}),hasZeroResults&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("p",{"data-test":"no-results"},noResults))}))}});PaginatedResource.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_31___default().func,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_31___default().number,payload:prop_types__WEBPACK_IMPORTED_MODULE_31___default().object};const __WEBPACK_DEFAULT_EXPORT__=PaginatedResource},"./src/client/components/Resource/Resource.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AU:()=>createEntityResource,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,wn:()=>createMetadataResource,xo:()=>createCollectionResource});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var lodash__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_23__),prop_types__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_39__),react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Task/utils.js"),_Task__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_utils__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/utils/index.js"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_Task_Error__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Task/Error.jsx"),_Paginated__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Resource/Paginated.js"),_Form_elements_ResourceOptionsField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),_Form_elements_FieldRadios__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),_Form_elements_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),_Form_elements_FieldTypeahead__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Form_elements_FieldSelect__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),_Form_elements_FieldChoice__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),_excluded=["id"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<a;e++)n[e]=r[e];return n}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 Resource=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_25__.Ay)({name:"Resource",actionPattern:"RESOURCE",reducer:function reducer(state,_ref){var id=_ref.id,result=_ref.result;return _objectSpread(_objectSpread({},state),{},_defineProperty({},id,result))},idProp:"name",componentStateToProps:function componentStateToProps(state,_,_ref2){return{result:state[_ref2.id]}},component:function component(_ref3){var name=_ref3.name,id=_ref3.id,taskStatusProps=_ref3.taskStatusProps,children=_ref3.children,result=_ref3.result,payload=_ref3.payload,_ref3$transformer=_ref3.transformer,transformer=void 0===_ref3$transformer?function(x){return[x]}:_ref3$transformer,progressBox=_ref3.progressBox,noRetry=_ref3.noRetry;return progressBox?react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_28__.A,_extends({},taskStatusProps,{name,id,noRetry,startOnRender:{onSuccessDispatch:"RESOURCE",payload,ignoreIfInProgress:!0}}),result?children.apply(void 0,_toConsumableArray(transformer(result))):children()):react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Task__WEBPACK_IMPORTED_MODULE_27__.A.Status,_extends({},taskStatusProps,{name,id,noRetry,startOnRender:{onSuccessDispatch:"RESOURCE",payload}}),(function(){return void 0!==result&&children.apply(void 0,_toConsumableArray(transformer(result)))}))}});Resource.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_39___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_39___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_39___default().func,taskStatusProps:prop_types__WEBPACK_IMPORTED_MODULE_39___default().shape(lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(_Task__WEBPACK_IMPORTED_MODULE_27__.A.Status.propTypes,"name","id"))},Resource.Inline=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource,_extends({},props,{taskStatusProps:_objectSpread({dismissable:!1,noun:props.noun||props.name,renderProgress:_ProgressIndicator__WEBPACK_IMPORTED_MODULE_30__.A.Inline,renderError:_Task_Error__WEBPACK_IMPORTED_MODULE_31__.A.Inline},props.taskStatusProps)}))};const __WEBPACK_DEFAULT_EXPORT__=Resource;var createEntityResource=function createEntityResource(name,endpoint){var transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult),rawResult]},Component=function Component(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource,_extends({transformer},props,{name}))};return Component.Inline=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Resource.Inline,_extends({transformer},props,{name}))},Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"name"),Component.tasks=_defineProperty({},name,(function(payload,id){return _Task_utils__WEBPACK_IMPORTED_MODULE_26__.HD.get("/".concat(endpoint(id)),{params:payload}).then((function(_ref4){return _ref4.data}))})),Component.transformer=transformer,Component.taskName=name,Component},createCollectionResource=function createCollectionResource(name,endpoint){var EntityResource=createEntityResource(name,"function"==typeof endpoint?endpoint:function(){return endpoint}),transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult.results),rawResult.count,rawResult]},Component=function Component(_ref5){var _ref5$id=_ref5.id,id=void 0===_ref5$id?"__COLLECTION__":_ref5$id,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,_excluded);return react__WEBPACK_IMPORTED_MODULE_24__.createElement(EntityResource,_extends({transformer,id},props))};return Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"id"),Component.tasks=EntityResource.tasks,Component.transformer=transformer,Component.taskName=name,Component.resourceName=name,Component.Paginated=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Paginated__WEBPACK_IMPORTED_MODULE_32__.A,_extends({},props,{name}))},Component},createMetadataResource=function createMetadataResource(name,endpoint){var EntityResource=createEntityResource(name,(function(){return"v4/metadata/".concat(endpoint)})),transformer=function transformer(rawResult){return[(0,_utils__WEBPACK_IMPORTED_MODULE_29__.OM)(rawResult),rawResult.length,rawResult]},Component=function Component(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(EntityResource,_extends({transformer,id:"__METADATA__",payload:props.payload||{_:"0"}},props))};return Component.propTypes=lodash__WEBPACK_IMPORTED_MODULE_23___default().omit(Component.propTypes,"id"),Component.tasks=EntityResource.tasks,Component.transformer=transformer,Component.taskName=name,Component.FieldOptions=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(_Form_elements_ResourceOptionsField__WEBPACK_IMPORTED_MODULE_33__.A,_extends({id:"__METADATA__"},props,{resource:Component}))},Component.FieldRadios=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldRadios__WEBPACK_IMPORTED_MODULE_34__.A}))},Component.FieldSelect=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldSelect__WEBPACK_IMPORTED_MODULE_37__.A}))},Component.FieldCheckboxes=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_35__.A}))},Component.FieldTypeahead=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldTypeahead__WEBPACK_IMPORTED_MODULE_36__.A}))},(Component.FieldChoice=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldOptions,_extends({},props,{field:_Form_elements_FieldChoice__WEBPACK_IMPORTED_MODULE_38__.A}))}).Radio=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldChoice,_extends({},props,{type:"radio"}))},Component.FieldChoice.Checkbox=function(props){return react__WEBPACK_IMPORTED_MODULE_24__.createElement(Component.FieldChoice,_extends({},props,{type:"checkbox"}))},Component}},"./src/client/components/Resource/Sector.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Sector","sector")},"./src/client/components/Resource/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ar:()=>Company.A,xb:()=>Contact.A,NW:()=>Countries.A,sv:()=>Investment,uf:()=>RelatedCompaniesCount,_n:()=>TaskCompaniesAndProjects});var Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx");(0,Resource.AU)("Adviser",(function(id){return"adviser/".concat(id,"/")})),(0,Resource.wn)("AssetClasses","capital-investment/asset-class-interest"),(0,Resource.wn)("AssociatedProgramme","associated-programme"),(0,Resource.wn)("BreakdownType","breakdown-type");__webpack_require__("./src/client/components/Resource/BusinessPotential.js");(0,Resource.wn)("BusinessActivity","investment-business-activity");var Company=__webpack_require__("./src/client/components/Resource/Company.js");(0,Resource.xo)("changes to company business details",(function(id){return"v4/company/".concat(id,"/audit")})),(0,Resource.AU)("CompanyContacts",(function(id){return"v4/contact?company_id=".concat(id)})),(0,Resource.AU)("CompanyObjectivesCount",(function(id){return"v4/company/".concat(id,"/objective/count")})),(0,Resource.AU)("CompanyObjectives",(function(id){return"v4/company/".concat(id,"/objective?sortby=target_date")})),(0,Resource.AU)("CompanyOneListTeam",(function(id){return"v4/company/".concat(id,"/one-list-group-core-team")})),(0,Resource.wn)("ConstructionRisks","capital-investment/construction-risk");var Contact=__webpack_require__("./src/client/components/Resource/Contact.js");(0,Resource.xo)("contact change",(function(id){return"v3/contact/".concat(id,"/audit")}));var Countries=__webpack_require__("./src/client/components/Resource/Countries.js");(0,Resource.wn)("DealTicketSizes","capital-investment/deal-ticket-size"),(0,Resource.wn)("DeliveryPartners","investment-delivery-partner"),(0,Resource.wn)("DesiredDealRoles","capital-investment/desired-deal-role"),(0,Resource.AU)("Event",(function(id){return"v3/event/".concat(id)})),(0,Resource.wn)("EvidenceTag","evidence-tag"),(0,Resource.wn)("ExpectedValueRelation","expected-value-relation"),(0,Resource.wn)("Experience","experience"),(0,Resource.wn)("ExperienceCategories","experience-categories"),(0,Resource.wn)("ExportExperience","export-experience"),(0,Resource.wn)("ExportExperienceCategory","export-experience-category"),(0,Resource.AU)("Export",(function(id){return"v4/export/".concat(id)})),(0,Resource.wn)("ExportYears","export-years"),(0,Resource.wn)("FDITypes","fdi-type"),(0,Resource.wn)("FDIValues","fdi-value"),(0,Resource.wn)("HQTeamRegionOrPost","hq-team-region-or-post"),(0,Resource.wn)("HvoProgrammes","hvo-programmes"),(0,Resource.wn)("Hvc","hvc"),(0,Resource.AU)("Interaction",(function(id){return"v4/interaction/".concat(id)})),(0,Resource.xo)("Interactions","v4/interaction");const Investment=(0,Resource.AU)("Investment",(function(id){return"v3/investment/".concat(id)})),RelatedCompaniesCount=((0,Resource.AU)("InvestmentEvidence",(function(id){return"v3/investment/".concat(id,"/evidence-document")})),(0,Resource.wn)("InvestmentProjectStages","investment-project-stage"),(0,Resource.wn)("InvestmentTypes","investment-type"),(0,Resource.wn)("InvestorType","capital-investment/investor-type"),(0,Resource.wn)("InvestmentInvestorTypes","investment-investor-type"),(0,Resource.xo)("InvestmentProjectTasks","v4/task"),(0,Resource.wn)("LargeCapitalInvestmentEquityPercentages","capital-investment/equity-percentage"),(0,Resource.wn)("LargeCapitalInvestmentRestrictions","capital-investment/restriction"),(0,Resource.wn)("LargeCapitalInvestmentReturnRates","capital-investment/return-rate"),(0,Resource.wn)("LargeCapitalInvestmentTypes","capital-investment/large-capital-investment-type"),(0,Resource.AU)("LargeInvestorProfile",(function(id){return"v4/large-investor-profile?investor_company_id=".concat(id)})),(0,Resource.wn)("LevelOfInvolvement","investment-involvement"),(0,Resource.wn)("LikelihoodToLand","likelihood-to-land"),(0,Resource.wn)("MarketingSource","marketing-source"),(0,Resource.AU)("MyTasksDueDateApproachingSettings",(function(){return"v4/reminder/subscription/my-tasks-due-date-approaching"})),(0,Resource.AU)("TaskAssignedToMeFromOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-assigned-to-me-from-others"})),(0,Resource.AU)("TaskAmendedByOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-amended-by-others"})),(0,Resource.AU)("TaskOverdueSettings",(function(){return"v4/reminder/subscription/my-tasks-task-overdue"})),(0,Resource.wn)("OmisMarkets","omis-market"),(0,Resource.wn)("OneListTiers","one-list-tier"),(0,Resource.AU)("Opportunity",(function(id){return"v4/large-capital-opportunity/".concat(id)})),(0,Resource.wn)("OpportunityStatuses","large-capital-opportunity/opportunity-status"),(0,Resource.wn)("OpportunityValueType","large-capital-opportunity/opportunity-value-type"),(0,Resource.AU)("Order",(function(id){return"v3/omis/order/".concat(id)})),(0,Resource.AU)("OrderAssignees",(function(id){return"v3/omis/order/".concat(id,"/assignee")})),(0,Resource.wn)("OrderCancellationReasons","order-cancellation-reason"),(0,Resource.AU)("OrderInvoice",(function(id){return"v3/omis/order/".concat(id,"/invoice")})),(0,Resource.AU)("OrderQuote",(function(id){return"v3/omis/order/".concat(id,"/quote")})),(0,Resource.AU)("OrderPayment",(function(id){return"v3/omis/order/".concat(id,"/payment")})),(0,Resource.wn)("OrderServiceTypes","order-service-type"),(0,Resource.AU)("OrderSubscribers",(function(id){return"v3/omis/order/".concat(id,"/subscriber-list")})),(0,Resource.xo)("project change",(function(id){return"v3/investment/".concat(id,"/audit")})),(0,Resource.AU)("ProjectDocument",(function(id){return id})),(0,Resource.AU)("Proposition",(function(id){return id})),(0,Resource.xo)("Propositions","v4/proposition"),(0,Resource.AU)("PropositionEvidence",(function(id){return id})),(0,Resource.wn)("Rating","rating"),(0,Resource.wn)("ReferralSourceActivity","referral-source-activity"),(0,Resource.wn)("ReferralSourceMarketing","referral-source-marketing"),(0,Resource.wn)("ReferralSourceWebsite","referral-source-website"),(0,Resource.wn)("RequiredChecksConducted","capital-investment/required-checks-conducted"),(0,Resource.AU)("RelatedCompaniesCount",(function(id){return"v4/dnb/".concat(id,"/related-companies/count?include_manually_linked_companies=true")})));(0,Resource.wn)("SalaryRanges","salary-range");__webpack_require__("./src/client/components/Resource/Sector.js");(0,Resource.wn)("StrategicDrivers","investment-strategic-driver"),(0,Resource.wn)("SpecificProgrammes","investment-specific-programme"),(0,Resource.wn)("SupportType","support-type"),(0,Resource.AU)("Task",(function(id){return"v4/task/".concat(id)})),(0,Resource.wn)("TeamType","team-type"),(0,Resource.wn)("TimeHorizons","capital-investment/time-horizon"),(0,Resource.wn)("UKRegions","uk-region"),(0,Resource.wn)("WinType","win-type"),(0,Resource.wn)("Win UK Regions","winukregion"),(0,Resource.wn)("WithoutOurSupport","without-our-support"),(0,Resource.AU)("TaskCompletedSettings",(function(){return"v4/reminder/subscription/my-tasks-task-completed"}));const TaskCompaniesAndProjects=(0,Resource.AU)("TaskCompaniesAndProjectsResource",(function(){return"v4/task/companies-and-projects"}))},"./src/client/components/RoutedInput/Filter.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/utils/colours.js"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(___WEBPACK_IMPORTED_MODULE_2__.A)({fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__.SG.SIZE_16,lineHeight:"25px",padding:"6px 10px",marginTop:5,border:"2px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.Uv),appearance:null,display:"block",boxSizing:"border-box",width:"100%","&:focus":{outline:"3px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.eM),outlineOffset:0}})},"./src/client/components/RoutedInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_RoutedInput});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js");__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["qsParam","onChange","onEnter","reset","qsValue","value","selectedValue","dispatch","staticContext","id","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 RoutedInput=function RoutedInput(_ref){var qsParam=_ref.qsParam,_onChange=_ref.onChange,onEnter=_ref.onEnter,reset=_ref.reset,_ref$qsValue=_ref.qsValue,qsValue=void 0===_ref$qsValue?"":_ref$qsValue,_ref$value=_ref.value,value=void 0===_ref$value?qsValue:_ref$value,selectedValue=_ref.selectedValue,type=(_ref.dispatch,_ref.staticContext,_ref.id,_ref.type),props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useTextCaretPosition=function useTextCaretPosition(){var _useState2=_slicedToArray((0,react.useState)(0),2),start=_useState2[0],setStart=_useState2[1],_useState4=_slicedToArray((0,react.useState)(0),2),end=_useState4[0],setEnd=_useState4[1],inputRef=(0,react.useRef)(null),updateTextCaret=(0,react.useCallback)((function(){if("text"===inputRef.current.type){var _inputRef$current=inputRef.current,selectionStart=_inputRef$current.selectionStart,selectionEnd=_inputRef$current.selectionEnd;setStart(selectionStart),setEnd(selectionEnd)}}),[]);return(0,react.useEffect)((function(){"text"===inputRef.current.type&&inputRef.current.setSelectionRange(start,end)})),{start,end,ref:inputRef,updateTextCaret}}(),ref=_useTextCaretPosition.ref,updateTextCaret=_useTextCaretPosition.updateTextCaret;(0,react.useEffect)((function(){!qsValue&&selectedValue&&reset()}),[selectedValue,qsValue]);var location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1)),writeQs=function writeQs(){return navigate({search:lib_default().stringify(_objectSpread(_objectSpread({},qsParams),{},_defineProperty({},qsParam,value))),replace:!0})};return react.createElement(govuk_react_input_esm.A,_extends({},props,{ref,value,type,onChange:function onChange(e){_onChange(e.target.value),updateTextCaret()},onKeyDown:function onKeyDown(e){"Enter"===e.key&&(onEnter(e.target.value),writeQs())},onBlur:writeQs}))};RoutedInput.propTypes={qsParam:prop_types_default().string.isRequired,type:prop_types_default().string};const components_RoutedInput=(0,multiinstance.Ay)({name:"RoutedInput",actionPattern:"ROUTED_INPUT__",component:RoutedInput,dispatchToProps:function dispatchToProps(dispatch){return{onChange:function onChange(value){return dispatch({type:actions.R5F,value})},onEnter:function onEnter(selectedValue){return dispatch({type:actions.z_g,selectedValue})},reset:function reset(){return dispatch({type:actions._jk})}}},componentStateToProps:function componentStateToProps(cs,_ref2,_ref3){var router=_ref2.router,qsParam=_ref3.qsParam,qsValue=lib_default().parse(router.location.search.slice(1))[qsParam];return _objectSpread(_objectSpread({},cs),{},{qsValue})},reducer:function reducer(state,_ref4){var type=_ref4.type,value=_ref4.value,selectedValue=_ref4.selectedValue;switch(type){case actions.R5F:return _objectSpread(_objectSpread({},state),{},{value});case actions.z_g:return _objectSpread(_objectSpread({},state),{},{selectedValue});case actions._jk:return{};default:return state}}})},"./src/client/components/RoutedInputField/Filter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["label"];var StyledFilterLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_FilterLabel__WEBPACK_IMPORTED_MODULE_5__.A)({marginBottom:32}),RoutedInputFieldFilter=function RoutedInputFieldFilter(_ref){var label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFilterLabel,null,label,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,props))};RoutedInputFieldFilter.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=RoutedInputFieldFilter;RoutedInputFieldFilter.__docgenInfo={description:"",methods:[],displayName:"RoutedInputFieldFilter",props:{label:{description:"",type:{name:"node"},required:!0}}}},"./src/client/components/RoutedNumericRangeField/Filter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["id","qsParam","label"];var StyledContainer=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({display:"flex",alignItems:"baseline"}),StyledDivider=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({padding:"0.5rem"}),StyledFieldset=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.fieldset({marginBottom:32}),RoutedNumericRangeField=function RoutedNumericRangeField(_ref){var id=_ref.id,qsParam=_ref.qsParam,label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFieldset,props,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_FilterLabel__WEBPACK_IMPORTED_MODULE_5__.A,{as:"legend"},label),react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledContainer,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,{id:"".concat(id,"-min"),qsParam:"".concat(qsParam,"_min"),type:"number",placeholder:"No min","aria-label":"".concat(label," min")}),react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledDivider,null,"-"),react__WEBPACK_IMPORTED_MODULE_3__.createElement(_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__.A,{id:"".concat(id,"-max"),qsParam:"".concat(qsParam,"_max"),type:"number",placeholder:"No max","aria-label":"".concat(label," max")})))};RoutedNumericRangeField.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,qsParam:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=RoutedNumericRangeField;RoutedNumericRangeField.__docgenInfo={description:"",methods:[],displayName:"RoutedNumericRangeField",props:{label:{description:"",type:{name:"node"},required:!0},id:{description:"",type:{name:"string"},required:!0},qsParam:{description:"",type:{name:"string"},required:!0}}}},"./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>INCLUDE_RELATED_COMPANIES_DISABLED_SUBSIDIARY,j:()=>INCLUDE_RELATED_COMPANIES});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 INCLUDE_RELATED_COMPANIES=[{label:"Parent companies",value:"include_parent_companies"},{label:"Subsidiary companies",value:"include_subsidiary_companies"}],INCLUDE_RELATED_COMPANIES_DISABLED_SUBSIDIARY=INCLUDE_RELATED_COMPANIES.map((function(option){return"include_subsidiary_companies"===option.value?_objectSpread(_objectSpread({},option),{},{disabled:"disabled"}):option}))},"./src/client/components/SecondaryButton.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.object.assign.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var SecondaryButton=react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_4__.A,_extends({ref,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF},props))}));SecondaryButton.Inline=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(SecondaryButton)(_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-block;\n  width: auto;\n  font-size: 0.8em;\n  vertical-align: baseline;\n  padding: 0.2em;\n  line-height: 0.5lh;\n  margin: 0;\n"])));const __WEBPACK_DEFAULT_EXPORT__=SecondaryButton;SecondaryButton.__docgenInfo={description:"",methods:[],displayName:"SecondaryButton"}},"./src/client/components/Select/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["input"],_excluded2=["onChange","initialValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var StyledGovSelect=(0,styled_components__WEBPACK_IMPORTED_MODULE_28__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_25__.l6)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n\n  select {\n    flex: 1;\n    width: 'initial';\n    min-width: 200px;\n  }\n\n  "," {\n    display: flex;\n    align-items: center;\n    flex-direction: row;\n    ","\n    span {\n      ","\n    }\n  }\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:2,property:"margin",direction:["top"]}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__.qs.TABLET,_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:0,property:"margin",direction:["top"]}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__.YK.responsive({size:1,property:"margin",direction:["right"]})),Select=function Select(_ref){var input=_ref.input,props=_objectWithoutProperties(_ref,_excluded),_input$onChange=input.onChange,_onChange=void 0===_input$onChange?function(){}:_input$onChange,_input$initialValue=input.initialValue,initialValue=void 0===_input$initialValue?"":_input$initialValue,inputProps=_objectWithoutProperties(input,_excluded2),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_24__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_24__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledGovSelect,_extends({},props,{input:_objectSpread({onChange:function onChange(e){setValue(e.target.value),_onChange(e)},value},inputProps)}))};const __WEBPACK_DEFAULT_EXPORT__=Select;Select.__docgenInfo={description:"",methods:[],displayName:"Select"}},"./src/client/components/SpacedSectionBreak.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var govuk_react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_0__.B5)({marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.Es.SCALE_3})},"./src/client/components/StatusMessage/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StatusMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div").attrs((function(props){return{colour:props.colour||_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.ft,role:"alert","data-test":props["data-test"]||"status-message"}}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border: ",";\n  color: ",";\n  font-weight: bold;\n  line-height: 1.5;\n  ",";\n  ",";\n  ",";\n"])),(function(_ref){var colour=_ref.colour;return"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1," solid ").concat(colour)}),(function(_ref2){return _ref2.colour}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.responsivePadding(4),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.withWhiteSpace({marginBottom:6}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs);StatusMessage.propTypes={colour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=StatusMessage},"./src/client/components/SummaryList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),_excluded=["rows"];function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledInnerRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  padding: "," 0;\n\n  "," {\n    display: inline-flex;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDL=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dl")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  "," {\n    display: flex;\n    flex-direction: column;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDT=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dt")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  padding-right: ",";\n  width: 30%;\n  font-weight: bold;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_4),StyledDD=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dd")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  width: 70%;\n"]))),SummaryList=function SummaryList(_ref){var rows=_ref.rows,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return rows?react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDL,rest,rows.filter((function(r){return!(0,lodash__WEBPACK_IMPORTED_MODULE_10__.isEmpty)(r)&&!(0,lodash__WEBPACK_IMPORTED_MODULE_10__.isEmpty)(r.value)})).map((function(_ref2){var label=_ref2.label,value=_ref2.value;return react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledInnerRow,{key:label},react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDT,null,label),react__WEBPACK_IMPORTED_MODULE_9__.createElement(StyledDD,null,Array.isArray(value)?value.join(", "):value))}))):null};SummaryList.propTypes={rows:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_13___default().node,value:prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().node,prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)])}))};const __WEBPACK_DEFAULT_EXPORT__=SummaryList;SummaryList.__docgenInfo={description:"A styled version of a description list, with terms and descriptions.",methods:[],displayName:"SummaryList",props:{rows:{description:"Items to display in the list",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"node",required:!1},value:{name:"union",value:[{name:"node"},{name:"arrayOf",value:{name:"node"}}],required:!1}}}},required:!1}}}},"./src/client/components/SummaryTable/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),lodash__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/utils/number-utils.js"),_Tag__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["caption","actions","children"],_excluded2=["heading","children","hideWhenEmpty","flag"],_excluded3=["heading","value","emptyValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<s.length;r++)o=s[r],t.includes(o)||{}.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 StyledTable=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n  & > tbody th {\n    width: 30%;\n  }\n  & > caption {\n    ",";\n    margin-bottom: ",";\n  }\n  & > tbody > tr:first-child {\n    border-top: 1px solid ",";\n  }\n  & > caption > * {\n    ",";\n    float: right;\n    margin-left: ",";\n  }\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:24,weight:"bold"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.Pe,_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:19,weight:"normal"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3),StyledCellList=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  list-style: none;\n  padding: 0;\n  margin: 0;\n"]))),StyledTag=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_Tag__WEBPACK_IMPORTED_MODULE_17__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  float: right;\n"]))),SummaryTable=function SummaryTable(_ref){var caption=_ref.caption,actions=_ref.actions,children=_ref.children,rest=_objectWithoutProperties(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTable,_extends({caption:caption&&[caption,actions]},rest,{"data-component":"SummaryTable"}),children)},StyledTableRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Row)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  font-size: ",";\n  line-height: ",";\n  white-space: pre-wrap;\n\n  /* Conditionally apply the red border when flag is false */\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.$g.SIZE_24,(function(props){return props.invalid&&"\n      border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.su,";\n      margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,";\n      padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,";\n    ")}));SummaryTable.Row=function(_ref2){var heading=_ref2.heading,children=_ref2.children,hideWhenEmpty=_ref2.hideWhenEmpty,flag=_ref2.flag,props=_objectWithoutProperties(_ref2,_excluded2);if(hideWhenEmpty&&(0,lodash__WEBPACK_IMPORTED_MODULE_12__.isEmpty)(children))return null;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTableRow,_extends({invalid:flag},props),heading&&react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.CellHeader,null,heading),react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Cell,null,function renderChildren(){return Array.isArray(children)?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledCellList,props,children.filter((function(c){return c})).map((function(c,index){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(c,"-").concat(index)},c)}))):children}()))},SummaryTable.TextRow=function(_ref3){var heading=_ref3.heading,value=_ref3.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value||react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.CurrencyRow=function(_ref4){var heading=_ref4.heading,value=_ref4.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value?(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__.Dv)(value):react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.ListRow=function(_ref5){var heading=_ref5.heading,_ref5$value=_ref5.value,value=void 0===_ref5$value?[]:_ref5$value,emptyValue=_ref5.emptyValue,rest=_objectWithoutProperties(_ref5,_excluded3);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,_extends({heading},rest),value&&value.length?react__WEBPACK_IMPORTED_MODULE_11__.createElement("ul",null,value.map((function(v,i){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(heading,"-").concat(i)},v.label)}))):void 0===emptyValue?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"):emptyValue)},SummaryTable.propTypes={caption:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element]),actions:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.Row.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.TextRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element,prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().element)])},SummaryTable.CurrencyRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().number},SummaryTable.ListRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string}))};const __WEBPACK_DEFAULT_EXPORT__=SummaryTable;SummaryTable.__docgenInfo={description:"",methods:[{name:"Row",docblock:null,modifiers:["static"],params:[{name:"{ heading, children, hideWhenEmpty, flag, ...props }",optional:!1,type:null}],returns:null},{name:"TextRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"CurrencyRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"ListRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value = [], emptyValue, ...rest }",optional:!1,type:null}],returns:null}],displayName:"SummaryTable",props:{caption:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},actions:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/TabNav/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_TabNav});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.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.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.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 _templateObject;function TabNav_typeof(o){return TabNav_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},TabNav_typeof(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)||_unsupportedIterableToArray(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 _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}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function TabNav_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 TabNav_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TabNav_ownKeys(Object(t),!0).forEach((function(r){TabNav_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TabNav_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TabNav_defineProperty(e,r,t){return(r=function TabNav_toPropertyKey(t){var i=function TabNav_toPrimitive(t,r){if("object"!=TabNav_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TabNav_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TabNav_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var focusStyle={"&:focus":TabNav_defineProperty({outline:"3px solid ".concat(colours.eM),background:colours.eM},govuk_react_constants_esm.qs.TABLET,{background:colours.UE})},StyledSpan=(0,styled_components_browser_esm.Ay)("span")(TabNav_defineProperty({display:"block","::before":{color:"".concat(colours.Uv),content:'"— "',paddingRight:"".concat(govuk_react_constants_esm.Ge[1],"px")}},govuk_react_constants_esm.qs.TABLET,{display:"inline-block","::before":{display:"none"}})),buttonStyle={padding:0,margin:"0 0 ".concat(govuk_react_constants_esm.Ge[2],"px 0"),color:colours.yV,fontSize:16,fontFamily:"Arial, sans-serif",textDecoration:"underline",border:"none",background:"transparent"},StyledButton=(0,styled_components_browser_esm.Ay)("button")(TabNav_objectSpread(TabNav_objectSpread(TabNav_objectSpread({},buttonStyle),focusStyle),{},TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{color:colours.pF,fontSize:19,textDecoration:function textDecoration(_ref){var theme=_ref.theme;return(0,lodash.get)(theme,"tabNav.button.textDecoration","none")},padding:"".concat(govuk_react_constants_esm.Ge[2],"px ").concat(govuk_react_constants_esm.Ge[4],"px"),margin:"".concat(govuk_react_constants_esm.Ge[1],"px 0 ").concat(govuk_react_constants_esm.Ge[1],"px"),background:colours.P1,border:"none",cursor:"pointer"}))),StyledSelectedButton=(0,styled_components_browser_esm.Ay)("button")(TabNav_objectSpread(TabNav_objectSpread({},buttonStyle),{},TabNav_defineProperty({"&:focus":{outline:"3px solid ".concat(colours.eM),background:colours.eM}},govuk_react_constants_esm.qs.TABLET,{fontSize:19,textDecoration:"none",color:function color(_ref2){var theme=_ref2.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.color",colours.pF)},border:function border(_ref3){var theme=_ref3.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.border","1px solid ".concat(colours.GU))},borderBottom:"none",background:function background(_ref4){var theme=_ref4.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.background",colours.UE)},"&:focus":{background:function background(_ref5){var theme=_ref5.theme;return(0,lodash.get)(theme,"tabNav.selectedButton.background",colours.UE)}},marginBottom:-1,padding:"14px 19px 16px"}))),StyledTablist=styled_components_browser_esm.Ay.div(TabNav_defineProperty({borderBottom:"none"},govuk_react_constants_esm.qs.TABLET,{borderBottom:function borderBottom(_ref6){var theme=_ref6.theme;return(0,lodash.get)(theme,"tabNav.tabList.borderBottom","1px solid ".concat(colours.GU))},"& > *:not(:last-child)":{marginRight:5}})),StyledTabpanel=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n"])),(function(_ref7){var theme=_ref7.theme;return theme.tabNav?"\n        border: ".concat((0,lodash.get)(theme,"tabNav.tabPanel.border"),";\n        padding: ").concat((0,lodash.get)(theme,"tabNav.tabPanel.padding"),";\n        margin-bottom: ").concat((0,lodash.get)(theme,"tabNav.tabPanel.marginBottom"),";\n      "):"\n        margin-top: 15px;\n        ".concat(govuk_react_constants_esm.qs.TABLET," {\n          margin-top: 30px;\n        }\n      ")})),createId=function createId(id,key,routed){return routed?"".concat(id,".tab.").concat(key.replace("/","_")):"tab.".concat(key)};function getContent(tabs,keys,selectedTab){if(keys.includes(selectedTab))return tabs[selectedTab].content;var _step,_iterator=function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}(keys);try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;if(key.length>1&&selectedTab.startsWith(key))return tabs[key].content}}catch(err){_iterator.e(err)}finally{_iterator.f()}}var TabNav=function TabNav(_ref8){var selectedIndex=_ref8.selectedIndex,focusIndex=_ref8.focusIndex,tabs=_ref8.tabs,label=_ref8.label,onChange=_ref8.onChange,onTabChange=_ref8.onTabChange,onFocusChange=_ref8.onFocusChange,id=_ref8.id,routed=_ref8.routed,_ref8$keepQueryParams=_ref8.keepQueryParams,keepQueryParams=void 0!==_ref8$keepQueryParams&&_ref8$keepQueryParams,location=(0,dist.zy)(),navigate=(0,dist.Zp)(),tabKeys=Object.keys(tabs),tablistRef=(0,react.useRef)();selectedIndex=routed?location.pathname:selectedIndex;var isSelectedValid=tabKeys.includes(selectedIndex);return(0,react.useEffect)((function(){var _tablistRef$current;null===(_tablistRef$current=tablistRef.current)||void 0===_tablistRef$current||null===(_tablistRef$current=_tablistRef$current.querySelectorAll("[role=tab]")[focusIndex])||void 0===_tablistRef$current||_tablistRef$current.focus()}),[focusIndex,selectedIndex]),react.createElement(react.Fragment,null,react.createElement(StyledTablist,{tabIndex:-1,role:"tablist",ref:tablistRef,"data-test":"tablist","aria-label":label,onKeyUp:function onKeyUp(_ref9){var _selectedIndex,keyCode=_ref9.keyCode,totalTabs=tabKeys.length,foundIndex=tabKeys.indexOf(null===(_selectedIndex=selectedIndex)||void 0===_selectedIndex?void 0:_selectedIndex.toString()),currentFocusIndex=void 0!==focusIndex?focusIndex:void 0===selectedIndex||-1===foundIndex?0:foundIndex;39===keyCode&&onFocusChange((currentFocusIndex+1)%totalTabs),37===keyCode&&onFocusChange(((currentFocusIndex<1?totalTabs:currentFocusIndex)-1)%totalTabs)}},Object.entries(tabs).map((function(_ref10,index){var _ref11=_slicedToArray(_ref10,2),key=_ref11[0],label=_ref11[1].label,selected=isSelectedValid?key===selectedIndex:key.length>1&&selectedIndex.startsWith(key),Button=selected?StyledSelectedButton:StyledButton,tabId=createId(id,key,routed);return react.createElement(StyledSpan,{key:tabId,"data-test":"tab-item"},react.createElement(Button,{role:"tab","aria-selected":selected,id:tabId,tabIndex:void 0!==selectedIndex||index?selected?0:-1:0,onClick:function onClick(){if(onChange(key,index),onTabChange&&onTabChange({path:key}),routed&&!selected){var url=keepQueryParams?"".concat(key).concat(location.search):key;navigate(url)}}},label))}))),react.createElement(StyledTabpanel,{role:"tabpanel",tabIndex:-1,"aria-labelledby":createId(id,selectedIndex,!0),"data-test":"tabpanel"},getContent(tabs,tabKeys,selectedIndex)))},tabPropType=prop_types_default().shape({label:prop_types_default().node.isRequired,content:prop_types_default().node});TabNav.propTypes={label:prop_types_default().string.isRequired,routed:prop_types_default().any,keepQueryParams:prop_types_default().bool,onTabChange:prop_types_default().func,tabs:prop_types_default().oneOfType([prop_types_default().arrayOf(tabPropType),prop_types_default().objectOf(tabPropType)]).isRequired};const components_TabNav=(0,multiinstance.Ay)({name:"TabNav",actionPattern:"TAB_NAV__",dispatchToProps:function dispatchToProps(dispatch){return{onChange:function onChange(selectedIndex,focusIndex){return dispatch({type:actions.eyX,selectedIndex,focusIndex})},onFocusChange:function onFocusChange(focusIndex){return dispatch({type:actions.mKW,focusIndex})}}},component:TabNav,reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,focusIndex=_ref.focusIndex,selectedIndex=_ref.selectedIndex;switch(type){case actions.mKW:return _objectSpread(_objectSpread({},state),{},{focusIndex});case actions.eyX:return{selectedIndex,focusIndex};default:return state}}})},"./src/client/components/Tag/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.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__),_govuk_react_tag__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/tag/dist/govuk-react-tag.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["colour","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledTag=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_tag__WEBPACK_IMPORTED_MODULE_8__.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  background-color: ",";\n  color: ",";\n  white-space: nowrap;\n"])),(function(props){return _client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px[props.colour].background}),(function(props){return _client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px[props.colour].colour})),Tag=function Tag(_ref){var _ref$colour=_ref.colour,colour=void 0===_ref$colour?"default":_ref$colour,children=_ref.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_7__.createElement(StyledTag,_extends({colour},props),children)};Tag.propTypes={colour:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(Object.keys(_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__.Px)),children:prop_types__WEBPACK_IMPORTED_MODULE_11___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Tag;Tag.__docgenInfo={description:"`Tag` is a implementation of the [Tag](https://design-system.service.gov.uk/components/tag/) component from the GovUK Design System.\n\nUse the tag component when it’s possible for something to have more than one status and it’s useful for the user to know about that status.\nFor example, you can use a tag to show whether an item in a [task list](https://design-system.service.gov.uk/patterns/task-list-pages) has been ‘completed’.\n\nIf no colour is specified the tag will default to a blue background and white text.",methods:[],displayName:"Tag",props:{colour:{defaultValue:{value:"'default'",computed:!1},description:"Dictates the `background-color` and `color`",type:{name:"enum",value:[{value:'"default"',computed:!1},{value:'"grey"',computed:!1},{value:'"green"',computed:!1},{value:'"darkGreen"',computed:!1},{value:'"turquoise"',computed:!1},{value:'"blue"',computed:!1},{value:'"purple"',computed:!1},{value:'"pink"',computed:!1},{value:'"red"',computed:!1},{value:'"orange"',computed:!1},{value:'"yellow"',computed:!1}]},required:!1},children:{description:"Text of tag",type:{name:"node"},required:!0}}}},"./src/client/components/Task/Error.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/InlineIcon/index.js"),_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/SecondaryButton.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay.div(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.pF,background:"white",wordWrap:"break-word",padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.mobile,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d5," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su),"&:focus":{outline:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.uk," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.eM),outlineOffset:"0"}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.qs.LARGESCREEN,{padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.tablet,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.gP," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su)}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__.YK.withWhiteSpace({marginBottom:6})),StyledSecondaryButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A)({marginBottom:0}),Err=function Err(_ref){var errorMessage=_ref.errorMessage,retry=_ref.retry,dismiss=_ref.dismiss,noun=_ref.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledRoot,{"data-test":"error-dialog"},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__.H2,{size:"MEDIUM"},"Could not load ",noun),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isString)(errorMessage)&&react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",null,"Error: ",errorMessage),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isArray)(errorMessage)&&errorMessage.map((function(error){return react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",{key:error},error)})),retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:retry},"Retry"),dismiss&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:dismiss},"Dismiss")))};Err.propTypes={noun:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,errorMessage:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,retry:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func,dismiss:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func},Err.Inline=function(_ref2){var retry=_ref2.retry,noun=_ref2.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement("span",{style:{color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su}},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_18__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__.wo,null))," ","Could not load ",noun,retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(react__WEBPACK_IMPORTED_MODULE_12__.Fragment,null," ",react__WEBPACK_IMPORTED_MODULE_12__.createElement(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A.Inline,{onClick:retry},"Retry")))};const __WEBPACK_DEFAULT_EXPORT__=Err;Err.__docgenInfo={description:"",methods:[{name:"Inline",docblock:null,modifiers:["static"],params:[{name:"{ retry, noun }",optional:!1,type:null}],returns:null}],displayName:"Err",props:{noun:{description:"",type:{name:"string"},required:!0},errorMessage:{description:"",type:{name:"string"},required:!0},retry:{description:"",type:{name:"func"},required:!1},dismiss:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Task/LoadingBox.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_Effect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Effect.jsx"),___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Task/index.jsx"),_excluded=["name","id","when","children","startOnRender"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var StyledContentWrapper=styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay.div({position:"relative"}),StyledErrorOverlay=styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay.div({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:"rgba(255, 255, 255, 0.85)"});const __WEBPACK_DEFAULT_EXPORT__=function(_ref){var name=_ref.name,id=_ref.id,when=_ref.when,children=_ref.children,startOnRender=_ref.startOnRender,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(___WEBPACK_IMPORTED_MODULE_8__.A,null,(function(t){var task=t(name,id);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_6__.A,{loading:task.progress||when},react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Effect__WEBPACK_IMPORTED_MODULE_7__.A,{dependencyList:[name,id,startOnRender],effect:function effect(){startOnRender&&task.start(startOnRender)}}),react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledContentWrapper,null,task.hasError?react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Fragment,null,children,react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledErrorOverlay,null,react__WEBPACK_IMPORTED_MODULE_5__.createElement(___WEBPACK_IMPORTED_MODULE_8__.A.Status,_extends({},props,{name,id})))):children))}))}},"./src/client/components/Task/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),prop_types__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__),react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),govuk_react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js"),_Error__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/Error.jsx"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_AccessDenied__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/AccessDenied/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["start","cancel","dismissError","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 StyledLoadingBox=(0,styled_components__WEBPACK_IMPORTED_MODULE_25__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_21__.I5)({paddingBottom:0}),nameIdPropTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string.isRequired},startOnRenderPropTypes={payload:prop_types__WEBPACK_IMPORTED_MODULE_26___default().any,onSuccessDispatch:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string},Task=(0,react_redux__WEBPACK_IMPORTED_MODULE_27__.connect)((function(state){return state.tasks}),(function(dispatch){return{start:function start(name,id,_ref){var payload=_ref.payload,onSuccessDispatch=_ref.onSuccessDispatch;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.EGH,payload,id,name,onSuccessDispatch})},cancel:function cancel(name,id){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.KQv,id,name})},dismissError:function dismissError(name,id){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_28__.RnU,id,name})}}}))((function Task(_ref2){var _start=_ref2.start,_cancel=_ref2.cancel,_dismissError=_ref2.dismissError,children=_ref2.children,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return children((function(name,id){var taskState=(0,lodash__WEBPACK_IMPORTED_MODULE_19__.get)(props,[name,id],{});return _objectSpread(_objectSpread({},taskState),{},{progress:"progress"===taskState.status,hasError:"error"===taskState.status,start:function start(options){return _start(name,id,options)},cancel:function cancel(){return _cancel(name,id)},retry:function retry(){return _start(name,id,taskState)},dismissError:function dismissError(){return _dismissError(name,id)}})}))}));Task.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_26___default().func.isRequired},Task.StartOnRender=(0,react_redux__WEBPACK_IMPORTED_MODULE_27__.connect)((function(state,_ref3){var name=_ref3.name,id=_ref3.id;return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.get)(state,["tasks",name,id],{})}),(function(dispatch,_ref4){var id=_ref4.id,name=_ref4.name;return{start:function start(options){return dispatch(_objectSpread(_objectSpread({},options),{},{type:_actions__WEBPACK_IMPORTED_MODULE_28__.EGH,id,name}))}}}))((function(_ref5){var start=_ref5.start,name=_ref5.name,id=_ref5.id,payload=_ref5.payload,onSuccessDispatch=_ref5.onSuccessDispatch,status=_ref5.status;return(0,react__WEBPACK_IMPORTED_MODULE_20__.useEffect)((function(){status||start({payload,onSuccessDispatch})}),[name,id,JSON.stringify(payload),onSuccessDispatch]),null})),Task.StartOnRender.propTypes=_objectSpread(_objectSpread({},nameIdPropTypes),startOnRenderPropTypes),Task.Status=function(_ref6){var name=_ref6.name,id=_ref6.id,_ref6$noun=_ref6.noun,noun=void 0===_ref6$noun?name:_ref6$noun,startOnRender=_ref6.startOnRender,progressMessage=_ref6.progressMessage,_ref6$renderError=_ref6.renderError,renderError=void 0===_ref6$renderError?_Error__WEBPACK_IMPORTED_MODULE_22__.A:_ref6$renderError,_ref6$renderProgress=_ref6.renderProgress,renderProgress=void 0===_ref6$renderProgress?_ProgressIndicator__WEBPACK_IMPORTED_MODULE_23__.A:_ref6$renderProgress,_ref6$progressOverlay=_ref6.progressOverlay,progressOverlay=void 0!==_ref6$progressOverlay&&_ref6$progressOverlay,_ref6$dismissable=_ref6.dismissable,dismissable=void 0===_ref6$dismissable||_ref6$dismissable,noRetry=_ref6.noRetry,noDismiss=_ref6.noDismiss,_ref6$children=_ref6.children,children=void 0===_ref6$children?function(){return null}:_ref6$children;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(Task,null,(function(getTask){var _getTask=getTask(name,id),start=_getTask.start,status=_getTask.status,progress=_getTask.progress,hasError=_getTask.hasError,payload=_getTask.payload,errorMessage=_getTask.errorMessage,onSuccessDispatch=_getTask.onSuccessDispatch,dismissError=_getTask.dismissError,error=_getTask.error;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,!!startOnRender&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(Task.StartOnRender,_extends({},startOnRender,{name,id})),!progressOverlay&&progress&&renderProgress({message:progressMessage,noun}),hasError&&("You do not have permission to perform this action."===errorMessage?react__WEBPACK_IMPORTED_MODULE_20__.createElement(_AccessDenied__WEBPACK_IMPORTED_MODULE_24__.A,null):renderError({noun,error,errorMessage,retry:!noRetry&&function retry(){return start({payload,onSuccessDispatch,ignoreIfInProgress:!0})},dismiss:!noDismiss&&dismissError,dismissable})),progressOverlay?react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledLoadingBox,{loading:progress},children()):!status&&children())}))},Task.Status.propTypes=_objectSpread(_objectSpread({},nameIdPropTypes),{},{noun:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string,progressMessage:prop_types__WEBPACK_IMPORTED_MODULE_26___default().string,progressOverlay:prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool,startOnRender:prop_types__WEBPACK_IMPORTED_MODULE_26___default().shape(startOnRenderPropTypes),renderProgress:prop_types__WEBPACK_IMPORTED_MODULE_26___default().elementType,renderError:prop_types__WEBPACK_IMPORTED_MODULE_26___default().elementType});const __WEBPACK_DEFAULT_EXPORT__=Task},"./src/client/components/Task/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{HD:()=>apiProxyAxios});__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var axios__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/axios/lib/axios.js"),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["url"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<a;e++)n[e]=r[e];return n}(0,lodash__WEBPACK_IMPORTED_MODULE_25__.curry)((function(duration,task,payload){return Promise.all([task(payload),new Promise((function(resolve){return setTimeout(resolve,duration)}))]).then((function(_ref){return _slicedToArray(_ref,1)[0]}))}));var apiProxyAxios=axios__WEBPACK_IMPORTED_MODULE_26__.A.create();apiProxyAxios.interceptors.request.use((function(_ref4){var url=_ref4.url;return _objectSpread(_objectSpread({},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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded)),{},{url:url.startsWith("/api-proxy")?url:url.replace(/^\/?/,"/api-proxy/")})})),apiProxyAxios.interceptors.response.use(lodash__WEBPACK_IMPORTED_MODULE_25__.identity,(function catchApiError(_ref3){var _response$data,_response$data2,response=_ref3.response,message=_ref3.message;return Promise.reject({message:(null==response||null===(_response$data=response.data)||void 0===_response$data?void 0:_response$data.detail)||(null==response?void 0:response.text)||(null==response||null===(_response$data2=response.data)||void 0===_response$data2?void 0:_response$data2.non_field_errors)||(null==response?void 0:response.statusText)||response.data||message,data:response.data,httpStatusCode:response.status})}))},"./src/client/components/Timeline/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["stages","currentStage"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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 TimelineContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("div")(_defineProperty({backgroundColor:function backgroundColor(_ref){var theme=_ref.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"container.backgroundColor",_utils_colours__WEBPACK_IMPORTED_MODULE_17__.WS)},padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_2},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{padding:function padding(_ref2){var theme=_ref2.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"container.largeScreen.padding",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_5)}})),StyledOl=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("ol")(_defineProperty({fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.SG.SIZE_14,listStyleType:"none",boxSizing:"border-box",padding:"0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_3)},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{padding:"0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_3),margin:0,display:"table",width:"100%"})),StyledLi=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("li")(_defineProperty({borderLeft:"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G),padding:"0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0"),position:"relative","&:last-child":{padding:0,"&::before":{top:"2px"}},"&::before":{position:"absolute",display:"block",content:'""',borderRadius:"50%",left:function left(_ref3){var theme=_ref3.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.left","-12px")},width:function width(_ref4){var theme=_ref4.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.width",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)},height:function height(_ref5){var theme=_ref5.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.height",_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)},backgroundColor:function backgroundColor(_ref6){var isStageComplete=_ref6.isStageComplete;return"".concat(isStageComplete?_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G:_utils_colours__WEBPACK_IMPORTED_MODULE_17__.UE)},border:function border(_ref7){var theme=_ref7.theme,isStageComplete=_ref7.isStageComplete,border=(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.before.border");return border?isStageComplete?"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G):border:"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G)}},span:{display:function display(_ref8){var theme=_ref8.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.span.display","block")},padding:"2px 0 4px ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4)}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.qs.LARGESCREEN,{display:"table-cell",width:"25%",padding:function padding(_ref9){var theme=_ref9.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.padding","".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0 0 0"))},borderTop:function borderTop(_ref10){var theme=_ref10.theme,isLinkActive=_ref10.isLinkActive,borderTop=(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.borderTop");return borderTop?isLinkActive?"2px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G):borderTop:"3px solid ".concat(_utils_colours__WEBPACK_IMPORTED_MODULE_17__._G)},borderLeft:"none","&:last-child":{padding:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__.Es.SCALE_4," 0 0 0"),borderColor:"transparent","&::before":{top:function top(_ref11){var theme=_ref11.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.top","-12px")}}},"&::before":{top:function top(_ref12){var theme=_ref12.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.top","-12px")},left:function left(_ref13){var theme=_ref13.theme;return(0,lodash__WEBPACK_IMPORTED_MODULE_16__.get)(theme,"li.mqLargeScreen.before.left","-12px")}},span:{padding:0,position:"absolute",width:"100px",textAlign:"center",left:"-50px"}})),Timeline=function Timeline(_ref14){var stages=_ref14.stages,_ref14$currentStage=_ref14.currentStage,currentStage=void 0===_ref14$currentStage?"":_ref14$currentStage,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref14,_excluded),stageIndex=stages.indexOf(currentStage);return react__WEBPACK_IMPORTED_MODULE_14__.createElement(TimelineContainer,_extends({"data-test":"timeline"},props),react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledOl,null,stages.map((function(stage,i){var isStageComplete=i<=stageIndex,isLinkActive=i<stageIndex;return react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledLi,{key:i,isLinkActive,isStageComplete,"aria-label":isStageComplete?"stage complete":"stage incomplete"},react__WEBPACK_IMPORTED_MODULE_14__.createElement("span",null,stage))}))))};Timeline.propTypes={stages:prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().string).isRequired,currentStage:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string};const __WEBPACK_DEFAULT_EXPORT__=Timeline;Timeline.__docgenInfo={description:"The timeline displays a list of events/stages in chronological order and indicates the current progress of a particular event/stage.",methods:[],displayName:"Timeline",props:{currentStage:{defaultValue:{value:"''",computed:!1},description:"Marks the current stage",type:{name:"string"},required:!1},stages:{description:"Text for the stages",type:{name:"arrayOf",value:{name:"string"}},required:!0}}}},"./src/client/components/ToggleSection/BaseToggleSection.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,EE:()=>ButtonContent,KC:()=>MultiInstanceToggleSection,Of:()=>ToggleContent,d$:()=>BadgeContainer,ff:()=>ToggleButton,yK:()=>ToggleHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_25__),styled_components__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/multiinstance.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_excluded=["label","badge","open","onOpen","isOpen","colour","children","justifyHeaderContent"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ToggleContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral([""]))),ToggleHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n  display: flex;\n  position: relative;\n  ","\n"])),(function(_ref){return _ref.justifyHeaderContent?"justify-content: space-between;":"align-items: center;"})),ToggleButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("button")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n  display: flex;\n  align-items: center;\n  background: transparent;\n  border: none;\n  font-size: ",";\n  font-family: inherit;\n  color: ",";\n  cursor: pointer;\n  &:hover {\n    text-decoration: underline;\n  }\n  &:focus {\n    outline: none;\n    text-decoration: none;\n  }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.SG.SIZE_19,_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.ft),ToggleButtonIconStyle=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n  margin-right: ",";\n  ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_2,(function(_ref2){var isOpen=_ref2.isOpen;return"\n    transform: ".concat(isOpen?"rotate(0deg)":"rotate(180deg)",";\n  ")})),ToggleButtonIcon=function ToggleButtonIcon(_ref3){var _ref3$colour=_ref3.colour,colour=void 0===_ref3$colour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv:_ref3$colour,isOpen=_ref3.isOpen;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButtonIconStyle,{isOpen},react__WEBPACK_IMPORTED_MODULE_20__.createElement("svg",{width:"18px",height:"18px",version:"1.1",viewBox:"210 275 600 425",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",fill:colour},react__WEBPACK_IMPORTED_MODULE_20__.createElement("path",{d:"m798.16 609.84l-256-256c-16.683-16.683-43.691-16.683-60.331 0l-256 256c-16.683 16.683-16.683 43.691 0 60.331s43.691 16.683 60.331 0l225.84-225.84 225.84 225.84c16.683 16.683 43.691 16.683 60.331 0s16.683-43.691 0-60.331z"})))},ButtonContent=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))),BadgeContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n  margin-left: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.Es.SCALE_1),ToggleContent=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("div")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n  ","\n"])),(function(_ref4){var isOpen=_ref4.isOpen;return"\n    display: ".concat(isOpen?"block":"none",";\n    padding: 0;\n  ")})),BaseToggleSection=function BaseToggleSection(_ref5){var label=_ref5.label,_ref5$badge=_ref5.badge,badge=void 0===_ref5$badge?null:_ref5$badge,open=_ref5.open,onOpen=_ref5.onOpen,_ref5$isOpen=_ref5.isOpen,isOpen=void 0!==_ref5$isOpen&&_ref5$isOpen,_ref5$colour=_ref5.colour,colour=void 0===_ref5$colour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__.Uv:_ref5$colour,children=_ref5.children,_ref5$justifyHeaderCo=_ref5.justifyHeaderContent,justifyHeaderContent=void 0!==_ref5$justifyHeaderCo&&_ref5$justifyHeaderCo,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,_excluded);return react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleContainer,props,react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleHeader,{justifyHeaderContent},react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButton,{id:props.id&&"".concat(props.id,"-toggle-button-").concat(isOpen?"close":"open"),"data-test":"toggle-section-button",onClick:function onClick(){open(!isOpen),onOpen&&onOpen(!isOpen)},isOpen,"aria-expanded":isOpen},react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleButtonIcon,{onClick:function onClick(){open(!isOpen),onOpen&&onOpen(!isOpen)},isOpen,colour,alt:"Toggle details"}),react__WEBPACK_IMPORTED_MODULE_20__.createElement(ButtonContent,{"data-test":"toggle-section-button-content"},label)),badge&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(BadgeContainer,null,badge)),react__WEBPACK_IMPORTED_MODULE_20__.createElement(ToggleContent,{isOpen},children))};BaseToggleSection.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,badge:prop_types__WEBPACK_IMPORTED_MODULE_25___default().node,open:prop_types__WEBPACK_IMPORTED_MODULE_25___default().func,onOpen:prop_types__WEBPACK_IMPORTED_MODULE_25___default().func,isOpen:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_25___default().node,major:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,justifyHeaderContent:prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool,colour:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string};var MultiInstanceToggleSection=(0,_utils_multiinstance__WEBPACK_IMPORTED_MODULE_23__.Ay)({name:"ToggleSection",actionPattern:"TOGGLE_SECTION__",dispatchToProps:function dispatchToProps(dispatch){return{open:function open(isOpen){return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.HmC,isOpen})}}},component:BaseToggleSection,reducer:function reducer(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref6=arguments.length>1?arguments[1]:void 0,type=_ref6.type,isOpen=_ref6.isOpen;return type===_actions__WEBPACK_IMPORTED_MODULE_26__.HmC?_objectSpread(_objectSpread({},state),{},{isOpen}):state}});const __WEBPACK_DEFAULT_EXPORT__=MultiInstanceToggleSection;ToggleButtonIcon.__docgenInfo={description:"",methods:[],displayName:"ToggleButtonIcon",props:{colour:{defaultValue:{value:"'#0b0c0c'",computed:!1},required:!1}}}},"./src/client/components/ToggleSection/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{cQ:()=>ToggleSection_DashboardToggleSection,Q:()=>ToggleSection_FilterToggleSection,xQ:()=>ToggleSection_NoHighlightToggleSection,Os:()=>components_ToggleSection_ToggleSection});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx");const ToggleSection_DashboardToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n\n  "," {\n    background-color: ",";\n    padding-top: ",";\n    padding-bottom: ",";\n  }\n\n  "," {\n    font-weight: ",";\n    margin-left: ",";\n  }\n\n  "," {\n    text-decoration: underline;\n    white-space: nowrap;\n  }\n\n  "," {\n    display: flex;\n    justify-content: flex-end;\n    width: 100%;\n    margin-right: ",";\n  }\n\n  "," {\n    padding: 0 ",";\n    margin-top: ",";\n    margin-bottom: ",";\n  }\n"])),(function(_ref){var major=_ref.major;return"\n    border: solid 2px ".concat(colours.WS,";\n    border-top-color: ").concat(major?colours.Bk:colours.ft,";\n  ")}),BaseToggleSection.yK,colours.WS,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.ff,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.EE,BaseToggleSection.d$,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3);var ToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var ToggleSection_ToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(ToggleSection_templateObject||(ToggleSection_templateObject=function ToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: ",";\n\n  "," {\n    padding: "," 0 ",";\n\n    &:focus "," {\n      color: ",";\n      background-color: ",";\n      box-shadow:\n        0 -2px ",",\n        0 4px ",";\n    }\n  }\n\n  "," {\n    margin: 0;\n    padding: "," 0;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,BaseToggleSection.EE,colours.Uv,colours.Iz,colours.Iz,colours.Uv,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);const components_ToggleSection_ToggleSection=ToggleSection_ToggleSection;function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ToggleSection_FilterToggleSection=(0,styled_components_browser_esm.Ay)(ToggleSection_ToggleSection)(_defineProperty(_defineProperty({borderBottom:"solid 1px ".concat(colours.Pe),paddingBottom:govuk_react_constants_esm.Es.SCALE_2},BaseToggleSection.ff,{textAlign:"left"}),BaseToggleSection.Of,{"> *:last-child":{marginBottom:0},"> *:last-child div:last-child":{marginBottom:0}}));var NoHighlightToggleSection_templateObject;const ToggleSection_NoHighlightToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(NoHighlightToggleSection_templateObject||(NoHighlightToggleSection_templateObject=function NoHighlightToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  "," {\n    padding: 0;\n  }\n\n  "," {\n    text-decoration: underline;\n  }\n\n  "," {\n    padding: "," 0;\n  }\n"])),BaseToggleSection.ff,BaseToggleSection.EE,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);var RemindersToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(RemindersToggleSection_templateObject||(RemindersToggleSection_templateObject=function RemindersToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  border-top: 1px solid ",";\n  ","\n\n  "," {\n    text-align: left;\n    padding-top: ",";\n    padding-bottom: ",";\n  }\n\n  "," {\n    font-weight: ",";\n  }\n"])),colours.Pe,(function(_ref){return _ref.borderBottom&&"border-bottom: 1px solid ".concat(colours.Pe,";")}),BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.EE,govuk_react_constants_esm.sO.bold)},"./src/client/components/Typeahead/Highlighter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),react_string_replace__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react-string-replace/index.js"),react_string_replace__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react_string_replace__WEBPACK_IMPORTED_MODULE_4__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledSpan=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__.sO.bold),Highlighter=function Highlighter(_ref){var _ref$optionLabel=_ref.optionLabel,optionLabel=void 0===_ref$optionLabel?null:_ref$optionLabel,searchStr=_ref.searchStr;return optionLabel&&react_string_replace__WEBPACK_IMPORTED_MODULE_4___default()(optionLabel,searchStr,(function(matchedTxt,i){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSpan,{key:i},matchedTxt)}))};Highlighter.propTypes={optionLabel:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,searchStr:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Highlighter},"./src/client/components/Typeahead/Typeahead.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Typeahead_Typeahead});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),Highlighter=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),AssistiveText=function AssistiveText(_ref){var name=_ref.name;return react.createElement("span",{id:"autocomplete-".concat(name,"-assistiveHint"),style:{display:"none"}},"When autocomplete results are available use up and down arrows to review and enter to select.")};const Typeahead_AssistiveText=AssistiveText;AssistiveText.__docgenInfo={description:"",methods:[],displayName:"AssistiveText"};var ChipList=(0,styled_components_browser_esm.Ay)("ul")({listStyleType:"none",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0"),padding:0}),Chip=(0,styled_components_browser_esm.Ay)("li")({display:"inline-block",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0")}),ChipButton=(0,styled_components_browser_esm.Ay)("button")(govuk_react_constants_esm.bs,{backgroundColor:colours.WS,border:"none",borderRadius:3,color:colours.pF,fontSize:"0.75em",fontWeight:"bold",marginBottom:0,marginRight:6,padding:"".concat(govuk_react_constants_esm.Es.SCALE_1," 1.75em ").concat(govuk_react_constants_esm.Es.SCALE_1," ").concat(govuk_react_constants_esm.Es.SCALE_1),position:"relative",cursor:"pointer","&::before, &::after":{borderRight:"1px solid ".concat(colours.pF),content:'""',height:"1em",right:"0.75em",position:"absolute",top:"50%",width:0},"&::before":{transform:"translate(0, -50%) rotate(45deg)"},"&::after":{transform:"translate(0, -50%) rotate(-45deg)"}}),SelectedChips=function SelectedChips(_ref){var name=_ref.name,selectedOptions=_ref.selectedOptions,onOptionRemove=_ref.onOptionRemove;return react.createElement(ChipList,{id:"".concat(name,"-selected"),"data-test":"typeahead-chip-list"},react.createElement("span",{id:"".concat(name,"-remove"),style:{display:"none"}},"remove"),selectedOptions.map((function(option){return react.createElement(Chip,{key:option.value,"data-test":"typeahead-chip"},react.createElement(ChipButton,{type:"button","aria-describedby":"".concat(name,"-remove"),onClick:function onClick(){onOptionRemove(option)}},option.chipLabel||option.label))})))};const Typeahead_SelectedChips=SelectedChips;SelectedChips.__docgenInfo={description:"",methods:[],displayName:"SelectedChips"};var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),keys_down="ArrowDown",keys_end="End",keys_enter="Enter",keys_escape="Escape",keys_home="Home",keys_left="ArrowLeft",keys_right="ArrowRight",keys_up="ArrowUp",menuActions_close="close",menuActions_closeSelect="closeSelect",menuActions_first="first",menuActions_last="last",menuActions_next="next",menuActions_open="open",menuActions_previous="previous",getFilteredOptions=function getFilteredOptions(_ref){var input=_ref.input,options=_ref.options;return(input?options.filter((function(option){return option.label.toLowerCase().includes(input.toLowerCase())})):options)||[]},valueEqual=function valueEqual(item1,item2){return item1.value==item2.value},getNewSelectedOptions=function getNewSelectedOptions(_ref2){var selectedOptions=_ref2.selectedOptions,option=_ref2.option;return _ref2.isMulti?(0,lodash.xorWith)(selectedOptions,[option],valueEqual):[option]},valueAsArray=function valueAsArray(value){return value?Array.isArray(value)?value:[value]:[]};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 initialState={menuOpen:!1,activeIndex:-1,focusIndex:-1,input:"",selectedOptions:[],options:[],ignoreBlur:!1,isMulti:!0};var state=__webpack_require__("./src/client/components/Typeahead/state.js");function Typeahead_typeof(o){return Typeahead_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},Typeahead_typeof(o)}var _excluded=["id","name","className","label","error","closeMenuOnSelect","isMulti","noOptionsMessage","defaultValue","value","menuOpen","loadOptions","initialOptions","options","input","selectedOptions","placeholder","activeIndex","focusIndex","onInitialise","onBlur","onActiveChange","onInput","onOptionMouseDown","onOptionToggle","onOptionRemove","onOptionsClear","onMenuClose","onMenuOpen","onChange","data-test","OptionContent"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function Typeahead_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 Typeahead_defineProperty(e,r,t){return(r=function Typeahead_toPropertyKey(t){var i=function Typeahead_toPrimitive(t,r){if("object"!=Typeahead_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Typeahead_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Typeahead_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ListboxOption=(0,styled_components_browser_esm.Ay)("div")((function(props){return{display:"flex",padding:props.isMulti?"".concat(govuk_react_constants_esm.Es.SCALE_3," 0 ").concat(govuk_react_constants_esm.Es.SCALE_3," 48px"):govuk_react_constants_esm.Es.SCALE_3,borderBottom:"solid 1px ".concat(colours.Pe),position:"relative",boxSizing:"border-box",minHeight:53,alignItems:"center",cursor:"pointer",backgroundColor:props.active?colours.ft:colours.UE,color:props.active?colours.UE:colours.pF,"&:last-child":{borderBottom:"none"},"::before":{content:props.isMulti?'""':"",position:"absolute",left:10,top:"calc(50% - 14px)",width:26,height:26,backgroundColor:colours.UE,boxSizing:"border-box",border:"solid 2px ".concat(colours.pF),outline:props.focussed?"3px solid ".concat(colours.eM):"none",outlineOffset:0},"::after":{display:props["aria-selected"]?"block":"none",content:props.isMulti?'""':"",position:"absolute",left:19,top:"calc(50% - 3px)",width:5,height:14,borderRight:"3px solid ".concat(colours.pF),borderBottom:"3px solid ".concat(colours.pF),transform:"translate(0, -50%) rotate(45deg)"}}})),NoOptionsMessage=(0,styled_components_browser_esm.Ay)("div")({padding:"".concat(govuk_react_constants_esm.Es.SCALE_3," 0"),boxSizing:"border-box",minHeight:53,textAlign:"center",color:colours.IC}),InputWrapper=(0,styled_components_browser_esm.Ay)("div")({position:"relative","&::after":{borderBottom:"2px solid ".concat(colours.Uv),borderRight:"2px solid ".concat(colours.Uv),content:'""',display:"block",height:12,pointerEvents:"none",position:"absolute",right:16,top:"50%",transform:"translate(0, -65%) rotate(45deg)",width:12}}),AutocompleteInput=(0,styled_components_browser_esm.Ay)("input")((function(_ref){var error=_ref.error;return function Typeahead_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Typeahead_ownKeys(Object(t),!0).forEach((function(r){Typeahead_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Typeahead_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({backgroundColor:colours.UE,boxSizing:"border-box",border:error?"4px solid ".concat(colours.Bk):"2px solid ".concat(colours.Uv),display:"block",fontSize:"1em",padding:"8px 12px 10px",textAlign:"left",width:"100%"},govuk_react_constants_esm.bs)})),TypeaheadOptionContent=function TypeaheadOptionContent(_ref2){var option=_ref2.option,searchString=_ref2.searchString;return react.createElement(Highlighter.A,{optionLabel:option.label,searchStr:searchString})},Menu=(0,styled_components_browser_esm.Ay)("div")((function(_ref3){return{visibility:_ref3.open?"visible":"hidden",backgroundColor:colours.UE,boxSizing:"border-box",border:"1px solid ".concat(colours.Uv),maxHeight:336,overflowY:"scroll",left:0,position:"absolute",top:"100%",width:"100%",zIndex:100}})),Typeahead=function Typeahead(_ref4){var id=_ref4.id,name=_ref4.name,className=_ref4.className,_ref4$label=_ref4.label,label=void 0===_ref4$label?"":_ref4$label,_ref4$error=_ref4.error,error=void 0!==_ref4$error&&_ref4$error,_ref4$closeMenuOnSele=_ref4.closeMenuOnSelect,closeMenuOnSelect=void 0!==_ref4$closeMenuOnSele&&_ref4$closeMenuOnSele,_ref4$isMulti=_ref4.isMulti,isMulti=void 0!==_ref4$isMulti&&_ref4$isMulti,_ref4$noOptionsMessag=_ref4.noOptionsMessage,noOptionsMessage=void 0===_ref4$noOptionsMessag?"No Options":_ref4$noOptionsMessag,defaultValue=_ref4.defaultValue,value=_ref4.value,menuOpen=_ref4.menuOpen,loadOptions=_ref4.loadOptions,_ref4$initialOptions=_ref4.initialOptions,initialOptions=void 0===_ref4$initialOptions?[]:_ref4$initialOptions,_ref4$options=_ref4.options,options=void 0===_ref4$options?[]:_ref4$options,_ref4$input=_ref4.input,input=void 0===_ref4$input?"":_ref4$input,_ref4$selectedOptions=_ref4.selectedOptions,selectedOptions=void 0===_ref4$selectedOptions?[]:_ref4$selectedOptions,_ref4$placeholder=_ref4.placeholder,placeholder=void 0===_ref4$placeholder?"Start typing":_ref4$placeholder,activeIndex=_ref4.activeIndex,focusIndex=_ref4.focusIndex,onInitialise=_ref4.onInitialise,onBlur=_ref4.onBlur,onActiveChange=_ref4.onActiveChange,_onInput=_ref4.onInput,onOptionMouseDown=_ref4.onOptionMouseDown,onOptionToggle=_ref4.onOptionToggle,_onOptionRemove=_ref4.onOptionRemove,onOptionsClear=_ref4.onOptionsClear,onMenuClose=_ref4.onMenuClose,onMenuOpen=_ref4.onMenuOpen,_ref4$onChange=_ref4.onChange,onChange=void 0===_ref4$onChange?function(){}:_ref4$onChange,testId=_ref4["data-test"],_ref4$OptionContent=_ref4.OptionContent,OptionContent=void 0===_ref4$OptionContent?TypeaheadOptionContent:_ref4$OptionContent,inputProps=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref4,_excluded),closeOnSelect=!isMulti||closeMenuOnSelect,initialValue=value||defaultValue;(0,react.useEffect)((function(){onInitialise({isMulti,value:initialValue})}),[JSON.stringify(initialValue),isMulti]);var inputRef=react.useRef(null),listRef=react.useRef(null),ignoreFilter=!isMulti&&selectedOptions.map((function(_ref5){return _ref5.label})).includes(input),filteredOptions=getFilteredOptions({options,input:!ignoreFilter&&input}),activeId=menuOpen&&filteredOptions[activeIndex]?"".concat(name,"-").concat(filteredOptions[activeIndex].value):"",scrollItemAtIndexIntoView=function scrollItemAtIndexIntoView(index){var _listRef$current,item=null===(_listRef$current=listRef.current)||void 0===_listRef$current?void 0:_listRef$current.children[index];item&&item.scrollIntoView({block:"nearest"})},menuActive=!loadOptions||!!input;return react.createElement("div",{id:"".concat(name,"-wrapper"),"data-test":testId,className},label&&react.createElement(govuk_react_label_esm.A,{id:"".concat(name,"-label"),"data-test":"typeahead-label",htmlFor:name},label),isMulti&&Boolean(selectedOptions.length)&&react.createElement(Typeahead_SelectedChips,{name,selectedOptions,onOptionRemove:function onOptionRemove(option){_onOptionRemove(option),onChange(selectedOptions.filter((function(_ref6){return _ref6.value!==option.value})))}}),react.createElement(InputWrapper,null,react.createElement(AutocompleteInput,_extends({},inputProps,{id:name,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",inputMode:"search","aria-activedescendant":activeId,"aria-autocomplete":"list","aria-owns":"".concat(name,"-listbox"),"aria-controls":"".concat(name,"-listbox"),"aria-expanded":menuOpen?"true":"false","aria-haspopup":"listbox","aria-describedby":"autocomplete-".concat(name,"-assistiveHint"),role:"combobox",type:"text",placeholder,value:input,onBlur,onClick:function onClick(){onMenuOpen(),scrollItemAtIndexIntoView(activeIndex)},onInput:function onInput(e){_onInput(e),isMulti||e.target.value||(onOptionsClear(),onChange([]))},onKeyDown:function onInputKeyDown(event){var max=filteredOptions.length-1,action=function getActionFromKey(key,menuOpen){return menuOpen||key!==keys_down?key===keys_down||key===keys_right?menuActions_next:key===keys_up||key===keys_left?menuActions_previous:key===keys_home?menuActions_first:key===keys_end?menuActions_last:key===keys_escape?menuActions_close:key===keys_enter?menuActions_closeSelect:void 0:menuActions_open}(event.code,menuOpen);switch(action){case menuActions_next:case menuActions_last:case menuActions_first:case menuActions_previous:event.preventDefault();var newActiveIndex=function getUpdatedIndex(current,max,action){switch(action){case menuActions_first:return 0;case menuActions_last:return max;case menuActions_previous:return Math.max(0,current-1);case menuActions_next:return Math.min(max,current+1);default:return current}}(activeIndex,max,action);return onActiveChange(newActiveIndex),void scrollItemAtIndexIntoView(newActiveIndex);case menuActions_closeSelect:return event.preventDefault(),filteredOptions[activeIndex]&&(onOptionToggle(filteredOptions[activeIndex]),onChange(getNewSelectedOptions({selectedOptions,isMulti,option:filteredOptions[activeIndex]}))),void(closeOnSelect&&onMenuClose());case menuActions_close:return event.preventDefault(),void onMenuClose();case menuActions_open:return onMenuOpen(),void scrollItemAtIndexIntoView(activeIndex)}},error,ref:inputRef,"data-test":"typeahead-input"})),react.createElement(Menu,{id:"".concat(name,"-listbox"),open:menuOpen&&menuActive,role:"listbox","aria-labelledby":"".concat(name,"-label"),"aria-multiselectable":"true","data-test":"typeahead-menu"},menuOpen&&menuActive&&react.createElement(Task.A.Status,{name:state.S,id,progressMessage:"Loading options",startOnRender:{payload:{options:initialOptions,loadOptions,autocomplete:input},onSuccessDispatch:actions.STT}},(function(){return react.createElement("div",{ref:listRef},filteredOptions.map((function(option,index){return react.createElement(ListboxOption,{id:"".concat(name,"-").concat(option.value),key:option.value,active:index===activeIndex,focussed:index===focusIndex,isMulti,role:"option","aria-selected":selectedOptions.map((function(_ref7){return _ref7.value})).indexOf(option.value)>-1,"aria-setsize":filteredOptions.length,"aria-posinset":index,onClick:function onClick(){inputRef.current&&inputRef.current.select(),onOptionToggle(option),onChange(getNewSelectedOptions({selectedOptions,isMulti,option})),closeOnSelect&&onMenuClose()},onMouseMove:function onMouseMove(){onActiveChange(index)},onMouseDown:function onMouseDown(){onOptionMouseDown(index)},"data-test":"typeahead-menu-option"},react.createElement("span",null,react.createElement(OptionContent,{option,searchString:input})))})),!filteredOptions.length&&react.createElement(NoOptionsMessage,{"data-test":"typeahead-no-options"},noOptionsMessage))})))),react.createElement(Typeahead_AssistiveText,{name}))},keyPairPropType=prop_types_default().shape({label:prop_types_default().string,value:prop_types_default().string});Typeahead.propTypes={id:prop_types_default().string.isRequired,name:prop_types_default().string,className:prop_types_default().string,label:prop_types_default().string,error:prop_types_default().string,closeMenuOnSelect:prop_types_default().bool,isMulti:prop_types_default().bool,noOptionsMessage:prop_types_default().string,defaultValue:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),value:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),menuOpen:prop_types_default().bool,loadOptions:prop_types_default().func,onChange:prop_types_default().func,options:prop_types_default().arrayOf(keyPairPropType),input:prop_types_default().string,selectedOptions:prop_types_default().arrayOf(keyPairPropType),activeIndex:prop_types_default().number,focusIndex:prop_types_default().number,onInitialise:prop_types_default().func,onBlur:prop_types_default().func,onActiveChange:prop_types_default().func,onInput:prop_types_default().func,onOptionMouseDown:prop_types_default().func,onOptionToggle:prop_types_default().func,onOptionRemove:prop_types_default().func,onOptionsClear:prop_types_default().func,onMenuClose:prop_types_default().func,onMenuOpen:prop_types_default().func};const Typeahead_Typeahead=(0,multiinstance.Ay)({name:"Typeahead",actionPattern:"TYPEAHEAD__",dispatchToProps:function dispatchToProps(dispatch){return{onInitialise:function onInitialise(_ref8){var isMulti=_ref8.isMulti,value=_ref8.value;dispatch({type:actions.b2l,isMulti,value})},onBlur:function onBlur(){dispatch({type:actions.TdV})},onActiveChange:function onActiveChange(activeIndex){dispatch({type:actions.tgm,activeIndex})},onInput:function onInput(event){dispatch({type:actions.GqW,input:event.target.value})},onMenuClose:function onMenuClose(){dispatch({type:actions.WCI})},onMenuOpen:function onMenuOpen(){dispatch({type:actions.aQO})},onOptionMouseDown:function onOptionMouseDown(focusIndex){dispatch({type:actions.MQe,focusIndex})},onOptionToggle:function onOptionToggle(option){dispatch({type:actions.y3g,option})},onOptionRemove:function onOptionRemove(option){dispatch({type:actions.WnY,option})},onOptionsClear:function onOptionsClear(){dispatch({type:actions.aud})}}},component:Typeahead,reducer:function(){var _state$selectedOption,_valueAsArray$,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,value=_ref.value,input=_ref.input,isMulti=_ref.isMulti,option=_ref.option,activeIndex=_ref.activeIndex,focusIndex=_ref.focusIndex,result=_ref.result,selectedValue=!state.isMulti&&(null===(_state$selectedOption=state.selectedOptions[0])||void 0===_state$selectedOption?void 0:_state$selectedOption.label),filteredOptions=getFilteredOptions({options:state.options,input:state.input});switch(type){case actions.b2l:return _objectSpread(_objectSpread({},state),{},{isMulti,selectedOptions:valueAsArray(value),input:isMulti?state.input:(null===(_valueAsArray$=valueAsArray(value)[0])||void 0===_valueAsArray$?void 0:_valueAsArray$.label)||""});case actions.STT:var newOptions=getFilteredOptions({options:result,input:state.input});return _objectSpread(_objectSpread({},state),{},{options:result||[],activeIndex:newOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newOptions.indexOf(filteredOptions[state.focusIndex])});case actions.TdV:return _objectSpread(_objectSpread({},state),{},{menuOpen:!!state.ignoreBlur&&state.menuOpen,focusIndex:-1,input:state.ignoreBlur?state.input:state.input&&selectedValue||"",ignoreBlur:!1});case actions.GqW:var newInputOptions=getFilteredOptions({options:state.options,input});return _objectSpread(_objectSpread({},state),{},{input,activeIndex:newInputOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newInputOptions.indexOf(filteredOptions[state.focusIndex]),menuOpen:!0});case actions.tgm:return _objectSpread(_objectSpread({},state),{},{activeIndex});case actions.WCI:return _objectSpread(_objectSpread({},state),{},{input:state.isMulti?"":state.input,menuOpen:!1});case actions.aQO:var selectedIndex=state.options.map((function(_ref2){return _ref2.label})).indexOf(selectedValue);return _objectSpread(_objectSpread({},state),{},{menuOpen:!0,activeIndex:selectedIndex});case actions.MQe:return _objectSpread(_objectSpread({},state),{},{ignoreBlur:!0,focusIndex});case actions.y3g:var newInput=state.isMulti?state.input:option.label,toggledIndex=getFilteredOptions({options:state.options,input:state.isMulti&&newInput}).indexOf(option);return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.isMulti?(0,lodash.xorWith)(state.selectedOptions,[option],valueEqual):[option],input:newInput,activeIndex:toggledIndex,focusIndex:toggledIndex});case actions.WnY:return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.selectedOptions.filter((function(_ref3){return _ref3.value!==option.value}))});case actions.aud:return _objectSpread(_objectSpread({},state),{},{selectedOptions:[]});default:return state}}})},"./src/client/components/Typeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_Typeahead__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var Typeahead=function Typeahead(_ref){var id=_ref.id,name=_ref.name,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Typeahead__WEBPACK_IMPORTED_MODULE_6__.A,_extends({id:id||"".concat(name,"-typeahead"),name},props))};const __WEBPACK_DEFAULT_EXPORT__=Typeahead;Typeahead.__docgenInfo={description:"",methods:[],displayName:"Typeahead"}},"./src/client/components/Typeahead/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>TASK_GET_TYPEAHEAD_OPTIONS});var TASK_GET_TYPEAHEAD_OPTIONS="TASK_GET_TYPEAHEAD_OPTIONS"},"./src/client/components/WatchTextContent.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_excluded=["onTextContentChange"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var WatchTextContent=function WatchTextContent(_ref){var onTextContentChange=_ref.onTextContentChange,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),ref=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(),previousTextContent=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)((function(){ref.current.remove(),onTextContentChange(ref.current.textContent),previousTextContent.current=ref.current.textContent;var observer=new MutationObserver((function(){ref.current.textContent!==previousTextContent.current&&(onTextContentChange(ref.current.textContent),previousTextContent.current=ref.current.textContent)}));return ref.current&&observer.observe(ref.current,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),function(){observer.disconnect()}}),[]),react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",{hidden:!0},react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",_extends({ref},props)))};const __WEBPACK_DEFAULT_EXPORT__=WatchTextContent;WatchTextContent.__docgenInfo={description:"@function WatchTextContent\n@description Calls {onTextContentChange} anytime the `textContent`\nof {children} changes. The {children} will be rendered hidden.\n@param {Object} props\n@param {React.Children} props.children - Vdom to whose changes the component subscribes to.\nIt will be rendered in a hidden div.\n@param {(textContent: string) => void} props.onTextContentChange - A callback that will\nbe called anytime the `textContent` of this component changes with the value\nof the current `textContent`.",methods:[],displayName:"WatchTextContent"}},"./src/client/components/Wrap.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.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var Wrap=function Wrap(_ref){var With=_ref.with,when=_ref.when,children=_ref.children,props=_ref.props;return when?react__WEBPACK_IMPORTED_MODULE_1__.createElement(With,_extends({},props,{children})):"function"==typeof children?children():children};const __WEBPACK_DEFAULT_EXPORT__=Wrap;Wrap.__docgenInfo={description:"@function Wrap\n@description Wraps children in a component specified in the {with} prop\nif the {when} condition is met.\n@param {Object} props\n@param {(props: Object) => React.ReactNode} props.with - The wrapping component.\n@param {any} props.when - Wrapping takes place only if this prop is truthy,\notherwise the children will be rendered unwrapped\n@param {Object} props.props - Will be passed as the props to the wrapping\ncomponent.\n@param {React.ReactNode} props.props - The children to be wrapped\n@returns {React.ReactNode}\n@example\n<Wrap with=\"span\" when={true} props={{style: {color: 'red'}}}>\n  <h1>I'm gonna be wrapped</h1>\n</Wrap>",methods:[],displayName:"Wrap"}},"./src/client/components/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ex:()=>Badge.A,vx:()=>ButtonLink.A,vu:()=>Chip.A,SG:()=>CollectionHeader.A,ID:()=>CollectionHeaderRow.A,G1:()=>CollectionItem.Ay,xG:()=>CollectionSort.A,Nh:()=>components_ContactLocalHeader,fx:()=>elements_FieldAddress,y7:()=>FieldCheckboxes.A,TZ:()=>FieldInput.A,$o:()=>FieldRadios.A,lW:()=>elements_FieldTextarea,wk:()=>components_FilterReset,IY:()=>FormActions.A,Hb:()=>Layout_FormLayout,IC:()=>components_InvestmentLocalHeader,Jw:()=>LocalHeader.A,Vu:()=>LocalNav,hs:()=>LocalNavLink,gZ:()=>Main.A,bv:()=>NewWindowLink.A,dK:()=>Pagination.A,vv:()=>ReadMore.A,Jd:()=>components_RoutedDownloadDataHeader,Fh:()=>components_RoutedFilterChips,bD:()=>SummaryTable.A,Kf:()=>Timeline.A});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),lodash=(__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.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/lodash/lodash.js")),lodash_default=__webpack_require__.n(lodash),date=__webpack_require__("./src/client/utils/date.js"),transformFieldName=function transformFieldName(fieldName){return(0,lodash.capitalize)((0,lodash.lowerCase)(fieldName))},unwrapFromArray=function unwrapFromArray(change){return Array.isArray(change)?change.length>1?change:change[0]||null:change},getUpdatedBy=function getUpdatedBy(timestamp,user){var formattedTime=(0,date.formatMediumDateTime)(timestamp),changedBy=user?(0,lodash.isEmpty)(null==user?void 0:user.name)?null==user?void 0:user.email:null==user?void 0:user.name:"automaticUpdate";return"automaticUpdate"===changedBy?"Automatically updated on ".concat(formattedTime):"Updated on ".concat(formattedTime," by ").concat(changedBy)},getBadgeText=function getBadgeText(length){return 1==length?"1 change":length+" changes"},transformAuditLogItem=function transformAuditLogItem(logItem,valueTransformer,fieldMapper,excludedFields,auditType){var changesSaved=!!Object.keys(logItem.changes).length,metadata=[],transformedChanges=function transformChanges(changes,fieldMapper,excludedFields){return Object.keys(changes).filter((function(fieldName){return!excludedFields.includes(fieldName)})).map((function(fieldName){return{fieldName:fieldMapper(fieldName),oldValue:unwrapFromArray(changes[fieldName][0]),newValue:unwrapFromArray(changes[fieldName][1])}}))}(logItem.changes,fieldMapper,excludedFields);changesSaved?transformedChanges.map((function(change,index){return metadata.push({key:"".concat(logItem.id,"-").concat(index,"-field-name"),value:react.createElement("strong",null,change.fieldName)})&&metadata.push({key:"".concat(logItem.id,"-").concat(index,"-old-value"),label:"Information before change: ",value:valueTransformer(change.oldValue,change.fieldName)})&&metadata.push({label:"Information after change: ",key:"".concat(logItem.id,"-").concat(index,"-new-value"),value:valueTransformer(change.newValue,change.fieldName)})})):metadata.push({value:"No changes were made to ".concat(auditType," in this update")});var badges=[{text:changesSaved?getBadgeText(transformedChanges.length):""}];return{id:logItem.id,metadata,badges:badges.filter((function(item){return item.text})),headingText:getUpdatedBy(logItem.timestamp,logItem.user)}},AuditHistory=function AuditHistory(_ref){var _ref$resource=_ref.resource,Rsrc=void 0===_ref$resource?Resource.Ay:_ref$resource,id=_ref.id,valueTransformer=_ref.valueTransformer,_ref$fieldMapper=_ref.fieldMapper,fieldMapper=void 0===_ref$fieldMapper?transformFieldName:_ref$fieldMapper,_ref$excludedFields=_ref.excludedFields,excludedFields=void 0===_ref$excludedFields?[]:_ref$excludedFields,auditType=_ref.auditType;return react.createElement(Rsrc.Paginated,{id},(function(items){return react.createElement("ul",null,function transformAuditResponseToCollection(){var valueTransformer=arguments.length>1?arguments[1]:void 0,fieldMapper=arguments.length>2?arguments[2]:void 0,excludedFields=arguments.length>3?arguments[3]:void 0,auditType=arguments.length>4?arguments[4]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(result){return transformAuditLogItem(result,valueTransformer,fieldMapper,excludedFields,auditType)}))}(items,valueTransformer,fieldMapper,excludedFields,auditType).map((function(item){return react.createElement(CollectionItem.Ay,{key:item.id,headingText:item.headingText,metadata:item.metadata,badges:item.badges})})))}))};AuditHistory.propTypes={resource:prop_types_default().func.isRequired,id:prop_types_default().string.isRequired,valueTransformer:prop_types_default().func.isRequired,fieldMapper:prop_types_default().func,excludedFields:prop_types_default().arrayOf(prop_types_default().string),auditType:prop_types_default().string.isRequired};AuditHistory.__docgenInfo={description:"A component that makes a call to a audit log endpoint and displays the results in the familiar CollectionList style.",methods:[],displayName:"AuditHistory",props:{resource:{defaultValue:{value:"multiInstance({\n  name: 'Resource',\n  actionPattern: 'RESOURCE',\n  reducer: (state, { id, result }) => ({\n    ...state,\n    [id]: result,\n  }),\n  idProp: 'name',\n  componentStateToProps: (state, _, { id }) => ({ result: state[id] }),\n  component: ({\n    name,\n    id,\n    taskStatusProps,\n    children,\n    result,\n    payload,\n    transformer = (x) => [x],\n    progressBox,\n    noRetry,\n  }) =>\n    progressBox ? (\n      <LoadingBox\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n          ignoreIfInProgress: true,\n        }}\n      >\n        {result ? children(...transformer(result)) : children()}\n      </LoadingBox>\n    ) : (\n      <Task.Status\n        {...taskStatusProps}\n        name={name}\n        id={id}\n        noRetry={noRetry}\n        startOnRender={{\n          onSuccessDispatch: 'RESOURCE',\n          payload,\n        }}\n      >\n        {() => result !== undefined && children(...transformer(result))}\n      </Task.Status>\n    ),\n})",computed:!0},description:"The resource to use for the audit log call.\nThis **must** be a collection resource as these are the only ones that support pagination.",type:{name:"func"},required:!1},fieldMapper:{defaultValue:{value:"(fieldName) =>\ncapitalize(lowerCase(fieldName))",computed:!1},description:"A function that makes field names render correctly. If no function is passed the field names will\nrender as they are named in the API, which isn't ideal for any field names with acronyms.",type:{name:"func"},required:!1},excludedFields:{defaultValue:{value:"[]",computed:!1},description:"An array of fields that can be ignored or shouldn't be displayed in the audit log.",type:{name:"arrayOf",value:{name:"string"}},required:!1},id:{description:"The endpoint containing a dynamic ID for the resource to use.",type:{name:"string"},required:!0},valueTransformer:{description:"The transformer for the values. These will be different for each type of record.",type:{name:"func"},required:!0},auditType:{description:"The type of record. This is displayed as part of the 'no changes saved' text.",type:{name:"string"},required:!0}}};var Badge=__webpack_require__("./src/client/components/Badge/index.jsx"),ButtonLink=__webpack_require__("./src/client/components/ButtonLink/index.jsx"),CollectionItem=(__webpack_require__("./src/client/components/CollectionList/index.jsx"),__webpack_require__("./src/client/components/CollectionList/CollectionItem.jsx")),CollectionHeader=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx"),CollectionSort=__webpack_require__("./src/client/components/CollectionList/CollectionSort.jsx"),govuk_react_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),FilterHeader=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H2)({marginTop:0,fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.iU.MEDIUM,marginBottom:0}),CollectionFilters=function CollectionFilters(_ref){var children=_ref.children,taskProps=_ref.taskProps;return react.createElement(govuk_react_esm.bn,{setWidth:"one-third"},react.createElement(Task.A.Status,taskProps,(function(){return react.createElement("nav",{"aria-label":"Filters","data-test":"collection-filters"},react.createElement(FilterHeader,null,"Filters"),children)})))};CollectionFilters.__docgenInfo={description:"",methods:[],displayName:"CollectionFilters"};var CollectionHeaderRow=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),govuk_react_hint_text_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.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.regexp.constructor.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/es.string.match.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/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js")),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),actions=__webpack_require__("./src/client/actions.js"),SpacedSectionBreak=__webpack_require__("./src/client/components/SpacedSectionBreak.js"),ContentWithHeading=__webpack_require__("./src/client/components/ContentWithHeading.jsx"),Filters=__webpack_require__("./src/client/components/CompanyLists/Filters.jsx"),pluralize=(__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/pluralize/pluralize.js")),pluralize_default=__webpack_require__.n(pluralize),Select=__webpack_require__("./src/client/components/Select/index.jsx"),CompanyLists_state=__webpack_require__("./src/client/components/CompanyLists/state.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 _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<a;e++)n[e]=r[e];return n}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 StyledRoot=styled_components_browser_esm.Ay.div({display:"flex",alignItems:"baseline",flexWrap:"wrap",marginBottom:govuk_react_constants_esm.Es.SCALE_2}),StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({flexGrow:1}),StyledSelect=(0,styled_components_browser_esm.Ay)(Select.A)((function(_ref){var theme=_ref.theme;return _defineProperty({width:"100%"},(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET,{width:"auto",marginLeft:govuk_react_constants_esm.Es.SCALE_2})})),Header=(0,react_redux.connect)(CompanyLists_state.o,(function(dispatch){return{onChange:function onChange(id){return dispatch({type:actions.UJl,id})}}}))((function(_ref3){var selectedId=_ref3.selectedId,lists=_ref3.lists,_onChange=_ref3.onChange,listLength=Object.keys(lists).length;return react.createElement(StyledRoot,null,react.createElement(StyledHeading,null,pluralize_default()("My companies list",listLength,!0)),listLength>1&&react.createElement(StyledSelect,{label:"View list",htmlFor:"view-list",input:{onChange:function onChange(e){return _onChange(e.target.value)},initialValue:selectedId,id:"view-list"}},Object.entries(lists).map((function(_ref4){var _ref5=_slicedToArray(_ref4,2),id=_ref5[0],name=_ref5[1].name;return react.createElement("option",{key:id,value:id,"aria-label":name},name)}))))}));const CompanyLists_Header=Header;Header.__docgenInfo={description:"",methods:[],displayName:"Header"};var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),FormActions=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),ListHeader_StyledRoot=styled_components_browser_esm.Ay.div({display:"flex",alignItems:"baseline",justifyContent:"space-between"}),ListHeader_StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({flexGrow:1,marginBottom:0}),StyledFormActions=(0,styled_components_browser_esm.Ay)(FormActions.A)({textAlign:"right"}),ListHeader=function ListHeader(_ref){var id=_ref.id,name=_ref.name;return react.createElement(ListHeader_StyledRoot,null,react.createElement(ListHeader_StyledHeading,null,name),react.createElement(StyledFormActions,null,react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companyLists.rename(id)},"Edit list name"),react.createElement(SecondaryButton.A,{as:"a",href:urls_default().companyLists.delete(id)},"Delete list")))};const CompanyLists_ListHeader=ListHeader;ListHeader.__docgenInfo={description:"",methods:[],displayName:"ListHeader"};var govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_table_esm=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js"),govuk_react_visually_hidden_esm=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),index_modern=__webpack_require__("./node_modules/react-lines-ellipsis/lib/index.modern.mjs"),colours=__webpack_require__("./src/client/utils/colours.js");function Table_typeof(o){return Table_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},Table_typeof(o)}function Table_defineProperty(e,r,t){return(r=function Table_toPropertyKey(t){var i=function Table_toPrimitive(t,r){if("object"!=Table_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Table_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Table_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var format=__webpack_require__("./src/client/utils/date.js").format,getMediaQuery=function getMediaQuery(theme){return(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET},StyledButtonLink=styled_components_browser_esm.Ay.a({marginBottom:0,width:"100%"}),StyledTableRow=styled_components_browser_esm.Ay.tr((function(_ref){var theme=_ref.theme;return Table_defineProperty({borderBottom:"1px solid ".concat(colours.GU)},getMediaQuery(theme),{borderBottom:"none"})})),StyledCell=styled_components_browser_esm.Ay.td({padding:0,borderBottom:"none"}),StyledHeaderCell=styled_components_browser_esm.Ay.th({padding:0,borderBottom:"none"}),StyledTableCell=(0,styled_components_browser_esm.Ay)(StyledCell)((function(_ref3){var theme=_ref3.theme;return Table_defineProperty({display:"inline-block",width:"100%"},getMediaQuery(theme),{display:"table-cell",width:"auto",padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_4," ").concat(govuk_react_constants_esm.Es.SCALE_2," 0"),borderBottom:"1px solid ".concat(colours.GU)})})),StyledTableHeaderCell=(0,styled_components_browser_esm.Ay)(StyledHeaderCell)((function(_ref5){var theme=_ref5.theme;return Table_defineProperty({display:"none",fontWeight:govuk_react_constants_esm.sO.bold},getMediaQuery(theme),{display:"table-cell",borderBottom:"1px solid ".concat(colours.GU)})})),TitleCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref7){var theme=_ref7.theme;return Table_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_3},getMediaQuery(theme),{paddingTop:govuk_react_constants_esm.Es.SCALE_2})})),ColumnLabelCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref9){var theme=_ref9.theme;return Table_defineProperty({position:"relative",marginTop:"".concat(govuk_react_constants_esm.Es.SCALE_5),"::before":{content:"'Last interaction'",position:"absolute",top:"-".concat(govuk_react_constants_esm.Es.SCALE_4),fontSize:"smaller"}},getMediaQuery(theme),{marginTop:0,"::before":{content:"none"}})})),ActionCell=(0,styled_components_browser_esm.Ay)(StyledTableCell)((function(_ref11){var theme=_ref11.theme;return Table_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_2,paddingBottom:govuk_react_constants_esm.Es.SCALE_4},getMediaQuery(theme),{paddingRight:0,paddingBottom:govuk_react_constants_esm.Es.SCALE_2})})),StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_link_esm.A)({":focus":{color:colours.yV,":active":{color:colours.Df},":hover":{color:colours.FY},":visited":{color:colours.Nu}}}),StyledLinesEllipsis=(0,styled_components_browser_esm.Ay)(index_modern.A)({display:"inline-block",background:colours.Vd,textDecoration:"underline"}),Advisers=function Advisers(_ref13){var ditParticipants=_ref13.ditParticipants;return 0===ditParticipants.length?"Unknown adviser - Unknown team":ditParticipants.length>1?"Multiple advisers":ditParticipants.map((function(adviser,index){return react.createElement("div",{key:index},"".concat(adviser.name||"Unknown adviser"," - ").concat(adviser.team||"Unknown team"))}))},CompaniesTable=function CompaniesTable(_ref14){var companies=_ref14.companies;return react.createElement(govuk_react_table_esm.A,{head:react.createElement(govuk_react_table_esm.A.Row,null,react.createElement(StyledTableHeaderCell,{width:"auto"},"Company name"),react.createElement(StyledTableHeaderCell,{width:"15%"},"Last interaction"),react.createElement(StyledTableHeaderCell,{width:"25%"},"Subject"),react.createElement(StyledTableHeaderCell,{width:"20%"},"Added by"),react.createElement(StyledTableHeaderCell,{width:"151px"},react.createElement(govuk_react_visually_hidden_esm.A,null,"Action")))},companies.map((function(_ref15){var id=_ref15.id,name=_ref15.name,date=_ref15.date,subject=_ref15.subject,interactionId=_ref15.interactionId,ditParticipants=_ref15.ditParticipants;return react.createElement(StyledTableRow,{key:id},react.createElement(TitleCell,null,react.createElement(StyledLink,{href:urls_default().companies.detail(id)},react.createElement(StyledLinesEllipsis,{text:name,maxLine:"2",ellipsis:"...",trimRight:!0,basedOn:"words"}))),react.createElement(ColumnLabelCell,null,date?format(date):"-"),react.createElement(StyledTableCell,null,interactionId?react.createElement(StyledLink,{href:urls_default().interactions.detail(interactionId)},react.createElement(StyledLinesEllipsis,{text:subject,maxLine:"2",ellipsis:"...",trimRight:!0,basedOn:"words"})):"No interactions have been recorded"),react.createElement(StyledTableCell,null,react.createElement(Advisers,{ditParticipants})),react.createElement(ActionCell,null,react.createElement(SecondaryButton.A,{as:StyledButtonLink,href:urls_default().companies.interactions.create(id),"aria-label":"Add interaction with ".concat(name)},"Add interaction")))})))};const Table=CompaniesTable;function CompanyLists_typeof(o){return CompanyLists_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_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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){CompanyLists_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function CompanyLists_defineProperty(e,r,t){return(r=function CompanyLists_toPropertyKey(t){var i=function CompanyLists_toPrimitive(t,r){if("object"!=CompanyLists_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLists_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLists_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return CompanyLists_arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function CompanyLists_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return CompanyLists_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)?CompanyLists_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 CompanyLists_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}CompaniesTable.__docgenInfo={description:"",methods:[],displayName:"CompaniesTable"};var applyFilters=function applyFilters(companies,query,orderBy){return lodash.orderBy.apply(void 0,[companies.filter((function(c){return c.name.match(new RegExp(query,"i"))}))].concat(_toConsumableArray(CompanyLists_defineProperty(CompanyLists_defineProperty(CompanyLists_defineProperty({},Filters.Ot,[function(c){return c.date||""},"desc"]),Filters.MR,[function(c){return c.date||""},"asc"]),Filters.X8,[function(c){return c.name},"asc"])[orderBy])))},CompanyList=(0,react_redux.connect)((function(state){var _state2props=(0,CompanyLists_state.o)(state),lists=_state2props.lists,selectedId=_state2props.selectedId,orderBy=_state2props.orderBy,query=_state2props.query;return _objectSpread(_objectSpread({},lists[selectedId]),{},{id:selectedId,orderBy,query})}))((function(_ref){var id=_ref.id,name=_ref.name,companies=_ref.companies,query=_ref.query,orderBy=_ref.orderBy;return react.createElement("section",null,react.createElement(CompanyLists_Header,null),react.createElement(SpacedSectionBreak.A,null),react.createElement(CompanyLists_ListHeader,{id,name}),react.createElement(Task.A.Status,{name:"Company list",id,progressMessage:"loading companies",startOnRender:{payload:id,onSuccessDispatch:actions.Hfi}},(function(){return companies&&companies.length?react.createElement(react.Fragment,null,companies.length>1&&react.createElement(Filters.Ay,null),react.createElement(Table,{companies:applyFilters(companies,query,orderBy)})):react.createElement(govuk_react_hint_text_esm.A,null,"You have not added any companies to your list.",react.createElement("br",null),"You can add companies to this list from a company page, and only you can see this list.")})))})),EmptyState=function EmptyState(){return react.createElement(ContentWithHeading.A,{heading:"My companies lists"},react.createElement(govuk_react_hint_text_esm.A,null,"You have not yet created any lists with companies.",react.createElement("br",null),"You can add companies to lists from a company page, and only you can see these lists."))};const CompanyLists=(0,react_redux.connect)(CompanyLists_state.o)((function(_ref2){var lists=_ref2.lists;return lists?Object.keys(lists).length?react.createElement(CompanyList,null):react.createElement(EmptyState,null):react.createElement(Task.A.Status,{name:"Company lists",id:"dashboard",progressMessage:"Loading my companies lists",startOnRender:{onSuccessDispatch:actions.Twh}})}));__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var _templateObject,govuk_react_main_esm=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),govuk_react_grid_col_esm=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),govuk_react_grid_row_esm=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_details_esm=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),LocalHeaderHeading=__webpack_require__("./src/client/components/LocalHeader/LocalHeaderHeading.jsx"),state=__webpack_require__("./src/client/components/CompanyLocalHeader/state.js");var StyledCompanyReferButton=(0,styled_components_browser_esm.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: 4px 8px 4px 8px;\n  border: none;\n  vertical-align: middle;\n  cursor: pointer;\n  margin-right: 10px;\n  font-size: ",";\n  span {\n    pointer-events: none;\n    display: inline-block;\n  }\n  background-color: ",";\n  border-bottom: 3px solid ",";\n"])),govuk_react_constants_esm.SG.SIZE_14,colours.WS,colours.ej),LocalHeaderCompanyRefer=function LocalHeaderCompanyRefer(_ref){var companyId=_ref.companyId;return react.createElement(react.Fragment,null,react.createElement(StyledCompanyReferButton,{"data-test":"refer-company-button",onClick:function handleClickRefer(){window.location.href=urls_default().companies.referrals.send(companyId)}},react.createElement("span",null,"Refer this company")))};const CompanyLocalHeader_LocalHeaderCompanyRefer=LocalHeaderCompanyRefer;var LocalHeaderCompanyLists_templateObject,_templateObject2,_templateObject3;function LocalHeaderCompanyLists_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}LocalHeaderCompanyRefer.__docgenInfo={description:"",methods:[],displayName:"LocalHeaderCompanyRefer"};var StyledCompanyListButton=(0,styled_components_browser_esm.Ay)("button")(LocalHeaderCompanyLists_templateObject||(LocalHeaderCompanyLists_templateObject=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  display: inline-table;\n  padding: 4px 8px 4px 8px;\n  border: none;\n  vertical-align: middle;\n  cursor: pointer;\n  margin-right: 10px;\n  font-size: ",";\n  span {\n    pointer-events: none;\n    display: inline-block;\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_14,govuk_react_constants_esm.SG.SIZE_16),StyledCompanyListItemButton=(0,styled_components_browser_esm.Ay)(StyledCompanyListButton)(_templateObject2||(_templateObject2=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  background-color: ",";\n  color: ",";\n  border-bottom: 3px solid ",";\n  font-weight: ",";\n"])),colours.sB,colours._G,colours._G,govuk_react_constants_esm.sO.bold),StyledAddButton=(0,styled_components_browser_esm.Ay)(StyledCompanyListButton)(_templateObject3||(_templateObject3=LocalHeaderCompanyLists_taggedTemplateLiteral(["\n  background-color: ",";\n  border-bottom: 3px solid ",";\n"])),colours.WS,colours.ej),LocalHeaderCompanyLists=function LocalHeaderCompanyLists(_ref){var results=_ref.results,companyId=_ref.companyId,handleClickAddRemove=function handleClickAddRemove(){window.location.href="".concat(urls_default().companies.lists.addRemove(companyId),"?returnUrl=").concat(window.location.pathname)};return react.createElement(Task.A.Status,{name:state.wD,id:state.ID,progressMessage:"Loading my lists",startOnRender:{payload:{id:companyId},onSuccessDispatch:actions.PDO}},(function(){return results&&react.createElement(react.Fragment,null,Object.keys(results).map((function(list){return react.createElement(StyledCompanyListItemButton,{key:list,"data-test":"list-item-".concat((0,lodash.kebabCase)(results[list].name),"-button"),onClick:handleClickAddRemove},results[list].name," ",react.createElement("span",null,"x"))})),react.createElement(StyledAddButton,{"data-test":"add-to-list-button",onClick:handleClickAddRemove},react.createElement("span",null,"+")," Add to list"),react.createElement(CompanyLocalHeader_LocalHeaderCompanyRefer,{companyId}))}))};const CompanyLocalHeader_LocalHeaderCompanyLists=(0,react_redux.connect)(state.oK)(LocalHeaderCompanyLists);LocalHeaderCompanyLists.__docgenInfo={description:"",methods:[],displayName:"LocalHeaderCompanyLists"};var utils_templateObject,utils_templateObject2,StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),addresses=__webpack_require__("./src/client/utils/addresses.js"),ArchivePanel=__webpack_require__("./src/client/components/ArchivePanel/index.jsx");__webpack_require__("./src/client/modules/Companies/CollectionList/state.js");function utils_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var CollectionListPlaceholder_templateObject,CollectionListPlaceholder_templateObject2,CollectionListPlaceholder_templateObject3,shimmer=(0,styled_components_browser_esm.i7)(utils_templateObject||(utils_templateObject=utils_taggedTemplateLiteral(["\n  0% {\n    background-position: -500px 0;\n  }\n  100% {\n    background-position: 500px 0;\n  }\n"]))),animation=(0,styled_components_browser_esm.AH)(utils_templateObject2||(utils_templateObject2=utils_taggedTemplateLiteral(["\n  animation-duration: 1.5s;\n  animation-fill-mode: forwards;\n  animation-iteration-count: infinite;\n  animation-timing-function: linear;\n  animation-name: ",";\n  background: linear-gradient(to right, #eee 8%, #ddd 18%, #eee 33%);\n  background-size: 1000px 104px;\n"])),shimmer);function CollectionListPlaceholder_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(0,styled_components_browser_esm.Ay)("ul")(CollectionListPlaceholder_templateObject||(CollectionListPlaceholder_templateObject=CollectionListPlaceholder_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),(0,styled_components_browser_esm.Ay)("li")(CollectionListPlaceholder_templateObject2||(CollectionListPlaceholder_templateObject2=CollectionListPlaceholder_taggedTemplateLiteral(["\n  border-top: 1px solid ",";\n  ",";\n"])),colours.P1,(function(_ref){var marginTop=_ref.marginTop;return marginTop&&"margin-top: ".concat(marginTop,"px;")})),(0,styled_components_browser_esm.Ay)("div")(CollectionListPlaceholder_templateObject3||(CollectionListPlaceholder_templateObject3=CollectionListPlaceholder_taggedTemplateLiteral(["\n  ",";\n  ",";\n  ",";\n  ",";\n"])),animation,(function(_ref2){var height=_ref2.height;return height&&"height: ".concat(height,"px;")}),(function(_ref3){var widthPercent=_ref3.widthPercent;return widthPercent&&"width: ".concat(widthPercent,"%;")}),(function(_ref4){var marginTop=_ref4.marginTop;return marginTop&&"margin-top: ".concat(marginTop,"px;")}));var CollectionListFiltersPlaceholder_templateObject,CollectionListFiltersPlaceholder_templateObject2,CollectionListFiltersPlaceholder_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;__webpack_require__("./node_modules/core-js/modules/es.array.fill.js");function CollectionListFiltersPlaceholder_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(0,styled_components_browser_esm.Ay)("div")(CollectionListFiltersPlaceholder_templateObject||(CollectionListFiltersPlaceholder_templateObject=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 150px;\n  height: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_4),(0,styled_components_browser_esm.Ay)("ul")(CollectionListFiltersPlaceholder_templateObject2||(CollectionListFiltersPlaceholder_templateObject2=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  margin-bottom: 40px;\n"]))),(0,styled_components_browser_esm.Ay)("li")(CollectionListFiltersPlaceholder_templateObject3||(CollectionListFiltersPlaceholder_templateObject3=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  display: flex;\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 25px;\n  height: 25px;\n"])),animation),(0,styled_components_browser_esm.Ay)("div")(_templateObject5||(_templateObject5=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  align-self: center;\n  width: ","%;\n  height: ",";\n  margin-left: ",";\n"])),animation,function randomNumberMinToMax(min,max){return Math.floor(Math.random()*(max-min+1)+min)}(50,90),govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_2),(0,styled_components_browser_esm.Ay)("ul")(_templateObject6||(_templateObject6=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  margin-bottom: 30px;\n"]))),(0,styled_components_browser_esm.Ay)("li")(_templateObject7||(_templateObject7=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  &:first-child {\n    margin-top: 50px;\n  }\n  &:only-child {\n    margin-top: 0;\n  }\n"]))),(0,styled_components_browser_esm.Ay)("div")(_templateObject8||(_templateObject8=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 150px;\n  height: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_4),(0,styled_components_browser_esm.Ay)("div")(_templateObject9||(_templateObject9=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: ",";\n  height: 35px;\n  margin-top: ",";\n"])),animation,govuk_react_constants_esm.rC,govuk_react_constants_esm.Es.SCALE_1),(0,styled_components_browser_esm.Ay)("div")(_templateObject10||(_templateObject10=CollectionListFiltersPlaceholder_taggedTemplateLiteral(["\n  ",";\n  width: 250px;\n  height: ",";\n  margin-bottom: ",";\n"])),animation,govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_4);var CompanyLocalHeader_templateObject,CompanyLocalHeader_templateObject2,CompanyLocalHeader_templateObject3,CompanyLocalHeader_templateObject4,CompanyLocalHeader_templateObject5,CompanyLocalHeader_templateObject6,CompanyLocalHeader_templateObject7,CompanyLocalHeader_templateObject8,CompanyLocalHeader_templateObject9,CompanyLocalHeader_templateObject10,_templateObject11,isItaTierDAccount=function isItaTierDAccount(oneListGroupTier){return oneListGroupTier&&"1929c808-99b4-4abf-a891-45f2e187b410"===oneListGroupTier.id},buildCompanyBreadcrumbs=function buildCompanyBreadcrumbs(pageBreadcrumbs,companyId,companyName){return[{link:urls_default().dashboard.index(),text:"Home"},{link:urls_default().companies.index(),text:"Companies"},{link:urls_default().companies.detail(companyId),text:companyName}].concat(pageBreadcrumbs)},components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx");function CompanyLocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var LocalHeaderTradingNames=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H4)(CompanyLocalHeader_templateObject||(CompanyLocalHeader_templateObject=CompanyLocalHeader_taggedTemplateLiteral(["\n  font-weight: normal;\n"]))),StyledAddress=(0,styled_components_browser_esm.Ay)("p")(CompanyLocalHeader_templateObject2||(CompanyLocalHeader_templateObject2=CompanyLocalHeader_taggedTemplateLiteral(["\n  margin-top: ",";\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),BadgeText=(0,styled_components_browser_esm.Ay)("span")(CompanyLocalHeader_templateObject3||(CompanyLocalHeader_templateObject3=CompanyLocalHeader_taggedTemplateLiteral(["\n  font-weight: 600;\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),TypeWrapper=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject4||(CompanyLocalHeader_templateObject4=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    display: table-row;\n  }\n"])),govuk_react_constants_esm.LO.TABLET),StyledButtonContainer=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject5||(CompanyLocalHeader_templateObject5=CompanyLocalHeader_taggedTemplateLiteral(["\n  width: 100%;\n  display: inline-block;\n"]))),StyledList=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject6||(CompanyLocalHeader_templateObject6=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: 10px;\n  display: inline-flex;\n"]))),CompanyLocalHeader_StyledButtonLink=styled_components_browser_esm.Ay.a({marginBottom:10,float:"right"}),BadgeWrapper=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject7||(CompanyLocalHeader_templateObject7=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    display: table-cell;\n  }\n"])),govuk_react_constants_esm.LO.TABLET),StyledDetails=(0,styled_components_browser_esm.Ay)(govuk_react_details_esm.A)(CompanyLocalHeader_templateObject8||(CompanyLocalHeader_templateObject8=CompanyLocalHeader_taggedTemplateLiteral(["\n  @media (min-width: ",") {\n    margin: 0 0 0 ",";\n  }\n  span,\n  div {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.LO.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.SG.SIZE_16),StyledDescription=(0,styled_components_browser_esm.Ay)("div")(CompanyLocalHeader_templateObject9||(CompanyLocalHeader_templateObject9=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding: ",";\n  background-color: ",";\n\n  * + & {\n    margin-top: ",";\n  }\n\n  p {\n    margin-top: 0;\n    margin-bottom: 0;\n\n    &:not(:last-child) {\n      margin-bottom: ",";\n    }\n  }\n\n  & + * {\n    margin-top: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_2,colours.WS,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_3),StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(CompanyLocalHeader_templateObject10||(CompanyLocalHeader_templateObject10=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-top: ",";\n  div {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_20),StyledRelatedCompaniesWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject11||(_templateObject11=CompanyLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: 20px;\n"]))),isUltimate=function isUltimate(company){return!!company.isGlobalUltimate},hasManagedAccountDetails=function hasManagedAccountDetails(company){return company.oneListGroupTier&&function hasAllocatedLeadIta(company){return null!=company.oneListGroupGlobalAccountManager}(company)},CompanyLocalHeader=function CompanyLocalHeader(_ref){var _company$tradingNames,breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,company=_ref.company,csrfToken=_ref.csrfToken;return company&&react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{breadcrumbs:buildCompanyBreadcrumbs(breadcrumbs,company.id,company.name),flashMessages},react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth:"two-thirds"},react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},company.name),(null==company||null===(_company$tradingNames=company.tradingNames)||void 0===_company$tradingNames?void 0:_company$tradingNames.length)>0&&react.createElement(LocalHeaderTradingNames,{"data-test":"trading-names"},"Trading as: ",company.tradingNames.join(", ")),react.createElement(StyledAddress,{"data-test":"address"},(0,addresses.addressToStringResource)(company.address)),company.dunsNumber&&react.createElement(components_Resource.uf,{id:company.id},(function(_ref2){var relatedCompaniesCount=_ref2.relatedCompaniesCount;return relatedCompaniesCount>0&&react.createElement(StyledRelatedCompaniesWrapper,null,react.createElement(govuk_react_esm.N_,{href:urls_default().companies.dnbHierarchy.tree(company.id),"data-test":"company-tree-link"},"View company tree: ".concat(relatedCompaniesCount+1," companies")))}))),react.createElement(govuk_react_grid_col_esm.Ay,{setWith:"one-third"},react.createElement(StyledButtonContainer,null,react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-interaction",href:urls_default().companies.interactions.create(company.id),"aria-label":"Add interaction with ".concat(company.name)},"Add interaction"),react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-export-project",href:urls_default().exportPipeline.create(company.id),"aria-label":"Add export project",buttonColour:colours.WS,buttonTextColour:colours.pF},"Add export project"),react.createElement(govuk_react_button_esm.A,{as:CompanyLocalHeader_StyledButtonLink,"data-test":"header-add-export-win",href:urls_default().companies.exportWins.create(company.id),"aria-label":"Add export win",buttonColour:colours.WS,buttonTextColour:colours.pF},"Add export win")))),react.createElement(StyledList,null,react.createElement(CompanyLocalHeader_LocalHeaderCompanyLists,{companyId:company.id})),(isUltimate(company)||function isGlobalHQ(company){return company.headquarterType&&"ghq"===company.headquarterType.name}(company))&&react.createElement(TypeWrapper,null,react.createElement(BadgeWrapper,null,react.createElement(Badge.A,null,react.createElement(BadgeText,{"data-test":"badge"},isUltimate(company)?"Ultimate HQ":"Global HQ"))),isUltimate(company)&&react.createElement(StyledDetails,{summary:"What does Ultimate HQ mean?","data-test":"ultimate-hq-details"},"This HQ is in control of all related company records for"," ",company.name,".")),hasManagedAccountDetails(company)&&react.createElement(StyledDescription,{"data-test":"description"},hasManagedAccountDetails(company)&&react.createElement(react.Fragment,null,react.createElement("p",null,"This is an account managed company (One List"," ",company.oneListGroupTier.name,")"),react.createElement("p",null,isItaTierDAccount(company.oneListGroupTier)?"Lead ITA":"Global Account Manager",": ",company.oneListGroupGlobalAccountManager.name," ",react.createElement("a",{href:urls_default().companies.accountManagement.index(company.id)},isItaTierDAccount(company.oneListGroupTier)?"View Lead adviser":"View core team"))))),company.archived&&react.createElement(ArchivePanel.A,{archivedBy:company.archivedBy,archivedOn:company.archivedOn,archiveReason:company.archivedReason,unarchiveUrl:"".concat(urls_default().companies.unarchive(company.id),"?_csrf=").concat(csrfToken),type:"company"}),company.pendingDnbInvestigation&&react.createElement(StyledMain,{"data-test":"investigation-message"},react.createElement(StatusMessage.A,null,"This company record is based on information that has not yet been validated. This information is currently being checked by the Data Hub support team.")))};CompanyLocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().string.isRequired})).isRequired,flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),company:prop_types_default().object.isRequired,dnbRelatedCompaniesCount:prop_types_default().number};(0,react_redux.connect)(state.x0)(CompanyLocalHeader);CompanyLocalHeader.__docgenInfo={description:"",methods:[],displayName:"CompanyLocalHeader",props:{breadcrumbs:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"string",required:!0}}}},required:!0},flashMessages:{description:"",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},company:{description:"",type:{name:"object"},required:!0},dnbRelatedCompaniesCount:{description:"",type:{name:"number"},required:!1}}};var CompanyLocalTab_templateObject,CompanyLocalTab_templateObject2,CompanyLocalTab_templateObject3,govuk_react_paragraph_esm=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),govuk_react_warning_text_esm=__webpack_require__("./node_modules/@govuk-react/warning-text/dist/govuk-react-warning-text.esm.js");__webpack_require__("./node_modules/core-js/modules/es.string.search.js");function CompanyLocalTab_typeof(o){return CompanyLocalTab_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},CompanyLocalTab_typeof(o)}function CompanyLocalTab_defineProperty(e,r,t){return(r=function CompanyLocalTab_toPropertyKey(t){var i=function CompanyLocalTab_toPrimitive(t,r){if("object"!=CompanyLocalTab_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=CompanyLocalTab_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==CompanyLocalTab_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CompanyLocalTab_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledListItem=styled_components_browser_esm.Ay.li(CompanyLocalTab_templateObject||(CompanyLocalTab_templateObject=CompanyLocalTab_taggedTemplateLiteral(["\n  *,\n  *:before,\n  *:after {\n    box-sizing: border-box;\n  }\n  border-left-width: 1px;\n  text-align: center;\n  border-bottom: 1px solid ",";\n\n  @media (min-width: 1020px) {\n    white-space: nowrap;\n  }\n  @media (max-width: 839px) {\n    text-align: left;\n    margin-left: 25px;\n    line-height: 2.5em;\n    border-bottom: none;\n    &::before {\n      content: '—';\n      margin-left: -25px;\n      padding-right: 5px;\n    }\n    a {\n      width: calc(100% - 5px);\n    }\n  }\n"])),colours.Pe),StyledAnchorTag=styled_components_browser_esm.Ay.a(CompanyLocalTab_templateObject2||(CompanyLocalTab_templateObject2=CompanyLocalTab_taggedTemplateLiteral(["\n  display: inline-block;\n\n  @media (min-width: 840px) {\n    padding: 10px 11px;\n    margin: 0 5px 0 0;\n    &:link,\n    &:visited,\n    &:hover,\n    &:active {\n      color: ",";\n    }\n    background-color: ",";\n    text-align: center;\n    text-decoration: none;\n    height: 90%;\n\n    ","\n  }\n"])),colours.Uv,colours.P1,(function(props){return props.selected&&(0,styled_components_browser_esm.AH)(CompanyLocalTab_templateObject3||(CompanyLocalTab_templateObject3=CompanyLocalTab_taggedTemplateLiteral(["\n        margin: -5px 5px -1px 0px;\n        padding-top: 14px;\n        padding-right: 19px;\n        padding-bottom: 16px;\n        padding-left: 19px;\n        border: 1px solid ",";\n        border-bottom: 0px;\n        color: ",";\n        background-color: ",";\n        height: auto;\n      "])),colours.Pe,colours.Uv,colours.UE)})),CompanyLocalTab=function CompanyLocalTab(props){var navItem=props.navItem,index=props.index,isActive=props.isActive;return react.createElement(StyledListItem,{key:"tab-".concat(index)},react.createElement(StyledAnchorTag,{selected:isActive,href:"".concat(navItem.url).concat(navItem.search?navItem.search:""),id:"tab-".concat(navItem.path),key:"tab-link-".concat(navItem.path),"aria-label":navItem.ariaDescription},navItem.label))};CompanyLocalTab.propTypes={navItem:prop_types_default().shape(CompanyLocalTab_defineProperty(CompanyLocalTab_defineProperty(CompanyLocalTab_defineProperty({path:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,permissions:prop_types_default().array,url:prop_types_default().string.isRequired},"label",prop_types_default().string.isRequired),"isActive",prop_types_default().bool.isRequired),"ariaDescription",prop_types_default().string)).isRequired,index:prop_types_default().number.isRequired};const CompanyTabbedLocalNavigation_CompanyLocalTab=CompanyLocalTab;CompanyLocalTab.__docgenInfo={description:"",methods:[],displayName:"CompanyLocalTab",props:{navItem:{description:"",type:{name:"shape",value:{path:{name:"string",required:!0},label:{name:"string",required:!0},permissions:{name:"array",required:!1},url:{name:"string",required:!0},isActive:{name:"bool",required:!0},ariaDescription:{name:"string",required:!1}}},required:!0},index:{description:"",type:{name:"number"},required:!0}}};var CompanyTabbedLocalNavigation_templateObject,CompanyTabbedLocalNavigation_templateObject2,CompanyTabbedLocalNavigation_templateObject3,CompanyTabbedLocalNavigation_templateObject4,CompanyTabbedLocalNavigation_templateObject5,filters=__webpack_require__("./src/modules/permissions/filters.js");function CompanyTabbedLocalNavigation_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledGridRow=styled_components_browser_esm.Ay.div(CompanyTabbedLocalNavigation_templateObject||(CompanyTabbedLocalNavigation_templateObject=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-right: -15px;\n  margin-left: -15px;\n"]))),StyledGridColumn=styled_components_browser_esm.Ay.div(CompanyTabbedLocalNavigation_templateObject2||(CompanyTabbedLocalNavigation_templateObject2=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  box-sizing: border-box;\n  width: 100%;\n  padding: 0 15px;\n  @media (min-width: 840px) {\n    width: 100%;\n    float: left;\n  }\n"]))),StyledNav=styled_components_browser_esm.Ay.nav(CompanyTabbedLocalNavigation_templateObject3||(CompanyTabbedLocalNavigation_templateObject3=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-bottom: 15px;\n  color: #0b0c0c;\n  margin-top: 5px;\n  @media (min-width: 840px) {\n    margin-bottom: 30px;\n    margin-top: 5px;\n  }\n"]))),StyledUnorderedList=styled_components_browser_esm.Ay.ul(CompanyTabbedLocalNavigation_templateObject4||(CompanyTabbedLocalNavigation_templateObject4=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  display: flex;\n  border-bottom: none;\n  @media (max-width: 839px) {\n    display: block;\n    padding-bottom: 20px;\n    border-bottom: 0;\n  }\n"]))),CompanyTabbedLocalNavigation_StyledLink=(0,styled_components_browser_esm.Ay)("a")(CompanyTabbedLocalNavigation_templateObject5||(CompanyTabbedLocalNavigation_templateObject5=CompanyTabbedLocalNavigation_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),CompanyTabbedLocalNavigation=function CompanyTabbedLocalNavigation(_ref){var company=_ref.company,userPermissions=_ref.userPermissions;return react.createElement(StyledGridRow,null,function showMatchingPrompt(company){return!company.dunsNumber&&!company.pendingDnbInvestigation}(company)&&react.createElement(StatusMessage.A,{colour:colours.Uv,id:"ga-company-details-matching-prompt"},react.createElement(govuk_react_warning_text_esm.A,null,"Business details on this company record have not been verified and could be wrong."),react.createElement(govuk_react_details_esm.A,{summary:"Why verify?"},react.createElement(govuk_react_paragraph_esm.A,null,"Using verified business details from a trusted third-party supplier means we can keep certain information up to date automatically. This helps reduce duplicate records, provide a shared view of complex companies and make it more likely we can link other data sources together."),react.createElement(govuk_react_paragraph_esm.A,null,"Verification can often be done in just 4 clicks.")),react.createElement(govuk_react_button_esm.A,{as:CompanyTabbedLocalNavigation_StyledLink,href:urls_default().companies.match.index(company.id)},"Verify business details")),react.createElement(StyledGridColumn,null,react.createElement(StyledNav,{"aria-label":"local navigation","data-test":"tabbedLocalNav"},react.createElement(StyledUnorderedList,{"data-test":"tabbedLocalNavList"},function transformLocalNavItems(navItems,userPermissions){return navItems.filter((0,filters.filterNonPermittedItem)(userPermissions)).map((function(item,index){return react.createElement(CompanyTabbedLocalNavigation_CompanyLocalTab,{navItem:item,index,isActive:location.pathname.includes(item.path),key:"company-tab-".concat(index)})}))}(function localNavItems(companyId){return[{path:"overview",url:urls_default().companies.overview.index(companyId),label:"Overview",permissions:["company.view_contact"]},{path:"activity",url:urls_default().companies.activity.index(companyId),label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",url:urls_default().companies.businessDetails(companyId),label:"Business details"},{path:"contacts",url:urls_default().companies.contacts(companyId),label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",url:urls_default().companies.accountManagement.index(companyId),label:"Account management",ariaDescription:"Account management"},{path:"investments",url:urls_default().companies.investments.companyInvestmentProjectsWithSearch(companyId),label:"Investment",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",url:urls_default().companies.exports.index(companyId),label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",url:urls_default().companies.orders(companyId),label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}]}(company.id),userPermissions)))))};(0,react_redux.connect)((function state2props(state){return{userPermissions:state.userPermissions}}))(CompanyTabbedLocalNavigation);CompanyTabbedLocalNavigation.__docgenInfo={description:"",methods:[],displayName:"CompanyTabbedLocalNavigation"};__webpack_require__("./src/client/components/ContactInformation/index.jsx");var govuk_react_error_summary_esm=__webpack_require__("./node_modules/@govuk-react/error-summary/dist/govuk-react-error-summary.esm.js"),govuk_react_inset_text_esm=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),govuk_react_list_item_esm=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),govuk_react_unordered_list_esm=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),DeleteCompanyListSection=function DeleteCompanyListSection(_ref){var companyList=_ref.companyList,errorMessage=_ref.errorMessage,onDelete=_ref.onDelete,returnUrl=_ref.returnUrl,companyCountText=pluralize_default()("company",companyList.item_count,!0);return react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{heading:"Delete list",breadcrumbs:[{link:urls_default().dashboard.index(),text:"Home"},{text:"Delete list"}]}),react.createElement(Main.A,null,errorMessage&&react.createElement(govuk_react_error_summary_esm.A,{heading:"There was an error deleting this list",description:errorMessage,errors:[]}),react.createElement(govuk_react_paragraph_esm.A,null,"Deleting this list will remove all companies from this list. These companies will remain on any other lists."),react.createElement(govuk_react_inset_text_esm.A,null,react.createElement(govuk_react_unordered_list_esm.A,{listStyleType:"none",mb:0},react.createElement(govuk_react_list_item_esm.A,{"data-test":"list-name"},react.createElement("strong",null,companyList.name)),react.createElement(govuk_react_list_item_esm.A,{"data-test":"company-count"},companyCountText))),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{buttonColour:colours.Bk,onClick:onDelete},"Delete list"),react.createElement(govuk_react_link_esm.A,{href:returnUrl,"data-test":"return-link"},"Return without deleting"))))};DeleteCompanyListSection.propTypes={companyList:prop_types_default().object.isRequired,errorMessage:prop_types_default().string,onDelete:prop_types_default().func.isRequired,returnUrl:prop_types_default().string.isRequired};DeleteCompanyListSection.__docgenInfo={description:"",methods:[],displayName:"DeleteCompanyListSection",props:{companyList:{description:"",type:{name:"object"},required:!0},errorMessage:{description:"",type:{name:"string"},required:!1},onDelete:{description:"",type:{name:"func"},required:!0},returnUrl:{description:"",type:{name:"string"},required:!0}}};var InvestmentLocalHeader_templateObject,InvestmentLocalHeader_templateObject2,InvestmentLocalHeader_templateObject3,DateField=__webpack_require__("./src/client/components/DateField/index.jsx"),EntityList=__webpack_require__("./src/client/components/EntityList/index.jsx"),govuk_react_breadcrumbs_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.link.js"),__webpack_require__("./node_modules/@govuk-react/breadcrumbs/dist/govuk-react-breadcrumbs.esm.js")),FlashMessages=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx"),InvestmentProjectLocalHeader=__webpack_require__("./src/client/components/InvestmentProjectLocalHeader/index.jsx");function InvestmentLocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeader=(0,styled_components_browser_esm.Ay)("div")(InvestmentLocalHeader_templateObject||(InvestmentLocalHeader_templateObject=InvestmentLocalHeader_taggedTemplateLiteral(["\n  padding-bottom: ",";\n  background-color: ",";\n  padding-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,colours.P1,govuk_react_constants_esm.Es.SCALE_3),InvestmentLocalHeader_StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(InvestmentLocalHeader_templateObject2||(InvestmentLocalHeader_templateObject2=InvestmentLocalHeader_taggedTemplateLiteral(["\n  padding-top: 0;\n"]))),BreadcrumbsWrapper=(0,styled_components_browser_esm.Ay)(govuk_react_breadcrumbs_esm.A)(InvestmentLocalHeader_templateObject3||(InvestmentLocalHeader_templateObject3=InvestmentLocalHeader_taggedTemplateLiteral(["\n  margin-bottom: ",";\n  margin-top: 0;\n"])),govuk_react_constants_esm.Es.SCALE_5),InvestmentLocalHeader_StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_esm.N_)({fontSize:20,display:"inline-block",fontFamily:"Arial, sans-serif",marginTop:8,marginBottom:8}),InvestmentLocalHeader=function InvestmentLocalHeader(_ref){var breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,projectId=_ref.projectId;return react.createElement(StyledHeader,{"aria-label":"local header","data-auto-id":"localHeader","data-test":"localHeader",role:"region"},react.createElement(InvestmentLocalHeader_StyledMain,null,react.createElement(BreadcrumbsWrapper,{"data-test":"breadcrumbs"},null==breadcrumbs?void 0:breadcrumbs.map((function(breadcrumb){return breadcrumb.link?react.createElement(govuk_react_breadcrumbs_esm.A.Link,{key:breadcrumb.link,href:breadcrumb.link},breadcrumb.text):react.createElement(react.Fragment,{key:breadcrumb.text},breadcrumb.text)}))),react.createElement(FlashMessages.A,{flashMessages}),react.createElement(components_Resource.sv,{id:projectId},(function(project){return react.createElement(react.Fragment,null,react.createElement(InvestmentLocalHeader_StyledLink,{"data-test":"heading-link",href:urls_default().companies.detail(project.investorCompany.id)},project.investorCompany.name),react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},project.name),react.createElement(InvestmentProjectLocalHeader.A,{investment:project}))}))))};InvestmentLocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),heading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),subheading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),headingLink:prop_types_default().shape({url:prop_types_default().string.isRequired,text:prop_types_default().string.isRequired}),superheading:prop_types_default().node,children:prop_types_default().node};const components_InvestmentLocalHeader=InvestmentLocalHeader;InvestmentLocalHeader.__docgenInfo={description:"The generic local header component.",methods:[],displayName:"InvestmentLocalHeader",props:{breadcrumbs:{description:"Contains the breadcrumbs",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},heading:{description:"Contains the heading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subheading:{description:"Contains the subheading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"Contains a link that appears above the heading",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},superheading:{description:"Contains an item that renders above the heading (in the same position as the headingLink)",type:{name:"node"},required:!1},children:{description:"Contains an item that renders below the heading",type:{name:"node"},required:!1}}};var Main=__webpack_require__("./src/client/components/Main/index.jsx"),NewWindowLink=(__webpack_require__("./src/client/components/Metadata/index.jsx"),__webpack_require__("./src/client/components/NewWindowLink/index.jsx")),Pagination=(__webpack_require__("./src/client/components/NotificationBadge/index.jsx"),__webpack_require__("./src/client/components/Pagination/index.jsx")),SummaryTable=(__webpack_require__("./src/client/components/Panel/index.jsx"),__webpack_require__("./src/client/components/SummaryList/index.jsx"),__webpack_require__("./src/client/components/SummaryTable/index.jsx")),Tag=__webpack_require__("./src/client/components/Tag/index.jsx"),FieldTypeahead=(__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx")),formatAdviser=__webpack_require__("./src/common/formatAdviser.js"),utils=__webpack_require__("./src/client/components/Task/utils.js"),_excluded=["name","label","required","isMulti","onlyShowActiveAdvisers","placeholder"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}var FieldAdvisersTypeahead=function FieldAdvisersTypeahead(_ref){var name=_ref.name,_ref$label=_ref.label,label=void 0===_ref$label?"":_ref$label,required=_ref.required,isMulti=_ref.isMulti,_ref$onlyShowActiveAd=_ref.onlyShowActiveAdvisers,onlyShowActiveAdvisers=void 0===_ref$onlyShowActiveAd||_ref$onlyShowActiveAd,_ref$placeholder=_ref.placeholder,placeholder=void 0===_ref$placeholder?"Type to search for advisers":_ref$placeholder,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(FieldTypeahead.A,_extends({name,label,placeholder,noOptionsMessage:"Type to search for advisers",required,loadOptions:(0,lodash.throttle)((function(searchString){return utils.HD.get("/adviser/",{params:{autocomplete:searchString,is_active:onlyShowActiveAdvisers}}).then((function(_ref2){var results=_ref2.data.results;return(0,formatAdviser.parseAdviserData)(results)}))}),500),isMulti},props))};FieldAdvisersTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,required:prop_types_default().string,isMulti:prop_types_default().bool,placeholder:prop_types_default().string};FieldAdvisersTypeahead.__docgenInfo={description:"",methods:[],displayName:"FieldAdvisersTypeahead",props:{label:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},onlyShowActiveAdvisers:{defaultValue:{value:"true",computed:!1},required:!1},placeholder:{defaultValue:{value:"'Type to search for advisers'",computed:!1},description:"",type:{name:"string"},required:!1},name:{description:"",type:{name:"string"},required:!0},required:{description:"",type:{name:"string"},required:!1},isMulti:{description:"",type:{name:"bool"},required:!1}}};__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx");var FieldTextarea_templateObject,FieldWrapper=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),FieldInput=(__webpack_require__("./src/client/components/Form/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx")),FieldCheckboxes=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),FieldSelect=(__webpack_require__("./src/client/components/Form/elements/FieldDate/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx")),govuk_react_text_area_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/@govuk-react/text-area/dist/govuk-react-text-area.esm.js")),govuk_react_error_text_esm=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),hooks=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),FieldTextarea_excluded=["name","validate","required","label","legend","hint","maxWords","invalid","initialValue"];function FieldTextarea_extends(){return FieldTextarea_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldTextarea_extends.apply(null,arguments)}function FieldTextarea_slicedToArray(r,e){return function FieldTextarea_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FieldTextarea_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 FieldTextarea_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FieldTextarea_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)?FieldTextarea_arrayLikeToArray(r,a):void 0}}(r,e)||function FieldTextarea_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 FieldTextarea_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var WORD_REGEX=/\b\w+(?:-\w+)*\b/g,getWordCountFromString=function getWordCountFromString(str){var words=str.trim().match(WORD_REGEX);return words?words.length:0},getMaxWordValidator=function getMaxWordValidator(maxWords,required,invalid){return function(value){var wordCount=getWordCountFromString(value);return 0===wordCount?required:wordCount>maxWords?invalid:null}},StyledTextareaWrapper=(0,styled_components_browser_esm.Ay)("div")(FieldTextarea_templateObject||(FieldTextarea_templateObject=function FieldTextarea_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ","\n  textarea {\n    width: 100%;\n  }\n"])),(function(props){return props.error&&"\n    border-left: ".concat(govuk_react_constants_esm.d6," solid ").concat(colours.su,";\n    margin-right: ").concat(govuk_react_constants_esm.Es.SCALE_3,";\n    padding-left: ").concat(govuk_react_constants_esm.Es.SCALE_2,";\n  ")})),StyledParagraph=(0,styled_components_browser_esm.Ay)("p")({color:function color(_ref){return _ref.color}}),FieldTextarea=function FieldTextarea(_ref2){var name=_ref2.name,validate=_ref2.validate,required=_ref2.required,label=_ref2.label,legend=_ref2.legend,hint=_ref2.hint,maxWords=_ref2.maxWords,invalid=_ref2.invalid,initialValue=_ref2.initialValue,rest=function FieldTextarea_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function FieldTextarea_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,FieldTextarea_excluded),_useField=(0,hooks.Mt)({name,validate:maxWords>0?getMaxWordValidator(maxWords,required,invalid):validate,required,initialValue}),value=_useField.value,error=_useField.error,touched=_useField.touched,_onChange=_useField.onChange,onBlur=_useField.onBlur,_useState2=FieldTextarea_slicedToArray((0,react.useState)(0),2),wordCount=_useState2[0],setWordCount=_useState2[1];return react.createElement(FieldWrapper.A,{name,label,legend,hint,error},react.createElement(StyledTextareaWrapper,{error},touched&&error&&react.createElement(govuk_react_error_text_esm.A,{"data-test":"textarea-error"},error),react.createElement(govuk_react_text_area_esm.l2,FieldTextarea_extends({"data-test":"textarea",id:name,key:name,error:touched&&error,name,value,onChange:function onChange(e){_onChange(e),maxWords>0&&setWordCount(getWordCountFromString(e.target.value))},onBlur,rows:"5"},rest)),maxWords>0&&react.createElement(StyledParagraph,{"data-test":"word-count",color:wordCount>maxWords?colours.su:colours.Uv},function updateMaxWordsDescription(maxWords,wordCount){var delta=maxWords-wordCount,count=Math.abs(delta),word=pluralize_default()("word",count);return"You have ".concat(count," ").concat(word," ").concat(delta>=0?"remaining.":"too many.")}(maxWords,wordCount))))};FieldTextarea.propTypes={name:prop_types_default().string.isRequired,validate:prop_types_default().oneOfType([prop_types_default().func,prop_types_default().arrayOf(prop_types_default().func)]),required:prop_types_default().string,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,initialValue:prop_types_default().string,maxWords:prop_types_default().number};const elements_FieldTextarea=FieldTextarea;FieldTextarea.__docgenInfo={description:"",methods:[],displayName:"FieldTextarea",props:{name:{description:"",type:{name:"string"},required:!0},validate:{description:"",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"",type:{name:"string"},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},initialValue:{description:"",type:{name:"string"},required:!1},maxWords:{description:"",type:{name:"number"},required:!1}}};var FieldUneditable=function FieldUneditable(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,onChangeClick=_ref.onChangeClick,children=_ref.children;return react.createElement(FieldWrapper.A,{name,label,legend,hint},children," ",onChangeClick&&react.createElement(ButtonLink.A,{inline:"true",type:"button",onClick:onChangeClick},"Change ",react.createElement(govuk_react_visually_hidden_esm.A,null,label||legend)))};FieldUneditable.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,onChangeClick:prop_types_default().func,children:prop_types_default().node.isRequired};const elements_FieldUneditable=FieldUneditable;FieldUneditable.__docgenInfo={description:"",methods:[],displayName:"FieldUneditable",props:{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:"node"},required:!1},onChangeClick:{description:"",type:{name:"func"},required:!1},children:{description:"",type:{name:"node"},required:!0}}};var govuk_react_icons_esm=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),govuk_react_form_group_esm=__webpack_require__("./node_modules/@govuk-react/form-group/dist/govuk-react-form-group.esm.js");__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.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");function useAddressSearch_typeof(o){return useAddressSearch_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},useAddressSearch_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"==useAddressSearch_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(useAddressSearch_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 useAddressSearch_slicedToArray(r,e){return function useAddressSearch_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function useAddressSearch_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 useAddressSearch_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return useAddressSearch_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)?useAddressSearch_arrayLikeToArray(r,a):void 0}}(r,e)||function useAddressSearch_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 useAddressSearch_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}const AddressSearch_useAddressSearch=function useAddressSearch(addressSearchCallback){var _useState2=useAddressSearch_slicedToArray((0,react.useState)(null),2),addressList=_useState2[0],setAddressList=_useState2[1],_useState4=useAddressSearch_slicedToArray((0,react.useState)(null),2),error=_useState4[0],setError=_useState4[1],_useState6=useAddressSearch_slicedToArray((0,react.useState)(!1),2),isSubmitting=_useState6[0],setIsSubmitting=_useState6[1];function _onAddressSearch(){return _onAddressSearch=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(postcode){return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.prev=0,setIsSubmitting(!0),setError(null),_context.t0=setAddressList,_context.next=6,addressSearchCallback(postcode);case 6:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=14;break;case 10:_context.prev=10,_context.t2=_context.catch(0),setAddressList(null),setError("Error occurred while searching for an address.");case 14:return _context.prev=14,setIsSubmitting(!1),_context.finish(14);case 17:case"end":return _context.stop()}}),_callee,null,[[0,10,14,17]])}))),_onAddressSearch.apply(this,arguments)}return{error,addressList,isSubmitting,onAddressSearch:function onAddressSearch(_x){return _onAddressSearch.apply(this,arguments)}}};var axios=__webpack_require__("./node_modules/axios/lib/axios.js");function usePostcodeLookup_typeof(o){return usePostcodeLookup_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},usePostcodeLookup_typeof(o)}function usePostcodeLookup_regeneratorRuntime(){usePostcodeLookup_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"==usePostcodeLookup_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(usePostcodeLookup_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 usePostcodeLookup_toConsumableArray(r){return function usePostcodeLookup_arrayWithoutHoles(r){if(Array.isArray(r))return usePostcodeLookup_arrayLikeToArray(r)}(r)||function usePostcodeLookup_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function usePostcodeLookup_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return usePostcodeLookup_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)?usePostcodeLookup_arrayLikeToArray(r,a):void 0}}(r)||function usePostcodeLookup_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 usePostcodeLookup_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function usePostcodeLookup_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)}const AddressSearch_usePostcodeLookup=function usePostcodeLookup(apiEndpoint){function createAddressCount(addresses){var addressCount=pluralize_default()("address",addresses.length,!0);return{address1:"".concat(addressCount," found")}}return function(){var _findAddress=function usePostcodeLookup_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){usePostcodeLookup_asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){usePostcodeLookup_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(usePostcodeLookup_regeneratorRuntime().mark((function _callee(postcode){var _yield$axios$get,data,addressCount;return usePostcodeLookup_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios.A.get("".concat(apiEndpoint,"/").concat(postcode));case 2:return _yield$axios$get=_context.sent,data=_yield$axios$get.data,addressCount=createAddressCount(data),_context.abrupt("return",[addressCount].concat(usePostcodeLookup_toConsumableArray(data)));case 6:case"end":return _context.stop()}}),_callee)})));return function findAddress(_x){return _findAddress.apply(this,arguments)}}()};var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js"),transformers=__webpack_require__("./src/apps/transformers.js");function FieldCountrySelect_extends(){return FieldCountrySelect_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldCountrySelect_extends.apply(null,arguments)}var FieldCountrySelect=function FieldCountrySelect(props){return react.createElement(components_Resource.NW,null,(function(countries){return react.createElement(FieldSelect.A,FieldCountrySelect_extends({label:"Country"},props,{options:countries.map((function(_ref){return{label:_ref.name,value:_ref.id}}))}))}))};FieldCountrySelect.propTypes=lodash_default().omit(FieldSelect.A.propTypes,"options");const elements_FieldCountrySelect=FieldCountrySelect;FieldCountrySelect.__docgenInfo={description:"",methods:[],displayName:"FieldCountrySelect",composes:["lodash"]};var FieldAddress_templateObject,FieldAddress_templateObject2,FieldAddress_templateObject3,FieldAddress_templateObject4,constants=__webpack_require__("./src/common/constants.js");function FieldAddress_slicedToArray(r,e){return function FieldAddress_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FieldAddress_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 FieldAddress_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FieldAddress_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)?FieldAddress_arrayLikeToArray(r,a):void 0}}(r,e)||function FieldAddress_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 FieldAddress_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function FieldAddress_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledFieldPostcode=(0,styled_components_browser_esm.Ay)(FieldInput.A)(FieldAddress_templateObject||(FieldAddress_templateObject=FieldAddress_taggedTemplateLiteral(["\n  "," {\n    max-width: 200px;\n  }\n"])),govuk_react_constants_esm.qs.TABLET),SyledDiv=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject2||(FieldAddress_templateObject2=FieldAddress_taggedTemplateLiteral(["\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledButtonWrapper=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject3||(FieldAddress_templateObject3=FieldAddress_taggedTemplateLiteral(["\n  margin-bottom: -22px;\n  margin-left: 10px;\n"]))),StyledRowDiv=(0,styled_components_browser_esm.Ay)("div")(FieldAddress_templateObject4||(FieldAddress_templateObject4=FieldAddress_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: row;\n  justify-content: flex-start;\n  align-items: center;\n"]))),FieldAddress=function FieldAddress(_ref){var label=_ref.label,legend=_ref.legend,hint=_ref.hint,name=_ref.name,country=_ref.country,apiEndpoint=_ref.apiEndpoint,onSelectUKAddress=_ref.onSelectUKAddress,isCountrySelectable=_ref.isCountrySelectable,_ref$hideCountyField=_ref.hideCountyField,hideCountyField=void 0!==_ref$hideCountyField&&_ref$hideCountyField,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?null:_ref$initialValue,_ref$useStaticPostcod=_ref.useStaticPostcodeField,useStaticPostcodeField=void 0!==_ref$useStaticPostcod&&_ref$useStaticPostcod,_ref$isPostcodeRequir=_ref.isPostcodeRequired,isPostcodeRequired=void 0!==_ref$isPostcodeRequir&&_ref$isPostcodeRequir,_ref$showBorder=_ref.showBorder,showBorder=void 0===_ref$showBorder||_ref$showBorder,_ref$useStaticCountyF=_ref.useStaticCountyField,useStaticCountyField=void 0!==_ref$useStaticCountyF&&_ref$useStaticCountyF,findAdministrativeAreas=(0,useAdministrativeAreaLookup.A)(),_useAdministrativeAre=(0,useAdministrativeAreaSearch.A)(findAdministrativeAreas),onAdministrativeAreaSearch=_useAdministrativeAre.onAdministrativeAreaSearch,administrativeAreaSearchError=_useAdministrativeAre.administrativeAreaSearchError,administrativeAreaList=_useAdministrativeAre.administrativeAreaList,isAreaFilterSubmitting=_useAdministrativeAre.isAreaFilterSubmitting,findAddress=AddressSearch_usePostcodeLookup(apiEndpoint),_useAddressSearch=AddressSearch_useAddressSearch(findAddress),onAddressSearch=_useAddressSearch.onAddressSearch,isSubmitting=_useAddressSearch.isSubmitting,error=_useAddressSearch.error,addressList=_useAddressSearch.addressList,_useFormContext=(0,hooks.xW)(),_useFormContext$value=_useFormContext.values,postcode=_useFormContext$value.postcode,country_form_value=_useFormContext$value.country,setFieldValue=_useFormContext.setFieldValue,validateForm=_useFormContext.validateForm,setIsLoading=_useFormContext.setIsLoading,_useState2=FieldAddress_slicedToArray((0,react.useState)([]),2),usStates=_useState2[0],setUsStates=_useState2[1],_useState4=FieldAddress_slicedToArray((0,react.useState)([]),2),canadaProvinces=_useState4[0],setCanadaProvinces=_useState4[1],_useState6=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.UNITED_KINGDOM_ID),2),isUK=_useState6[0],setIsUK=_useState6[1],_useState8=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.UNITED_STATES_ID),2),isUS=_useState8[0],setIsUS=_useState8[1],_useState10=FieldAddress_slicedToArray((0,react.useState)((null==country?void 0:country.id)===constants.CANADA_ID),2),isCanada=_useState10[0],setIsCanada=_useState10[1];(0,react.useEffect)((function(){setIsLoading(isSubmitting&&isAreaFilterSubmitting)}),[isSubmitting,isAreaFilterSubmitting]),(0,react.useEffect)((function(){country_form_value&&isCountrySelectable&&(setIsUK(country_form_value===constants.UNITED_KINGDOM_ID),setIsUS(country_form_value===constants.UNITED_STATES_ID),setIsCanada(country_form_value===constants.CANADA_ID))}),[country_form_value]),(0,react.useEffect)((function(){onAdministrativeAreaSearch()}),[]),(0,react.useEffect)((function(){administrativeAreaList&&(setUsStates((0,useAdministrativeAreaLookup.p)(administrativeAreaList,constants.UNITED_STATES_ID).map((function(states){return(0,transformers.transformObjectToOption)(states)}))),setCanadaProvinces((0,useAdministrativeAreaLookup.p)(administrativeAreaList,constants.CANADA_ID).map((function(states){return(0,transformers.transformObjectToOption)(states)}))))}),[administrativeAreaList]);var buildPostcodeLabel=function buildPostcodeLabel(isRequired,isUK,label){return isRequired||isUK?label:"".concat(label," (optional)")},postcodeLabel=function postcodeLabel(isPostcodeRequired){return buildPostcodeLabel(isPostcodeRequired,isUK,isUS?"ZIP code":isCanada?"Postal code":"Postcode")},usZipCodeRegex=/^\d{5}(-\d{4})?$/i,canadaPostalCodeRegex=/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,postcodeValidator=function postcodeValidator(value){return isUS?function usZipCodeValidator(value){return value?value&&!usZipCodeRegex.test(value)?"Enter a valid ZIP code":void 0:"Enter a ZIP code"}(value):isCanada?function canadaPostalCodeValidator(value){return value?value&&!canadaPostalCodeRegex.test(value)?"Enter a valid Postal code":void 0:"Enter a Postal code"}(value):null},postcodeErrorMessage=function postcodeErrorMessage(isPostcodeRequired){if(isUK||isPostcodeRequired)return"Enter a postcode"};return react.createElement(FieldWrapper.A,{label,legend,hint,name,showBorder},isCountrySelectable?react.createElement(SyledDiv,null,react.createElement(elements_FieldCountrySelect,{name:"country",required:"Select a country",initialValue:null==country?void 0:country.id,onChange:function onChange(){setFieldValue("country_form_value",country_form_value)}})):react.createElement(elements_FieldUneditable,{name:"country",label:"Country"},country.name),(country_form_value||!isCountrySelectable)&&react.createElement(react.Fragment,null,isUK&&!useStaticPostcodeField&&react.createElement(react.Fragment,null,react.createElement(StyledRowDiv,null,react.createElement(StyledFieldPostcode,{type:"search",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:10,validate:postcodeValidator}),react.createElement(StyledButtonWrapper,null,react.createElement(govuk_react_button_esm.A,{onClick:function onSearchClick(e){return e.preventDefault(),(0,lodash.isEmpty)(validateForm(["postcode"]))?onAddressSearch(postcode):null},buttonColour:colours.WS,buttonTextColour:colours.Uv,icon:react.createElement(govuk_react_icons_esm.vj,null),id:"postcode-search"},"Find UK address"))),error&&react.createElement(StatusMessage.A,null,"Error occurred while searching for an address. Enter the address manually."),addressList&&addressList.length>0&&react.createElement(govuk_react_form_group_esm.A,null,react.createElement(govuk_react_select_esm.Ay,{label:"Select an address",onChange:function onAddressSelect(evt){var index=evt.target.selectedIndex;if(0!==index){var address=addressList[index];setFieldValue("postcode",address.postcode),setFieldValue("address1",address.address1),setFieldValue("address2",address.address2),setFieldValue("city",address.city),setFieldValue("county",address.county),onSelectUKAddress&&onSelectUKAddress(address)}}},addressList.map((function(_ref2,index){var address1=_ref2.address1;return react.createElement("option",{key:index,value:index},address1)}))))),react.createElement(FieldInput.A,{type:"text",name:"address1",label:"Address line 1",required:"Enter an address",initialValue:null==initialValue?void 0:initialValue.address1}),react.createElement(FieldInput.A,{type:"text",name:"address2",label:"Address line 2 (optional)",initialValue:null==initialValue?void 0:initialValue.address2}),react.createElement(FieldInput.A,{type:"text",name:"city",label:"Town or city",required:"Enter a town or city",initialValue:null==initialValue?void 0:initialValue.town}),(!(isUS||isCanada||hideCountyField)||useStaticCountyField)&&react.createElement(FieldInput.A,{type:"text",name:"county",label:"County (optional)",initialValue:null==initialValue?void 0:initialValue.county}),react.createElement(react.Fragment,null,function renderUsStateField(useStaticCountyField){if(isUS&&(null==usStates?void 0:usStates.length)>0&&!useStaticCountyField)return react.createElement(FieldSelect.A,{type:"text",name:"area",label:"State",options:usStates,required:"Select a state",emptyOption:"Select"})}(useStaticCountyField),function renderCanadaProvinceField(useStaticCountyField){if(isCanada&&(null==canadaProvinces?void 0:canadaProvinces.length)>0&&!useStaticCountyField)return react.createElement(FieldSelect.A,{type:"text",name:"areaCanada",label:"Province",options:canadaProvinces,required:"Select a province",emptyOption:"Select"})}(useStaticCountyField),administrativeAreaSearchError&&react.createElement(StatusMessage.A,null,"Error occurred while retrieving Administrative Areas.")),useStaticPostcodeField&&react.createElement(FieldInput.A,{type:"text",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:10,validate:postcodeValidator,initialValue:null==initialValue?void 0:initialValue.postcode}),!isUK&&country_form_value!==constants.UNITED_KINGDOM_ID&&!useStaticPostcodeField&&react.createElement(StyledFieldPostcode,{type:"text",name:"postcode",label:postcodeLabel(isPostcodeRequired),required:postcodeErrorMessage(isPostcodeRequired),maxLength:null,validate:postcodeValidator})))};FieldAddress.propTypes={label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,name:prop_types_default().string.isRequired,apiEndpoint:prop_types_default().string,onSelectUKAddress:prop_types_default().func,isCountrySelectable:prop_types_default().any,country:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired})};const elements_FieldAddress=FieldAddress;FieldAddress.__docgenInfo={description:"",methods:[],displayName:"FieldAddress",props:{hideCountyField:{defaultValue:{value:"false",computed:!1},required:!1},initialValue:{defaultValue:{value:"null",computed:!1},required:!1},useStaticPostcodeField:{defaultValue:{value:"false",computed:!1},required:!1},isPostcodeRequired:{defaultValue:{value:"false",computed:!1},required:!1},showBorder:{defaultValue:{value:"true",computed:!1},required:!1},useStaticCountyField:{defaultValue:{value:"false",computed:!1},required:!1},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"node"},required:!1},name:{description:"",type:{name:"string"},required:!0},apiEndpoint:{description:"",type:{name:"string"},required:!1},onSelectUKAddress:{description:"",type:{name:"func"},required:!1},isCountrySelectable:{description:"",type:{name:"any"},required:!1},country:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0}}},required:!1}}};var FieldRadios=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),govuk_react_loading_box_esm=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),EntityListItem=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function FieldCompany_typeof(o){return FieldCompany_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},FieldCompany_typeof(o)}function FieldCompany_defineProperty(e,r,t){return(r=function FieldCompany_toPropertyKey(t){var i=function FieldCompany_toPrimitive(t,r){if("object"!=FieldCompany_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FieldCompany_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FieldCompany_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FieldCompany_extends(){return FieldCompany_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FieldCompany_extends.apply(null,arguments)}var validateMinLength=function validateMinLength(minLength){return function(value){return value&&value.length<minLength?"Enter at least ".concat(pluralize_default()("character",minLength,!0)):null}},validateMaxLength=function validateMaxLength(maxLength){return function(value){return value&&value.length>maxLength?"".concat(pluralize_default()("character",value.length-maxLength,!0)," too long"):null}},CompanyItemRenderer=function CompanyItemRenderer(item){var _useFormContext=(0,hooks.xW)(),setFieldValue=_useFormContext.setFieldValue,goForward=_useFormContext.goForward;return react.createElement(EntityListItem.A,FieldCompany_extends({onEntityClick:function onEntityClick(company){setFieldValue("company",company),goForward()}},item))},FieldCompany_StyledHeader=(0,styled_components_browser_esm.Ay)("header")({borderBottom:"".concat(govuk_react_constants_esm.gP," solid ").concat(colours.Uv),marginBottom:govuk_react_constants_esm.Es.SCALE_2}),FieldCompany_StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)({marginBottom:0}),StyledCount=(0,styled_components_browser_esm.Ay)("span")(FieldCompany_defineProperty({fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.SG.SIZE_24},govuk_react_constants_esm.qs.TABLET,{fontSize:govuk_react_constants_esm.SG.SIZE_27})),StyledSearchTerm=(0,styled_components_browser_esm.Ay)("span")({backgroundColor:colours.Bd}),FieldCompany_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(FieldCompany_defineProperty({background:colours.P1,fontWeight:govuk_react_constants_esm.sO.regular,borderLeft:"".concat(govuk_react_constants_esm.gP," solid ").concat(colours.Pe),marginTop:govuk_react_constants_esm.Es.SCALE_2,fontSize:govuk_react_constants_esm.SG.SIZE_16,lineHeight:govuk_react_constants_esm.$g.SIZE_24,padding:govuk_react_constants_esm.Es.SCALE_2},govuk_react_constants_esm.qs.TABLET,{marginTop:govuk_react_constants_esm.Es.SCALE_3,fontSize:govuk_react_constants_esm.SG.SIZE_18,lineHeight:govuk_react_constants_esm.$g.SIZE_27,padding:govuk_react_constants_esm.Es.SCALE_3})),FieldCompany=function FieldCompany(_ref){var results=_ref.results,onSearchClick=_ref.onSearchClick,progress=_ref.progress,searchTerm=_ref.searchTerm,_useFormContext2=(0,hooks.xW)(),values=_useFormContext2.values,validateForm=_useFormContext2.validateForm;return react.createElement(FieldWrapper.A,{name:"add-company"},react.createElement(FieldInput.A,{name:"companyName",label:"Search for a company as the source of foreign equity",bigLegend:!0,"data-test":"company-name",type:"search",required:"Enter company name",validate:[validateMinLength(2),validateMaxLength(30)]}),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{onClick:function onClick(e){e.preventDefault();var validationErrors=validateForm();(0,lodash.isEmpty)(validationErrors)&&onSearchClick(values.companyName)}},"Search")),results&&react.createElement(react.Fragment,null,react.createElement("article",null,react.createElement(FieldCompany_StyledHeader,null,react.createElement(FieldCompany_StyledHeading,null,react.createElement(StyledCount,null,results.length)," ",pluralize_default()("company",results.length)," matching"," ",react.createElement(StyledSearchTerm,null,searchTerm))),results.length>0&&react.createElement(govuk_react_loading_box_esm.A,{loading:progress},react.createElement(EntityList.A,{entities:results,entityRenderer:CompanyItemRenderer}))),0===results.length&&!progress&&react.createElement(FieldCompany_StyledParagraph,null,"If you can't find the company you're looking for,"," ",react.createElement(govuk_react_link_esm.A,{href:urls_default().companies.create(),"aria-label":"Add a new company"},"add a new company."," "),"Unfortunately you will lose your progress.")))};function useEntitySearch_typeof(o){return useEntitySearch_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},useEntitySearch_typeof(o)}function useEntitySearch_regeneratorRuntime(){useEntitySearch_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"==useEntitySearch_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<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(useEntitySearch_typeof(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=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 useEntitySearch_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 useEntitySearch_slicedToArray(r,e){return function useEntitySearch_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function useEntitySearch_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 useEntitySearch_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return useEntitySearch_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)?useEntitySearch_arrayLikeToArray(r,a):void 0}}(r,e)||function useEntitySearch_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 useEntitySearch_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}FieldCompany.__docgenInfo={description:"",methods:[],displayName:"FieldCompany"};const EntityList_useEntitySearch=function useEntitySearch(searchEntitiesCallback){var _useState2=useEntitySearch_slicedToArray((0,react.useState)([]),2),entities=_useState2[0],setEntities=_useState2[1],_useState4=useEntitySearch_slicedToArray((0,react.useState)(null),2),error=_useState4[0],setError=_useState4[1],_useState6=useEntitySearch_slicedToArray((0,react.useState)(!1),2),searching=_useState6[0],setSearching=_useState6[1],_useState8=useEntitySearch_slicedToArray((0,react.useState)(!1),2),searched=_useState8[0],setSearched=_useState8[1];function _onEntitySearch(){return _onEntitySearch=function useEntitySearch_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){useEntitySearch_asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){useEntitySearch_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(useEntitySearch_regeneratorRuntime().mark((function _callee(){var filters,newEntities,_args=arguments;return useEntitySearch_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return filters=_args.length>0&&void 0!==_args[0]?_args[0]:{},_context.prev=1,setSearching(!0),setError(null),_context.next=6,searchEntitiesCallback(filters);case 6:newEntities=_context.sent,setEntities(newEntities),_context.next=14;break;case 10:_context.prev=10,_context.t0=_context.catch(1),setEntities([]),setError("Error occurred while searching entities.");case 14:return _context.prev=14,setSearching(!1),setSearched(!0),_context.finish(14);case 18:case"end":return _context.stop()}}),_callee,null,[[1,10,14,18]])}))),_onEntitySearch.apply(this,arguments)}return{onEntitySearch:function onEntitySearch(){return _onEntitySearch.apply(this,arguments)},entities,error,searching,searched}};var useDnbSearch=__webpack_require__("./src/client/components/EntityList/useDnbSearch.jsx"),FormLayout=function FormLayout(_ref){var setWidth=_ref.setWidth,children=_ref.children;return react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth},children))};FormLayout.propTypes={setWidth:prop_types_default().string.isRequired,children:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().element),prop_types_default().element]).isRequired};const Layout_FormLayout=FormLayout;function FieldDnbCompany_typeof(o){return FieldDnbCompany_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},FieldDnbCompany_typeof(o)}var FieldDnbCompany_templateObject;function FieldDnbCompany_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 FieldDnbCompany_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?FieldDnbCompany_ownKeys(Object(t),!0).forEach((function(r){FieldDnbCompany_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FieldDnbCompany_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function FieldDnbCompany_defineProperty(e,r,t){return(r=function FieldDnbCompany_toPropertyKey(t){var i=function FieldDnbCompany_toPrimitive(t,r){if("object"!=FieldDnbCompany_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FieldDnbCompany_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FieldDnbCompany_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}FormLayout.__docgenInfo={description:"",methods:[],displayName:"FormLayout",props:{setWidth:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"union",value:[{name:"arrayOf",value:{name:"element"}},{name:"element"}]},required:!0}}};var FieldDnbCompany_StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(FieldDnbCompany_templateObject||(FieldDnbCompany_templateObject=function FieldDnbCompany_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  list-style-type: disc;\n  padding-left: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),FieldDnbCompany_validateMinLength=function validateMinLength(minLength){return function(value){return value&&value.length<minLength?"Enter at least ".concat(pluralize_default()("character",minLength,!0)):null}},FieldDnbCompany_validateMaxLength=function validateMaxLength(maxLength){return function(value){return value&&value.length>maxLength?"".concat(pluralize_default()("character",value.length-maxLength,!0)," too long"):null}},FieldDnbCompany=function FieldDnbCompany(_ref){var name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,country=_ref.country,apiEndpoint=_ref.apiEndpoint,_ref$queryParams=_ref.queryParams,queryParams=void 0===_ref$queryParams?{}:_ref$queryParams,entityRenderer=_ref.entityRenderer,onCannotFind=_ref.onCannotFind,_ref$searchResultsMes=_ref.searchResultsMessage,searchResultsMessage=void 0===_ref$searchResultsMes?"The search results below are verified company records from an external and verified source of company information.":_ref$searchResultsMes,features=_ref.features,_useFormContext=(0,hooks.xW)(),values=_useFormContext.values,goBack=_useFormContext.goBack,validateForm=_useFormContext.validateForm,setIsLoading=_useFormContext.setIsLoading,findCompany=(0,useDnbSearch.A)(apiEndpoint,features).findCompany,_useEntitySearch=EntityList_useEntitySearch(findCompany),onEntitySearch=_useEntitySearch.onEntitySearch,searching=_useEntitySearch.searching,searched=_useEntitySearch.searched,error=_useEntitySearch.error,entities=_useEntitySearch.entities;return(0,react.useEffect)((function(){return setIsLoading(searching)}),[searching]),react.createElement(Layout_FormLayout,{setWidth:constants.FORM_LAYOUT.THREE_QUARTERS},react.createElement(FieldWrapper.A,{name,label,legend,hint},country&&react.createElement(elements_FieldUneditable,{legend:"Country",name:"dnbCountry",onChangeClick:goBack},country),react.createElement(FieldInput.A,{label:"Company name",name:"dnbCompanyName",type:"search",required:"Enter company name",validate:[FieldDnbCompany_validateMinLength(2),FieldDnbCompany_validateMaxLength(60)]}),react.createElement(FieldInput.A,{label:"Company postcode (optional)",name:"dnbPostalCode",style:{width:govuk_react_constants_esm._8["one-third"]},type:"search"}),react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{icon:react.createElement(govuk_react_icons_esm.vj,null),onClick:function onSearchClick(e){return e.preventDefault(),(0,lodash.isEmpty)(validateForm())?onEntitySearch((0,lodash.omitBy)(FieldDnbCompany_objectSpread(FieldDnbCompany_objectSpread({},queryParams),{},{search_term:values.dnbCompanyName,postal_code:values.dnbPostalCode}),lodash.isEmpty)):null}},"Find company")),searched&&react.createElement(react.Fragment,null,entities.length>0&&react.createElement(react.Fragment,null,searchResultsMessage&&react.createElement(StatusMessage.A,null,searchResultsMessage),react.createElement(EntityList.A,{entities,entityRenderer})),!error&&0===entities.length&&react.createElement(StatusMessage.A,null,"No match found. Try one of the options below."),error&&react.createElement(StatusMessage.A,null,"Error occurred while searching for company."),react.createElement(govuk_react_details_esm.A,{summary:"I can't find what I'm looking for"},react.createElement(govuk_react_paragraph_esm.A,null,"Try:"),react.createElement(FieldDnbCompany_StyledUnorderedList,null,react.createElement(govuk_react_list_item_esm.A,null,"checking or removing the postcode"),react.createElement(govuk_react_list_item_esm.A,null,'removing "limited" or "ltd"'),react.createElement(govuk_react_list_item_esm.A,null,"checking for spelling errors"),country&&react.createElement(govuk_react_list_item_esm.A,null,"checking if the right country was selected"),react.createElement(govuk_react_list_item_esm.A,null,"check you're using the company's registered name")),onCannotFind&&react.createElement(ButtonLink.A,{onClick:onCannotFind},"I still can't find what I'm looking for")))))};FieldDnbCompany.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().node,legend:prop_types_default().node,hint:prop_types_default().node,country:prop_types_default().string,apiEndpoint:prop_types_default().string.isRequired,queryParams:prop_types_default().shape({}),entityRenderer:prop_types_default().func,onCannotFind:prop_types_default().func,searchResultsMessage:prop_types_default().string};FieldDnbCompany.__docgenInfo={description:"",methods:[],displayName:"FieldDnbCompany",props:{queryParams:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},searchResultsMessage:{defaultValue:{value:"'The search results below are verified company records from an external and verified source of company information.'",computed:!1},description:"",type:{name:"string"},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:"node"},required:!1},country:{description:"",type:{name:"string"},required:!1},apiEndpoint:{description:"",type:{name:"string"},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1},onCannotFind:{description:"",type:{name:"func"},required:!1}}};__webpack_require__("./src/client/components/Form/elements/FieldHelp/index.jsx"),__webpack_require__("./src/client/components/Form/elements/Step.jsx");var ReadMore=__webpack_require__("./src/client/components/ReadMore/index.jsx"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),dist=__webpack_require__("./node_modules/react-router/dist/index.js"),components_Typeahead=__webpack_require__("./src/client/components/Typeahead/index.jsx");function RoutedTypeahead_typeof(o){return RoutedTypeahead_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},RoutedTypeahead_typeof(o)}var RoutedTypeahead_templateObject,RoutedTypeahead_excluded=["name","qsParam","label","hint","isMulti","placeholder","closeMenuOnSelect","selectedOptions","loadOptions","noOptionsMessage","options","labelAsQueryParam"];function RoutedTypeahead_extends(){return RoutedTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedTypeahead_extends.apply(null,arguments)}function RoutedTypeahead_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 RoutedTypeahead_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedTypeahead_ownKeys(Object(t),!0).forEach((function(r){RoutedTypeahead_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedTypeahead_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedTypeahead_defineProperty(e,r,t){return(r=function RoutedTypeahead_toPropertyKey(t){var i=function RoutedTypeahead_toPrimitive(t,r){if("object"!=RoutedTypeahead_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTypeahead_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTypeahead_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledFieldWrapper=(0,styled_components_browser_esm.Ay)(FieldWrapper.A)(RoutedTypeahead_templateObject||(RoutedTypeahead_templateObject=function RoutedTypeahead_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  label {\n    font-weight: ",";\n    line-height: ",";\n  }\n"])),govuk_react_constants_esm.sO.bold,govuk_react_constants_esm.$g.SIZE_16),getParamIds=function getParamIds(qsParam,pickedOptions){return RoutedTypeahead_defineProperty({},qsParam,pickedOptions?pickedOptions.map((function(_ref){return _ref.value})):[])},getParamLabels=function getParamLabels(qsParam,pickedOptions){return RoutedTypeahead_defineProperty({},qsParam,pickedOptions?pickedOptions.map((function(_ref3){return _ref3.label})):[])},RoutedTypeahead=function RoutedTypeahead(_ref5){var name=_ref5.name,qsParam=_ref5.qsParam,label=_ref5.label,hint=_ref5.hint,isMulti=_ref5.isMulti,placeholder=_ref5.placeholder,closeMenuOnSelect=_ref5.closeMenuOnSelect,selectedOptions=_ref5.selectedOptions,loadOptions=_ref5.loadOptions,noOptionsMessage=_ref5.noOptionsMessage,options=_ref5.options,labelAsQueryParam=_ref5.labelAsQueryParam,props=function RoutedTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref5,RoutedTypeahead_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));return react.createElement(StyledFieldWrapper,RoutedTypeahead_extends({label,name,hint},props),react.createElement(components_Typeahead.A,{name,"aria-label":label||name,placeholder,initialOptions:options,closeMenuOnSelect,isMulti,value:selectedOptions.map((function(_ref6){return{value:_ref6.value,label:_ref6.label}})),loadOptions,noOptionsMessage,onChange:function onChange(pickedOptions){navigate({search:lib_default().stringify(RoutedTypeahead_objectSpread(RoutedTypeahead_objectSpread(RoutedTypeahead_objectSpread({},qsParams),labelAsQueryParam?getParamLabels(qsParam,pickedOptions):getParamIds(qsParam,pickedOptions)),{},{page:1}))})}}))};RoutedTypeahead.propTypes={name:prop_types_default().string.isRequired,qsParam:prop_types_default().string.isRequired,labelAsQueryParam:prop_types_default().bool};const components_RoutedTypeahead=RoutedTypeahead;RoutedTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedTypeahead",props:{name:{description:"",type:{name:"string"},required:!0},qsParam:{description:"",type:{name:"string"},required:!0},labelAsQueryParam:{description:"",type:{name:"bool"},required:!1}}};var RoutedAdvisersTypeahead_excluded=["taskProps","closeMenuOnSelect","onlyShowActiveAdvisers","loadOptions"];function RoutedAdvisersTypeahead_extends(){return RoutedAdvisersTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedAdvisersTypeahead_extends.apply(null,arguments)}var RoutedAdvisersTypeahead=function RoutedAdvisersTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,_ref2$onlyShowActiveA=_ref2.onlyShowActiveAdvisers,onlyShowActiveAdvisers=void 0===_ref2$onlyShowActiveA||_ref2$onlyShowActiveA,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?function fetchAdvisers(onlyShowActiveAdvisers){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get("/adviser/",{params:{autocomplete:searchString,is_active:!!onlyShowActiveAdvisers||null}}).then((function(_ref){var results=_ref.data.results;return(0,formatAdviser.parseAdviserData)(results)})):Promise.resolve([])}),500)}(onlyShowActiveAdvisers):_ref2$loadOptions,props=function RoutedAdvisersTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedAdvisersTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedAdvisersTypeahead_excluded);return react.createElement(Task.A.Status,RoutedAdvisersTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedAdvisersTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedAdvisersTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedAdvisersTypeahead=RoutedAdvisersTypeahead;RoutedAdvisersTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedAdvisersTypeahead",props:{closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},onlyShowActiveAdvisers:{defaultValue:{value:"true",computed:!1},required:!1},loadOptions:{defaultValue:{value:"fetchAdvisers(onlyShowActiveAdvisers)",computed:!0},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var client_transformers=__webpack_require__("./src/client/transformers/index.js"),RoutedCompanyTypeahead_excluded=["taskProps","loadOptions","closeMenuOnSelect"];function RoutedCompanyTypeahead_extends(){return RoutedCompanyTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedCompanyTypeahead_extends.apply(null,arguments)}var fetchCompanies=function fetchCompanies(){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get("/v4/company",{params:{autocomplete:searchString}}).then((function(_ref){return function parseCompanyData(companies){return companies.filter((function(company){return company.name&&company.name.trim().length})).map(client_transformers.Vi)}(_ref.data.results)})):Promise.resolve([])}),500)},RoutedCompanyTypeahead=function RoutedCompanyTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?fetchCompanies():_ref2$loadOptions,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,props=function RoutedCompanyTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedCompanyTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedCompanyTypeahead_excluded);return react.createElement(Task.A.Status,RoutedCompanyTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedCompanyTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedCompanyTypeahead.propTypes={name:prop_types_default().string.isRequired,label:prop_types_default().string,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedCompanyTypeahead=RoutedCompanyTypeahead;RoutedCompanyTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedCompanyTypeahead",props:{loadOptions:{defaultValue:{value:"fetchCompanies()",computed:!0},required:!1},closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"string"},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var ToggleSection=__webpack_require__("./src/client/components/ToggleSection/index.jsx"),Analytics=(__webpack_require__("./src/client/components/Pagination/RoutedPagination.jsx"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./src/client/components/Analytics/index.jsx")),DownloadDataHeader=__webpack_require__("./src/client/components/DownloadDataHeader/index.jsx"),RoutedDownloadDataHeader_excluded=["page"],_excluded2=["baseDownloadLink"];function RoutedDownloadDataHeader_extends(){return RoutedDownloadDataHeader_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedDownloadDataHeader_extends.apply(null,arguments)}function RoutedDownloadDataHeader_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedDownloadDataHeader_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var isBool=function isBool(value){return["true","false"].includes(value)},getDownloadLinkFromLocation=function getDownloadLinkFromLocation(location,baseDownloadLink){var _qs$parse=lib_default().parse(location.search.slice(1)),queryString=(_qs$parse.page,function getQueryStringFromQueryParams(params){var transformedParams={};for(var param in params){var field=params[param];(0,lodash.isArray)(field)&&field.every(isBool)?1===field.length&&(transformedParams[param]="true"===field[0]):transformedParams[param]=params[param]}return lib_default().stringify(transformedParams)}(RoutedDownloadDataHeader_objectWithoutProperties(_qs$parse,RoutedDownloadDataHeader_excluded)));return queryString?"".concat(baseDownloadLink,"?").concat(queryString):baseDownloadLink},RoutedDownloadDataHeader=function RoutedDownloadDataHeader(_ref){var baseDownloadLink=_ref.baseDownloadLink,props=RoutedDownloadDataHeader_objectWithoutProperties(_ref,_excluded2),location=(0,dist.zy)(),downloadLink=getDownloadLinkFromLocation(location,baseDownloadLink);return react.createElement(DownloadDataHeader.A,RoutedDownloadDataHeader_extends({downloadLink},props))};RoutedDownloadDataHeader.propTypes={id:prop_types_default().string,count:prop_types_default().number,maxItems:prop_types_default().number,baseDownloadLink:prop_types_default().string};const components_RoutedDownloadDataHeader=RoutedDownloadDataHeader;RoutedDownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"RoutedDownloadDataHeader",props:{id:{description:"",type:{name:"string"},required:!1},count:{description:"",type:{name:"number"},required:!1},maxItems:{description:"",type:{name:"number"},required:!1},baseDownloadLink:{description:"",type:{name:"string"},required:!1}}};var FilteredCollectionHeader_templateObject,FilteredCollectionHeader_templateObject2,FilteredCollectionHeader_templateObject3,FilteredCollectionHeader_templateObject4,FilteredCollectionHeader_templateObject5,FilteredCollectionHeader_templateObject6,FilteredCollectionHeader_templateObject7,FilteredCollectionHeader_templateObject8,react_router_dom_dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),number_utils=__webpack_require__("./src/client/utils/number-utils.js");function FilteredCollectionHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeaderText=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H2)(FilteredCollectionHeader_templateObject||(FilteredCollectionHeader_templateObject=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-top: 0;\n  font-weight: normal;\n  font-size: ","px;\n  margin-bottom: 0;\n"])),govuk_react_constants_esm.iU.MEDIUM),FilteredCollectionHeader_StyledLink=styled_components_browser_esm.Ay.a(FilteredCollectionHeader_templateObject2||(FilteredCollectionHeader_templateObject2=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  white-space: nowrap;\n"]))),StyledReactRouterLink=(0,styled_components_browser_esm.Ay)(react_router_dom_dist.N_)(FilteredCollectionHeader_templateObject3||(FilteredCollectionHeader_templateObject3=FilteredCollectionHeader_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),StyledResultCount=(0,styled_components_browser_esm.Ay)("span")(FilteredCollectionHeader_templateObject4||(FilteredCollectionHeader_templateObject4=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-size: 36px;\n  font-weight: 600;\n  line-height: 1;\n"]))),CollectionHeaderRowContainer=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject5||(FilteredCollectionHeader_templateObject5=FilteredCollectionHeader_taggedTemplateLiteral(["\n  > div {\n    border: none;\n  }\n  border-bottom: "," solid ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,colours.Uv),StyledDiv=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject6||(FilteredCollectionHeader_templateObject6=FilteredCollectionHeader_taggedTemplateLiteral(["\n  display: flex;\n  flex: 50%;\n  align-items: center;\n  flex-flow: nowrap;\n\n  h2 {\n    flex-grow: 2;\n  }\n\n  button {\n    text-align: right;\n    width: auto;\n    margin: 0;\n  }\n"]))),StyledSummary=(0,styled_components_browser_esm.Ay)("div")(FilteredCollectionHeader_templateObject7||(FilteredCollectionHeader_templateObject7=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),StyledSummaryTotal=(0,styled_components_browser_esm.Ay)("span")(FilteredCollectionHeader_templateObject8||(FilteredCollectionHeader_templateObject8=FilteredCollectionHeader_taggedTemplateLiteral(["\n  font-weight: ",";\n"])),govuk_react_constants_esm.sO.bold),RoutedFilterChipsCollection=function RoutedFilterChipsCollection(_ref){var selectedFilters=_ref.selectedFilters;return react.createElement(react.Fragment,null,Object.keys(selectedFilters).map((function(key){return react.createElement(components_RoutedFilterChips,{key,selectedOptions:selectedFilters[key].options,qsParamName:selectedFilters[key].queryParam})})))};function FilteredCollectionHeader(_ref2){var totalItems=_ref2.totalItems,summary=_ref2.summary,_ref2$collectionName=_ref2.collectionName,collectionName=void 0===_ref2$collectionName?"result":_ref2$collectionName,_ref2$addItemUrl=_ref2.addItemUrl,addItemUrl=void 0===_ref2$addItemUrl?null:_ref2$addItemUrl,selectedFilters=_ref2.selectedFilters,hasFilters=_ref2.hasFilters,_ref2$useReactRouter=_ref2.useReactRouter,useReactRouter=void 0!==_ref2$useReactRouter&&_ref2$useReactRouter,formattedTotal=(0,number_utils._)(totalItems),counterSuffix=pluralize_default()(collectionName,totalItems),actions=addItemUrl&&(useReactRouter?react.createElement(govuk_react_button_esm.A,{id:"add-".concat((0,lodash.kebabCase)(collectionName)),as:StyledReactRouterLink,to:addItemUrl,buttonColour:colours.WS,buttonTextColour:colours.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName):react.createElement(govuk_react_button_esm.A,{id:"add-".concat((0,lodash.kebabCase)(collectionName)),as:FilteredCollectionHeader_StyledLink,href:addItemUrl,buttonColour:colours.WS,buttonTextColour:colours.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName));return react.createElement(CollectionHeaderRowContainer,null,react.createElement(CollectionHeaderRow.A,{actions},react.createElement(StyledDiv,{role:"status"},react.createElement(StyledHeaderText,null,react.createElement(StyledResultCount,{"data-test":"collectionCount"},formattedTotal)," ",counterSuffix),hasFilters&&react.createElement(components_FilterReset,{"data-test":"clear-filters",id:"clear-filters"},"Remove all filters"))),summary&&react.createElement(StyledSummary,{"data-test":"summary"},"Total value:"," ",react.createElement(StyledSummaryTotal,null,"£",(0,number_utils._)(summary.total_subtotal_cost/100))),react.createElement(CollectionHeaderRow.A,{"data-test":"filter-chips",id:"filter-chips"},react.createElement(RoutedFilterChipsCollection,{selectedFilters})))}FilteredCollectionHeader.propTypes={totalItems:prop_types_default().number.isRequired,summary:prop_types_default().object,collectionName:prop_types_default().string.isRequired,addItemUrl:prop_types_default().string,selectedFilters:prop_types_default().objectOf(prop_types_default().shape({queryParam:prop_types_default().string.isRequired,options:prop_types_default().arrayOf(prop_types_default().shape({value:prop_types_default().string.isRequired,label:prop_types_default().string,categoryLabel:prop_types_default().string}))}))};const FilteredCollectionList_FilteredCollectionHeader=FilteredCollectionHeader;function FilteredCollectionList_typeof(o){return FilteredCollectionList_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},FilteredCollectionList_typeof(o)}function FilteredCollectionList_extends(){return FilteredCollectionList_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FilteredCollectionList_extends.apply(null,arguments)}function FilteredCollectionList_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 FilteredCollectionList_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?FilteredCollectionList_ownKeys(Object(t),!0).forEach((function(r){FilteredCollectionList_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FilteredCollectionList_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function FilteredCollectionList_defineProperty(e,r,t){return(r=function FilteredCollectionList_toPropertyKey(t){var i=function FilteredCollectionList_toPrimitive(t,r){if("object"!=FilteredCollectionList_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FilteredCollectionList_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FilteredCollectionList_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FilteredCollectionList_slicedToArray(r,e){return function FilteredCollectionList_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function FilteredCollectionList_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 FilteredCollectionList_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return FilteredCollectionList_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)?FilteredCollectionList_arrayLikeToArray(r,a):void 0}}(r,e)||function FilteredCollectionList_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 FilteredCollectionList_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}FilteredCollectionHeader.__docgenInfo={description:"",methods:[],displayName:"FilteredCollectionHeader",props:{collectionName:{defaultValue:{value:"'result'",computed:!1},description:"",type:{name:"string"},required:!1},addItemUrl:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},totalItems:{description:"",type:{name:"number"},required:!0},summary:{description:"",type:{name:"object"},required:!1},selectedFilters:{description:"",type:{name:"objectOf",value:{name:"shape",value:{queryParam:{name:"string",required:!0},options:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!0},label:{name:"string",required:!1},categoryLabel:{name:"string",required:!1}}},required:!1}}}},required:!1}}};var filtersToAnalytics=function filtersToAnalytics(filters){return Object.fromEntries(Object.entries(filters).filter((function(_ref){var value=FilteredCollectionList_slicedToArray(_ref,2)[1];return value&&value.options&&value.options.length})).map((function(_ref3){var _ref4=FilteredCollectionList_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return[(null==value?void 0:value.queryParam)||key,value.options.map((function(option){return option.label}))]})))},getSelectedFilters=function getSelectedFilters(filters){return Object.fromEntries(Object.entries(filters).filter((function(_ref5){var value=FilteredCollectionList_slicedToArray(_ref5,2)[1];return value&&value.options&&value.options.length})))},collectionItemTemplateDefault=function collectionItemTemplateDefault(item,titleRenderer,useReactRouter,pushAnalytics,selectedFilters,sanitizeFiltersForAnalytics){return react.createElement(CollectionItem.Ay,FilteredCollectionList_extends({},item,{key:item.id,titleRenderer,useReactRouter,onClick:function onClick(){pushAnalytics({event:"filterResultClick",extra:FilteredCollectionList_objectSpread(FilteredCollectionList_objectSpread({},filtersToAnalytics(selectedFilters)),sanitizeFiltersForAnalytics&&sanitizeFiltersForAnalytics(getSelectedFilters(selectedFilters)))})}}))},FilteredCollectionList=function FilteredCollectionList(_ref7){var _ref7$results=_ref7.results,results=void 0===_ref7$results?[]:_ref7$results,_ref7$summary=_ref7.summary,summary=void 0===_ref7$summary?null:_ref7$summary,_ref7$itemsPerPage=_ref7.itemsPerPage,itemsPerPage=void 0===_ref7$itemsPerPage?10:_ref7$itemsPerPage,_ref7$sortOptions=_ref7.sortOptions,sortOptions=void 0===_ref7$sortOptions?null:_ref7$sortOptions,taskProps=_ref7.taskProps,_ref7$count=_ref7.count,count=void 0===_ref7$count?0:_ref7$count,isComplete=_ref7.isComplete,children=_ref7.children,collectionName=_ref7.collectionName,_ref7$maxItemsToPagin=_ref7.maxItemsToPaginate,maxItemsToPaginate=void 0===_ref7$maxItemsToPagin?1e4:_ref7$maxItemsToPagin,maxItemsToDownload=_ref7.maxItemsToDownload,selectedFilters=_ref7.selectedFilters,_ref7$baseDownloadLin=_ref7.baseDownloadLink,baseDownloadLink=void 0===_ref7$baseDownloadLin?null:_ref7$baseDownloadLin,entityName=_ref7.entityName,entityNamePlural=_ref7.entityNamePlural,addItemUrl=_ref7.addItemUrl,defaultQueryParams=_ref7.defaultQueryParams,_ref7$titleRenderer=_ref7.titleRenderer,titleRenderer=void 0===_ref7$titleRenderer?null:_ref7$titleRenderer,_ref7$sanitizeFilters=_ref7.sanitizeFiltersForAnalytics,sanitizeFiltersForAnalytics=void 0===_ref7$sanitizeFilters?null:_ref7$sanitizeFilters,_ref7$useReactRouter=_ref7.useReactRouter,useReactRouter=void 0!==_ref7$useReactRouter&&_ref7$useReactRouter,_ref7$collectionItemT=_ref7.collectionItemTemplate,collectionItemTemplate=void 0===_ref7$collectionItemT?collectionItemTemplateDefault:_ref7$collectionItemT,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),totalPages=Math.ceil(Math.min(count,maxItemsToPaginate)/itemsPerPage),qsParams=lib_default().parse(location.search.slice(1));(0,react.useEffect)((function(){defaultQueryParams&&(0,lodash.isEmpty)(qsParams)&&navigate({search:lib_default().stringify(FilteredCollectionList_objectSpread({},defaultQueryParams))})}),[]);var initialPage=function getPageNumber(qsParams){var defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,pageNumber=parseInt(qsParams.page,10);return isNaN(pageNumber)?defaultValue:pageNumber}(qsParams);return react.createElement(govuk_react_esm.TW,{"data-test":"collection-list"},children,react.createElement(govuk_react_esm.bn,null,react.createElement("article",null,isComplete&&react.createElement(FilteredCollectionList_FilteredCollectionHeader,{totalItems:count,summary,collectionName,hasFilters:void 0!==children,selectedFilters,addItemUrl,useReactRouter}),sortOptions&&react.createElement(CollectionSort.A,{sortOptions,totalPages}),baseDownloadLink&&react.createElement(components_RoutedDownloadDataHeader,{count,maxItems:maxItemsToDownload,"data-test":"download-data-header",baseDownloadLink,entityName,entityNamePlural}),react.createElement(Task.A.Status,taskProps,(function(){return isComplete&&react.createElement("ol",{"aria-live":"polite"},results.map((function(item,index){return react.createElement(Analytics.A,{key:"".concat(item.id,"-").concat(index)},(function(pushAnalytics){return collectionItemTemplate(item,titleRenderer,useReactRouter,pushAnalytics,selectedFilters,sanitizeFiltersForAnalytics)}))})))})),react.createElement(Pagination.A,{totalPages,activePage:initialPage,onPageClick:function onPageClick(page,e){e.preventDefault(),navigate({search:lib_default().stringify(FilteredCollectionList_objectSpread(FilteredCollectionList_objectSpread({},qsParams),{},{page}))})}}))))};FilteredCollectionList.propTypes={taskProps:prop_types_default().shape({name:prop_types_default().string,id:prop_types_default().string,progressMessage:prop_types_default().string,renderProgress:prop_types_default().func,startOnRender:prop_types_default().shape({payload:prop_types_default().shape({page:prop_types_default().number,filters:prop_types_default().object,search:prop_types_default().string}).isRequired,onSuccessDispatch:prop_types_default().string}).isRequired}),isComplete:prop_types_default().bool,children:prop_types_default().node,collectionName:prop_types_default().string,router:prop_types_default().shape({location:prop_types_default().shape({search:prop_types_default().string.isRequired,query:prop_types_default().object.isRequired})}),maxItemsToPaginate:prop_types_default().number,maxItemsToDownload:prop_types_default().number,selectedFilters:prop_types_default().shape({label:prop_types_default().string,value:prop_types_default().string}),summary:prop_types_default().object,defaultQueryParams:prop_types_default().object,titleRenderer:prop_types_default().func,sanitizeFiltersForAnalytics:prop_types_default().func,width:prop_types_default().string};function RoutedFilterChips_typeof(o){return RoutedFilterChips_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},RoutedFilterChips_typeof(o)}FilteredCollectionList.__docgenInfo={description:"",methods:[],displayName:"FilteredCollectionList",props:{results:{defaultValue:{value:"[]",computed:!1},required:!1},summary:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"object"},required:!1},itemsPerPage:{defaultValue:{value:"10",computed:!1},required:!1},sortOptions:{defaultValue:{value:"null",computed:!1},required:!1},count:{defaultValue:{value:"0",computed:!1},required:!1},maxItemsToPaginate:{defaultValue:{value:"10000",computed:!1},description:"",type:{name:"number"},required:!1},baseDownloadLink:{defaultValue:{value:"null",computed:!1},required:!1},titleRenderer:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},sanitizeFiltersForAnalytics:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},collectionItemTemplate:{defaultValue:{value:"(\n  item,\n  titleRenderer,\n  useReactRouter,\n  pushAnalytics,\n  selectedFilters,\n  sanitizeFiltersForAnalytics\n) => {\n  return (\n    <CollectionItem\n      {...item}\n      key={item.id}\n      titleRenderer={titleRenderer}\n      useReactRouter={useReactRouter}\n      onClick={() => {\n        pushAnalytics({\n          event: 'filterResultClick',\n          extra: {\n            ...filtersToAnalytics(selectedFilters),\n            ...(sanitizeFiltersForAnalytics &&\n              sanitizeFiltersForAnalytics(getSelectedFilters(selectedFilters))),\n          },\n        })\n      }}\n    />\n  )\n}",computed:!1},required:!1},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1},id:{name:"string",required:!1},progressMessage:{name:"string",required:!1},renderProgress:{name:"func",required:!1},startOnRender:{name:"shape",value:{payload:{name:"shape",value:{page:{name:"number",required:!1},filters:{name:"object",required:!1},search:{name:"string",required:!1}},required:!0},onSuccessDispatch:{name:"string",required:!1}},required:!0}}},required:!1},isComplete:{description:"",type:{name:"bool"},required:!1},children:{description:"",type:{name:"node"},required:!1},collectionName:{description:"",type:{name:"string"},required:!1},router:{description:"",type:{name:"shape",value:{location:{name:"shape",value:{search:{name:"string",required:!0},query:{name:"object",required:!0}},required:!1}}},required:!1},maxItemsToDownload:{description:"",type:{name:"number"},required:!1},selectedFilters:{description:"",type:{name:"shape",value:{label:{name:"string",required:!1},value:{name:"string",required:!1}}},required:!1},defaultQueryParams:{description:"",type:{name:"object"},required:!1},width:{description:"",type:{name:"string"},required:!1}}};var RoutedFilterChips_excluded=["qsParamName","selectedOptions"];function RoutedFilterChips_extends(){return RoutedFilterChips_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedFilterChips_extends.apply(null,arguments)}function RoutedFilterChips_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 RoutedFilterChips_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedFilterChips_ownKeys(Object(t),!0).forEach((function(r){RoutedFilterChips_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedFilterChips_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedFilterChips_defineProperty(e,r,t){return(r=function RoutedFilterChips_toPropertyKey(t){var i=function RoutedFilterChips_toPrimitive(t,r){if("object"!=RoutedFilterChips_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedFilterChips_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedFilterChips_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RoutedFilterChips_slicedToArray(r,e){return function RoutedFilterChips_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function RoutedFilterChips_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 RoutedFilterChips_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return RoutedFilterChips_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)?RoutedFilterChips_arrayLikeToArray(r,a):void 0}}(r,e)||function RoutedFilterChips_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 RoutedFilterChips_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var RoutedFilterChips=function RoutedFilterChips(_ref3){var qsParamName=_ref3.qsParamName,_ref3$selectedOptions=_ref3.selectedOptions,selectedOptions=void 0===_ref3$selectedOptions?[]:_ref3$selectedOptions,props=function RoutedFilterChips_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedFilterChips_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,RoutedFilterChips_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),clearFilter=function clearFilter(value){var newQsParams=function removeParamFromQs(qsParams,targetParam){var targetValue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.entries(qsParams).map((function(_ref){var key=RoutedFilterChips_slicedToArray(_ref,1)[0];if(key===targetParam)return Array.isArray(qsParams[key])?RoutedFilterChips_objectSpread(RoutedFilterChips_objectSpread({},qsParams),{},RoutedFilterChips_defineProperty({},key,qsParams[key].filter((function(x){return x!==targetValue})))):(0,lodash.omit)(qsParams,targetParam)})).filter(Boolean)[0]}(lib_default().parse(location.search.slice(1)),qsParamName,value);navigate({search:lib_default().stringify(newQsParams)})};return selectedOptions.map((function(_ref4){var value=_ref4.value,label=_ref4.label,categoryLabel=_ref4.categoryLabel;return react.createElement(Chip.A,RoutedFilterChips_extends({key:value,value,onClick:function onClick(){return clearFilter(value)}},props),categoryLabel?"".concat(categoryLabel,": ").concat(label):label)}))};RoutedFilterChips.propTypes={qsParamName:prop_types_default().string.isRequired,selectedOptions:prop_types_default().arrayOf(prop_types_default().shape({value:prop_types_default().string.isRequired,label:prop_types_default().string.isRequired,categoryLabel:prop_types_default().string}))};const components_RoutedFilterChips=RoutedFilterChips;var FilterReset_templateObject,Chip=__webpack_require__("./src/client/components/Chip/index.jsx"),FilterReset_excluded=["children"],FilterReset_excluded2=["sortby","page"];function FilterReset_extends(){return FilterReset_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},FilterReset_extends.apply(null,arguments)}function FilterReset_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function FilterReset_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var FilterReset_StyledButtonLink=(0,styled_components_browser_esm.Ay)(ButtonLink.A)(FilterReset_templateObject||(FilterReset_templateObject=function FilterReset_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),FilterReset=function FilterReset(_ref){var children=_ref.children,props=FilterReset_objectWithoutProperties(_ref,FilterReset_excluded),navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_qs$parse=lib_default().parse(location.search.slice(1)),filters=(_qs$parse.sortby,_qs$parse.page,FilterReset_objectWithoutProperties(_qs$parse,FilterReset_excluded2));return react.createElement(react.Fragment,null,(0,lodash.isEmpty)(filters)?null:react.createElement(FilterReset_StyledButtonLink,FilterReset_extends({},props,{onClick:function onClick(){navigate("".concat(location.pathname,"?page=1"))}}),children))};FilterReset.propTypes={children:prop_types_default().node.isRequired};const components_FilterReset=FilterReset;FilterReset.__docgenInfo={description:"",methods:[],displayName:"FilterReset",props:{children:{description:"",type:{name:"node"},required:!0}}};__webpack_require__("./src/client/components/Checkbox/index.jsx");var CheckboxGroupField=__webpack_require__("./src/client/components/CheckboxGroupField/index.jsx");function RoutedCheckboxGroupField_typeof(o){return RoutedCheckboxGroupField_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},RoutedCheckboxGroupField_typeof(o)}var RoutedCheckboxGroupField_excluded=["qsParam"];function RoutedCheckboxGroupField_extends(){return RoutedCheckboxGroupField_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedCheckboxGroupField_extends.apply(null,arguments)}function RoutedCheckboxGroupField_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 RoutedCheckboxGroupField_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedCheckboxGroupField_ownKeys(Object(t),!0).forEach((function(r){RoutedCheckboxGroupField_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedCheckboxGroupField_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedCheckboxGroupField_defineProperty(e,r,t){return(r=function RoutedCheckboxGroupField_toPropertyKey(t){var i=function RoutedCheckboxGroupField_toPrimitive(t,r){if("object"!=RoutedCheckboxGroupField_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedCheckboxGroupField_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedCheckboxGroupField_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var RoutedCheckboxGroupField=function RoutedCheckboxGroupField(_ref){var qsParam=_ref.qsParam,props=function RoutedCheckboxGroupField_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedCheckboxGroupField_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,RoutedCheckboxGroupField_excluded),qsParams=lib_default().parse(location.search.slice(1)),navigate=(0,dist.Zp)();return void 0===props.options?null:react.createElement(CheckboxGroupField.A,RoutedCheckboxGroupField_extends({},props,{onChange:function onChange(pickedOptions){return navigate({search:lib_default().stringify(RoutedCheckboxGroupField_objectSpread(RoutedCheckboxGroupField_objectSpread({},qsParams),{},RoutedCheckboxGroupField_defineProperty(RoutedCheckboxGroupField_defineProperty({},qsParam,pickedOptions.map((function(_ref2){return _ref2.value}))),"page",1)))})}}))};RoutedCheckboxGroupField.propTypes={name:prop_types_default().string.isRequired};const components_RoutedCheckboxGroupField=RoutedCheckboxGroupField;RoutedCheckboxGroupField.__docgenInfo={description:"",methods:[],displayName:"RoutedCheckboxGroupField",props:{name:{description:"",type:{name:"string"},required:!0}}};const timeline_namespaceObject=__webpack_require__.p+"static/media/timeline.ea4a156a.png";var NoInvestmentProjects_templateObject,NoInvestmentProjects_templateObject2,NoInvestmentProjects_templateObject3,NoInvestmentProjects_templateObject4,NoInvestmentProjects_templateObject5;function NoInvestmentProjects_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledContainer=(0,styled_components_browser_esm.Ay)("div")(NoInvestmentProjects_templateObject||(NoInvestmentProjects_templateObject=NoInvestmentProjects_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  "," {\n    margin: 25px 0 50px 0;\n  }\n  "," {\n    margin: 45px 0 95px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.qs.DESKTOP),NoInvestmentProjects_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(NoInvestmentProjects_templateObject2||(NoInvestmentProjects_templateObject2=NoInvestmentProjects_taggedTemplateLiteral(["\n  color: ",";\n  "," {\n    margin-bottom: 25px;\n    font-size: ",";\n  }\n"])),colours.hM,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_24),StyledImage=(0,styled_components_browser_esm.Ay)("img")(NoInvestmentProjects_templateObject3||(NoInvestmentProjects_templateObject3=NoInvestmentProjects_taggedTemplateLiteral(["\n  display: none;\n  "," {\n    display: block;\n    width: 655px;\n    margin-bottom: ",";\n  }\n  "," {\n    width: 760px;\n    margin: "," 0 35px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.DESKTOP,govuk_react_constants_esm.Es.SCALE_3),NoInvestmentProjects_StyledUnorderedList=(0,styled_components_browser_esm.Ay)(govuk_react_unordered_list_esm.A)(NoInvestmentProjects_templateObject4||(NoInvestmentProjects_templateObject4=NoInvestmentProjects_taggedTemplateLiteral(["\n  color: ",";\n  margin-bottom: ",";\n  "," {\n    margin-left: 7px;\n    margin-bottom: 40px;\n  }\n"])),colours.hM,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.qs.TABLET),NoInvestmentProjects_StyledListItem=(0,styled_components_browser_esm.Ay)("li")(NoInvestmentProjects_templateObject5||(NoInvestmentProjects_templateObject5=NoInvestmentProjects_taggedTemplateLiteral(["\n  "," {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_24),NoInvestmentProjects=function NoInvestmentProjects(){return react.createElement(StyledContainer,null,react.createElement(govuk_react_heading_esm.H3,{as:govuk_react_heading_esm.H1},"No investment projects"),react.createElement(NoInvestmentProjects_StyledParagraph,null,"View and track investment projects from your dashboard"),react.createElement(StyledImage,{src:timeline_namespaceObject,alt:"An image of the stage timeline and estimated land date"}),react.createElement("div",null,react.createElement(NoInvestmentProjects_StyledParagraph,null,"Once added, you'll be able to:"),react.createElement(NoInvestmentProjects_StyledUnorderedList,{listStyleType:"bullet"},react.createElement(NoInvestmentProjects_StyledListItem,null,"view the progress of each project"),react.createElement(NoInvestmentProjects_StyledListItem,null,"move projects onto the next stage"),react.createElement(NoInvestmentProjects_StyledListItem,null,"view estimated land dates"),react.createElement(NoInvestmentProjects_StyledListItem,null,"view project summaries for the next financial year."))),react.createElement(govuk_react_button_esm.A,{as:"a",href:urls.investments.index()},"Add project"))};const MyInvestmentProjects_NoInvestmentProjects=NoInvestmentProjects;NoInvestmentProjects.__docgenInfo={description:"",methods:[],displayName:"NoInvestmentProjects"};__webpack_require__("./node_modules/core-js/modules/es.array.sort.js");var InvestmentCheckbox_templateObject,MyInvestmentProjects_state=__webpack_require__("./src/client/components/MyInvestmentProjects/state.js"),govuk_react_checkbox_esm=__webpack_require__("./node_modules/@govuk-react/checkbox/dist/govuk-react-checkbox.esm.js"),InvestmentCheckbox_excluded=["children"];var StyledCheckbox=(0,styled_components_browser_esm.Ay)(govuk_react_checkbox_esm.A)(InvestmentCheckbox_templateObject||(InvestmentCheckbox_templateObject=function InvestmentCheckbox_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: flex;\n  align-items: center;\n  min-height: 26px;\n  margin-bottom: 0;\n\n  & > span {\n    margin: 0;\n    padding: 0;\n    white-space: nowrap;\n\n    &::before {\n      background: ",";\n      width: 26px;\n      height: 26px;\n    }\n\n    &::after {\n      top: 6px;\n      left: ",";\n      width: 12px;\n      height: 6px;\n      box-sizing: unset;\n      border-width: 0 0 "," ",";\n    }\n  }\n\n  input {\n    width: 26px;\n    height: 26px;\n    margin: 0;\n    padding: 0;\n  }\n"])),colours.UE,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.d5,govuk_react_constants_esm.d5),InvestmentCheckbox=function InvestmentCheckbox(_ref){var children=_ref.children,rest=function InvestmentCheckbox_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentCheckbox_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentCheckbox_excluded);return react.createElement(StyledCheckbox,rest,children)};InvestmentCheckbox.propTypes={children:prop_types_default().node.isRequired,onChange:prop_types_default().func.isRequired,checked:prop_types_default().bool,disabled:prop_types_default().bool,name:prop_types_default().string};const MyInvestmentProjects_InvestmentCheckbox=InvestmentCheckbox;InvestmentCheckbox.__docgenInfo={description:"",methods:[],displayName:"InvestmentCheckbox",props:{children:{description:"",type:{name:"node"},required:!0},onChange:{description:"",type:{name:"func"},required:!0},checked:{description:"",type:{name:"bool"},required:!1},disabled:{description:"",type:{name:"bool"},required:!1},name:{description:"",type:{name:"string"},required:!1}}};var InvestmentListShowDetails_templateObject,InvestmentListShowDetails_excluded=["children"];function InvestmentListShowDetails_extends(){return InvestmentListShowDetails_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentListShowDetails_extends.apply(null,arguments)}var CheckboxContainer=(0,styled_components_browser_esm.Ay)("div")(InvestmentListShowDetails_templateObject||(InvestmentListShowDetails_templateObject=function InvestmentListShowDetails_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding: ",";\n"])),govuk_react_constants_esm.Es.SCALE_2),InvestmentListShowDetails=function InvestmentListShowDetails(_ref){var children=_ref.children,rest=function InvestmentListShowDetails_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentListShowDetails_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentListShowDetails_excluded);return react.createElement(CheckboxContainer,null,react.createElement(MyInvestmentProjects_InvestmentCheckbox,InvestmentListShowDetails_extends({name:"investmentListShowDetails"},rest),children))};InvestmentListShowDetails.propTypes={children:prop_types_default().node.isRequired,onChange:prop_types_default().func.isRequired,checked:prop_types_default().bool.isRequired,disabled:prop_types_default().bool.isRequired};InvestmentListShowDetails.__docgenInfo={description:"",methods:[],displayName:"InvestmentListShowDetails",props:{children:{description:"",type:{name:"node"},required:!0},onChange:{description:"",type:{name:"func"},required:!0},checked:{description:"",type:{name:"bool"},required:!0},disabled:{description:"",type:{name:"bool"},required:!0}}};var InvestmentListSelect_excluded=["initialValue","label","options","onChange","input"];function InvestmentListSelect_typeof(o){return InvestmentListSelect_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},InvestmentListSelect_typeof(o)}function InvestmentListSelect_extends(){return InvestmentListSelect_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentListSelect_extends.apply(null,arguments)}function InvestmentListSelect_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 InvestmentListSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentListSelect_ownKeys(Object(t),!0).forEach((function(r){InvestmentListSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentListSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentListSelect_defineProperty(e,r,t){return(r=function InvestmentListSelect_toPropertyKey(t){var i=function InvestmentListSelect_toPrimitive(t,r){if("object"!=InvestmentListSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentListSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentListSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var InvestmentListSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(Select.A)(InvestmentListSelect_defineProperty({alignItems:"flex-start",flexDirection:"column",flex:"1 1",select:{width:"100%",minWidth:170},marginBottom:govuk_react_constants_esm.Es.SCALE_1},govuk_react_constants_esm.qs.DESKTOP,{margin:govuk_react_constants_esm.Es.SCALE_1})),InvestmentListSelect=function InvestmentListSelect(_ref){var initialValue=_ref.initialValue,label=_ref.label,options=_ref.options,onChange=_ref.onChange,input=_ref.input,props=function InvestmentListSelect_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentListSelect_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentListSelect_excluded);return react.createElement(InvestmentListSelect_StyledSelect,InvestmentListSelect_extends({label,input:InvestmentListSelect_objectSpread({onChange,initialValue},input)},props),options.map((function(_ref2,index){var id=_ref2.id,name=_ref2.name;return react.createElement("option",{value:id,"aria-label":name,key:index,id:(0,lodash.kebabCase)(name)},name)})))};const MyInvestmentProjects_InvestmentListSelect=InvestmentListSelect;InvestmentListSelect.__docgenInfo={description:"",methods:[],displayName:"InvestmentListSelect"};var InvestmentEstimatedLandDate_templateObject,InvestmentEstimatedLandDate_templateObject2,InvestmentEstimatedLandDate_templateObject3,InvestmentEstimatedLandDate_templateObject4,InvestmentEstimatedLandDate_templateObject5,InvestmentEstimatedLandDate_templateObject6,InvestmentEstimatedLandDate_templateObject7,PROJECT_STATUS_OPTIONS=[{name:"Show all",id:"all-statuses"},{name:"Ongoing",id:"ongoing"},{name:"Delayed",id:"delayed"},{name:"Abandoned",id:"abandoned"},{name:"Lost",id:"lost"},{name:"Dormant",id:"dormant"}],STAGE_OPTIONS=[{name:"Show all",id:"all-stages"},{name:"Prospect",id:"8a320cc9-ae2e-443e-9d26-2f36452c2ced"},{name:"Assign PM",id:"c9864359-fb1a-4646-a4c1-97d10189fc03"},{name:"Active",id:"7606cc19-20da-4b74-aba1-2cec0d753ad8"},{name:"Verify win",id:"49b8f6f3-0c50-4150-a965-2c974f3149e3"},{name:"Won",id:"945ea6d1-eee3-4f5b-9144-84a75b71b8e6"}],SORT_OPTIONS=[{name:"Recently created",id:"created_on:desc"},{name:"Recently updated",id:"modified_on:desc"},{name:"Earliest land date",id:"estimated_land_date:asc"},{name:"Latest land date",id:"estimated_land_date:desc"},{name:"Project name (A-Z)",id:"name:asc"},{name:"Project name (Z-A)",id:"name:desc"}],INCOMPLETE_FIELDS={client_cannot_provide_total_investment:"Can client provide total investment value?",number_new_jobs:"Number of new jobs",strategic_drivers:"Strategic drivers behind this investment",client_requirements:"Client requirements",client_considering_other_countries:"Is the client considering other countries?",total_investment:"Total investment",uk_region_locations:"Possible UK locations for this investment",project_manager:"Project Manager",project_assurance_adviser:"Project Assurance Adviser",government_assistance:"Is this project receiving government financial assistance?",number_safeguarded_jobs:"Number of safeguarded jobs",r_and_d_budget:"Does this project have budget for a research and development?",non_fdi_r_and_d_budget:"Is this project associated with a non-FDI R&D project?",new_tech_to_uk:"Does the project bring ‘New To World’ Technology, IP or Business Model to the UK site?",export_revenue:"Will the UK company export a significant proportion of their products and services produced in the UK as a result of the FDI project?",address_1:"Street",address_town:"Town",address_postcode:"Postcode",actual_uk_regions:"UK regions landed",actual_land_date:"Actual land date",average_salary:"Average salary of new jobs",client_cannot_provide_foreign_investment:"Can client provide capital expenditure value?",delivery_partners:"Delivery partners",competitor_countries:"Competitor countries",foreign_equity_investment:"Foreign equity investment",associated_non_fdi_r_and_d_project:"Non-FDI R&D project",fdi_type:"FDI type",specific_programmes:"Specific investment programme",uk_company:"UK recipient company",investor_type:"Investor type",level_of_involvement:"Level of investor involvement"},STAGE_TAG_COLOURS={Prospect:"purple","Assign PM":"red",Active:"blue","Verify win":"yellow",Won:"green"},Projects_constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js"),InvestmentEstimatedLandDate_excluded=["estimatedLandDate"];function InvestmentEstimatedLandDate_extends(){return InvestmentEstimatedLandDate_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentEstimatedLandDate_extends.apply(null,arguments)}function InvestmentEstimatedLandDate_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var InvestmentEstimatedLandDate_require=__webpack_require__("./src/client/utils/date.js"),formatWithoutParsing=InvestmentEstimatedLandDate_require.formatWithoutParsing,getDifferenceInDays=InvestmentEstimatedLandDate_require.getDifferenceInDays,getDifferenceInDaysLabel=InvestmentEstimatedLandDate_require.getDifferenceInDaysLabel,StyledPanel=(0,styled_components_browser_esm.Ay)("div")(InvestmentEstimatedLandDate_templateObject||(InvestmentEstimatedLandDate_templateObject=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  padding: ",";\n  color: ",";\n  background-color: ",";\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n"])),govuk_react_constants_esm.Es.SCALE_2,colours.Uv,colours.Iz),GreenPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject2||(InvestmentEstimatedLandDate_templateObject2=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.EI,.3)),AmberPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject3||(InvestmentEstimatedLandDate_templateObject3=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Iz,.5)),RedPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject4||(InvestmentEstimatedLandDate_templateObject4=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Bk,.4)),GreyPanel=(0,styled_components_browser_esm.Ay)(StyledPanel)(InvestmentEstimatedLandDate_templateObject5||(InvestmentEstimatedLandDate_templateObject5=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  background-color: ",";\n"])),(0,colours.B3)(colours.Pe,.5)),StyledTitle=(0,styled_components_browser_esm.Ay)("h2")(InvestmentEstimatedLandDate_templateObject6||(InvestmentEstimatedLandDate_templateObject6=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  margin: 0;\n  text-align: center;\n  font-size: ",";\n  font-weight: ",";\n"])),govuk_react_constants_esm.SG.SIZE_24,govuk_react_constants_esm.sO.bold),StyledBody=(0,styled_components_browser_esm.Ay)("div")(InvestmentEstimatedLandDate_templateObject7||(InvestmentEstimatedLandDate_templateObject7=InvestmentEstimatedLandDate_taggedTemplateLiteral(["\n  text-align: center;\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_14),InvestmentEstimatedLandDate=function InvestmentEstimatedLandDate(_ref){var estimatedLandDate=_ref.estimatedLandDate,props=function InvestmentEstimatedLandDate_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentEstimatedLandDate_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentEstimatedLandDate_excluded),difference=getDifferenceInDays(estimatedLandDate),Panel=difference>=90?GreenPanel:difference>=30?AmberPanel:difference>=0?RedPanel:GreyPanel;return react.createElement(Panel,InvestmentEstimatedLandDate_extends({"data-test":"estimated-land-date"},props),react.createElement(StyledBody,{"data-test":"estimated-land-date-label"},"Estimated land date"),react.createElement(StyledTitle,{"data-test":"estimated-land-date-countdown"},getDifferenceInDaysLabel(estimatedLandDate)),react.createElement(StyledBody,{"data-test":"estimated-land-date-date"},formatWithoutParsing(new Date(estimatedLandDate),constants.DATE_DAY_LONG_FORMAT)))};InvestmentEstimatedLandDate.propTypes={estimatedLandDate:prop_types_default().string.isRequired};const MyInvestmentProjects_InvestmentEstimatedLandDate=InvestmentEstimatedLandDate;InvestmentEstimatedLandDate.__docgenInfo={description:"",methods:[],displayName:"InvestmentEstimatedLandDate",props:{estimatedLandDate:{description:"",type:{name:"string"},required:!0}}};var InvestmentTimeline_excluded=["stage"];function InvestmentTimeline_extends(){return InvestmentTimeline_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentTimeline_extends.apply(null,arguments)}var InvestmentTimeline=function InvestmentTimeline(_ref){var stage=_ref.stage,props=function InvestmentTimeline_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentTimeline_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentTimeline_excluded);return react.createElement(Timeline.A,InvestmentTimeline_extends({stages:Projects_constants.s1,currentStage:stage.name},props))};InvestmentTimeline.propTypes={stage:prop_types_default().shape({name:prop_types_default().string.isRequired})};const MyInvestmentProjects_InvestmentTimeline=InvestmentTimeline;function InvestmentDetails_typeof(o){return InvestmentDetails_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},InvestmentDetails_typeof(o)}function InvestmentDetails_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 InvestmentDetails_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentDetails_ownKeys(Object(t),!0).forEach((function(r){InvestmentDetails_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentDetails_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentDetails_defineProperty(e,r,t){return(r=function InvestmentDetails_toPropertyKey(t){var i=function InvestmentDetails_toPrimitive(t,r){if("object"!=InvestmentDetails_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentDetails_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentDetails_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}InvestmentTimeline.__docgenInfo={description:"",methods:[],displayName:"InvestmentTimeline",props:{stage:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0}}},required:!1}}};var InvestmentDetails_format=__webpack_require__("./src/client/utils/date.js").format,InvestmentDetails_StyledDiv=(0,styled_components_browser_esm.Ay)("div")({height:"100%",backgroundColor:colours.WS,padding:"9px ".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_1," ").concat(govuk_react_constants_esm.Es.SCALE_2)}),InvestmentDetails_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")({fontSize:govuk_react_constants_esm.SG.SIZE_16,fontWeight:govuk_react_constants_esm.sO.bold,marginBottom:0}),StyledDL=(0,styled_components_browser_esm.Ay)("dl")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),lineHeightMixin={lineHeight:"1.5"},StyledDT=(0,styled_components_browser_esm.Ay)("dt")(InvestmentDetails_objectSpread({color:colours.hM,float:"left",clear:"left",marginRight:"5px"},lineHeightMixin)),StyledDD=(0,styled_components_browser_esm.Ay)("dd")(InvestmentDetails_objectSpread({},lineHeightMixin)),Truncate=(0,styled_components_browser_esm.Ay)("span")({display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),InvestmentDetails=function InvestmentDetails(_ref){var investor=_ref.investor,sector=_ref.sector,countryOrigin=_ref.countryOrigin,latestInteraction=_ref.latestInteraction;return react.createElement(InvestmentDetails_StyledDiv,{"data-test":"investment-details"},react.createElement(InvestmentDetails_StyledHeader,null,"Details"),react.createElement(StyledDL,null,react.createElement(StyledDT,null,"Investor:"),react.createElement(StyledDD,null,react.createElement(govuk_react_link_esm.A,{href:urls.companies.details(investor.id)},react.createElement(Truncate,null,investor.name))),react.createElement(StyledDT,null,"Sector:"),react.createElement(StyledDD,null,react.createElement(Truncate,null,sector.name)),countryOrigin&&react.createElement(react.Fragment,null,react.createElement(StyledDT,null,"Country of origin:"),react.createElement(StyledDD,null,countryOrigin.name)),latestInteraction&&react.createElement(react.Fragment,null,react.createElement(StyledDT,null,"Last interaction:"),react.createElement(StyledDD,null,InvestmentDetails_format(latestInteraction.date)),react.createElement(StyledDT,null,"Interaction subject:"),react.createElement(StyledDD,null,react.createElement(govuk_react_link_esm.A,{href:urls.interactions.detail(latestInteraction.id)},react.createElement(Truncate,null,latestInteraction.subject))))))};const MyInvestmentProjects_InvestmentDetails=InvestmentDetails;var InvestmentNextSteps_templateObject,InvestmentNextSteps_templateObject2,InvestmentNextSteps_templateObject3,InvestmentNextSteps_templateObject4,InvestmentNextSteps_templateObject5,InvestmentNextSteps_templateObject6;function InvestmentNextSteps_toConsumableArray(r){return function InvestmentNextSteps_arrayWithoutHoles(r){if(Array.isArray(r))return InvestmentNextSteps_arrayLikeToArray(r)}(r)||function InvestmentNextSteps_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||InvestmentNextSteps_unsupportedIterableToArray(r)||function InvestmentNextSteps_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 InvestmentNextSteps_slicedToArray(r,e){return function InvestmentNextSteps_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function InvestmentNextSteps_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)||InvestmentNextSteps_unsupportedIterableToArray(r,e)||function InvestmentNextSteps_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 InvestmentNextSteps_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return InvestmentNextSteps_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)?InvestmentNextSteps_arrayLikeToArray(r,a):void 0}}function InvestmentNextSteps_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function InvestmentNextSteps_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentDetails.__docgenInfo={description:"",methods:[],displayName:"InvestmentDetails"};var InvestmentNextSteps_StyledDiv=(0,styled_components_browser_esm.Ay)("div")(InvestmentNextSteps_templateObject||(InvestmentNextSteps_templateObject=InvestmentNextSteps_taggedTemplateLiteral(["\n  height: 100%;\n  /* Colour is in the Gov uk design system but not in our govuk-colors dependancy */\n  background-color: ",";\n  padding: 9px "," 8px ",";\n"])),(0,colours.B3)(colours.eM,.2),govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),InvestmentNextSteps_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")(InvestmentNextSteps_templateObject2||(InvestmentNextSteps_templateObject2=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-bottom: 0;\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.sO.bold),InvestmentNextSteps_StyledList=(0,styled_components_browser_esm.Ay)(govuk_react_esm.Xy)(InvestmentNextSteps_templateObject3||(InvestmentNextSteps_templateObject3=InvestmentNextSteps_taggedTemplateLiteral(["\n  margin-bottom: 0;\n"]))),InvestmentNextSteps_StyledListItem=(0,styled_components_browser_esm.Ay)(govuk_react_esm.ck)(InvestmentNextSteps_templateObject4||(InvestmentNextSteps_templateObject4=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n  /* I can't see any other way to override this margin */\n  margin-bottom: 0 !important;\n  &::marker {\n    font-size: 22px;\n    line-height: 1;\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16),OverflowWrapper=(0,styled_components_browser_esm.Ay)("span")(InvestmentNextSteps_templateObject5||(InvestmentNextSteps_templateObject5=InvestmentNextSteps_taggedTemplateLiteral(["\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  display: block;\n  width: calc(100% - 8px);\n"]))),InvestmentNextSteps_StyledLink=(0,styled_components_browser_esm.Ay)("a")(InvestmentNextSteps_templateObject6||(InvestmentNextSteps_templateObject6=InvestmentNextSteps_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),InvestmentNextSteps=function InvestmentNextSteps(_ref){var nextSteps=_ref.nextSteps,nextStage=_ref.nextStage,projectId=_ref.projectId,stepsToComplete=Object.entries(INCOMPLETE_FIELDS).reduce((function(newObj,_ref2){var _ref3=InvestmentNextSteps_slicedToArray(_ref2,2),key=_ref3[0],value=_ref3[1];return nextSteps&&nextSteps.includes(key)?[].concat(InvestmentNextSteps_toConsumableArray(newObj),[value]):newObj}),[]).sort(),totalSteps=stepsToComplete.length,hasStepsToComplete=!!totalSteps,additionalSteps=totalSteps>=3?totalSteps-3:0,hasAdditonalSteps=!!additionalSteps;return react.createElement(InvestmentNextSteps_StyledDiv,{"data-test":"investment-steps"},react.createElement(InvestmentNextSteps_StyledHeader,null,"Next step",totalSteps>1&&"s"),hasStepsToComplete&&react.createElement(react.Fragment,null,react.createElement(InvestmentNextSteps_StyledList,{listStyleType:"bullet"},stepsToComplete.map((function(step,i){return i<=2&&react.createElement(InvestmentNextSteps_StyledListItem,{key:i},react.createElement(OverflowWrapper,null,step))})),hasAdditonalSteps&&react.createElement(InvestmentNextSteps_StyledListItem,null,"Plus ",additionalSteps," additional field",additionalSteps>1&&"s")),react.createElement(InvestmentNextSteps_StyledLink,{href:urls.investments.projects.details(projectId)},"Add details to move to ",nextStage," stage")))};InvestmentNextSteps.propTypes={nextSteps:prop_types_default().arrayOf(prop_types_default().string),nextStage:prop_types_default().string.isRequired,projectId:prop_types_default().string.isRequired};const MyInvestmentProjects_InvestmentNextSteps=InvestmentNextSteps;function InvestmentListItem_typeof(o){return InvestmentListItem_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},InvestmentListItem_typeof(o)}var InvestmentListItem_templateObject,InvestmentListItem_templateObject2,InvestmentListItem_templateObject3,InvestmentListItem_templateObject4;function InvestmentListItem_defineProperty(e,r,t){return(r=function InvestmentListItem_toPropertyKey(t){var i=function InvestmentListItem_toPrimitive(t,r){if("object"!=InvestmentListItem_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentListItem_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentListItem_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function InvestmentListItem_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentNextSteps.__docgenInfo={description:"",methods:[],displayName:"InvestmentNextSteps",props:{nextSteps:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},nextStage:{description:"",type:{name:"string"},required:!0},projectId:{description:"",type:{name:"string"},required:!0}}};var Row=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_templateObject||(InvestmentListItem_templateObject=InvestmentListItem_taggedTemplateLiteral(["\n  margin-bottom: ",";\n\n  "," {\n    display: flex;\n    align-items: stretch;\n    justify-content: space-between;\n    flex-wrap: wrap;\n  }\n\n  "," {\n    flex-wrap: nowrap;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.LARGESCREEN,govuk_react_constants_esm.qs.DESKTOP),Col=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_templateObject2||(InvestmentListItem_templateObject2=InvestmentListItem_taggedTemplateLiteral(["\n  margin-bottom: ",";\n\n  "," {\n    width: ",";\n    margin-bottom: 0;\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.LARGESCREEN,(function(_ref){return _ref.fullWidth?"100%":"calc(50% - ".concat(govuk_react_constants_esm.Es.SCALE_2,")")})),InvestmentListItem_ListItem=(0,styled_components_browser_esm.Ay)("li")(InvestmentListItem_defineProperty({padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0"),borderBottom:"1px solid ".concat(colours.pA),"&:last-child":{borderBottom:"none"},display:"grid",columnGap:govuk_react_constants_esm.Es.SCALE_2,rowGap:govuk_react_constants_esm.Es.SCALE_3,gridTemplateAreas:'\n    "tags"\n    "title"\n    "details"\n    "actions"\n  ',gridTemplateColumns:"100%"},govuk_react_constants_esm.qs.DESKTOP,{gridTemplateColumns:"minmax(130px, 2fr) minmax(140px, 1fr) minmax(0, 170px)",gridTemplateAreas:'\n      "title tags actions"\n      "details details details"\n    '})),ListItemTitle=(0,styled_components_browser_esm.Ay)("h2")({fontSize:govuk_react_constants_esm.SG.SIZE_19,fontWeight:govuk_react_constants_esm.sO.bold,margin:0,gridArea:"title"}),ListItemTags=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({gridArea:"tags"},govuk_react_constants_esm.qs.DESKTOP,{padding:"0 ".concat(govuk_react_constants_esm.Es.SCALE_5),marginBottom:"-".concat(govuk_react_constants_esm.Es.SCALE_6)})),ListItemTagRow=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({display:"inline-block",paddingBottom:govuk_react_constants_esm.Es.SCALE_4,marginRight:govuk_react_constants_esm.Es.SCALE_1},govuk_react_constants_esm.qs.DESKTOP,{minWidth:"140px",display:"block"})),ListItemActions=(0,styled_components_browser_esm.Ay)("div")(InvestmentListItem_defineProperty({boxSizing:"border-box",gridArea:"actions",a:{width:"100%",marginBottom:0}},govuk_react_constants_esm.qs.DESKTOP,{marginBottom:"-".concat(govuk_react_constants_esm.Es.SCALE_6)})),ListItemDetails=(0,styled_components_browser_esm.Ay)(ToggleSection.xQ)({maxWidth:"100%",gridArea:"details"}),StyledInvestmentTimeline=(0,styled_components_browser_esm.Ay)(MyInvestmentProjects_InvestmentTimeline)(InvestmentListItem_templateObject3||(InvestmentListItem_templateObject3=InvestmentListItem_taggedTemplateLiteral(["\n  display: none;\n  box-sizing: border-box;\n\n  "," {\n    display: flex;\n    flex: 1 0 100%;\n  }\n\n  "," {\n    flex: 1 0 335px;\n  }\n"])),govuk_react_constants_esm.qs.LARGESCREEN,govuk_react_constants_esm.qs.DESKTOP),StyledInvestmentEstimatedLandDate=(0,styled_components_browser_esm.Ay)(MyInvestmentProjects_InvestmentEstimatedLandDate)(InvestmentListItem_templateObject4||(InvestmentListItem_templateObject4=InvestmentListItem_taggedTemplateLiteral(["\n  flex: 1 1 100%;\n  box-sizing: border-box;\n  min-height: 93px;\n\n  "," {\n    flex: 0 1 152px;\n  }\n"])),govuk_react_constants_esm.qs.DESKTOP),InvestmentListItem=function InvestmentListItem(_ref2){var id=_ref2.id,name=_ref2.name,stage=_ref2.stage,status=_ref2.status,estimated_land_date=_ref2.estimated_land_date,investor_company=_ref2.investor_company,project_code=_ref2.project_code,sector=_ref2.sector,country_investment_originates_from=_ref2.country_investment_originates_from,latest_interaction=_ref2.latest_interaction,incomplete_fields=_ref2.incomplete_fields,hasStepsToComplete=!!incomplete_fields.length;return react.createElement(InvestmentListItem_ListItem,{"data-test":"projects-list-item"},react.createElement(ListItemTitle,{"data-test":"project-title"},react.createElement("a",{href:"".concat(urls.investments.projects.details(id))},name)),react.createElement(ListItemTags,null,react.createElement(ListItemTagRow,null,react.createElement(Tag.A,{colour:STAGE_TAG_COLOURS[stage.name],"data-test":"project-stage-tag","aria-label":"project stage"},stage.name)),react.createElement(ListItemTagRow,null,react.createElement(Tag.A,{colour:"grey","data-test":"project-status-tag","aria-label":"project status"},status))),react.createElement(ListItemActions,null,react.createElement(govuk_react_button_esm.A,{buttonColour:colours.ft,href:urls.investments.projects.interactions.index(id),as:"a","data-test":"add-interaction"},"View interactions")),react.createElement(ListItemDetails,{id,label:project_code,"data-test":"project-details"},react.createElement(Row,null,react.createElement(StyledInvestmentTimeline,{stage}),react.createElement(StyledInvestmentEstimatedLandDate,{estimatedLandDate:estimated_land_date})),react.createElement(Row,null,react.createElement(Col,{fullWidth:!hasStepsToComplete},react.createElement(MyInvestmentProjects_InvestmentDetails,{investor:investor_company,sector,countryOrigin:country_investment_originates_from,latestInteraction:latest_interaction})),hasStepsToComplete&&react.createElement(Col,null,react.createElement(MyInvestmentProjects_InvestmentNextSteps,{nextSteps:incomplete_fields,nextStage:Projects_constants.s1[Projects_constants.s1.indexOf(stage.name)+1],projectId:id})))))};InvestmentListItem.propTypes={id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired,stage:prop_types_default().shape({name:prop_types_default().string}).isRequired,estimated_land_date:prop_types_default().string.isRequired,investor_company:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired};const MyInvestmentProjects_InvestmentListItem=InvestmentListItem;InvestmentListItem.__docgenInfo={description:"",methods:[],displayName:"InvestmentListItem",props:{id:{description:"",type:{name:"string"},required:!0},name:{description:"",type:{name:"string"},required:!0},project_code:{description:"",type:{name:"string"},required:!0},stage:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1}}},required:!0},estimated_land_date:{description:"",type:{name:"string"},required:!0},investor_company:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0}}};var InvestmentList_templateObject,InvestmentList_excluded=["items","isPaginated","showDetails"];function InvestmentList_extends(){return InvestmentList_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},InvestmentList_extends.apply(null,arguments)}var StyledOrderedList=(0,styled_components_browser_esm.Ay)("ol")(InvestmentList_templateObject||(InvestmentList_templateObject=function InvestmentList_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-top: 0;\n  ","\n"])),(function(_ref){return _ref.isPaginated&&"border-bottom: 1px solid ".concat(colours.pA,";")})),InvestmentList=function InvestmentList(_ref2){var items=_ref2.items,isPaginated=_ref2.isPaginated,showDetails=_ref2.showDetails,props=function InvestmentList_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentList_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,InvestmentList_excluded);return react.createElement(StyledOrderedList,InvestmentList_extends({isPaginated},props),items.map((function(item){return react.createElement(MyInvestmentProjects_InvestmentListItem,InvestmentList_extends({key:item.id,showDetails},item))})))};InvestmentList.propTypes={items:prop_types_default().array.isRequired};const MyInvestmentProjects_InvestmentList=InvestmentList;InvestmentList.__docgenInfo={description:"",methods:[],displayName:"InvestmentList",props:{items:{description:"",type:{name:"array"},required:!0}}};var nivo_pie_es=__webpack_require__("./node_modules/@nivo/pie/dist/nivo-pie.es.js"),StyledLegend=(0,styled_components_browser_esm.Ay)("figcaption")({}),Legend_StyledList=(0,styled_components_browser_esm.Ay)("ul")({listStyle:"none",paddingLeft:govuk_react_constants_esm.Es.SCALE_2}),Legend_StyledListItem=(0,styled_components_browser_esm.Ay)("li")((function(_ref){var colour=_ref.colour;return{margin:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0"),position:"relative",textIndent:"1.8em","&::before":{content:'""',position:"absolute",left:0,bottom:0,backgroundColor:colour,width:"1.2em",height:"1.2em"}}})),Legend=function Legend(_ref2){var data=_ref2.data;return react.createElement(StyledLegend,{"data-test":"pie-chart-legend"},react.createElement(Legend_StyledList,null,data.map((function(_ref3){var id=_ref3.id,name=_ref3.name,value=_ref3.value,link=_ref3.link,colour=_ref3.colour;return react.createElement(Legend_StyledListItem,{key:name,colour,"data-test":"pie-chart-legend-".concat(name)},value?react.createElement(govuk_react_esm.N_,{href:link},id):id," (",value,")")}))))};Legend.propTypes={data:prop_types_default().arrayOf(prop_types_default().shape({name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string,colour:prop_types_default().string})).isRequired};const PieChart_Legend=Legend;Legend.__docgenInfo={description:"",methods:[],displayName:"Legend",props:{data:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!0}}};var StyledFigure=(0,styled_components_browser_esm.Ay)("figure")({border:"1px solid ".concat(colours.pA)}),StyledPieContainer=(0,styled_components_browser_esm.Ay)("div")((function(_ref){var height=_ref.height;return{paddingTop:govuk_react_constants_esm.Es.SCALE_3,height:"".concat(height,"px")}})),centredText=function centredText(text,fontSize,x,y){return react.createElement("text",{x,y,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"".concat(fontSize,"px"),fontWeight:govuk_react_constants_esm.sO.bold}},text)},PieChart=function PieChart(_ref2){var data=_ref2.data,_ref2$unit=_ref2.unit,unit=void 0===_ref2$unit?"":_ref2$unit,height=_ref2.height;return react.createElement(StyledFigure,null,react.createElement(StyledPieContainer,{height,"data-test":"pie-chart"},react.createElement(nivo_pie_es.fO,{theme:{fontSize:"16px"},data,colors:function colors(item){return item.data.colour},margin:{top:20,bottom:20},startAngle:-90,innerRadius:.75,padAngle:0,enableArcLabels:!1,isInteractive:!1,layers:["arcs",function CentredProjectTotal(_ref3){var dataWithArc=_ref3.dataWithArc,centerX=_ref3.centerX,centerY=_ref3.centerY,total=dataWithArc.reduce((function(accumulator,datum){return accumulator+datum.value}),0);return react.createElement(react.Fragment,null,centredText(total,60,centerX,centerY-20),centredText(pluralize_default()(unit,total),20,centerX,centerY+30))}]})),react.createElement(PieChart_Legend,{data}))};PieChart.propTypes={data:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string})).isRequired,height:prop_types_default().number,unit:prop_types_default().string};const components_PieChart=PieChart;PieChart.__docgenInfo={description:"",methods:[],displayName:"PieChart",props:{unit:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},data:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1}}}},required:!0},height:{description:"",type:{name:"number"},required:!1}}};var PersonalisedDashboard_state=__webpack_require__("./src/client/components/PersonalisedDashboard/state.js");function InvestmentProjectSummary_typeof(o){return InvestmentProjectSummary_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},InvestmentProjectSummary_typeof(o)}var InvestmentProjectSummary_excluded=["label","value"];function InvestmentProjectSummary_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 InvestmentProjectSummary_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?InvestmentProjectSummary_ownKeys(Object(t),!0).forEach((function(r){InvestmentProjectSummary_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):InvestmentProjectSummary_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function InvestmentProjectSummary_defineProperty(e,r,t){return(r=function InvestmentProjectSummary_toPropertyKey(t){var i=function InvestmentProjectSummary_toPrimitive(t,r){if("object"!=InvestmentProjectSummary_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InvestmentProjectSummary_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InvestmentProjectSummary_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var segmentColours=[colours.hr,colours.hN,colours.ft,colours.Iz,colours.AV],InvestmentProjectSummary=function InvestmentProjectSummary(_ref2){var _ref2$summary=_ref2.summary,summary=void 0===_ref2$summary?[]:_ref2$summary;return react.createElement(components_PieChart,{unit:"Project",height:290,data:summary})};InvestmentProjectSummary.propTypes={summary:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,value:prop_types_default().number.isRequired,link:prop_types_default().string,colour:prop_types_default().string})).isRequired};const MyInvestmentProjects_InvestmentProjectSummary=(0,react_redux.connect)((function state2props(state){var unfilteredSummary=state[PersonalisedDashboard_state.ID].summary,projectsSummary=state[MyInvestmentProjects_state.ID].summary;return{summary:(projectsSummary.length?projectsSummary:unfilteredSummary).map((function(_ref,index){var label=_ref.label,value=_ref.value;return InvestmentProjectSummary_objectSpread(InvestmentProjectSummary_objectSpread({},function InvestmentProjectSummary_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentProjectSummary_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentProjectSummary_excluded)),{},{colour:segmentColours[index%segmentColours.length],value,id:label})}))}}))(InvestmentProjectSummary);function MyInvestmentProjects_typeof(o){return MyInvestmentProjects_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_typeof(o)}var MyInvestmentProjects_templateObject,MyInvestmentProjects_templateObject2;function MyInvestmentProjects_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}InvestmentProjectSummary.__docgenInfo={description:"",methods:[],displayName:"InvestmentProjectSummary",props:{summary:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},value:{name:"number",required:!0},link:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!1}}};var MyInvestmentProjects_StyledHeader=(0,styled_components_browser_esm.Ay)("header")(function MyInvestmentProjects_defineProperty(e,r,t){return(r=function MyInvestmentProjects_toPropertyKey(t){var i=function MyInvestmentProjects_toPrimitive(t,r){if("object"!=MyInvestmentProjects_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=MyInvestmentProjects_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==MyInvestmentProjects_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},govuk_react_constants_esm.qs.DESKTOP,{display:"flex",flexWrap:"wrap",margin:"-".concat(govuk_react_constants_esm.Es.SCALE_1," -").concat(govuk_react_constants_esm.Es.SCALE_2)})),MyInvestmentProjects_StyledParagraph=(0,styled_components_browser_esm.Ay)(govuk_react_esm.fz)(MyInvestmentProjects_templateObject||(MyInvestmentProjects_templateObject=MyInvestmentProjects_taggedTemplateLiteral(["\n  margin-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),StyledListContainer=(0,styled_components_browser_esm.Ay)("div")(MyInvestmentProjects_templateObject2||(MyInvestmentProjects_templateObject2=MyInvestmentProjects_taggedTemplateLiteral(["\n  border-top: 1px solid ",";\n  margin-top: ",";\n"])),colours.pA,govuk_react_constants_esm.Es.SCALE_3),StyledCol=(0,styled_components_browser_esm.Ay)(govuk_react_esm.bn)((function(){return{paddingBottom:govuk_react_constants_esm.Es.SCALE_3}})),MyInvestmentProjects=function MyInvestmentProjects(_ref){var results=_ref.results,count=_ref.count,itemsPerPage=_ref.itemsPerPage,page=_ref.page,stage=_ref.stage,status=_ref.status,landDateOptions=_ref.landDateOptions,landDate=_ref.landDate,sort=_ref.sort,onLoad=_ref.onLoad,onSortChange=_ref.onSortChange,onStageChange=_ref.onStageChange,onStatusChange=_ref.onStatusChange,onLandDateChange=_ref.onLandDateChange,onPaginationClick=_ref.onPaginationClick,adviser=(_ref.onShowDetailsChange,_ref.adviser),showDetails=_ref.showDetails;return(0,react.useEffect)((function(){onLoad()}),[]),react.createElement(react.Fragment,null,react.createElement(govuk_react_esm.TW,null,react.createElement(StyledCol,{setWidth:"one-third"},react.createElement(MyInvestmentProjects_InvestmentProjectSummary,{adviser})),react.createElement(govuk_react_esm.bn,null,react.createElement("article",null,react.createElement(MyInvestmentProjects_StyledHeader,null,!1,react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-stage-label",input:{id:"my-projects-stage-select"},"data-test":"stage-select",label:"Stage",options:STAGE_OPTIONS,initialValue:stage,onChange:function onChange(event){return onStageChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-status-label",input:{id:"my-projects-status-select"},"data-test":"status-select",label:"Status",options:PROJECT_STATUS_OPTIONS,initialValue:status,onChange:function onChange(event){return onStatusChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-land-date-label",input:{id:"my-projects-land-date-select"},"data-test":"land-date-select",label:"Land date",options:landDateOptions,initialValue:landDate,onChange:function onChange(event){return onLandDateChange(event.target.value)}}),react.createElement(MyInvestmentProjects_InvestmentListSelect,{id:"my-projects-sort-label",input:{id:"my-projects-sort-select"},"data-test":"sort-select",label:"Sort",options:SORT_OPTIONS,initialValue:sort,onChange:function onChange(event){return onSortChange(event.target.value)}})),react.createElement(StyledListContainer,null,react.createElement(Task.A.Status,{name:MyInvestmentProjects_state.c,id:MyInvestmentProjects_state.ID,progressMessage:"Loading your investment projects",startOnRender:{payload:{adviser,page,stage,status,landDate,sort},onSuccessDispatch:actions.yQE}},(function(){var totalPages=Math.ceil(count/itemsPerPage);return react.createElement(react.Fragment,null,results.length?react.createElement(react.Fragment,null,react.createElement(MyInvestmentProjects_InvestmentList,{"data-test":"my-investment-projects-list",items:results,isPaginated:totalPages>1,showDetails}),react.createElement(Pagination.A,{totalPages,activePage:page,onPageClick:onPaginationClick})):react.createElement(MyInvestmentProjects_StyledParagraph,null,"No investment projects"))})))))))};MyInvestmentProjects.propTypes={results:prop_types_default().array.isRequired,count:prop_types_default().number.isRequired,itemsPerPage:prop_types_default().number.isRequired,page:prop_types_default().number.isRequired,onStageChange:prop_types_default().func.isRequired,onStatusChange:prop_types_default().func.isRequired,onLandDateChange:prop_types_default().func.isRequired,onSortChange:prop_types_default().func.isRequired,onPaginationClick:prop_types_default().func.isRequired,onShowDetailsChange:prop_types_default().func.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired,showDetails:prop_types_default().bool.isRequired};const components_MyInvestmentProjects=(0,react_redux.connect)(MyInvestmentProjects_state.o,(function(dispatch){return{onLoad:function onLoad(){dispatch({type:actions.GD3})},onShowDetailsChange:function onShowDetailsChange(showDetails){dispatch({type:actions.rNT,showDetails})},onStageChange:function onStageChange(stage){dispatch({type:actions.L_p,stage,page:1}),dispatch({type:actions.CuW,stage,page:1})},onStatusChange:function onStatusChange(status){dispatch({type:actions.ttR,status,page:1}),dispatch({type:actions.CuW,status,page:1})},onLandDateChange:function onLandDateChange(landDate){dispatch({type:actions.JlV,landDate,page:1}),dispatch({type:actions.CuW,landDate,page:1})},onSortChange:function onSortChange(sort){dispatch({type:actions.N84,sort,page:1}),dispatch({type:actions.CuW,sort,page:1})},onPaginationClick:function onPaginationClick(page){dispatch({type:actions.Fd_,page}),dispatch({type:actions.CuW,page})}}}))(MyInvestmentProjects);MyInvestmentProjects.__docgenInfo={description:"",methods:[],displayName:"MyInvestmentProjects",props:{results:{description:"",type:{name:"array"},required:!0},count:{description:"",type:{name:"number"},required:!0},itemsPerPage:{description:"",type:{name:"number"},required:!0},page:{description:"",type:{name:"number"},required:!0},onStageChange:{description:"",type:{name:"func"},required:!0},onStatusChange:{description:"",type:{name:"func"},required:!0},onLandDateChange:{description:"",type:{name:"func"},required:!0},onSortChange:{description:"",type:{name:"func"},required:!0},onPaginationClick:{description:"",type:{name:"func"},required:!0},onShowDetailsChange:{description:"",type:{name:"func"},required:!0},adviser:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0},showDetails:{description:"",type:{name:"bool"},required:!0}}};var ExportPipeline_constants=__webpack_require__("./src/client/modules/ExportPipeline/constants.js"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx");function ResultItem_typeof(o){return ResultItem_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},ResultItem_typeof(o)}function ResultItem_slicedToArray(r,e){return function ResultItem_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function ResultItem_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 ResultItem_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ResultItem_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)?ResultItem_arrayLikeToArray(r,a):void 0}}(r,e)||function ResultItem_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 ResultItem_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ResultItem_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 ResultItem_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ResultItem_ownKeys(Object(t),!0).forEach((function(r){ResultItem_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ResultItem_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ResultItem_defineProperty(e,r,t){return(r=function ResultItem_toPropertyKey(t){var i=function ResultItem_toPrimitive(t,r){if("object"!=ResultItem_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ResultItem_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ResultItem_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ResultItem_ListItem=(0,styled_components_browser_esm.Ay)("li")(ResultItem_defineProperty(ResultItem_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_4,borderBottom:"1px solid ".concat(colours.pA)},"&:first-child",{paddingTop:0}),"&:last-child",{borderBottom:"none"})),TagContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexWrap:"wrap",justifyContent:"space-between"}),LinkContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexDirection:"column"}),ResultItem_StyledHeader=(0,styled_components_browser_esm.Ay)("h3")({marginBottom:5,marginTop:govuk_react_constants_esm.Es.SCALE_4,fontSize:govuk_react_constants_esm.SG.SIZE_19,fontWeight:govuk_react_constants_esm.sO.bold}),ResultItem_StyledDL=(0,styled_components_browser_esm.Ay)("dl")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),ResultItem_lineHeightMixin={lineHeight:"1.5"},ResultItem_StyledDT=(0,styled_components_browser_esm.Ay)("dt")(ResultItem_objectSpread({color:colours.hM,float:"left",clear:"left",marginRight:"5px"},ResultItem_lineHeightMixin)),ResultItem_StyledDD=(0,styled_components_browser_esm.Ay)("dd")(ResultItem_objectSpread({color:colours.Uv},ResultItem_lineHeightMixin)),DashboardToggleSection=(0,styled_components_browser_esm.Ay)(ToggleSection.Os)(ResultItem_defineProperty({},BaseToggleSection.ff,{fontSize:govuk_react_constants_esm.SG.SIZE_16})),statusToColourMap={WON:"green",ACTIVE:"blue",INACTIVE:"orange"},EstimatedExport=function EstimatedExport(_ref){var estimated_export_value_amount=_ref.estimated_export_value_amount,estimated_export_value_years=_ref.estimated_export_value_years;return estimated_export_value_amount&&estimated_export_value_years?react.createElement(react.Fragment,null,(0,number_utils.Dv)(estimated_export_value_amount)," ",react.createElement("span",null,"(",estimated_export_value_years.name,")")):estimated_export_value_amount?react.createElement(react.Fragment,null,(0,number_utils.Dv)(estimated_export_value_amount)):estimated_export_value_years?react.createElement(react.Fragment,null,estimated_export_value_years.name):react.createElement("span",null,"Not set")},ResultItem=function ResultItem(item){var _useState2=ResultItem_slicedToArray((0,react.useState)("Show"),2),toggleLabel=_useState2[0],setToggleLabel=_useState2[1],status=item.status.toUpperCase(),exportPotential=item.export_potential.toUpperCase();return react.createElement(ResultItem_ListItem,{key:item.id,"data-test":"export-item"},react.createElement(TagContainer,null,react.createElement(Tag.A,{colour:"grey"},"".concat(exportPotential," POTENTIAL")),react.createElement(Tag.A,{colour:statusToColourMap[status]},status)),react.createElement(LinkContainer,null,react.createElement(ResultItem_StyledHeader,null,react.createElement("a",{href:"/companies/".concat(item.company.id,"/overview")},item.company.name)),react.createElement("a",{href:"/export/".concat(item.id,"/details")},item.title)),react.createElement(DashboardToggleSection,{onOpen:function onOpen(open){return setToggleLabel(open?"Hide":"Show")},label:toggleLabel,id:"".concat(item.id,"_toggle")},react.createElement(ResultItem_StyledDL,{"data-test":"export-details"},react.createElement(ResultItem_StyledDT,null,"Destination:"),react.createElement(ResultItem_StyledDD,null,(0,lodash.get)(item,"destination_country.name","Not set")),react.createElement(ResultItem_StyledDT,null,"Total estimated export value:"),react.createElement(ResultItem_StyledDD,null,react.createElement(EstimatedExport,{estimated_export_value_amount:item.estimated_export_value_amount,estimated_export_value_years:item.estimated_export_value_years})),react.createElement(ResultItem_StyledDT,null,"Estimated date for win:"),react.createElement(ResultItem_StyledDD,null,item.estimated_win_date?(0,date.formatShortDate)(item.estimated_win_date):"Not set"),react.createElement(ResultItem_StyledDT,null,"Main sector:"),react.createElement(ResultItem_StyledDD,null,(0,lodash.get)(item,"sector.name","Not set")),react.createElement(ResultItem_StyledDT,null,"Owner:"),react.createElement(ResultItem_StyledDD,null,item.owner.name),react.createElement(ResultItem_StyledDT,null,"Created on:"),react.createElement(ResultItem_StyledDD,null,(0,date.formatMediumDateTime)(item.created_on)))))},shape=prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired;ResultItem.propTypes={item:prop_types_default().shape({id:prop_types_default().string.isRequired,company:shape,owner:shape,destination_country:shape,sector:shape,estimated_export_value_years:shape,created_on:prop_types_default().string.isRequired,estimated_export_value_amount:prop_types_default().string.isRequired,estimated_win_date:prop_types_default().string.isRequired,export_potential:prop_types_default().string.isRequired,status:prop_types_default().string.isRequired})};const ExportList_ResultItem=ResultItem;ResultItem.__docgenInfo={description:"",methods:[],displayName:"ResultItem",props:{item:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},company:{name:"custom",raw:"shape",required:!1},owner:{name:"custom",raw:"shape",required:!1},destination_country:{name:"custom",raw:"shape",required:!1},sector:{name:"custom",raw:"shape",required:!1},estimated_export_value_years:{name:"custom",raw:"shape",required:!1},created_on:{name:"string",required:!0},estimated_export_value_amount:{name:"string",required:!0},estimated_win_date:{name:"string",required:!0},export_potential:{name:"string",required:!0},status:{name:"string",required:!0}}},required:!1}}};const components_HR=styled_components_browser_esm.Ay.hr({borderTop:"1px solid ".concat(colours.Pe),margin:0,background:"none"});function ExportSelect_typeof(o){return ExportSelect_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},ExportSelect_typeof(o)}function ExportSelect_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 ExportSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportSelect_ownKeys(Object(t),!0).forEach((function(r){ExportSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportSelect_defineProperty(e,r,t){return(r=function ExportSelect_toPropertyKey(t){var i=function ExportSelect_toPrimitive(t,r){if("object"!=ExportSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ExportSelect_slicedToArray(r,e){return function ExportSelect_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function ExportSelect_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 ExportSelect_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ExportSelect_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)?ExportSelect_arrayLikeToArray(r,a):void 0}}(r,e)||function ExportSelect_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 ExportSelect_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var ExportSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_esm.l6)({select:{width:"100%"}}),ExportSelect=function ExportSelect(_ref){var label=_ref.label,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,qsParam=_ref.qsParam,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_useState2=ExportSelect_slicedToArray((0,react.useState)(),2),value=_useState2[0],setValue=_useState2[1],qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParam,"");(0,react.useEffect)((function(){return setValue(initialValue)}),[initialValue]);return react.createElement(ExportSelect_StyledSelect,{label,"data-test":(0,lodash.kebabCase)("".concat(qsParam,"-select")),input:{onChange:function onChange(e){setValue(e.target.value),function onChange(e){navigate({search:lib_default().stringify(ExportSelect_objectSpread(ExportSelect_objectSpread({},qsParams),{},ExportSelect_defineProperty(ExportSelect_defineProperty({},qsParam,e.target.value),"page",1)))})}(e)},value}},options.map((function(_ref2,index){var value=_ref2.value,label=_ref2.label;return react.createElement("option",{value,"aria-label":label,key:index,id:(0,lodash.kebabCase)(label)},label)})))};const ExportList_ExportSelect=ExportSelect;function RoutedDateField_typeof(o){return RoutedDateField_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},RoutedDateField_typeof(o)}ExportSelect.__docgenInfo={description:"",methods:[],displayName:"ExportSelect",props:{options:{defaultValue:{value:"[]",computed:!1},required:!1}}};var RoutedDateField_excluded=["qsParamName"];function RoutedDateField_extends(){return RoutedDateField_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedDateField_extends.apply(null,arguments)}function RoutedDateField_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 RoutedDateField_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?RoutedDateField_ownKeys(Object(t),!0).forEach((function(r){RoutedDateField_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RoutedDateField_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function RoutedDateField_defineProperty(e,r,t){return(r=function RoutedDateField_toPropertyKey(t){var i=function RoutedDateField_toPrimitive(t,r){if("object"!=RoutedDateField_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedDateField_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedDateField_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var RoutedDateField=function RoutedDateField(_ref){var qsParamName=_ref.qsParamName,props=function RoutedDateField_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedDateField_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,RoutedDateField_excluded),location=(0,dist.zy)(),navigate=(0,dist.Zp)(),qsParams=lib_default().parse(location.search.slice(1));return react.createElement(DateField.A,RoutedDateField_extends({},props,{onChange:function onChange(e){navigate({search:lib_default().stringify(RoutedDateField_objectSpread(RoutedDateField_objectSpread({},qsParams),{},RoutedDateField_defineProperty(RoutedDateField_defineProperty({},qsParamName,e.target.value),"page",1)))})},initialValue:(0,lodash.get)(qsParams,qsParamName,"")}))};const components_RoutedDateField=RoutedDateField;RoutedDateField.__docgenInfo={description:"",methods:[],displayName:"RoutedDateField"};const ExportDate=(0,styled_components_browser_esm.Ay)(components_RoutedDateField)({paddingBottom:0,marginBottom:0,label:{paddingBottom:2},input:{width:"100%",maxHeight:38}});var Countries=__webpack_require__("./src/client/components/Resource/Countries.js"),Sector=__webpack_require__("./src/client/components/Resource/Sector.js");const ExportOwner=(0,Resource.AU)("ExportOwner",(function(){return"v4/export/owner"}));var ResourceOptionsField=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),ExportList_state=__webpack_require__("./src/client/modules/ExportPipeline/ExportList/state.js");function ExportList_typeof(o){return ExportList_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},ExportList_typeof(o)}function ExportList_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 ExportList_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ExportList_ownKeys(Object(t),!0).forEach((function(r){ExportList_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ExportList_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ExportList_toConsumableArray(r){return function ExportList_arrayWithoutHoles(r){if(Array.isArray(r))return ExportList_arrayLikeToArray(r)}(r)||function ExportList_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function ExportList_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return ExportList_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)?ExportList_arrayLikeToArray(r,a):void 0}}(r)||function ExportList_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 ExportList_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function ExportList_defineProperty(e,r,t){return(r=function ExportList_toPropertyKey(t){var i=function ExportList_toPrimitive(t,r){if("object"!=ExportList_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=ExportList_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ExportList_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ExportList_StyledHeader=(0,styled_components_browser_esm.Ay)(govuk_react_esm.H2)({marginTop:0,fontWeight:"normal",fontSize:govuk_react_constants_esm.iU.MEDIUM,marginBottom:0}),ExportList_StyledResultCount=(0,styled_components_browser_esm.Ay)("span")({fontSize:36,fontWeight:600,lineHeight:1}),StyledContent=styled_components_browser_esm.Ay.div({display:"flex",flexDirection:"column",rowGap:govuk_react_constants_esm.SG.SIZE_20}),FiltersContainer=(0,styled_components_browser_esm.Ay)("div")(ExportList_defineProperty(ExportList_defineProperty({display:"grid",rowGap:15},govuk_react_constants_esm.qs.TABLET,{columnGap:2,gridTemplateColumns:"50% 50%"}),govuk_react_constants_esm.qs.DESKTOP,{gridTemplateColumns:"25% 25% 25% 25%"})),HeaderContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexWrap:"wrap",justifyContent:"space-between",borderBottom:"1px solid ".concat(colours.pA),paddingBottom:10,marginTop:30}),ExportList_LinkContainer=(0,styled_components_browser_esm.Ay)("div")({display:"flex",flexDirection:"column",padding:5,alignItems:"end",gap:10}),ExportList_StyledButtonLink=(0,styled_components_browser_esm.Ay)(ButtonLink.A)({marginBottom:0,border:0,padding:0}),ListContainer=(0,styled_components_browser_esm.Ay)("div")({marginTop:20}),ExportWinsLink=function ExportWinsLink(){return react.createElement(govuk_react_esm.$n,{as:"a",href:"/exportwins"},"View export wins")},HRWithMargin=(0,styled_components_browser_esm.Ay)(components_HR)({marginBottom:20}),resultToOptions=function resultToOptions(result){return[ExportPipeline_constants.sl].concat(ExportList_toConsumableArray(result.map((function(country){return{label:country.name,value:country.id}}))))},ExportList=function ExportList(_ref){var count=_ref.count,results=_ref.results,itemsPerPage=_ref.itemsPerPage,maxItemsToPaginate=_ref.maxItemsToPaginate,payload=_ref.payload,filters=_ref.filters,navigate=(0,dist.Zp)(),maxItems=Math.min(count,maxItemsToPaginate),totalPages=Math.ceil(maxItems/itemsPerPage),hasZeroExports=!filters.areActive&&0===count;return react.createElement(react.Fragment,null,react.createElement(FiltersContainer,null,react.createElement(ExportList_ExportSelect,{label:"Status",qsParam:"status",options:filters.status.options}),react.createElement(ExportList_ExportSelect,{label:"Export Potential",qsParam:"export_potential",options:filters.exportPotential.options}),react.createElement(ResourceOptionsField.A,{id:"sector",qsParam:"sector",label:"Sector",payload:{level__lte:"2"},resource:Sector.A,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ResourceOptionsField.A,{id:"country",qsParam:"destination_country",label:"Country",resource:Countries.A,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ExportDate,{type:"month",boldLabel:!1,label:"Win from",name:"estimated_win_date_after",qsParamName:"estimated_win_date_after","data-test":"estimated-win-date-after"}),react.createElement(ExportDate,{type:"month",boldLabel:!1,label:"Win to",name:"estimated_win_date_before",qsParamName:"estimated_win_date_before","data-test":"estimated-win-date-before"}),react.createElement(ResourceOptionsField.A,{id:"owner",qsParam:"owner",label:"Owner",resource:ExportOwner,field:ExportList_ExportSelect,resultToOptions}),react.createElement(ExportList_ExportSelect,{qsParam:"sortby",label:"Sort by",options:filters.sortby.options})),react.createElement(HeaderContainer,{role:"status"},react.createElement(ExportList_StyledHeader,null,react.createElement(ExportList_StyledResultCount,{"data-test":"collectionCount"},count)," ","Exports"),filters.areActive&&react.createElement(ExportList_LinkContainer,null,react.createElement(ExportList_StyledButtonLink,{onClick:function onClearAll(){navigate({search:lib_default().stringify({page:1})})},"data-test":"clear-filters"},"Remove all filters"))),react.createElement(Task.A.Status,{name:ExportList_state.e,id:ExportList_state.ID,progressMessage:"loading export pipeline list",startOnRender:{payload,onSuccessDispatch:actions._kX}},(function(){return react.createElement(react.Fragment,null,hasZeroExports?react.createElement("div",{"data-test":"no-export-items"},react.createElement(ContentWithHeading.A,{"data-test":"no-export-items",heading:"You have no exports"},react.createElement(StyledContent,null,react.createElement("div",null,"Here you can create an export project to track a company's export progress. These will appear on your home page, so you keep track of your exports in one place."),react.createElement("span",null,"To add an export:"),react.createElement("div",null,react.createElement(govuk_react_esm.Xy,{listStyleType:"bullet"},react.createElement(govuk_react_esm.ck,null,"go to the company page"),react.createElement(govuk_react_esm.ck,null,"select 'Add export project' button")))),react.createElement(ExportWinsLink,null))):react.createElement(ListContainer,null,react.createElement(ExportWinsLink,null),react.createElement(HRWithMargin,null),react.createElement("ul",null,results.map((function(result){return react.createElement(ExportList_ResultItem,result)}))),react.createElement(Pagination.A,{totalPages,activePage:payload.page,onPageClick:function onPageClick(page,e){e.preventDefault(),navigate({search:lib_default().stringify(ExportList_objectSpread(ExportList_objectSpread({},payload),{},{page}))})}})))})))};ExportList.propTypes={count:prop_types_default().number,results:prop_types_default().array,itemsPerPage:prop_types_default().number,maxItemsToPaginate:prop_types_default().number};const ExportPipeline_ExportList=(0,react_redux.connect)(ExportList_state.o)(ExportList);ExportList.__docgenInfo={description:"",methods:[],displayName:"ExportList",props:{count:{description:"",type:{name:"number"},required:!1},results:{description:"",type:{name:"array"},required:!1},itemsPerPage:{description:"",type:{name:"number"},required:!1},maxItemsToPaginate:{description:"",type:{name:"number"},required:!1}}};var MyTasksTable_templateObject,my_tasks_state=__webpack_require__("./src/client/components/Dashboard/my-tasks/state.js"),TaskForm_constants=__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");var StyledTableCellHeader=(0,styled_components_browser_esm.Ay)(govuk_react_esm.XI.CellHeader)(MyTasksTable_templateObject||(MyTasksTable_templateObject=function MyTasksTable_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding-top: 0px;\n"]))),header=react.createElement(govuk_react_esm.XI.Row,null,react.createElement(StyledTableCellHeader,null,"Date due"),react.createElement(StyledTableCellHeader,null,"Task title"),react.createElement(StyledTableCellHeader,null,"Company name"),react.createElement(StyledTableCellHeader,null,"Project"),react.createElement(StyledTableCellHeader,null,"Assigned to"),react.createElement(StyledTableCellHeader,null,"Status")),rows=function rows(_ref){return _ref.results.map((function(task,index){var _task$company,_task$investment_proj;return react.createElement(govuk_react_esm.XI.Row,{key:"task_row_".concat(index),"data-test":"task-item"},react.createElement(govuk_react_esm.XI.Cell,{setWidth:"12%"},(0,date.formatMediumDate)(task.due_date)),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"23%"},react.createElement(govuk_react_esm.N_,{href:urls_default().tasks.details(task.id),"data-test":"".concat(task.id,"-task-link")},task.title)),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"20%"},null===(_task$company=task.company)||void 0===_task$company?void 0:_task$company.name),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"20%"},null===(_task$investment_proj=task.investment_project)||void 0===_task$investment_proj?void 0:_task$investment_proj.name),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"15%"},react.createElement("ul",null,function transformAdvisersListItem(advisers){return advisers.map((function(adviser,index){return react.createElement("li",{key:"task_adviser_".concat(index)},null==adviser?void 0:adviser.name)}))}(task.advisers))),react.createElement(govuk_react_esm.XI.Cell,{setWidth:"10%"},task.archived?"Deleted":task.status==TaskForm_constants.X.COMPLETED?"Completed":"Active"))}))},MyTasksTable=function MyTasksTable(_ref2){var myTasks=_ref2.myTasks;return react.createElement(govuk_react_esm.XI,{head:header,"data-test":"my-tasks-table"},rows(myTasks))};const my_tasks_MyTasksTable=MyTasksTable;function TaskListSelect_typeof(o){return TaskListSelect_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},TaskListSelect_typeof(o)}function TaskListSelect_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 TaskListSelect_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?TaskListSelect_ownKeys(Object(t),!0).forEach((function(r){TaskListSelect_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TaskListSelect_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function TaskListSelect_defineProperty(e,r,t){return(r=function TaskListSelect_toPropertyKey(t){var i=function TaskListSelect_toPrimitive(t,r){if("object"!=TaskListSelect_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=TaskListSelect_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==TaskListSelect_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function TaskListSelect_slicedToArray(r,e){return function TaskListSelect_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function TaskListSelect_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 TaskListSelect_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return TaskListSelect_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)?TaskListSelect_arrayLikeToArray(r,a):void 0}}(r,e)||function TaskListSelect_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 TaskListSelect_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}MyTasksTable.__docgenInfo={description:"",methods:[],displayName:"MyTasksTable"};var TaskListSelect_StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_esm.l6)({select:{width:"100%"},span:{fontWeight:govuk_react_constants_esm.sO.bold,fontSize:govuk_react_constants_esm.SG.SIZE_16}}),TaskSelect=function TaskSelect(_ref){var label=_ref.label,_ref$options=_ref.options,options=void 0===_ref$options?[]:_ref$options,qsParam=_ref.qsParam,navigate=(0,dist.Zp)(),location=(0,dist.zy)(),_useState2=TaskListSelect_slicedToArray((0,react.useState)(),2),value=_useState2[0],setValue=_useState2[1],qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParam,"");(0,react.useEffect)((function(){return setValue(initialValue)}),[initialValue]);return react.createElement(TaskListSelect_StyledSelect,{label,"data-test":(0,lodash.kebabCase)("".concat(qsParam,"-select")),input:{onChange:function onChange(e){setValue(e.target.value),function onChange(e){navigate({search:lib_default().stringify(TaskListSelect_objectSpread(TaskListSelect_objectSpread({},qsParams),{},TaskListSelect_defineProperty(TaskListSelect_defineProperty({},qsParam,e.target.value),"page",1)))})}(e)},value}},options.map((function(_ref2,index){var value=_ref2.value,label=_ref2.label;return react.createElement("option",{value,"aria-label":label,key:index,id:(0,lodash.kebabCase)(label)},label)})))};const TaskListSelect=TaskSelect;TaskSelect.__docgenInfo={description:"",methods:[],displayName:"TaskSelect",props:{options:{defaultValue:{value:"[]",computed:!1},required:!1}}};var my_tasks_constants=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js");function transformers_toConsumableArray(r){return function transformers_arrayWithoutHoles(r){if(Array.isArray(r))return transformers_arrayLikeToArray(r)}(r)||function transformers_iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function transformers_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return transformers_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)?transformers_arrayLikeToArray(r,a):void 0}}(r)||function transformers_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 transformers_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var MyTasks_templateObject,companyAndProjectOptions=function companyAndProjectOptions(options){return[my_tasks_constants.sl].concat(transformers_toConsumableArray((0,client_transformers.ce)(options)))};var MyTasks_FiltersContainer=styled_components_browser_esm.Ay.div(MyTasks_templateObject||(MyTasks_templateObject=function MyTasks_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  display: grid;\n  row-gap: 15px;\n  column-gap: 2px;\n  margin-bottom: ",";\n\n  grid-template-columns: repeat(5, ",") 3.5% ",";\n  @media (max-width: ",") {\n    grid-template-columns: repeat(2, 50%);\n    span.task-select-spacer {\n      display: none;\n    }\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,"16%","16%",govuk_react_constants_esm.DJ),MyTasksContent=function MyTasksContent(_ref){var myTasks=_ref.myTasks;return react.createElement(react.Fragment,null,react.createElement(SpacedSectionBreak.A,null),react.createElement(ContentWithHeading.A,{heading:"".concat(null==myTasks?void 0:myTasks.count," ").concat(1==(null==myTasks?void 0:myTasks.count)?"task":"tasks"),headingActions:react.createElement(govuk_react_esm.$n,{buttonColour:colours.ft,href:urls_default().tasks.create(),as:"a","data-test":"add-task"},"Add task"),"data-test":"my-tasks-heading"},null!=myTasks&&myTasks.count?react.createElement(my_tasks_MyTasksTable,{myTasks}):react.createElement(govuk_react_esm.XY,null,"You do not have any tasks at this time.")))},MyTasks=function MyTasks(_ref2){var myTasks=_ref2.myTasks,filters=_ref2.filters,payload=_ref2.payload;return react.createElement(react.Fragment,null,react.createElement(components_Resource._n,null,(function(_ref3){var _filters$status,_filters$assignedTo,_filters$createdBy,_filters$sortby,companies=_ref3.companies,projects=_ref3.projects;return react.createElement(MyTasks_FiltersContainer,null,react.createElement(TaskListSelect,{label:"Status",qsParam:"status",options:null==filters||null===(_filters$status=filters.status)||void 0===_filters$status?void 0:_filters$status.options}),react.createElement(TaskListSelect,{label:"Assigned to",qsParam:"assigned_to",options:null==filters||null===(_filters$assignedTo=filters.assignedTo)||void 0===_filters$assignedTo?void 0:_filters$assignedTo.options}),react.createElement(TaskListSelect,{label:"Created by",qsParam:"created_by",options:null==filters||null===(_filters$createdBy=filters.createdBy)||void 0===_filters$createdBy?void 0:_filters$createdBy.options}),react.createElement(TaskListSelect,{label:"Company",qsParam:"company",options:companyAndProjectOptions(companies)}),react.createElement(TaskListSelect,{label:"Project",qsParam:"project",options:companyAndProjectOptions(projects)}),react.createElement("span",{className:"task-select-spacer",id:"task-select-spacer"}),react.createElement(TaskListSelect,{label:"Sort by",qsParam:"sortby",options:null==filters||null===(_filters$sortby=filters.sortby)||void 0===_filters$sortby?void 0:_filters$sortby.options}))})),react.createElement(Task.A.Status,{name:my_tasks_state.L,id:my_tasks_state.ID,progressMessage:"Loading your tasks",startOnRender:{payload,onSuccessDispatch:actions.SJe}},(function(){return react.createElement(MyTasksContent,{myTasks})})))};const my_tasks_MyTasks=(0,react_redux.connect)(my_tasks_state.o)(MyTasks);MyTasksContent.__docgenInfo={description:"",methods:[],displayName:"MyTasksContent"},MyTasks.__docgenInfo={description:"",methods:[],displayName:"MyTasks"};var TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx"),ReferralList=__webpack_require__("./src/client/components/ReferralList/index.jsx");const img_tasks_namespaceObject=__webpack_require__.p+"static/media/img-tasks.42f82b5e.jpg";var NoTasks_templateObject,NoTasks_templateObject2,NoTasks_templateObject3;function NoTasks_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var NoTasks_StyledContainer=(0,styled_components_browser_esm.Ay)("div")(NoTasks_templateObject||(NoTasks_templateObject=NoTasks_taggedTemplateLiteral(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  "," {\n    margin: 25px 0 50px 0;\n  }\n  "," {\n    margin: 45px 0 95px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.qs.DESKTOP),NoTasks_StyledParagraph=(0,styled_components_browser_esm.Ay)("p")(NoTasks_templateObject2||(NoTasks_templateObject2=NoTasks_taggedTemplateLiteral(["\n  color: ",";\n  "," {\n    margin-bottom: 25px;\n    font-size: ",";\n  }\n"])),colours.hM,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.SG.SIZE_19),NoTasks_StyledImage=(0,styled_components_browser_esm.Ay)("img")(NoTasks_templateObject3||(NoTasks_templateObject3=NoTasks_taggedTemplateLiteral(["\n  display: none;\n  "," {\n    display: block;\n    width: 380px;\n    margin-bottom: ",";\n  }\n  "," {\n    width: 460px;\n    margin: "," 0 35px 0;\n  }\n"])),govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.DESKTOP,govuk_react_constants_esm.Es.SCALE_3),NoTasks=function NoTasks(){return react.createElement(NoTasks_StyledContainer,null,react.createElement(govuk_react_heading_esm.H3,{as:govuk_react_heading_esm.H1},"You don't currently have any tasks"),react.createElement(NoTasks_StyledParagraph,null,"You can create your own tasks or collaborate with colleagues and assign tasks to other users."),react.createElement(govuk_react_button_esm.A,{as:"a",href:urls.tasks.create()},"Add a task"),react.createElement(NoTasks_StyledImage,{src:img_tasks_namespaceObject,alt:"An image of a list of tasks"}))};const my_tasks_NoTasks=NoTasks;function DashboardTabs_typeof(o){return DashboardTabs_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},DashboardTabs_typeof(o)}var DashboardTabs_templateObject;function DashboardTabs_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 DashboardTabs_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?DashboardTabs_ownKeys(Object(t),!0).forEach((function(r){DashboardTabs_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DashboardTabs_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function DashboardTabs_defineProperty(e,r,t){return(r=function DashboardTabs_toPropertyKey(t){var i=function DashboardTabs_toPrimitive(t,r){if("object"!=DashboardTabs_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=DashboardTabs_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==DashboardTabs_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}NoTasks.__docgenInfo={description:"",methods:[],displayName:"NoTasks"};var DashboardTabs_StyledDiv=(0,styled_components_browser_esm.Ay)("div")(DashboardTabs_templateObject||(DashboardTabs_templateObject=function DashboardTabs_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  padding-top: 16px;\n"]))),canViewCompanyLists=function canViewCompanyLists(permissions){return permissions.includes("company_list.view_companylist")},canViewReferrals=function canViewReferrals(permissions){return permissions.includes("company_referral.view_companyreferral")},DashboardTabs=function DashboardTabs(_ref){var id=_ref.id,adviser=_ref.adviser,hasInvestmentProjects=_ref.hasInvestmentProjects,onTabChange=_ref.onTabChange,userPermissions=_ref.userPermissions,hasTasks=_ref.hasTasks;return react.createElement(DashboardTabs_StyledDiv,{"data-test":"dashboard-tabs"},react.createElement(TabNav.A,{id:"".concat(id,".TabNav"),label:"Dashboard",routed:!0,keepQueryParams:!1,onTabChange,tabs:DashboardTabs_objectSpread(DashboardTabs_objectSpread(DashboardTabs_defineProperty({},urls_default().dashboard.myTasks(),{label:"Tasks",content:hasTasks?react.createElement(my_tasks_MyTasks,{adviser}):react.createElement(my_tasks_NoTasks,null)}),canViewCompanyLists(userPermissions)&&DashboardTabs_defineProperty({},urls_default().dashboard.index(),{label:"Company lists",content:react.createElement(CompanyLists,null)})),{},DashboardTabs_defineProperty(DashboardTabs_defineProperty({},urls_default().dashboard.investmentProjects(),{label:"Investment projects",content:hasInvestmentProjects?react.createElement(components_MyInvestmentProjects,{adviser}):react.createElement(MyInvestmentProjects_NoInvestmentProjects,null)}),urls_default().exportPipeline.index(),{label:"Export projects",content:react.createElement(ExportPipeline_ExportList,null)}),canViewReferrals(userPermissions)&&DashboardTabs_defineProperty({},urls_default().companies.referrals.list(),{label:"Referrals",content:react.createElement(ReferralList.A,{id:"ReferralList"})}))}))};DashboardTabs.propTypes={id:prop_types_default().string.isRequired,adviser:prop_types_default().object.isRequired,onTabChange:prop_types_default().func};(0,react_redux.connect)((function state2props(state){return{userPermissions:state.userPermissions}}))(DashboardTabs);DashboardTabs.__docgenInfo={description:"",methods:[],displayName:"DashboardTabs",props:{id:{description:"",type:{name:"string"},required:!0},adviser:{description:"",type:{name:"object"},required:!0},onTabChange:{description:"",type:{name:"func"},required:!1}}};__webpack_require__("./src/client/components/InvestmentReminders/index.jsx");var NotificationAlert_state=__webpack_require__("./src/client/components/NotificationAlert/state.js");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ReminderSummary_templateObject,ReminderSummary_templateObject2,ReminderSummary_templateObject3;(0,lodash.snakeCase)("investments-estimated-land-dates"),urls_default().reminders.investments.estimatedLandDate(),(0,lodash.snakeCase)("investments-no-recent-interactions"),urls_default().reminders.investments.noRecentInteraction(),(0,lodash.snakeCase)("investments-outstanding-propositions"),urls_default().reminders.investments.outstandingPropositions(),(0,lodash.snakeCase)("companies-no-recent-interactions"),urls_default().reminders.exports.noRecentInteractions(),(0,lodash.snakeCase)("companies-new-interactions"),urls_default().reminders.exports.newInteractions(),(0,lodash.snakeCase)("my-tasks-due-date-approaching"),urls_default().reminders.myTasks.dueDateApproaching(),(0,lodash.snakeCase)("my-tasks-task-assigned-to-me-from-others"),urls_default().reminders.myTasks.taskAssignedToMeFromOthers(),(0,lodash.snakeCase)("my-tasks-task-amended-by-others"),urls_default().reminders.myTasks.taskAmendedByOthers(),(0,lodash.snakeCase)("my-tasks-task-overdue"),urls_default().reminders.myTasks.taskOverdue(),(0,lodash.snakeCase)("my-tasks-task-completed"),urls_default().reminders.myTasks.taskCompleted(),constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty({},"investments-estimated-land-dates","Approaching estimated land dates"),"investments-no-recent-interactions","Projects with no recent interactions"),"investments-outstanding-propositions","Outstanding propositions"),"companies-no-recent-interactions","Companies with no recent interactions"),"companies-new-interactions","Companies with new interactions"),"my-tasks-due-date-approaching","Due date approaching"),"my-tasks-task-assigned-to-me-from-others","Task assigned to me from others"),"my-tasks-task-amended-by-others","Task amended by others"),"my-tasks-task-overdue","Task overdue"),"my-tasks-task-completed","Task completed");function ReminderSummary_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledSubHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H5)(ReminderSummary_templateObject||(ReminderSummary_templateObject=ReminderSummary_taggedTemplateLiteral(["\n  font-size: ",";\n  font-weight: ",";\n  margin-top: ",";\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.SG.SIZE_10,govuk_react_constants_esm.sO.bold,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),StyledReminderLink=(0,styled_components_browser_esm.Ay)("a")(ReminderSummary_templateObject2||(ReminderSummary_templateObject2=ReminderSummary_taggedTemplateLiteral(["\n  display: inline;\n  font-size: ",";\n  color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,colours.yV),ReminderSummary_StyledList=(0,styled_components_browser_esm.Ay)("ul")(ReminderSummary_templateObject3||(ReminderSummary_templateObject3=ReminderSummary_taggedTemplateLiteral(["\n  list-style-type: disc;\n  padding: 0 0;\n  margin: "," ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_5),ReminderSummary_StyledListItem=(0,styled_components_browser_esm.Ay)("li")((function(){return{margin:"".concat(govuk_react_constants_esm.Es.SCALE_2," 0")}})),ReminderSummary=function ReminderSummary(_ref){var summary=_ref.summary,hasSummary=!!summary,showInvestment=_ref.hasInvestmentFeatureGroup&&hasSummary,showExport=_ref.hasExportFeatureGroup&&hasSummary;return react.createElement("div",{"data-test":"reminder-summary"},showInvestment&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"investment-heading"},"Investment"),react.createElement(ReminderSummary_StyledList,null,summary.investment.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"investment-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),showExport&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"export-heading"},"Export"),react.createElement(ReminderSummary_StyledList,null,summary.export.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"export-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),hasSummary&&react.createElement(react.Fragment,null,react.createElement(StyledSubHeading,{"data-test":"my-tasks-heading"},"My Tasks"),react.createElement(ReminderSummary_StyledList,null,summary.myTasks.map((function(reminder){return react.createElement(ReminderSummary_StyledListItem,{key:reminder.name,"data-test":"my-tasks-".concat((0,lodash.kebabCase)(reminder.name))},react.createElement(StyledReminderLink,{href:reminder.url},reminder.name)," (",reminder.count,")")})))),react.createElement(StyledReminderLink,{href:urls_default().reminders.settings.index()},"Settings: reminders and email notifications"))},reminderType=prop_types_default().arrayOf(prop_types_default().shape({name:prop_types_default().string.isRequired,url:prop_types_default().string.isRequired,count:prop_types_default().number.isRequired}));ReminderSummary.propTypes={summary:prop_types_default().shape({count:prop_types_default().number,investment:reminderType,export:reminderType,my_tasks:reminderType}),hasExportFeatureGroup:prop_types_default().bool.isRequired,hasInvestmentFeatureGroup:prop_types_default().bool.isRequired};(0,react_redux.connect)((function state2props(state){return{summary:function transformReminderSummary(data){return{count:data.count,investment:[{name:"Approaching estimated land dates",url:urls_default().reminders.investments.estimatedLandDate(),count:data.investment.estimated_land_date},{name:"Projects with no recent interactions",url:urls_default().reminders.investments.noRecentInteraction(),count:data.investment.no_recent_interaction},{name:"Outstanding propositions",url:urls_default().reminders.investments.outstandingPropositions(),count:data.investment.outstanding_propositions}],export:[{name:"Companies with no recent interactions",url:urls_default().reminders.exports.noRecentInteractions(),count:data.export.no_recent_interaction},{name:"Companies with new interactions",url:urls_default().reminders.exports.newInteractions(),count:data.export.new_interaction}],myTasks:[{name:"Due date approaching",url:urls_default().reminders.myTasks.dueDateApproaching(),count:data.my_tasks.due_date_approaching},{name:"Task assigned to me from others",url:urls_default().reminders.myTasks.taskAssignedToMeFromOthers(),count:data.my_tasks.task_assigned_to_me_from_others},{name:"Task amended by others",url:urls_default().reminders.myTasks.taskAmendedByOthers(),count:data.my_tasks.task_amended_by_others},{name:"Task overdue",url:urls_default().reminders.myTasks.taskOverdue(),count:data.my_tasks.task_overdue},{name:"Task completed",url:urls_default().reminders.myTasks.taskCompleted(),count:data.my_tasks.task_completed}]}}(state[NotificationAlert_state.ID]),hasExportFeatureGroup:state.activeFeatureGroups.includes("export-notifications"),hasInvestmentFeatureGroup:state.activeFeatureGroups.includes("investment-notifications")}}))(ReminderSummary);ReminderSummary.__docgenInfo={description:"",methods:[],displayName:"ReminderSummary",props:{summary:{description:"",type:{name:"shape",value:{count:{name:"number",required:!1},investment:{name:"custom",raw:"reminderType",required:!1},export:{name:"custom",raw:"reminderType",required:!1},my_tasks:{name:"custom",raw:"reminderType",required:!1}}},required:!1},hasExportFeatureGroup:{description:"",type:{name:"bool"},required:!0},hasInvestmentFeatureGroup:{description:"",type:{name:"bool"},required:!0}}};var FeedContainer=styled_components_browser_esm.Ay.div({fontSize:govuk_react_constants_esm.SG.SIZE_14,borderTop:"2px solid ".concat(colours.Pe),padding:"".concat(govuk_react_constants_esm.Es.SCALE_4," 0")}),DataHubFeed_Date=(0,styled_components_browser_esm.Ay)("div")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_14}),DataHubFeed=function DataHubFeed(_ref){var items=_ref.items,_ref$feedLimit=_ref.feedLimit,feedLimit=void 0===_ref$feedLimit?5:_ref$feedLimit;return react.createElement(FeedContainer,null,react.createElement(govuk_react_heading_esm.H3,null,'"What\'s new"'),!!items.length&&react.createElement(react.Fragment,null,react.createElement(govuk_react_unordered_list_esm.A,{listStyleType:"none"},items.slice(0,feedLimit).map((function(item,index){return react.createElement(govuk_react_list_item_esm.A,{key:index},react.createElement(NewWindowLink.A,{href:item.link,"data-test":"data-hub-feed-link-".concat(index),"aria-labelledby":"link-label"},item.heading),react.createElement(DataHubFeed_Date,{"data-test":"data-hub-feed-date-".concat(index)},item.date))}))),react.createElement(NewWindowLink.A,{href:urls_default().external.helpCentre.allUpdates,"data-test":"data-hub-feed-view-all"},"View all Data Hub updates")),!items.length&&react.createElement(govuk_react_paragraph_esm.A,null,"No updates available"))};DataHubFeed.__docgenInfo={description:"",methods:[],displayName:"DataHubFeed",props:{feedLimit:{defaultValue:{value:"5",computed:!1},required:!1}}};var SearchButton_templateObject,govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js");var StyledButton=(0,styled_components_browser_esm.Ay)("button")(SearchButton_templateObject||(SearchButton_templateObject=function SearchButton_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  border: 0;\n  margin: 0;\n  border-radius: 0;\n  cursor: pointer;\n  padding: 12px;\n  overflow: hidden;\n  box-sizing: border-box;\n  width: ",";\n  height: ",";\n  background-color: ",";\n"])),(function(_ref){var size=_ref.size;return"".concat(size,"px")}),(function(_ref2){var size=_ref2.size;return"".concat(size,"px")}),(function(_ref3){return _ref3.backgroundColour})),SearchButton=function SearchButton(_ref4){var _ref4$size=_ref4.size,size=void 0===_ref4$size?40:_ref4$size,_ref4$colour=_ref4.colour,colour=void 0===_ref4$colour?colours.UE:_ref4$colour,backgroundColour=_ref4.backgroundColour;return react.createElement(StyledButton,{type:"submit",size,backgroundColour},react.createElement(react.Fragment,null,react.createElement("svg",{viewBox:"0 0 18 18",focusable:"false","aria-hidden":"true"},react.createElement("g",{fill:colour},react.createElement("path",{d:"M18,16.56l-4.32-4.32a7.65,7.65,0,1,0-1.44,1.44L16.56,18ZM2,7.62a5.6,5.6,0,1,1,5.59,5.59A5.6,5.6,0,0,1,2,7.62Z"}))),react.createElement(govuk_react_visually_hidden_esm.A,null,"Submit Search")))};SearchButton.propTypes={size:prop_types_default().number,colour:prop_types_default().string,backgroundColour:prop_types_default().string};const components_SearchButton=SearchButton;function Search_typeof(o){return Search_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},Search_typeof(o)}var Search_templateObject,Search_templateObject2;function Search_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 Search_defineProperty(e,r,t){return(r=function Search_toPropertyKey(t){var i=function Search_toPrimitive(t,r){if("object"!=Search_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Search_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Search_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Search_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}SearchButton.__docgenInfo={description:"",methods:[],displayName:"SearchButton",props:{size:{defaultValue:{value:"40",computed:!1},description:"",type:{name:"number"},required:!1},colour:{defaultValue:{value:"'#ffffff'",computed:!1},description:"",type:{name:"string"},required:!1},backgroundColour:{description:"",type:{name:"string"},required:!1}}};var StyledSearchContainer=(0,styled_components_browser_esm.Ay)("div")(Search_templateObject||(Search_templateObject=Search_taggedTemplateLiteral(["\n  position: relative;\n  width: 100%;\n"]))),StyledSearchInput=(0,styled_components_browser_esm.Ay)(govuk_react_input_esm.A)(Search_templateObject2||(Search_templateObject2=Search_taggedTemplateLiteral(["\n  border: 0;\n  width: 100%;\n  padding-left: ",";\n  outline: ",";\n  padding-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3,(function(_ref){return _ref.showBorder?"2px solid ".concat(colours.Uv):0}),(function(_ref2){return _ref2.showBorder?-govuk_react_constants_esm.Es.SCALE_1:0})),getSearchTerm=function getSearchTerm(location){var queryString=location.search.slice(1),queryParams=(0,lodash.omitBy)(function Search_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Search_ownKeys(Object(t),!0).forEach((function(r){Search_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Search_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},lib_default().parse(queryString)),lodash.isEmpty);return queryParams.term},Search=function Search(_ref3){var csrfToken=_ref3.csrfToken,_ref3$buttonColour=_ref3.buttonColour,buttonColour=void 0===_ref3$buttonColour?colours.Uv:_ref3$buttonColour,_ref3$showBorder=_ref3.showBorder,showBorder=void 0!==_ref3$showBorder&&_ref3$showBorder,location=(0,dist.zy)();return react.createElement("form",{method:"GET",action:"".concat(urls_default().search.type("companies"),"?_csrf=").concat(csrfToken)},react.createElement(StyledSearchContainer,{role:"search"},react.createElement("label",{htmlFor:"search-input"},react.createElement(govuk_react_visually_hidden_esm.A,null,"Input your search term")),react.createElement(StyledSearchInput,{name:"term",type:"text",id:"search-input",placeholder:"Search Data Hub",defaultValue:getSearchTerm(location),showBorder}),react.createElement(components_SearchButton,{backgroundColour:buttonColour})))};Search.propTypes={csrfToken:prop_types_default().string.isRequired};Search.__docgenInfo={description:"",methods:[],displayName:"Search",props:{buttonColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},required:!1},showBorder:{defaultValue:{value:"false",computed:!1},required:!1},csrfToken:{description:"",type:{name:"string"},required:!0}}};var CustomContainer_templateObject,Timeline=__webpack_require__("./src/client/components/Timeline/index.jsx");(0,styled_components_browser_esm.Ay)("div")(CustomContainer_templateObject||(CustomContainer_templateObject=function CustomContainer_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  box-sizing: 'border-box';\n  padding: 0 ",";\n\n  "," {\n    padding: 0 ",";\n  }\n\n  @media only screen and (min-width: ",") {\n    margin: 0 auto;\n    max-width: ",";\n  }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_5,(function(_ref){var width=_ref.width;return"".concat(width,"px")}),(function(_ref2){var width=_ref2.width;return"".concat(width,"px")}));__webpack_require__("./src/client/components/ErrorSummary/index.jsx");var RoutedTeamsTypeahead_excluded=["taskProps","closeMenuOnSelect","loadOptions"];function RoutedTeamsTypeahead_extends(){return RoutedTeamsTypeahead_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},RoutedTeamsTypeahead_extends.apply(null,arguments)}var fetchTeams=function fetchTeams(){return(0,lodash.throttle)((function(searchString){return searchString.length?utils.HD.get(urls_default().metadata.team(),{params:{autocomplete:searchString}}).then((function(_ref){return function parseTeamData(teams){return teams.filter((function(team){return team.name&&team.name.trim().length})).map(client_transformers.Vi)}(_ref.data)})):Promise.resolve([])}),500)},RoutedTeamsTypeahead=function RoutedTeamsTypeahead(_ref2){var taskProps=_ref2.taskProps,_ref2$closeMenuOnSele=_ref2.closeMenuOnSelect,closeMenuOnSelect=void 0===_ref2$closeMenuOnSele||_ref2$closeMenuOnSele,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?fetchTeams():_ref2$loadOptions,props=function RoutedTeamsTypeahead_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function RoutedTeamsTypeahead_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,RoutedTeamsTypeahead_excluded);return react.createElement(Task.A.Status,RoutedTeamsTypeahead_extends({},taskProps,{progressOverlay:!0}),(function(){return react.createElement(components_RoutedTypeahead,RoutedTeamsTypeahead_extends({loadOptions,closeMenuOnSelect},props))}))};RoutedTeamsTypeahead.propTypes={name:prop_types_default().string.isRequired,taskProps:prop_types_default().shape({name:prop_types_default().string.isRequired,id:prop_types_default().string.isRequired}).isRequired,closeMenuOnSelect:prop_types_default().bool};const components_RoutedTeamsTypeahead=RoutedTeamsTypeahead;RoutedTeamsTypeahead.__docgenInfo={description:"",methods:[],displayName:"RoutedTeamsTypeahead",props:{closeMenuOnSelect:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},loadOptions:{defaultValue:{value:"fetchTeams()",computed:!0},required:!1},name:{description:"",type:{name:"string"},required:!0},taskProps:{description:"",type:{name:"shape",value:{name:{name:"string",required:!0},id:{name:"string",required:!0}}},required:!0}}};var LocalNav_excluded=["children","href","dataTest"];function LocalNav_extends(){return LocalNav_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},LocalNav_extends.apply(null,arguments)}var StyledActiveLink=(0,styled_components_browser_esm.Ay)("a")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_20,padding:"11px 16px","&:link, &:visited":{color:colours.UE,background:colours._G,textDecoration:"none",fontWeight:600}}),StyledInactiveLink=(0,styled_components_browser_esm.Ay)("a")({display:"block",fontSize:govuk_react_constants_esm.SG.SIZE_20,padding:"11px 16px","&:link, &:visited":{color:colours.ft,textDecoration:"none"},"&:hover, &:focus":{color:colours.Uv,backgroundColor:colours.P1}}),LocalNav=function LocalNav(_ref){var children=_ref.children,_ref$dataTest=_ref.dataTest,dataTest=void 0===_ref$dataTest?"local-nav":_ref$dataTest;return children=children.filter((function(child){return!1!==child})),react.createElement("nav",{"data-test":dataTest},react.createElement("ul",null,children.map((function(link,index){return react.createElement("li",{key:"".concat(index,"-").concat(link)},link)}))))},LocalNavLink=function LocalNavLink(_ref2){var children=_ref2.children,href=_ref2.href,_ref2$dataTest=_ref2.dataTest,dataTest=void 0===_ref2$dataTest?"local-nav-link":_ref2$dataTest,rest=function LocalNav_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function LocalNav_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,LocalNav_excluded),location=(0,dist.zy)(),NavLink=null!=href&&href.includes(location.pathname)?StyledActiveLink:StyledInactiveLink;return react.createElement(NavLink,LocalNav_extends({href,"data-test":dataTest},rest),children)};LocalNav.propTypes={dataTest:prop_types_default().string,children:prop_types_default().node},LocalNavLink.propTypes={dataTest:prop_types_default().string,href:prop_types_default().string,children:prop_types_default().node},LocalNav.__docgenInfo={description:"",methods:[],displayName:"LocalNav",props:{dataTest:{defaultValue:{value:"'local-nav'",computed:!1},description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!1}}},LocalNavLink.__docgenInfo={description:"",methods:[],displayName:"LocalNavLink",props:{dataTest:{defaultValue:{value:"'local-nav-link'",computed:!1},description:"",type:{name:"string"},required:!1},href:{description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!1}}};__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx");var InvestmentLayout_templateObject,Footer=__webpack_require__("./src/client/components/Footer/index.jsx"),DataHubHeader=__webpack_require__("./src/client/components/DataHubHeader/index.jsx"),WatchTextContent=__webpack_require__("./src/client/components/WatchTextContent.jsx"),InvestmentLayout_excluded=["children","pageTitle"];function InvestmentLayout_slicedToArray(r,e){return function InvestmentLayout_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function InvestmentLayout_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 InvestmentLayout_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return InvestmentLayout_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)?InvestmentLayout_arrayLikeToArray(r,a):void 0}}(r,e)||function InvestmentLayout_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 InvestmentLayout_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var GlobalStyles=(0,styled_components_browser_esm.DU)(InvestmentLayout_templateObject||(InvestmentLayout_templateObject=function InvestmentLayout_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  *, *:before, *:after {\n    box-sizing: initial;\n  }\n"]))),InvestmentLayout=function InvestmentLayout(_ref){var children=_ref.children,pageTitle=_ref.pageTitle,props=function InvestmentLayout_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function InvestmentLayout_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,InvestmentLayout_excluded),_useState2=InvestmentLayout_slicedToArray((0,react.useState)(!1),2),showVerticalNav=_useState2[0],setShowVerticalNav=_useState2[1];return react.createElement(react.Fragment,null,react.createElement(WatchTextContent.A,{onTextContentChange:function onTextContentChange(text){document.title=text}},pageTitle," - DBT Data Hub"),react.createElement(GlobalStyles,null),react.createElement(DataHubHeader.A,{showVerticalNav,onShowVerticalNav:setShowVerticalNav}),react.createElement(components_InvestmentLocalHeader,props),react.createElement(Main.A,null,react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,null,children))),react.createElement(Footer.h,null))};InvestmentLayout.propTypes={projectId:prop_types_default().string.isRequired,pageTitle:prop_types_default().node.isRequired,flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),children:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node])};InvestmentLayout.__docgenInfo={description:"",methods:[],displayName:"InvestmentLayout",props:{projectId:{description:"",type:{name:"string"},required:!0},pageTitle:{description:"",type:{name:"node"},required:!0},flashMessages:{description:"",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},breadcrumbs:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},children:{description:"",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1}}};var AccessDenied=__webpack_require__("./src/client/components/AccessDenied/index.jsx"),ProtectedRoute=function ProtectedRoute(_ref){var module=_ref.module,modulePermissions=_ref.modulePermissions,_ref$userPermissions=_ref.userPermissions,userPermissions=void 0===_ref$userPermissions?[]:_ref$userPermissions,_ref$routePermissions=_ref.routePermissions,routePermissions=void 0===_ref$routePermissions?[]:_ref$routePermissions,children=_ref.children;return routePermissions.every((function(p){return userPermissions.includes(p)}))&modulePermissions.includes(module)?children:react.createElement(AccessDenied.A,null)};ProtectedRoute.propTypes={module:prop_types_default().string.isRequired,modulePermissions:prop_types_default().arrayOf(prop_types_default().string).isRequired,userPermissions:prop_types_default().arrayOf(prop_types_default().string).isRequired,routePermissions:prop_types_default().arrayOf(prop_types_default().string),redirect:prop_types_default().string};(0,react_redux.connect)((function(state){return state}))(ProtectedRoute);ProtectedRoute.__docgenInfo={description:"",methods:[],displayName:"ProtectedRoute",props:{userPermissions:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},routePermissions:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},module:{description:"",type:{name:"string"},required:!0},modulePermissions:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!0},redirect:{description:"",type:{name:"string"},required:!1}}};__webpack_require__("./src/client/components/ProtectedLink/index.jsx");function Filter_typeof(o){return Filter_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},Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedAdvisersTypeahead)(function Filter_defineProperty(e,r,t){return(r=function Filter_toPropertyKey(t){var i=function Filter_toPrimitive(t,r){if("object"!=Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedCompanyTypeahead_Filter_typeof(o){return RoutedCompanyTypeahead_Filter_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},RoutedCompanyTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedCompanyTypeahead)(function RoutedCompanyTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedCompanyTypeahead_Filter_toPropertyKey(t){var i=function RoutedCompanyTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedCompanyTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedCompanyTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedCompanyTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedDateField_Filter_typeof(o){return RoutedDateField_Filter_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},RoutedDateField_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedDateField)(function RoutedDateField_Filter_defineProperty(e,r,t){return(r=function RoutedDateField_Filter_toPropertyKey(t){var i=function RoutedDateField_Filter_toPrimitive(t,r){if("object"!=RoutedDateField_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedDateField_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedDateField_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16,input:{fontSize:govuk_react_constants_esm.SG.SIZE_16}},govuk_react_constants_esm.qs.TABLET,{fontSize:govuk_react_constants_esm.SG.SIZE_16,marginBottom:24,input:{fontSize:govuk_react_constants_esm.SG.SIZE_16}}));var RoutedInputField_Filter=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx"),RoutedNumericRangeField_Filter=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");function RoutedTypeahead_Filter_typeof(o){return RoutedTypeahead_Filter_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},RoutedTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedTypeahead)(function RoutedTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedTypeahead_Filter_toPropertyKey(t){var i=function RoutedTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));function RoutedTeamsTypeahead_Filter_typeof(o){return RoutedTeamsTypeahead_Filter_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},RoutedTeamsTypeahead_Filter_typeof(o)}(0,styled_components_browser_esm.Ay)(components_RoutedTeamsTypeahead)(function RoutedTeamsTypeahead_Filter_defineProperty(e,r,t){return(r=function RoutedTeamsTypeahead_Filter_toPropertyKey(t){var i=function RoutedTeamsTypeahead_Filter_toPrimitive(t,r){if("object"!=RoutedTeamsTypeahead_Filter_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=RoutedTeamsTypeahead_Filter_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==RoutedTeamsTypeahead_Filter_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({fontSize:govuk_react_constants_esm.SG.SIZE_16},govuk_react_constants_esm.qs.TABLET,{marginBottom:24}));var RoutedInput_Filter=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),FilterLabel=__webpack_require__("./src/client/components/FilterLabel.js"),Filter_excluded=["label","hint"];var StyledFilterLabel=(0,styled_components_browser_esm.Ay)(FilterLabel.A)({marginBottom:govuk_react_constants_esm.Es.SCALE_5}),StyledHintText=(0,styled_components_browser_esm.Ay)(govuk_react_hint_text_esm.A)({marginBottom:govuk_react_constants_esm.Es.SCALE_2}),RoutedAventriIdFieldFilter=function RoutedAventriIdFieldFilter(_ref){var label=_ref.label,hint=_ref.hint,props=function Filter_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function Filter_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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,Filter_excluded);return react.createElement(StyledFilterLabel,null,label,react.createElement(StyledHintText,null,hint),react.createElement(RoutedInput_Filter.A,props))};RoutedAventriIdFieldFilter.propTypes={label:prop_types_default().node.isRequired,hint:prop_types_default().string};RoutedAventriIdFieldFilter.__docgenInfo={description:"",methods:[],displayName:"RoutedAventriIdFieldFilter",props:{label:{description:"",type:{name:"node"},required:!0},hint:{description:"",type:{name:"string"},required:!1}}};var Filter_templateObject,Filter_templateObject2,RoutedRelatedCompaniesCheckboxGroup_constants=__webpack_require__("./src/client/components/RoutedRelatedCompaniesCheckboxGroup/constants.js");function Filter_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var SUBSIDIARIES_LIMITED_LABEL="Due to the large number of related companies in this  tree, we can only show projects from parent companies.",Filter_StyledParagraph=(0,styled_components_browser_esm.Ay)(govuk_react_esm.fz)(Filter_templateObject||(Filter_templateObject=Filter_taggedTemplateLiteral(["\n  font-size: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16),Filter_StyledDetails=(0,styled_components_browser_esm.Ay)(govuk_react_esm.B_)(Filter_templateObject2||(Filter_templateObject2=Filter_taggedTemplateLiteral(["\n  margin-bottom: 0;\n  span {\n    font-size: ",";\n  }\n"])),govuk_react_constants_esm.SG.SIZE_16),RoutedRelatedCompaniesCheckboxGroup=function RoutedRelatedCompaniesCheckboxGroup(_ref){var company=_ref.company,selectedOptions=_ref.selectedOptions;return react.createElement(react.Fragment,null,company.dunsNumber&&react.createElement(components_Resource.uf,{id:company.id},(function(relatedCompaniesCountResponse){return react.createElement(react.Fragment,null,relatedCompaniesCountResponse.relatedCompaniesCount>0&&react.createElement(ToggleSection.Q,{id:"ProjectCollection.include-related-companies-filters",label:"Related companies",isOpen:!0},react.createElement(components_RoutedCheckboxGroupField,{legend:"Include related companies",name:"include_related_companies",qsParam:"include_related_companies",options:relatedCompaniesCountResponse.reducedTree?RoutedRelatedCompaniesCheckboxGroup_constants.S:RoutedRelatedCompaniesCheckboxGroup_constants.j,selectedOptions,"data-test":"include-related-companies-filter","aria-describedby":relatedCompaniesCountResponse.reducedTree?SUBSIDIARIES_LIMITED_LABEL:void 0}),relatedCompaniesCountResponse.reducedTree&&react.createElement(Filter_StyledDetails,{summary:"Why can't I filter by subsidiary companies?"},react.createElement(Filter_StyledParagraph,null,SUBSIDIARIES_LIMITED_LABEL))))})))};RoutedRelatedCompaniesCheckboxGroup.__docgenInfo={description:"",methods:[],displayName:"RoutedRelatedCompaniesCheckboxGroup"};RoutedInputField_Filter.A,RoutedNumericRangeField_Filter.A;var ContactLocalHeader_StyledLink=(0,styled_components_browser_esm.Ay)(govuk_react_esm.N_)({fontSize:govuk_react_constants_esm.SG.SIZE_20}),StyledLocalHeaderHeading=(0,styled_components_browser_esm.Ay)(LocalHeaderHeading.A)({display:"flex",flexWrap:"wrap",columnGap:govuk_react_constants_esm.Es.SCALE_2,marginTop:govuk_react_constants_esm.Es.SCALE_1}),currentTab=function getCurrentTab(currentPath){return currentPath.includes("/interactions")?"Activity":currentPath.includes("/audit")?"Audit history":null}(location.pathname),buildBreadcrumbs=function buildBreadcrumbs(currentTab,id,name){var initialBreadcrumbs=[{link:urls_default().dashboard.index(),text:"Home"},{link:urls_default().contacts.index(),text:"Contacts"}],dynamicBreadcrumbs=currentTab?[{link:urls_default().contacts.contact(id),text:name},{text:currentTab}]:[{text:name}];return initialBreadcrumbs.concat(dynamicBreadcrumbs)},ContactLocalHeader=function ContactLocalHeader(_ref){var contact=_ref.contact,writeFlashMessage=_ref.writeFlashMessage;return react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{breadcrumbs:buildBreadcrumbs(currentTab,contact.id,contact.name)},react.createElement(govuk_react_esm.TW,null,react.createElement(govuk_react_esm.bn,null,react.createElement(ContactLocalHeader_StyledLink,{"data-test":"company-link",href:urls_default().companies.overview.index(contact.company.id)},contact.company.name),react.createElement(StyledLocalHeaderHeading,{"data-test":"contact-name"},contact.name,contact.primary&&react.createElement(Badge.A,{"data-test":"primary-badge",borderColour:"purple",textColour:"purple",fontSize:govuk_react_constants_esm.SG.SIZE_24},"Primary"))),!contact.archived&&react.createElement(govuk_react_esm.bn,{setWidth:"one-quarter"},react.createElement(govuk_react_esm.$n,{as:"a","data-test":"add-interaction-button",href:urls_default().companies.interactions.create(contact.company.id)},"Add interaction"))),contact.archived&&react.createElement(ArchivePanel.A,{archivedBy:contact.archivedBy,archivedOn:contact.archivedOn,archiveReason:contact.archivedReason,unarchiveUrl:urls_default().contacts.unarchive(contact.id),onClick:function onClick(){writeFlashMessage("Contact record updated")},type:"contact"})))};ContactLocalHeader.propTypes={contact:prop_types_default().object.isRequired,writeFlashMessage:prop_types_default().func};const components_ContactLocalHeader=(0,react_redux.connect)(null,(function dispatchToProps(dispatch){return{writeFlashMessage:function writeFlashMessage(message){return dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType:"success",message})}}}))(ContactLocalHeader);ContactLocalHeader.__docgenInfo={description:"",methods:[],displayName:"ContactLocalHeader",props:{contact:{description:"",type:{name:"object"},required:!0},writeFlashMessage:{description:"",type:{name:"func"},required:!1}}};var SectionHeader_templateObject,govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js");var StyledSectionHeader=(0,styled_components_browser_esm.Ay)("div")(SectionHeader_templateObject||(SectionHeader_templateObject=function SectionHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  ",";\n  margin-bottom: ",";\n"])),govuk_react_lib_esm.Il.font({size:24,weight:"bold"}),govuk_react_constants_esm.Es.SCALE_4),SectionHeader=function SectionHeader(_ref){var type=_ref.type,children=_ref.children;return react.createElement(StyledSectionHeader,{"data-test":(0,lodash.kebabCase)("".concat(type,"-header"))},children)};SectionHeader.propTypes={type:prop_types_default().string.isRequired,children:prop_types_default().string.isRequired};var ContactLayout_templateObject;SectionHeader.__docgenInfo={description:"",methods:[],displayName:"SectionHeader",props:{type:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"string"},required:!0}}};var StyledNavWrapper=(0,styled_components_browser_esm.Ay)("div")(ContactLayout_templateObject||(ContactLayout_templateObject=function ContactLayout_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  margin-bottom: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),ContactLayout=function ContactLayout(_ref){var contact=_ref.contact,flashMessages=_ref.flashMessages,permissions=_ref.permissions,children=_ref.children,canViewActivityLink=permissions.includes("interaction.view_all_interaction");return react.createElement(react.Fragment,null,react.createElement(components_ContactLocalHeader,{contact,writeFlashMessage:flashMessages}),react.createElement(Main.A,null,react.createElement(govuk_react_grid_row_esm.A,null,react.createElement(govuk_react_grid_col_esm.Ay,{setWidth:"one-quarter"},react.createElement(StyledNavWrapper,null,react.createElement(LocalNav,null,react.createElement(LocalNavLink,{dataTest:"contact-details-link",href:urls_default().contacts.details(contact.id)},"Details"),canViewActivityLink&&react.createElement(LocalNavLink,{dataTest:"contact-activity-link",href:urls_default().contacts.interactions.index(contact.id)},"Activity"),react.createElement(LocalNavLink,{dataTest:"contact-audit-link",href:urls_default().contacts.audit(contact.id)},"Audit history")))),react.createElement(govuk_react_grid_col_esm.Ay,null,children))))};ContactLayout.propTypes={contact:prop_types_default().object.isRequired,permissions:prop_types_default().array.isRequired,children:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().element),prop_types_default().element]).isRequired};ContactLayout.__docgenInfo={description:"",methods:[],displayName:"ContactLayout",props:{contact:{description:"",type:{name:"object"},required:!0},permissions:{description:"",type:{name:"array"},required:!0},children:{description:"",type:{name:"union",value:[{name:"arrayOf",value:{name:"element"}},{name:"element"}]},required:!0}}};__webpack_require__("./src/client/components/Form/elements/FieldCurrency/index.jsx"),__webpack_require__("./src/client/components/Wrap.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldCompaniesTypeahead/index.jsx"),__webpack_require__("./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx")},"./src/client/filters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _require=__webpack_require__("./src/client/utils/date.js");_require.formatLongDate,_require.formatShortDate},"./src/client/modules/Companies/CollectionList/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/client/modules/Companies/CollectionList/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./src/apps/companies/apps/edit-company/client/constants.js"),__webpack_require__("./src/client/filters.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/constants.js"),__webpack_require__("./src/client/modules/Companies/CollectionList/transformers.js"),__webpack_require__("./src/client/utils/index.js");var ID="companiesList"},"./src/client/modules/Companies/CollectionList/transformers.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__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"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/lodash/lodash.js");__webpack_require__("./src/lib/urls.js"),__webpack_require__("./src/client/utils/addresses.js");var _require=__webpack_require__("./src/client/utils/date.js");_require.format,_require.formatMediumDateTime},"./src/client/modules/ExportPipeline/ExportList/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,e:()=>TASK_GET_EXPORT_PIPELINE_LIST,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/modules/ExportPipeline/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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 TASK_GET_EXPORT_PIPELINE_LIST="TASK_GET_EXPORT_PIPELINE_LIST",ID="exportPipelineList",areFiltersActive=function areFiltersActive(queryParams){var filters=(0,lodash__WEBPACK_IMPORTED_MODULE_17__.omitBy)(queryParams,(function(filterValue,filterName){return"all-statuses"===filterValue||"page"===filterName}));return!(0,lodash__WEBPACK_IMPORTED_MODULE_17__.isEmpty)(filters)},state2props=function state2props(_ref){var router=_ref.router,state=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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),queryParams=(0,_client_utils_url__WEBPACK_IMPORTED_MODULE_18__.g)(router.location);return _objectSpread(_objectSpread({},state[ID]),{},{payload:_objectSpread(_objectSpread({},queryParams),{},{page:(0,_client_utils_pagination__WEBPACK_IMPORTED_MODULE_19__.parsePage)(queryParams.page)}),filters:{areActive:areFiltersActive(queryParams),status:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.Js},exportPotential:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.Uo},sortby:{options:_constants__WEBPACK_IMPORTED_MODULE_20__.QB}}})}},"./src/client/modules/ExportPipeline/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Js:()=>STATUS_LIST_OPTIONS,QB:()=>SORT_OPTIONS,Uo:()=>EXPORT_POTENTIAL_LIST_OPTIONS,sl:()=>SHOW_ALL_OPTION});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var SORT_OPTIONS=[{label:"Recently created",value:"created_on:desc"},{label:"Export title A-Z",value:"title"},{label:"Export title Z-A",value:"-title"},{label:"Company name A-Z",value:"company__name"},{label:"Company name Z-A",value:"-company__name"},{label:"Earliest expected date for win",value:"estimated_win_date"},{label:"Latest expected date for win",value:"-estimated_win_date"},{label:"Value increasing",value:"estimated_export_value_amount"},{label:"Value decreasing",value:"-estimated_export_value_amount"}],SHOW_ALL_OPTION={label:"Show all",value:"all-statuses"},EXPORT_POTENTIAL_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"High",value:"high"},{label:"Medium",value:"medium"},{label:"Low",value:"low"}]),STATUS_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"Active",value:"active"},{label:"Won",value:"won"},{label:"Inactive",value:"inactive"}])},"./src/client/modules/Investments/Projects/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cb:()=>STAGE_VERIFY_WIN,Li:()=>STAGE_ASSIGN_PM,QB:()=>SORT_OPTIONS,aO:()=>STAGE_ACTIVE,c0:()=>STAGE_WON,s1:()=>INVESTMENT_PROJECT_STAGES,sy:()=>STAGE_PROSPECT,ud:()=>NOT_LINKED_TO_R_AND_D});__webpack_require__("./node_modules/react/index.js");var STAGE_PROSPECT="Prospect",STAGE_ASSIGN_PM="Assign PM",STAGE_ACTIVE="Active",STAGE_VERIFY_WIN="Verify win",STAGE_WON="Won",INVESTMENT_PROJECT_STAGES=[STAGE_PROSPECT,STAGE_ASSIGN_PM,STAGE_ACTIVE,STAGE_VERIFY_WIN,STAGE_WON],NOT_LINKED_TO_R_AND_D="Not linked to a non-FDI R&D project",SORT_OPTIONS=[{name:"Recently created",value:"created_on:desc"},{name:"Earliest land date",value:"estimated_land_date:asc"},{name:"Latest land date",value:"estimated_land_date:desc"},{name:"Project name A-Z",value:"name:asc"}]},"./src/client/modules/Tasks/TaskForm/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>STATUS});var STATUS={ACTIVE:"active",COMPLETED:"complete"}},"./src/client/styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>focusMixin});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _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"),focusMixin={"&:focus":{outline:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.uk," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.eM),outlineOffset:"0"}}},"./src/client/transformers/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Vi:()=>transformIdNameToValueLabel,ce:()=>transformArrayIdNameToValueLabel});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/lodash/lodash.js"),__webpack_require__("./src/common/constants.js"),__webpack_require__("./src/client/utils/date.js");var transformIdNameToValueLabel=function transformIdNameToValueLabel(value){return value?{value:value.id,label:value.name}:null},transformArrayIdNameToValueLabel=function transformArrayIdNameToValueLabel(values){return values&&values.length>0?values.map(transformIdNameToValueLabel):[]}},"./src/client/utils/addresses.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),get=_require.get,compact=_require.compact;module.exports={addressToString:function addressToString(address){return["line_1","line_2","town","county","postcode","area.name","country.name"].map((function(component){return get(address,component)})).filter((function(value){return value})).join(", ")},addressToStringResource:function addressToStringResource(address){return["line1","line2","town","county","postcode","area.name","country.name"].map((function(component){return get(address,component)})).filter((function(value){return value})).join(", ")},getCompanyAddress:function getCompanyAddress(dnb_company){if(dnb_company)return compact([dnb_company.address_line_1,dnb_company.address_line_2,dnb_company.address_town,dnb_company.address_county,dnb_company.address_area_name,dnb_company.address_postcode]).join(", ")}}},"./src/client/utils/colours.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AV:()=>GREEN,B3:()=>rgba,Bd:()=>YELLOW_25,Bk:()=>RED,Br:()=>LIGHT_GREY,Cu:()=>LIGHT_BLUE_50,Df:()=>LINK_ACTIVE_COLOUR,EI:()=>BUTTON_COLOUR,FY:()=>LINK_HOVER_COLOUR,GU:()=>BORDER_COLOUR,IC:()=>GREY_1,Iz:()=>YELLOW,Kk:()=>FOOTER_TEXT,Np:()=>FOOTER_BACKGROUND,Nu:()=>LINK_VISITED_COLOUR,P1:()=>GREY_4,Pe:()=>GREY_2,Px:()=>TAG_COLOURS,UE:()=>WHITE,Uv:()=>BLACK,Vd:()=>PAGE_COLOUR,WS:()=>GREY_3,Xs:()=>BUTTON_COLOUR_DARKEN_15,Y0:()=>FOOTER_LINK_HOVER,Y8:()=>SECONDARY_TEXT_COLOUR,_G:()=>DARK_BLUE_LEGACY,eJ:()=>PROPOSITION_BORDER,eM:()=>FOCUS_COLOUR,ej:()=>GREY_3_LEGACY,fl:()=>FOOTER_BORDER_TOP,ft:()=>BLUE,hM:()=>DARK_GREY,hN:()=>ORANGE,hr:()=>PURPLE,jK:()=>FOOTER_LINK,m8:()=>LIGHT_BLUE,pA:()=>MID_GREY,pF:()=>TEXT_COLOUR,sB:()=>LIGHT_BLUE_25,su:()=>ERROR_COLOUR,yV:()=>LINK_COLOUR});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js");var rgba=function rgba(colorHex,alpha){return"rgba(".concat(function hexToRgb(colorHex){var colorValue=parseInt(colorHex.replace("#",""),16);return[colorValue>>16&255,colorValue>>8&255,255&colorValue].join()}(colorHex),",").concat(alpha,")")},GREY_3_LEGACY="#dee0e2",DARK_BLUE_LEGACY="#005ea5",DARK_GREY="#505a5f",MID_GREY="#b1b4b6",LIGHT_GREY="#f3f2f1",BLUE="#1d70b8",PURPLE="#2e358b",RED="#d4351c",ORANGE="#f47738",YELLOW="#ffdd00",YELLOW_25="#fff2d3",GREEN="#006435",LIGHT_BLUE="#2b8cc4",LIGHT_BLUE_50="#96c6e2",LIGHT_BLUE_25="#d5e8f3",BLACK="#0b0c0c",GREY_1=DARK_GREY,GREY_2="#bfc1c3",GREY_3=LIGHT_GREY,GREY_4="#f8f8f8",WHITE="#ffffff",LINK_COLOUR=BLUE,LINK_ACTIVE_COLOUR=LIGHT_BLUE,LINK_HOVER_COLOUR=LIGHT_BLUE,LINK_VISITED_COLOUR="#4c2c92",BUTTON_COLOUR="#00703c",BUTTON_COLOUR_DARKEN_15="#002413",FOCUS_COLOUR=YELLOW,TEXT_COLOUR=BLACK,SECONDARY_TEXT_COLOUR=DARK_GREY,BORDER_COLOUR=GREY_2,PAGE_COLOUR=WHITE,ERROR_COLOUR=RED,PROPOSITION_BORDER="#2e3133",FOOTER_BACKGROUND=LIGHT_GREY,FOOTER_BORDER_TOP="#a1acb2",FOOTER_LINK="#454a4c",FOOTER_LINK_HOVER="#171819",FOOTER_TEXT=FOOTER_LINK,TAG_COLOURS={default:{colour:WHITE,background:BLUE},grey:{colour:"#454a4d",background:"#eff0f1"},green:{colour:"#005a30",background:"#cce2d8"},darkGreen:{colour:WHITE,background:"#10403c"},turquoise:{colour:"#10403c",background:"#bfe3e0"},blue:{colour:"#144e81",background:"#d2e2f1"},purple:{colour:"#3d2375",background:"#dbd5e9"},pink:{colour:"#80224d",background:"#f7d7e6"},red:{colour:"#942514",background:"#f6d7d2"},orange:{colour:"#6e3619",background:"#fcd6c3"},yellow:{colour:"#594d00",background:"#fff7bf"}}},"./src/client/utils/date.js":(module,__unused_webpack_exports,__webpack_require__)=>{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}__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.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.number.is-nan.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _require=__webpack_require__("./node_modules/date-fns/esm/index.js"),addDaysFns=_require.addDays,addMonthsFns=_require.addMonths,addYearsFns=_require.addYears,differenceInDays=_require.differenceInDays,differenceInCalendarDays=_require.differenceInCalendarDays,isSameDay=_require.isSameDay,endOfToday=_require.endOfToday,getStartOfMonth=_require.startOfMonth,isWithinInterval=_require.isWithinInterval,endOfYesterday=_require.endOfYesterday,formatFns=_require.format,formatDistanceToNowStrict=_require.formatDistanceToNowStrict,isAfter=_require.isAfter,isValid=_require.isValid,parse=_require.parse,parseISO=_require.parseISO,subDays=_require.subDays,subMonths=_require.subMonths,subYears=_require.subYears,subWeeks=_require.subWeeks,differenceInCalendarMonths=_require.differenceInCalendarMonths,isFuture=_require.isFuture,areDatesEqual=_require.isEqual,endOfTomorrow=_require.endOfTomorrow,_require2=__webpack_require__("./src/common/constants.js"),DATE_LONG_FORMAT_1=_require2.DATE_LONG_FORMAT_1,DATE_LONG_FORMAT_2=_require2.DATE_LONG_FORMAT_2,DATE_LONG_FORMAT_3=_require2.DATE_LONG_FORMAT_3,DATE_MEDIUM_FORMAT=_require2.DATE_MEDIUM_FORMAT,DATE_TIME_MEDIUM_FORMAT=_require2.DATE_TIME_MEDIUM_FORMAT,DATE_SHORT_FORMAT=_require2.DATE_SHORT_FORMAT,DATE_SHORT_FORMAT_2=_require2.DATE_SHORT_FORMAT_2,INTERACTION_TIMESTAMP_FORMAT=_require2.INTERACTION_TIMESTAMP_FORMAT,DATE_DAY_MONTH=_require2.DATE_DAY_MONTH;function addDays(date,daysToAdd){return addDaysFns(date,daysToAdd)}function isDateAfter(date1,date2){return isAfter(date1,date2)}function subtractMonths(date,numberOfMonths){return subMonths(date,numberOfMonths)}function isDateValid(date){return isValid(parseISO(date))}function isUnparsedDateValid(date){return isValid(date)}function isNormalisedDateValid(year,month,day){var format=arguments.length>3&&void 0!==arguments[3]?arguments[3]:DATE_LONG_FORMAT_3,date=normaliseAndFormatDate(year,month,day);return isValid(parse(date,format,new Date))}function format(dateStr){var dateFormat=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_2;return isDateValid(dateStr)?formatFns(parseISO(dateStr),dateFormat):null}var padZero=function padZero(value){var parsedValue=parseInt(value,10);return Number.isNaN(parsedValue)?value:parsedValue<10?"0".concat(parsedValue):parsedValue.toString()};function normaliseAndFormatDate(year,month,day){var y=padZero(year),m=padZero(month),yearAndMonth="".concat(padZero(y),"-").concat(padZero(m));return day?"".concat(yearAndMonth,"-").concat(padZero(day)):yearAndMonth}function getDifferenceInDays(dateIn){var today=endOfToday();return differenceInCalendarDays(new Date(dateIn),today)}function convertDateToFieldDateObject(date){var parsedTime=parseISO(date);return isValid(parsedTime)?{day:parsedTime.getDate(),month:parsedTime.getMonth()+1,year:parsedTime.getFullYear()}:{day:"",month:"",year:""}}function getStartDateOfTwelveMonthsAgo(){return subMonths(getStartOfMonth(new Date),12)}module.exports=_defineProperty(_defineProperty(_defineProperty({addDays,addMonths:function addMonths(date,numberOfMonths){return addMonthsFns(date,numberOfMonths)},addYears:function addYears(date,yearsToAdd){return addYearsFns(date,yearsToAdd)},createAndFormatDateObject:function createAndFormatDateObject(date){return parse(date,arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_3,new Date)},format,formatMediumDate:function formatMediumDate(dateString){return format(dateString,DATE_MEDIUM_FORMAT)},formatMediumDateTime:function formatMediumDateTime(dateString){return format(dateString,DATE_TIME_MEDIUM_FORMAT)},formatLongDate:function formatLongDate(dateString){return format(dateString,DATE_LONG_FORMAT_1)},formatShortDate:function formatShortDate(dateString){return format(dateString,DATE_SHORT_FORMAT_2)},formatMonthYearDate:function formatMonthYearDate(date){return formatFns(parse(date,DATE_SHORT_FORMAT,new Date),DATE_LONG_FORMAT_3)},formatWithoutParsing:function formatWithoutParsing(date){var dateFormat=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DATE_LONG_FORMAT_2;return isUnparsedDateValid(date)?formatFns(date,dateFormat):null},generateFinancialYearLabel:function generateFinancialYearLabel(yearStart){return"".concat(yearStart,"-").concat((yearStart+1).toString().slice(-2))},getDifferenceInDays,getDifferenceInDaysLabel:function getDifferenceInDaysLabel(dateIn){var difference=getDifferenceInDays(dateIn);return 1===Math.abs(difference)?difference+" day":difference+" days"},getDifferenceInWords:function getDifferenceInWords(date){var suffix=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],formattedDate=formatDistanceToNowStrict(parseISO(date),{addSuffix:suffix});return"1 day ago"==formattedDate?"a day ago":formattedDate},getInteractionTimestamp:function getInteractionTimestamp(_ref2){var offset=_ref2.offset,date=new Date;return offset>0&&subMonths(date,offset),format(date,INTERACTION_TIMESTAMP_FORMAT)},getFinancialYearStart:function getFinancialYearStart(date){return date.getMonth()<3?date.getFullYear()-1:date.getFullYear()},getYesterday:function getYesterday(){return endOfYesterday()},isDateAfter,isDateValid,isNormalisedDateValid,isShortDateValid:function isShortDateValid(year,month){return isNormalisedDateValid(year,month,null,DATE_SHORT_FORMAT)},isUnparsedDateValid,parseDateString:function parseDateString(dateString){if(-1!==dateString.indexOf("/")){var parts=dateString.split("/");return new Date(parts[2],parts[1]-1,parts[0])}var date=new Date(dateString);return"Invalid Date"!==date.toString()?date:null},subtractDays:function subtractDays(date,daysToSubtract){return subDays(date,daysToSubtract)},subtractMonths,subtractYears:function subtractYears(date,yearsToSubtract){return subYears(date,yearsToSubtract)},subtractWeeks:function subtractWeeks(date,numberOfweeks){return subWeeks(date,numberOfweeks)},today:function today(){return format(new Date)},transformValueForAPI:function transformValueForAPI(_ref){var year=_ref.year,month=_ref.month,_ref$day=_ref.day,day=void 0===_ref$day?1:_ref$day;return year&&month&&day?normaliseAndFormatDate(year,month,day):null},createDateFromObject:function createDateFromObject(_ref3){var day=_ref3.day,month=_ref3.month,year=_ref3.year,monthIndex=parseInt(month,10)-1;return new Date(year,monthIndex,day)},formatStartAndEndDate:function formatStartAndEndDate(startDate,endDate){var startDateParsed=parseISO(startDate),endDateParsed=parseISO(endDate),startDateFormatted=format(startDate),endDateFormatted=format(endDate);return endDate&&isDateAfter(endDateParsed,startDateParsed)?startDateParsed.toDateString()===endDateParsed.toDateString()?startDateFormatted:0==differenceInCalendarMonths(endDateParsed,startDateParsed)?"".concat(startDateParsed.getDate()," to ").concat(endDateFormatted):startDateParsed.getFullYear()===endDateParsed.getFullYear()?"".concat(format(startDate,DATE_DAY_MONTH)," to ").concat(endDateFormatted):"".concat(startDateFormatted," to ").concat(endDateFormatted):startDateFormatted},convertDateToFieldShortDateObject:function convertDateToFieldShortDateObject(date){var _convertDateToFieldDa=convertDateToFieldDateObject(date);return{month:_convertDateToFieldDa.month,year:_convertDateToFieldDa.year}},isDateInFuture:function isDateInFuture(date){return isFuture(parseISO(date))},parseDateISO:function parseDateISO(date){return parseISO(date)},convertDateToFieldDateObject,getRandomDateInRange:function getRandomDateInRange(startDate,endDate){if(isSameDay(startDate,endDate))throw new Error("Start date and end date cannot be the same.");if(startDate>endDate)throw new Error("Start date cannot be greater than end date.");var daysDifference=differenceInDays(endDate,startDate);return addDays(startDate,Math.floor(Math.random()*(daysDifference+1)))},isWithinLastTwelveMonths:function isWithinLastTwelveMonths(date){return isWithinInterval(date,{start:getStartDateOfTwelveMonthsAgo(),end:new Date})},getStartDateOfTwelveMonthsAgo,getStartOfMonth},"subtractMonths",subtractMonths),"areDatesEqual",areDatesEqual),"tomorrow",(function tomorrow(){return endOfTomorrow()}))},"./src/client/utils/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Bc:()=>idNamesToValueLabels,OM:()=>_deepKeysToCamelCase});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/lodash/lodash.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var idNameToValueLabel=function idNameToValueLabel(_ref){return{value:_ref.id,label:_ref.name}},idNamesToValueLabels=function idNamesToValueLabels(idNames){return idNames.map(idNameToValueLabel)},_deepKeysToCamelCase=function deepKeysToCamelCase(x){return Array.isArray(x)?x.map(_deepKeysToCamelCase):(0,lodash__WEBPACK_IMPORTED_MODULE_23__.isPlainObject)(x)?Object.fromEntries(Object.entries(x).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),k=_ref3[0],v=_ref3[1];return[(0,lodash__WEBPACK_IMPORTED_MODULE_23__.camelCase)(k),_deepKeysToCamelCase(v)]}))):x}},"./src/client/utils/multiinstance.js":(__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.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var react__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/lodash/lodash.js"),react_redux__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),prop_types__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["type"],_excluded2=["type"],_excluded3=["dispatch"];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<a;e++)n[e]=r[e];return n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}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<s.length;r++)o=s[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var interceptDispatch=function interceptDispatch(dispatch,id){return function(_ref2){var type=_ref2.type,action=_objectWithoutProperties(_ref2,_excluded2);return dispatch(_objectSpread(_objectSpread({},action),{},{type,id}))}},connect=function connect(componentState2props,dispatch2props){for(var _len=arguments.length,rest=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)rest[_key-2]=arguments[_key];return(0,lodash__WEBPACK_IMPORTED_MODULE_28__.curry)((function(Component,name,idProp){componentState2props=componentState2props||function(x){return x};var Connected=react_redux__WEBPACK_IMPORTED_MODULE_29__.connect.apply(react_redux__WEBPACK_IMPORTED_MODULE_29__,[function(state,props){var _state$name;return componentState2props((null===(_state$name=state[name])||void 0===_state$name?void 0:_state$name[props[idProp]])||{},state,props)},dispatch2props&&function(dispatch,props){for(var _len2=arguments.length,rest=new Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)rest[_key2-2]=arguments[_key2];return dispatch2props.apply(void 0,[interceptDispatch(dispatch,props[idProp]),props].concat(rest))}].concat(rest))((function(_ref3){var dispatch=_ref3.dispatch,props=_objectWithoutProperties(_ref3,_excluded3);return react__WEBPACK_IMPORTED_MODULE_27__.createElement(Component,_extends({},props,{dispatch:interceptDispatch(dispatch,props[idProp])}))}));return Connected.propTypes=_defineProperty({},idProp,prop_types__WEBPACK_IMPORTED_MODULE_30___default().string.isRequired),Connected}))};const __WEBPACK_DEFAULT_EXPORT__=function(_ref4){var name=_ref4.name,component=_ref4.component,reducer=_ref4.reducer,actionPattern=_ref4.actionPattern,_ref4$connectArgs=_ref4.connectArgs,connectArgs=void 0===_ref4$connectArgs?[]:_ref4$connectArgs,_ref4$componentStateT=_ref4.componentStateToProps,componentStateToProps=void 0===_ref4$componentStateT?function(x){return x}:_ref4$componentStateT,dispatchToProps=_ref4.dispatchToProps,_ref4$idProp=_ref4.idProp,idProp=void 0===_ref4$idProp?"id":_ref4$idProp;console.assert(component,"component is required"),console.assert(reducer,"reducer is required"),console.assert(name,"name is required"),console.assert(actionPattern,"actionPattern is required");var Connected=connect.apply(void 0,[componentStateToProps,dispatchToProps].concat(_toConsumableArray(connectArgs)))(component)(name,idProp);return Connected.reducerSpread=_defineProperty({},name,function reducerDecorator(reducer,actionPattern){var idProp=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return function(){var _String$Object$Array$,_String$Object$Array$2,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,action=_objectWithoutProperties(_ref,_excluded),id=action[idProp],handleAction=null===(_String$Object$Array$=(_String$Object$Array$2={String:function String(){return type.startsWith(actionPattern)},Object:function(_Object){function Object(){return _Object.apply(this,arguments)}return Object.toString=function(){return _Object.toString()},Object}((function(){return Object.values(actionPattern).includes(type)})),Array:function Array(){return actionPattern.includes(type)},RegExp:function RegExp(){return type.match(actionPattern)}})[Object.prototype.toString.apply(actionPattern).slice(8,-1)])||void 0===_String$Object$Array$?void 0:_String$Object$Array$.call(_String$Object$Array$2);if(handleAction&&id){var nextState=reducer(state[id],_objectSpread({type},action));return(0,lodash__WEBPACK_IMPORTED_MODULE_28__.isEmpty)(nextState)?(0,lodash__WEBPACK_IMPORTED_MODULE_28__.omit)(state,id):_objectSpread(_objectSpread({},state),{},_defineProperty({},id,nextState))}return state}}(reducer,actionPattern,idProp)),Connected.displayName="multiInstance(".concat(name,")"),Connected}},"./src/client/utils/number-utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Dv:()=>currencyGBP,_:()=>decimal,hx:()=>indexToOrdinal,vE:()=>parseLocaleNumber});__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.regexp.constructor.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/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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 decimal=function decimal(number){return number||0===number?new Intl.NumberFormat("en-GB",{style:"decimal"}).format(number):null},currencyGBP=function currencyGBP(number){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maximumSignificantDigits:21};return number||0===number?new Intl.NumberFormat("en-GB",_objectSpread({style:"currency",currency:"GBP"},options)).format(number):null},indexToOrdinal=function indexToOrdinal(zeroBasedIndex){var naturalIndex=zeroBasedIndex+1,units=naturalIndex%10;return units>3||1===~~(naturalIndex/10)%10?naturalIndex+"th":1===units?naturalIndex+"st":2===units?naturalIndex+"nd":3===units?naturalIndex+"rd":void 0},parseLocaleNumber=function parseLocaleNumber(stringNumber){var locale=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB";if(!stringNumber.length)return stringNumber;var thousandSeparator=Intl.NumberFormat(locale).format(11111).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g,""),decimalSeparator=Intl.NumberFormat(locale).format(1.1).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g,"");return Number(stringNumber.replace(new RegExp("\\"+thousandSeparator,"g"),"").replace(new RegExp("\\"+decimalSeparator),"."))}},"./src/client/utils/pagination.js":module=>{module.exports={getPageOffset:function getPageOffset(_ref){var limit=_ref.limit,page=_ref.page,_ref$maxItems=_ref.maxItems,maxItems=void 0===_ref$maxItems?1e4:_ref$maxItems;return Math.min(limit*(page-1),maxItems-limit)||0},parsePage:function parsePage(page){var defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,pageNumber=parseInt(page,10);return isNaN(pageNumber)?defaultValue:pageNumber}}},"./src/client/utils/url.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>getQueryParamsFromLocation});__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.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),qs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_19__);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}var getQueryParamsFromLocation=function getQueryParamsFromLocation(location){var queryString=location.search.slice(1);return(0,lodash__WEBPACK_IMPORTED_MODULE_18__.omitBy)(function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},qs__WEBPACK_IMPORTED_MODULE_19___default().parse(queryString)),lodash__WEBPACK_IMPORTED_MODULE_18__.isEmpty)}},"./src/common/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var OPTIONS_YES_NO=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],EXPORT_INTEREST_STATUS={EXPORTING_TO:"currently_exporting",FUTURE_INTEREST:"future_interest",NOT_INTERESTED:"not_interested"};module.exports={DATE_DAY_LONG_FORMAT:"E, dd MMM yyyy",DATE_DAY_MONTH:"dd MMM",DATE_LONG_FORMAT_1:"d MMMM yyyy",DATE_LONG_FORMAT_2:"dd MMM yyyy",DATE_LONG_FORMAT_3:"yyyy-MM-dd",DATE_MEDIUM_FORMAT:"d MMM yyyy",DATE_TIME_MEDIUM_FORMAT:"d MMM yyyy, h:mmaaa",DATE_SHORT_FORMAT:"yyyy-MM",DATE_SHORT_FORMAT_2:"MMMM yyyy",INTERACTION_TIMESTAMP_FORMAT:"y-MM-d",UNITED_KINGDOM_ID:"80756b9a-5d95-e211-a939-e4115bead28a",UNITED_STATES_ID:"81756b9a-5d95-e211-a939-e4115bead28a",CANADA_ID:"5daf72a6-5d95-e211-a939-e4115bead28a",UK_REGIONS:{EAST_MIDLANDS:"844cd12a-6095-e211-a939-e4115bead28a",EAST_OF_ENGLAND:"864cd12a-6095-e211-a939-e4115bead28a",LONDON:"874cd12a-6095-e211-a939-e4115bead28a",NORTH_EAST:"814cd12a-6095-e211-a939-e4115bead28a",NORTHERN_IRELAND:"8e4cd12a-6095-e211-a939-e4115bead28a",NORTH_WEST:"824cd12a-6095-e211-a939-e4115bead28a",SCOTLAND:"8c4cd12a-6095-e211-a939-e4115bead28a",SOUTH_EAST:"884cd12a-6095-e211-a939-e4115bead28a",SOUTH_WEST:"894cd12a-6095-e211-a939-e4115bead28a",WALES:"8d4cd12a-6095-e211-a939-e4115bead28a",WEST_MIDLANDS:"854cd12a-6095-e211-a939-e4115bead28a",YORKSHIRE_AND_THE_HUMBER:"834cd12a-6095-e211-a939-e4115bead28a"},PRIMARY_LINK_PARAMS:{companies:"?archived[0]=false&sortby=modified_on:desc&page=1",contacts:"?archived[0]=false&sortby=modified_on:desc&page=1",events:"?page=1&sortby=modified_on:desc",interactions:"?page=1&sortby=date:desc",investments:"?page=1&sortby=created_on:desc",omis:"?page=1&sortby=created_on:desc",reconciliation:"?page=1&sortby=payment_due_date:asc&status=quote_accepted"},INVESTMENT_LINK_PARAM:"?sortby=-created_on&page=1",GENERIC_PHONE_NUMBER_REGEX:/^$|([0-9]|#|\+|\s|\(|\))+$/,OPTIONS_YES_NO,OPTION_YES:"yes",OPTION_NO:"no",FORM_LAYOUT:{THREE_QUARTERS:"three-quarters",ONE_THIRD:"one-third",TWO_THIRDS:"two-thirds",ONE_HALF:"one-half"},METHOD_PATCH:"PATCH",METHOD_POST:"POST",EXPORT_INTEREST_STATUS,EXPORT_INTEREST_STATUS_VALUES:Object.values(EXPORT_INTEREST_STATUS)}},"./src/common/formatAdviser.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.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.trim.js");module.exports={parseAdviserData:function parseAdviserData(advisers){return advisers.filter((function(adviser){return adviser.name&&adviser.name.trim().length})).map((function(_ref){var id=_ref.id,name=_ref.name,dit_team=_ref.dit_team;return{label:"".concat(name).concat(dit_team?", "+dit_team.name:""),chipLabel:name,value:id}}))}}},"./src/lib/group-export-countries.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.sort.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/web.dom-collections.for-each.js");var EXPORT_INTEREST_STATUS_VALUES=__webpack_require__("./src/common/constants.js").EXPORT_INTEREST_STATUS_VALUES;module.exports=function(countries){var buckets={};return Array.isArray(countries)&&(EXPORT_INTEREST_STATUS_VALUES.forEach((function(status){buckets[status]=[]}),{}),countries.forEach((function(item){var bucket=buckets[item.status];bucket&&bucket.push(item.country)})),EXPORT_INTEREST_STATUS_VALUES.forEach((function(status){buckets[status]=buckets[status].sort((function(a,b){return a.name.localeCompare(b.name)}))}))),buckets}},"./src/lib/urls.js":(module,__unused_webpack_exports,__webpack_require__)=>{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<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}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}__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var queryString=__webpack_require__("./node_modules/qs/lib/index.js"),_require=__webpack_require__("./src/common/constants.js"),INVESTMENT_LINK_PARAM=_require.INVESTMENT_LINK_PARAM,PRIMARY_LINK_PARAMS=_require.PRIMARY_LINK_PARAMS;function url(mountPoint,subMountPoint,path){var tokenPath;path?tokenPath=subMountPoint+path:path=tokenPath=subMountPoint||"/";var tokens=function getTokens(path){var tokens=[];return path.split("/").forEach((function(part){part.startsWith(":")&&tokens.push(part)})),tokens}(tokenPath);function getUrl(){for(var _len=arguments.length,params=new Array(_len),_key=0;_key<_len;_key++)params[_key]=arguments[_key];return function getPath(mountPoint,path,tokens,params){return"/"===path?mountPoint:[].concat(params).reduce((function(acc,param,index){return param&&param.constructor===Object?acc+(acc.includes("?")?"&":"?")+queryString.stringify(param):tokens[index]?acc.replace(tokens[index],param):acc}),mountPoint+path).replace(/\/:\w+\?\//,"/")}(mountPoint,tokenPath,tokens,params)}return getUrl.mountPoint=mountPoint,getUrl.route=path,getUrl}function createInteractionsSubApp(mountPoint){var pathPrefix=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{index:"/interactions"===mountPoint?url(mountPoint,PRIMARY_LINK_PARAMS.interactions,pathPrefix):url(mountPoint,pathPrefix),detail:url(mountPoint,pathPrefix+"/:interactionId"),create:url(mountPoint,pathPrefix+"/create"),createType:url(mountPoint,pathPrefix+"/create/:theme/:kind"),edit:url(mountPoint,pathPrefix+"/:interactionId/edit")}}module.exports={testing:{index:url("/testing")},external:{companiesHouse:function companiesHouse(companyNumber){return"https://beta.companieshouse.gov.uk/company/".concat(companyNumber)},exportWins:"https://www.exportwins.service.trade.gov.uk/",omis:"https://omis.trade.gov.uk/",dataWorkspace:{findExporters:"https://data.trade.gov.uk/datasets/4a0da123-a933-4250-90b5-df5cde34930b",accountPlans:function accountPlans(id){return"https://data.trade.gov.uk/visualisations/link/e69bbfde-0e68-49d3-ad81-ddffbad6bac6#p.CompanyID=".concat(id)}},nationalArchives:{copyright:"https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/",openGovLicence:"https://www.nationalarchives.gov.uk/doc/open-government-licence"},great:{companyProfile:function companyProfile(id){return"https://www.great.gov.uk/international/trade/suppliers/".concat(id)},privacyPolicy:"https://www.great.gov.uk/uk/privacy-policy/"},govUkHomepage:"https://www.gov.uk/",digitalWorkspace:{teams:"https://people.trade.gov.uk/teams/department-for-international-trade",accountManagement:"https://workspace.trade.gov.uk/working-at-dit/policies-and-guidance/strategic-relationship-account-management/"},helpCentre:{community:{roadmap:"https://data-services-help.trade.gov.uk/data-hub/updates/roadmap/data-hub-roadmap/ ",feedback:"https://data-services-help.trade.gov.uk/data-hub/crm-community/feedback-or-propose-changes",principles:"https://data-services-help.trade.gov.uk/data-hub/crm-community/crm-principles",training:"https://data-services-help.trade.gov.uk/data-hub/crm-community/training"},accessibilityStatement:"https://data-services-help.trade.gov.uk/data-hub/how-articles/data-hub-accessibility-statement/data-hub-accessibility-statement/",dhHomepage:"https://data-services-help.trade.gov.uk/data-hub/",policyFeedback:"https://data-services-help.trade.gov.uk/data-hub/how-articles/interactions-and-service-delivery/record-business-intelligence-interaction/",tradeAgreementGuidance:"https://data-services-help.trade.gov.uk/data-hub/how-articles/trade-agreement-activity/recording-trade-agreement-activity/",cookies:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/data-hub-cookie-policy/",privacyNotice:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/data-hub-privacy-notice/",allUpdates:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/",referrals:"https://data-services-help.trade.gov.uk/data-hub/updates/announcements/improving-collaboration-internal-referrals/",reminderAndSettings:"https://data-services-help.trade.gov.uk/data-hub/how-articles/reminders-and-email-notifications/"},euVIES:"https://ec.europa.eu/taxation_customs/vies/",cleanEnergyTransition:"https://www.gov.uk/government/consultations/aligning-uk-international-support-for-the-clean-energy-transition"},dashboard:{index:url("/"),investmentProjects:url("/investment-projects"),myTasks:url("/my-tasks")},oauth:{redirect:url("/oauth"),callback:url("/oauth/callback"),signout:url("/oauth/sign-out")},company:{exportWin:url("/api-proxy/v4/company","/:companyId/export-win")},community:{index:url("/community")},companies:{index:url("/companies",PRIMARY_LINK_PARAMS.companies),create:url("/companies","/create"),createFromDNB:url("/companies/create?duns_number=",":dunsNumber"),export:url("/companies","/export"),detail:url("/companies","/:companyId"),edit:url("/companies","/:companyId/edit"),audit:url("/companies","/:companyId/audit"),lists:{index:url("/companies","/:companyId/lists"),addRemove:url("/companies","/:companyId/lists/add-remove")},orders:url("/companies","/:companyId/orders"),details:url("/companies","/:companyId/details"),archive:url("/companies","/:companyId/archive"),contacts:url("/companies","/:companyId/contacts"),unarchive:url("/companies","/:companyId/unarchive"),businessDetails:url("/companies","/:companyId/business-details"),editOneList:url("/companies","/:companyId/edit-one-list"),editVirtualTeam:url("/companies","/:companyId/edit-one-list?step=oneListAdvisers"),interactions:createInteractionsSubApp("/companies","/:companyId/interactions"),manageCompanyList:url("/companies","/:companyId/manage-company-list"),referrals:{list:url("/my-referrals"),send:url("/companies","/:companyId/referrals/send"),details:url("/companies","/:companyId/referrals/:referralId"),help:url("/companies","/:companyId/referrals/:referralId/help"),interactions:createInteractionsSubApp("/companies","/:companyId/referrals/:referralId/interactions")},activity:{index:url("/companies","/:companyId/activity")},editHistory:{index:url("/companies","/:companyId/edit-history"),data:url("/companies","/:companyId/edit-history/data")},dnbHierarchy:{index:url("/companies","/:companyId/dnb-hierarchy"),data:url("/companies","/:companyId/dnb-hierarchy/data"),tree:url("/companies","/:companyId/company-tree"),relatedCompaniesCount:url("/v4/dnb","/:companyId/related-companies/count")},exports:{index:url("/companies","/:companyId/exports"),edit:url("/companies","/:companyId/exports/edit"),editCountries:url("/companies","/:companyId/exports/edit-countries"),history:{index:url("/companies","/:companyId/exports/history"),country:url("/companies","/:companyId/exports/history/:countryId")}},exportWins:{index:url("/exportwins"),confirmed:url("/exportwins/confirmed"),pending:url("/exportwins/pending"),rejected:url("/exportwins/rejected"),create:url("/companies","/:companyId/exportwins/create"),createFromExport:url("/companies","/:companyId/export/:exportId/exportwins/create"),createSuccess:url("/exportwins","/:winId/success"),customerFeedback:url("/companies","/:companyId/exportwins/:winId/customer-feedback"),editOfficerDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=officer_details"),editCreditForThisWin:url("/companies","/:companyId/exportwins/:winId/edit?step=credit_for_this_win"),editCustomerDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=customer_details"),editWinDetails:url("/companies","/:companyId/exportwins/:winId/edit?step=win_details"),editSupportProvided:url("/companies","/:companyId/exportwins/:winId/edit?step=support_provided"),editSummary:url("/companies","/:companyId/exportwins/:winId/edit?step=summary"),editSuccess:url("/companies","/:companyId/exportwins/:winId/edit-success")},overview:{index:url("/companies","/:companyId/overview")},hierarchies:{ghq:{add:url("/companies","/:companyId/hierarchies/ghq/:globalHqId/add"),link:url("/companies","/:companyId/hierarchies/ghq/search"),remove:url("/companies","/:companyId/hierarchies/ghq/remove")},subsidiaries:{index:url("/companies","/:companyId/subsidiaries"),search:url("/companies","/:companyId/hierarchies/subsidiaries/search"),add:url("/companies","/:companyId/hierarchies/subsidiaries/:subsidiaryCompanyId/add")}},investments:{companyInvestment:url("/companies","/:companyId/investments"),companyInvestmentProjects:url("/companies","/:companyId/investments/projects"),companyInvestmentProjectsWithSearch:url("/companies","/:companyId/investments/projects?page=1&sortby=created_on%3Adesc"),largeCapitalProfile:url("/companies","/:companyId/investments/large-capital-profile")},match:{index:url("/companies","/:companyId/match"),confirmation:url("/companies","/:companyId/match/:dunsNumber"),link:url("/companies","/:companyId/match/link"),merge:url("/companies","/:companyId/match/merge"),cannotFind:url("/companies","/:companyId/match/cannot-find")},subsidiaries:{index:url("/companies","/:companyId/subsidiaries"),link:url("/companies","/:companyId/subsidiaries/link")},accountManagement:{index:url("/companies","/:companyId/account-management"),strategy:{create:url("/companies","/:companyId/account-management/strategy/create"),edit:url("/companies","/:companyId/account-management/strategy/edit")},objectives:{create:url("/companies","/:companyId/account-management/objective/create"),edit:url("/companies","/:companyId/account-management/objective/:objectiveId/edit"),archived:url("/companies","/:companyId/account-management/objective/archived"),archive:url("/companies","/:companyId/account-management/objective/:objectiveId/archive")},advisers:{assign:url("/companies","/:companyId/account-management/advisers/assign"),remove:url("/companies","/:companyId/account-management/advisers/remove")}}},companyLists:{index:url("/company-lists"),delete:url("/company-lists","/:listId/delete"),rename:url("/company-lists","/:listId/rename")},contacts:{index:url("/contacts",PRIMARY_LINK_PARAMS.contacts),export:url("/contacts","/export"),audit:url("/contacts","/:contactId/audit"),contact:url("/contacts","/:contactId"),create:url("/contacts/create?company=",":companyId"),contactActivities:url("/contacts","/:contactId/interactions"),details:url("/contacts","/:contactId/details"),edit:url("/contacts","/:contactId/edit"),interactions:createInteractionsSubApp("/contacts","/:contactId/interactions"),archive:url("/contacts","/:contactId/archive"),unarchive:url("/contacts","/:contactId/unarchive")},events:{activity:{data:url("/events","/activity/data")},index:url("/events",PRIMARY_LINK_PARAMS.events),create:url("/events/create"),details:url("/events","/:eventId/details"),edit:url("/events","/:eventId/edit"),attendees:url("/events","/:eventId/attendees"),find:url("/events","/:eventId/attendees/find-new"),addAttendee:url("/events","/:eventId/attendees/create/:contactId"),aventri:{details:url("/events","/aventri/:aventriEventId/details"),detailsData:url("/events","/aventri/:aventriEventId/details/data"),registrationStatus:url("/events","/aventri/:aventriEventId/registration/:status"),registrationStatusData:url("/events","/aventri/:aventriEventId/registration/attendees/data")}},search:{index:url("/search"),type:url("/search","/:searchPath?")},interactions:_objectSpread(_objectSpread({},createInteractionsSubApp("/interactions")),{},{activeEvents:url("/activeEvents"),activeEventsData:url("/interactions","/activeEvents"),export:url("/interactions","/export"),exportSupportService:{details:url("/interactions","/ess/:essInteractionId/details"),detailsData:url("/interactions","/ess/:essInteractionId/details/data")}}),investments:{index:url("/investments",PRIMARY_LINK_PARAMS.investments),projects:{index:url("/investments","/projects"),export:url("/investments","/projects","/export"),details:url("/investments","/projects/:investmentId/details"),editDetails:url("/investments","/projects/:investmentId/edit-details"),editRequirements:url("/investments","/projects/:investmentId/edit-requirements"),editTeamMembers:url("/investments","/projects/:investmentId/edit-team-members"),editValue:url("/investments","/projects/:investmentId/edit-value"),propositions:url("/investments","/projects/:investmentId/propositions",INVESTMENT_LINK_PARAM),proposition:{details:url("/investments","/projects/:investmentId/propositions/:propositionId"),abandon:url("/investments","/projects/:investmentId/propositions/:propositionId/abandon"),document:{index:url("/investments","/projects/:investmentId/propositions/:propositionId/document"),delete:url("/investments","/projects/:investmentId/propositions/:propositionId/document/:documentId/delete")},complete:url("/investments","/projects/:investmentId/propositions/:propositionId/complete"),create:url("/investments","/projects/:investmentId/propositions/create/proposition")},team:url("/investments","/projects/:investmentId/team"),clientRelationshipManagement:url("/investments","/projects/:investmentId/edit-client-relationship-management"),interactions:createInteractionsSubApp("/investments/projects","/:investmentId/interactions",INVESTMENT_LINK_PARAM),status:url("/investments","/projects/:projectId/status"),admin:url("/investments","/projects/:projectId/admin"),create:url("/investments","/projects/create/:companyId"),editProjectManagement:url("/investments","/projects/:projectId/edit-project-management"),findAssociatedProject:url("/investments","/projects/:projectId/find-associated"),editAssociatedProject:url("/investments","/projects/:projectId/edit-associated/:associatedProjectId"),evidence:{index:url("/investments","/projects/:projectId/evidence"),add:url("/investments","/projects/:projectId/evidence/add-new"),delete:url("/investments","/projects/:projectId/evidence/:evidenceId/delete")},recipientCompany:url("/investments","/projects/:projectId/find-ukcompany"),editRecipientCompany:url("/investments","/projects/:projectId/edit-ukcompany/:companyId"),removeRecipientCompany:url("/investments","/projects/:projectId/remove-ukcompany"),removeAssociatedProject:url("/investments","/projects/:projectId/remove-associated"),evaluation:url("/investments","/projects/:projectId/evaluation"),tasks:{index:url("/investments","/projects/:projectId/tasks","?sortby=-created_on")}},profiles:{index:url("/investments","/profiles"),data:url("/investments","/profiles/data")},opportunities:{index:url("/investments","/opportunities"),opportunity:url("/investments","/opportunities/:opportunityId"),details:url("/investments","/opportunities/:opportunityId/details"),interactions:url("/investments","/opportunities/:opportunityId/interactions"),largeCapitalOpportunityDetails:url("/api-proxy/v4/large-capital-opportunity","/:opportunityId"),status:url("/investments","/opportunities/:opportunityId/status"),create:url("/investments","/opportunities/create")},editHistory:{index:url("/investments/projects","/:investmentId/edit-history"),data:url("/investments/projects","/:investmentId/edit-history/data")}},metadata:{likelihoodToLand:url("/api-proxy/v4/metadata","/likelihood-to-land"),investmentInvestorType:url("/api-proxy/v4/metadata","/investment-investor-type"),investmentInvolvement:url("/api-proxy/v4/metadata","/investment-involvement"),investmentSpecificProgramme:url("/api-proxy/v4/metadata","/investment-specific-programme"),investmentProjectStage:url("/api-proxy/v4/metadata","/investment-project-stage"),investmentBusinessActivity:url("/api-proxy/v4/metadata","/investment-business-activity"),investmentType:url("/api-proxy/v4/metadata","/investment-type"),investmentStrategicDriver:url("/api-proxy/v4/metadata","/investment-strategic-driver"),orderServiceType:url("/api-proxy/v4/metadata","/order-service-type"),orderCancellationReason:url("/api-proxy/v4/metadata","/order-cancellation-reason"),omisMarket:url("/api-proxy/v4/metadata","/omis-market"),salaryRange:url("/api-proxy/v4/metadata","/salary-range"),fdiValue:url("/api-proxy/v4/metadata","/fdi-value"),fdiType:url("/api-proxy/v4/metadata","/fdi-type"),turnover:url("/api-proxy/v4/metadata","/turnover"),sector:url("/api-proxy/v4/metadata","/sector"),locationType:url("/api-proxy/v4/metadata","/location-type"),eventType:url("/api-proxy/v4/metadata","/event-type"),programme:url("/api-proxy/v4/metadata","/programme"),businessType:url("/api-proxy/v4/metadata","/business-type"),evidenceTag:url("/api-proxy/v4/metadata","/evidence-tag"),employeeRange:url("/api-proxy/v4/metadata","/employee-range"),country:url("/api-proxy/v4/metadata","/country"),ukRegion:url("/api-proxy/v4/metadata","/uk-region"),administrativeArea:url("/api-proxy/v4/metadata","/administrative-area"),referralSourceWebsite:url("/api-proxy/v4/metadata","/referral-source-website"),referralSourceMarketing:url("/api-proxy/v4/metadata","/referral-source-marketing"),referralSourceActivity:url("/api-proxy/v4/metadata","/referral-source-activity"),headquarterType:url("/api-proxy/v4/metadata","/headquarter-type"),service:url("/api-proxy/v4/metadata","/service"),communicationChannel:url("/api-proxy/v4/metadata","/communication-channel"),team:url("/api-proxy/v4/metadata","/team"),policyArea:url("/api-proxy/v4/metadata","/policy-area"),policyIssueType:url("/api-proxy/v4/metadata","/policy-issue-type"),serviceDeliveryStatus:url("/api-proxy/v4/metadata","/service-delivery-status"),capitalInvestmentInvestorType:url("/api-proxy/v4/metadata/capital-investment","/investor-type"),capitalInvestmentRequiredChecksConducted:url("/api-proxy/v4/metadata/capital-investment","/required-checks-conducted"),capitalInvestmentDealTicketSize:url("/api-proxy/v4/metadata/capital-investment","/deal-ticket-size"),capitalInvestmentLargeCapitalInvestment:url("/api-proxy/v4/metadata/capital-investment","/large-capital-investment"),capitalInvestmentLargeCapitalInvestmentType:url("/api-proxy/v4/metadata/capital-investment","/large-capital-investment-type"),capitalInvestmentReturnRate:url("/api-proxy/v4/metadata/capital-investment","/return-rate"),capitalInvestmentTimeHorizon:url("/api-proxy/v4/metadata/capital-investment","/time-horizon"),capitalInvestmentRestriction:url("/api-proxy/v4/metadata/capital-investment","/restriction"),capitalInvestmentConstructionRisk:url("/api-proxy/v4/metadata/capital-investment","/construction-risk"),capitalInvestmentEquityPercentage:url("/api-proxy/v4/metadata/capital-investment","/equity-percentage"),capitalInvestmentDesiredDealRole:url("/api-proxy/v4/metadata/capital-investment","/desired-deal-role"),capitalInvestmentAssetClassInterest:url("/api-proxy/v4/metadata/capital-investment","/asset-class-interest"),largeCapitalOpportunityMetadata:url("/api-proxy/v4/metadata/large-capital-opportunity","/opportunity-value-type"),oneListTier:url("/api-proxy/v4/metadata","/one-list-tier"),tradeAgreement:url("/api-proxy/v4/metadata","/trade-agreement")},omis:{index:url("/omis",PRIMARY_LINK_PARAMS.omis),export:url("/omis","/export"),create:{companySelect:url("/omis","/create"),form:url("/omis","/create/:companyId")},reconciliation:url("/omis/reconciliation",PRIMARY_LINK_PARAMS.reconciliation),order:url("/omis","/:orderId"),paymentReconciliation:url("/omis","/:orderId","/edit/payment-reconciliation"),paymentReceipt:url("/omis","/:orderId/payment-receipt"),workOrder:url("/omis","/:orderId/work-order"),quote:url("/omis","/:orderId/quote"),edit:{quote:url("/omis","/:orderId/edit/quote-details"),assignees:url("/omis","/:orderId/edit/assignees"),subscribers:url("/omis","/:orderId/edit/subscribers"),internalInfo:url("/omis","/:orderId/edit/internal-details"),invoiceDetails:url("/omis","/:orderId/edit/invoice-details"),billingAddress:url("/omis","/:orderId/edit/billing-address"),vatStatus:url("/omis","/:orderId/edit/vat-status"),assigneeTime:url("/omis","/:orderId/edit/assignee-time"),contact:url("/omis","/:orderId/edit/contact"),setLeadAssignee:url("/omis","/:orderId/edit/lead-adviser/:adviserId")},cancel:url("/omis","/:orderId/edit/cancel-order"),complete:url("/omis","/:orderId/edit/complete-order"),paymentReceiptReconciliation:url("/omis","/:orderId/reconciliation/payment-receipt")},support:url("/support"),reminders:{index:url("/reminders"),investments:{estimatedLandDate:url("/reminders/investments-estimated-land-dates"),noRecentInteraction:url("/reminders/investments-no-recent-interactions"),outstandingPropositions:url("/reminders/investments-outstanding-propositions")},exports:{noRecentInteractions:url("/reminders/companies-no-recent-interactions"),newInteractions:url("/reminders/companies-new-interactions")},myTasks:{dueDateApproaching:url("/reminders/my-tasks-due-date-approaching"),taskAssignedToMeFromOthers:url("/reminders/my-tasks-task-assigned-to-me-from-others"),taskAmendedByOthers:url("/reminders/my-tasks-task-amended-by-others"),taskOverdue:url("/reminders/my-tasks-task-overdue"),taskCompleted:url("/reminders/my-tasks-task-completed")},settings:{index:url("/reminders/settings"),investments:{estimatedLandDate:url("/reminders/settings/investments-estimated-land-dates"),noRecentInteraction:url("/reminders/settings/investments-no-recent-interactions")},exports:{noRecentInteraction:url("/reminders/settings/companies-no-recent-interactions"),newInteraction:url("/reminders/settings/companies-new-interactions")},myTasks:{dueDateApproaching:url("/reminders/settings/my-tasks-due-date-approaching"),taskAssignedToMeFromOthers:url("/reminders/settings/my-tasks-task-assigned-to-me-from-others"),taskAmendedByOthers:url("/reminders/settings/my-tasks-task-amended-by-others"),taskOverdue:url("/reminders/settings/my-tasks-task-overdue"),taskCompleted:url("/reminders/settings/my-tasks-task-completed")}}},exportPipeline:{index:url("/export"),create:url("/export/create?companyId=",":companyId"),details:url("/export","/:exportId/details"),edit:url("/export","/:exportId/edit"),delete:url("/export","/:exportId/delete")},tasks:{details:url("/tasks","/:taskId/details"),create:url("/tasks","/create"),createInvestmentProject:url("/tasks/create?investmentProjectId=",":investmentProjectId"),createInteraction:url("/tasks/create?interactionId=",":interactionId"),createCopyTask:url("/tasks/create?copyTaskId=",":copyTaskId"),edit:url("/tasks","/:taskId/edit"),statusComplete:url("/tasks","/:taskId/status-complete"),statusActive:url("/tasks","/:taskId/status-active"),archive:url("/tasks","/:taskId/archive"),unarchive:url("/tasks","/:taskId/unarchive")}}},"./src/modules/permissions/filters.js":(module,__unused_webpack_exports,__webpack_require__)=>{var _require=__webpack_require__("./node_modules/lodash/lodash.js"),get=_require.get,intersection=_require.intersection;module.exports={filterNonPermittedItem:function filterNonPermittedItem(userPermissions){return function(item){return!get(item,"permissions.length",0)||intersection(item.permissions,userPermissions).length>0}},filterDisabledOption:function filterDisabledOption(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref$currentValue=_ref.currentValue,currentValue=void 0===_ref$currentValue?null:_ref$currentValue,createdOn=_ref.createdOn,createdOnTime=Date.parse(createdOn)||Date.now();return function(item){if(!item.disabled_on)return!0;var isDisabled=Date.parse(item.disabled_on)>createdOnTime,isCurrentValue=item.id===currentValue;return isDisabled||isCurrentValue}}}},"./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Form/elements/__stories__/FieldAddAnother.stories":["./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx",3220],"./Form/elements/__stories__/FieldAddAnother.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx",3220],"./Form/elements/__stories__/FieldCheckboxes.stories":["./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx",8141],"./Form/elements/__stories__/FieldCheckboxes.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx",8141],"./Form/elements/__stories__/FieldChoice.stories":["./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx",7163],"./Form/elements/__stories__/FieldChoice.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldChoice.stories.jsx",7163],"./Form/elements/__stories__/FieldCompaniesTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx",6286],"./Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx",6286],"./Form/elements/__stories__/FieldCurrency.stories":["./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx",1555],"./Form/elements/__stories__/FieldCurrency.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx",1555],"./Form/elements/__stories__/FieldDate.stories":["./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx",8262],"./Form/elements/__stories__/FieldDate.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx",8262],"./Form/elements/__stories__/FieldHelp.stories":["./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx",3943],"./Form/elements/__stories__/FieldHelp.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx",3943],"./Form/elements/__stories__/FieldInput.stories":["./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx",7310],"./Form/elements/__stories__/FieldInput.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx",7310],"./Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx",8575],"./Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx",8575],"./Form/elements/__stories__/FieldSelect.stories":["./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx",8458],"./Form/elements/__stories__/FieldSelect.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx",8458],"./Form/elements/__stories__/FieldTypeahead.stories":["./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx",6653],"./Form/elements/__stories__/FieldTypeahead.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx",6653],"./Form/elements/__stories__/FieldWrapper.stories":["./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx",1791],"./Form/elements/__stories__/FieldWrapper.stories.jsx":["./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx",1791]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return __webpack_require__.e(ids[1]).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$",module.exports=webpackAsyncContext},"./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./ArchivePanel/__stories__/ArchivePanel.stories":["./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx",5328],"./ArchivePanel/__stories__/ArchivePanel.stories.jsx":["./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx",5328],"./Badge/__stories__/Badge.stories":["./src/client/components/Badge/__stories__/Badge.stories.jsx",362],"./Badge/__stories__/Badge.stories.jsx":["./src/client/components/Badge/__stories__/Badge.stories.jsx",362],"./ButtonLink/__stories__/ButtonLink.stories":["./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx",8840],"./ButtonLink/__stories__/ButtonLink.stories.jsx":["./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx",8840],"./CheckboxGroupField/__stories__/CheckboxGroupField.stories":["./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx",9768],"./CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx":["./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx",9768],"./Chip/__stories__/Chip.stories":["./src/client/components/Chip/__stories__/Chip.stories.jsx",6704],"./Chip/__stories__/Chip.stories.jsx":["./src/client/components/Chip/__stories__/Chip.stories.jsx",6704],"./CollectionList/__stories__/CollectionHeader.stories":["./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx",9355],"./CollectionList/__stories__/CollectionHeader.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx",9355],"./CollectionList/__stories__/CollectionItem.stories":["./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx",4785],"./CollectionList/__stories__/CollectionItem.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx",4785],"./CollectionList/__stories__/CollectionList.stories":["./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx",3152],"./CollectionList/__stories__/CollectionList.stories.jsx":["./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx",3152],"./ContactInformation/__stories__/ContactInformation.stories":["./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx",8964],"./ContactInformation/__stories__/ContactInformation.stories.jsx":["./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx",8964],"./DataHubHeader/__stories__/DataHubHeader.stories":["./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx",5074],"./DataHubHeader/__stories__/DataHubHeader.stories.jsx":["./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx",5074],"./DateField/__stories__/DateField.stories":["./src/client/components/DateField/__stories__/DateField.stories.jsx",1506],"./DateField/__stories__/DateField.stories.jsx":["./src/client/components/DateField/__stories__/DateField.stories.jsx",1506],"./DownloadDataHeader/__stories__/DownloadDataHeader.stories":["./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx",4786],"./DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx":["./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx",4786],"./EntityList/__stories__/EntityList.stories":["./src/client/components/EntityList/__stories__/EntityList.stories.jsx",2614],"./EntityList/__stories__/EntityList.stories.jsx":["./src/client/components/EntityList/__stories__/EntityList.stories.jsx",2614],"./ErrorSummary/__stories__/ErrorSummary.stories":["./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx",4108],"./ErrorSummary/__stories__/ErrorSummary.stories.jsx":["./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx",4108],"./Footer/__stories__/Footer.stories":["./src/client/components/Footer/__stories__/Footer.stories.jsx",2142],"./Footer/__stories__/Footer.stories.jsx":["./src/client/components/Footer/__stories__/Footer.stories.jsx",2142],"./Form/__stories__/Form.stories":["./src/client/components/Form/__stories__/Form.stories.jsx",9580],"./Form/__stories__/Form.stories.jsx":["./src/client/components/Form/__stories__/Form.stories.jsx",9580],"./InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories":["./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx",280],"./InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx":["./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx",280],"./InvestmentReminders/__stories__/InvestmentReminders.stories":["./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx",8490],"./InvestmentReminders/__stories__/InvestmentReminders.stories.jsx":["./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx",8490],"./LocalHeader/__stories__/FlashMessages.stories":["./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx",4350],"./LocalHeader/__stories__/FlashMessages.stories.jsx":["./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx",4350],"./LocalHeader/__stories__/LocalHeader.stories":["./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx",7546],"./LocalHeader/__stories__/LocalHeader.stories.jsx":["./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx",7546],"./LocalHeaderDetails/__stories__/LocalHeaderDetails.stories":["./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx",1684],"./LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx":["./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx",1684],"./Main/__stories__/Main.stories":["./src/client/components/Main/__stories__/Main.stories.jsx",1322],"./Main/__stories__/Main.stories.jsx":["./src/client/components/Main/__stories__/Main.stories.jsx",1322],"./Metadata/__stories__/Metadata.stories":["./src/client/components/Metadata/__stories__/Metadata.stories.jsx",2558],"./Metadata/__stories__/Metadata.stories.jsx":["./src/client/components/Metadata/__stories__/Metadata.stories.jsx",2558],"./NewWindowLink/__stories__/NewWindowLink.stories":["./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx",1186],"./NewWindowLink/__stories__/NewWindowLink.stories.jsx":["./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx",1186],"./NotificationBadge/__stories__/NotificationBadge.stories":["./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx",2342],"./NotificationBadge/__stories__/NotificationBadge.stories.jsx":["./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx",2342],"./Pagination/__stories__/Pagination.stories":["./src/client/components/Pagination/__stories__/Pagination.stories.jsx",3480],"./Pagination/__stories__/Pagination.stories.jsx":["./src/client/components/Pagination/__stories__/Pagination.stories.jsx",3480],"./Panel/__stories__/Panel.stories":["./src/client/components/Panel/__stories__/Panel.stories.jsx",6214],"./Panel/__stories__/Panel.stories.jsx":["./src/client/components/Panel/__stories__/Panel.stories.jsx",6214],"./ReadMore/__stories__/ReadMore.stories":["./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx",7322],"./ReadMore/__stories__/ReadMore.stories.jsx":["./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx",7322],"./Resource/__stories__/Resource.stories":["./src/client/components/Resource/__stories__/Resource.stories.jsx",2496],"./Resource/__stories__/Resource.stories.jsx":["./src/client/components/Resource/__stories__/Resource.stories.jsx",2496],"./RoutedInput/__stories__/RoutedInput.stories":["./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx",6846],"./RoutedInput/__stories__/RoutedInput.stories.jsx":["./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx",6846],"./RoutedInputField/__stories__/RoutedInputFieldFilter.stories":["./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx",4428],"./RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx":["./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx",4428],"./RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories":["./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx",1796],"./RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx":["./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx",1796],"./StatusMessage/__stories__/DismissableStatusMessage.stories":["./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx",1468],"./StatusMessage/__stories__/DismissableStatusMessage.stories.jsx":["./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx",1468],"./StatusMessage/__stories__/StatusMessage.stories":["./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx",3318],"./StatusMessage/__stories__/StatusMessage.stories.jsx":["./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx",3318],"./SummaryList/__stories__/SummaryList.stories":["./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx",1586],"./SummaryList/__stories__/SummaryList.stories.jsx":["./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx",1586],"./SummaryTable/__stories__/SummaryTable.stories":["./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx",1288],"./SummaryTable/__stories__/SummaryTable.stories.jsx":["./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx",1288],"./TabNav/__stories__/TabNav.stories":["./src/client/components/TabNav/__stories__/TabNav.stories.jsx",2192],"./TabNav/__stories__/TabNav.stories.jsx":["./src/client/components/TabNav/__stories__/TabNav.stories.jsx",2192],"./Tag/__stories__/Tag.stories":["./src/client/components/Tag/__stories__/Tag.stories.jsx",1122],"./Tag/__stories__/Tag.stories.jsx":["./src/client/components/Tag/__stories__/Tag.stories.jsx",1122],"./Task/__stories__/Error.stories":["./src/client/components/Task/__stories__/Error.stories.jsx",9925],"./Task/__stories__/Error.stories.jsx":["./src/client/components/Task/__stories__/Error.stories.jsx",9925],"./Task/__stories__/ProgressIndicator.stories":["./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx",5099],"./Task/__stories__/ProgressIndicator.stories.jsx":["./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx",5099],"./Task/__stories__/Task.stories":["./src/client/components/Task/__stories__/Task.stories.jsx",5158],"./Task/__stories__/Task.stories.jsx":["./src/client/components/Task/__stories__/Task.stories.jsx",5158],"./Timeline/__stories__/Timeline.stories":["./src/client/components/Timeline/__stories__/Timeline.stories.jsx",790],"./Timeline/__stories__/Timeline.stories.jsx":["./src/client/components/Timeline/__stories__/Timeline.stories.jsx",790],"./ToggleSection/__stories__/ToggleSection.stories":["./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx",710],"./ToggleSection/__stories__/ToggleSection.stories.jsx":["./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx",710],"./Typeahead/__stories__/Typeahead.stories":["./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx",1310],"./Typeahead/__stories__/Typeahead.stories.jsx":["./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx",1310]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return __webpack_require__.e(ids[1]).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$",module.exports=webpackAsyncContext},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"?4f7e":()=>{}},__webpack_require__=>{__webpack_require__.O(0,[9892],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]);
\ No newline at end of file
diff --git a/project.json b/project.json
index 9e45cbe7222..23aaa146cf2 100644
--- a/project.json
+++ b/project.json
@@ -1 +1 @@
-{"generatedAt":1725532962619,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@babel/plugin-transform-optional-chaining":"7.24.8","@cypress/code-coverage":"3.12.45","chai":"4.5.0","chai-as-promised":"7.1.2","chai-subset":"1.6.0","cypress":"13.13.3","cypress-axe":"1.5.0","sinon":"18.0.0","sinon-chai":"3.7.0"},"packageManager":{"type":"npm","version":"10.2.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"javascript","storybookPackages":{"@storybook/manager-api":{"version":"8.2.9"},"@storybook/react":{"version":"8.2.9"},"@storybook/react-webpack5":{"version":"8.2.9"},"storybook":{"version":"8.2.9"}},"addons":{"@storybook/addon-essentials":{"version":"8.2.9"},"@storybook/addon-a11y":{"version":"8.2.9"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@chromatic-com/storybook":{"version":"1.6.1"}}}
+{"generatedAt":1725532987711,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@babel/plugin-transform-optional-chaining":"7.24.8","@cypress/code-coverage":"3.12.45","chai":"4.5.0","chai-as-promised":"7.1.2","chai-subset":"1.6.0","cypress":"13.13.3","cypress-axe":"1.5.0","sinon":"18.0.0","sinon-chai":"3.7.0"},"packageManager":{"type":"npm","version":"10.2.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"javascript","storybookPackages":{"@storybook/manager-api":{"version":"8.2.9"},"@storybook/react":{"version":"8.2.9"},"@storybook/react-webpack5":{"version":"8.2.9"},"storybook":{"version":"8.2.9"}},"addons":{"@storybook/addon-essentials":{"version":"8.2.9"},"@storybook/addon-a11y":{"version":"8.2.9"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@chromatic-com/storybook":{"version":"1.6.1"}}}
diff --git a/runtime~main.75988f1c.iframe.bundle.js b/runtime~main.2895dfff.iframe.bundle.js
similarity index 99%
rename from runtime~main.75988f1c.iframe.bundle.js
rename to runtime~main.2895dfff.iframe.bundle.js
index ec97b0eecd7..bc549a051a9 100644
--- a/runtime~main.75988f1c.iframe.bundle.js
+++ b/runtime~main.2895dfff.iframe.bundle.js
@@ -1 +1 @@
-(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({280:"InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories",362:"Badge-__stories__-Badge-stories",710:"ToggleSection-__stories__-ToggleSection-stories",790:"Timeline-__stories__-Timeline-stories",1122:"Tag-__stories__-Tag-stories",1186:"NewWindowLink-__stories__-NewWindowLink-stories",1288:"SummaryTable-__stories__-SummaryTable-stories",1310:"Typeahead-__stories__-Typeahead-stories",1322:"Main-__stories__-Main-stories",1468:"StatusMessage-__stories__-DismissableStatusMessage-stories",1506:"DateField-__stories__-DateField-stories",1555:"Form-elements-__stories__-FieldCurrency-stories",1586:"SummaryList-__stories__-SummaryList-stories",1684:"LocalHeaderDetails-__stories__-LocalHeaderDetails-stories",1791:"Form-elements-__stories__-FieldWrapper-stories",1796:"RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories",2142:"Footer-__stories__-Footer-stories",2192:"TabNav-__stories__-TabNav-stories",2342:"NotificationBadge-__stories__-NotificationBadge-stories",2496:"Resource-__stories__-Resource-stories",2558:"Metadata-__stories__-Metadata-stories",2614:"EntityList-__stories__-EntityList-stories",3152:"CollectionList-__stories__-CollectionList-stories",3220:"Form-elements-__stories__-FieldAddAnother-stories",3318:"StatusMessage-__stories__-StatusMessage-stories",3480:"Pagination-__stories__-Pagination-stories",3943:"Form-elements-__stories__-FieldHelp-stories",4108:"ErrorSummary-__stories__-ErrorSummary-stories",4350:"LocalHeader-__stories__-FlashMessages-stories",4428:"RoutedInputField-__stories__-RoutedInputFieldFilter-stories",4785:"CollectionList-__stories__-CollectionItem-stories",4786:"DownloadDataHeader-__stories__-DownloadDataHeader-stories",5074:"DataHubHeader-__stories__-DataHubHeader-stories",5099:"Task-__stories__-ProgressIndicator-stories",5158:"Task-__stories__-Task-stories",5328:"ArchivePanel-__stories__-ArchivePanel-stories",6214:"Panel-__stories__-Panel-stories",6286:"Form-elements-__stories__-FieldCompaniesTypeahead-stories",6653:"Form-elements-__stories__-FieldTypeahead-stories",6704:"Chip-__stories__-Chip-stories",6846:"RoutedInput-__stories__-RoutedInput-stories",7163:"Form-elements-__stories__-FieldChoice-stories",7310:"Form-elements-__stories__-FieldInput-stories",7322:"ReadMore-__stories__-ReadMore-stories",7546:"LocalHeader-__stories__-LocalHeader-stories",8141:"Form-elements-__stories__-FieldCheckboxes-stories",8262:"Form-elements-__stories__-FieldDate-stories",8458:"Form-elements-__stories__-FieldSelect-stories",8490:"InvestmentReminders-__stories__-InvestmentReminders-stories",8575:"Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories",8840:"ButtonLink-__stories__-ButtonLink-stories",8964:"ContactInformation-__stories__-ContactInformation-stories",9355:"CollectionList-__stories__-CollectionHeader-stories",9580:"Form-__stories__-Form-stories",9768:"CheckboxGroupField-__stories__-CheckboxGroupField-stories",9925:"Task-__stories__-Error-stories"}[chunkId]||chunkId)+"."+{280:"543b1157",362:"d7002529",710:"a4b2f3f4",790:"ee162c05",1122:"5396d9bc",1186:"bc99cae8",1288:"e1724585",1310:"46a6d417",1322:"40d8b332",1468:"e52aca34",1506:"0d3c763d",1555:"5faf7ef6",1586:"74e475b7",1684:"1436a89e",1791:"9c34d6c0",1796:"b924ceed",2142:"e908d87b",2192:"81dc4abd",2342:"258e8d65",2461:"7ea4cec8",2496:"588fa016",2558:"671f2e30",2614:"23c51491",3152:"8691265c",3220:"d70a4b86",3318:"adc1717f",3480:"3e002eea",3943:"364c010f",4108:"9e7f7875",4350:"c0105f13",4428:"95affcbf",4785:"fb28a17b",4786:"31293d1a",5074:"5f588d08",5099:"58be298a",5158:"d90e94c1",5328:"a6e1d4a3",6214:"621d773d",6286:"4e0928c8",6648:"bfc646f7",6653:"585d39fd",6704:"55d2ec72",6846:"80b39b68",7163:"a2c648fb",7227:"5a37dcdc",7310:"0a01d6e1",7322:"e4e65882",7364:"3d309c2f",7546:"e83df89e",7648:"f7e40f65",8141:"de9d0bef",8262:"58b228e6",8458:"6bf0cfaa",8490:"a33a7788",8575:"4144a6d4",8609:"51dc386d",8840:"87559a40",8964:"c4b5b09a",9355:"eae432df",9580:"58f0d4e2",9768:"8dbf99cf",9925:"bbec141d"}[chunkId]+".iframe.bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="data-hub-frontend:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",script.timeout=120,__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","data-hub-frontend:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
\ No newline at end of file
+(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({280:"InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories",362:"Badge-__stories__-Badge-stories",710:"ToggleSection-__stories__-ToggleSection-stories",790:"Timeline-__stories__-Timeline-stories",1122:"Tag-__stories__-Tag-stories",1186:"NewWindowLink-__stories__-NewWindowLink-stories",1288:"SummaryTable-__stories__-SummaryTable-stories",1310:"Typeahead-__stories__-Typeahead-stories",1322:"Main-__stories__-Main-stories",1468:"StatusMessage-__stories__-DismissableStatusMessage-stories",1506:"DateField-__stories__-DateField-stories",1555:"Form-elements-__stories__-FieldCurrency-stories",1586:"SummaryList-__stories__-SummaryList-stories",1684:"LocalHeaderDetails-__stories__-LocalHeaderDetails-stories",1791:"Form-elements-__stories__-FieldWrapper-stories",1796:"RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories",2142:"Footer-__stories__-Footer-stories",2192:"TabNav-__stories__-TabNav-stories",2342:"NotificationBadge-__stories__-NotificationBadge-stories",2496:"Resource-__stories__-Resource-stories",2558:"Metadata-__stories__-Metadata-stories",2614:"EntityList-__stories__-EntityList-stories",3152:"CollectionList-__stories__-CollectionList-stories",3220:"Form-elements-__stories__-FieldAddAnother-stories",3318:"StatusMessage-__stories__-StatusMessage-stories",3480:"Pagination-__stories__-Pagination-stories",3943:"Form-elements-__stories__-FieldHelp-stories",4108:"ErrorSummary-__stories__-ErrorSummary-stories",4350:"LocalHeader-__stories__-FlashMessages-stories",4428:"RoutedInputField-__stories__-RoutedInputFieldFilter-stories",4785:"CollectionList-__stories__-CollectionItem-stories",4786:"DownloadDataHeader-__stories__-DownloadDataHeader-stories",5074:"DataHubHeader-__stories__-DataHubHeader-stories",5099:"Task-__stories__-ProgressIndicator-stories",5158:"Task-__stories__-Task-stories",5328:"ArchivePanel-__stories__-ArchivePanel-stories",6214:"Panel-__stories__-Panel-stories",6286:"Form-elements-__stories__-FieldCompaniesTypeahead-stories",6653:"Form-elements-__stories__-FieldTypeahead-stories",6704:"Chip-__stories__-Chip-stories",6846:"RoutedInput-__stories__-RoutedInput-stories",7163:"Form-elements-__stories__-FieldChoice-stories",7310:"Form-elements-__stories__-FieldInput-stories",7322:"ReadMore-__stories__-ReadMore-stories",7546:"LocalHeader-__stories__-LocalHeader-stories",8141:"Form-elements-__stories__-FieldCheckboxes-stories",8262:"Form-elements-__stories__-FieldDate-stories",8458:"Form-elements-__stories__-FieldSelect-stories",8490:"InvestmentReminders-__stories__-InvestmentReminders-stories",8575:"Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories",8840:"ButtonLink-__stories__-ButtonLink-stories",8964:"ContactInformation-__stories__-ContactInformation-stories",9355:"CollectionList-__stories__-CollectionHeader-stories",9580:"Form-__stories__-Form-stories",9768:"CheckboxGroupField-__stories__-CheckboxGroupField-stories",9925:"Task-__stories__-Error-stories"}[chunkId]||chunkId)+"."+{280:"543b1157",362:"d7002529",710:"a4b2f3f4",790:"ee162c05",1122:"5396d9bc",1186:"bc99cae8",1288:"e1724585",1310:"46a6d417",1322:"40d8b332",1468:"e52aca34",1506:"0d3c763d",1555:"5faf7ef6",1586:"74e475b7",1684:"1436a89e",1791:"9c34d6c0",1796:"b924ceed",2142:"e908d87b",2192:"81dc4abd",2342:"258e8d65",2461:"7ea4cec8",2496:"588fa016",2558:"671f2e30",2614:"23c51491",3152:"8691265c",3220:"d70a4b86",3318:"adc1717f",3480:"3e002eea",3943:"364c010f",4108:"9e7f7875",4350:"c0105f13",4428:"95affcbf",4785:"fb28a17b",4786:"31293d1a",5074:"5f588d08",5099:"58be298a",5158:"d90e94c1",5328:"a6e1d4a3",6214:"621d773d",6286:"4e0928c8",6648:"bfc646f7",6653:"585d39fd",6704:"55d2ec72",6846:"80b39b68",7163:"623c005c",7227:"5a37dcdc",7310:"0a01d6e1",7322:"e4e65882",7364:"3d309c2f",7546:"e83df89e",7648:"f7e40f65",8141:"de9d0bef",8262:"58b228e6",8458:"6bf0cfaa",8490:"a33a7788",8575:"4144a6d4",8609:"51dc386d",8840:"87559a40",8964:"c4b5b09a",9355:"eae432df",9580:"58f0d4e2",9768:"8dbf99cf",9925:"bbec141d"}[chunkId]+".iframe.bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="data-hub-frontend:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",script.timeout=120,__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","data-hub-frontend:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
\ No newline at end of file