diff --git a/ArchivePanel-__stories__-ArchivePanel-stories.395d18f8.iframe.bundle.js b/ArchivePanel-__stories__-ArchivePanel-stories.395d18f8.iframe.bundle.js new file mode 100644 index 00000000000..8d967f759d6 --- /dev/null +++ b/ArchivePanel-__stories__-ArchivePanel-stories.395d18f8.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5328],{"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ArchivedItem:()=>ArchivedItem,AutomaticallyArchivedItem:()=>AutomaticallyArchivedItem,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ArchivePanel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ArchivePanel/index.jsx");const archivist={first_name:"Example",last_name:"Archivist"},__WEBPACK_DEFAULT_EXPORT__={title:"ArchivePanel",parameters:{component:ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A}},ArchivedItem=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A,{isArchived:!0,archivedBy:archivist,archivedOn:"2022-01-01",archiveReason:"Example archival reason",unarchiveUrl:"#",type:"item"});ArchivedItem.story={name:"Archived item"};const AutomaticallyArchivedItem=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A,{isArchived:!0,archivedBy:null,archivedOn:"2022-01-01",archiveReason:"Example archival reason",unarchiveUrl:"#",type:"item"});AutomaticallyArchivedItem.story={name:"Automatically archived item"},ArchivedItem.parameters={...ArchivedItem.parameters,docs:{...ArchivedItem.parameters?.docs,source:{originalSource:"() => ",...ArchivedItem.parameters?.docs?.source}}},AutomaticallyArchivedItem.parameters={...AutomaticallyArchivedItem.parameters,docs:{...AutomaticallyArchivedItem.parameters?.docs,source:{originalSource:"() => ",...AutomaticallyArchivedItem.parameters?.docs?.source}}};const __namedExportsOrder=["ArchivedItem","AutomaticallyArchivedItem"]}}]); \ No newline at end of file diff --git a/ArchivePanel-__stories__-ArchivePanel-stories.48838381.iframe.bundle.js b/ArchivePanel-__stories__-ArchivePanel-stories.48838381.iframe.bundle.js deleted file mode 100644 index f56248209e5..00000000000 --- a/ArchivePanel-__stories__-ArchivePanel-stories.48838381.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5328],{"./src/client/components/ArchivePanel/__stories__/ArchivePanel.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ArchivedItem:()=>ArchivedItem,AutomaticallyArchivedItem:()=>AutomaticallyArchivedItem,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ArchivePanel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ArchivePanel/index.jsx"),archivist={first_name:"Example",last_name:"Archivist"};const __WEBPACK_DEFAULT_EXPORT__={title:"ArchivePanel",parameters:{component:ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A}};var ArchivedItem=function ArchivedItem(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A,{isArchived:!0,archivedBy:archivist,archivedOn:"2022-01-01",archiveReason:"Example archival reason",unarchiveUrl:"#",type:"item"})};ArchivedItem.story={name:"Archived item"};var AutomaticallyArchivedItem=function AutomaticallyArchivedItem(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArchivePanel__WEBPACK_IMPORTED_MODULE_1__.A,{isArchived:!0,archivedBy:null,archivedOn:"2022-01-01",archiveReason:"Example archival reason",unarchiveUrl:"#",type:"item"})};AutomaticallyArchivedItem.story={name:"Automatically archived item"},ArchivedItem.parameters={...ArchivedItem.parameters,docs:{...ArchivedItem.parameters?.docs,source:{originalSource:"() => ",...ArchivedItem.parameters?.docs?.source}}},AutomaticallyArchivedItem.parameters={...AutomaticallyArchivedItem.parameters,docs:{...AutomaticallyArchivedItem.parameters?.docs,source:{originalSource:"() => ",...AutomaticallyArchivedItem.parameters?.docs?.source}}};const __namedExportsOrder=["ArchivedItem","AutomaticallyArchivedItem"]}}]); \ No newline at end of file diff --git a/Badge-__stories__-Badge-stories.a878d57f.iframe.bundle.js b/Badge-__stories__-Badge-stories.a878d57f.iframe.bundle.js deleted file mode 100644 index d2d47d108bf..00000000000 --- a/Badge-__stories__-Badge-stories.a878d57f.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[362],{"./src/client/components/Badge/__stories__/Badge.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomBorderColour:()=>CustomBorderColour,CustomFontSize:()=>CustomFontSize,CustomTextColour:()=>CustomTextColour,Default:()=>Default,HtmlContent:()=>HtmlContent,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),Badge__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Badge/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Badge",parameters:{component:Badge__WEBPACK_IMPORTED_MODULE_3__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,null,"This is a text")},CustomBorderColour=function CustomBorderColour(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{borderColour:"red"},"With a red border")};CustomBorderColour.story={name:"Custom border colour"};var CustomTextColour=function CustomTextColour(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{textColour:"red"},"With red text")};CustomTextColour.story={name:"Custom text colour"};var CustomFontSize=function CustomFontSize(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.SG.SIZE_24},"With the font set to 24")};CustomFontSize.story={name:"Custom font size"};var HtmlContent=function HtmlContent(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"http://example.com"},"This is a link"))};HtmlContent.story={name:"HTML content"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => This is a text",...Default.parameters?.docs?.source}}},CustomBorderColour.parameters={...CustomBorderColour.parameters,docs:{...CustomBorderColour.parameters?.docs,source:{originalSource:'() => With a red border',...CustomBorderColour.parameters?.docs?.source}}},CustomTextColour.parameters={...CustomTextColour.parameters,docs:{...CustomTextColour.parameters?.docs,source:{originalSource:'() => With red text',...CustomTextColour.parameters?.docs?.source}}},CustomFontSize.parameters={...CustomFontSize.parameters,docs:{...CustomFontSize.parameters?.docs,source:{originalSource:"() => With the font set to 24",...CustomFontSize.parameters?.docs?.source}}},HtmlContent.parameters={...HtmlContent.parameters,docs:{...HtmlContent.parameters?.docs,source:{originalSource:'() => \n This is a link\n ',...HtmlContent.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomBorderColour","CustomTextColour","CustomFontSize","HtmlContent"]}}]); \ No newline at end of file diff --git a/Badge-__stories__-Badge-stories.de1493c3.iframe.bundle.js b/Badge-__stories__-Badge-stories.de1493c3.iframe.bundle.js new file mode 100644 index 00000000000..1eb81aaac08 --- /dev/null +++ b/Badge-__stories__-Badge-stories.de1493c3.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[362],{"./src/client/components/Badge/__stories__/Badge.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomBorderColour:()=>CustomBorderColour,CustomFontSize:()=>CustomFontSize,CustomTextColour:()=>CustomTextColour,Default:()=>Default,HtmlContent:()=>HtmlContent,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),Badge__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Badge/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Badge",parameters:{component:Badge__WEBPACK_IMPORTED_MODULE_3__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,null,"This is a text"),CustomBorderColour=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{borderColour:"red"},"With a red border");CustomBorderColour.story={name:"Custom border colour"};const CustomTextColour=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{textColour:"red"},"With red text");CustomTextColour.story={name:"Custom text colour"};const CustomFontSize=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,{fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.SG.SIZE_24},"With the font set to 24");CustomFontSize.story={name:"Custom font size"};const HtmlContent=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Badge__WEBPACK_IMPORTED_MODULE_3__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"http://example.com"},"This is a link"));HtmlContent.story={name:"HTML content"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => This is a text",...Default.parameters?.docs?.source}}},CustomBorderColour.parameters={...CustomBorderColour.parameters,docs:{...CustomBorderColour.parameters?.docs,source:{originalSource:'() => With a red border',...CustomBorderColour.parameters?.docs?.source}}},CustomTextColour.parameters={...CustomTextColour.parameters,docs:{...CustomTextColour.parameters?.docs,source:{originalSource:'() => With red text',...CustomTextColour.parameters?.docs?.source}}},CustomFontSize.parameters={...CustomFontSize.parameters,docs:{...CustomFontSize.parameters?.docs,source:{originalSource:"() => With the font set to 24",...CustomFontSize.parameters?.docs?.source}}},HtmlContent.parameters={...HtmlContent.parameters,docs:{...HtmlContent.parameters?.docs,source:{originalSource:'() => \n This is a link\n ',...HtmlContent.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomBorderColour","CustomTextColour","CustomFontSize","HtmlContent"]}}]); \ No newline at end of file diff --git a/ButtonLink-__stories__-ButtonLink-stories.0da37f0f.iframe.bundle.js b/ButtonLink-__stories__-ButtonLink-stories.0da37f0f.iframe.bundle.js new file mode 100644 index 00000000000..04df1a6e638 --- /dev/null +++ b/ButtonLink-__stories__-ButtonLink-stories.0da37f0f.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8840],{"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Inline:()=>Inline,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),ButtonLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/ButtonLink/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"ButtonLink"},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_1__.A,null,"Submit"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonLink__WEBPACK_IMPORTED_MODULE_2__.A,null,"Cancel")),Inline=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,"Some text ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonLink__WEBPACK_IMPORTED_MODULE_2__.A,{inline:!0},"Change"));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return
\n \n Cancel\n
;\n}",...Default.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:"() => {\n return
\n Some text Change\n
;\n}",...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Inline"]}}]); \ No newline at end of file diff --git a/ButtonLink-__stories__-ButtonLink-stories.86aa5504.iframe.bundle.js b/ButtonLink-__stories__-ButtonLink-stories.86aa5504.iframe.bundle.js deleted file mode 100644 index 562a05140b9..00000000000 --- a/ButtonLink-__stories__-ButtonLink-stories.86aa5504.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8840],{"./src/client/components/ButtonLink/__stories__/ButtonLink.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Inline:()=>Inline,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),ButtonLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/ButtonLink/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"ButtonLink"};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_1__.A,null,"Submit"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonLink__WEBPACK_IMPORTED_MODULE_2__.A,null,"Cancel"))},Inline=function Inline(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,"Some text ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonLink__WEBPACK_IMPORTED_MODULE_2__.A,{inline:!0},"Change"))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return
\n \n Cancel\n
;\n}",...Default.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:"() => {\n return
\n Some text Change\n
;\n}",...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Inline"]}}]); \ No newline at end of file diff --git a/CheckboxGroupField-__stories__-CheckboxGroupField-stories.86e56770.iframe.bundle.js b/CheckboxGroupField-__stories__-CheckboxGroupField-stories.86e56770.iframe.bundle.js new file mode 100644 index 00000000000..ea609b4bc02 --- /dev/null +++ b/CheckboxGroupField-__stories__-CheckboxGroupField-stories.86e56770.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9768],{"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OverflowWithScroll:()=>OverflowWithScroll,WithHint:()=>WithHint,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/CheckboxGroupField/index.jsx");const options=[{label:"Italy",value:"it"},{label:"Poland",value:"pl"},{label:"United Kingdom",value:"gb"},{label:"United States",value:"us",hint:"Hints are supported!"}],__WEBPACK_DEFAULT_EXPORT__={title:"Filters/Checkbox",parameters:{component:___WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{name:"countries",label:"What are your favourite countries?",options}),WithHint=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{name:"countries",label:"What are your favourite countries?",hint:"Some hint",options});WithHint.story={name:"With hint"};const OverflowWithScroll=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{maxScrollHeight:215,name:"countries",legend:"What are your favourite countries?",options:[...options,{label:"Spain",value:"sp"},{label:"New Zealand",value:"nz"},{label:"China",value:"ch"}],selectedOptions:[{label:"Italy",value:"it"},{label:"Poland",value:"pl"}]});OverflowWithScroll.story={name:"Overflow with scroll"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}},WithHint.parameters={...WithHint.parameters,docs:{...WithHint.parameters?.docs,source:{originalSource:'() => ',...WithHint.parameters?.docs?.source}}},OverflowWithScroll.parameters={...OverflowWithScroll.parameters,docs:{...OverflowWithScroll.parameters?.docs,source:{originalSource:"() => ",...OverflowWithScroll.parameters?.docs?.source}}};const __namedExportsOrder=["Default","WithHint","OverflowWithScroll"]}}]); \ No newline at end of file diff --git a/CheckboxGroupField-__stories__-CheckboxGroupField-stories.cc5303dc.iframe.bundle.js b/CheckboxGroupField-__stories__-CheckboxGroupField-stories.cc5303dc.iframe.bundle.js deleted file mode 100644 index d9960066abd..00000000000 --- a/CheckboxGroupField-__stories__-CheckboxGroupField-stories.cc5303dc.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9768],{"./src/client/components/CheckboxGroupField/__stories__/CheckboxGroupField.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OverflowWithScroll:()=>OverflowWithScroll,WithHint:()=>WithHint,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/CheckboxGroupField/index.jsx"),options=[{label:"Italy",value:"it"},{label:"Poland",value:"pl"},{label:"United Kingdom",value:"gb"},{label:"United States",value:"us",hint:"Hints are supported!"}];const __WEBPACK_DEFAULT_EXPORT__={title:"Filters/Checkbox",parameters:{component:___WEBPACK_IMPORTED_MODULE_2__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{name:"countries",label:"What are your favourite countries?",options})},WithHint=function WithHint(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{name:"countries",label:"What are your favourite countries?",hint:"Some hint",options})};WithHint.story={name:"With hint"};var OverflowWithScroll=function OverflowWithScroll(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{maxScrollHeight:215,name:"countries",legend:"What are your favourite countries?",options:[].concat(options,[{label:"Spain",value:"sp"},{label:"New Zealand",value:"nz"},{label:"China",value:"ch"}]),selectedOptions:[{label:"Italy",value:"it"},{label:"Poland",value:"pl"}]})};OverflowWithScroll.story={name:"Overflow with scroll"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}},WithHint.parameters={...WithHint.parameters,docs:{...WithHint.parameters?.docs,source:{originalSource:'() => ',...WithHint.parameters?.docs?.source}}},OverflowWithScroll.parameters={...OverflowWithScroll.parameters,docs:{...OverflowWithScroll.parameters?.docs,source:{originalSource:"() => ",...OverflowWithScroll.parameters?.docs?.source}}};const __namedExportsOrder=["Default","WithHint","OverflowWithScroll"]}}]); \ No newline at end of file diff --git a/Chip-__stories__-Chip-stories.5295c410.iframe.bundle.js b/Chip-__stories__-Chip-stories.b671056b.iframe.bundle.js similarity index 79% rename from Chip-__stories__-Chip-stories.5295c410.iframe.bundle.js rename to Chip-__stories__-Chip-stories.b671056b.iframe.bundle.js index 749666f7040..bf7e119d219 100644 --- a/Chip-__stories__-Chip-stories.5295c410.iframe.bundle.js +++ b/Chip-__stories__-Chip-stories.b671056b.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6704],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/Chip/__stories__/Chip.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Clickable:()=>Clickable,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Chip/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Chips",parameters:{component:___WEBPACK_IMPORTED_MODULE_2__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{value:"apple"},"Apple"))},Clickable=function Clickable(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{value:"apple",onClick:(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.XI)("Clicked")},"Apple"))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => {\n return
\n Apple\n
;\n}',...Default.parameters?.docs?.source}}},Clickable.parameters={...Clickable.parameters,docs:{...Clickable.parameters?.docs,source:{originalSource:"() => {\n return
\n \n Apple\n \n
;\n}",...Clickable.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Clickable"]}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6704],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/Chip/__stories__/Chip.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Clickable:()=>Clickable,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Chip/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Chips",parameters:{component:___WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{value:"apple"},"Apple")),Clickable=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{value:"apple",onClick:(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.XI)("Clicked")},"Apple"));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => {\n return
\n Apple\n
;\n}',...Default.parameters?.docs?.source}}},Clickable.parameters={...Clickable.parameters,docs:{...Clickable.parameters?.docs,source:{originalSource:"() => {\n return
\n \n Apple\n \n
;\n}",...Clickable.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Clickable"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionHeader-stories.6004b6be.iframe.bundle.js b/CollectionList-__stories__-CollectionHeader-stories.6004b6be.iframe.bundle.js deleted file mode 100644 index 57e19e7b911..00000000000 --- a/CollectionList-__stories__-CollectionHeader-stories.6004b6be.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9355],{"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{_CollectionHeader:()=>_CollectionHeader,__CollectionHeader:()=>__CollectionHeader,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Collection/CollectionHeader",parameters:{component:_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A}};var _CollectionHeader=function _CollectionHeader(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A,{totalItems:1,itemName:"profile",addItemText:"#",addItemUrl:"#"})},__CollectionHeader=function __CollectionHeader(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A,{totalItems:1,itemName:"profile",addItemUrl:"#"})};_CollectionHeader.parameters={..._CollectionHeader.parameters,docs:{..._CollectionHeader.parameters?.docs,source:{originalSource:'() => ',..._CollectionHeader.parameters?.docs?.source}}},__CollectionHeader.parameters={...__CollectionHeader.parameters,docs:{...__CollectionHeader.parameters?.docs,source:{originalSource:'() => ',...__CollectionHeader.parameters?.docs?.source}}};const __namedExportsOrder=["_CollectionHeader","__CollectionHeader"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionHeader-stories.8788a618.iframe.bundle.js b/CollectionList-__stories__-CollectionHeader-stories.8788a618.iframe.bundle.js new file mode 100644 index 00000000000..c50df0038fc --- /dev/null +++ b/CollectionList-__stories__-CollectionHeader-stories.8788a618.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9355],{"./src/client/components/CollectionList/__stories__/CollectionHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{_CollectionHeader:()=>_CollectionHeader,__CollectionHeader:()=>__CollectionHeader,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Collection/CollectionHeader",parameters:{component:_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A}},_CollectionHeader=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A,{totalItems:1,itemName:"profile",addItemText:"#",addItemUrl:"#"}),__CollectionHeader=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CollectionHeader__WEBPACK_IMPORTED_MODULE_1__.A,{totalItems:1,itemName:"profile",addItemUrl:"#"});_CollectionHeader.parameters={..._CollectionHeader.parameters,docs:{..._CollectionHeader.parameters?.docs,source:{originalSource:'() => ',..._CollectionHeader.parameters?.docs?.source}}},__CollectionHeader.parameters={...__CollectionHeader.parameters,docs:{...__CollectionHeader.parameters?.docs,source:{originalSource:'() => ',...__CollectionHeader.parameters?.docs?.source}}};const __namedExportsOrder=["_CollectionHeader","__CollectionHeader"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionItem-stories.de674e86.iframe.bundle.js b/CollectionList-__stories__-CollectionItem-stories.de674e86.iframe.bundle.js deleted file mode 100644 index 8abf7c9fbe4..00000000000 --- a/CollectionList-__stories__-CollectionItem-stories.de674e86.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4785],{"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CapitalProfileItem:()=>CapitalProfileItem,InteractionItem:()=>InteractionItem,ItemWithoutLink:()=>ItemWithoutLink,__namedExportsOrder:()=>__namedExportsOrder,default:()=>CollectionItem_stories});__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react=__webpack_require__("./node_modules/react/index.js"),CollectionItem=__webpack_require__("./src/client/components/CollectionList/CollectionItem.jsx");const capitalProfileItem_namespaceObject=JSON.parse('{"headingText":"Mars Exports Ltd","headingUrl":"https://example.com/profile/1","subheading":"Updated on 1 Nov 2019","metadata":[{"label":"Sector","value":"Finance"},{"label":"Address","value":"123 Random Street, Lucky City"}],"badges":[{"text":"United States"}]}'),interactionItem_namespaceObject=JSON.parse('{"headingText":"Leadership Academy","headingUrl":"https://example.com/interaction/1","metadata":[{"label":"Date","value":"1 February 2022"},{"label":"Contact(s)","value":"Ned Neddington"},{"label":"Company","value":"Ministry of Funny Walks"},{"label":"Adviser(s)","value":"Bob Bobbington, British Embassy Cairo Egypt"},{"label":"Service","value":"Export introductions : Business Partners (e.g. distributors or manufacturers"}],"badges":[{"text":"Interaction","borderColour":"rgb(0, 100, 53)"}]}');function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e ",...CapitalProfileItem.parameters?.docs?.source}}},InteractionItem.parameters={...InteractionItem.parameters,docs:{...InteractionItem.parameters?.docs,source:{originalSource:'() => ',...InteractionItem.parameters?.docs?.source}}},ItemWithoutLink.parameters={...ItemWithoutLink.parameters,docs:{...ItemWithoutLink.parameters?.docs,source:{originalSource:"() => ",...ItemWithoutLink.parameters?.docs?.source}}};const __namedExportsOrder=["CapitalProfileItem","InteractionItem","ItemWithoutLink"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionItem-stories.f913fb03.iframe.bundle.js b/CollectionList-__stories__-CollectionItem-stories.f913fb03.iframe.bundle.js new file mode 100644 index 00000000000..7702681189e --- /dev/null +++ b/CollectionList-__stories__-CollectionItem-stories.f913fb03.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4785],{"./src/client/components/CollectionList/__stories__/CollectionItem.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CapitalProfileItem:()=>CapitalProfileItem,InteractionItem:()=>InteractionItem,ItemWithoutLink:()=>ItemWithoutLink,__namedExportsOrder:()=>__namedExportsOrder,default:()=>CollectionItem_stories});var react=__webpack_require__("./node_modules/react/index.js"),CollectionItem=__webpack_require__("./src/client/components/CollectionList/CollectionItem.jsx");const capitalProfileItem_namespaceObject=JSON.parse('{"headingText":"Mars Exports Ltd","headingUrl":"https://example.com/profile/1","subheading":"Updated on 1 Nov 2019","metadata":[{"label":"Sector","value":"Finance"},{"label":"Address","value":"123 Random Street, Lucky City"}],"badges":[{"text":"United States"}]}'),interactionItem_namespaceObject=JSON.parse('{"headingText":"Leadership Academy","headingUrl":"https://example.com/interaction/1","metadata":[{"label":"Date","value":"1 February 2022"},{"label":"Contact(s)","value":"Ned Neddington"},{"label":"Company","value":"Ministry of Funny Walks"},{"label":"Adviser(s)","value":"Bob Bobbington, British Embassy Cairo Egypt"},{"label":"Service","value":"Export introductions : Business Partners (e.g. distributors or manufacturers"}],"badges":[{"text":"Interaction","borderColour":"rgb(0, 100, 53)"}]}');function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;ereact.createElement(CollectionItem.Ay,capitalProfileItem_namespaceObject);CapitalProfileItem.story={name:"Capital Profile item"};const InteractionItem=()=>react.createElement(CollectionItem.Ay,_extends({},interactionItem_namespaceObject,{type:"interaction"}));InteractionItem.story={name:"Interaction item"};const ItemWithoutLink=()=>react.createElement(CollectionItem.Ay,{headingText:capitalProfileItem_namespaceObject.headingText,subheading:capitalProfileItem_namespaceObject.subheading,badges:capitalProfileItem_namespaceObject.badges,metadata:capitalProfileItem_namespaceObject.metadata});ItemWithoutLink.story={name:"Item without link"},CapitalProfileItem.parameters={...CapitalProfileItem.parameters,docs:{...CapitalProfileItem.parameters?.docs,source:{originalSource:"() => ",...CapitalProfileItem.parameters?.docs?.source}}},InteractionItem.parameters={...InteractionItem.parameters,docs:{...InteractionItem.parameters?.docs,source:{originalSource:'() => ',...InteractionItem.parameters?.docs?.source}}},ItemWithoutLink.parameters={...ItemWithoutLink.parameters,docs:{...ItemWithoutLink.parameters?.docs,source:{originalSource:"() => ",...ItemWithoutLink.parameters?.docs?.source}}};const __namedExportsOrder=["CapitalProfileItem","InteractionItem","ItemWithoutLink"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionList-stories.2dd98d39.iframe.bundle.js b/CollectionList-__stories__-CollectionList-stories.2dd98d39.iframe.bundle.js deleted file mode 100644 index 1f4435afa82..00000000000 --- a/CollectionList-__stories__-CollectionList-stories.2dd98d39.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3152],{"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CollectionListWith0Items:()=>CollectionListWith0Items,_CollectionList:()=>_CollectionList,__namedExportsOrder:()=>__namedExportsOrder,default:()=>CollectionList_stories});__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");var react=__webpack_require__("./node_modules/react/index.js"),CollectionList=__webpack_require__("./src/client/components/CollectionList/index.jsx");const capitalProfiles_namespaceObject=JSON.parse('[{"headingText":"Mars Exports Ltd","headingUrl":"https://example.com/item/1","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"},{"text":"Global HQ"}]},{"headingText":"Stage One Boutique","headingUrl":"https://example.com/item/2","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"999 Old Fake Road, New York, NY 123"}],"badges":[{"text":"United States"}]},{"headingText":"Onet Technologies","headingUrl":"https://example.com/item/3","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"13 Unlucky Street, Miami, MI 9QC"}],"badges":[{"text":"United States"}]},{"headingText":"Lambda plc","headingUrl":"https://example.com/item/4","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"One List Corp","headingUrl":"https://example.com/item/5","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"},{"text":"Global HQ"}]},{"headingText":"Angel syndicate","headingUrl":"https://example.com/item/6","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"Venus Ltd","headingUrl":"https://example.com/item/7","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"A1 BMW LTD","headingUrl":"https://example.com/item/8","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"Bargainworld","headingUrl":"https://example.com/item/9","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"JOHN LEWIS PLC","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"JOHN LEWIS LTD","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"M&S","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]}]');var constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.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 ",..._CollectionList.parameters?.docs?.source}}},CollectionListWith0Items.parameters={...CollectionListWith0Items.parameters,docs:{...CollectionListWith0Items.parameters?.docs,source:{originalSource:'() => ',...CollectionListWith0Items.parameters?.docs?.source}}};const __namedExportsOrder=["_CollectionList","CollectionListWith0Items"]}}]); \ No newline at end of file diff --git a/CollectionList-__stories__-CollectionList-stories.fd83da66.iframe.bundle.js b/CollectionList-__stories__-CollectionList-stories.fd83da66.iframe.bundle.js new file mode 100644 index 00000000000..54ab5a122f7 --- /dev/null +++ b/CollectionList-__stories__-CollectionList-stories.fd83da66.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3152],{"./src/client/components/CollectionList/__stories__/CollectionList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CollectionListWith0Items:()=>CollectionListWith0Items,_CollectionList:()=>_CollectionList,__namedExportsOrder:()=>__namedExportsOrder,default:()=>CollectionList_stories});var react=__webpack_require__("./node_modules/react/index.js"),CollectionList=__webpack_require__("./src/client/components/CollectionList/index.jsx");const capitalProfiles_namespaceObject=JSON.parse('[{"headingText":"Mars Exports Ltd","headingUrl":"https://example.com/item/1","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"},{"text":"Global HQ"}]},{"headingText":"Stage One Boutique","headingUrl":"https://example.com/item/2","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"999 Old Fake Road, New York, NY 123"}],"badges":[{"text":"United States"}]},{"headingText":"Onet Technologies","headingUrl":"https://example.com/item/3","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"13 Unlucky Street, Miami, MI 9QC"}],"badges":[{"text":"United States"}]},{"headingText":"Lambda plc","headingUrl":"https://example.com/item/4","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"One List Corp","headingUrl":"https://example.com/item/5","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"},{"text":"Global HQ"}]},{"headingText":"Angel syndicate","headingUrl":"https://example.com/item/6","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"Venus Ltd","headingUrl":"https://example.com/item/7","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"A1 BMW LTD","headingUrl":"https://example.com/item/8","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"Bargainworld","headingUrl":"https://example.com/item/9","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"JOHN LEWIS PLC","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"JOHN LEWIS LTD","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]},{"headingText":"M&S","headingUrl":"https://example.com/item/10","subheading":"Updated on 5 September 2019","metadata":[{"label":"Sector","value":"Environment"},{"label":"Address","value":"20 New Fake Road, Bristol, B11 9QC"}],"badges":[{"text":"United Kingdom"}]}]');var constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js");const CollectionList_stories={title:"Collection/CollectionList",parameters:{component:CollectionList.A}},CollectionWithState=()=>{const[activePage,setActivePage]=(0,react.useState)(1),index=activePage-1,offset=10*index,limit=10*(index+1),items=capitalProfiles_namespaceObject.slice(offset,limit);return react.createElement(CollectionList.A,{items,onPageClick:(page,event)=>{setActivePage(page),event.preventDefault()},activePage,totalItems:capitalProfiles_namespaceObject.length,itemName:"profile",addItemUrl:"http://example.com",downloadUrl:"http://example.com",sortOptions:constants.QB})},_CollectionList=()=>react.createElement(CollectionWithState,null),CollectionListWith0Items=()=>react.createElement(CollectionList.A,{totalItems:0,items:[],itemName:"results",sortOptions:constants.QB});CollectionListWith0Items.story={name:"Collection List with 0 items"},_CollectionList.parameters={..._CollectionList.parameters,docs:{..._CollectionList.parameters?.docs,source:{originalSource:"() => ",..._CollectionList.parameters?.docs?.source}}},CollectionListWith0Items.parameters={...CollectionListWith0Items.parameters,docs:{...CollectionListWith0Items.parameters?.docs,source:{originalSource:'() => ',...CollectionListWith0Items.parameters?.docs?.source}}};const __namedExportsOrder=["_CollectionList","CollectionListWith0Items"]}}]); \ No newline at end of file diff --git a/ContactInformation-__stories__-ContactInformation-stories.f709b68b.iframe.bundle.js b/ContactInformation-__stories__-ContactInformation-stories.0dc63828.iframe.bundle.js similarity index 61% rename from ContactInformation-__stories__-ContactInformation-stories.f709b68b.iframe.bundle.js rename to ContactInformation-__stories__-ContactInformation-stories.0dc63828.iframe.bundle.js index 0b8cb44de77..53e58c317ec 100644 --- a/ContactInformation-__stories__-ContactInformation-stories.f709b68b.iframe.bundle.js +++ b/ContactInformation-__stories__-ContactInformation-stories.0dc63828.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8964],{"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ContactInformation__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ContactInformation/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"ContactInformation",parameters:{component:ContactInformation__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContactInformation__WEBPACK_IMPORTED_MODULE_1__.A,{onOpenContactForm:"hello",companyId:"123ABC"})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8964],{"./src/client/components/ContactInformation/__stories__/ContactInformation.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ContactInformation__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ContactInformation/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"ContactInformation",parameters:{component:ContactInformation__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContactInformation__WEBPACK_IMPORTED_MODULE_1__.A,{onOpenContactForm:"hello",companyId:"123ABC"});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/DataHubHeader-__stories__-DataHubHeader-stories.7878597d.iframe.bundle.js b/DataHubHeader-__stories__-DataHubHeader-stories.7878597d.iframe.bundle.js new file mode 100644 index 00000000000..460f88cbc20 --- /dev/null +++ b/DataHubHeader-__stories__-DataHubHeader-stories.7878597d.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5074],{"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataHubHeaderStory:()=>DataHubHeaderStory,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react-router/dist/index.js"),_index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/DataHubHeader/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"DataHubHeader"},Dashboard=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Dashboard"),Companies=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Companies"),Contacts=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Contacts"),Events=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Events"),Interactions=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Interactions"),Investments=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Investments"),Orders=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Orders(OMIS)"),Support=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Support"),DataHubHeaderStory=()=>{const[showVerticalNav,setShowVerticalNav]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_1__.A,{showVerticalNav,onShowVerticalNav:setShowVerticalNav}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.BV,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Dashboard,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/companies",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Companies,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/contacts",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Contacts,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/events",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Events,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/interactions",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Interactions,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/investments",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Investments,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/omis",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Orders,null)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.qh,{path:"/support",element:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Support,null)})))};DataHubHeaderStory.storyName="DataHubHeader",DataHubHeaderStory.parameters={...DataHubHeaderStory.parameters,docs:{...DataHubHeaderStory.parameters?.docs,source:{originalSource:'() => {\n const [showVerticalNav, setShowVerticalNav] = useState(false);\n return <>\n \n \n } />\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n \n ;\n}',...DataHubHeaderStory.parameters?.docs?.source}}};const __namedExportsOrder=["DataHubHeaderStory"]}}]); \ No newline at end of file diff --git a/DataHubHeader-__stories__-DataHubHeader-stories.83610c77.iframe.bundle.js b/DataHubHeader-__stories__-DataHubHeader-stories.83610c77.iframe.bundle.js deleted file mode 100644 index 0c5424f199c..00000000000 --- a/DataHubHeader-__stories__-DataHubHeader-stories.83610c77.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5074],{"./src/client/components/DataHubHeader/__stories__/DataHubHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataHubHeaderStory:()=>DataHubHeaderStory,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__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.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 react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react-router/dist/index.js"),_index__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/components/DataHubHeader/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 {\n const [showVerticalNav, setShowVerticalNav] = useState(false);\n return <>\n \n \n } />\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n \n ;\n}',...DataHubHeaderStory.parameters?.docs?.source}}};const __namedExportsOrder=["DataHubHeaderStory"]}}]); \ No newline at end of file diff --git a/DateField-__stories__-DateField-stories.3f78fdb5.iframe.bundle.js b/DateField-__stories__-DateField-stories.3f78fdb5.iframe.bundle.js deleted file mode 100644 index da5128ae54f..00000000000 --- a/DateField-__stories__-DateField-stories.3f78fdb5.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1506],{"./src/client/components/DateField/__stories__/DateField.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,CallbackOnChange:()=>CallbackOnChange,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),DateField__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/DateField/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"DateField",parameters:{component:DateField__WEBPACK_IMPORTED_MODULE_1__.A}};var BasicDateField=function BasicDateField(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(DateField__WEBPACK_IMPORTED_MODULE_1__.A,{name:"start_date",initialValue:"2020-02-02",label:"Start Date",legend:"This is a start date field",hint:"When it began"})},AlertChangeDateField=function AlertChangeDateField(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(DateField__WEBPACK_IMPORTED_MODULE_1__.A,{name:"end_date",initialValue:"2020-12-31",label:"End Date",onChange:function onChange(){return alert("End date changed!")}})},Basic=function Basic(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(BasicDateField,null)},CallbackOnChange=function CallbackOnChange(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(AlertChangeDateField,null)};CallbackOnChange.story={name:"Callback on Change"},Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:"() => ",...Basic.parameters?.docs?.source}}},CallbackOnChange.parameters={...CallbackOnChange.parameters,docs:{...CallbackOnChange.parameters?.docs,source:{originalSource:"() => ",...CallbackOnChange.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","CallbackOnChange"]}}]); \ No newline at end of file diff --git a/DateField-__stories__-DateField-stories.5cad42e3.iframe.bundle.js b/DateField-__stories__-DateField-stories.5cad42e3.iframe.bundle.js new file mode 100644 index 00000000000..106b2fb960f --- /dev/null +++ b/DateField-__stories__-DateField-stories.5cad42e3.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1506],{"./src/client/components/DateField/__stories__/DateField.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,CallbackOnChange:()=>CallbackOnChange,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),DateField__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/DateField/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"DateField",parameters:{component:DateField__WEBPACK_IMPORTED_MODULE_1__.A}},BasicDateField=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(DateField__WEBPACK_IMPORTED_MODULE_1__.A,{name:"start_date",initialValue:"2020-02-02",label:"Start Date",legend:"This is a start date field",hint:"When it began"}),AlertChangeDateField=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(DateField__WEBPACK_IMPORTED_MODULE_1__.A,{name:"end_date",initialValue:"2020-12-31",label:"End Date",onChange:()=>alert("End date changed!")}),Basic=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(BasicDateField,null),CallbackOnChange=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(AlertChangeDateField,null);CallbackOnChange.story={name:"Callback on Change"},Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:"() => ",...Basic.parameters?.docs?.source}}},CallbackOnChange.parameters={...CallbackOnChange.parameters,docs:{...CallbackOnChange.parameters?.docs,source:{originalSource:"() => ",...CallbackOnChange.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","CallbackOnChange"]}}]); \ No newline at end of file diff --git a/DownloadDataHeader-__stories__-DownloadDataHeader-stories.4a53c492.iframe.bundle.js b/DownloadDataHeader-__stories__-DownloadDataHeader-stories.4a53c492.iframe.bundle.js deleted file mode 100644 index 94a21fedeb3..00000000000 --- a/DownloadDataHeader-__stories__-DownloadDataHeader-stories.4a53c492.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4786],{"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,Limited:()=>Limited,OneItem:()=>OneItem,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/DownloadDataHeader/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"DownloadDataHeader",parameters:{component:___WEBPACK_IMPORTED_MODULE_1__.A}};var BasicDownloadDataHeader=function BasicDownloadDataHeader(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:5,entityName:"entity",entityNamePlural:"entities",downloadLink:"/#dl"})},SingularDownloadDataHeader=function SingularDownloadDataHeader(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:1,downloadLink:"/#dl"})},LimitedDownloadDataHeader=function LimitedDownloadDataHeader(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:5e3,maxItems:1e3,downloadLink:"/#dl"})},Basic=function Basic(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(BasicDownloadDataHeader,null)},OneItem=function OneItem(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SingularDownloadDataHeader,null)},Limited=function Limited(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(LimitedDownloadDataHeader,null)};Limited.story={name:"Limited "},Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:"() => ",...Basic.parameters?.docs?.source}}},OneItem.parameters={...OneItem.parameters,docs:{...OneItem.parameters?.docs,source:{originalSource:"() => ",...OneItem.parameters?.docs?.source}}},Limited.parameters={...Limited.parameters,docs:{...Limited.parameters?.docs,source:{originalSource:"() => ",...Limited.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","OneItem","Limited"]}}]); \ No newline at end of file diff --git a/DownloadDataHeader-__stories__-DownloadDataHeader-stories.8018a2b2.iframe.bundle.js b/DownloadDataHeader-__stories__-DownloadDataHeader-stories.8018a2b2.iframe.bundle.js new file mode 100644 index 00000000000..def0455a7c2 --- /dev/null +++ b/DownloadDataHeader-__stories__-DownloadDataHeader-stories.8018a2b2.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4786],{"./src/client/components/DownloadDataHeader/__stories__/DownloadDataHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:()=>Basic,Limited:()=>Limited,OneItem:()=>OneItem,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/DownloadDataHeader/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"DownloadDataHeader",parameters:{component:___WEBPACK_IMPORTED_MODULE_1__.A}},BasicDownloadDataHeader=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:5,entityName:"entity",entityNamePlural:"entities",downloadLink:"/#dl"}),SingularDownloadDataHeader=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:1,downloadLink:"/#dl"}),LimitedDownloadDataHeader=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,{count:5e3,maxItems:1e3,downloadLink:"/#dl"}),Basic=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(BasicDownloadDataHeader,null),OneItem=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SingularDownloadDataHeader,null),Limited=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(LimitedDownloadDataHeader,null);Limited.story={name:"Limited "},Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:"() => ",...Basic.parameters?.docs?.source}}},OneItem.parameters={...OneItem.parameters,docs:{...OneItem.parameters?.docs,source:{originalSource:"() => ",...OneItem.parameters?.docs?.source}}},Limited.parameters={...Limited.parameters,docs:{...Limited.parameters?.docs,source:{originalSource:"() => ",...Limited.parameters?.docs?.source}}};const __namedExportsOrder=["Basic","OneItem","Limited"]}}]); \ No newline at end of file diff --git a/EntityList-__stories__-EntityList-stories.cf4ae7e9.iframe.bundle.js b/EntityList-__stories__-EntityList-stories.cf4ae7e9.iframe.bundle.js deleted file mode 100644 index c281483d16b..00000000000 --- a/EntityList-__stories__-EntityList-stories.cf4ae7e9.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2614],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/EntityList/__stories__/EntityList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{EntityListDnB:()=>EntityListDnB,__namedExportsOrder:()=>__namedExportsOrder,default:()=>EntityList_stories});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),EntityList=__webpack_require__("./src/client/components/EntityList/index.jsx"),useDnbSearch=__webpack_require__("./src/client/components/EntityList/useDnbSearch.jsx");const company_search_namespaceObject=JSON.parse('{"Xv":[{"dnb_company":{"duns_number":"12345678","primary_name":"Some company name","trading_names":["Some trading name"],"registration_numbers":[{"registration_type":"uk_companies_house_number","registration_number":"1234567"}],"global_ultimate_duns_number":"123456789","global_ultimate_primary_name":"Some parent company name","domain":"example.co.uk","is_out_of_business":false,"address_line_1":"123 Fake Street","address_line_2":"","address_town":"Brighton","address_county":"","address_postcode":"BN1 4SE","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Brighton","registered_address_county":"","registered_address_postcode":"BN1 4SE","registered_address_country":"GB","annual_sales":1860000000,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":2000,"is_employees_number_estimated":true,"industry_codes":[{"usSicV4":"1623","usSicV4Description":"Water/sewer/utility construction"}],"legal_status":"corporation"},"datahub_company":{"id":"0fb3379c-341c-4da4-b825-bf8d47b26baa","latest_interaction":{"id":"ec4a46ef-6e50-4a5c-bba0-e311f0471312","created_on":"2019-08-01T18:10:00","date":"2019-08-01","subject":"Meeting between DBT and Joe Bloggs"}}},{"dnb_company":{"duns_number":"219999999","primary_name":"Some other company","trading_names":[],"registration_numbers":[{"registration_type":"uk_companies_house_number","registration_number":"00016033"}],"global_ultimate_duns_number":"319999999","global_ultimate_primary_name":"Some other company parent","domain":"example.co.uk","is_out_of_business":false,"address_line_1":"123 ABC Road","address_line_2":"","address_town":"Brighton","address_county":"","address_postcode":"BN2 9QB","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Brighton","registered_address_county":"","registered_address_postcode":"BN2 9QB","registered_address_country":"GB","annual_sales":1999999999,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":300,"is_employees_number_estimated":true,"industry_codes":[{"usSicV4":"3799","usSicV4Description":"Mfg transportation equipment"}],"legal_status":"corporation"},"datahub_company":null},{"dnb_company":{"duns_number":"219999996","primary_name":"Dissolvex","trading_names":[],"global_ultimate_duns_number":"319999999","global_ultimate_primary_name":"Dissolvex Global","domain":"example.co.uk","is_out_of_business":true,"address_line_1":"20 New Fake Road","address_line_2":"","address_town":"Bristol","address_county":"","address_postcode":"B11 9QC","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Bristol","registered_address_county":"","registered_address_postcode":"B11 9QC","registered_address_country":"GB","annual_sales":2222222,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":100,"is_employees_number_estimated":true,"legal_status":"corporation"},"datahub_company":null}]}'),EntityList_stories={title:"EntitySearch",parameters:{component:EntityList.A}};var EntityListDnB=function EntityListDnB(){var transformCompanyRecord=(0,useDnbSearch.A)().transformCompanyRecord,fixtures=company_search_namespaceObject.Xv.map(transformCompanyRecord);return react.createElement(EntityList.A,{onEntityClick:(0,dist.XI)("EntitySearch.onEntityClick"),entities:fixtures})};EntityListDnB.story={name:"EntityList - DnB"},EntityListDnB.parameters={...EntityListDnB.parameters,docs:{...EntityListDnB.parameters?.docs,source:{originalSource:"() => {\n const {\n transformCompanyRecord\n } = useDnbSearch();\n const fixtures = companySearchFixture.results.map(transformCompanyRecord);\n return ;\n}",...EntityListDnB.parameters?.docs?.source}}};const __namedExportsOrder=["EntityListDnB"]}}]); \ No newline at end of file diff --git a/EntityList-__stories__-EntityList-stories.fc954173.iframe.bundle.js b/EntityList-__stories__-EntityList-stories.fc954173.iframe.bundle.js new file mode 100644 index 00000000000..2e59edd68e8 --- /dev/null +++ b/EntityList-__stories__-EntityList-stories.fc954173.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2614],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/EntityList/__stories__/EntityList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{EntityListDnB:()=>EntityListDnB,__namedExportsOrder:()=>__namedExportsOrder,default:()=>EntityList_stories});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),EntityList=__webpack_require__("./src/client/components/EntityList/index.jsx"),useDnbSearch=__webpack_require__("./src/client/components/EntityList/useDnbSearch.jsx");const company_search_namespaceObject=JSON.parse('{"Xv":[{"dnb_company":{"duns_number":"12345678","primary_name":"Some company name","trading_names":["Some trading name"],"registration_numbers":[{"registration_type":"uk_companies_house_number","registration_number":"1234567"}],"global_ultimate_duns_number":"123456789","global_ultimate_primary_name":"Some parent company name","domain":"example.co.uk","is_out_of_business":false,"address_line_1":"123 Fake Street","address_line_2":"","address_town":"Brighton","address_county":"","address_postcode":"BN1 4SE","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Brighton","registered_address_county":"","registered_address_postcode":"BN1 4SE","registered_address_country":"GB","annual_sales":1860000000,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":2000,"is_employees_number_estimated":true,"industry_codes":[{"usSicV4":"1623","usSicV4Description":"Water/sewer/utility construction"}],"legal_status":"corporation"},"datahub_company":{"id":"0fb3379c-341c-4da4-b825-bf8d47b26baa","latest_interaction":{"id":"ec4a46ef-6e50-4a5c-bba0-e311f0471312","created_on":"2019-08-01T18:10:00","date":"2019-08-01","subject":"Meeting between DBT and Joe Bloggs"}}},{"dnb_company":{"duns_number":"219999999","primary_name":"Some other company","trading_names":[],"registration_numbers":[{"registration_type":"uk_companies_house_number","registration_number":"00016033"}],"global_ultimate_duns_number":"319999999","global_ultimate_primary_name":"Some other company parent","domain":"example.co.uk","is_out_of_business":false,"address_line_1":"123 ABC Road","address_line_2":"","address_town":"Brighton","address_county":"","address_postcode":"BN2 9QB","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Brighton","registered_address_county":"","registered_address_postcode":"BN2 9QB","registered_address_country":"GB","annual_sales":1999999999,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":300,"is_employees_number_estimated":true,"industry_codes":[{"usSicV4":"3799","usSicV4Description":"Mfg transportation equipment"}],"legal_status":"corporation"},"datahub_company":null},{"dnb_company":{"duns_number":"219999996","primary_name":"Dissolvex","trading_names":[],"global_ultimate_duns_number":"319999999","global_ultimate_primary_name":"Dissolvex Global","domain":"example.co.uk","is_out_of_business":true,"address_line_1":"20 New Fake Road","address_line_2":"","address_town":"Bristol","address_county":"","address_postcode":"B11 9QC","address_country":"GB","registered_address_line_1":"","registered_address_line_2":"","registered_address_town":"Bristol","registered_address_county":"","registered_address_postcode":"B11 9QC","registered_address_country":"GB","annual_sales":2222222,"annual_sales_currency":"USD","is_annual_sales_estimated":null,"employee_number":100,"is_employees_number_estimated":true,"legal_status":"corporation"},"datahub_company":null}]}'),EntityList_stories={title:"EntitySearch",parameters:{component:EntityList.A}},EntityListDnB=()=>{const{transformCompanyRecord}=(0,useDnbSearch.A)(),fixtures=company_search_namespaceObject.Xv.map(transformCompanyRecord);return react.createElement(EntityList.A,{onEntityClick:(0,dist.XI)("EntitySearch.onEntityClick"),entities:fixtures})};EntityListDnB.story={name:"EntityList - DnB"},EntityListDnB.parameters={...EntityListDnB.parameters,docs:{...EntityListDnB.parameters?.docs,source:{originalSource:"() => {\n const {\n transformCompanyRecord\n } = useDnbSearch();\n const fixtures = companySearchFixture.results.map(transformCompanyRecord);\n return ;\n}",...EntityListDnB.parameters?.docs?.source}}};const __namedExportsOrder=["EntityListDnB"]}}]); \ No newline at end of file diff --git a/ErrorSummary-__stories__-ErrorSummary-stories.2947bb0d.iframe.bundle.js b/ErrorSummary-__stories__-ErrorSummary-stories.2947bb0d.iframe.bundle.js deleted file mode 100644 index c8c41a160b6..00000000000 --- a/ErrorSummary-__stories__-ErrorSummary-stories.2947bb0d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4108],{"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,errors:()=>errors});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ErrorSummary__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ErrorSummary/index.jsx"),errors=[{targetName:"national-insurance-number",text:"National Insurance number error"},{targetName:"description",text:"Description of what you saw error"}];const __WEBPACK_DEFAULT_EXPORT__={title:"ErrorSummary",parameters:{component:ErrorSummary__WEBPACK_IMPORTED_MODULE_1__.A},excludeStories:["errors"]};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ErrorSummary__WEBPACK_IMPORTED_MODULE_1__.A,{heading:"Message to alert the user to a problem goes here",description:"Optional description of the errors and how to correct them",errors})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["errors","Default"]}}]); \ No newline at end of file diff --git a/ErrorSummary-__stories__-ErrorSummary-stories.eb738914.iframe.bundle.js b/ErrorSummary-__stories__-ErrorSummary-stories.eb738914.iframe.bundle.js new file mode 100644 index 00000000000..0bbc51f2816 --- /dev/null +++ b/ErrorSummary-__stories__-ErrorSummary-stories.eb738914.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4108],{"./src/client/components/ErrorSummary/__stories__/ErrorSummary.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,errors:()=>errors});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ErrorSummary__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ErrorSummary/index.jsx");const errors=[{targetName:"national-insurance-number",text:"National Insurance number error"},{targetName:"description",text:"Description of what you saw error"}],__WEBPACK_DEFAULT_EXPORT__={title:"ErrorSummary",parameters:{component:ErrorSummary__WEBPACK_IMPORTED_MODULE_1__.A},excludeStories:["errors"]},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ErrorSummary__WEBPACK_IMPORTED_MODULE_1__.A,{heading:"Message to alert the user to a problem goes here",description:"Optional description of the errors and how to correct them",errors});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["errors","Default"]}}]); \ No newline at end of file diff --git a/Footer-__stories__-Footer-stories.21220cb1.iframe.bundle.js b/Footer-__stories__-Footer-stories.21220cb1.iframe.bundle.js new file mode 100644 index 00000000000..b692af764cb --- /dev/null +++ b/Footer-__stories__-Footer-stories.21220cb1.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2142],{"./src/client/components/Footer/__stories__/Footer.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomLinks:()=>CustomLinks,Footer:()=>Footer,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Footer/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={component:_index__WEBPACK_IMPORTED_MODULE_1__.h,title:"Footer"},Footer=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_1__.h,null),CustomLinks=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_1__.h,{links:{Foo:"/foo",Bar:"/bar",Baz:"/baz"}});Footer.parameters={...Footer.parameters,docs:{...Footer.parameters?.docs,source:{originalSource:"() => ",...Footer.parameters?.docs?.source}}},CustomLinks.parameters={...CustomLinks.parameters,docs:{...CustomLinks.parameters?.docs,source:{originalSource:"() => ",...CustomLinks.parameters?.docs?.source}}};const __namedExportsOrder=["Footer","CustomLinks"]}}]); \ No newline at end of file diff --git a/Footer-__stories__-Footer-stories.3c0723a2.iframe.bundle.js b/Footer-__stories__-Footer-stories.3c0723a2.iframe.bundle.js deleted file mode 100644 index ba405ef7ad6..00000000000 --- a/Footer-__stories__-Footer-stories.3c0723a2.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2142],{"./src/client/components/Footer/__stories__/Footer.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomLinks:()=>CustomLinks,Footer:()=>Footer,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Footer/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={component:_index__WEBPACK_IMPORTED_MODULE_1__.h,title:"Footer"};var Footer=function Footer(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_1__.h,null)},CustomLinks=function CustomLinks(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_1__.h,{links:{Foo:"/foo",Bar:"/bar",Baz:"/baz"}})};Footer.parameters={...Footer.parameters,docs:{...Footer.parameters?.docs,source:{originalSource:"() => ",...Footer.parameters?.docs?.source}}},CustomLinks.parameters={...CustomLinks.parameters,docs:{...CustomLinks.parameters?.docs,source:{originalSource:"() => ",...CustomLinks.parameters?.docs?.source}}};const __namedExportsOrder=["Footer","CustomLinks"]}}]); \ No newline at end of file diff --git a/Form-__stories__-Form-stories.04067f09.iframe.bundle.js b/Form-__stories__-Form-stories.04067f09.iframe.bundle.js deleted file mode 100644 index 320ef8ef09d..00000000000 --- a/Form-__stories__-Form-stories.04067f09.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9580],{"./src/client/components/Form/__stories__/Form.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basics:()=>Basics,DocsPlaceholder:()=>DocsPlaceholder,InitialValuesPassedAsProp:()=>InitialValuesPassedAsProp,MultiStep:()=>MultiStep,RejectedInitialValues:()=>RejectedInitialValues,ResourceOptionsFields:()=>ResourceOptionsFields,SoftReactRouterRedirect:()=>SoftReactRouterRedirect,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Form_stories});__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.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.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"),dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),react_router_dist=__webpack_require__("./node_modules/react-router/dist/index.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),FieldSelect=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),FieldRadios=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),FieldCheckboxes=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),FieldTypeahead=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),Step=__webpack_require__("./src/client/components/Form/elements/Step.jsx");var ResourceOptionsField=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.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)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r

\n This is a workaround to get the DocsPage to work with multiInstance\n components. The form props are fully documented{' '}\n \n in the component's docstring.\n \n

",...DocsPlaceholder.parameters?.docs?.source}}},Basics.parameters={...Basics.parameters,docs:{...Basics.parameters?.docs,source:{originalSource:'() =>
({\n ...initialValues,\n reject: \'yes\'\n})} analyticsFormName="formExample" redirectTo={(submissionTaskResult, formValues) => \'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n

\n This example redirects to the same path with the result of the submission\n task together with the submitted form values JSON serialized in the URL\n fragment.\n

\n

\n Note that the expected result of a resolved submission is a hard\n redirection, which can only be seen in Storybook when the canvas is open\n in it\'s own tab.\n

\n

The form stays in the progress state until the next page is loaded

\n ',...Basics.parameters?.docs?.source}}},ResourceOptionsFields.parameters={...ResourceOptionsFields.parameters,docs:{...ResourceOptionsFields.parameters?.docs,source:{originalSource:"() =>
\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"select\" label=\"Select\" hint='Initial value shold be \"B\".' required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"radios\" label=\"Radios\" hint=\"Uses taskName instead of resource. Initial value should be 'B'\" required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"checkboxes\" label=\"Checkboxes\" hint=\"Should Reject.\" required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"typeahead\" label=\"Typeahead\" hint=\"Default value should be 'b'\" required=\"Required\" />\n ",...ResourceOptionsFields.parameters?.docs?.source}}},RejectedInitialValues.parameters={...RejectedInitialValues.parameters,docs:{...RejectedInitialValues.parameters?.docs,source:{originalSource:'() =>
\'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n ',...RejectedInitialValues.parameters?.docs?.source}}},InitialValuesPassedAsProp.parameters={...InitialValuesPassedAsProp.parameters,docs:{...InitialValuesPassedAsProp.parameters?.docs,source:{originalSource:'() =>
\'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n ',...InitialValuesPassedAsProp.parameters?.docs?.source}}},MultiStep.parameters={...MultiStep.parameters,docs:{...MultiStep.parameters?.docs,source:{originalSource:'() =>
({\n ...initialValues,\n reject: \'yes\'\n})} analyticsFormName="formExample" redirectTo={(submissionTaskResult, formValues) => \'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'} onSuccess={(result, values) => alert(JSON.stringify({\n result,\n values\n}, null, 2))}>\n \n \n \n \n \n \n \n \n \n
',...MultiStep.parameters?.docs?.source}}},SoftReactRouterRedirect.parameters={...SoftReactRouterRedirect.parameters,docs:{...SoftReactRouterRedirect.parameters?.docs,source:{originalSource:'() => \n \n
({\n ...initialValues,\n reject: \'yes\'\n })} analyticsFormName="formExample"\n // eslint-disable-next-line no-unused-vars\n redirectTo={(submissionTaskResult, formValues) => \'/success\'}\n // eslint-disable-next-line no-unused-vars\n flashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n \n
\n \n The submission task resolved\n
\n Back to form\n
\n
',...SoftReactRouterRedirect.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Basics","ResourceOptionsFields","RejectedInitialValues","InitialValuesPassedAsProp","MultiStep","SoftReactRouterRedirect"]}}]); \ No newline at end of file diff --git a/Form-__stories__-Form-stories.b12b7e7a.iframe.bundle.js b/Form-__stories__-Form-stories.b12b7e7a.iframe.bundle.js new file mode 100644 index 00000000000..6c48a4a75a1 --- /dev/null +++ b/Form-__stories__-Form-stories.b12b7e7a.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9580],{"./src/client/components/Form/__stories__/Form.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basics:()=>Basics,DocsPlaceholder:()=>DocsPlaceholder,InitialValuesPassedAsProp:()=>InitialValuesPassedAsProp,MultiStep:()=>MultiStep,RejectedInitialValues:()=>RejectedInitialValues,ResourceOptionsFields:()=>ResourceOptionsFields,SoftReactRouterRedirect:()=>SoftReactRouterRedirect,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Form_stories});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),react_router_dist=__webpack_require__("./node_modules/react-router/dist/index.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),FieldSelect=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),FieldRadios=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),FieldCheckboxes=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),FieldTypeahead=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),Step=__webpack_require__("./src/client/components/Form/elements/Step.jsx");var ResourceOptionsField=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;ereact.createElement(Resource.Ay,_extends({},props,{name:"Load options"})),Form_stories={title:"Form"},DocsPlaceholder=()=>react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components. The form props are fully documented"," ",react.createElement("a",{href:"https://github.com/uktrade/data-hub-frontend/blob/main/src/client/components/Form/index.jsx#L467"},"in the component's docstring."));DocsPlaceholder.story={name:"Docs placeholder"};const Basics=()=>react.createElement(Form.A,{id:"task-form-example-resolve-initial-values",submissionTaskName:"Submit Form example",initialValuesTaskName:"Load initial values",initialValuesPayload:"resolve",transformInitialValues:initialValues=>({...initialValues,reject:"yes"}),analyticsFormName:"formExample",redirectTo:(submissionTaskResult,formValues)=>"#"+JSON.stringify({submissionTaskResult,formValues}),flashMessage:(submissionTaskResult,formValues)=>"Form was submitted successfully"},react.createElement(FieldInput.A,{name:"foo",type:"text",label:"Foo",hint:'Initial value should be "Blah Blah"',required:"Foo is required"}),react.createElement(FieldSelect.A,{name:"bar",label:"Bar",hint:'Initial value should be "B".',required:"Bar is required",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"}]}),react.createElement(FieldRadios.A,{name:"reject",label:"Reject",hint:"Should the submission task reject?",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]}),react.createElement("p",null,"This example redirects to the same path with the result of the submission task together with the submitted form values JSON serialized in the URL fragment."),react.createElement("p",null,"Note that the expected result of a resolved submission is a hard redirection, which can only be seen in Storybook when the canvas is open in it's own tab."),react.createElement("p",null,"The form stays in the progress state until the next page is loaded"));Basics.story={parameters:{docs:{storyDescription:"A form component which does the following:\n * Starts a _task_ when the form is submitted\n * Renders a {ProgressBox} overlay while the _task_ is in progress\n * Handles the _task_ rejection by delegating it to the underlying {TaskProgressBox}\n * Can optionally be prepopulated with initial values resolved from a _task_\n\nThe form also has the following functionality built in:\n * Error summary rendered on top of the form when there are validation errors\n * Submit button and secondary action links\n * Success flash message on _task_ resolution\n * Redirection after the _submission task_ resolves\n * Recording Google Tag Manager events\n\n### A basic Form example\n\nThis is a basic example of all the capabilities of `Form`. It:\n\n- Can resolve initial values for its fields with a _task_\n- Will start a task when the form is submitted with a map of field values sent\n as a payload to the task\n- Renders a flash message when the _submission task_ resolves\n- Hard-redirects when when the _submission task_ resolves\n- Creates analytics events on submission, step advancement and submission task\n rejection/resolution"}}};const ResourceOptionsFields=()=>react.createElement(Form.A,{id:"lazy-field-example",submissionTaskName:"Submit Form example",analyticsFormName:"formExample",initialValues:{select:"b",typeahead:{label:"B",value:"b"}}},react.createElement(ResourceOptionsField.A,{resource:DummyResource,field:FieldSelect.A,id:"select",payload:[{id:"a",name:"A"},{id:"b",name:"B"},{id:"c",name:"C"}],resultToOptions:result=>result.map((({id,name})=>({value:id,label:name}))),name:"select",label:"Select",hint:'Initial value shold be "B".',required:"Required"}),react.createElement(ResourceOptionsField.A,{taskName:"Load options",field:FieldRadios.A,id:"radios",payload:[{id:"a",name:"A"},{id:"b",name:"B"},{id:"c",name:"C"}],resultToOptions:result=>result.map((({id,name})=>({value:id,label:name}))),name:"radios",label:"Radios",hint:"Uses taskName instead of resource. Initial value should be 'B'",required:"Required"}),react.createElement(ResourceOptionsField.A,{resource:DummyResource,field:FieldCheckboxes.A,id:"checkboxes-reject",payload:[{id:"a",name:"A"},{id:"b",name:"B"},{id:"c",name:"C"}],resultToOptions:result=>result.map((({id,name})=>({value:id,label:name}))),name:"checkboxes",label:"Checkboxes",hint:"Should Reject.",required:"Required"}),react.createElement(ResourceOptionsField.A,{resource:DummyResource,field:FieldTypeahead.A,id:"typeahead",payload:[{id:"a",name:"A"},{id:"b",name:"B"},{id:"c",name:"C"}],resultToOptions:result=>result.map((({id,name})=>({value:id,label:name}))),name:"typeahead",label:"Typeahead",hint:"Default value should be 'b'",required:"Required"}));ResourceOptionsFields.story={name:"Resource options fields"};const RejectedInitialValues=()=>react.createElement(Form.A,{id:"task-form-example-reject-initial-values",submissionTaskName:"Submit Form example",initialValuesTaskName:"Load initial values",initialValuesPayload:"reject",analyticsFormName:"formExample",redirectTo:(submissionTaskResult,formValues)=>"#"+JSON.stringify({submissionTaskResult,formValues}),flashMessage:(submissionTaskResult,formValues)=>"Form was submitted successfully"},react.createElement(FieldInput.A,{name:"foo",type:"text",label:"Foo"}),react.createElement(FieldSelect.A,{name:"bar",label:"Bar",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"}]}));RejectedInitialValues.story={name:"Rejected initial values",parameters:{docs:{storyDescription:"The `Form` can resolve its initial values with the _task_ mechanism. This example demonstrates the rejection of the initial values task."}}};const InitialValuesPassedAsProp=()=>react.createElement(Form.A,{id:"task-form-example-initialValues-prop",submissionTaskName:"Submit Form example",analyticsFormName:"formExample",initialValues:{foo:"Foo",bar:"b"},redirectTo:(submissionTaskResult,formValues)=>"#"+JSON.stringify({submissionTaskResult,formValues}),flashMessage:(submissionTaskResult,formValues)=>"Form was submitted successfully"},react.createElement(FieldInput.A,{name:"foo",type:"text",label:"Foo",required:"Foo is required"}),react.createElement(FieldSelect.A,{name:"bar",label:"Bar",required:"Bar is required",initialValue:"c",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"}]}),react.createElement(FieldInput.A,{name:"baz",type:"text",label:"Baz",required:"Baz is required",initialValue:"Baz"}));InitialValuesPassedAsProp.story={name:"Initial values passed as prop",parameters:{docs:{storyDescription:"The initial values of `Form` can also be set with the `initialValues` prop."}}};const MultiStep=()=>react.createElement(Form.A,{id:"task-form-example-multi-step",submissionTaskName:"Submit Form example",initialValuesTaskName:"Load initial values",initialValuesPayload:"resolve",transformInitialValues:initialValues=>({...initialValues,reject:"yes"}),analyticsFormName:"formExample",redirectTo:(submissionTaskResult,formValues)=>"#"+JSON.stringify({submissionTaskResult,formValues}),flashMessage:(submissionTaskResult,formValues)=>"Form was submitted successfully",onSuccess:(result,values)=>alert(JSON.stringify({result,values},null,2))},react.createElement(Step.A,{name:"step-1"},react.createElement(FieldInput.A,{name:"foo",type:"text",label:"Foo",hint:'Initial value should be "Blah Blah"',required:"Foo is required"})),react.createElement(Step.A,{name:"step-2"},react.createElement(FieldSelect.A,{name:"bar",label:"Bar",hint:'Initial value should be "B".',required:"Bar is required",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"}]})),react.createElement(Step.A,{name:"step-3"},react.createElement(FieldRadios.A,{name:"reject",label:"Reject",hint:"Should the submission task reject?",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]})));MultiStep.story={name:"Multi step"};const SoftReactRouterRedirect=()=>react.createElement(dist.Switch,null,react.createElement(react_router_dist.qh,{path:"/iframe.html"},react.createElement(Form.A,{id:"task-form-example-resolve-initial-values",submissionTaskName:"Submit Form example",initialValuesTaskName:"Load initial values",initialValuesPayload:"resolve",redirectMode:"soft",transformInitialValues:initialValues=>({...initialValues,reject:"yes"}),analyticsFormName:"formExample",redirectTo:(submissionTaskResult,formValues)=>"/success",flashMessage:(submissionTaskResult,formValues)=>"Form was submitted successfully"},react.createElement(FieldInput.A,{name:"foo",type:"text",label:"Foo",hint:'Initial value should be "Blah Blah"',required:"Foo is required"}),react.createElement(FieldSelect.A,{name:"bar",label:"Bar",hint:'Initial value should be "B".',required:"Bar is required",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"}]}),react.createElement(FieldRadios.A,{name:"reject",label:"Reject",hint:"Should the submission task reject?",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]}))),react.createElement(react_router_dist.qh,{path:"/success"},"The submission task resolved",react.createElement("br",null),react.createElement(dist.N_,{to:"/iframe.html"},"Back to form")));SoftReactRouterRedirect.story={name:"Soft (React-Router) redirect",parameters:{docs:{storyDescription:"The `Form` component supports a _hard_ and _soft_ redirection mode, which\nyou can control with the `redirectMode` prop.\nThe default _hard_ mode redirects by altering `window.location.href`, the\n_soft_ mode uses React-Router.\n\nThis example demonstrates the _soft_ (React-Router) redirection."}}},DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components. The form props are fully documented{' '}\n \n in the component's docstring.\n \n

",...DocsPlaceholder.parameters?.docs?.source}}},Basics.parameters={...Basics.parameters,docs:{...Basics.parameters?.docs,source:{originalSource:'() =>
({\n ...initialValues,\n reject: \'yes\'\n})} analyticsFormName="formExample" redirectTo={(submissionTaskResult, formValues) => \'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n

\n This example redirects to the same path with the result of the submission\n task together with the submitted form values JSON serialized in the URL\n fragment.\n

\n

\n Note that the expected result of a resolved submission is a hard\n redirection, which can only be seen in Storybook when the canvas is open\n in it\'s own tab.\n

\n

The form stays in the progress state until the next page is loaded

\n ',...Basics.parameters?.docs?.source}}},ResourceOptionsFields.parameters={...ResourceOptionsFields.parameters,docs:{...ResourceOptionsFields.parameters?.docs,source:{originalSource:"() =>
\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"select\" label=\"Select\" hint='Initial value shold be \"B\".' required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"radios\" label=\"Radios\" hint=\"Uses taskName instead of resource. Initial value should be 'B'\" required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"checkboxes\" label=\"Checkboxes\" hint=\"Should Reject.\" required=\"Required\" />\n result.map(({\n id,\n name\n }) => ({\n value: id,\n label: name\n }))} name=\"typeahead\" label=\"Typeahead\" hint=\"Default value should be 'b'\" required=\"Required\" />\n ",...ResourceOptionsFields.parameters?.docs?.source}}},RejectedInitialValues.parameters={...RejectedInitialValues.parameters,docs:{...RejectedInitialValues.parameters?.docs,source:{originalSource:'() =>
\'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n ',...RejectedInitialValues.parameters?.docs?.source}}},InitialValuesPassedAsProp.parameters={...InitialValuesPassedAsProp.parameters,docs:{...InitialValuesPassedAsProp.parameters?.docs,source:{originalSource:'() =>
\'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n ',...InitialValuesPassedAsProp.parameters?.docs?.source}}},MultiStep.parameters={...MultiStep.parameters,docs:{...MultiStep.parameters?.docs,source:{originalSource:'() =>
({\n ...initialValues,\n reject: \'yes\'\n})} analyticsFormName="formExample" redirectTo={(submissionTaskResult, formValues) => \'#\' + JSON.stringify({\n submissionTaskResult,\n formValues\n})}\n// eslint-disable-next-line no-unused-vars\nflashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'} onSuccess={(result, values) => alert(JSON.stringify({\n result,\n values\n}, null, 2))}>\n \n \n \n \n \n \n \n \n \n
',...MultiStep.parameters?.docs?.source}}},SoftReactRouterRedirect.parameters={...SoftReactRouterRedirect.parameters,docs:{...SoftReactRouterRedirect.parameters?.docs,source:{originalSource:'() => \n \n
({\n ...initialValues,\n reject: \'yes\'\n })} analyticsFormName="formExample"\n // eslint-disable-next-line no-unused-vars\n redirectTo={(submissionTaskResult, formValues) => \'/success\'}\n // eslint-disable-next-line no-unused-vars\n flashMessage={(submissionTaskResult, formValues) => \'Form was submitted successfully\'}>\n \n \n \n \n
\n \n The submission task resolved\n
\n Back to form\n
\n
',...SoftReactRouterRedirect.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Basics","ResourceOptionsFields","RejectedInitialValues","InitialValuesPassedAsProp","MultiStep","SoftReactRouterRedirect"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldAddAnother-stories.1b96f298.iframe.bundle.js b/Form-elements-__stories__-FieldAddAnother-stories.1b96f298.iframe.bundle.js deleted file mode 100644 index 5aea0a158e4..00000000000 --- a/Form-elements-__stories__-FieldAddAnother-stories.1b96f298.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3220],{"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DocsPlaceholder:()=>DocsPlaceholder,Edit:()=>Edit,MultiStep:()=>MultiStep,New:()=>New,__namedExportsOrder:()=>__namedExportsOrder,default:()=>FieldAddAnother_stories});__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.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.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/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),FieldAddAnother=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/index.jsx"),FieldTypeahead=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),Step=__webpack_require__("./src/client/components/Form/elements/Step.jsx");__webpack_require__("./node_modules/core-js/modules/es.array.filter.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");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0?array.reduce((function(previous,current){return _objectSpread(_objectSpread({},previous),current)})):{}};function FieldAddAnother_stories_typeof(o){return FieldAddAnother_stories_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},FieldAddAnother_stories_typeof(o)}function FieldAddAnother_stories_defineProperty(e,r,t){return(r=function FieldAddAnother_stories_toPropertyKey(t){var i=function FieldAddAnother_stories_toPrimitive(t,r){if("object"!=FieldAddAnother_stories_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=FieldAddAnother_stories_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==FieldAddAnother_stories_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

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},Edit.parameters={...Edit.parameters,docs:{...Edit.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n {({\n groupIndex\n }) => <>\n \n \n }\n \n
\n          Using the data with the form setting and getting values{\' \'}\n          {JSON.stringify(state.values, null, 2)}\n        
\n
\n          When sending data back to the database\n          {JSON.stringify(transformObjectBackToArray(state.values), null, 2)}\n        
\n }\n
',...Edit.parameters?.docs?.source}}},New.parameters={...New.parameters,docs:{...New.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n {({\n groupIndex\n }) => <>\n \n \n }\n \n
\n          Using the data with the form setting and getting values{\' \'}\n          {JSON.stringify(state.values, null, 2)}\n        
\n
\n          When sending data back to the database\n          {JSON.stringify(transformObjectBackToArray(state.values), null, 2)}\n        
\n }\n
',...New.parameters?.docs?.source}}},MultiStep.parameters={...MultiStep.parameters,docs:{...MultiStep.parameters?.docs,source:{originalSource:'() =>
\n {({\n values\n }) => <>\n \n Step 1\n \n \n \n Step 2\n \n \n {({\n groupIndex\n }) => }\n \n \n \n Step 3\n \n \n
{JSON.stringify(values, null, 2)}
\n }\n
',...MultiStep.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Edit","New","MultiStep"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldAddAnother-stories.5f8f4f8f.iframe.bundle.js b/Form-elements-__stories__-FieldAddAnother-stories.5f8f4f8f.iframe.bundle.js new file mode 100644 index 00000000000..38f074b8fdc --- /dev/null +++ b/Form-elements-__stories__-FieldAddAnother-stories.5f8f4f8f.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3220],{"./src/client/components/Form/elements/__stories__/FieldAddAnother.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DocsPlaceholder:()=>DocsPlaceholder,Edit:()=>Edit,MultiStep:()=>MultiStep,New:()=>New,__namedExportsOrder:()=>__namedExportsOrder,default:()=>FieldAddAnother_stories});var react=__webpack_require__("./node_modules/react/index.js"),FieldAddAnother=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/index.jsx"),FieldTypeahead=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),Step=__webpack_require__("./src/client/components/Form/elements/Step.jsx");__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");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0?array.reduce((function(previous,current){return _objectSpread(_objectSpread({},previous),current)})):{}};const options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Bob Bobertson"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Mary Maryson"},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Jane Doe"}],initialValues=[{adviser_0:{label:"Bob Bobertson",value:"1379f390a-e083-4a2c-9cea-e3b9a08606a723"},role_0:"Boss"},{adviser_1:{label:"Mary Maryson",value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a"},role_1:"Minion"}],transformObjectBackToArray=valueAsObject=>Object.entries(valueAsObject).reduce(((acc,[key,val])=>{const rootKey=key.replace(/_./gm,"");return acc.push({[rootKey]:val}),acc}),[]),FieldAddAnother_stories={title:"Form/Form Elements/FieldAddAnother"},DocsPlaceholder=()=>react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.");DocsPlaceholder.story={name:"Docs placeholder"};const Edit=()=>react.createElement(Form.A,{id:"fieldAddAnotherExample",analyticsFormName:"fieldAddAnotherExample",submissionTaskName:"Submit Form example",initialValues:transformArrayToObject(initialValues)},(state=>react.createElement(react.Fragment,null,react.createElement(FieldAddAnother.A,{name:"teams_edit-example",legend:"Team members with roles",dataTestPrefix:"teams-field-",itemName:"team member",initialChildGroupCount:initialValues.length,limitChildGroupCount:4},(({groupIndex})=>react.createElement(react.Fragment,null,react.createElement(FieldTypeahead.A,{name:`adviser_${groupIndex}`,inputId:`adviser_${groupIndex}`,label:"Team Member",options,placeholder:"Search advisers",required:"Select at least one Adviser","aria-label":"Select an adviser"}),react.createElement(FieldInput.A,{name:`role_${groupIndex}`,type:"text",label:"Role"})))),react.createElement("pre",null,"Using the data with the form setting and getting values"," ",JSON.stringify(state.values,null,2)),react.createElement("pre",null,"When sending data back to the database",JSON.stringify(transformObjectBackToArray(state.values),null,2)))));Edit.story={parameters:{docs:{storyDescription:"\nThis is a form field component which enables rendering of multiple instances of the same field(s). The component takes as its children a function which returns the field(s) to be repeated. The argument to this function is the `{groupIndex}`, where:\n\n- ***groupIndex*** is the the index of FieldAddAnother component item\n\nThe ***initialValues*** is an array of grouped items. The ***transformArrayToObject*** function that will flatten this for the ***form*** component to deliver the values to the relative Field type components. \n\nThe **initialChildGroupCount** is an attribute informing the component of how many instances of the child components need to be rendered within the *FieldAddAnother* children and is primarily used in edit mode when showing values within the *FieldAddAnother* component. So in the example below there are two groups of adviser roles [adviser_0, role_0] and (adviser_1, role_1) and so the *initialChildGroupCount* should be ***2***. By default this is ***1*** and when no data is being assigned will show no component details until the *\"Add another\"* button is clicked.\n\nThe **limitChildGroupCount** limits the number of child components a user can add by removing the *\"Add another\"* button at the limit\n\n### Properties\n\n| Prop | Required | Default | Type | Description |\n| :----------------- | :------- | :------ | :----------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `name` | true | | string | Text for name attribute value |\n| `label` | false | null | string | Text for the label element |\n| `children` | true | | function | Function that returns components to be rendered for each item in the list |\n| `dataTestPrefix` | false | |string|Allows children to be selected via `[data-test='']`|\n| `initialChildGroupCount` | false | 1 | number | Number of child items groups that need to be repeated or added as a children from form on initial load |\n| `itemName` | true | | string | For screen readers; What this field is a list of, for example if this were set to 'trade agreements' screen readers would read 'first trade agreement' |\n| | | | | |\n"}}};const New=()=>react.createElement(Form.A,{id:"fieldAddAnotherExample",analyticsFormName:"fieldAddAnotherExample",submissionTaskName:"Submit Form example"},(state=>react.createElement(react.Fragment,null,react.createElement(FieldAddAnother.A,{name:"teams_new_edit_example",legend:"Team members with roles",dataTestPrefix:"teams-field-",itemName:"team member"},(({groupIndex})=>react.createElement(react.Fragment,null,react.createElement(FieldTypeahead.A,{name:`adviser_${groupIndex}`,inputId:`adviser_${groupIndex}`,label:"Team Member",options,placeholder:"Search advisers",required:"Select at least one Adviser","aria-label":"Select an adviser"}),react.createElement(FieldInput.A,{name:`role_${groupIndex}`,type:"text",label:"Role"})))),react.createElement("pre",null,"Using the data with the form setting and getting values"," ",JSON.stringify(state.values,null,2)),react.createElement("pre",null,"When sending data back to the database",JSON.stringify(transformObjectBackToArray(state.values),null,2))))),MultiStep=()=>react.createElement(Form.A,{id:"fieldAddAnotherMultiStepExample",submissionTaskName:"Submit Form example",initialValues:{"added-another-input_0":"Initial value 0","added-another-input_1":"Initial value 1","added-another-input_2":"Initial value 2"}},(({values})=>react.createElement(react.Fragment,null,react.createElement(Step.A,{name:"step-1"},"Step 1",react.createElement(FieldInput.A,{label:"Step 1 input",name:"step-1-input"})),react.createElement(Step.A,{name:"step-2"},"Step 2",react.createElement(FieldInput.A,{label:"Step 2 input",name:"step-2-input"}),react.createElement(FieldAddAnother.A,{itemName:"thing",initialChildGroupCount:3,limitChildGroupCount:7},(({groupIndex})=>react.createElement(FieldInput.A,{name:`added-another-input_${groupIndex}`,type:"text",label:"Added another"})))),react.createElement(Step.A,{name:"step-3"},"Step 3",react.createElement(FieldInput.A,{label:"Step 3 input",name:"step-3-input"})),react.createElement("pre",null,JSON.stringify(values,null,2)))));DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},Edit.parameters={...Edit.parameters,docs:{...Edit.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n {({\n groupIndex\n }) => <>\n \n \n }\n \n
\n          Using the data with the form setting and getting values{\' \'}\n          {JSON.stringify(state.values, null, 2)}\n        
\n
\n          When sending data back to the database\n          {JSON.stringify(transformObjectBackToArray(state.values), null, 2)}\n        
\n }\n
',...Edit.parameters?.docs?.source}}},New.parameters={...New.parameters,docs:{...New.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n {({\n groupIndex\n }) => <>\n \n \n }\n \n
\n          Using the data with the form setting and getting values{\' \'}\n          {JSON.stringify(state.values, null, 2)}\n        
\n
\n          When sending data back to the database\n          {JSON.stringify(transformObjectBackToArray(state.values), null, 2)}\n        
\n }\n
',...New.parameters?.docs?.source}}},MultiStep.parameters={...MultiStep.parameters,docs:{...MultiStep.parameters?.docs,source:{originalSource:'() =>
\n {({\n values\n }) => <>\n \n Step 1\n \n \n \n Step 2\n \n \n {({\n groupIndex\n }) => }\n \n \n \n Step 3\n \n \n
{JSON.stringify(values, null, 2)}
\n }\n
',...MultiStep.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Edit","New","MultiStep"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCheckboxes-stories.0efdf984.iframe.bundle.js b/Form-elements-__stories__-FieldCheckboxes-stories.0efdf984.iframe.bundle.js new file mode 100644 index 00000000000..39291baf0ca --- /dev/null +++ b/Form-elements-__stories__-FieldCheckboxes-stories.0efdf984.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8141],{"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CheckboxesExclusive:()=>CheckboxesExclusive,CheckboxesHint:()=>CheckboxesHint,CheckboxesLegend:()=>CheckboxesLegend,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Form/index.jsx");const StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_2__.B_)({margin:0}),options=[{label:"Italy",value:"it"},{label:"Poland",value:"pl"},{label:"United Kingdom",value:"gb"},{label:"United States",value:"us",hint:"Hints are supported!"}],__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Checkboxes",parameters:{component:_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"What are your favourite countries?",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2))))),CheckboxesHint=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"What are your favourite countries?",hint:"Some hint",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));CheckboxesHint.story={name:"Checkboxes - hint"};const CheckboxesLegend=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries2",legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H1,null,"Using H1 as legend"),hint:"Some hint",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));CheckboxesLegend.story={name:"Checkboxes - legend"};const CheckboxesExclusive=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"Estimated land date notification preferences",hint:"Select all that apply",required:"Select at least one country or select 'No, ...'",exclusive:!0,initialValue:["no"],options:[{label:"France",value:"fr"},{label:"Portugal",value:"pr"},{label:"Spain",value:"sp"},{label:"No, I will not be travelling to any of these countries",value:"no"},{label:"Yes, I will travelling to any of these countries",value:"yes",link:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDetails,{summary:"Is included a territorial independent countries?","data-test":"some-list-of-territorial-countries"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"List of territorial countries:"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.Xy,{listStyleType:"bullet"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"French Guiana"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"Madeira and Azores"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"Balearic Islands(Ibiza, Formentera, Mallorca and Canary Islands)")))}]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));CheckboxesExclusive.story={name:"Checkboxes - exclusive"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...Default.parameters?.docs?.source}}},CheckboxesHint.parameters={...CheckboxesHint.parameters,docs:{...CheckboxesHint.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...CheckboxesHint.parameters?.docs?.source}}},CheckboxesLegend.parameters={...CheckboxesLegend.parameters,docs:{...CheckboxesLegend.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n Using H1 as legend} hint="Some hint" required="Select at least one country" options={options} />\n
{JSON.stringify(form, null, 2)}
\n }\n ',...CheckboxesLegend.parameters?.docs?.source}}},CheckboxesExclusive.parameters={...CheckboxesExclusive.parameters,docs:{...CheckboxesExclusive.parameters?.docs,source:{originalSource:"() =>
\n {form => <>\n \n

List of territorial countries:

\n \n French Guiana\n Madeira and Azores\n \n Balearic Islands(Ibiza, Formentera, Mallorca and Canary\n Islands)\n \n \n \n }]} />\n
{JSON.stringify(form, null, 2)}
\n }\n ",...CheckboxesExclusive.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CheckboxesHint","CheckboxesLegend","CheckboxesExclusive"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCheckboxes-stories.9c014366.iframe.bundle.js b/Form-elements-__stories__-FieldCheckboxes-stories.9c014366.iframe.bundle.js deleted file mode 100644 index a245675b6b0..00000000000 --- a/Form-elements-__stories__-FieldCheckboxes-stories.9c014366.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8141],{"./src/client/components/Form/elements/__stories__/FieldCheckboxes.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CheckboxesExclusive:()=>CheckboxesExclusive,CheckboxesHint:()=>CheckboxesHint,CheckboxesLegend:()=>CheckboxesLegend,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Form/index.jsx"),StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_2__.B_)({margin:0}),options=[{label:"Italy",value:"it"},{label:"Poland",value:"pl"},{label:"United Kingdom",value:"gb"},{label:"United States",value:"us",hint:"Hints are supported!"}];const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Checkboxes",parameters:{component:_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"What are your favourite countries?",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))},CheckboxesHint=function CheckboxesHint(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"What are your favourite countries?",hint:"Some hint",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};CheckboxesHint.story={name:"Checkboxes - hint"};var CheckboxesLegend=function CheckboxesLegend(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries2",legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H1,null,"Using H1 as legend"),hint:"Some hint",required:"Select at least one country",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};CheckboxesLegend.story={name:"Checkboxes - legend"};var CheckboxesExclusive=function CheckboxesExclusive(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_4__.A,{id:"fieldCheckboxExample",analyticsFormName:"fieldCheckboxExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_3__.A,{name:"countries",label:"Estimated land date notification preferences",hint:"Select all that apply",required:"Select at least one country or select 'No, ...'",exclusive:!0,initialValue:["no"],options:[{label:"France",value:"fr"},{label:"Portugal",value:"pr"},{label:"Spain",value:"sp"},{label:"No, I will not be travelling to any of these countries",value:"no"},{label:"Yes, I will travelling to any of these countries",value:"yes",link:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDetails,{summary:"Is included a territorial independent countries?","data-test":"some-list-of-territorial-countries"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"List of territorial countries:"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.Xy,{listStyleType:"bullet"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"French Guiana"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"Madeira and Azores"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_2__.ck,null,"Balearic Islands(Ibiza, Formentera, Mallorca and Canary Islands)")))}]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};CheckboxesExclusive.story={name:"Checkboxes - exclusive"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...Default.parameters?.docs?.source}}},CheckboxesHint.parameters={...CheckboxesHint.parameters,docs:{...CheckboxesHint.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...CheckboxesHint.parameters?.docs?.source}}},CheckboxesLegend.parameters={...CheckboxesLegend.parameters,docs:{...CheckboxesLegend.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n Using H1 as legend} hint="Some hint" required="Select at least one country" options={options} />\n
{JSON.stringify(form, null, 2)}
\n }\n ',...CheckboxesLegend.parameters?.docs?.source}}},CheckboxesExclusive.parameters={...CheckboxesExclusive.parameters,docs:{...CheckboxesExclusive.parameters?.docs,source:{originalSource:"() =>
\n {form => <>\n \n

List of territorial countries:

\n \n French Guiana\n Madeira and Azores\n \n Balearic Islands(Ibiza, Formentera, Mallorca and Canary\n Islands)\n \n \n \n }]} />\n
{JSON.stringify(form, null, 2)}
\n }\n ",...CheckboxesExclusive.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CheckboxesHint","CheckboxesLegend","CheckboxesExclusive"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js b/Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js new file mode 100644 index 00000000000..296506ebc64 --- /dev/null +++ b/Form-elements-__stories__-FieldChoice-stories.843bb4e6.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__,{Checkbox:()=>Checkbox,CheckboxChecked:()=>CheckboxChecked,CheckboxHint:()=>CheckboxHint,CheckboxInline:()=>CheckboxInline,CheckboxLabel:()=>CheckboxLabel,CheckboxLegend:()=>CheckboxLegend,CheckboxRequired:()=>CheckboxRequired,Radio:()=>Radio,RadioHint:()=>RadioHint,RadioInline:()=>RadioInline,RadioLabel:()=>RadioLabel,RadioLegend:()=>RadioLegend,RadioRequired:()=>RadioRequired,RadioSelected:()=>RadioSelected,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldChoice__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),___WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/index.jsx");const inline=styled_components__WEBPACK_IMPORTED_MODULE_4__.AH` + fieldset div { + display: flex; + } + fieldset div label { + margin-right: 10px; + } +`,FieldChoiceRadioInline=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)(_FieldChoice__WEBPACK_IMPORTED_MODULE_2__.A.Radio)` + ${inline} +`,FieldChoiceCheckboxInline=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)(_FieldChoice__WEBPACK_IMPORTED_MODULE_2__.A.Checkbox)` + ${inline} +`,options=[{value:"0",label:"England"},{value:"1",label:"Wales"},{value:"2",label:"Scotland"},{value:"3",label:"Northern Ireland"}],formatOption=option=>`{ value: '${option.value}', label: '${option.label}' }`,__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldChoice",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_2__.A,args:{options,name:"country",component:_FieldChoice__WEBPACK_IMPORTED_MODULE_2__.A},argTypes:{type:"string",initialValues:{control:"object"}},parameters:{docs:{description:{component:'The FieldChoice component is designed to render 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 (Object) to the Form\'s state which is helpful on user journeys where the final page is a summary page and you\n need to pullout a name (or any other field) from a previous selection to display it to the user. At present, FieldRadio only writes the ID (String) to the form state.'}}}},Template=({component:Component,initialValues,...args},{id:storyId})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_3__.A,{id:storyId,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))))),defaultFormProps='\n id="form-id"\n analyticsFormName="formRadio"\n submissionTaskName="SUBMISSION"',getForm=({component,formProp,componentProp})=>`\n
\n {(state) => (\n <${component}\n ${componentProp?`name="country"\n ${componentProp}`:'name="country"'}\n options={[\n ${formatOption(options[0])}\n ${formatOption(options[1])}\n ${formatOption(options[2])}\n ${formatOption(options[3])}\n ]}\n />\n )}\n
\n`,Radio=Template.bind({});Radio.args={type:"radio"},Radio.parameters={docs:{description:{story:"A group of 4 radio buttons"},source:{code:getForm({component:"FieldChoice.Radio"})}}};const RadioLabel=Template.bind({});RadioLabel.args={...Radio.args,label:"Countries"},RadioLabel.parameters={docs:{description:{story:"Radio button group label"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'label="Countries"'})}}};const RadioHint=Template.bind({});RadioHint.args={...Radio.args,hint:"Country hint"},RadioHint.parameters={docs:{description:{story:"Radio button group hint text"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'hint="Country hint"'})}}};const RadioLegend=Template.bind({});RadioLegend.args={...Radio.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"My H1 legend")},RadioLegend.parameters={docs:{description:{story:"Radio button group legend"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:"legend={

My H1 legend

}"})}}};const RadioInline=Template.bind({});RadioInline.args={...Radio.args,component:FieldChoiceRadioInline},RadioInline.parameters={docs:{description:{story:"Radio button group inline"},source:{code:getForm({component:"FieldChoiceRadioInline"})}}};const RadioRequired=Template.bind({});RadioRequired.args={...Radio.args,required:"Select at least one country"},RadioRequired.parameters={docs:{description:{story:'Radio button group where a selection is required. Click "Save" to view the form validation error message.'},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'required="Select at least one country"'})}}};const RadioSelected=Template.bind({});RadioSelected.args={...Radio.args,initialValues:{country:options[0]}},RadioSelected.parameters={docs:{description:{story:"Radio button group selected"},source:{code:getForm({component:"FieldChoice.Radio",formProp:`initialValues={{country: ${formatOption(options[0])}}}`})}}};const Checkbox=Template.bind({});Checkbox.args={type:"checkbox"},Checkbox.parameters={docs:{description:{story:"A group of 4 checkboxes."},source:{code:getForm({component:"FieldChoice.Checkbox"})}}};const CheckboxLabel=Template.bind({});CheckboxLabel.args={...Checkbox.args,label:"Countries"},CheckboxLabel.parameters={docs:{description:{story:"Checkbox group label"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'label="Countries"'})}}};const CheckboxHint=Template.bind({});CheckboxHint.args={...Checkbox.args,hint:"Country hint"},CheckboxHint.parameters={docs:{description:{story:"Checkbox group hint text"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'hint="Country hint"'})}}};const CheckboxLegend=Template.bind({});CheckboxLegend.args={...Checkbox.args,legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H1,null,"My H1 legend")},CheckboxLegend.parameters={docs:{description:{story:"Checkbox group legend"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:"legend={

My H1 legend

}"})}}};const CheckboxInline=Template.bind({});CheckboxInline.args={...Checkbox.args,component:FieldChoiceCheckboxInline},CheckboxInline.parameters={docs:{description:{story:"Checkbox group inline"},source:{code:getForm({component:"FieldChoiceCheckboxInline"})}}};const CheckboxRequired=Template.bind({});CheckboxRequired.args={...Checkbox.args,required:"Choose one or more countries"},CheckboxRequired.parameters={docs:{description:{story:'Checkbox group where a user must choose at least one country. Click "Save" to view the form validation error message.'},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'required="Choose one or more countries"'})}}};const CheckboxChecked=Template.bind({});CheckboxChecked.args={...Checkbox.args,initialValues:{country:[options[0],options[1]]}},CheckboxChecked.parameters={docs:{description:{story:"Checkbox group checked"},source:{code:getForm({component:"FieldChoice.Checkbox",formProp:`initialValues={{ country: [${(options=>options.map(formatOption))([options[0],options[1]])}]}}`})}}},Radio.parameters={...Radio.parameters,docs:{...Radio.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Radio.parameters?.docs?.source}}},RadioLabel.parameters={...RadioLabel.parameters,docs:{...RadioLabel.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioLabel.parameters?.docs?.source}}},RadioHint.parameters={...RadioHint.parameters,docs:{...RadioHint.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioHint.parameters?.docs?.source}}},RadioLegend.parameters={...RadioLegend.parameters,docs:{...RadioLegend.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioLegend.parameters?.docs?.source}}},RadioInline.parameters={...RadioInline.parameters,docs:{...RadioInline.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioInline.parameters?.docs?.source}}},RadioRequired.parameters={...RadioRequired.parameters,docs:{...RadioRequired.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioRequired.parameters?.docs?.source}}},RadioSelected.parameters={...RadioSelected.parameters,docs:{...RadioSelected.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioSelected.parameters?.docs?.source}}},Checkbox.parameters={...Checkbox.parameters,docs:{...Checkbox.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Checkbox.parameters?.docs?.source}}},CheckboxLabel.parameters={...CheckboxLabel.parameters,docs:{...CheckboxLabel.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxLabel.parameters?.docs?.source}}},CheckboxHint.parameters={...CheckboxHint.parameters,docs:{...CheckboxHint.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxHint.parameters?.docs?.source}}},CheckboxLegend.parameters={...CheckboxLegend.parameters,docs:{...CheckboxLegend.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxLegend.parameters?.docs?.source}}},CheckboxInline.parameters={...CheckboxInline.parameters,docs:{...CheckboxInline.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxInline.parameters?.docs?.source}}},CheckboxRequired.parameters={...CheckboxRequired.parameters,docs:{...CheckboxRequired.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxRequired.parameters?.docs?.source}}},CheckboxChecked.parameters={...CheckboxChecked.parameters,docs:{...CheckboxChecked.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxChecked.parameters?.docs?.source}}};const __namedExportsOrder=["Radio","RadioLabel","RadioHint","RadioLegend","RadioInline","RadioRequired","RadioSelected","Checkbox","CheckboxLabel","CheckboxHint","CheckboxLegend","CheckboxInline","CheckboxRequired","CheckboxChecked"]}}]); +//# sourceMappingURL=Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js.map \ No newline at end of file diff --git a/Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js.map b/Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js.map new file mode 100644 index 00000000000..a34dac63517 --- /dev/null +++ b/Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Form-elements-__stories__-FieldChoice-stories.843bb4e6.iframe.bundle.js","mappings":";;;;;;;AAaA;AACA;AAEA;AACA;AAEA","sources":["webpack://data-hub-frontend/"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/Form-elements-__stories__-FieldChoice-stories.db9672ac.iframe.bundle.js b/Form-elements-__stories__-FieldChoice-stories.db9672ac.iframe.bundle.js deleted file mode 100644 index 7ce5692f2a0..00000000000 --- a/Form-elements-__stories__-FieldChoice-stories.db9672ac.iframe.bundle.js +++ /dev/null @@ -1 +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__,{Checkbox:()=>Checkbox,CheckboxChecked:()=>CheckboxChecked,CheckboxHint:()=>CheckboxHint,CheckboxInline:()=>CheckboxInline,CheckboxLabel:()=>CheckboxLabel,CheckboxLegend:()=>CheckboxLegend,CheckboxRequired:()=>CheckboxRequired,Radio:()=>Radio,RadioHint:()=>RadioHint,RadioInline:()=>RadioInline,RadioLabel:()=>RadioLabel,RadioLegend:()=>RadioLegend,RadioRequired:()=>RadioRequired,RadioSelected:()=>RadioSelected,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_FieldChoice__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),___WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Form/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,_templateObject3,_excluded=["component","initialValues"];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;rFieldChoice component is designed to render 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 (Object) to the Form\'s state which is helpful on user journeys where the final page is a summary page and you\n need to pullout a name (or any other field) from a previous selection to display it to the user. At present, FieldRadio only writes the ID (String) to the form state.'}}}};var Template=function Template(_ref,_ref2){var Component=_ref.component,initialValues=_ref.initialValues,args=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),storyId=_ref2.id;return react__WEBPACK_IMPORTED_MODULE_19__.createElement(___WEBPACK_IMPORTED_MODULE_22__.A,{id:storyId,analyticsFormName:"formRadio",submissionTaskName:"SUBMISSION",initialValues},(function(state){return react__WEBPACK_IMPORTED_MODULE_19__.createElement(react__WEBPACK_IMPORTED_MODULE_19__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_19__.createElement(Component,args),react__WEBPACK_IMPORTED_MODULE_19__.createElement("pre",null,JSON.stringify(state,null,2)))}))},defaultFormProps='\n id="form-id"\n analyticsFormName="formRadio"\n submissionTaskName="SUBMISSION"',getForm=function getForm(_ref3){var component=_ref3.component,formProp=_ref3.formProp,componentProp=_ref3.componentProp,formProps=formProp?"".concat(defaultFormProps,"\n ").concat(formProp):" ".concat(defaultFormProps),componentProps=componentProp?"".concat('name="country"',"\n ").concat(componentProp):"".concat('name="country"');return"\n
\n {(state) => (\n <").concat(component,"\n ").concat(componentProps,"\n options={[\n ").concat(formatOption(options[0]),"\n ").concat(formatOption(options[1]),"\n ").concat(formatOption(options[2]),"\n ").concat(formatOption(options[3]),"\n ]}\n />\n )}\n
\n")},Radio=Template.bind({});Radio.args={type:"radio"},Radio.parameters={docs:{description:{story:"A group of 4 radio buttons"},source:{code:getForm({component:"FieldChoice.Radio"})}}};var RadioLabel=Template.bind({});RadioLabel.args=_objectSpread(_objectSpread({},Radio.args),{},{label:"Countries"}),RadioLabel.parameters={docs:{description:{story:"Radio button group label"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'label="Countries"'})}}};var RadioHint=Template.bind({});RadioHint.args=_objectSpread(_objectSpread({},Radio.args),{},{hint:"Country hint"}),RadioHint.parameters={docs:{description:{story:"Radio button group hint text"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'hint="Country hint"'})}}};var RadioLegend=Template.bind({});RadioLegend.args=_objectSpread(_objectSpread({},Radio.args),{},{legend:react__WEBPACK_IMPORTED_MODULE_19__.createElement("h1",null,"My H1 legend")}),RadioLegend.parameters={docs:{description:{story:"Radio button group legend"},source:{code:getForm({component:"FieldChoice.Radio",componentProp:"legend={

My H1 legend

}"})}}};var RadioInline=Template.bind({});RadioInline.args=_objectSpread(_objectSpread({},Radio.args),{},{component:FieldChoiceRadioInline}),RadioInline.parameters={docs:{description:{story:"Radio button group inline"},source:{code:getForm({component:"FieldChoiceRadioInline"})}}};var RadioRequired=Template.bind({});RadioRequired.args=_objectSpread(_objectSpread({},Radio.args),{},{required:"Select at least one country"}),RadioRequired.parameters={docs:{description:{story:'Radio button group where a selection is required. Click "Save" to view the form validation error message.'},source:{code:getForm({component:"FieldChoice.Radio",componentProp:'required="Select at least one country"'})}}};var RadioSelected=Template.bind({});RadioSelected.args=_objectSpread(_objectSpread({},Radio.args),{},{initialValues:{country:options[0]}}),RadioSelected.parameters={docs:{description:{story:"Radio button group selected"},source:{code:getForm({component:"FieldChoice.Radio",formProp:"initialValues={{country: ".concat(formatOption(options[0]),"}}")})}}};var Checkbox=Template.bind({});Checkbox.args={type:"checkbox"},Checkbox.parameters={docs:{description:{story:"A group of 4 checkboxes."},source:{code:getForm({component:"FieldChoice.Checkbox"})}}};var CheckboxLabel=Template.bind({});CheckboxLabel.args=_objectSpread(_objectSpread({},Checkbox.args),{},{label:"Countries"}),CheckboxLabel.parameters={docs:{description:{story:"Checkbox group label"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'label="Countries"'})}}};var CheckboxHint=Template.bind({});CheckboxHint.args=_objectSpread(_objectSpread({},Checkbox.args),{},{hint:"Country hint"}),CheckboxHint.parameters={docs:{description:{story:"Checkbox group hint text"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'hint="Country hint"'})}}};var CheckboxLegend=Template.bind({});CheckboxLegend.args=_objectSpread(_objectSpread({},Checkbox.args),{},{legend:react__WEBPACK_IMPORTED_MODULE_19__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_20__.H1,null,"My H1 legend")}),CheckboxLegend.parameters={docs:{description:{story:"Checkbox group legend"},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:"legend={

My H1 legend

}"})}}};var CheckboxInline=Template.bind({});CheckboxInline.args=_objectSpread(_objectSpread({},Checkbox.args),{},{component:FieldChoiceCheckboxInline}),CheckboxInline.parameters={docs:{description:{story:"Checkbox group inline"},source:{code:getForm({component:"FieldChoiceCheckboxInline"})}}};var CheckboxRequired=Template.bind({});CheckboxRequired.args=_objectSpread(_objectSpread({},Checkbox.args),{},{required:"Choose one or more countries"}),CheckboxRequired.parameters={docs:{description:{story:'Checkbox group where a user must choose at least one country. Click "Save" to view the form validation error message.'},source:{code:getForm({component:"FieldChoice.Checkbox",componentProp:'required="Choose one or more countries"'})}}};var CheckboxChecked=Template.bind({});CheckboxChecked.args=_objectSpread(_objectSpread({},Checkbox.args),{},{initialValues:{country:[options[0],options[1]]}}),CheckboxChecked.parameters={docs:{description:{story:"Checkbox group checked"},source:{code:getForm({component:"FieldChoice.Checkbox",formProp:"initialValues={{ country: [".concat(function formatOptions(options){return options.map(formatOption)}([options[0],options[1]]),"]}}")})}}},Radio.parameters={...Radio.parameters,docs:{...Radio.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Radio.parameters?.docs?.source}}},RadioLabel.parameters={...RadioLabel.parameters,docs:{...RadioLabel.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioLabel.parameters?.docs?.source}}},RadioHint.parameters={...RadioHint.parameters,docs:{...RadioHint.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioHint.parameters?.docs?.source}}},RadioLegend.parameters={...RadioLegend.parameters,docs:{...RadioLegend.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioLegend.parameters?.docs?.source}}},RadioInline.parameters={...RadioInline.parameters,docs:{...RadioInline.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioInline.parameters?.docs?.source}}},RadioRequired.parameters={...RadioRequired.parameters,docs:{...RadioRequired.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioRequired.parameters?.docs?.source}}},RadioSelected.parameters={...RadioSelected.parameters,docs:{...RadioSelected.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...RadioSelected.parameters?.docs?.source}}},Checkbox.parameters={...Checkbox.parameters,docs:{...Checkbox.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Checkbox.parameters?.docs?.source}}},CheckboxLabel.parameters={...CheckboxLabel.parameters,docs:{...CheckboxLabel.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxLabel.parameters?.docs?.source}}},CheckboxHint.parameters={...CheckboxHint.parameters,docs:{...CheckboxHint.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxHint.parameters?.docs?.source}}},CheckboxLegend.parameters={...CheckboxLegend.parameters,docs:{...CheckboxLegend.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxLegend.parameters?.docs?.source}}},CheckboxInline.parameters={...CheckboxInline.parameters,docs:{...CheckboxInline.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxInline.parameters?.docs?.source}}},CheckboxRequired.parameters={...CheckboxRequired.parameters,docs:{...CheckboxRequired.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxRequired.parameters?.docs?.source}}},CheckboxChecked.parameters={...CheckboxChecked.parameters,docs:{...CheckboxChecked.parameters?.docs,source:{originalSource:'({\n component: Component,\n initialValues,\n ...args\n}, {\n id: storyId\n}) =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...CheckboxChecked.parameters?.docs?.source}}};const __namedExportsOrder=["Radio","RadioLabel","RadioHint","RadioLegend","RadioInline","RadioRequired","RadioSelected","Checkbox","CheckboxLabel","CheckboxHint","CheckboxLegend","CheckboxInline","CheckboxRequired","CheckboxChecked"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCompaniesTypeahead-stories.583ad718.iframe.bundle.js b/Form-elements-__stories__-FieldCompaniesTypeahead-stories.583ad718.iframe.bundle.js new file mode 100644 index 00000000000..de754371a48 --- /dev/null +++ b/Form-elements-__stories__-FieldCompaniesTypeahead-stories.583ad718.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6286],{"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,mockLoadOptions:()=>mockLoadOptions});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldCompaniesTypeahead/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Company A",isInList:!0,ukRegion:{name:"Bristol"}},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Company B",ukRegion:{name:"Cardiff"}},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Company C",address:{country:{name:"France"}}}],mockLoadOptions=(query="")=>new Promise((resolve=>query&&query.length?setTimeout(resolve,200,options.filter((({label})=>label.toLowerCase().includes(query.toLowerCase())))):resolve([]))),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldCompaniesTypeahead",excludeStories:["mockLoadOptions"],parameters:{component:_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldCompaniesTypeaheadExample",analyticsFormName:"fieldCompaniesTypeaheadExample",submissionTaskName:"Submit Form example"},(()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_1__.A,{name:"company",loadOptions:mockLoadOptions}))));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["mockLoadOptions","Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCompaniesTypeahead-stories.58786fbf.iframe.bundle.js b/Form-elements-__stories__-FieldCompaniesTypeahead-stories.58786fbf.iframe.bundle.js deleted file mode 100644 index 2348ef13f9a..00000000000 --- a/Form-elements-__stories__-FieldCompaniesTypeahead-stories.58786fbf.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6286],{"./src/client/components/Form/elements/__stories__/FieldCompaniesTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,mockLoadOptions:()=>mockLoadOptions});__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.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Form/elements/FieldCompaniesTypeahead/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Form/index.jsx"),options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Company A",isInList:!0,ukRegion:{name:"Bristol"}},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Company B",ukRegion:{name:"Cardiff"}},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Company C",address:{country:{name:"France"}}}],mockLoadOptions=function mockLoadOptions(){var query=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve){return query&&query.length?setTimeout(resolve,200,options.filter((function(_ref){return _ref.label.toLowerCase().includes(query.toLowerCase())}))):resolve([])}))};const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldCompaniesTypeahead",excludeStories:["mockLoadOptions"],parameters:{component:_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_6__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Form__WEBPACK_IMPORTED_MODULE_7__.A,{id:"fieldCompaniesTypeaheadExample",analyticsFormName:"fieldCompaniesTypeaheadExample",submissionTaskName:"Submit Form example"},(function(){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_5__.createElement(_FieldCompaniesTypeahead__WEBPACK_IMPORTED_MODULE_6__.A,{name:"company",loadOptions:mockLoadOptions}))}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["mockLoadOptions","Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCurrency-stories.46c716f8.iframe.bundle.js b/Form-elements-__stories__-FieldCurrency-stories.46c716f8.iframe.bundle.js deleted file mode 100644 index 0a310856083..00000000000 --- a/Form-elements-__stories__-FieldCurrency-stories.46c716f8.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1555],{"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldCurrencyDefaultValidation:()=>FieldCurrencyDefaultValidation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldCurrency/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Currency",parameters:{component:_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A}};var FieldCurrencyDefaultValidation=function FieldCurrencyDefaultValidation(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldCurrencyExample",analyticsFormName:"fieldCurrencyExample",submissionTaskName:"Submit Form example"},(function(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A,{name:"currency1",label:"Estimate amount in pounds (bold label)",hint:"For example, £1,000",required:"Enter amount in pounds"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A,{name:"currency2",label:"Estimate amount in pounds (not bold label)",hint:"For example, £1,000",required:"Enter amount in pounds",boldLabel:!1}))}))};FieldCurrencyDefaultValidation.story={name:"FieldCurrency - default validation"},FieldCurrencyDefaultValidation.parameters={...FieldCurrencyDefaultValidation.parameters,docs:{...FieldCurrencyDefaultValidation.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n\n \n }\n ',...FieldCurrencyDefaultValidation.parameters?.docs?.source}}};const __namedExportsOrder=["FieldCurrencyDefaultValidation"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldCurrency-stories.db9f8256.iframe.bundle.js b/Form-elements-__stories__-FieldCurrency-stories.db9f8256.iframe.bundle.js new file mode 100644 index 00000000000..f06a6e193af --- /dev/null +++ b/Form-elements-__stories__-FieldCurrency-stories.db9f8256.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1555],{"./src/client/components/Form/elements/__stories__/FieldCurrency.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldCurrencyDefaultValidation:()=>FieldCurrencyDefaultValidation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldCurrency/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Currency",parameters:{component:_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A}},FieldCurrencyDefaultValidation=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldCurrencyExample",analyticsFormName:"fieldCurrencyExample",submissionTaskName:"Submit Form example"},(()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A,{name:"currency1",label:"Estimate amount in pounds (bold label)",hint:"For example, £1,000",required:"Enter amount in pounds"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldCurrency__WEBPACK_IMPORTED_MODULE_1__.A,{name:"currency2",label:"Estimate amount in pounds (not bold label)",hint:"For example, £1,000",required:"Enter amount in pounds",boldLabel:!1}))));FieldCurrencyDefaultValidation.story={name:"FieldCurrency - default validation"},FieldCurrencyDefaultValidation.parameters={...FieldCurrencyDefaultValidation.parameters,docs:{...FieldCurrencyDefaultValidation.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n\n \n }\n ',...FieldCurrencyDefaultValidation.parameters?.docs?.source}}};const __namedExportsOrder=["FieldCurrencyDefaultValidation"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldDate-stories.cac443d5.iframe.bundle.js b/Form-elements-__stories__-FieldDate-stories.cac443d5.iframe.bundle.js new file mode 100644 index 00000000000..8d2c6d2e4cf --- /dev/null +++ b/Form-elements-__stories__-FieldDate-stories.cac443d5.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8262],{"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldDateCustomValidation:()=>FieldDateCustomValidation,FieldDateDefaultValidation:()=>FieldDateDefaultValidation,FieldDateReduced:()=>FieldDateReduced,FieldDateShortFormat:()=>FieldDateShortFormat,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldDate__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldDate/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const ERRORS_DAY="Enter a valid Epoch day",ERRORS_MONTH="Enter a valid Epoch month",ERRORS_YEAR="Enter a valid Epoch year",__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Date",parameters:{component:_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A}},FieldDateDefaultValidation=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What is your date of birth?",hint:"For example, 01 09 2019",required:"Enter a valid date of birth"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));FieldDateDefaultValidation.story={name:"FieldDate - default validation"};const FieldDateCustomValidation=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What date is Unix epoch?",hint:"For example, 01 09 2019",required:"Enter a valid Unix epoch date",validate:({day,month,year})=>("01"===day?null:ERRORS_DAY)||("01"===month?null:ERRORS_MONTH)||("1970"===year?null:ERRORS_YEAR)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));FieldDateCustomValidation.story={name:"FieldDate - custom validation"};const FieldDateShortFormat=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{format:"short",name:"date",label:"What is the month and year?",hint:"For example, 09 2019",required:"Enter a valid date"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));FieldDateShortFormat.story={name:"FieldDate - short format"};const FieldDateReduced=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What is the month and year?",hint:"For example, 09 2019",required:"Enter a valid date",reduced:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));FieldDateReduced.story={name:"FieldDate (reduced)"},FieldDateDefaultValidation.parameters={...FieldDateDefaultValidation.parameters,docs:{...FieldDateDefaultValidation.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateDefaultValidation.parameters?.docs?.source}}},FieldDateCustomValidation.parameters={...FieldDateCustomValidation.parameters,docs:{...FieldDateCustomValidation.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n {\n // Contrived example\n const dayErr = day === \'01\' ? null : ERRORS.DAY;\n const monthErr = month === \'01\' ? null : ERRORS.MONTH;\n const yearErr = year === \'1970\' ? null : ERRORS.YEAR;\n return dayErr || monthErr || yearErr;\n }} />\n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateCustomValidation.parameters?.docs?.source}}},FieldDateShortFormat.parameters={...FieldDateShortFormat.parameters,docs:{...FieldDateShortFormat.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateShortFormat.parameters?.docs?.source}}},FieldDateReduced.parameters={...FieldDateReduced.parameters,docs:{...FieldDateReduced.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateReduced.parameters?.docs?.source}}};const __namedExportsOrder=["FieldDateDefaultValidation","FieldDateCustomValidation","FieldDateShortFormat","FieldDateReduced"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldDate-stories.d29f31d3.iframe.bundle.js b/Form-elements-__stories__-FieldDate-stories.d29f31d3.iframe.bundle.js deleted file mode 100644 index 62205fc5d29..00000000000 --- a/Form-elements-__stories__-FieldDate-stories.d29f31d3.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8262],{"./src/client/components/Form/elements/__stories__/FieldDate.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldDateCustomValidation:()=>FieldDateCustomValidation,FieldDateDefaultValidation:()=>FieldDateDefaultValidation,FieldDateReduced:()=>FieldDateReduced,FieldDateShortFormat:()=>FieldDateShortFormat,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldDate__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldDate/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx"),ERRORS_DAY="Enter a valid Epoch day",ERRORS_MONTH="Enter a valid Epoch month",ERRORS_YEAR="Enter a valid Epoch year";const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Date",parameters:{component:_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A}};var FieldDateDefaultValidation=function FieldDateDefaultValidation(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What is your date of birth?",hint:"For example, 01 09 2019",required:"Enter a valid date of birth"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};FieldDateDefaultValidation.story={name:"FieldDate - default validation"};var FieldDateCustomValidation=function FieldDateCustomValidation(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What date is Unix epoch?",hint:"For example, 01 09 2019",required:"Enter a valid Unix epoch date",validate:function validate(_ref){var day=_ref.day,month=_ref.month,year=_ref.year;return("01"===day?null:ERRORS_DAY)||("01"===month?null:ERRORS_MONTH)||("1970"===year?null:ERRORS_YEAR)}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};FieldDateCustomValidation.story={name:"FieldDate - custom validation"};var FieldDateShortFormat=function FieldDateShortFormat(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{format:"short",name:"date",label:"What is the month and year?",hint:"For example, 09 2019",required:"Enter a valid date"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};FieldDateShortFormat.story={name:"FieldDate - short format"};var FieldDateReduced=function FieldDateReduced(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldDateExample",analyticsFormName:"fieldDateExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldDate__WEBPACK_IMPORTED_MODULE_1__.A,{name:"date",label:"What is the month and year?",hint:"For example, 09 2019",required:"Enter a valid date",reduced:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};FieldDateReduced.story={name:"FieldDate (reduced)"},FieldDateDefaultValidation.parameters={...FieldDateDefaultValidation.parameters,docs:{...FieldDateDefaultValidation.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateDefaultValidation.parameters?.docs?.source}}},FieldDateCustomValidation.parameters={...FieldDateCustomValidation.parameters,docs:{...FieldDateCustomValidation.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n {\n // Contrived example\n const dayErr = day === \'01\' ? null : ERRORS.DAY;\n const monthErr = month === \'01\' ? null : ERRORS.MONTH;\n const yearErr = year === \'1970\' ? null : ERRORS.YEAR;\n return dayErr || monthErr || yearErr;\n }} />\n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateCustomValidation.parameters?.docs?.source}}},FieldDateShortFormat.parameters={...FieldDateShortFormat.parameters,docs:{...FieldDateShortFormat.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateShortFormat.parameters?.docs?.source}}},FieldDateReduced.parameters={...FieldDateReduced.parameters,docs:{...FieldDateReduced.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n
{JSON.stringify(form, null, 2)}
\n }\n ',...FieldDateReduced.parameters?.docs?.source}}};const __namedExportsOrder=["FieldDateDefaultValidation","FieldDateCustomValidation","FieldDateShortFormat","FieldDateReduced"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldHelp-stories.6723239c.iframe.bundle.js b/Form-elements-__stories__-FieldHelp-stories.6723239c.iframe.bundle.js new file mode 100644 index 00000000000..b6dfe49a2cf --- /dev/null +++ b/Form-elements-__stories__-FieldHelp-stories.6723239c.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3943],{"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldHelpSetAsOpen:()=>FieldHelpSetAsOpen,FieldHelpWithFooterUrl:()=>FieldHelpWithFooterUrl,FieldHelpWithoutFooterUrl:()=>FieldHelpWithoutFooterUrl,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldHelp__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldHelp/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Help",parameters:{component:_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A}},FieldHelpWithFooterUrl=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into.",footerUrl:"http://datahub.trade.gov.uk/",footerUrlDescription:"Learn more about policy issue types. This will open in a new tab or window"}));FieldHelpWithFooterUrl.story={name:"FieldHelp - with footer URL"};const FieldHelpWithoutFooterUrl=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into."}));FieldHelpWithoutFooterUrl.story={name:"FieldHelp - without footer URL"};const FieldHelpSetAsOpen=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into.",open:"true"}));FieldHelpSetAsOpen.story={name:"FieldHelp - set as open"},FieldHelpWithFooterUrl.parameters={...FieldHelpWithFooterUrl.parameters,docs:{...FieldHelpWithFooterUrl.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpWithFooterUrl.parameters?.docs?.source}}},FieldHelpWithoutFooterUrl.parameters={...FieldHelpWithoutFooterUrl.parameters,docs:{...FieldHelpWithoutFooterUrl.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpWithoutFooterUrl.parameters?.docs?.source}}},FieldHelpSetAsOpen.parameters={...FieldHelpSetAsOpen.parameters,docs:{...FieldHelpSetAsOpen.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpSetAsOpen.parameters?.docs?.source}}};const __namedExportsOrder=["FieldHelpWithFooterUrl","FieldHelpWithoutFooterUrl","FieldHelpSetAsOpen"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldHelp-stories.ae66ed8a.iframe.bundle.js b/Form-elements-__stories__-FieldHelp-stories.ae66ed8a.iframe.bundle.js deleted file mode 100644 index b8e1c2a4496..00000000000 --- a/Form-elements-__stories__-FieldHelp-stories.ae66ed8a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3943],{"./src/client/components/Form/elements/__stories__/FieldHelp.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldHelpSetAsOpen:()=>FieldHelpSetAsOpen,FieldHelpWithFooterUrl:()=>FieldHelpWithFooterUrl,FieldHelpWithoutFooterUrl:()=>FieldHelpWithoutFooterUrl,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldHelp__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldHelp/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Help",parameters:{component:_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A}};var FieldHelpWithFooterUrl=function FieldHelpWithFooterUrl(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into.",footerUrl:"http://datahub.trade.gov.uk/",footerUrlDescription:"Learn more about policy issue types. This will open in a new tab or window"}))};FieldHelpWithFooterUrl.story={name:"FieldHelp - with footer URL"};var FieldHelpWithoutFooterUrl=function FieldHelpWithoutFooterUrl(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into."}))};FieldHelpWithoutFooterUrl.story={name:"FieldHelp - without footer URL"};var FieldHelpSetAsOpen=function FieldHelpSetAsOpen(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldHelp__WEBPACK_IMPORTED_MODULE_1__.A,{helpSummary:"Help with policy issue types",helpText:"A policy is the broad category/categories that information fits into.",open:"true"}))};FieldHelpSetAsOpen.story={name:"FieldHelp - set as open"},FieldHelpWithFooterUrl.parameters={...FieldHelpWithFooterUrl.parameters,docs:{...FieldHelpWithFooterUrl.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpWithFooterUrl.parameters?.docs?.source}}},FieldHelpWithoutFooterUrl.parameters={...FieldHelpWithoutFooterUrl.parameters,docs:{...FieldHelpWithoutFooterUrl.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpWithoutFooterUrl.parameters?.docs?.source}}},FieldHelpSetAsOpen.parameters={...FieldHelpSetAsOpen.parameters,docs:{...FieldHelpSetAsOpen.parameters?.docs,source:{originalSource:'() => <>\n \n ',...FieldHelpSetAsOpen.parameters?.docs?.source}}};const __namedExportsOrder=["FieldHelpWithFooterUrl","FieldHelpWithoutFooterUrl","FieldHelpSetAsOpen"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldInput-stories.44dba0b1.iframe.bundle.js b/Form-elements-__stories__-FieldInput-stories.44dba0b1.iframe.bundle.js deleted file mode 100644 index eda18486778..00000000000 --- a/Form-elements-__stories__-FieldInput-stories.44dba0b1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7310],{"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,TextReduced:()=>TextReduced,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldInput__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Input",parameters:{component:_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A}};var Text=function Text(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(function(state){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2)))}))},Number=function Number(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(function(state){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Number",hint:"Some hint",name:"testField",required:"Enter number",type:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2)))}))},TextReduced=function TextReduced(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(function(state){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text",reduced:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2)))}))};TextReduced.story={name:"Text (reduced)"},Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Number.parameters?.docs?.source}}},TextReduced.parameters={...TextReduced.parameters,docs:{...TextReduced.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...TextReduced.parameters?.docs?.source}}};const __namedExportsOrder=["Text","Number","TextReduced"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldInput-stories.b8219fb2.iframe.bundle.js b/Form-elements-__stories__-FieldInput-stories.b8219fb2.iframe.bundle.js new file mode 100644 index 00000000000..fb2f82101bf --- /dev/null +++ b/Form-elements-__stories__-FieldInput-stories.b8219fb2.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7310],{"./src/client/components/Form/elements/__stories__/FieldInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,TextReduced:()=>TextReduced,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldInput__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Input",parameters:{component:_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A}},Text=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2))))),Number=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Number",hint:"Some hint",name:"testField",required:"Enter number",type:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2))))),TextReduced=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInputExample",analyticsFormName:"fieldInputExample",submissionTaskName:"Submit Form example"},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_1__.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text",reduced:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2)))));TextReduced.story={name:"Text (reduced)"},Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Number.parameters?.docs?.source}}},TextReduced.parameters={...TextReduced.parameters,docs:{...TextReduced.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...TextReduced.parameters?.docs?.source}}};const __namedExportsOrder=["Text","Number","TextReduced"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.6b579e3c.iframe.bundle.js b/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.6b579e3c.iframe.bundle.js new file mode 100644 index 00000000000..afff5c8d0ce --- /dev/null +++ b/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.6b579e3c.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8575],{"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,mockLoadOptions:()=>mockLoadOptions});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx");const options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Project A"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Project B"}],mockLoadOptions=(query="")=>new Promise((resolve=>query&&query.length?setTimeout(resolve,200,options.filter((({label})=>label.toLowerCase().includes(query.toLowerCase())))):resolve([]))),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldInvestmentProjectTypeahead",excludeStories:["mockLoadOptions"],parameters:{component:_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldInvestmentProjectTypeaheadExample",analyticsFormName:"fieldInvestmentProjectTypeaheadExample",submissionTaskName:"Submit Form example"},(()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_1__.A,{name:"investmentProject",loadOptions:mockLoadOptions}))));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["mockLoadOptions","Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.7d05374a.iframe.bundle.js b/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.7d05374a.iframe.bundle.js deleted file mode 100644 index 8b91c24be9c..00000000000 --- a/Form-elements-__stories__-FieldInvestmentProjectTypeahead-stories.7d05374a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8575],{"./src/client/components/Form/elements/__stories__/FieldInvestmentProjectTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__,mockLoadOptions:()=>mockLoadOptions});__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.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Form/elements/FieldInvestmentProjectTypeahead/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Form/index.jsx"),options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Project A"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Project B"}],mockLoadOptions=function mockLoadOptions(){var query=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve){return query&&query.length?setTimeout(resolve,200,options.filter((function(_ref){return _ref.label.toLowerCase().includes(query.toLowerCase())}))):resolve([])}))};const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldInvestmentProjectTypeahead",excludeStories:["mockLoadOptions"],parameters:{component:_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_6__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Form__WEBPACK_IMPORTED_MODULE_7__.A,{id:"fieldInvestmentProjectTypeaheadExample",analyticsFormName:"fieldInvestmentProjectTypeaheadExample",submissionTaskName:"Submit Form example"},(function(){return react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_5__.createElement(_FieldInvestmentProjectTypeahead__WEBPACK_IMPORTED_MODULE_6__.A,{name:"investmentProject",loadOptions:mockLoadOptions}))}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {() => <>\n \n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["mockLoadOptions","Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldSelect-stories.180a21c1.iframe.bundle.js b/Form-elements-__stories__-FieldSelect-stories.180a21c1.iframe.bundle.js deleted file mode 100644 index df5ee11f76d..00000000000 --- a/Form-elements-__stories__-FieldSelect-stories.180a21c1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8458],{"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldSelect__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),_FieldInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Select",parameters:{component:_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_3__.A,{id:"fieldSelectExample",analyticsFormName:"fieldSelectExample",submissionTaskName:"Submit Form example"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField",label:"Test select",hint:"Some hint",initialValue:"testOptionValue2",emptyOption:"Please select",options:[{label:"testOptionLabel1",value:"testOptionValue1"},{label:"testOptionLabel2",value:"testOptionValue2"}],required:"Select one of the options",validate:function validate(value){return"testOptionValue2"!==value?"You need to select testOptionValue2":null}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField2",label:"Test select with children",hint:"Some hint",emptyOption:"Please select",options:[{label:"Option 1",value:"o1"},{label:"Option 2",value:"o2"},{label:"Other",value:"other",children:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_2__.A,{type:"text",placeholder:"Define other",name:"other"})}],required:"Select one of the options",validate:function validate(value){return"testOptionValue2"!==value?"You need to select testOptionValue2":null}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField3",label:"Test full width select",hint:"Some hint",initialValue:"testOptionValue2",emptyOption:"Please select",options:[{label:"testOptionLabel1",value:"testOptionValue1"},{label:"testOptionLabel2",value:"testOptionValue2"}],required:"Select one of the options",fullWidth:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() =>
\n {form => <>\n value !== 'testOptionValue2' ? 'You need to select testOptionValue2' : null} />\n\n \n }]} required=\"Select one of the options\" validate={value => value !== 'testOptionValue2' ? 'You need to select testOptionValue2' : null} />\n \n
{JSON.stringify(form, null, 2)}
\n }\n ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldSelect-stories.d5f04b3a.iframe.bundle.js b/Form-elements-__stories__-FieldSelect-stories.d5f04b3a.iframe.bundle.js new file mode 100644 index 00000000000..5fd39cbe82c --- /dev/null +++ b/Form-elements-__stories__-FieldSelect-stories.d5f04b3a.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8458],{"./src/client/components/Form/elements/__stories__/FieldSelect.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FieldSelect__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),_FieldInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),_Form__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Select",parameters:{component:_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_3__.A,{id:"fieldSelectExample",analyticsFormName:"fieldSelectExample",submissionTaskName:"Submit Form example"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField",label:"Test select",hint:"Some hint",initialValue:"testOptionValue2",emptyOption:"Please select",options:[{label:"testOptionLabel1",value:"testOptionValue1"},{label:"testOptionLabel2",value:"testOptionValue2"}],required:"Select one of the options",validate:value=>"testOptionValue2"!==value?"You need to select testOptionValue2":null}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField2",label:"Test select with children",hint:"Some hint",emptyOption:"Please select",options:[{label:"Option 1",value:"o1"},{label:"Option 2",value:"o2"},{label:"Other",value:"other",children:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_2__.A,{type:"text",placeholder:"Define other",name:"other"})}],required:"Select one of the options",validate:value=>"testOptionValue2"!==value?"You need to select testOptionValue2":null}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldSelect__WEBPACK_IMPORTED_MODULE_1__.A,{name:"testField3",label:"Test full width select",hint:"Some hint",initialValue:"testOptionValue2",emptyOption:"Please select",options:[{label:"testOptionLabel1",value:"testOptionValue1"},{label:"testOptionLabel2",value:"testOptionValue2"}],required:"Select one of the options",fullWidth:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(form,null,2)))));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() =>
\n {form => <>\n value !== 'testOptionValue2' ? 'You need to select testOptionValue2' : null} />\n\n \n }]} required=\"Select one of the options\" validate={value => value !== 'testOptionValue2' ? 'You need to select testOptionValue2' : null} />\n \n
{JSON.stringify(form, null, 2)}
\n }\n ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldTypeahead-stories.3e637de5.iframe.bundle.js b/Form-elements-__stories__-FieldTypeahead-stories.3e637de5.iframe.bundle.js deleted file mode 100644 index 21d858bfb3a..00000000000 --- a/Form-elements-__stories__-FieldTypeahead-stories.3e637de5.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6653],{"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),_Form__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/index.jsx"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Holly Clins - olHeart of the South West LEP"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Bernard Harris-Patelc - Welsh Government (Investment)"},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Dennis Kennedy"}],getOptions=function getOptions(){return new Promise((function(resolve){return setTimeout(resolve,1e3,options)}))};const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Typeahead",parameters:{component:_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Form__WEBPACK_IMPORTED_MODULE_3__.A,{id:"fieldTypeaheadExample",analyticsFormName:"fieldTypeaheadExample",submissionTaskName:"Submit Form example"},(function(state){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A,{label:"Typeahead - sync single value",hint:"Some hint",name:"sync_single",required:"Choose value",options}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A,{label:"Typeahead - sync multi value",hint:"Some hint",name:"sync_multi",required:"Choose value",options,isMulti:!0}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A,{label:"Typeahead - initial value",hint:"Some hint",name:"sync_single",required:"Choose value",initialValue:options[1],options}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A,{label:"Typeahead - async single value",hint:"Some hint",name:"async_single",required:"Choose value",loadOptions:getOptions}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_4__.A,{label:"Typeahead - async multi value",hint:"Some hint",name:"async_multi",required:"Choose value",loadOptions:getOptions,isMulti:!0}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,JSON.stringify(state,null,2)))}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n \n \n \n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldTypeahead-stories.e6742b7a.iframe.bundle.js b/Form-elements-__stories__-FieldTypeahead-stories.e6742b7a.iframe.bundle.js new file mode 100644 index 00000000000..82777fb99fb --- /dev/null +++ b/Form-elements-__stories__-FieldTypeahead-stories.e6742b7a.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6653],{"./src/client/components/Form/elements/__stories__/FieldTypeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_Form__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/index.jsx"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx");const options=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Holly Clins - olHeart of the South West LEP"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Bernard Harris-Patelc - Welsh Government (Investment)"},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Dennis Kennedy"}],getOptions=()=>new Promise((resolve=>setTimeout(resolve,1e3,options))),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/Typeahead",parameters:{component:_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_1__.A,{id:"fieldTypeaheadExample",analyticsFormName:"fieldTypeaheadExample",submissionTaskName:"Submit Form example"},(state=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Typeahead - sync single value",hint:"Some hint",name:"sync_single",required:"Choose value",options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Typeahead - sync multi value",hint:"Some hint",name:"sync_multi",required:"Choose value",options,isMulti:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Typeahead - initial value",hint:"Some hint",name:"sync_single",required:"Choose value",initialValue:options[1],options}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Typeahead - async single value",hint:"Some hint",name:"async_single",required:"Choose value",loadOptions:getOptions}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldTypeahead__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Typeahead - async multi value",hint:"Some hint",name:"async_multi",required:"Choose value",loadOptions:getOptions,isMulti:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(state,null,2)))));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() =>
\n {state => <>\n \n \n \n \n \n
{JSON.stringify(state, null, 2)}
\n }\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldWrapper-stories.1396c00f.iframe.bundle.js b/Form-elements-__stories__-FieldWrapper-stories.1396c00f.iframe.bundle.js new file mode 100644 index 00000000000..8b5dad57180 --- /dev/null +++ b/Form-elements-__stories__-FieldWrapper-stories.1396c00f.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1791],{"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldWrapperLabel:()=>FieldWrapperLabel,FieldWrapperLegend:()=>FieldWrapperLegend,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_FieldInput__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx");const testInput=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_4__.A,{name:"testField",type:"text",required:"Some error"}),__WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldWrapper",parameters:{component:_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A}},FieldWrapperLabel=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldWrapperExample",analyticsFormName:"fieldWrapperExample",submissionTaskName:"Submit Form example",submitButtonLabel:"Click to show error"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{label:"Label with bold font weight",name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Label without bold font weight",name:"testField2",hint:"Some hint",error:form.errors.testField,boldLabel:!1},testInput))));FieldWrapperLabel.story={name:"FieldWrapper - Label"};const FieldWrapperLegend=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldWrapperExample",analyticsFormName:"fieldWrapperExample",submissionTaskName:"Submit Form example",submitButtonLabel:"Click to show error"},(form=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Legend as text",name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Big Legend",name:"testField",hint:"Some hint",error:form.errors.testField,bigLegend:!0},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Legend with border",name:"testField",hint:"Some hint",showBorder:!0,error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H1,null,"Legend as H1"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H2,null,"Legend as H2"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H3,null,"Legend as H3"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput))));FieldWrapperLegend.story={name:"FieldWrapper - Legend"},FieldWrapperLabel.parameters={...FieldWrapperLabel.parameters,docs:{...FieldWrapperLabel.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n {testInput}\n \n \n {testInput}\n \n }\n
',...FieldWrapperLabel.parameters?.docs?.source}}},FieldWrapperLegend.parameters={...FieldWrapperLegend.parameters,docs:{...FieldWrapperLegend.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n {testInput}\n \n\n \n {testInput}\n \n\n \n {testInput}\n \n\n Legend as H1} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n\n Legend as H2} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n\n Legend as H3} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n }\n
',...FieldWrapperLegend.parameters?.docs?.source}}};const __namedExportsOrder=["FieldWrapperLabel","FieldWrapperLegend"]}}]); \ No newline at end of file diff --git a/Form-elements-__stories__-FieldWrapper-stories.fdb6e829.iframe.bundle.js b/Form-elements-__stories__-FieldWrapper-stories.fdb6e829.iframe.bundle.js deleted file mode 100644 index 0da81d5f46a..00000000000 --- a/Form-elements-__stories__-FieldWrapper-stories.fdb6e829.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1791],{"./src/client/components/Form/elements/__stories__/FieldWrapper.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{FieldWrapperLabel:()=>FieldWrapperLabel,FieldWrapperLegend:()=>FieldWrapperLegend,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Form/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_FieldInput__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),testInput=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldInput__WEBPACK_IMPORTED_MODULE_4__.A,{name:"testField",type:"text",required:"Some error"});const __WEBPACK_DEFAULT_EXPORT__={title:"Form/Form Elements/FieldWrapper",parameters:{component:_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A}};var FieldWrapperLabel=function FieldWrapperLabel(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldWrapperExample",analyticsFormName:"fieldWrapperExample",submissionTaskName:"Submit Form example",submitButtonLabel:"Click to show error"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{label:"Label with bold font weight",name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Label without bold font weight",name:"testField2",hint:"Some hint",error:form.errors.testField,boldLabel:!1},testInput))}))};FieldWrapperLabel.story={name:"FieldWrapper - Label"};var FieldWrapperLegend=function FieldWrapperLegend(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.A,{id:"fieldWrapperExample",analyticsFormName:"fieldWrapperExample",submissionTaskName:"Submit Form example",submitButtonLabel:"Click to show error"},(function(form){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Legend as text",name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Big Legend",name:"testField",hint:"Some hint",error:form.errors.testField,bigLegend:!0},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:"Legend with border",name:"testField",hint:"Some hint",showBorder:!0,error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H1,null,"Legend as H1"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H2,null,"Legend as H2"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_3__.A,{legend:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_1__.H3,null,"Legend as H3"),name:"testField",hint:"Some hint",error:form.errors.testField},testInput))}))};FieldWrapperLegend.story={name:"FieldWrapper - Legend"},FieldWrapperLabel.parameters={...FieldWrapperLabel.parameters,docs:{...FieldWrapperLabel.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n {testInput}\n \n \n {testInput}\n \n }\n
',...FieldWrapperLabel.parameters?.docs?.source}}},FieldWrapperLegend.parameters={...FieldWrapperLegend.parameters,docs:{...FieldWrapperLegend.parameters?.docs,source:{originalSource:'() =>
\n {form => <>\n \n {testInput}\n \n\n \n {testInput}\n \n\n \n {testInput}\n \n\n Legend as H1} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n\n Legend as H2} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n\n Legend as H3} name="testField" hint="Some hint" error={form.errors.testField}>\n {testInput}\n \n }\n
',...FieldWrapperLegend.parameters?.docs?.source}}};const __namedExportsOrder=["FieldWrapperLabel","FieldWrapperLegend"]}}]); \ No newline at end of file diff --git a/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.7dcf0037.iframe.bundle.js b/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.7dcf0037.iframe.bundle.js deleted file mode 100644 index f26b3aefa8f..00000000000 --- a/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.7dcf0037.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[280],{"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CreatedByNoDbtTeam:()=>CreatedByNoDbtTeam,ProjectValuedFalse:()=>ProjectValuedFalse,ProjectValuedTrue:()=>ProjectValuedTrue,StageActive:()=>StageActive,StageAssignPm:()=>StageAssignPm,StageProspect:()=>StageProspect,StageVerifyWin:()=>StageVerifyWin,StageWon:()=>StageWon,StatusAbandoned:()=>StatusAbandoned,StatusDelayed:()=>StatusDelayed,StatusDormant:()=>StatusDormant,StatusLost:()=>StatusLost,StatusOngoing:()=>StatusOngoing,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__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.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.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_16__=__webpack_require__("./node_modules/react/index.js"),InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/InvestmentProjectLocalHeader/index.jsx"),_lib_urls__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_18__),_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/modules/Investments/Projects/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 ",...StatusOngoing.parameters?.docs?.source}}},StatusDelayed.parameters={...StatusDelayed.parameters,docs:{...StatusDelayed.parameters?.docs,source:{originalSource:"() => ",...StatusDelayed.parameters?.docs?.source}}},StatusAbandoned.parameters={...StatusAbandoned.parameters,docs:{...StatusAbandoned.parameters?.docs,source:{originalSource:"() => ",...StatusAbandoned.parameters?.docs?.source}}},StatusLost.parameters={...StatusLost.parameters,docs:{...StatusLost.parameters?.docs,source:{originalSource:"() => ",...StatusLost.parameters?.docs?.source}}},StatusDormant.parameters={...StatusDormant.parameters,docs:{...StatusDormant.parameters?.docs,source:{originalSource:"() => ",...StatusDormant.parameters?.docs?.source}}},StageProspect.parameters={...StageProspect.parameters,docs:{...StageProspect.parameters?.docs,source:{originalSource:"() => ",...StageProspect.parameters?.docs?.source}}},StageAssignPm.parameters={...StageAssignPm.parameters,docs:{...StageAssignPm.parameters?.docs,source:{originalSource:"() => ",...StageAssignPm.parameters?.docs?.source}}},StageActive.parameters={...StageActive.parameters,docs:{...StageActive.parameters?.docs,source:{originalSource:"() => ",...StageActive.parameters?.docs?.source}}},StageVerifyWin.parameters={...StageVerifyWin.parameters,docs:{...StageVerifyWin.parameters?.docs,source:{originalSource:"() => ",...StageVerifyWin.parameters?.docs?.source}}},StageWon.parameters={...StageWon.parameters,docs:{...StageWon.parameters?.docs,source:{originalSource:"() => ",...StageWon.parameters?.docs?.source}}},ProjectValuedFalse.parameters={...ProjectValuedFalse.parameters,docs:{...ProjectValuedFalse.parameters?.docs,source:{originalSource:"() => ",...ProjectValuedFalse.parameters?.docs?.source}}},ProjectValuedTrue.parameters={...ProjectValuedTrue.parameters,docs:{...ProjectValuedTrue.parameters?.docs,source:{originalSource:"() => ",...ProjectValuedTrue.parameters?.docs?.source}}},CreatedByNoDbtTeam.parameters={...CreatedByNoDbtTeam.parameters,docs:{...CreatedByNoDbtTeam.parameters?.docs,source:{originalSource:"() => ",...CreatedByNoDbtTeam.parameters?.docs?.source}}};const __namedExportsOrder=["StatusOngoing","StatusDelayed","StatusAbandoned","StatusLost","StatusDormant","StageProspect","StageAssignPm","StageActive","StageVerifyWin","StageWon","ProjectValuedFalse","ProjectValuedTrue","CreatedByNoDbtTeam"]}}]); \ No newline at end of file diff --git a/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.f760c475.iframe.bundle.js b/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.f760c475.iframe.bundle.js new file mode 100644 index 00000000000..bd734dfee58 --- /dev/null +++ b/InvestmentProjectLocalHeader-__stories__-InvestmentProjectLocalHeader-stories.f760c475.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[280],{"./src/client/components/InvestmentProjectLocalHeader/__stories__/InvestmentProjectLocalHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CreatedByNoDbtTeam:()=>CreatedByNoDbtTeam,ProjectValuedFalse:()=>ProjectValuedFalse,ProjectValuedTrue:()=>ProjectValuedTrue,StageActive:()=>StageActive,StageAssignPm:()=>StageAssignPm,StageProspect:()=>StageProspect,StageVerifyWin:()=>StageVerifyWin,StageWon:()=>StageWon,StatusAbandoned:()=>StatusAbandoned,StatusDelayed:()=>StatusDelayed,StatusDormant:()=>StatusDormant,StatusLost:()=>StatusLost,StatusOngoing:()=>StatusOngoing,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/InvestmentProjectLocalHeader/index.jsx"),_lib_urls__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_2__),_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/modules/Investments/Projects/constants.js");const investment={id:"123",investor_company:{name:"Alphabet Inc.",id:"456"},project_code:"DHP-00000356",value_complete:!1,created_on:"2022-02-25T15:37:23.331204Z",created_by:{name:"Andy Pipkin",dit_team:{name:"Little Britain"}},stage:{name:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__.sy},status:"ongoing"},breadcrumbs=[{link:_lib_urls__WEBPACK_IMPORTED_MODULE_2___default().dashboard.index(),text:"Home"},{link:_lib_urls__WEBPACK_IMPORTED_MODULE_2___default().investments.index(),text:"Investments"},{link:_lib_urls__WEBPACK_IMPORTED_MODULE_2___default().investments.index(),text:"Projects"},{link:_lib_urls__WEBPACK_IMPORTED_MODULE_2___default().investments.projects.details(investment.id),text:investment.investor_company.name}],__WEBPACK_DEFAULT_EXPORT__={title:"InvestmentProjectLocalHeader",parameters:{component:InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A}},StatusOngoing=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,status:"ongoing"},breadcrumbs});StatusOngoing.story={name:"Status: Ongoing"};const StatusDelayed=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,status:"delayed"},breadcrumbs});StatusDelayed.story={name:"Status: Delayed"};const StatusAbandoned=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,status:"abandoned"},breadcrumbs});StatusAbandoned.story={name:"Status: Abandoned"};const StatusLost=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,status:"lost"},breadcrumbs});StatusLost.story={name:"Status: Lost"};const StatusDormant=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,status:"dormant"},breadcrumbs});StatusDormant.story={name:"Status: Dormant"};const StageProspect=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment,breadcrumbs});StageProspect.story={name:"Stage: Prospect"};const StageAssignPm=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,stage:{name:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__.Li}},breadcrumbs});StageAssignPm.story={name:"Stage: Assign PM"};const StageActive=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,stage:{name:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__.aO}},breadcrumbs});StageActive.story={name:"Stage: Active"};const StageVerifyWin=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,stage:{name:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__.Cb}},breadcrumbs});StageVerifyWin.story={name:"Stage: Verify win"};const StageWon=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,stage:{name:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_3__.c0}},breadcrumbs});StageWon.story={name:"Stage: Won"};const ProjectValuedFalse=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment,breadcrumbs});ProjectValuedFalse.story={name:"Project valued: false"};const ProjectValuedTrue=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,value_complete:!0},breadcrumbs});ProjectValuedTrue.story={name:"Project valued: true"};const CreatedByNoDbtTeam=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentProjectLocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{investment:{...investment,created_by:{}},breadcrumbs});CreatedByNoDbtTeam.story={name:"Created by: no DBT team"},StatusOngoing.parameters={...StatusOngoing.parameters,docs:{...StatusOngoing.parameters?.docs,source:{originalSource:"() => ",...StatusOngoing.parameters?.docs?.source}}},StatusDelayed.parameters={...StatusDelayed.parameters,docs:{...StatusDelayed.parameters?.docs,source:{originalSource:"() => ",...StatusDelayed.parameters?.docs?.source}}},StatusAbandoned.parameters={...StatusAbandoned.parameters,docs:{...StatusAbandoned.parameters?.docs,source:{originalSource:"() => ",...StatusAbandoned.parameters?.docs?.source}}},StatusLost.parameters={...StatusLost.parameters,docs:{...StatusLost.parameters?.docs,source:{originalSource:"() => ",...StatusLost.parameters?.docs?.source}}},StatusDormant.parameters={...StatusDormant.parameters,docs:{...StatusDormant.parameters?.docs,source:{originalSource:"() => ",...StatusDormant.parameters?.docs?.source}}},StageProspect.parameters={...StageProspect.parameters,docs:{...StageProspect.parameters?.docs,source:{originalSource:"() => ",...StageProspect.parameters?.docs?.source}}},StageAssignPm.parameters={...StageAssignPm.parameters,docs:{...StageAssignPm.parameters?.docs,source:{originalSource:"() => ",...StageAssignPm.parameters?.docs?.source}}},StageActive.parameters={...StageActive.parameters,docs:{...StageActive.parameters?.docs,source:{originalSource:"() => ",...StageActive.parameters?.docs?.source}}},StageVerifyWin.parameters={...StageVerifyWin.parameters,docs:{...StageVerifyWin.parameters?.docs,source:{originalSource:"() => ",...StageVerifyWin.parameters?.docs?.source}}},StageWon.parameters={...StageWon.parameters,docs:{...StageWon.parameters?.docs,source:{originalSource:"() => ",...StageWon.parameters?.docs?.source}}},ProjectValuedFalse.parameters={...ProjectValuedFalse.parameters,docs:{...ProjectValuedFalse.parameters?.docs,source:{originalSource:"() => ",...ProjectValuedFalse.parameters?.docs?.source}}},ProjectValuedTrue.parameters={...ProjectValuedTrue.parameters,docs:{...ProjectValuedTrue.parameters?.docs,source:{originalSource:"() => ",...ProjectValuedTrue.parameters?.docs?.source}}},CreatedByNoDbtTeam.parameters={...CreatedByNoDbtTeam.parameters,docs:{...CreatedByNoDbtTeam.parameters?.docs,source:{originalSource:"() => ",...CreatedByNoDbtTeam.parameters?.docs?.source}}};const __namedExportsOrder=["StatusOngoing","StatusDelayed","StatusAbandoned","StatusLost","StatusDormant","StageProspect","StageAssignPm","StageActive","StageVerifyWin","StageWon","ProjectValuedFalse","ProjectValuedTrue","CreatedByNoDbtTeam"]}}]); \ No newline at end of file diff --git a/InvestmentReminders-__stories__-InvestmentReminders-stories.0169d9fd.iframe.bundle.js b/InvestmentReminders-__stories__-InvestmentReminders-stories.0169d9fd.iframe.bundle.js new file mode 100644 index 00000000000..13fec797aef --- /dev/null +++ b/InvestmentReminders-__stories__-InvestmentReminders-stories.0169d9fd.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8490],{"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/InvestmentReminders/index.jsx");const adviser={name:"Paula Churing",first_name:"Paula",last_name:"Churing",id:"adviser-1"},outstandingPropositions={count:2,results:[{id:"123",investment_project:{name:"New restaurant",project_code:"DHP-00000004",id:"project-a"},adviser,deadline:"2021-04-01",name:"Restaurant proposition"},{id:"456",investment_project:{name:"Univeristy",project_code:"DHP-00000005",id:"project-b"},adviser,deadline:"2021-04-01",name:"Univeristy proposition"}]},__WEBPACK_DEFAULT_EXPORT__={title:"InvestmentReminders",parameters:{component:InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__.A,{adviser,outstandingPropositions});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/InvestmentReminders-__stories__-InvestmentReminders-stories.bd3cdb1d.iframe.bundle.js b/InvestmentReminders-__stories__-InvestmentReminders-stories.bd3cdb1d.iframe.bundle.js deleted file mode 100644 index ce8a9d6d37c..00000000000 --- a/InvestmentReminders-__stories__-InvestmentReminders-stories.bd3cdb1d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8490],{"./src/client/components/InvestmentReminders/__stories__/InvestmentReminders.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/InvestmentReminders/index.jsx"),adviser={name:"Paula Churing",first_name:"Paula",last_name:"Churing",id:"adviser-1"},outstandingPropositions={count:2,results:[{id:"123",investment_project:{name:"New restaurant",project_code:"DHP-00000004",id:"project-a"},adviser,deadline:"2021-04-01",name:"Restaurant proposition"},{id:"456",investment_project:{name:"Univeristy",project_code:"DHP-00000005",id:"project-b"},adviser,deadline:"2021-04-01",name:"Univeristy proposition"}]};const __WEBPACK_DEFAULT_EXPORT__={title:"InvestmentReminders",parameters:{component:InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(InvestmentReminders__WEBPACK_IMPORTED_MODULE_1__.A,{adviser,outstandingPropositions})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/LocalHeader-__stories__-FlashMessages-stories.a4049572.iframe.bundle.js b/LocalHeader-__stories__-FlashMessages-stories.a4049572.iframe.bundle.js deleted file mode 100644 index c0cee7382ad..00000000000 --- a/LocalHeader-__stories__-FlashMessages-stories.a4049572.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4350],{"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FlashMessages__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Flash Messages",parameters:{component:_FlashMessages__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FlashMessages__WEBPACK_IMPORTED_MODULE_1__.A,{flashMessages:{success:["Success message"],"success:with-body":[{heading:"Success message heading",body:"Success message body"}],info:["Info message"],"info:with-body":[{heading:"Info message heading",body:"Info message body"}],error:["Error test message","Another error message"],warning:["Warning test message"],muted:["Muted test message"]}})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/LocalHeader-__stories__-FlashMessages-stories.f73eeb14.iframe.bundle.js b/LocalHeader-__stories__-FlashMessages-stories.f73eeb14.iframe.bundle.js new file mode 100644 index 00000000000..97ab85fe8fe --- /dev/null +++ b/LocalHeader-__stories__-FlashMessages-stories.f73eeb14.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4350],{"./src/client/components/LocalHeader/__stories__/FlashMessages.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_FlashMessages__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Flash Messages",parameters:{component:_FlashMessages__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FlashMessages__WEBPACK_IMPORTED_MODULE_1__.A,{flashMessages:{success:["Success message"],"success:with-body":[{heading:"Success message heading",body:"Success message body"}],info:["Info message"],"info:with-body":[{heading:"Info message heading",body:"Info message body"}],error:["Error test message","Another error message"],warning:["Warning test message"],muted:["Muted test message"]}});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/LocalHeader-__stories__-LocalHeader-stories.a4be46b9.iframe.bundle.js b/LocalHeader-__stories__-LocalHeader-stories.a4be46b9.iframe.bundle.js new file mode 100644 index 00000000000..4e06e9271e6 --- /dev/null +++ b/LocalHeader-__stories__-LocalHeader-stories.a4be46b9.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7546],{"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,WithChildren:()=>WithChildren,WithLink:()=>WithLink,WithSuperheading:()=>WithSuperheading,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_LocalHeader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx");const breadcrumbs=[{link:"/",text:"Home"},{text:"Example"}],__WEBPACK_DEFAULT_EXPORT__={title:"LocalHeader",parameters:{component:_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example"}),WithLink=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",headingLink:{url:"/",text:"Example"}});WithLink.story={name:"With link"};const WithSuperheading=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",superheading:"Example"});WithSuperheading.story={name:"With superheading"};const WithChildren=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",children:"Example"});WithChildren.story={name:"With children"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},WithLink.parameters={...WithLink.parameters,docs:{...WithLink.parameters?.docs,source:{originalSource:"() => ",...WithLink.parameters?.docs?.source}}},WithSuperheading.parameters={...WithSuperheading.parameters,docs:{...WithSuperheading.parameters?.docs,source:{originalSource:"() => ",...WithSuperheading.parameters?.docs?.source}}},WithChildren.parameters={...WithChildren.parameters,docs:{...WithChildren.parameters?.docs,source:{originalSource:"() => ",...WithChildren.parameters?.docs?.source}}};const __namedExportsOrder=["Default","WithLink","WithSuperheading","WithChildren"]}}]); \ No newline at end of file diff --git a/LocalHeader-__stories__-LocalHeader-stories.bcf7db00.iframe.bundle.js b/LocalHeader-__stories__-LocalHeader-stories.bcf7db00.iframe.bundle.js deleted file mode 100644 index 02044ab5998..00000000000 --- a/LocalHeader-__stories__-LocalHeader-stories.bcf7db00.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7546],{"./src/client/components/LocalHeader/__stories__/LocalHeader.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,WithChildren:()=>WithChildren,WithLink:()=>WithLink,WithSuperheading:()=>WithSuperheading,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_LocalHeader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),breadcrumbs=[{link:"/",text:"Home"},{text:"Example"}];const __WEBPACK_DEFAULT_EXPORT__={title:"LocalHeader",parameters:{component:_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example"})},WithLink=function WithLink(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",headingLink:{url:"/",text:"Example"}})};WithLink.story={name:"With link"};var WithSuperheading=function WithSuperheading(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",superheading:"Example"})};WithSuperheading.story={name:"With superheading"};var WithChildren=function WithChildren(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_LocalHeader__WEBPACK_IMPORTED_MODULE_1__.A,{breadcrumbs,heading:"Example",children:"Example"})};WithChildren.story={name:"With children"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},WithLink.parameters={...WithLink.parameters,docs:{...WithLink.parameters?.docs,source:{originalSource:"() => ",...WithLink.parameters?.docs?.source}}},WithSuperheading.parameters={...WithSuperheading.parameters,docs:{...WithSuperheading.parameters?.docs,source:{originalSource:"() => ",...WithSuperheading.parameters?.docs?.source}}},WithChildren.parameters={...WithChildren.parameters,docs:{...WithChildren.parameters?.docs,source:{originalSource:"() => ",...WithChildren.parameters?.docs?.source}}};const __namedExportsOrder=["Default","WithLink","WithSuperheading","WithChildren"]}}]); \ No newline at end of file diff --git a/LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.03123516.iframe.bundle.js b/LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.b275925b.iframe.bundle.js similarity index 79% rename from LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.03123516.iframe.bundle.js rename to LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.b275925b.iframe.bundle.js index dd17148ed05..3fef4788132 100644 --- a/LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.03123516.iframe.bundle.js +++ b/LocalHeaderDetails-__stories__-LocalHeaderDetails-stories.b275925b.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1684],{"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>LocalHeaderDetails_stories});var _templateObject,_templateObject2,_templateObject3,react=__webpack_require__("./node_modules/react/index.js"),prop_types=(__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/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"),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 StyledHeaderDetails=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n background-color: ",";\n"])),colours.P1),StyledHeaderList=(0,styled_components_browser_esm.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n display: inline-block;\n padding-right: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledHeaderListLabel=(0,styled_components_browser_esm.Ay)("label")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n color: ",";\n"])),colours.IC),LocalHeaderDetails=function LocalHeaderDetails(_ref){var items=_ref.items;return react.createElement(StyledHeaderDetails,{"aria-label":"local header details","data-test":"localHeaderDetails",role:"region"},items.map((function(item){return react.createElement(StyledHeaderList,{key:item.label},react.createElement(StyledHeaderListLabel,null,item.label),react.createElement("p",null,item.value))})))};LocalHeaderDetails.propTypes={items:prop_types_default().arrayOf(prop_types_default().shape({label:prop_types_default().string.isRequired,value:prop_types_default().node.isRequired})).isRequired};const components_LocalHeaderDetails=LocalHeaderDetails;LocalHeaderDetails.__docgenInfo={description:"A component to be used within the `LocalHeader` component to add more information to a header.",methods:[],displayName:"LocalHeaderDetails",props:{items:{description:"Contains the details items to display in a LocalHeader.\nTakes an array of objects with labels and values, displayed as pairs horizontally in the header.",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"node",required:!0}}}},required:!0}}};var LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),items=[{label:"Name",value:"A name"},{label:"Location",value:"A location"},{label:"Company",value:"A company"},{label:"Job",value:"A job"}];const LocalHeaderDetails_stories={title:"LocalHeader/LocalHeaderDetails",parameters:{component:components_LocalHeaderDetails}};var Default=function Default(){return react.createElement(LocalHeader.A,{breadcrumbs:[{link:"/",text:"Home"},{text:"Example"}],heading:"Example"},react.createElement(components_LocalHeaderDetails,{items}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => \n \n ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1684],{"./src/client/components/LocalHeaderDetails/__stories__/LocalHeaderDetails.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>LocalHeaderDetails_stories});var _templateObject,_templateObject2,_templateObject3,react=__webpack_require__("./node_modules/react/index.js"),prop_types=(__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/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"),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 StyledHeaderDetails=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n background-color: ",";\n"])),colours.P1),StyledHeaderList=(0,styled_components_browser_esm.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n display: inline-block;\n padding-right: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledHeaderListLabel=(0,styled_components_browser_esm.Ay)("label")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n color: ",";\n"])),colours.IC),LocalHeaderDetails=function LocalHeaderDetails(_ref){var items=_ref.items;return react.createElement(StyledHeaderDetails,{"aria-label":"local header details","data-test":"localHeaderDetails",role:"region"},items.map((function(item){return react.createElement(StyledHeaderList,{key:item.label},react.createElement(StyledHeaderListLabel,null,item.label),react.createElement("p",null,item.value))})))};LocalHeaderDetails.propTypes={items:prop_types_default().arrayOf(prop_types_default().shape({label:prop_types_default().string.isRequired,value:prop_types_default().node.isRequired})).isRequired};const components_LocalHeaderDetails=LocalHeaderDetails;LocalHeaderDetails.__docgenInfo={description:"A component to be used within the `LocalHeader` component to add more information to a header.",methods:[],displayName:"LocalHeaderDetails",props:{items:{description:"Contains the details items to display in a LocalHeader.\nTakes an array of objects with labels and values, displayed as pairs horizontally in the header.",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"node",required:!0}}}},required:!0}}};var LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx");const items=[{label:"Name",value:"A name"},{label:"Location",value:"A location"},{label:"Company",value:"A company"},{label:"Job",value:"A job"}],LocalHeaderDetails_stories={title:"LocalHeader/LocalHeaderDetails",parameters:{component:components_LocalHeaderDetails}},Default=()=>react.createElement(LocalHeader.A,{breadcrumbs:[{link:"/",text:"Home"},{text:"Example"}],heading:"Example"},react.createElement(components_LocalHeaderDetails,{items}));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => \n \n ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Main-__stories__-Main-stories.10429492.iframe.bundle.js b/Main-__stories__-Main-stories.10429492.iframe.bundle.js deleted file mode 100644 index 757841d1325..00000000000 --- a/Main-__stories__-Main-stories.10429492.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1322],{"./src/client/components/Main/__stories__/Main.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Main__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Main/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Main",parameters:{component:Main__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Main__WEBPACK_IMPORTED_MODULE_1__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() =>
\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit\n amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut\n labore et dolore magna aliqua.\n

\n
",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Main-__stories__-Main-stories.b779bf14.iframe.bundle.js b/Main-__stories__-Main-stories.b779bf14.iframe.bundle.js new file mode 100644 index 00000000000..88c3febfdf9 --- /dev/null +++ b/Main-__stories__-Main-stories.b779bf14.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1322],{"./src/client/components/Main/__stories__/Main.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Main__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Main/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Main",parameters:{component:Main__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Main__WEBPACK_IMPORTED_MODULE_1__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() =>
\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit\n amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut\n labore et dolore magna aliqua.\n

\n
",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Metadata-__stories__-Metadata-stories.67318f97.iframe.bundle.js b/Metadata-__stories__-Metadata-stories.67318f97.iframe.bundle.js deleted file mode 100644 index e47d3e59f1f..00000000000 --- a/Metadata-__stories__-Metadata-stories.67318f97.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2558],{"./src/client/components/Metadata/__stories__/Metadata.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),Metadata__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Metadata/index.jsx"),metadata=[{label:"Updated on",value:"5 September 2019"},{label:"Sector",value:"Environment"},{label:"Parent company",value:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"http://example.com"},"E-corp LTD")}];const __WEBPACK_DEFAULT_EXPORT__={title:"Metadata",parameters:{component:Metadata__WEBPACK_IMPORTED_MODULE_2__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Metadata__WEBPACK_IMPORTED_MODULE_2__.A,{rows:metadata})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Metadata-__stories__-Metadata-stories.f9e62acb.iframe.bundle.js b/Metadata-__stories__-Metadata-stories.f9e62acb.iframe.bundle.js new file mode 100644 index 00000000000..f124433a60c --- /dev/null +++ b/Metadata-__stories__-Metadata-stories.f9e62acb.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2558],{"./src/client/components/Metadata/__stories__/Metadata.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),Metadata__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Metadata/index.jsx");const metadata=[{label:"Updated on",value:"5 September 2019"},{label:"Sector",value:"Environment"},{label:"Parent company",value:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"http://example.com"},"E-corp LTD")}],__WEBPACK_DEFAULT_EXPORT__={title:"Metadata",parameters:{component:Metadata__WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Metadata__WEBPACK_IMPORTED_MODULE_2__.A,{rows:metadata});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/NewWindowLink-__stories__-NewWindowLink-stories.8d419715.iframe.bundle.js b/NewWindowLink-__stories__-NewWindowLink-stories.8d419715.iframe.bundle.js deleted file mode 100644 index e21e3bbb7b7..00000000000 --- a/NewWindowLink-__stories__-NewWindowLink-stories.8d419715.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1186],{"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomAriaLabel:()=>CustomAriaLabel,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),NewWindowLink__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/NewWindowLink/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"NewWindowLink",parameters:{component:NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com"},"This is a link")},CustomAriaLabel=function CustomAriaLabel(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com","aria-label":"custom help text for screen readers which overrides the link text"},"This is a link")};CustomAriaLabel.story={name:"Custom aria-label"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => This is a link',...Default.parameters?.docs?.source}}},CustomAriaLabel.parameters={...CustomAriaLabel.parameters,docs:{...CustomAriaLabel.parameters?.docs,source:{originalSource:'() => \n This is a link\n ',...CustomAriaLabel.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomAriaLabel"]}}]); \ No newline at end of file diff --git a/NewWindowLink-__stories__-NewWindowLink-stories.bea6f080.iframe.bundle.js b/NewWindowLink-__stories__-NewWindowLink-stories.bea6f080.iframe.bundle.js new file mode 100644 index 00000000000..8c671c984f7 --- /dev/null +++ b/NewWindowLink-__stories__-NewWindowLink-stories.bea6f080.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1186],{"./src/client/components/NewWindowLink/__stories__/NewWindowLink.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomAriaLabel:()=>CustomAriaLabel,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),NewWindowLink__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/NewWindowLink/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"NewWindowLink",parameters:{component:NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com"},"This is a link"),CustomAriaLabel=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(NewWindowLink__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com","aria-label":"custom help text for screen readers which overrides the link text"},"This is a link");CustomAriaLabel.story={name:"Custom aria-label"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => This is a link',...Default.parameters?.docs?.source}}},CustomAriaLabel.parameters={...CustomAriaLabel.parameters,docs:{...CustomAriaLabel.parameters?.docs,source:{originalSource:'() => \n This is a link\n ',...CustomAriaLabel.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomAriaLabel"]}}]); \ No newline at end of file diff --git a/NotificationBadge-__stories__-NotificationBadge-stories.68ee959a.iframe.bundle.js b/NotificationBadge-__stories__-NotificationBadge-stories.8229ec39.iframe.bundle.js similarity index 65% rename from NotificationBadge-__stories__-NotificationBadge-stories.68ee959a.iframe.bundle.js rename to NotificationBadge-__stories__-NotificationBadge-stories.8229ec39.iframe.bundle.js index fe3448c6e7f..12ad690ec30 100644 --- a/NotificationBadge-__stories__-NotificationBadge-stories.68ee959a.iframe.bundle.js +++ b/NotificationBadge-__stories__-NotificationBadge-stories.8229ec39.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2342],{"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),NotificationBadge__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/NotificationBadge/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"NotificationBadge",parameters:{component:NotificationBadge__WEBPACK_IMPORTED_MODULE_1__.Ay}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(NotificationBadge__WEBPACK_IMPORTED_MODULE_1__.Ay,{value:3})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2342],{"./src/client/components/NotificationBadge/__stories__/NotificationBadge.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),NotificationBadge__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/NotificationBadge/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"NotificationBadge",parameters:{component:NotificationBadge__WEBPACK_IMPORTED_MODULE_1__.Ay}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(NotificationBadge__WEBPACK_IMPORTED_MODULE_1__.Ay,{value:3});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Pagination-__stories__-Pagination-stories.223b37ad.iframe.bundle.js b/Pagination-__stories__-Pagination-stories.223b37ad.iframe.bundle.js new file mode 100644 index 00000000000..f3c06bec676 --- /dev/null +++ b/Pagination-__stories__-Pagination-stories.223b37ad.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3480],{"./src/client/components/Pagination/__stories__/Pagination.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Routed:()=>Routed,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_RoutedPagination__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Pagination/RoutedPagination.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Pagination/index.jsx");const PaginationWithState=()=>{const[activePage,setActivePage]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{activePage,totalPages:1e3,onPageClick:(page,event)=>{setActivePage(page),event.preventDefault()}})},RoutedPaginationWithState=()=>{const exampleItems=[...Array(150).keys()].map((i=>({id:i+1,name:"Item "+(i+1)}))),[items,setItems]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({exampleItems,pageOfItems:[]});return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{textAlign:"center"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Total items: ",exampleItems.length),items.pageOfItems.map((item=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:item.id},item.name)))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RoutedPagination__WEBPACK_IMPORTED_MODULE_1__.A,{items:exampleItems.length,onChangePage:newPager=>{const pageOfItems=exampleItems.slice(newPager.startIndex,newPager.endIndex+1);setItems({...items,pageOfItems})}}))},__WEBPACK_DEFAULT_EXPORT__={title:"Pagination",parameters:{component:___WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(PaginationWithState,null),Routed=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(RoutedPaginationWithState,null);Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},Routed.parameters={...Routed.parameters,docs:{...Routed.parameters?.docs,source:{originalSource:"() => ",...Routed.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Routed"]}}]); \ No newline at end of file diff --git a/Pagination-__stories__-Pagination-stories.636754f2.iframe.bundle.js b/Pagination-__stories__-Pagination-stories.636754f2.iframe.bundle.js deleted file mode 100644 index daa2f52b6fa..00000000000 --- a/Pagination-__stories__-Pagination-stories.636754f2.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3480],{"./src/client/components/Pagination/__stories__/Pagination.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Routed:()=>Routed,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.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.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 react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/react/index.js"),_RoutedPagination__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Pagination/RoutedPagination.jsx"),___WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Pagination/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)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e ",...Default.parameters?.docs?.source}}},Routed.parameters={...Routed.parameters,docs:{...Routed.parameters?.docs,source:{originalSource:"() => ",...Routed.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Routed"]}}]); \ No newline at end of file diff --git a/Panel-__stories__-Panel-stories.23732beb.iframe.bundle.js b/Panel-__stories__-Panel-stories.23732beb.iframe.bundle.js deleted file mode 100644 index 9770516d594..00000000000 --- a/Panel-__stories__-Panel-stories.23732beb.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6214],{"./src/client/components/Panel/__stories__/Panel.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Panel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Panel/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Panel",parameters:{component:Panel__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Panel__WEBPACK_IMPORTED_MODULE_1__.A,{title:"How do referrals work?"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit\n amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut\n labore et dolore magna aliqua.\n

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua\n

\n
',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Panel-__stories__-Panel-stories.66f9c5e8.iframe.bundle.js b/Panel-__stories__-Panel-stories.66f9c5e8.iframe.bundle.js new file mode 100644 index 00000000000..a9e807ff9f4 --- /dev/null +++ b/Panel-__stories__-Panel-stories.66f9c5e8.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6214],{"./src/client/components/Panel/__stories__/Panel.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Panel__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Panel/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Panel",parameters:{component:Panel__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Panel__WEBPACK_IMPORTED_MODULE_1__.A,{title:"How do referrals work?"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit\n amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut\n labore et dolore magna aliqua.\n

\n

\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua\n

\n
',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/ReadMore-__stories__-ReadMore-stories.3cbf8859.iframe.bundle.js b/ReadMore-__stories__-ReadMore-stories.3cbf8859.iframe.bundle.js deleted file mode 100644 index 97ea21af9a4..00000000000 --- a/ReadMore-__stories__-ReadMore-stories.3cbf8859.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7322],{"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Custom:()=>Custom,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var ReadMore__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/ReadMore/index.jsx"),content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.";const __WEBPACK_DEFAULT_EXPORT__={title:"ReadMore",parameters:{component:ReadMore__WEBPACK_IMPORTED_MODULE_0__.A}};var Default=function Default(){return React.createElement(ReadMore__WEBPACK_IMPORTED_MODULE_0__.A,{text:content})},Custom=function Custom(){return React.createElement(React.Fragment,null,React.createElement("p",null,"Character limit set to 10"),React.createElement(ReadMore__WEBPACK_IMPORTED_MODULE_0__.A,{text:content,count:20}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},Custom.parameters={...Custom.parameters,docs:{...Custom.parameters?.docs,source:{originalSource:"() => <>\n

Character limit set to 10

\n \n ",...Custom.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Custom"]}}]); \ No newline at end of file diff --git a/ReadMore-__stories__-ReadMore-stories.eb019b30.iframe.bundle.js b/ReadMore-__stories__-ReadMore-stories.eb019b30.iframe.bundle.js new file mode 100644 index 00000000000..0652a3125b6 --- /dev/null +++ b/ReadMore-__stories__-ReadMore-stories.eb019b30.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[7322],{"./src/client/components/ReadMore/__stories__/ReadMore.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Custom:()=>Custom,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var ReadMore__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/ReadMore/index.jsx");const content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",__WEBPACK_DEFAULT_EXPORT__={title:"ReadMore",parameters:{component:ReadMore__WEBPACK_IMPORTED_MODULE_0__.A}},Default=()=>React.createElement(ReadMore__WEBPACK_IMPORTED_MODULE_0__.A,{text:content}),Custom=()=>React.createElement(React.Fragment,null,React.createElement("p",null,"Character limit set to 10"),React.createElement(ReadMore__WEBPACK_IMPORTED_MODULE_0__.A,{text:content,count:20}));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},Custom.parameters={...Custom.parameters,docs:{...Custom.parameters?.docs,source:{originalSource:"() => <>\n

Character limit set to 10

\n \n ",...Custom.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Custom"]}}]); \ No newline at end of file diff --git a/Resource-__stories__-Resource-stories.952c25f8.iframe.bundle.js b/Resource-__stories__-Resource-stories.952c25f8.iframe.bundle.js deleted file mode 100644 index ebc8ab66af0..00000000000 --- a/Resource-__stories__-Resource-stories.952c25f8.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2496],{"./src/client/components/Resource/__stories__/Resource.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomProgressAndError:()=>CustomProgressAndError,Default:()=>Default,Inline:()=>Inline,MetadataFormFields:()=>MetadataFormFields,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__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.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_Form__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/index.jsx"),_TabNav__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Contact__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Resource/Contact.js"),_Company__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Resource/Company.js"),_Resource__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Resource/Resource.jsx"),_Task_stories_utils__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_Countries__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/Resource/Countries.js"),_BusinessPotential__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/components/Resource/BusinessPotential.js"),Json=function Json(_ref){var children=_ref.children;return react__WEBPACK_IMPORTED_MODULE_4__.createElement("pre",null,JSON.stringify(children,null,2))};const __WEBPACK_DEFAULT_EXPORT__={title:"Resource",component:_Resource__WEBPACK_IMPORTED_MODULE_9__.Ay};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_6__.A,{id:"resource-example",label:"Resource examples",selectedIndex:"Resource example",tabs:[{label:"Example resolved",content:react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Resource__WEBPACK_IMPORTED_MODULE_9__.Ay,{name:"Resource example",id:"resource-example-resolve",payload:1234},(function(resource){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,resource)}))},{label:"Example rejected",content:react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Resource__WEBPACK_IMPORTED_MODULE_9__.Ay,{name:"Resource example",id:"resource-example-reject"},(function(resource){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,resource)}))},{label:"Contact",content:react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_7__.A,{id:"foo"},(function(contact){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,contact)}))},{label:"Company",content:react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Company__WEBPACK_IMPORTED_MODULE_8__.A,{id:"bar"},(function(company){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,company)}))}]})},CustomProgressAndError=function CustomProgressAndError(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_7__.A,{id:"foo",taskStatusProps:{renderProgress:function renderProgress(){return"loading..."},renderError:function renderError(_ref2){var retry=_ref2.retry,dismiss=_ref2.dismiss,errorMessage=_ref2.errorMessage,noun=_ref2.noun;return react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",{style:{border:"4px solid green",background:"gold",padding:10}},react__WEBPACK_IMPORTED_MODULE_4__.createElement("div",null,"Couldn't load ",noun," because:"),react__WEBPACK_IMPORTED_MODULE_4__.createElement("pre",null,errorMessage),react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:retry},"retry"),react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:dismiss},"dismiss"))}}},(function(contact){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,contact)}))},ContactName=function ContactName(props){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_7__.A.Inline,props,(function(_ref3){var firstName=_ref3.firstName,lastName=_ref3.lastName;return"".concat(firstName," ").concat(lastName)}))},Inline=function Inline(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Task_stories_utils__WEBPACK_IMPORTED_MODULE_10__.C,{dismissable:react__WEBPACK_IMPORTED_MODULE_4__.createElement(ContactName,{id:"foo"}),noRetry:react__WEBPACK_IMPORTED_MODULE_4__.createElement(ContactName,{id:"foo",dismissable:!1,noRetry:!0})})},MetadataFormFields=function MetadataFormFields(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__.A,{id:"my-form"},(function(_ref4){var values=_ref4.values;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Countries__WEBPACK_IMPORTED_MODULE_11__.A.FieldSelect,{name:"countrySelect",label:"Country"}),react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Countries__WEBPACK_IMPORTED_MODULE_11__.A.FieldTypeahead,{name:"countryTypeahead",label:"Country"}),react__WEBPACK_IMPORTED_MODULE_4__.createElement(_BusinessPotential__WEBPACK_IMPORTED_MODULE_12__.A.FieldRadios,{name:"businessPotentialRadios",label:"Business potential"}),react__WEBPACK_IMPORTED_MODULE_4__.createElement(_BusinessPotential__WEBPACK_IMPORTED_MODULE_12__.A.FieldCheckboxes,{name:"businessPotentialCheckboxes",label:"Business potential"}),react__WEBPACK_IMPORTED_MODULE_4__.createElement(Json,null,values))}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n {resource => {resource}}\n \n}, {\n label: \'Example rejected\',\n content: \n {resource => {resource}}\n \n}, {\n label: \'Contact\',\n content: {contact => {contact}}\n}, {\n label: \'Company\',\n content: {company => {company}}\n}]} />',...Default.parameters?.docs?.source}}},CustomProgressAndError.parameters={...CustomProgressAndError.parameters,docs:{...CustomProgressAndError.parameters?.docs,source:{originalSource:"() => 'loading...',\n renderError: ({\n retry,\n dismiss,\n errorMessage,\n noun\n }) =>
\n
Couldn't load {noun} because:
\n
{errorMessage}
\n \n \n
\n}}>\n {contact => {contact}}\n
",...CustomProgressAndError.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:'() => } noRetry={} />',...Inline.parameters?.docs?.source}}},MetadataFormFields.parameters={...MetadataFormFields.parameters,docs:{...MetadataFormFields.parameters?.docs,source:{originalSource:'() =>
\n {({\n values\n }) => <>\n \n \n \n \n {values}\n }\n ',...MetadataFormFields.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomProgressAndError","Inline","MetadataFormFields"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/Resource-__stories__-Resource-stories.9b3f08e6.iframe.bundle.js b/Resource-__stories__-Resource-stories.9b3f08e6.iframe.bundle.js new file mode 100644 index 00000000000..5a3670aa99c --- /dev/null +++ b/Resource-__stories__-Resource-stories.9b3f08e6.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2496],{"./src/client/components/Resource/__stories__/Resource.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomProgressAndError:()=>CustomProgressAndError,Default:()=>Default,Inline:()=>Inline,MetadataFormFields:()=>MetadataFormFields,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_Form__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/index.jsx"),_TabNav__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Contact__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Resource/Contact.js"),_Company__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Resource/Company.js"),_Resource__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Resource/Resource.jsx"),_Task_stories_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_Countries__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Resource/Countries.js"),_BusinessPotential__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Resource/BusinessPotential.js");const Json=({children})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,JSON.stringify(children,null,2)),__WEBPACK_DEFAULT_EXPORT__={title:"Resource",component:_Resource__WEBPACK_IMPORTED_MODULE_5__.Ay},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_2__.A,{id:"resource-example",label:"Resource examples",selectedIndex:"Resource example",tabs:[{label:"Example resolved",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Resource__WEBPACK_IMPORTED_MODULE_5__.Ay,{name:"Resource example",id:"resource-example-resolve",payload:1234},(resource=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,resource)))},{label:"Example rejected",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Resource__WEBPACK_IMPORTED_MODULE_5__.Ay,{name:"Resource example",id:"resource-example-reject"},(resource=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,resource)))},{label:"Contact",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_3__.A,{id:"foo"},(contact=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,contact)))},{label:"Company",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Company__WEBPACK_IMPORTED_MODULE_4__.A,{id:"bar"},(company=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,company)))}]}),CustomProgressAndError=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_3__.A,{id:"foo",taskStatusProps:{renderProgress:()=>"loading...",renderError:({retry,dismiss,errorMessage,noun})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{border:"4px solid green",background:"gold",padding:10}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,"Couldn't load ",noun," because:"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,errorMessage),react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{onClick:retry},"retry"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{onClick:dismiss},"dismiss"))}},(contact=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,contact))),ContactName=props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Contact__WEBPACK_IMPORTED_MODULE_3__.A.Inline,props,(({firstName,lastName})=>`${firstName} ${lastName}`)),Inline=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Task_stories_utils__WEBPACK_IMPORTED_MODULE_6__.C,{dismissable:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContactName,{id:"foo"}),noRetry:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContactName,{id:"foo",dismissable:!1,noRetry:!0})}),MetadataFormFields=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_1__.A,{id:"my-form"},(({values})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Countries__WEBPACK_IMPORTED_MODULE_7__.A.FieldSelect,{name:"countrySelect",label:"Country"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Countries__WEBPACK_IMPORTED_MODULE_7__.A.FieldTypeahead,{name:"countryTypeahead",label:"Country"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_BusinessPotential__WEBPACK_IMPORTED_MODULE_8__.A.FieldRadios,{name:"businessPotentialRadios",label:"Business potential"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_BusinessPotential__WEBPACK_IMPORTED_MODULE_8__.A.FieldCheckboxes,{name:"businessPotentialCheckboxes",label:"Business potential"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Json,null,values))));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n {resource => {resource}}\n \n}, {\n label: \'Example rejected\',\n content: \n {resource => {resource}}\n \n}, {\n label: \'Contact\',\n content: {contact => {contact}}\n}, {\n label: \'Company\',\n content: {company => {company}}\n}]} />',...Default.parameters?.docs?.source}}},CustomProgressAndError.parameters={...CustomProgressAndError.parameters,docs:{...CustomProgressAndError.parameters?.docs,source:{originalSource:"() => 'loading...',\n renderError: ({\n retry,\n dismiss,\n errorMessage,\n noun\n }) =>
\n
Couldn't load {noun} because:
\n
{errorMessage}
\n \n \n
\n}}>\n {contact => {contact}}\n
",...CustomProgressAndError.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:'() => } noRetry={} />',...Inline.parameters?.docs?.source}}},MetadataFormFields.parameters={...MetadataFormFields.parameters,docs:{...MetadataFormFields.parameters?.docs,source:{originalSource:'() =>
\n {({\n values\n }) => <>\n \n \n \n \n {values}\n }\n ',...MetadataFormFields.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomProgressAndError","Inline","MetadataFormFields"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/RoutedInput-__stories__-RoutedInput-stories.467b5dbf.iframe.bundle.js b/RoutedInput-__stories__-RoutedInput-stories.467b5dbf.iframe.bundle.js new file mode 100644 index 00000000000..8b0c2424b53 --- /dev/null +++ b/RoutedInput-__stories__-RoutedInput-stories.467b5dbf.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6846],{"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInput"},Text=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"text",qsParam:"text",placeholder:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),Number=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"number",qsParam:"number",type:"number",placeholder:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null));Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Number.parameters?.docs?.source}}};const __namedExportsOrder=["Text","Number"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/RoutedInput-__stories__-RoutedInput-stories.e13e1263.iframe.bundle.js b/RoutedInput-__stories__-RoutedInput-stories.e13e1263.iframe.bundle.js deleted file mode 100644 index ca63737bcde..00000000000 --- a/RoutedInput-__stories__-RoutedInput-stories.e13e1263.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6846],{"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInput"};var Text=function Text(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"text",qsParam:"text",placeholder:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null))},Number=function Number(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"number",qsParam:"number",type:"number",placeholder:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null))};Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Number.parameters?.docs?.source}}};const __namedExportsOrder=["Text","Number"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.5e36ce11.iframe.bundle.js b/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.5e36ce11.iframe.bundle.js new file mode 100644 index 00000000000..ffb8e54f9b4 --- /dev/null +++ b/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.5e36ce11.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4428],{"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInputField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Example",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null));Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() => <>\n \n \n ',...Filter.parameters?.docs?.source}}};const __namedExportsOrder=["Filter"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.f957792f.iframe.bundle.js b/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.f957792f.iframe.bundle.js deleted file mode 100644 index 188ddcf728d..00000000000 --- a/RoutedInputField-__stories__-RoutedInputFieldFilter-stories.f957792f.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4428],{"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInputField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}};var Filter=function Filter(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Example",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null))};Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() => <>\n \n \n ',...Filter.parameters?.docs?.source}}};const __namedExportsOrder=["Filter"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.25e3ce35.iframe.bundle.js b/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.25e3ce35.iframe.bundle.js new file mode 100644 index 00000000000..34e44cf5c50 --- /dev/null +++ b/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.25e3ce35.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1796],{"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedNumericRangeField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Label",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null));Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Filter.parameters?.docs?.source}}};const __namedExportsOrder=["Filter"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.96c6dea1.iframe.bundle.js b/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.96c6dea1.iframe.bundle.js deleted file mode 100644 index 75ea37b5e28..00000000000 --- a/RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.96c6dea1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1796],{"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedNumericRangeField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}};var Filter=function Filter(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Label",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null))};Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Filter.parameters?.docs?.source}}};const __namedExportsOrder=["Filter"]},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file diff --git a/StatusMessage-__stories__-DismissableStatusMessage-stories.ac9cbfeb.iframe.bundle.js b/StatusMessage-__stories__-DismissableStatusMessage-stories.afadb583.iframe.bundle.js similarity index 86% rename from StatusMessage-__stories__-DismissableStatusMessage-stories.ac9cbfeb.iframe.bundle.js rename to StatusMessage-__stories__-DismissableStatusMessage-stories.afadb583.iframe.bundle.js index db8cbf666e2..6bb3a04f530 100644 --- a/StatusMessage-__stories__-DismissableStatusMessage-stories.ac9cbfeb.iframe.bundle.js +++ b/StatusMessage-__stories__-DismissableStatusMessage-stories.afadb583.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1468],{"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DismissableStatusMessage_stories});var react=__webpack_require__("./node_modules/react/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),styles=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./src/client/styles.js"));function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const TextLikeButton=styled_components_browser_esm.Ay.button(function _objectSpread(e){for(var r=1;r=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(StyledStatusMessage,_extends({},props,{ref}),children,react.createElement(TextLikeButton,{tabIndex:0,onClick:onDismiss,"aria-label":"dismiss"},"✕"))}));DismissableStatusMessage.propTypes={onDismiss:prop_types_default().func};const Dismissable=DismissableStatusMessage;DismissableStatusMessage.__docgenInfo={description:"",methods:[],displayName:"DismissableStatusMessage",props:{onDismiss:{description:"",type:{name:"func"},required:!1}}};const DismissableStatusMessage_stories={title:"DismissableStatusMessage",parameters:{component:Dismissable}};var Default=function Default(){return react.createElement(Dismissable,null,"An info message")},CustomColour=function CustomColour(){return react.createElement(Dismissable,{colour:colours.su},"An error message")};CustomColour.story={name:"Custom colour"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return \n An error message\n ;\n}",...CustomColour.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomColour"]}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1468],{"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DismissableStatusMessage_stories});var react=__webpack_require__("./node_modules/react/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),styles=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./src/client/styles.js"));function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const TextLikeButton=styled_components_browser_esm.Ay.button(function _objectSpread(e){for(var r=1;r=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(StyledStatusMessage,_extends({},props,{ref}),children,react.createElement(TextLikeButton,{tabIndex:0,onClick:onDismiss,"aria-label":"dismiss"},"✕"))}));DismissableStatusMessage.propTypes={onDismiss:prop_types_default().func};const Dismissable=DismissableStatusMessage;DismissableStatusMessage.__docgenInfo={description:"",methods:[],displayName:"DismissableStatusMessage",props:{onDismiss:{description:"",type:{name:"func"},required:!1}}};const DismissableStatusMessage_stories={title:"DismissableStatusMessage",parameters:{component:Dismissable}},Default=()=>react.createElement(Dismissable,null,"An info message"),CustomColour=()=>react.createElement(Dismissable,{colour:colours.su},"An error message");CustomColour.story={name:"Custom colour"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return \n An error message\n ;\n}",...CustomColour.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomColour"]}}]); \ No newline at end of file diff --git a/StatusMessage-__stories__-StatusMessage-stories.1e86551d.iframe.bundle.js b/StatusMessage-__stories__-StatusMessage-stories.1e86551d.iframe.bundle.js deleted file mode 100644 index bb3bba015c6..00000000000 --- a/StatusMessage-__stories__-StatusMessage-stories.1e86551d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3318],{"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),StatusMessage__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__={title:"StatusMessage"};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StatusMessage__WEBPACK_IMPORTED_MODULE_1__.A,null,"An info message")},CustomColour=function CustomColour(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StatusMessage__WEBPACK_IMPORTED_MODULE_1__.A,{colour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.su},"An error message")};CustomColour.story={name:"Custom colour"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return An error message;\n}",...CustomColour.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomColour"]}}]); \ No newline at end of file diff --git a/StatusMessage-__stories__-StatusMessage-stories.99c0e40a.iframe.bundle.js b/StatusMessage-__stories__-StatusMessage-stories.99c0e40a.iframe.bundle.js new file mode 100644 index 00000000000..870fa9407d8 --- /dev/null +++ b/StatusMessage-__stories__-StatusMessage-stories.99c0e40a.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[3318],{"./src/client/components/StatusMessage/__stories__/StatusMessage.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),StatusMessage__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__={title:"StatusMessage"},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StatusMessage__WEBPACK_IMPORTED_MODULE_1__.A,null,"An info message"),CustomColour=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StatusMessage__WEBPACK_IMPORTED_MODULE_1__.A,{colour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.su},"An error message");CustomColour.story={name:"Custom colour"},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return An error message;\n}",...CustomColour.parameters?.docs?.source}}};const __namedExportsOrder=["Default","CustomColour"]}}]); \ No newline at end of file diff --git a/SummaryList-__stories__-SummaryList-stories.685f0339.iframe.bundle.js b/SummaryList-__stories__-SummaryList-stories.685f0339.iframe.bundle.js new file mode 100644 index 00000000000..505f9c1a3c2 --- /dev/null +++ b/SummaryList-__stories__-SummaryList-stories.685f0339.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1586],{"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),SummaryList__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/SummaryList/index.jsx");const rows=[{label:"Registered company name",value:"Example Ltd"},{label:"Trading name(s)",value:"Examples & Tests"},{label:"Located at",value:"99 Loooooooooooooooooooooooooong name Street, London, SE1 456, United Kingdom"},{label:"Registered address",value:"123 Fake Road, London, SE1 123, United Kingdom"}],__WEBPACK_DEFAULT_EXPORT__={title:"SummaryList",parameters:{component:SummaryList__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryList__WEBPACK_IMPORTED_MODULE_1__.A,{rows});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/SummaryList-__stories__-SummaryList-stories.ff72fcb0.iframe.bundle.js b/SummaryList-__stories__-SummaryList-stories.ff72fcb0.iframe.bundle.js deleted file mode 100644 index 33c4118c82e..00000000000 --- a/SummaryList-__stories__-SummaryList-stories.ff72fcb0.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1586],{"./src/client/components/SummaryList/__stories__/SummaryList.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),SummaryList__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/SummaryList/index.jsx"),rows=[{label:"Registered company name",value:"Example Ltd"},{label:"Trading name(s)",value:"Examples & Tests"},{label:"Located at",value:"99 Loooooooooooooooooooooooooong name Street, London, SE1 456, United Kingdom"},{label:"Registered address",value:"123 Fake Road, London, SE1 123, United Kingdom"}];const __WEBPACK_DEFAULT_EXPORT__={title:"SummaryList",parameters:{component:SummaryList__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryList__WEBPACK_IMPORTED_MODULE_1__.A,{rows})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/SummaryTable-__stories__-SummaryTable-stories.297099b4.iframe.bundle.js b/SummaryTable-__stories__-SummaryTable-stories.297099b4.iframe.bundle.js new file mode 100644 index 00000000000..23b2daf7d5a --- /dev/null +++ b/SummaryTable-__stories__-SummaryTable-stories.297099b4.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1288],{"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),SummaryTable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/SummaryTable/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"SummaryTable",parameters:{component:SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A,{caption:"About company",actions:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com"},"Edit")},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Name"},"Example company name"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Companies House number"},"123",react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://beta.companieshouse.gov.uk/company/123"},"View on Companies House website")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Business type"},"Company"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.CurrencyRow,{heading:"Annual turnover",value:1e12}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.ListRow,{heading:"UK regions",value:["South West","North East"]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.TextRow,{heading:"Have required checks been completed?"}));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => Edit}>\n Example company name\n \n 123\n \n View on Companies House website\n \n \n Company\n \n \n \n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/SummaryTable-__stories__-SummaryTable-stories.56a3338a.iframe.bundle.js b/SummaryTable-__stories__-SummaryTable-stories.56a3338a.iframe.bundle.js deleted file mode 100644 index c905d824005..00000000000 --- a/SummaryTable-__stories__-SummaryTable-stories.56a3338a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1288],{"./src/client/components/SummaryTable/__stories__/SummaryTable.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),SummaryTable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/SummaryTable/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"SummaryTable",parameters:{component:SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A,{caption:"About company",actions:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://example.com"},"Edit")},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Name"},"Example company name"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Companies House number"},"123",react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_1__.A,{href:"https://beta.companieshouse.gov.uk/company/123"},"View on Companies House website")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.Row,{heading:"Business type"},"Company"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.CurrencyRow,{heading:"Annual turnover",value:1e12}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.ListRow,{heading:"UK regions",value:["South West","North East"]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SummaryTable__WEBPACK_IMPORTED_MODULE_2__.A.TextRow,{heading:"Have required checks been completed?"}))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => Edit}>\n Example company name\n \n 123\n \n View on Companies House website\n \n \n Company\n \n \n \n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/TabNav-__stories__-TabNav-stories.45756fe4.iframe.bundle.js b/TabNav-__stories__-TabNav-stories.45756fe4.iframe.bundle.js new file mode 100644 index 00000000000..3992863426a --- /dev/null +++ b/TabNav-__stories__-TabNav-stories.45756fe4.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2192],{"./src/client/components/TabNav/__stories__/TabNav.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,DocsPlaceholder:()=>DocsPlaceholder,Routed:()=>Routed,__namedExportsOrder:()=>__namedExportsOrder,default:()=>TabNav_stories});var react=__webpack_require__("./node_modules/react/index.js"),TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx");const TabNav_stories={title:"TabNav"},DocsPlaceholder=()=>react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.");DocsPlaceholder.story={name:"Docs placeholder"};const Default=()=>react.createElement(TabNav.A,{id:"example",label:"Example",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:react.createElement("h1",null,"Foo")},bar:{label:"Bar",content:react.createElement(TabNav.A,{id:"nested",label:"Nested",selectedIndex:"bbb",tabs:{aaa:{label:"A",content:"aaaaa"},bbb:{label:"B",content:"bbbbb"},ccc:{label:"C",content:"ccccc"}}})},baz:{label:"Baz",content:react.createElement("h3",null,"Baz")}}});Default.story={parameters:{docs:{storyDescription:"Accessible, optionally routed tab navigation. Based on https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role\n\n### Properties\n\n| Prop | Required | Default | Type | Description |\n| :-------------- | :------- | :---------------------------------------- | :--- | :---------- |\n| `label`| Yes | `undefined`| `String` | A label required for accessibility |\n| `routed`| No | `false` | `Boolean` | If `true` the component will set the current path of the route to the value of the selected index and vice versa |\n| `tabs`| Yes | `undefined` | An object or array of `{label: string, content: ReactNode}` objects | If `true` the component will set the current path of the route to the value of the selected index |\n| `keepQueryParams` | No | `false` | `Boolean` | If `true`, clicking through the navigation will keep any query params in the url.\n"}}};const Routed=()=>react.createElement(TabNav.A,{id:"routed-example",label:"RoutedExample",selectedIndex:"bar",routed:!0,tabs:{"/foo":{label:"Foo",content:react.createElement("h1",null,"Foo")},"/bar":{label:"Bar",content:react.createElement("h2",null,"Bar")},"/baz":{label:"Baz",content:react.createElement("h3",null,"Baz")}}});DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => Foo\n },\n bar: {\n label: 'Bar',\n content: \n },\n baz: {\n label: 'Baz',\n content:

Baz

\n }\n}} />",...Default.parameters?.docs?.source}}},Routed.parameters={...Routed.parameters,docs:{...Routed.parameters?.docs,source:{originalSource:"() => Foo\n },\n '/bar': {\n label: 'Bar',\n content:

Bar

\n },\n '/baz': {\n label: 'Baz',\n content:

Baz

\n }\n}} />",...Routed.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Default","Routed"]}}]); \ No newline at end of file diff --git a/TabNav-__stories__-TabNav-stories.a6e2a95a.iframe.bundle.js b/TabNav-__stories__-TabNav-stories.a6e2a95a.iframe.bundle.js deleted file mode 100644 index b4308f111b0..00000000000 --- a/TabNav-__stories__-TabNav-stories.a6e2a95a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[2192],{"./src/client/components/TabNav/__stories__/TabNav.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,DocsPlaceholder:()=>DocsPlaceholder,Routed:()=>Routed,__namedExportsOrder:()=>__namedExportsOrder,default:()=>TabNav_stories});var react=__webpack_require__("./node_modules/react/index.js"),TabNav=__webpack_require__("./src/client/components/TabNav/index.jsx");const TabNav_stories={title:"TabNav"};var DocsPlaceholder=function DocsPlaceholder(){return react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.")};DocsPlaceholder.story={name:"Docs placeholder"};var Default=function Default(){return react.createElement(TabNav.A,{id:"example",label:"Example",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:react.createElement("h1",null,"Foo")},bar:{label:"Bar",content:react.createElement(TabNav.A,{id:"nested",label:"Nested",selectedIndex:"bbb",tabs:{aaa:{label:"A",content:"aaaaa"},bbb:{label:"B",content:"bbbbb"},ccc:{label:"C",content:"ccccc"}}})},baz:{label:"Baz",content:react.createElement("h3",null,"Baz")}}})};Default.story={parameters:{docs:{storyDescription:"Accessible, optionally routed tab navigation. Based on https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role\n\n### Properties\n\n| Prop | Required | Default | Type | Description |\n| :-------------- | :------- | :---------------------------------------- | :--- | :---------- |\n| `label`| Yes | `undefined`| `String` | A label required for accessibility |\n| `routed`| No | `false` | `Boolean` | If `true` the component will set the current path of the route to the value of the selected index and vice versa |\n| `tabs`| Yes | `undefined` | An object or array of `{label: string, content: ReactNode}` objects | If `true` the component will set the current path of the route to the value of the selected index |\n| `keepQueryParams` | No | `false` | `Boolean` | If `true`, clicking through the navigation will keep any query params in the url.\n"}}};var Routed=function Routed(){return react.createElement(TabNav.A,{id:"routed-example",label:"RoutedExample",selectedIndex:"bar",routed:!0,tabs:{"/foo":{label:"Foo",content:react.createElement("h1",null,"Foo")},"/bar":{label:"Bar",content:react.createElement("h2",null,"Bar")},"/baz":{label:"Baz",content:react.createElement("h3",null,"Baz")}}})};DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => Foo\n },\n bar: {\n label: 'Bar',\n content: \n },\n baz: {\n label: 'Baz',\n content:

Baz

\n }\n}} />",...Default.parameters?.docs?.source}}},Routed.parameters={...Routed.parameters,docs:{...Routed.parameters?.docs,source:{originalSource:"() => Foo\n },\n '/bar': {\n label: 'Bar',\n content:

Bar

\n },\n '/baz': {\n label: 'Baz',\n content:

Baz

\n }\n}} />",...Routed.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","Default","Routed"]}}]); \ No newline at end of file diff --git a/Tag-__stories__-Tag-stories.0ab4ed7d.iframe.bundle.js b/Tag-__stories__-Tag-stories.0ab4ed7d.iframe.bundle.js deleted file mode 100644 index 3fc185f63b7..00000000000 --- a/Tag-__stories__-Tag-stories.0ab4ed7d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1122],{"./src/client/components/Tag/__stories__/Tag.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__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_5__=__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"),Tag__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/Tag/index.jsx");var List=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.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 display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n strong {\n margin-bottom: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_3);const __WEBPACK_DEFAULT_EXPORT__={title:"Tag",parameters:{component:Tag__WEBPACK_IMPORTED_MODULE_4__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(List,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,null,"BETA"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"grey"},"INACTIVE"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"green"},"NEW"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"turquoise"},"ACTIVE"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"blue"},"PENDING"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"purple"},"RECEIVED"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"pink"},"SENT"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"red"},"REJECTED"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"orange"},"DECLINED"),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Tag__WEBPACK_IMPORTED_MODULE_4__.A,{colour:"yellow"},"DELAYED"))};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n BETA\n INACTIVE\n NEW\n ACTIVE\n PENDING\n RECEIVED\n SENT\n REJECTED\n DECLINED\n DELAYED\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); \ No newline at end of file diff --git a/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js b/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js new file mode 100644 index 00000000000..1c1d4bb7270 --- /dev/null +++ b/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1122],{"./src/client/components/Tag/__stories__/Tag.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__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"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),Tag__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Tag/index.jsx");const List=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)("div")` + display: flex; + flex-direction: column; + align-items: flex-start; + + strong { + margin-bottom: ${_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.Es.SCALE_3}; + } +`,__WEBPACK_DEFAULT_EXPORT__={title:"Tag",parameters:{component:Tag__WEBPACK_IMPORTED_MODULE_2__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(List,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,null,"BETA"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"grey"},"INACTIVE"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"green"},"NEW"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"turquoise"},"ACTIVE"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"blue"},"PENDING"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"purple"},"RECEIVED"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"pink"},"SENT"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"red"},"REJECTED"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"orange"},"DECLINED"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag__WEBPACK_IMPORTED_MODULE_2__.A,{colour:"yellow"},"DELAYED"));Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'() => \n BETA\n INACTIVE\n NEW\n ACTIVE\n PENDING\n RECEIVED\n SENT\n REJECTED\n DECLINED\n DELAYED\n ',...Default.parameters?.docs?.source}}};const __namedExportsOrder=["Default"]}}]); +//# sourceMappingURL=Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js.map \ No newline at end of file diff --git a/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js.map b/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js.map new file mode 100644 index 00000000000..dc247edc4f2 --- /dev/null +++ b/Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Tag-__stories__-Tag-stories.bffe7897.iframe.bundle.js","mappings":";;;;;;AAUA;;AAGA","sources":["webpack://data-hub-frontend/"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/Task-__stories__-Error-stories.386550dc.iframe.bundle.js b/Task-__stories__-Error-stories.386550dc.iframe.bundle.js new file mode 100644 index 00000000000..c276822111a --- /dev/null +++ b/Task-__stories__-Error-stories.386550dc.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9925],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/Task/__stories__/Error.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Dismissable:()=>Dismissable,Inline:()=>Inline,NonDismissable:()=>NonDismissable,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_addon_actions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_Error__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Task/Error.jsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;eReact.createElement(_Error__WEBPACK_IMPORTED_MODULE_2__.A,_extends({},(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_0__.o1)("retry","dismiss"),{errorMessage:"Complete meltdown",noun:"made up thing"})),NonDismissable=()=>React.createElement(_Error__WEBPACK_IMPORTED_MODULE_2__.A,_extends({},(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_0__.o1)("retry"),{errorMessage:"Complete meltdown",noun:"made up thing"})),InlineError=props=>React.createElement(_Error__WEBPACK_IMPORTED_MODULE_2__.A.Inline,_extends({errorMessage:"Complete meltdown",noun:"stuff"},props)),Inline=()=>React.createElement(_utils__WEBPACK_IMPORTED_MODULE_1__.C,{dismissable:React.createElement(InlineError,(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_0__.o1)("retry")),noRetry:React.createElement(InlineError,null)});Dismissable.parameters={...Dismissable.parameters,docs:{...Dismissable.parameters?.docs,source:{originalSource:"() => ",...Dismissable.parameters?.docs?.source}}},NonDismissable.parameters={...NonDismissable.parameters,docs:{...NonDismissable.parameters?.docs,source:{originalSource:'() => ',...NonDismissable.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:"() => } noRetry={} />",...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Dismissable","NonDismissable","Inline"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/Task-__stories__-Error-stories.d10df821.iframe.bundle.js b/Task-__stories__-Error-stories.d10df821.iframe.bundle.js deleted file mode 100644 index b703041ac7e..00000000000 --- a/Task-__stories__-Error-stories.d10df821.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[9925],{"./node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{XI:()=>action,o1:()=>actions});var v4=__webpack_require__("./node_modules/@storybook/addon-actions/node_modules/uuid/dist/esm-browser/v4.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("@storybook/core-events/preview-errors"),ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`,config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a},generateId=()=>"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?(0,v4.A)():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var actions=(...args)=>{let options=config,names=args;1===names.length&&Array.isArray(names[0])&&([names]=names),1!==names.length&&"string"!=typeof names[names.length-1]&&(options={...config,...names.pop()});let namesObject=names[0];(1!==names.length||"string"==typeof namesObject)&&(namesObject={},names.forEach((name=>{namesObject[name]=name})));let actionsObject={};return Object.keys(namesObject).forEach((name=>{actionsObject[name]=action(namesObject[name],options)})),actionsObject}},"./src/client/components/Task/__stories__/Error.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Dismissable:()=>Dismissable,Inline:()=>Inline,NonDismissable:()=>NonDismissable,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/index.mjs"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_Error__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/client/components/Task/Error.jsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e ",...Dismissable.parameters?.docs?.source}}},NonDismissable.parameters={...NonDismissable.parameters,docs:{...NonDismissable.parameters?.docs,source:{originalSource:'() => ',...NonDismissable.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:"() => } noRetry={} />",...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Dismissable","NonDismissable","Inline"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/Task-__stories__-ProgressIndicator-stories.205d5483.iframe.bundle.js b/Task-__stories__-ProgressIndicator-stories.205d5483.iframe.bundle.js deleted file mode 100644 index 748a5cc5f64..00000000000 --- a/Task-__stories__-ProgressIndicator-stories.205d5483.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5099],{"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Inline:()=>Inline,Message:()=>Message,Noun:()=>Noun,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ProgressIndicator.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Task/ProgressIndicator",component:_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A};var Noun=function Noun(){return React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A,{noun:"stuff"})},Message=function Message(){return React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A,{message:"something is in progress"})},Inline=function Inline(){return React.createElement(_utils__WEBPACK_IMPORTED_MODULE_0__.C,{dismissable:React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A.Inline,{noun:"stuff"}),noRetry:React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A.Inline,{noun:"stuff"})})};Noun.parameters={...Noun.parameters,docs:{...Noun.parameters?.docs,source:{originalSource:'() => ',...Noun.parameters?.docs?.source}}},Message.parameters={...Message.parameters,docs:{...Message.parameters?.docs,source:{originalSource:'() => ',...Message.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:'() => } noRetry={} />',...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Noun","Message","Inline"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/Task-__stories__-ProgressIndicator-stories.b97fe6f6.iframe.bundle.js b/Task-__stories__-ProgressIndicator-stories.b97fe6f6.iframe.bundle.js new file mode 100644 index 00000000000..34390eced48 --- /dev/null +++ b/Task-__stories__-ProgressIndicator-stories.b97fe6f6.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5099],{"./src/client/components/Task/__stories__/ProgressIndicator.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Inline:()=>Inline,Message:()=>Message,Noun:()=>Noun,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/Task/__stories__/utils.jsx"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/ProgressIndicator.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Task/ProgressIndicator",component:_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A},Noun=()=>React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A,{noun:"stuff"}),Message=()=>React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A,{message:"something is in progress"}),Inline=()=>React.createElement(_utils__WEBPACK_IMPORTED_MODULE_0__.C,{dismissable:React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A.Inline,{noun:"stuff"}),noRetry:React.createElement(_ProgressIndicator__WEBPACK_IMPORTED_MODULE_1__.A.Inline,{noun:"stuff"})});Noun.parameters={...Noun.parameters,docs:{...Noun.parameters?.docs,source:{originalSource:'() => ',...Noun.parameters?.docs?.source}}},Message.parameters={...Message.parameters,docs:{...Message.parameters?.docs,source:{originalSource:'() => ',...Message.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:'() => } noRetry={} />',...Inline.parameters?.docs?.source}}};const __namedExportsOrder=["Noun","Message","Inline"]},"./src/client/components/Task/__stories__/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>InlineTemplate});var _TabNav__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/TabNav/index.jsx"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),InlineTemplate=function InlineTemplate(_ref){var dismissable=_ref.dismissable,noRetry=_ref.noRetry;return React.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:React.createElement(React.Fragment,null,"In heading ",dismissable," foo bar baz"),localHeaderdismissable:React.createElement(React.Fragment,null,"In local header ",dismissable," foo bar baz"),breadcrumbs:[{text:"Foo"},{text:noRetry},{text:"Foo"}]},React.createElement(_TabNav__WEBPACK_IMPORTED_MODULE_0__.A,{id:"example",label:"Tab nav",selectedIndex:"bar",tabs:{foo:{label:"Foo",content:"Foo content"},bar:{label:React.createElement(React.Fragment,null,"Inside tab ",noRetry),content:"Bar content"},baz:{label:"Baz",content:"Baz content"}}}),React.createElement("h1",null,"Inside H1 ",dismissable," foo bar baz"),React.createElement("h2",null,"Inside H2 ",dismissable," foo bar baz"),React.createElement("h3",null,"Inside H3 ",dismissable," foo bar baz"),React.createElement("h4",null,"Inside H4 ",dismissable," foo bar baz"),React.createElement("h5",null,"Inside H5 ",dismissable," foo bar baz"),React.createElement("h6",null,"Inside H6 ",dismissable," foo bar baz"),React.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ultrices"," ",dismissable," odio at ultricies semper. Sed fermentum tortor quis ante blandit malesuada. Praesent vulputate eget dolor vel luctus. Pellentesque id molestie arcu, a eleifend justo."),React.createElement("ul",null,React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz"),React.createElement("li",null,"Inside list item ",dismissable," foo bar baz")))};InlineTemplate.__docgenInfo={description:"",methods:[],displayName:"InlineTemplate"}}}]); \ No newline at end of file diff --git a/Task-__stories__-Task-stories.26aa0a2b.iframe.bundle.js b/Task-__stories__-Task-stories.26aa0a2b.iframe.bundle.js deleted file mode 100644 index 9da8d88e2a0..00000000000 --- a/Task-__stories__-Task-stories.26aa0a2b.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5158],{"./src/client/components/Task/__stories__/Task.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Cancelation:()=>Cancelation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__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"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/Task/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Task"};var Cancelation=function Cancelation(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,null,(function(task){return react__WEBPACK_IMPORTED_MODULE_1__.createElement("ul",null,["a","b","c"].map((function(id){var t=task("Task cancellation demo",id),startOptions={payload:id,onSuccessDispatch:"DONE-".concat(id)};return react__WEBPACK_IMPORTED_MODULE_1__.createElement("li",{key:id},"id: ",id," ",react__WEBPACK_IMPORTED_MODULE_1__.createElement("button",{disabled:t.progress,onClick:function onClick(){return t.start(startOptions)}},"start"),react__WEBPACK_IMPORTED_MODULE_1__.createElement("button",{onClick:function onClick(){t.cancel(),t.start(startOptions)}},"restart"),react__WEBPACK_IMPORTED_MODULE_1__.createElement("button",{disabled:!t.progress,onClick:function onClick(){return t.cancel()}},"cancel")," ","status: ",t.status)})))}))};Cancelation.parameters={...Cancelation.parameters,docs:{...Cancelation.parameters?.docs,source:{originalSource:"() => \n {task =>
    \n {['a', 'b', 'c'].map(id => {\n const t = task('Task cancellation demo', id);\n const startOptions = {\n payload: id,\n onSuccessDispatch: `DONE-${id}`\n };\n return
  • \n id: {id}{' '}\n \n \n {' '}\n status: {t.status}\n
  • ;\n })}\n
}\n
",...Cancelation.parameters?.docs?.source}}};const __namedExportsOrder=["Cancelation"]}}]); \ No newline at end of file diff --git a/Task-__stories__-Task-stories.8875c96e.iframe.bundle.js b/Task-__stories__-Task-stories.8875c96e.iframe.bundle.js new file mode 100644 index 00000000000..73c695a7d2e --- /dev/null +++ b/Task-__stories__-Task-stories.8875c96e.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[5158],{"./src/client/components/Task/__stories__/Task.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Cancelation:()=>Cancelation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Task/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"Task"},Cancelation=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__.A,null,(task=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",null,["a","b","c"].map((id=>{const t=task("Task cancellation demo",id),startOptions={payload:id,onSuccessDispatch:`DONE-${id}`};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{key:id},"id: ",id," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{disabled:t.progress,onClick:()=>t.start(startOptions)},"start"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{onClick:()=>{t.cancel(),t.start(startOptions)}},"restart"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{disabled:!t.progress,onClick:()=>t.cancel()},"cancel")," ","status: ",t.status)})))));Cancelation.parameters={...Cancelation.parameters,docs:{...Cancelation.parameters?.docs,source:{originalSource:"() => \n {task =>
    \n {['a', 'b', 'c'].map(id => {\n const t = task('Task cancellation demo', id);\n const startOptions = {\n payload: id,\n onSuccessDispatch: `DONE-${id}`\n };\n return
  • \n id: {id}{' '}\n \n \n {' '}\n status: {t.status}\n
  • ;\n })}\n
}\n
",...Cancelation.parameters?.docs?.source}}};const __namedExportsOrder=["Cancelation"]}}]); \ No newline at end of file diff --git a/Timeline-__stories__-Timeline-stories.13988fa7.iframe.bundle.js b/Timeline-__stories__-Timeline-stories.13988fa7.iframe.bundle.js deleted file mode 100644 index 7b85e65fce5..00000000000 --- a/Timeline-__stories__-Timeline-stories.13988fa7.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[790],{"./src/client/components/Timeline/__stories__/Timeline.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Complete:()=>Complete,Default:()=>Default,FirstStage:()=>FirstStage,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Timeline__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Timeline/index.jsx"),_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/modules/Investments/Projects/constants.js");const __WEBPACK_DEFAULT_EXPORT__={title:"Timeline",parameters:{component:Timeline__WEBPACK_IMPORTED_MODULE_1__.A}};var Default=function Default(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1})},FirstStage=function FirstStage(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1,currentStage:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.sy})};FirstStage.story={name:"First stage"};var Complete=function Complete(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1,currentStage:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.c0})};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},FirstStage.parameters={...FirstStage.parameters,docs:{...FirstStage.parameters?.docs,source:{originalSource:"() => ",...FirstStage.parameters?.docs?.source}}},Complete.parameters={...Complete.parameters,docs:{...Complete.parameters?.docs,source:{originalSource:"() => ",...Complete.parameters?.docs?.source}}};const __namedExportsOrder=["Default","FirstStage","Complete"]}}]); \ No newline at end of file diff --git a/Timeline-__stories__-Timeline-stories.9d76c5ad.iframe.bundle.js b/Timeline-__stories__-Timeline-stories.9d76c5ad.iframe.bundle.js new file mode 100644 index 00000000000..234184e55b4 --- /dev/null +++ b/Timeline-__stories__-Timeline-stories.9d76c5ad.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[790],{"./src/client/components/Timeline/__stories__/Timeline.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Complete:()=>Complete,Default:()=>Default,FirstStage:()=>FirstStage,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),Timeline__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Timeline/index.jsx"),_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/modules/Investments/Projects/constants.js");const __WEBPACK_DEFAULT_EXPORT__={title:"Timeline",parameters:{component:Timeline__WEBPACK_IMPORTED_MODULE_1__.A}},Default=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1}),FirstStage=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1,currentStage:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.sy});FirstStage.story={name:"First stage"};const Complete=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Timeline__WEBPACK_IMPORTED_MODULE_1__.A,{stages:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.s1,currentStage:_modules_Investments_Projects_constants__WEBPACK_IMPORTED_MODULE_2__.c0});Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => ",...Default.parameters?.docs?.source}}},FirstStage.parameters={...FirstStage.parameters,docs:{...FirstStage.parameters?.docs,source:{originalSource:"() => ",...FirstStage.parameters?.docs?.source}}},Complete.parameters={...Complete.parameters,docs:{...Complete.parameters?.docs,source:{originalSource:"() => ",...Complete.parameters?.docs?.source}}};const __namedExportsOrder=["Default","FirstStage","Complete"]}}]); \ No newline at end of file diff --git a/ToggleSection-__stories__-ToggleSection-stories.0170caa1.iframe.bundle.js b/ToggleSection-__stories__-ToggleSection-stories.0170caa1.iframe.bundle.js deleted file mode 100644 index 7f09a7efebb..00000000000 --- a/ToggleSection-__stories__-ToggleSection-stories.0170caa1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[710],{"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DashboardMultiple:()=>DashboardMultiple,DashboardSingleWithBadge:()=>DashboardSingleWithBadge,DefaultMultiple:()=>DefaultMultiple,DefaultSingle:()=>DefaultSingle,DocsPlaceholder:()=>DocsPlaceholder,FilterMultiple:()=>FilterMultiple,FilterSingle:()=>FilterSingle,NoHighlightMultiple:()=>NoHighlightMultiple,NoHighlightSingle:()=>NoHighlightSingle,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ToggleSection_stories});var react=__webpack_require__("./node_modules/react/index.js"),NotificationBadge=__webpack_require__("./src/client/components/NotificationBadge/index.jsx"),ToggleSection=__webpack_require__("./src/client/components/ToggleSection/index.jsx");var FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),Form=__webpack_require__("./src/client/components/Form/index.jsx");const ToggleSection_stories={title:"ToggleSection"};var DocsPlaceholder=function DocsPlaceholder(){return react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.")};DocsPlaceholder.story={name:"Docs placeholder"};var DefaultSingle=function DefaultSingle(){return react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.four",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})})))};DefaultSingle.story={name:"Default - Single",parameters:{docs:{storyDescription:'This is to be used for toggling groups, this does not replace the "details" component in the [GDS design system](https://design-system.service.gov.uk/components/details/).\n'}}};var DefaultMultiple=function DefaultMultiple(){return react.createElement(react.Fragment,null,react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.five",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))),react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.six"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))))};DefaultMultiple.story={name:"Default - Multiple"};var NoHighlightSingle=function NoHighlightSingle(){return react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.seven",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})})))};NoHighlightSingle.story={name:"No Highlight - Single"};var NoHighlightMultiple=function NoHighlightMultiple(){return react.createElement(react.Fragment,null,react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.eight",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))),react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.nine"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))))};NoHighlightMultiple.story={name:"No Highlight - Multiple"};var DashboardSingleWithBadge=function DashboardSingleWithBadge(){return react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.one",isOpen:!0,badge:react.createElement(NotificationBadge.Ay,{value:15})},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})})))};DashboardSingleWithBadge.story={name:"Dashboard - Single (with badge)"};var DashboardMultiple=function DashboardMultiple(){return react.createElement(react.Fragment,null,react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.two",isOpen:!0,major:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))),react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.three"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(function(){return react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})}))))};DashboardMultiple.story={name:"Dashboard - Multiple"};var FilterSingle=function FilterSingle(){return react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.eight",isOpen:!0},react.createElement("p",null,"Some filters"))};FilterSingle.story={name:"Filter - Single"};var FilterMultiple=function FilterMultiple(){return react.createElement(react.Fragment,null,react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.nine",isOpen:!0},react.createElement("p",null,"Some filters")),react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.ten",isOpen:!1},react.createElement("p",null,"Some filters")),react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.eleven",isOpen:!1},react.createElement("p",null,"Some filters")))};FilterMultiple.story={name:"Filter - Multiple"},DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},DefaultSingle.parameters={...DefaultSingle.parameters,docs:{...DefaultSingle.parameters?.docs,source:{originalSource:'() => \n
\n {() => }\n \n
',...DefaultSingle.parameters?.docs?.source}}},DefaultMultiple.parameters={...DefaultMultiple.parameters,docs:{...DefaultMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...DefaultMultiple.parameters?.docs?.source}}},NoHighlightSingle.parameters={...NoHighlightSingle.parameters,docs:{...NoHighlightSingle.parameters?.docs,source:{originalSource:'() => \n
\n {() => }\n \n
',...NoHighlightSingle.parameters?.docs?.source}}},NoHighlightMultiple.parameters={...NoHighlightMultiple.parameters,docs:{...NoHighlightMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...NoHighlightMultiple.parameters?.docs?.source}}},DashboardSingleWithBadge.parameters={...DashboardSingleWithBadge.parameters,docs:{...DashboardSingleWithBadge.parameters?.docs,source:{originalSource:'() => }>\n
\n {() => }\n \n
',...DashboardSingleWithBadge.parameters?.docs?.source}}},DashboardMultiple.parameters={...DashboardMultiple.parameters,docs:{...DashboardMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...DashboardMultiple.parameters?.docs?.source}}},FilterSingle.parameters={...FilterSingle.parameters,docs:{...FilterSingle.parameters?.docs,source:{originalSource:'() => \n

Some filters

\n
',...FilterSingle.parameters?.docs?.source}}},FilterMultiple.parameters={...FilterMultiple.parameters,docs:{...FilterMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n

Some filters

\n
\n \n

Some filters

\n
\n \n

Some filters

\n
\n ',...FilterMultiple.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","DefaultSingle","DefaultMultiple","NoHighlightSingle","NoHighlightMultiple","DashboardSingleWithBadge","DashboardMultiple","FilterSingle","FilterMultiple"]}}]); \ No newline at end of file diff --git a/ToggleSection-__stories__-ToggleSection-stories.412d76c9.iframe.bundle.js b/ToggleSection-__stories__-ToggleSection-stories.412d76c9.iframe.bundle.js new file mode 100644 index 00000000000..5b76f0b183e --- /dev/null +++ b/ToggleSection-__stories__-ToggleSection-stories.412d76c9.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[710],{"./src/client/components/ToggleSection/__stories__/ToggleSection.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DashboardMultiple:()=>DashboardMultiple,DashboardSingleWithBadge:()=>DashboardSingleWithBadge,DefaultMultiple:()=>DefaultMultiple,DefaultSingle:()=>DefaultSingle,DocsPlaceholder:()=>DocsPlaceholder,FilterMultiple:()=>FilterMultiple,FilterSingle:()=>FilterSingle,NoHighlightMultiple:()=>NoHighlightMultiple,NoHighlightSingle:()=>NoHighlightSingle,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ToggleSection_stories});var react=__webpack_require__("./node_modules/react/index.js"),NotificationBadge=__webpack_require__("./src/client/components/NotificationBadge/index.jsx"),ToggleSection=__webpack_require__("./src/client/components/ToggleSection/index.jsx");var FieldInput=__webpack_require__("./src/client/components/Form/elements/FieldInput/index.jsx"),Form=__webpack_require__("./src/client/components/Form/index.jsx");const ToggleSection_stories={title:"ToggleSection"},DocsPlaceholder=()=>react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.");DocsPlaceholder.story={name:"Docs placeholder"};const DefaultSingle=()=>react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.four",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"}))));DefaultSingle.story={name:"Default - Single",parameters:{docs:{storyDescription:'This is to be used for toggling groups, this does not replace the "details" component in the [GDS design system](https://design-system.service.gov.uk/components/details/).\n'}}};const DefaultMultiple=()=>react.createElement(react.Fragment,null,react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.five",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))),react.createElement(ToggleSection.Os,{label:"Toggle me",id:"toggle.six"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))));DefaultMultiple.story={name:"Default - Multiple"};const NoHighlightSingle=()=>react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.seven",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"}))));NoHighlightSingle.story={name:"No Highlight - Single"};const NoHighlightMultiple=()=>react.createElement(react.Fragment,null,react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.eight",isOpen:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))),react.createElement(ToggleSection.xQ,{label:"Toggle me",id:"toggle.nine"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))));NoHighlightMultiple.story={name:"No Highlight - Multiple"};const DashboardSingleWithBadge=()=>react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.one",isOpen:!0,badge:react.createElement(NotificationBadge.Ay,{value:15})},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"}))));DashboardSingleWithBadge.story={name:"Dashboard - Single (with badge)"};const DashboardMultiple=()=>react.createElement(react.Fragment,null,react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.two",isOpen:!0,major:!0},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))),react.createElement(ToggleSection.cQ,{label:"Toggle me",id:"toggle.three"},react.createElement(Form.A,{id:"toggleSectionExample",analyticsFormName:"toggleSectionExample",submissionTaskName:"Submit Form example"},(()=>react.createElement(FieldInput.A,{label:"Text",hint:"Some hint",name:"testField",required:"Enter text",type:"text"})))));DashboardMultiple.story={name:"Dashboard - Multiple"};const FilterSingle=()=>react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.eight",isOpen:!0},react.createElement("p",null,"Some filters"));FilterSingle.story={name:"Filter - Single"};const FilterMultiple=()=>react.createElement(react.Fragment,null,react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.nine",isOpen:!0},react.createElement("p",null,"Some filters")),react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.ten",isOpen:!1},react.createElement("p",null,"Some filters")),react.createElement(ToggleSection.Q,{label:"Toggle me",id:"toggle.eleven",isOpen:!1},react.createElement("p",null,"Some filters")));FilterMultiple.story={name:"Filter - Multiple"},DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},DefaultSingle.parameters={...DefaultSingle.parameters,docs:{...DefaultSingle.parameters?.docs,source:{originalSource:'() => \n
\n {() => }\n \n
',...DefaultSingle.parameters?.docs?.source}}},DefaultMultiple.parameters={...DefaultMultiple.parameters,docs:{...DefaultMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...DefaultMultiple.parameters?.docs?.source}}},NoHighlightSingle.parameters={...NoHighlightSingle.parameters,docs:{...NoHighlightSingle.parameters?.docs,source:{originalSource:'() => \n
\n {() => }\n \n
',...NoHighlightSingle.parameters?.docs?.source}}},NoHighlightMultiple.parameters={...NoHighlightMultiple.parameters,docs:{...NoHighlightMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...NoHighlightMultiple.parameters?.docs?.source}}},DashboardSingleWithBadge.parameters={...DashboardSingleWithBadge.parameters,docs:{...DashboardSingleWithBadge.parameters?.docs,source:{originalSource:'() => }>\n
\n {() => }\n \n
',...DashboardSingleWithBadge.parameters?.docs?.source}}},DashboardMultiple.parameters={...DashboardMultiple.parameters,docs:{...DashboardMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n
\n {() => }\n \n
\n \n
\n {() => }\n \n
\n ',...DashboardMultiple.parameters?.docs?.source}}},FilterSingle.parameters={...FilterSingle.parameters,docs:{...FilterSingle.parameters?.docs,source:{originalSource:'() => \n

Some filters

\n
',...FilterSingle.parameters?.docs?.source}}},FilterMultiple.parameters={...FilterMultiple.parameters,docs:{...FilterMultiple.parameters?.docs,source:{originalSource:'() => <>\n \n

Some filters

\n
\n \n

Some filters

\n
\n \n

Some filters

\n
\n ',...FilterMultiple.parameters?.docs?.source}}};const __namedExportsOrder=["DocsPlaceholder","DefaultSingle","DefaultMultiple","NoHighlightSingle","NoHighlightMultiple","DashboardSingleWithBadge","DashboardMultiple","FilterSingle","FilterMultiple"]}}]); \ No newline at end of file diff --git a/Typeahead-__stories__-Typeahead-stories.9680d1c6.iframe.bundle.js b/Typeahead-__stories__-Typeahead-stories.9680d1c6.iframe.bundle.js new file mode 100644 index 00000000000..8ef2633c296 --- /dev/null +++ b/Typeahead-__stories__-Typeahead-stories.9680d1c6.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1310],{"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DocsPlaceholder:()=>DocsPlaceholder,MultiAsyncOptions:()=>MultiAsyncOptions,MultiAsyncPreSelectedOptions:()=>MultiAsyncPreSelectedOptions,MultiPreSelectedMultipleOptions:()=>MultiPreSelectedMultipleOptions,MultiPreSelectedOption:()=>MultiPreSelectedOption,MultiStandardOptions:()=>MultiStandardOptions,SingleAsyncOptions:()=>SingleAsyncOptions,SingleError:()=>SingleError,SinglePreSelectedOption:()=>SinglePreSelectedOption,SingleStandardOptions:()=>SingleStandardOptions,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Typeahead_stories,mockLoadOptions:()=>mockLoadOptions});var react=__webpack_require__("./node_modules/react/index.js");var Typeahead=__webpack_require__("./src/client/components/Typeahead/index.jsx");const asyncOptions=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Holly Clins - Heart of the South West LEP"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Bernard Harris-Patelc - Welsh Government (Investment)"},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Dennis Kennedy"},{value:"eecd2bb8-dc73-4a42-8655-4ae42d4d3cff",label:"Denzil Lincoln"}],mockLoadOptions=(query="")=>new Promise((resolve=>query&&query.length?setTimeout(resolve,1e3,asyncOptions.filter((({label})=>label.toLowerCase().includes(query.toLowerCase())))):resolve([]))),options=[{value:"0001",label:"Apple"},{value:"0002",label:"Banana"},{value:"0003",label:"Blackberry"},{value:"0004",label:"Blueberry"},{value:"0005",label:"Orange"},{value:"0006",label:"Papaya"},{value:"0007",label:"Passion Fruit"},{value:"0008",label:"Pear"},{value:"0009",label:"Pineapple"},{value:"0010",label:"Prickly Pear That Has a Very Very Long Name"}],Typeahead_stories={title:"Typeahead",excludeStories:["mockLoadOptions"]},DocsPlaceholder=()=>react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.");DocsPlaceholder.story={name:"Docs placeholder"};const SingleStandardOptions=()=>react.createElement(Typeahead.A,{name:"singleselect",isMulti:!1,initialOptions:options,placeholder:"Search...",label:"Pick a fruit"});SingleStandardOptions.story={name:"Single - standard options",parameters:{docs:{storyDescription:"This is a new accessible typeahead designed to replace the old typeahead. Typing into the input will filter options - this can be operated in both multi and single select modes. In multi-select mode, the selected options are shown outside of the input box as removable chips.\n\nThis is based on [accessibility research by Microsoft's Sarah Higley](https://www.24a11y.com/2019/select-your-poison-part-2/).\n"}}};const SinglePreSelectedOption=()=>react.createElement(Typeahead.A,{name:"singleselect-pre-select",isMulti:!1,initialOptions:options,placeholder:"Search...",defaultValue:options[2],label:"Pick a fruit"});SinglePreSelectedOption.story={name:"Single - pre-selected option"};const SingleError=()=>react.createElement(Typeahead.A,{name:"singleselect-error",error:!0,isMulti:!1,initialOptions:options,placeholder:"Search...",label:"Pick a fruit"});SingleError.story={name:"Single - error"};const SingleAsyncOptions=()=>react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!1,name:"singleselect",loadOptions:mockLoadOptions,placeholder:"Search...",label:"Pick an adviser"}));SingleAsyncOptions.story={name:"Single - async options"};const MultiStandardOptions=()=>react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect",initialOptions:options,placeholder:"Search...",label:"Pick a fruit"});MultiStandardOptions.story={name:"Multi - standard options"};const MultiPreSelectedOption=()=>react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-pre-select",initialOptions:options,placeholder:"Search...",defaultValue:options[2],label:"Pick a fruit"});MultiPreSelectedOption.story={name:"Multi - pre-selected option"};const MultiPreSelectedMultipleOptions=()=>react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-pre-select-multiple",initialOptions:options,placeholder:"Search...",defaultValue:[options[2],options[0]],label:"Pick a fruit"});MultiPreSelectedMultipleOptions.story={name:"Multi - pre-selected multiple options"};const MultiAsyncOptions=()=>react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-async",loadOptions:mockLoadOptions,placeholder:"Search advisers...",noOptionsMessage:"No advisers found","aria-label":"search"}));MultiAsyncOptions.story={name:"Multi - async options"};const MultiAsyncPreSelectedOptions=()=>react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-async",loadOptions:mockLoadOptions,placeholder:"Search advisers...",noOptionsMessage:"No advisers found",defaultValue:[asyncOptions[2],asyncOptions[0]],"aria-label":"search"}));MultiAsyncPreSelectedOptions.story={name:"Multi - async pre-selected options"},DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},SingleStandardOptions.parameters={...SingleStandardOptions.parameters,docs:{...SingleStandardOptions.parameters?.docs,source:{originalSource:'() => ',...SingleStandardOptions.parameters?.docs?.source}}},SinglePreSelectedOption.parameters={...SinglePreSelectedOption.parameters,docs:{...SinglePreSelectedOption.parameters?.docs,source:{originalSource:'() => ',...SinglePreSelectedOption.parameters?.docs?.source}}},SingleError.parameters={...SingleError.parameters,docs:{...SingleError.parameters?.docs,source:{originalSource:'() => ',...SingleError.parameters?.docs?.source}}},SingleAsyncOptions.parameters={...SingleAsyncOptions.parameters,docs:{...SingleAsyncOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

\n
    \n
  • Bernard
  • \n
  • Dennis
  • \n
  • Denzil
  • \n
  • Holly
  • \n
\n \n
',...SingleAsyncOptions.parameters?.docs?.source}}},MultiStandardOptions.parameters={...MultiStandardOptions.parameters,docs:{...MultiStandardOptions.parameters?.docs,source:{originalSource:'() => ',...MultiStandardOptions.parameters?.docs?.source}}},MultiPreSelectedOption.parameters={...MultiPreSelectedOption.parameters,docs:{...MultiPreSelectedOption.parameters?.docs,source:{originalSource:'() => ',...MultiPreSelectedOption.parameters?.docs?.source}}},MultiPreSelectedMultipleOptions.parameters={...MultiPreSelectedMultipleOptions.parameters,docs:{...MultiPreSelectedMultipleOptions.parameters?.docs,source:{originalSource:'() => ',...MultiPreSelectedMultipleOptions.parameters?.docs?.source}}},MultiAsyncOptions.parameters={...MultiAsyncOptions.parameters,docs:{...MultiAsyncOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

\n
    \n
  • Bernard
  • \n
  • Dennis
  • \n
  • Denzil
  • \n
  • Holly
  • \n
\n \n
',...MultiAsyncOptions.parameters?.docs?.source}}},MultiAsyncPreSelectedOptions.parameters={...MultiAsyncPreSelectedOptions.parameters,docs:{...MultiAsyncPreSelectedOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

\n
    \n
  • Bernard
  • \n
  • Dennis
  • \n
  • Denzil
  • \n
  • Holly
  • \n
\n \n
',...MultiAsyncPreSelectedOptions.parameters?.docs?.source}}};const __namedExportsOrder=["mockLoadOptions","DocsPlaceholder","SingleStandardOptions","SinglePreSelectedOption","SingleError","SingleAsyncOptions","MultiStandardOptions","MultiPreSelectedOption","MultiPreSelectedMultipleOptions","MultiAsyncOptions","MultiAsyncPreSelectedOptions"]}}]); \ No newline at end of file diff --git a/Typeahead-__stories__-Typeahead-stories.b4d40b7c.iframe.bundle.js b/Typeahead-__stories__-Typeahead-stories.b4d40b7c.iframe.bundle.js deleted file mode 100644 index 633afb7fcb0..00000000000 --- a/Typeahead-__stories__-Typeahead-stories.b4d40b7c.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1310],{"./src/client/components/Typeahead/__stories__/Typeahead.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DocsPlaceholder:()=>DocsPlaceholder,MultiAsyncOptions:()=>MultiAsyncOptions,MultiAsyncPreSelectedOptions:()=>MultiAsyncPreSelectedOptions,MultiPreSelectedMultipleOptions:()=>MultiPreSelectedMultipleOptions,MultiPreSelectedOption:()=>MultiPreSelectedOption,MultiStandardOptions:()=>MultiStandardOptions,SingleAsyncOptions:()=>SingleAsyncOptions,SingleError:()=>SingleError,SinglePreSelectedOption:()=>SinglePreSelectedOption,SingleStandardOptions:()=>SingleStandardOptions,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Typeahead_stories,mockLoadOptions:()=>mockLoadOptions});__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.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react=__webpack_require__("./node_modules/react/index.js");var Typeahead=__webpack_require__("./src/client/components/Typeahead/index.jsx"),asyncOptions=[{value:"379f390a-e083-4a2c-9cea-e3b9a08606a7",label:"Holly Clins - Heart of the South West LEP"},{value:"8dcd2bb8-dc73-4a42-8655-4ae42d4d3c5a",label:"Bernard Harris-Patelc - Welsh Government (Investment)"},{value:"a6f39399-5bf4-46cb-a686-826f73e9f0ca",label:"Dennis Kennedy"},{value:"eecd2bb8-dc73-4a42-8655-4ae42d4d3cff",label:"Denzil Lincoln"}],mockLoadOptions=function mockLoadOptions(){var query=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve){return query&&query.length?setTimeout(resolve,1e3,asyncOptions.filter((function(_ref){return _ref.label.toLowerCase().includes(query.toLowerCase())}))):resolve([])}))},options=[{value:"0001",label:"Apple"},{value:"0002",label:"Banana"},{value:"0003",label:"Blackberry"},{value:"0004",label:"Blueberry"},{value:"0005",label:"Orange"},{value:"0006",label:"Papaya"},{value:"0007",label:"Passion Fruit"},{value:"0008",label:"Pear"},{value:"0009",label:"Pineapple"},{value:"0010",label:"Prickly Pear That Has a Very Very Long Name"}];const Typeahead_stories={title:"Typeahead",excludeStories:["mockLoadOptions"]};var DocsPlaceholder=function DocsPlaceholder(){return react.createElement("p",null,"This is a workaround to get the DocsPage to work with multiInstance components.")};DocsPlaceholder.story={name:"Docs placeholder"};var SingleStandardOptions=function SingleStandardOptions(){return react.createElement(Typeahead.A,{name:"singleselect",isMulti:!1,initialOptions:options,placeholder:"Search...",label:"Pick a fruit"})};SingleStandardOptions.story={name:"Single - standard options",parameters:{docs:{storyDescription:"This is a new accessible typeahead designed to replace the old typeahead. Typing into the input will filter options - this can be operated in both multi and single select modes. In multi-select mode, the selected options are shown outside of the input box as removable chips.\n\nThis is based on [accessibility research by Microsoft's Sarah Higley](https://www.24a11y.com/2019/select-your-poison-part-2/).\n"}}};var SinglePreSelectedOption=function SinglePreSelectedOption(){return react.createElement(Typeahead.A,{name:"singleselect-pre-select",isMulti:!1,initialOptions:options,placeholder:"Search...",defaultValue:options[2],label:"Pick a fruit"})};SinglePreSelectedOption.story={name:"Single - pre-selected option"};var SingleError=function SingleError(){return react.createElement(Typeahead.A,{name:"singleselect-error",error:!0,isMulti:!1,initialOptions:options,placeholder:"Search...",label:"Pick a fruit"})};SingleError.story={name:"Single - error"};var SingleAsyncOptions=function SingleAsyncOptions(){return react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!1,name:"singleselect",loadOptions:mockLoadOptions,placeholder:"Search...",label:"Pick an adviser"}))};SingleAsyncOptions.story={name:"Single - async options"};var MultiStandardOptions=function MultiStandardOptions(){return react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect",initialOptions:options,placeholder:"Search...",label:"Pick a fruit"})};MultiStandardOptions.story={name:"Multi - standard options"};var MultiPreSelectedOption=function MultiPreSelectedOption(){return react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-pre-select",initialOptions:options,placeholder:"Search...",defaultValue:options[2],label:"Pick a fruit"})};MultiPreSelectedOption.story={name:"Multi - pre-selected option"};var MultiPreSelectedMultipleOptions=function MultiPreSelectedMultipleOptions(){return react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-pre-select-multiple",initialOptions:options,placeholder:"Search...",defaultValue:[options[2],options[0]],label:"Pick a fruit"})};MultiPreSelectedMultipleOptions.story={name:"Multi - pre-selected multiple options"};var MultiAsyncOptions=function MultiAsyncOptions(){return react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-async",loadOptions:mockLoadOptions,placeholder:"Search advisers...",noOptionsMessage:"No advisers found","aria-label":"search"}))};MultiAsyncOptions.story={name:"Multi - async options"};var MultiAsyncPreSelectedOptions=function MultiAsyncPreSelectedOptions(){return react.createElement("div",{style:{width:"600px"}},react.createElement("h2",null,"Search for"),react.createElement("ul",null,react.createElement("li",null,"Bernard"),react.createElement("li",null,"Dennis"),react.createElement("li",null,"Denzil"),react.createElement("li",null,"Holly")),react.createElement(Typeahead.A,{isMulti:!0,closeMenuOnSelect:!1,name:"multiselect-async",loadOptions:mockLoadOptions,placeholder:"Search advisers...",noOptionsMessage:"No advisers found",defaultValue:[asyncOptions[2],asyncOptions[0]],"aria-label":"search"}))};MultiAsyncPreSelectedOptions.story={name:"Multi - async pre-selected options"},DocsPlaceholder.parameters={...DocsPlaceholder.parameters,docs:{...DocsPlaceholder.parameters?.docs,source:{originalSource:"() =>

\n This is a workaround to get the DocsPage to work with multiInstance\n components.\n

",...DocsPlaceholder.parameters?.docs?.source}}},SingleStandardOptions.parameters={...SingleStandardOptions.parameters,docs:{...SingleStandardOptions.parameters?.docs,source:{originalSource:'() => ',...SingleStandardOptions.parameters?.docs?.source}}},SinglePreSelectedOption.parameters={...SinglePreSelectedOption.parameters,docs:{...SinglePreSelectedOption.parameters?.docs,source:{originalSource:'() => ',...SinglePreSelectedOption.parameters?.docs?.source}}},SingleError.parameters={...SingleError.parameters,docs:{...SingleError.parameters?.docs,source:{originalSource:'() => ',...SingleError.parameters?.docs?.source}}},SingleAsyncOptions.parameters={...SingleAsyncOptions.parameters,docs:{...SingleAsyncOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

\n
    \n
  • Bernard
  • \n
  • Dennis
  • \n
  • Denzil
  • \n
  • Holly
  • \n
\n \n
',...SingleAsyncOptions.parameters?.docs?.source}}},MultiStandardOptions.parameters={...MultiStandardOptions.parameters,docs:{...MultiStandardOptions.parameters?.docs,source:{originalSource:'() => ',...MultiStandardOptions.parameters?.docs?.source}}},MultiPreSelectedOption.parameters={...MultiPreSelectedOption.parameters,docs:{...MultiPreSelectedOption.parameters?.docs,source:{originalSource:'() => ',...MultiPreSelectedOption.parameters?.docs?.source}}},MultiPreSelectedMultipleOptions.parameters={...MultiPreSelectedMultipleOptions.parameters,docs:{...MultiPreSelectedMultipleOptions.parameters?.docs,source:{originalSource:'() => ',...MultiPreSelectedMultipleOptions.parameters?.docs?.source}}},MultiAsyncOptions.parameters={...MultiAsyncOptions.parameters,docs:{...MultiAsyncOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

\n
    \n
  • Bernard
  • \n
  • Dennis
  • \n
  • Denzil
  • \n
  • Holly
  • \n
\n \n
',...MultiAsyncOptions.parameters?.docs?.source}}},MultiAsyncPreSelectedOptions.parameters={...MultiAsyncPreSelectedOptions.parameters,docs:{...MultiAsyncPreSelectedOptions.parameters?.docs,source:{originalSource:'() =>
\n

Search for

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