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GAE1B,GAAgC,OAA5BA,EAAaI,WACf,OAAO,EAGTJ,EAAaI,WAAWC,YAAYL,EACtC,CAWMM,CAAmBN,EACrB,EAEJ,C,oBCpDAtE,EAAOC,QAZP,SAA2BuC,EAAK8B,GAC9B,GAAIA,EAAaO,WACfP,EAAaO,WAAWC,QAAUtC,MAC7B,CACL,KAAO8B,EAAaS,YAClBT,EAAaK,YAAYL,EAAaS,YAGxCT,EAAaJ,YAAYtE,SAASoF,eAAexC,GACnD,CACF,C","sources":["webpack://client/./src/components/Errors.js","webpack://client/./src/components/Loader.js","webpack://client/./src/service-availability/styles.scss?a7a9","webpack://client/./src/service-availability/store.js","webpack://client/./src/service-availability/components/EnterPostCodesComponent.js","webpack://client/./src/service-availability/components/ResultsComponent.js","webpack://client/./src/service-availability/ServiceAvailability.js","webpack://client/./src/service-availability/index.js","webpack://client/./src/service-availability/styles.scss","webpack://client/./node_modules/css-loader/dist/runtime/api.js","webpack://client/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://client/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://client/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://client/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://client/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://client/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://client/./node_modules/style-loader/dist/runtime/styleTagTransform.js"],"sourcesContent":["import React from 'react';\r\n\r\nclass Errors extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n if (!this.props.errors || !this.props.errors.length)\r\n return null;\r\n\r\n var count = this.props.errors.length;\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Errors;\r\n","import React from 'react';\r\n\r\nexport default class Loader extends React.Component {\r\n render() {\r\n if (!this.props.show) return null;\r\n\r\n return (\r\n \r\n \r\n

\r\n {this.props.text}\r\n

\r\n
\r\n );\r\n }\r\n}\r\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./styles.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./styles.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { createStore, applyMiddleware } from 'redux'\r\nimport thunk from 'redux-thunk'\r\nimport createLogger from 'redux-logger'\r\n\r\nlet id = 2;\r\nconst defaultState = {\r\n entries: [\r\n { id: 1, postCode: null }\r\n ],\r\n errors: [],\r\n messages: [],\r\n results: [],\r\n showResults: false,\r\n loading: false\r\n};\r\n\r\nexport default createStore((state = defaultState, action) => {\r\n const changeState = (overrides) => {\r\n return Object.assign({}, state, overrides);\r\n }\r\n\r\n switch (action.type) {\r\n case 'SHOW_RESULTS':\r\n return changeState({ showResults: true })\r\n\r\n case 'SET_IS_LOADING':\r\n return changeState({ loading: true });\r\n\r\n case 'ADD_ENTRY':\r\n return changeState({\r\n entries: [...state.entries, {\r\n id: id++,\r\n postCode: action.postCode\r\n }]\r\n });\r\n\r\n case 'SET_ENTRY':\r\n let entries = state.entries.map(entry => {\r\n if (entry.id === action.id)\r\n return Object.assign({}, entry, { postCode: action.postCode });\r\n return Object.assign({}, entry);\r\n });\r\n\r\n return changeState({ entries: entries });\r\n\r\n case 'SET_RESULTS':\r\n return changeState({\r\n errors: action.errors,\r\n messages: action.messages,\r\n results: action.results,\r\n showResults: action.results.length,\r\n loading: false\r\n });\r\n\r\n case 'SEARCH_AGAIN':\r\n return changeState({ showResults: false });\r\n };\r\n\r\n return state;\r\n},\r\napplyMiddleware(\r\n thunk,\r\n createLogger()\r\n));\r\n","import React from 'react'\r\nimport axios from 'axios'\r\nimport { connect } from 'react-redux'\r\nimport Errors from '../../components/Errors'\r\nimport LoaderComponent from '../../components/Loader'\r\n\r\nclass EnterPostCodesComponent extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.submit = this.submit.bind(this);\r\n }\r\n\r\n submit() {\r\n this.props.onSearching();\r\n\r\n axios\r\n .post('/ss/availabilityService/checkAvailability', {\r\n records: this.props.entries\r\n })\r\n .then(res => {\r\n this.props.onResultsReceived({\r\n errors: res.data.Errors,\r\n messages: res.data.Messages,\r\n results: res.data.Model || []\r\n });\r\n })\r\n .catch(err => {\r\n this.props.onResultsReceived({\r\n errors: [{ ErrorMessage: \"Sorry we can't find any services for that post code\" }],\r\n messages: [],\r\n results: []\r\n });\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n

{window.content.mainHeading}

\r\n\r\n
\r\n\r\n \r\n\r\n
    \r\n {this.props.entries.map(entry => {\r\n return ;\r\n })}\r\n
\r\n\r\n { this.props.onAddEntry(null); }}>\r\n + Add another\r\n \r\n\r\n {(() => {\r\n if (this.props.loading) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n else {\r\n let disableSubmitButton = !this.props.entries.every(x => { return x.postCode });\r\n return (\r\n
\r\n \r\n
\r\n )\r\n }\r\n })()}\r\n
\r\n );\r\n }\r\n}\r\n\r\nclass Field extends React.Component {\r\n render() {\r\n return (\r\n
  • \r\n {\r\n this.props.onChange(this.props.id, this.refs.postCodeInput.value)\r\n }}\r\n />\r\n
  • \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => {\r\n return {\r\n entries: state.entries,\r\n errors: state.errors,\r\n messages: state.messages,\r\n results: state.results,\r\n showResults: state.showResults,\r\n loading: state.loading\r\n };\r\n },\r\n dispatch => {\r\n return {\r\n onSearching: () => {\r\n dispatch({ type: 'SET_IS_LOADING' });\r\n },\r\n\r\n onResultsReceived: (data) => {\r\n dispatch(\r\n Object.assign({ type: 'SET_RESULTS' }, data)\r\n );\r\n },\r\n\r\n onAddEntry: (postCode) => {\r\n dispatch({ type: 'ADD_ENTRY', postCode: postCode });\r\n },\r\n\r\n onChange: (id, postCode) => {\r\n dispatch({\r\n type: 'SET_ENTRY',\r\n id: id,\r\n postCode: postCode\r\n })\r\n }\r\n };\r\n }\r\n)(EnterPostCodesComponent);\r\n","import React from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nclass ResultsComponent extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n if (this.props.results.length == 0)\r\n return null;\r\n\r\n return (\r\n
    \r\n {this.props.results.map((result, i) => {\r\n return ;\r\n })}\r\n\r\n {(() => {\r\n if (this.props.results.some(x => { return x.Availability.length > 0 })) {\r\n return
    \r\n }\r\n })()}\r\n\r\n
    \r\n { this.props.onSearchAgain(); }}>\r\n Search again\r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nclass Result extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n var result = this.props.result;\r\n var availabilityContent = result.Availability.length\r\n ? window.content.serviceAvailableContent\r\n : window.content.serviceNotAvailableContent;\r\n\r\n return (\r\n
    \r\n
    \r\n Site { this.props.index + 1 }\r\n
    \r\n\r\n
    \r\n
    \r\n

    \r\n Postcode
    \r\n {result.PostCode} \r\n

    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => {\r\n return {};\r\n },\r\n\r\n dispatch => {\r\n return {\r\n onSearchAgain: () => {\r\n dispatch({ type: 'SEARCH_AGAIN' });\r\n },\r\n };\r\n }\r\n)(ResultsComponent);\r\n","import React from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nimport EnterPostCodesComponent from './components/EnterPostCodesComponent';\r\nimport ResultsComponent from './components/ResultsComponent';\r\n\r\nclass ServiceAvailability extends React.Component {\r\n render() {\r\n if (this.props.showResults)\r\n return ;\r\n else\r\n return \r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state\r\n)(ServiceAvailability);\r\n","import './styles.scss';\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport store from './store';\r\nimport ServiceAvailability from './ServiceAvailability';\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n document.getElementById('ServiceAvailabilityMount')\r\n);\r\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"button[disabled]{opacity:.5;cursor:default}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/service-availability/styles.scss\"],\"names\":[],\"mappings\":\"AAAA,iBACE,UAAA,CACA,cAAA\",\"sourcesContent\":[\"button[disabled] {\\r\\n opacity: 0.5;\\r\\n cursor: default;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;"],"names":["Errors","props","this","errors","length","className","map","e","i","key","ErrorMessage","React","Loader","show","text","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","id","defaultState","entries","postCode","messages","results","showResults","loading","createStore","state","action","changeState","overrides","Object","assign","type","entry","applyMiddleware","thunk","createLogger","EnterPostCodesComponent","submit","bind","onSearching","axios","records","then","res","onResultsReceived","data","Messages","Model","catch","err","window","content","mainHeading","dangerouslySetInnerHTML","__html","mainContent","Field","onChange","href","onClick","onAddEntry","disableSubmitButton","every","x","disabled","placeholder","ref","value","refs","postCodeInput","connect","dispatch","ResultsComponent","result","Result","index","some","Availability","termsFooterContent","onSearchAgain","availabilityContent","serviceAvailableContent","serviceNotAvailableContent","PostCode","ServiceAvailability","ReactDOM","store","document","getElementById","___CSS_LOADER_EXPORT___","push","module","exports","cssWithMappingToString","list","toString","item","needLayer","concat","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","sourceURLs","sources","source","sourceRoot","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","newLastIdentifiers","_i","_index","memo","style","target","styleTarget","querySelector","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","element","createElement","attributes","styleElement","nonce","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode"],"sourceRoot":""}