@corpsmap/corpsmap 3.1.7 → 3.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dev.js +548 -39
- package/lib/prod.js +548 -39
- package/package.json +1 -1
- package/src/core-plugins/contact-form/bundle.js +244 -0
- package/src/core-plugins/contact-form/index.js +17 -0
- package/src/core-plugins/contact-form/question-button.js +36 -0
- package/src/core-plugins/contact-form/question-modal.js +191 -0
- package/src/index.js +2 -0
package/lib/dev.js
CHANGED
|
@@ -106507,7 +106507,7 @@ var config = {
|
|
|
106507
106507
|
};
|
|
106508
106508
|
|
|
106509
106509
|
var name = "@corpsmap/corpsmap";
|
|
106510
|
-
var version$1 = "3.1.
|
|
106510
|
+
var version$1 = "3.1.9";
|
|
106511
106511
|
var description = "CorpsMap as React Components";
|
|
106512
106512
|
var main = "index.js";
|
|
106513
106513
|
var scripts = {
|
|
@@ -160663,7 +160663,515 @@ var plugin$c = {
|
|
|
160663
160663
|
}]
|
|
160664
160664
|
};
|
|
160665
160665
|
|
|
160666
|
-
var
|
|
160666
|
+
var QuestionsModal = /*#__PURE__*/function (_React$Component) {
|
|
160667
|
+
_inherits(QuestionsModal, _React$Component);
|
|
160668
|
+
|
|
160669
|
+
var _super = _createSuper(QuestionsModal);
|
|
160670
|
+
|
|
160671
|
+
function QuestionsModal(props) {
|
|
160672
|
+
var _this;
|
|
160673
|
+
|
|
160674
|
+
_classCallCheck(this, QuestionsModal);
|
|
160675
|
+
|
|
160676
|
+
_this = _super.call(this, props);
|
|
160677
|
+
_this.state = {
|
|
160678
|
+
firstName: " ",
|
|
160679
|
+
lastName: " ",
|
|
160680
|
+
Email: " ",
|
|
160681
|
+
selIssue: " ",
|
|
160682
|
+
addComments: " ",
|
|
160683
|
+
errors: {}
|
|
160684
|
+
};
|
|
160685
|
+
_this.close = _this.close.bind(_assertThisInitialized(_this));
|
|
160686
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
160687
|
+
_this.handleSubmit = _this.handleSubmit.bind(_assertThisInitialized(_this));
|
|
160688
|
+
return _this;
|
|
160689
|
+
}
|
|
160690
|
+
|
|
160691
|
+
_createClass(QuestionsModal, [{
|
|
160692
|
+
key: "close",
|
|
160693
|
+
value: function close() {
|
|
160694
|
+
var doModalClose = this.props.doModalClose;
|
|
160695
|
+
doModalClose();
|
|
160696
|
+
}
|
|
160697
|
+
}, {
|
|
160698
|
+
key: "handleChange",
|
|
160699
|
+
value: function handleChange(event) {
|
|
160700
|
+
switch (event.target.name) {
|
|
160701
|
+
case "FN":
|
|
160702
|
+
this.setState({
|
|
160703
|
+
firstName: event.target.value
|
|
160704
|
+
});
|
|
160705
|
+
break;
|
|
160706
|
+
|
|
160707
|
+
case "LN":
|
|
160708
|
+
this.setState({
|
|
160709
|
+
lastName: event.target.value
|
|
160710
|
+
});
|
|
160711
|
+
break;
|
|
160712
|
+
|
|
160713
|
+
case "EM":
|
|
160714
|
+
this.setState({
|
|
160715
|
+
Email: event.target.value
|
|
160716
|
+
});
|
|
160717
|
+
break;
|
|
160718
|
+
|
|
160719
|
+
case "SI":
|
|
160720
|
+
this.setState({
|
|
160721
|
+
selIssue: event.target.value
|
|
160722
|
+
});
|
|
160723
|
+
break;
|
|
160724
|
+
|
|
160725
|
+
case "AC":
|
|
160726
|
+
this.setState({
|
|
160727
|
+
addComments: event.target.value
|
|
160728
|
+
});
|
|
160729
|
+
break;
|
|
160730
|
+
}
|
|
160731
|
+
}
|
|
160732
|
+
}, {
|
|
160733
|
+
key: "handleSubmit",
|
|
160734
|
+
value: function handleSubmit(event) {
|
|
160735
|
+
event.preventDefault();
|
|
160736
|
+
var _this$props = this.props,
|
|
160737
|
+
doSetContactFormIssues = _this$props.doSetContactFormIssues,
|
|
160738
|
+
doHandleFormErrors = _this$props.doHandleFormErrors,
|
|
160739
|
+
doSubmitNotification = _this$props.doSubmitNotification,
|
|
160740
|
+
errorList = _this$props.errorList;
|
|
160741
|
+
var formOutputs = {
|
|
160742
|
+
first_Name: this.state.firstName,
|
|
160743
|
+
last_Name: this.state.lastName,
|
|
160744
|
+
e_mail: this.state.Email,
|
|
160745
|
+
sel_issue: this.state.selIssue,
|
|
160746
|
+
add_comments: this.state.addComments
|
|
160747
|
+
};
|
|
160748
|
+
var formIsValid = doHandleFormErrors(formOutputs);
|
|
160749
|
+
this.setState({
|
|
160750
|
+
errors: errorList
|
|
160751
|
+
});
|
|
160752
|
+
|
|
160753
|
+
if (formIsValid) {
|
|
160754
|
+
doSetContactFormIssues(formOutputs);
|
|
160755
|
+
doSubmitNotification(formIsValid);
|
|
160756
|
+
this.close();
|
|
160757
|
+
} else {
|
|
160758
|
+
doSubmitNotification(formIsValid);
|
|
160759
|
+
}
|
|
160760
|
+
}
|
|
160761
|
+
}, {
|
|
160762
|
+
key: "render",
|
|
160763
|
+
value: function render() {
|
|
160764
|
+
var theme = this.props.theme;
|
|
160765
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
160766
|
+
className: "cm-modal-header " + theme
|
|
160767
|
+
}, "Questions"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
160768
|
+
className: "cm-modal-body",
|
|
160769
|
+
style: {
|
|
160770
|
+
height: 290,
|
|
160771
|
+
top: 0,
|
|
160772
|
+
bottom: 0,
|
|
160773
|
+
left: 0,
|
|
160774
|
+
right: 0
|
|
160775
|
+
}
|
|
160776
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
160777
|
+
className: "cm-form-group"
|
|
160778
|
+
}, /*#__PURE__*/React$1__default.createElement("form", {
|
|
160779
|
+
onSubmit: this.handleSubmit
|
|
160780
|
+
}, /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("label", null, "First Name:", " ", /*#__PURE__*/React$1__default.createElement("input", {
|
|
160781
|
+
name: "FN",
|
|
160782
|
+
type: "text",
|
|
160783
|
+
value: this.state.firstName,
|
|
160784
|
+
onChange: this.handleChange
|
|
160785
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160786
|
+
style: {
|
|
160787
|
+
color: "red",
|
|
160788
|
+
position: "relative",
|
|
160789
|
+
left: 10
|
|
160790
|
+
}
|
|
160791
|
+
}, this.state.formIsValid ? null : this.state.errors["First_Name"])), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160792
|
+
style: {
|
|
160793
|
+
position: "relative",
|
|
160794
|
+
left: 20
|
|
160795
|
+
}
|
|
160796
|
+
}, "Last Name:", " ", /*#__PURE__*/React$1__default.createElement("input", {
|
|
160797
|
+
name: "LN",
|
|
160798
|
+
type: "text",
|
|
160799
|
+
value: this.state.LastName,
|
|
160800
|
+
onChange: this.handleChange
|
|
160801
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160802
|
+
style: {
|
|
160803
|
+
color: "red",
|
|
160804
|
+
position: "relative",
|
|
160805
|
+
left: 10
|
|
160806
|
+
}
|
|
160807
|
+
}, this.state.formIsValid ? null : this.state.errors["Last_Name"]))), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("label", null, "Email", " ", /*#__PURE__*/React$1__default.createElement("input", {
|
|
160808
|
+
name: "EM",
|
|
160809
|
+
style: {
|
|
160810
|
+
width: 250
|
|
160811
|
+
},
|
|
160812
|
+
type: "text",
|
|
160813
|
+
value: this.state.Email,
|
|
160814
|
+
onChange: this.handleChange
|
|
160815
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160816
|
+
style: {
|
|
160817
|
+
color: "red",
|
|
160818
|
+
position: "relative",
|
|
160819
|
+
left: 10
|
|
160820
|
+
}
|
|
160821
|
+
}, this.state.formIsValid ? null : this.state.errors["email"]))), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("label", null, "Select your Current Issue:", /*#__PURE__*/React$1__default.createElement("select", {
|
|
160822
|
+
name: "SI",
|
|
160823
|
+
style: {
|
|
160824
|
+
width: 150,
|
|
160825
|
+
textAlign: "center"
|
|
160826
|
+
},
|
|
160827
|
+
value: this.state.selIssue,
|
|
160828
|
+
onChange: this.handleChange
|
|
160829
|
+
}, /*#__PURE__*/React$1__default.createElement("option", {
|
|
160830
|
+
value: " "
|
|
160831
|
+
}, " "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160832
|
+
value: " Map Issue "
|
|
160833
|
+
}, " Map Issue "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160834
|
+
value: " Errors "
|
|
160835
|
+
}, " Errors"), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160836
|
+
value: " Bugs "
|
|
160837
|
+
}, " Bugs "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160838
|
+
value: " Requests "
|
|
160839
|
+
}, " Requests "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160840
|
+
value: " Other"
|
|
160841
|
+
}, " Other ")), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160842
|
+
style: {
|
|
160843
|
+
color: "red",
|
|
160844
|
+
position: "relative",
|
|
160845
|
+
left: 10
|
|
160846
|
+
}
|
|
160847
|
+
}, this.state.formIsValid ? null : this.state.errors["issue"]))), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("p", null, "Brief Description"), /*#__PURE__*/React$1__default.createElement("textarea", {
|
|
160848
|
+
name: "AC",
|
|
160849
|
+
style: {
|
|
160850
|
+
height: 120,
|
|
160851
|
+
width: 300
|
|
160852
|
+
},
|
|
160853
|
+
value: this.state.addComments,
|
|
160854
|
+
onChange: this.handleChange
|
|
160855
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160856
|
+
style: {
|
|
160857
|
+
color: "red",
|
|
160858
|
+
position: "relative",
|
|
160859
|
+
left: 10
|
|
160860
|
+
}
|
|
160861
|
+
}, this.state.formIsValid ? null : this.state.errors["add_comments"]))))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
160862
|
+
className: "cm-modal-footer"
|
|
160863
|
+
}, /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("button", {
|
|
160864
|
+
type: "submit",
|
|
160865
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
160866
|
+
onClick: this.handleSubmit
|
|
160867
|
+
}, "Submit"), /*#__PURE__*/React$1__default.createElement("button", {
|
|
160868
|
+
style: {
|
|
160869
|
+
textAlign: "left"
|
|
160870
|
+
},
|
|
160871
|
+
type: "Close",
|
|
160872
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
160873
|
+
onClick: this.close
|
|
160874
|
+
}, "Close")));
|
|
160875
|
+
}
|
|
160876
|
+
}]);
|
|
160877
|
+
|
|
160878
|
+
return QuestionsModal;
|
|
160879
|
+
}(React$1__default.Component);
|
|
160880
|
+
|
|
160881
|
+
var QuestionModal = connect("selectTheme", "doModalClose", "doSubmitNotification", "doSetContactFormIssues", "doHandleFormErrors", "selectErrorList", QuestionsModal);
|
|
160882
|
+
|
|
160883
|
+
var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
160884
|
+
_inherits(questionsTab, _React$Component);
|
|
160885
|
+
|
|
160886
|
+
var _super = _createSuper(questionsTab);
|
|
160887
|
+
|
|
160888
|
+
function questionsTab(props) {
|
|
160889
|
+
var _this;
|
|
160890
|
+
|
|
160891
|
+
_classCallCheck(this, questionsTab);
|
|
160892
|
+
|
|
160893
|
+
_this = _super.call(this, props);
|
|
160894
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
160895
|
+
return _this;
|
|
160896
|
+
}
|
|
160897
|
+
|
|
160898
|
+
_createClass(questionsTab, [{
|
|
160899
|
+
key: "handleClick",
|
|
160900
|
+
value: function handleClick() {
|
|
160901
|
+
var doModalOpen = this.props.doModalOpen;
|
|
160902
|
+
doModalOpen({
|
|
160903
|
+
children: [QuestionModal],
|
|
160904
|
+
options: {},
|
|
160905
|
+
openedBy: "questionsTab"
|
|
160906
|
+
});
|
|
160907
|
+
}
|
|
160908
|
+
}, {
|
|
160909
|
+
key: "render",
|
|
160910
|
+
value: function render() {
|
|
160911
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
160912
|
+
iconClass: "mdi mdi-help-circle",
|
|
160913
|
+
label: "Contact Us",
|
|
160914
|
+
title: "Contact Us",
|
|
160915
|
+
onClick: this.handleClick
|
|
160916
|
+
});
|
|
160917
|
+
}
|
|
160918
|
+
}]);
|
|
160919
|
+
|
|
160920
|
+
return questionsTab;
|
|
160921
|
+
}(React$1__default.Component);
|
|
160922
|
+
|
|
160923
|
+
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
160924
|
+
|
|
160925
|
+
var _name$getReducer$doHa;
|
|
160926
|
+
|
|
160927
|
+
var bundle$b = (_name$getReducer$doHa = {
|
|
160928
|
+
name: "questionsTab",
|
|
160929
|
+
getReducer: function getReducer() {
|
|
160930
|
+
var initialData = {
|
|
160931
|
+
questionsTabStatus: false,
|
|
160932
|
+
errorList: {},
|
|
160933
|
+
applicationName: "",
|
|
160934
|
+
emailPath: ""
|
|
160935
|
+
};
|
|
160936
|
+
return function () {
|
|
160937
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
160938
|
+
|
|
160939
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
160940
|
+
type = _ref.type,
|
|
160941
|
+
payload = _ref.payload;
|
|
160942
|
+
|
|
160943
|
+
switch (type) {
|
|
160944
|
+
case "PARAMETERS_SET":
|
|
160945
|
+
case "FORM_SUBMITTED":
|
|
160946
|
+
case "FORM_ERROR":
|
|
160947
|
+
case "API_POST_SUCCESS":
|
|
160948
|
+
case "API_POST_ERROR":
|
|
160949
|
+
case "ACTIVATE_QUESTIONS_TAB":
|
|
160950
|
+
case "DEACTIVATE_QUESTIONS_TAB":
|
|
160951
|
+
case "VALIDATION_COMPLETE":
|
|
160952
|
+
return Object.assign({}, state, payload);
|
|
160953
|
+
|
|
160954
|
+
default:
|
|
160955
|
+
return state;
|
|
160956
|
+
}
|
|
160957
|
+
};
|
|
160958
|
+
},
|
|
160959
|
+
doHandleFormErrors: function doHandleFormErrors(outputs) {
|
|
160960
|
+
return function (_ref2) {
|
|
160961
|
+
var dispatch = _ref2.dispatch,
|
|
160962
|
+
store = _ref2.store;
|
|
160963
|
+
var formErrors = store.selectErrorList();
|
|
160964
|
+
var formValidation = true;
|
|
160965
|
+
var regex = /[a-zA-Z]/g; //First Name
|
|
160966
|
+
|
|
160967
|
+
if (outputs.first_Name == " ") {
|
|
160968
|
+
formValidation = false;
|
|
160969
|
+
formErrors["First_Name"] = " *Field Cannot be empty ";
|
|
160970
|
+
}
|
|
160971
|
+
|
|
160972
|
+
if (typeof outputs.first_Name !== "undefined") {
|
|
160973
|
+
if (!outputs.first_Name.match(regex)) {
|
|
160974
|
+
formValidation = false;
|
|
160975
|
+
formErrors["First_Name"] = " *Only letters ";
|
|
160976
|
+
}
|
|
160977
|
+
} //Last Name
|
|
160978
|
+
|
|
160979
|
+
|
|
160980
|
+
if (outputs.last_Name == " ") {
|
|
160981
|
+
formValidation = false;
|
|
160982
|
+
formErrors["Last_Name"] = " *Field Cannot be empty ";
|
|
160983
|
+
}
|
|
160984
|
+
|
|
160985
|
+
if (typeof outputs.last_Name !== "undefined") {
|
|
160986
|
+
if (!outputs.last_Name.match(regex)) {
|
|
160987
|
+
formValidation = false;
|
|
160988
|
+
formErrors["Last_Name"] = " *Only letters ";
|
|
160989
|
+
}
|
|
160990
|
+
} //Email
|
|
160991
|
+
|
|
160992
|
+
|
|
160993
|
+
if (outputs.e_mail == " ") {
|
|
160994
|
+
formValidation = false;
|
|
160995
|
+
formErrors["email"] = " *Field Cannot be empty ";
|
|
160996
|
+
}
|
|
160997
|
+
|
|
160998
|
+
if (typeof outputs.e_mail !== "undefined") {
|
|
160999
|
+
var lastAtPos = outputs.e_mail.lastIndexOf("@");
|
|
161000
|
+
var lastDotPos = outputs.e_mail.lastIndexOf(".");
|
|
161001
|
+
|
|
161002
|
+
if (!(lastAtPos < lastDotPos && lastAtPos > 0 && outputs.e_mail.indexOf("@@") == -1 && lastDotPos > 2 && outputs.e_mail.length - lastDotPos > 2)) {
|
|
161003
|
+
formValidation = false;
|
|
161004
|
+
formErrors["email"] = " *Email is not valid ";
|
|
161005
|
+
}
|
|
161006
|
+
} // Select issue
|
|
161007
|
+
|
|
161008
|
+
|
|
161009
|
+
if (outputs.sel_issue == " ") {
|
|
161010
|
+
formValidation = false;
|
|
161011
|
+
formErrors["issue"] = " *Please select an issue ";
|
|
161012
|
+
} // Breif Description
|
|
161013
|
+
|
|
161014
|
+
|
|
161015
|
+
if (outputs.add_comments == " ") {
|
|
161016
|
+
formValidation = false;
|
|
161017
|
+
formErrors["add_comments"] = " *Please provide a breif description of issue ";
|
|
161018
|
+
}
|
|
161019
|
+
|
|
161020
|
+
dispatch({
|
|
161021
|
+
type: "VALIDATION_COMPLETE",
|
|
161022
|
+
payload: {
|
|
161023
|
+
errorList: formErrors
|
|
161024
|
+
}
|
|
161025
|
+
});
|
|
161026
|
+
return formValidation;
|
|
161027
|
+
};
|
|
161028
|
+
},
|
|
161029
|
+
doSetContactFormConfiguration: function doSetContactFormConfiguration(fudsFormParams) {
|
|
161030
|
+
return function (_ref3) {
|
|
161031
|
+
var dispatch = _ref3.dispatch,
|
|
161032
|
+
store = _ref3.store;
|
|
161033
|
+
var app_name = fudsFormParams.application_name;
|
|
161034
|
+
var app_path = fudsFormParams.email_url;
|
|
161035
|
+
dispatch({
|
|
161036
|
+
type: "PARAMETERS_SET",
|
|
161037
|
+
payload: {
|
|
161038
|
+
applicationName: app_name,
|
|
161039
|
+
emailPath: app_path
|
|
161040
|
+
}
|
|
161041
|
+
});
|
|
161042
|
+
};
|
|
161043
|
+
},
|
|
161044
|
+
doSetContactFormIssues: function doSetContactFormIssues(issues) {
|
|
161045
|
+
return function (_ref4) {
|
|
161046
|
+
var dispatch = _ref4.dispatch,
|
|
161047
|
+
store = _ref4.store,
|
|
161048
|
+
apiPost = _ref4.apiPost;
|
|
161049
|
+
console.log(issues); // Here we want to POST the contents of the Form
|
|
161050
|
+
// (path, payload, callback)
|
|
161051
|
+
|
|
161052
|
+
var path = store.selectEmailPath();
|
|
161053
|
+
var params = {
|
|
161054
|
+
application_name: store.selectApplicationName(),
|
|
161055
|
+
first_name: issues.first_Name,
|
|
161056
|
+
last_name: issues.last_Name,
|
|
161057
|
+
email_address: issues.e_mail,
|
|
161058
|
+
category: issues.sel_issue,
|
|
161059
|
+
comments: issues.add_comments
|
|
161060
|
+
};
|
|
161061
|
+
apiPost(path, params, function (err, response, body) {
|
|
161062
|
+
if (err || response.statusCode !== 200) {
|
|
161063
|
+
console.log(err, response);
|
|
161064
|
+
dispatch({
|
|
161065
|
+
type: "API_POST_ERROR",
|
|
161066
|
+
payload: {
|
|
161067
|
+
notification: {
|
|
161068
|
+
message: "api-error",
|
|
161069
|
+
level: "danger"
|
|
161070
|
+
}
|
|
161071
|
+
}
|
|
161072
|
+
});
|
|
161073
|
+
} else {
|
|
161074
|
+
dispatch({
|
|
161075
|
+
type: "API_POST_SUCCESS",
|
|
161076
|
+
payload: {
|
|
161077
|
+
notification: {
|
|
161078
|
+
message: "api-success",
|
|
161079
|
+
level: "success"
|
|
161080
|
+
}
|
|
161081
|
+
}
|
|
161082
|
+
});
|
|
161083
|
+
console.log(response);
|
|
161084
|
+
}
|
|
161085
|
+
});
|
|
161086
|
+
};
|
|
161087
|
+
},
|
|
161088
|
+
doSubmitNotification: function doSubmitNotification(bool) {
|
|
161089
|
+
return function (_ref5) {
|
|
161090
|
+
var dispatch = _ref5.dispatch,
|
|
161091
|
+
store = _ref5.store;
|
|
161092
|
+
|
|
161093
|
+
if (bool) {
|
|
161094
|
+
store.doNotificationsFire({
|
|
161095
|
+
title: "Form Submitted",
|
|
161096
|
+
message: "Form Submitted",
|
|
161097
|
+
level: "success"
|
|
161098
|
+
});
|
|
161099
|
+
dispatch({
|
|
161100
|
+
type: "FORM_SUBMITTED",
|
|
161101
|
+
payload: {}
|
|
161102
|
+
});
|
|
161103
|
+
} else {
|
|
161104
|
+
store.doNotificationsFire({
|
|
161105
|
+
title: "Form Error",
|
|
161106
|
+
message: "Form Has Errors",
|
|
161107
|
+
level: "danger"
|
|
161108
|
+
});
|
|
161109
|
+
dispatch({
|
|
161110
|
+
type: "FORM_ERROR",
|
|
161111
|
+
payload: {}
|
|
161112
|
+
});
|
|
161113
|
+
}
|
|
161114
|
+
};
|
|
161115
|
+
}
|
|
161116
|
+
}, _defineProperty(_name$getReducer$doHa, "doSubmitNotification", function doSubmitNotification(bool) {
|
|
161117
|
+
return function (_ref6) {
|
|
161118
|
+
var dispatch = _ref6.dispatch,
|
|
161119
|
+
store = _ref6.store;
|
|
161120
|
+
|
|
161121
|
+
if (bool) {
|
|
161122
|
+
store.doNotificationsFire({
|
|
161123
|
+
title: "Form Submitted",
|
|
161124
|
+
message: "Form Submitted",
|
|
161125
|
+
level: "success"
|
|
161126
|
+
});
|
|
161127
|
+
dispatch({
|
|
161128
|
+
type: "FORM_SUBMITTED",
|
|
161129
|
+
payload: {}
|
|
161130
|
+
});
|
|
161131
|
+
} else {
|
|
161132
|
+
store.doNotificationsFire({
|
|
161133
|
+
title: "Form Error",
|
|
161134
|
+
message: "Form Has Errors",
|
|
161135
|
+
level: "danger"
|
|
161136
|
+
});
|
|
161137
|
+
dispatch({
|
|
161138
|
+
type: "FORM_ERROR",
|
|
161139
|
+
payload: {}
|
|
161140
|
+
});
|
|
161141
|
+
}
|
|
161142
|
+
};
|
|
161143
|
+
}), _defineProperty(_name$getReducer$doHa, "doQuestionBarActivate", function doQuestionBarActivate() {
|
|
161144
|
+
return function (_ref7) {
|
|
161145
|
+
var dispatch = _ref7.dispatch;
|
|
161146
|
+
dispatch({
|
|
161147
|
+
type: "ACTIVATE_QUESTIONS_TAB",
|
|
161148
|
+
payload: {
|
|
161149
|
+
questionsTabStatus: true
|
|
161150
|
+
}
|
|
161151
|
+
});
|
|
161152
|
+
};
|
|
161153
|
+
}), _defineProperty(_name$getReducer$doHa, "selectApplicationName", function selectApplicationName(state) {
|
|
161154
|
+
return state.questionsTab.applicationName;
|
|
161155
|
+
}), _defineProperty(_name$getReducer$doHa, "selectEmailPath", function selectEmailPath(state) {
|
|
161156
|
+
return state.questionsTab.emailPath;
|
|
161157
|
+
}), _defineProperty(_name$getReducer$doHa, "selectQuestionsTabStatus", function selectQuestionsTabStatus(state) {
|
|
161158
|
+
return state.questionsTab.questionsTabStatus;
|
|
161159
|
+
}), _defineProperty(_name$getReducer$doHa, "selectErrorList", function selectErrorList(state) {
|
|
161160
|
+
return state.questionsTab.errorList;
|
|
161161
|
+
}), _name$getReducer$doHa);
|
|
161162
|
+
|
|
161163
|
+
var plugin$d = {
|
|
161164
|
+
pluginName: "questionsTab",
|
|
161165
|
+
enabled: true,
|
|
161166
|
+
bundle: bundle$b,
|
|
161167
|
+
components: [{
|
|
161168
|
+
component: questionsTab$1,
|
|
161169
|
+
region: "right-sidebar-top",
|
|
161170
|
+
sortOrder: 100
|
|
161171
|
+
}]
|
|
161172
|
+
};
|
|
161173
|
+
|
|
161174
|
+
var bundle$c = {
|
|
160667
161175
|
name: "rasterIdent",
|
|
160668
161176
|
getReducer: function getReducer() {
|
|
160669
161177
|
var initialData = {
|
|
@@ -160754,10 +161262,10 @@ var bundle$b = {
|
|
|
160754
161262
|
}
|
|
160755
161263
|
};
|
|
160756
161264
|
|
|
160757
|
-
var plugin$
|
|
161265
|
+
var plugin$e = {
|
|
160758
161266
|
pluginName: 'Identify Raster',
|
|
160759
161267
|
enabled: true,
|
|
160760
|
-
bundle: bundle$
|
|
161268
|
+
bundle: bundle$c,
|
|
160761
161269
|
components: []
|
|
160762
161270
|
};
|
|
160763
161271
|
|
|
@@ -160805,7 +161313,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160805
161313
|
|
|
160806
161314
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
160807
161315
|
|
|
160808
|
-
var plugin$
|
|
161316
|
+
var plugin$f = {
|
|
160809
161317
|
pluginName: 'NorthButton',
|
|
160810
161318
|
enabled: true,
|
|
160811
161319
|
components: [{
|
|
@@ -160815,7 +161323,7 @@ var plugin$e = {
|
|
|
160815
161323
|
}]
|
|
160816
161324
|
};
|
|
160817
161325
|
|
|
160818
|
-
var bundle$
|
|
161326
|
+
var bundle$d = {
|
|
160819
161327
|
name: 'themeSwitcher',
|
|
160820
161328
|
getReducer: function getReducer() {
|
|
160821
161329
|
var initialData = {
|
|
@@ -160949,7 +161457,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160949
161457
|
return ThemeSwitcherButton;
|
|
160950
161458
|
}(React$1__default.Component);
|
|
160951
161459
|
|
|
160952
|
-
var plugin$
|
|
161460
|
+
var plugin$g = {
|
|
160953
161461
|
pluginName: 'Theme Switcher',
|
|
160954
161462
|
enabled: true,
|
|
160955
161463
|
components: [{
|
|
@@ -160957,7 +161465,7 @@ var plugin$f = {
|
|
|
160957
161465
|
region: 'left-sidebar-bottom',
|
|
160958
161466
|
sortOrder: 30
|
|
160959
161467
|
}],
|
|
160960
|
-
bundle: bundle$
|
|
161468
|
+
bundle: bundle$d
|
|
160961
161469
|
};
|
|
160962
161470
|
|
|
160963
161471
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -161976,7 +162484,7 @@ var treeViewDownload = {
|
|
|
161976
162484
|
}
|
|
161977
162485
|
};
|
|
161978
162486
|
|
|
161979
|
-
var plugin$
|
|
162487
|
+
var plugin$h = function plugin(controls) {
|
|
161980
162488
|
return {
|
|
161981
162489
|
pluginName: "LayerTree",
|
|
161982
162490
|
enabled: true,
|
|
@@ -161990,7 +162498,7 @@ var plugin$g = function plugin(controls) {
|
|
|
161990
162498
|
};
|
|
161991
162499
|
|
|
161992
162500
|
var geoJSON$3 = new GeoJSON();
|
|
161993
|
-
var bundle$
|
|
162501
|
+
var bundle$e = {
|
|
161994
162502
|
name: "vectorIdent",
|
|
161995
162503
|
getReducer: function getReducer() {
|
|
161996
162504
|
var initialData = {
|
|
@@ -162081,10 +162589,10 @@ var bundle$d = {
|
|
|
162081
162589
|
}
|
|
162082
162590
|
};
|
|
162083
162591
|
|
|
162084
|
-
var plugin$
|
|
162592
|
+
var plugin$i = {
|
|
162085
162593
|
pluginName: 'Identify Vector',
|
|
162086
162594
|
enabled: true,
|
|
162087
|
-
bundle: bundle$
|
|
162595
|
+
bundle: bundle$e,
|
|
162088
162596
|
components: []
|
|
162089
162597
|
};
|
|
162090
162598
|
|
|
@@ -162138,7 +162646,7 @@ function values$1(object) {
|
|
|
162138
162646
|
|
|
162139
162647
|
var values_1 = values$1;
|
|
162140
162648
|
|
|
162141
|
-
var bundle$
|
|
162649
|
+
var bundle$f = {
|
|
162142
162650
|
name: 'vectorSearch',
|
|
162143
162651
|
getReducer: function getReducer() {
|
|
162144
162652
|
var initialData = {
|
|
@@ -162258,10 +162766,10 @@ var bundle$e = {
|
|
|
162258
162766
|
}
|
|
162259
162767
|
};
|
|
162260
162768
|
|
|
162261
|
-
var plugin$
|
|
162769
|
+
var plugin$j = {
|
|
162262
162770
|
pluginName: 'Vector Search',
|
|
162263
162771
|
enabled: true,
|
|
162264
|
-
bundle: bundle$
|
|
162772
|
+
bundle: bundle$f,
|
|
162265
162773
|
components: []
|
|
162266
162774
|
};
|
|
162267
162775
|
|
|
@@ -162341,7 +162849,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162341
162849
|
|
|
162342
162850
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
162343
162851
|
|
|
162344
|
-
var plugin$
|
|
162852
|
+
var plugin$k = {
|
|
162345
162853
|
pluginName: 'ZoomButtons',
|
|
162346
162854
|
enabled: true,
|
|
162347
162855
|
components: [{
|
|
@@ -162398,7 +162906,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162398
162906
|
|
|
162399
162907
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
162400
162908
|
|
|
162401
|
-
var bundle$
|
|
162909
|
+
var bundle$g = {
|
|
162402
162910
|
name: "zoomLevel",
|
|
162403
162911
|
getReducer: function getReducer() {
|
|
162404
162912
|
var initialData = {
|
|
@@ -162438,10 +162946,10 @@ var bundle$f = {
|
|
|
162438
162946
|
}
|
|
162439
162947
|
};
|
|
162440
162948
|
|
|
162441
|
-
var plugin$
|
|
162949
|
+
var plugin$l = {
|
|
162442
162950
|
pluginName: 'zoomIndicator',
|
|
162443
162951
|
enabled: true,
|
|
162444
|
-
bundle: bundle$
|
|
162952
|
+
bundle: bundle$g,
|
|
162445
162953
|
components: [{
|
|
162446
162954
|
component: zoomIndicator$1,
|
|
162447
162955
|
region: 'right-sidebar-top',
|
|
@@ -162516,7 +163024,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162516
163024
|
|
|
162517
163025
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
162518
163026
|
|
|
162519
|
-
var bundle$
|
|
163027
|
+
var bundle$h = {
|
|
162520
163028
|
name: "zoomHome",
|
|
162521
163029
|
getReducer: function getReducer() {
|
|
162522
163030
|
var initialData = {
|
|
@@ -162587,10 +163095,10 @@ var bundle$g = {
|
|
|
162587
163095
|
}
|
|
162588
163096
|
};
|
|
162589
163097
|
|
|
162590
|
-
var plugin$
|
|
163098
|
+
var plugin$m = {
|
|
162591
163099
|
pluginName: "ZoomToInitial",
|
|
162592
163100
|
enabled: true,
|
|
162593
|
-
bundle: bundle$
|
|
163101
|
+
bundle: bundle$h,
|
|
162594
163102
|
components: [{
|
|
162595
163103
|
component: ZoomHomeButton$1,
|
|
162596
163104
|
region: "left-sidebar-top",
|
|
@@ -162662,7 +163170,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
162662
163170
|
var zoombox = createInteraction({
|
|
162663
163171
|
interaction: 'dragbox'
|
|
162664
163172
|
});
|
|
162665
|
-
var bundle$
|
|
163173
|
+
var bundle$i = {
|
|
162666
163174
|
name: 'zoombox',
|
|
162667
163175
|
getReducer: function getReducer() {
|
|
162668
163176
|
var initialData = {
|
|
@@ -162760,10 +163268,10 @@ var bundle$h = {
|
|
|
162760
163268
|
}
|
|
162761
163269
|
};
|
|
162762
163270
|
|
|
162763
|
-
var plugin$
|
|
163271
|
+
var plugin$n = {
|
|
162764
163272
|
pluginName: 'ZoomtoExtent',
|
|
162765
163273
|
enabled: true,
|
|
162766
|
-
bundle: bundle$
|
|
163274
|
+
bundle: bundle$i,
|
|
162767
163275
|
components: [{
|
|
162768
163276
|
component: ZoomToBoxButton$1,
|
|
162769
163277
|
region: 'basic-toolbar',
|
|
@@ -162815,7 +163323,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162815
163323
|
|
|
162816
163324
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
162817
163325
|
|
|
162818
|
-
var bundle$
|
|
163326
|
+
var bundle$j = {
|
|
162819
163327
|
name: "mapLoading",
|
|
162820
163328
|
getReducer: function getReducer() {
|
|
162821
163329
|
var initialData = {
|
|
@@ -162852,10 +163360,10 @@ var bundle$i = {
|
|
|
162852
163360
|
}
|
|
162853
163361
|
};
|
|
162854
163362
|
|
|
162855
|
-
var plugin$
|
|
163363
|
+
var plugin$o = {
|
|
162856
163364
|
pluginName: "MapLoadingIndicator",
|
|
162857
163365
|
enabled: true,
|
|
162858
|
-
bundle: bundle$
|
|
163366
|
+
bundle: bundle$j,
|
|
162859
163367
|
components: [{
|
|
162860
163368
|
component: MapLoadingIndicator$1,
|
|
162861
163369
|
region: "lower-right-toolbar",
|
|
@@ -162891,18 +163399,19 @@ exports.geocoder = plugin$6;
|
|
|
162891
163399
|
exports.geojsonIdent = plugin$7;
|
|
162892
163400
|
exports.identify = plugin$8;
|
|
162893
163401
|
exports.legend = plugin$9;
|
|
162894
|
-
exports.mapLoadingIndicator = plugin$
|
|
163402
|
+
exports.mapLoadingIndicator = plugin$o;
|
|
162895
163403
|
exports.measureTools = plugin$a;
|
|
162896
163404
|
exports.permalink = plugin$b;
|
|
162897
163405
|
exports.printMap = plugin$c;
|
|
162898
|
-
exports.
|
|
162899
|
-
exports.
|
|
162900
|
-
exports.
|
|
162901
|
-
exports.
|
|
163406
|
+
exports.questionsTab = plugin$d;
|
|
163407
|
+
exports.rasterIdent = plugin$e;
|
|
163408
|
+
exports.rotateNorth = plugin$f;
|
|
163409
|
+
exports.themeSwitcher = plugin$g;
|
|
163410
|
+
exports.treeView = plugin$h;
|
|
162902
163411
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
162903
|
-
exports.vectorIdent = plugin$
|
|
162904
|
-
exports.vectorSearch = plugin$
|
|
162905
|
-
exports.zoomHome = plugin$
|
|
162906
|
-
exports.zoomInOut = plugin$
|
|
162907
|
-
exports.zoomLevel = plugin$
|
|
162908
|
-
exports.zoomToBox = plugin$
|
|
163412
|
+
exports.vectorIdent = plugin$i;
|
|
163413
|
+
exports.vectorSearch = plugin$j;
|
|
163414
|
+
exports.zoomHome = plugin$m;
|
|
163415
|
+
exports.zoomInOut = plugin$k;
|
|
163416
|
+
exports.zoomLevel = plugin$l;
|
|
163417
|
+
exports.zoomToBox = plugin$n;
|