\r\n {\r\n this.props.title ?
: null\r\n }\r\n {\r\n this.props.clickToSubmit ?\r\n
\r\n :\r\n
\r\n }\r\n {\r\n this._locationError ?\r\n <>\r\n
There were issues retrieving your location!
\r\n >\r\n : null\r\n }\r\n {\r\n this.props.showMoreLink && searchMoreURL != undefined ?\r\n
\r\n
Looking for something else?
\r\n
\r\n
\r\n : null\r\n }\r\n
\r\n )\r\n }\r\n}\r\n\r\n\r\nexport function textBoxMapDispatchToProps(dispatch: Dispatch, ownProps: IExternalProps): DispatchToProps {\r\n return {\r\n updateFilter: (query: string) => {\r\n if (!query || query === \"\") {\r\n dispatch(removeFilter(ownProps.property));\r\n } else {\r\n dispatch(upsertFilter(ownProps.property, encodeURIComponent(query)) as any)\r\n }\r\n },\r\n updateSecondaryFilter: (property: string, query: string) => {\r\n if (!query || query === \"\") {\r\n dispatch(removeFilter(property));\r\n } else {\r\n dispatch(upsertFilter(property, encodeURIComponent(query)) as any)\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport function textBoxMapStateToProps(state: IAppState, ownProps: IExternalProps): StateToProps {\r\n const options = state.filtersState.filterOptions[ownProps.property];\r\n\r\n const addressOrCityOrZipValue = state.filtersState.filters['AddressOrCityOrZip'];\r\n\r\n if (ownProps.property === \"hospital\" || ownProps.property === \"practice\") {\r\n return {\r\n IsDisabled: false,\r\n options: options ? Object.keys(options).map(function (key) { return { text: options[key], value: key } }).sort((a, b) => (a.text > b.text) ? 1 : -1) : [],\r\n selectedOptions: state.filtersState.filters[ownProps.property] ? state.filtersState.filters[ownProps.property] : \"\",\r\n addressOrCityOrZipValue: addressOrCityOrZipValue\r\n }\r\n }\r\n else {\r\n return {\r\n IsDisabled: false,\r\n options: options ? options.map(option => { return { text: option, value: option } }) : [],\r\n selectedOptions: state.filtersState.filters[ownProps.property] ? state.filtersState.filters[ownProps.property] : \"\",\r\n addressOrCityOrZipValue: addressOrCityOrZipValue\r\n }\r\n }\r\n\r\n}\r\n\r\nexport const ConnectedFilterTextbox = connect(textBoxMapStateToProps, textBoxMapDispatchToProps)(FilterTextbox);","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nexport class ScrollToTop extends React.Component