@corpsmap/corpsmap 3.1.7 → 3.1.8
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 +547 -39
- package/lib/prod.js +547 -39
- package/package.json +1 -1
- package/src/core-plugins/contact-form/bundle.js +243 -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/prod.js
CHANGED
|
@@ -106421,7 +106421,7 @@ var config = {
|
|
|
106421
106421
|
};
|
|
106422
106422
|
|
|
106423
106423
|
var name = "@corpsmap/corpsmap";
|
|
106424
|
-
var version$1 = "3.1.
|
|
106424
|
+
var version$1 = "3.1.8";
|
|
106425
106425
|
var description = "CorpsMap as React Components";
|
|
106426
106426
|
var main = "index.js";
|
|
106427
106427
|
var scripts = {
|
|
@@ -160577,7 +160577,514 @@ var plugin$c = {
|
|
|
160577
160577
|
}]
|
|
160578
160578
|
};
|
|
160579
160579
|
|
|
160580
|
-
var
|
|
160580
|
+
var QuestionsModal = /*#__PURE__*/function (_React$Component) {
|
|
160581
|
+
_inherits(QuestionsModal, _React$Component);
|
|
160582
|
+
|
|
160583
|
+
var _super = _createSuper(QuestionsModal);
|
|
160584
|
+
|
|
160585
|
+
function QuestionsModal(props) {
|
|
160586
|
+
var _this;
|
|
160587
|
+
|
|
160588
|
+
_classCallCheck(this, QuestionsModal);
|
|
160589
|
+
|
|
160590
|
+
_this = _super.call(this, props);
|
|
160591
|
+
_this.state = {
|
|
160592
|
+
firstName: " ",
|
|
160593
|
+
lastName: " ",
|
|
160594
|
+
Email: " ",
|
|
160595
|
+
selIssue: " ",
|
|
160596
|
+
addComments: " ",
|
|
160597
|
+
errors: {}
|
|
160598
|
+
};
|
|
160599
|
+
_this.close = _this.close.bind(_assertThisInitialized(_this));
|
|
160600
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
160601
|
+
_this.handleSubmit = _this.handleSubmit.bind(_assertThisInitialized(_this));
|
|
160602
|
+
return _this;
|
|
160603
|
+
}
|
|
160604
|
+
|
|
160605
|
+
_createClass(QuestionsModal, [{
|
|
160606
|
+
key: "close",
|
|
160607
|
+
value: function close() {
|
|
160608
|
+
var doModalClose = this.props.doModalClose;
|
|
160609
|
+
doModalClose();
|
|
160610
|
+
}
|
|
160611
|
+
}, {
|
|
160612
|
+
key: "handleChange",
|
|
160613
|
+
value: function handleChange(event) {
|
|
160614
|
+
switch (event.target.name) {
|
|
160615
|
+
case "FN":
|
|
160616
|
+
this.setState({
|
|
160617
|
+
firstName: event.target.value
|
|
160618
|
+
});
|
|
160619
|
+
break;
|
|
160620
|
+
|
|
160621
|
+
case "LN":
|
|
160622
|
+
this.setState({
|
|
160623
|
+
lastName: event.target.value
|
|
160624
|
+
});
|
|
160625
|
+
break;
|
|
160626
|
+
|
|
160627
|
+
case "EM":
|
|
160628
|
+
this.setState({
|
|
160629
|
+
Email: event.target.value
|
|
160630
|
+
});
|
|
160631
|
+
break;
|
|
160632
|
+
|
|
160633
|
+
case "SI":
|
|
160634
|
+
this.setState({
|
|
160635
|
+
selIssue: event.target.value
|
|
160636
|
+
});
|
|
160637
|
+
break;
|
|
160638
|
+
|
|
160639
|
+
case "AC":
|
|
160640
|
+
this.setState({
|
|
160641
|
+
addComments: event.target.value
|
|
160642
|
+
});
|
|
160643
|
+
break;
|
|
160644
|
+
}
|
|
160645
|
+
}
|
|
160646
|
+
}, {
|
|
160647
|
+
key: "handleSubmit",
|
|
160648
|
+
value: function handleSubmit(event) {
|
|
160649
|
+
event.preventDefault();
|
|
160650
|
+
var _this$props = this.props,
|
|
160651
|
+
doSetContactFormIssues = _this$props.doSetContactFormIssues,
|
|
160652
|
+
doHandleFormErrors = _this$props.doHandleFormErrors,
|
|
160653
|
+
doSubmitNotification = _this$props.doSubmitNotification,
|
|
160654
|
+
errorList = _this$props.errorList;
|
|
160655
|
+
var formOutputs = {
|
|
160656
|
+
first_Name: this.state.firstName,
|
|
160657
|
+
last_Name: this.state.lastName,
|
|
160658
|
+
e_mail: this.state.Email,
|
|
160659
|
+
sel_issue: this.state.selIssue,
|
|
160660
|
+
add_comments: this.state.addComments
|
|
160661
|
+
};
|
|
160662
|
+
var formIsValid = doHandleFormErrors(formOutputs);
|
|
160663
|
+
this.setState({
|
|
160664
|
+
errors: errorList
|
|
160665
|
+
});
|
|
160666
|
+
|
|
160667
|
+
if (formIsValid) {
|
|
160668
|
+
doSetContactFormIssues(formOutputs);
|
|
160669
|
+
doSubmitNotification(formIsValid);
|
|
160670
|
+
this.close();
|
|
160671
|
+
} else {
|
|
160672
|
+
doSubmitNotification(formIsValid);
|
|
160673
|
+
}
|
|
160674
|
+
}
|
|
160675
|
+
}, {
|
|
160676
|
+
key: "render",
|
|
160677
|
+
value: function render() {
|
|
160678
|
+
var theme = this.props.theme;
|
|
160679
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
160680
|
+
className: "cm-modal-header " + theme
|
|
160681
|
+
}, "Questions"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
160682
|
+
className: "cm-modal-body",
|
|
160683
|
+
style: {
|
|
160684
|
+
height: 290,
|
|
160685
|
+
top: 0,
|
|
160686
|
+
bottom: 0,
|
|
160687
|
+
left: 0,
|
|
160688
|
+
right: 0
|
|
160689
|
+
}
|
|
160690
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
160691
|
+
className: "cm-form-group"
|
|
160692
|
+
}, /*#__PURE__*/React$1__default.createElement("form", {
|
|
160693
|
+
onSubmit: this.handleSubmit
|
|
160694
|
+
}, /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("label", null, "First Name:", " ", /*#__PURE__*/React$1__default.createElement("input", {
|
|
160695
|
+
name: "FN",
|
|
160696
|
+
type: "text",
|
|
160697
|
+
value: this.state.firstName,
|
|
160698
|
+
onChange: this.handleChange
|
|
160699
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160700
|
+
style: {
|
|
160701
|
+
color: "red",
|
|
160702
|
+
position: "relative",
|
|
160703
|
+
left: 10
|
|
160704
|
+
}
|
|
160705
|
+
}, this.state.formIsValid ? null : this.state.errors["First_Name"])), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160706
|
+
style: {
|
|
160707
|
+
position: "relative",
|
|
160708
|
+
left: 20
|
|
160709
|
+
}
|
|
160710
|
+
}, "Last Name:", " ", /*#__PURE__*/React$1__default.createElement("input", {
|
|
160711
|
+
name: "LN",
|
|
160712
|
+
type: "text",
|
|
160713
|
+
value: this.state.LastName,
|
|
160714
|
+
onChange: this.handleChange
|
|
160715
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160716
|
+
style: {
|
|
160717
|
+
color: "red",
|
|
160718
|
+
position: "relative",
|
|
160719
|
+
left: 10
|
|
160720
|
+
}
|
|
160721
|
+
}, 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", {
|
|
160722
|
+
name: "EM",
|
|
160723
|
+
style: {
|
|
160724
|
+
width: 250
|
|
160725
|
+
},
|
|
160726
|
+
type: "text",
|
|
160727
|
+
value: this.state.Email,
|
|
160728
|
+
onChange: this.handleChange
|
|
160729
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160730
|
+
style: {
|
|
160731
|
+
color: "red",
|
|
160732
|
+
position: "relative",
|
|
160733
|
+
left: 10
|
|
160734
|
+
}
|
|
160735
|
+
}, 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", {
|
|
160736
|
+
name: "SI",
|
|
160737
|
+
style: {
|
|
160738
|
+
width: 150,
|
|
160739
|
+
textAlign: "center"
|
|
160740
|
+
},
|
|
160741
|
+
value: this.state.selIssue,
|
|
160742
|
+
onChange: this.handleChange
|
|
160743
|
+
}, /*#__PURE__*/React$1__default.createElement("option", {
|
|
160744
|
+
value: " "
|
|
160745
|
+
}, " "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160746
|
+
value: " Map Issue "
|
|
160747
|
+
}, " Map Issue "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160748
|
+
value: " Errors "
|
|
160749
|
+
}, " Errors"), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160750
|
+
value: " Bugs "
|
|
160751
|
+
}, " Bugs "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160752
|
+
value: " Requests "
|
|
160753
|
+
}, " Requests "), /*#__PURE__*/React$1__default.createElement("option", {
|
|
160754
|
+
value: " Other"
|
|
160755
|
+
}, " Other ")), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160756
|
+
style: {
|
|
160757
|
+
color: "red",
|
|
160758
|
+
position: "relative",
|
|
160759
|
+
left: 10
|
|
160760
|
+
}
|
|
160761
|
+
}, 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", {
|
|
160762
|
+
name: "AC",
|
|
160763
|
+
style: {
|
|
160764
|
+
height: 120,
|
|
160765
|
+
width: 300
|
|
160766
|
+
},
|
|
160767
|
+
value: this.state.addComments,
|
|
160768
|
+
onChange: this.handleChange
|
|
160769
|
+
}), /*#__PURE__*/React$1__default.createElement("label", {
|
|
160770
|
+
style: {
|
|
160771
|
+
color: "red",
|
|
160772
|
+
position: "relative",
|
|
160773
|
+
left: 10
|
|
160774
|
+
}
|
|
160775
|
+
}, this.state.formIsValid ? null : this.state.errors["add_comments"]))))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
160776
|
+
className: "cm-modal-footer"
|
|
160777
|
+
}, /*#__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", {
|
|
160778
|
+
type: "submit",
|
|
160779
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
160780
|
+
onClick: this.handleSubmit
|
|
160781
|
+
}, "Submit"), /*#__PURE__*/React$1__default.createElement("button", {
|
|
160782
|
+
style: {
|
|
160783
|
+
textAlign: "left"
|
|
160784
|
+
},
|
|
160785
|
+
type: "Close",
|
|
160786
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
160787
|
+
onClick: this.close
|
|
160788
|
+
}, "Close")));
|
|
160789
|
+
}
|
|
160790
|
+
}]);
|
|
160791
|
+
|
|
160792
|
+
return QuestionsModal;
|
|
160793
|
+
}(React$1__default.Component);
|
|
160794
|
+
|
|
160795
|
+
var QuestionModal = connect("selectTheme", "doModalClose", "doSubmitNotification", "doSetContactFormIssues", "doHandleFormErrors", "selectErrorList", QuestionsModal);
|
|
160796
|
+
|
|
160797
|
+
var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
160798
|
+
_inherits(questionsTab, _React$Component);
|
|
160799
|
+
|
|
160800
|
+
var _super = _createSuper(questionsTab);
|
|
160801
|
+
|
|
160802
|
+
function questionsTab(props) {
|
|
160803
|
+
var _this;
|
|
160804
|
+
|
|
160805
|
+
_classCallCheck(this, questionsTab);
|
|
160806
|
+
|
|
160807
|
+
_this = _super.call(this, props);
|
|
160808
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
160809
|
+
return _this;
|
|
160810
|
+
}
|
|
160811
|
+
|
|
160812
|
+
_createClass(questionsTab, [{
|
|
160813
|
+
key: "handleClick",
|
|
160814
|
+
value: function handleClick() {
|
|
160815
|
+
var doModalOpen = this.props.doModalOpen;
|
|
160816
|
+
doModalOpen({
|
|
160817
|
+
children: [QuestionModal],
|
|
160818
|
+
options: {},
|
|
160819
|
+
openedBy: "questionsTab"
|
|
160820
|
+
});
|
|
160821
|
+
}
|
|
160822
|
+
}, {
|
|
160823
|
+
key: "render",
|
|
160824
|
+
value: function render() {
|
|
160825
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
160826
|
+
iconClass: "mdi mdi-help-circle",
|
|
160827
|
+
label: "Contact Us",
|
|
160828
|
+
title: "Contact Us",
|
|
160829
|
+
onClick: this.handleClick
|
|
160830
|
+
});
|
|
160831
|
+
}
|
|
160832
|
+
}]);
|
|
160833
|
+
|
|
160834
|
+
return questionsTab;
|
|
160835
|
+
}(React$1__default.Component);
|
|
160836
|
+
|
|
160837
|
+
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
160838
|
+
|
|
160839
|
+
var _name$getReducer$doHa;
|
|
160840
|
+
|
|
160841
|
+
var bundle$b = (_name$getReducer$doHa = {
|
|
160842
|
+
name: "questionsTab",
|
|
160843
|
+
getReducer: function getReducer() {
|
|
160844
|
+
var initialData = {
|
|
160845
|
+
questionsTabStatus: false,
|
|
160846
|
+
errorList: {},
|
|
160847
|
+
applicationName: "",
|
|
160848
|
+
emailPath: ""
|
|
160849
|
+
};
|
|
160850
|
+
return function () {
|
|
160851
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
160852
|
+
|
|
160853
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
160854
|
+
type = _ref.type,
|
|
160855
|
+
payload = _ref.payload;
|
|
160856
|
+
|
|
160857
|
+
switch (type) {
|
|
160858
|
+
case "PARAMETERS_SET":
|
|
160859
|
+
case "FORM_SUBMITTED":
|
|
160860
|
+
case "FORM_ERROR":
|
|
160861
|
+
case "API_POST_SUCCESS":
|
|
160862
|
+
case "API_POST_ERROR":
|
|
160863
|
+
case "ACTIVATE_QUESTIONS_TAB":
|
|
160864
|
+
case "DEACTIVATE_QUESTIONS_TAB":
|
|
160865
|
+
case "VALIDATION_COMPLETE":
|
|
160866
|
+
return Object.assign({}, state, payload);
|
|
160867
|
+
|
|
160868
|
+
default:
|
|
160869
|
+
return state;
|
|
160870
|
+
}
|
|
160871
|
+
};
|
|
160872
|
+
},
|
|
160873
|
+
doHandleFormErrors: function doHandleFormErrors(outputs) {
|
|
160874
|
+
return function (_ref2) {
|
|
160875
|
+
var dispatch = _ref2.dispatch,
|
|
160876
|
+
store = _ref2.store;
|
|
160877
|
+
var formErrors = store.selectErrorList();
|
|
160878
|
+
var formValidation = true;
|
|
160879
|
+
var regex = /[a-zA-Z]/g; //First Name
|
|
160880
|
+
|
|
160881
|
+
if (outputs.first_Name == " ") {
|
|
160882
|
+
formValidation = false;
|
|
160883
|
+
formErrors["First_Name"] = " *Field Cannot be empty ";
|
|
160884
|
+
}
|
|
160885
|
+
|
|
160886
|
+
if (typeof outputs.first_Name !== "undefined") {
|
|
160887
|
+
if (!outputs.first_Name.match(regex)) {
|
|
160888
|
+
formValidation = false;
|
|
160889
|
+
formErrors["First_Name"] = " *Only letters ";
|
|
160890
|
+
}
|
|
160891
|
+
} //Last Name
|
|
160892
|
+
|
|
160893
|
+
|
|
160894
|
+
if (outputs.last_Name == " ") {
|
|
160895
|
+
formValidation = false;
|
|
160896
|
+
formErrors["Last_Name"] = " *Field Cannot be empty ";
|
|
160897
|
+
}
|
|
160898
|
+
|
|
160899
|
+
if (typeof outputs.last_Name !== "undefined") {
|
|
160900
|
+
if (!outputs.last_Name.match(regex)) {
|
|
160901
|
+
formValidation = false;
|
|
160902
|
+
formErrors["Last_Name"] = " *Only letters ";
|
|
160903
|
+
}
|
|
160904
|
+
} //Email
|
|
160905
|
+
|
|
160906
|
+
|
|
160907
|
+
if (outputs.e_mail == " ") {
|
|
160908
|
+
formValidation = false;
|
|
160909
|
+
formErrors["email"] = " *Field Cannot be empty ";
|
|
160910
|
+
}
|
|
160911
|
+
|
|
160912
|
+
if (typeof outputs.e_mail !== "undefined") {
|
|
160913
|
+
var lastAtPos = outputs.e_mail.lastIndexOf("@");
|
|
160914
|
+
var lastDotPos = outputs.e_mail.lastIndexOf(".");
|
|
160915
|
+
|
|
160916
|
+
if (!(lastAtPos < lastDotPos && lastAtPos > 0 && outputs.e_mail.indexOf("@@") == -1 && lastDotPos > 2 && outputs.e_mail.length - lastDotPos > 2)) {
|
|
160917
|
+
formValidation = false;
|
|
160918
|
+
formErrors["email"] = " *Email is not valid ";
|
|
160919
|
+
}
|
|
160920
|
+
} // Select issue
|
|
160921
|
+
|
|
160922
|
+
|
|
160923
|
+
if (outputs.sel_issue == " ") {
|
|
160924
|
+
formValidation = false;
|
|
160925
|
+
formErrors["issue"] = " *Please select an issue ";
|
|
160926
|
+
} // Breif Description
|
|
160927
|
+
|
|
160928
|
+
|
|
160929
|
+
if (outputs.add_comments == " ") {
|
|
160930
|
+
formValidation = false;
|
|
160931
|
+
formErrors["add_comments"] = " *Please provide a breif description of issue ";
|
|
160932
|
+
}
|
|
160933
|
+
|
|
160934
|
+
dispatch({
|
|
160935
|
+
type: "VALIDATION_COMPLETE",
|
|
160936
|
+
payload: {
|
|
160937
|
+
errorList: formErrors
|
|
160938
|
+
}
|
|
160939
|
+
});
|
|
160940
|
+
return formValidation;
|
|
160941
|
+
};
|
|
160942
|
+
},
|
|
160943
|
+
doSetContactFormConfiguration: function doSetContactFormConfiguration(fudsFormParams) {
|
|
160944
|
+
return function (_ref3) {
|
|
160945
|
+
var dispatch = _ref3.dispatch,
|
|
160946
|
+
store = _ref3.store;
|
|
160947
|
+
var app_name = fudsFormParams.application_name;
|
|
160948
|
+
var app_path = fudsFormParams.email_url;
|
|
160949
|
+
dispatch({
|
|
160950
|
+
type: "PARAMETERS_SET",
|
|
160951
|
+
payload: {
|
|
160952
|
+
applicationName: app_name,
|
|
160953
|
+
emailPath: app_path
|
|
160954
|
+
}
|
|
160955
|
+
});
|
|
160956
|
+
};
|
|
160957
|
+
},
|
|
160958
|
+
doSetContactFormIssues: function doSetContactFormIssues(issues) {
|
|
160959
|
+
return function (_ref4) {
|
|
160960
|
+
var dispatch = _ref4.dispatch,
|
|
160961
|
+
apiPost = _ref4.apiPost;
|
|
160962
|
+
console.log(issues); // Here we want to POST the contents of the Form
|
|
160963
|
+
// (path, payload, callback)
|
|
160964
|
+
|
|
160965
|
+
var path = store.selectEmailPath();
|
|
160966
|
+
var params = {
|
|
160967
|
+
application_name: store.selectApplicationName(),
|
|
160968
|
+
first_name: issues.first_Name,
|
|
160969
|
+
last_name: issues.last_Name,
|
|
160970
|
+
email_address: issues.e_mail,
|
|
160971
|
+
category: issues.sel_issue,
|
|
160972
|
+
comments: issues.add_comments
|
|
160973
|
+
};
|
|
160974
|
+
apiPost(path, params, function (err, response, body) {
|
|
160975
|
+
if (err || response.statusCode !== 200) {
|
|
160976
|
+
console.log(err, response);
|
|
160977
|
+
dispatch({
|
|
160978
|
+
type: "API_POST_ERROR",
|
|
160979
|
+
payload: {
|
|
160980
|
+
notification: {
|
|
160981
|
+
message: "api-error",
|
|
160982
|
+
level: "danger"
|
|
160983
|
+
}
|
|
160984
|
+
}
|
|
160985
|
+
});
|
|
160986
|
+
} else {
|
|
160987
|
+
dispatch({
|
|
160988
|
+
type: "API_POST_SUCCESS",
|
|
160989
|
+
payload: {
|
|
160990
|
+
notification: {
|
|
160991
|
+
message: "api-success",
|
|
160992
|
+
level: "success"
|
|
160993
|
+
}
|
|
160994
|
+
}
|
|
160995
|
+
});
|
|
160996
|
+
console.log(response);
|
|
160997
|
+
}
|
|
160998
|
+
});
|
|
160999
|
+
};
|
|
161000
|
+
},
|
|
161001
|
+
doSubmitNotification: function doSubmitNotification(bool) {
|
|
161002
|
+
return function (_ref5) {
|
|
161003
|
+
var dispatch = _ref5.dispatch,
|
|
161004
|
+
store = _ref5.store;
|
|
161005
|
+
|
|
161006
|
+
if (bool) {
|
|
161007
|
+
store.doNotificationsFire({
|
|
161008
|
+
title: "Form Submitted",
|
|
161009
|
+
message: "Form Submitted",
|
|
161010
|
+
level: "success"
|
|
161011
|
+
});
|
|
161012
|
+
dispatch({
|
|
161013
|
+
type: "FORM_SUBMITTED",
|
|
161014
|
+
payload: {}
|
|
161015
|
+
});
|
|
161016
|
+
} else {
|
|
161017
|
+
store.doNotificationsFire({
|
|
161018
|
+
title: "Form Error",
|
|
161019
|
+
message: "Form Has Errors",
|
|
161020
|
+
level: "danger"
|
|
161021
|
+
});
|
|
161022
|
+
dispatch({
|
|
161023
|
+
type: "FORM_ERROR",
|
|
161024
|
+
payload: {}
|
|
161025
|
+
});
|
|
161026
|
+
}
|
|
161027
|
+
};
|
|
161028
|
+
}
|
|
161029
|
+
}, _defineProperty(_name$getReducer$doHa, "doSubmitNotification", function doSubmitNotification(bool) {
|
|
161030
|
+
return function (_ref6) {
|
|
161031
|
+
var dispatch = _ref6.dispatch,
|
|
161032
|
+
store = _ref6.store;
|
|
161033
|
+
|
|
161034
|
+
if (bool) {
|
|
161035
|
+
store.doNotificationsFire({
|
|
161036
|
+
title: "Form Submitted",
|
|
161037
|
+
message: "Form Submitted",
|
|
161038
|
+
level: "success"
|
|
161039
|
+
});
|
|
161040
|
+
dispatch({
|
|
161041
|
+
type: "FORM_SUBMITTED",
|
|
161042
|
+
payload: {}
|
|
161043
|
+
});
|
|
161044
|
+
} else {
|
|
161045
|
+
store.doNotificationsFire({
|
|
161046
|
+
title: "Form Error",
|
|
161047
|
+
message: "Form Has Errors",
|
|
161048
|
+
level: "danger"
|
|
161049
|
+
});
|
|
161050
|
+
dispatch({
|
|
161051
|
+
type: "FORM_ERROR",
|
|
161052
|
+
payload: {}
|
|
161053
|
+
});
|
|
161054
|
+
}
|
|
161055
|
+
};
|
|
161056
|
+
}), _defineProperty(_name$getReducer$doHa, "doQuestionBarActivate", function doQuestionBarActivate() {
|
|
161057
|
+
return function (_ref7) {
|
|
161058
|
+
var dispatch = _ref7.dispatch;
|
|
161059
|
+
dispatch({
|
|
161060
|
+
type: "ACTIVATE_QUESTIONS_TAB",
|
|
161061
|
+
payload: {
|
|
161062
|
+
questionsTabStatus: true
|
|
161063
|
+
}
|
|
161064
|
+
});
|
|
161065
|
+
};
|
|
161066
|
+
}), _defineProperty(_name$getReducer$doHa, "selectApplicationName", function selectApplicationName(state) {
|
|
161067
|
+
return state.questionsTab.applicationName;
|
|
161068
|
+
}), _defineProperty(_name$getReducer$doHa, "selectEmailPath", function selectEmailPath(state) {
|
|
161069
|
+
return state.questionsTab.emailPath;
|
|
161070
|
+
}), _defineProperty(_name$getReducer$doHa, "selectQuestionsTabStatus", function selectQuestionsTabStatus(state) {
|
|
161071
|
+
return state.questionsTab.questionsTabStatus;
|
|
161072
|
+
}), _defineProperty(_name$getReducer$doHa, "selectErrorList", function selectErrorList(state) {
|
|
161073
|
+
return state.questionsTab.errorList;
|
|
161074
|
+
}), _name$getReducer$doHa);
|
|
161075
|
+
|
|
161076
|
+
var plugin$d = {
|
|
161077
|
+
pluginName: "questionsTab",
|
|
161078
|
+
enabled: true,
|
|
161079
|
+
bundle: bundle$b,
|
|
161080
|
+
components: [{
|
|
161081
|
+
component: questionsTab$1,
|
|
161082
|
+
region: "right-sidebar-top",
|
|
161083
|
+
sortOrder: 100
|
|
161084
|
+
}]
|
|
161085
|
+
};
|
|
161086
|
+
|
|
161087
|
+
var bundle$c = {
|
|
160581
161088
|
name: "rasterIdent",
|
|
160582
161089
|
getReducer: function getReducer() {
|
|
160583
161090
|
var initialData = {
|
|
@@ -160668,10 +161175,10 @@ var bundle$b = {
|
|
|
160668
161175
|
}
|
|
160669
161176
|
};
|
|
160670
161177
|
|
|
160671
|
-
var plugin$
|
|
161178
|
+
var plugin$e = {
|
|
160672
161179
|
pluginName: 'Identify Raster',
|
|
160673
161180
|
enabled: true,
|
|
160674
|
-
bundle: bundle$
|
|
161181
|
+
bundle: bundle$c,
|
|
160675
161182
|
components: []
|
|
160676
161183
|
};
|
|
160677
161184
|
|
|
@@ -160719,7 +161226,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160719
161226
|
|
|
160720
161227
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
160721
161228
|
|
|
160722
|
-
var plugin$
|
|
161229
|
+
var plugin$f = {
|
|
160723
161230
|
pluginName: 'NorthButton',
|
|
160724
161231
|
enabled: true,
|
|
160725
161232
|
components: [{
|
|
@@ -160729,7 +161236,7 @@ var plugin$e = {
|
|
|
160729
161236
|
}]
|
|
160730
161237
|
};
|
|
160731
161238
|
|
|
160732
|
-
var bundle$
|
|
161239
|
+
var bundle$d = {
|
|
160733
161240
|
name: 'themeSwitcher',
|
|
160734
161241
|
getReducer: function getReducer() {
|
|
160735
161242
|
var initialData = {
|
|
@@ -160863,7 +161370,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160863
161370
|
return ThemeSwitcherButton;
|
|
160864
161371
|
}(React$1__default.Component);
|
|
160865
161372
|
|
|
160866
|
-
var plugin$
|
|
161373
|
+
var plugin$g = {
|
|
160867
161374
|
pluginName: 'Theme Switcher',
|
|
160868
161375
|
enabled: true,
|
|
160869
161376
|
components: [{
|
|
@@ -160871,7 +161378,7 @@ var plugin$f = {
|
|
|
160871
161378
|
region: 'left-sidebar-bottom',
|
|
160872
161379
|
sortOrder: 30
|
|
160873
161380
|
}],
|
|
160874
|
-
bundle: bundle$
|
|
161381
|
+
bundle: bundle$d
|
|
160875
161382
|
};
|
|
160876
161383
|
|
|
160877
161384
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -161890,7 +162397,7 @@ var treeViewDownload = {
|
|
|
161890
162397
|
}
|
|
161891
162398
|
};
|
|
161892
162399
|
|
|
161893
|
-
var plugin$
|
|
162400
|
+
var plugin$h = function plugin(controls) {
|
|
161894
162401
|
return {
|
|
161895
162402
|
pluginName: "LayerTree",
|
|
161896
162403
|
enabled: true,
|
|
@@ -161904,7 +162411,7 @@ var plugin$g = function plugin(controls) {
|
|
|
161904
162411
|
};
|
|
161905
162412
|
|
|
161906
162413
|
var geoJSON$3 = new GeoJSON();
|
|
161907
|
-
var bundle$
|
|
162414
|
+
var bundle$e = {
|
|
161908
162415
|
name: "vectorIdent",
|
|
161909
162416
|
getReducer: function getReducer() {
|
|
161910
162417
|
var initialData = {
|
|
@@ -161995,10 +162502,10 @@ var bundle$d = {
|
|
|
161995
162502
|
}
|
|
161996
162503
|
};
|
|
161997
162504
|
|
|
161998
|
-
var plugin$
|
|
162505
|
+
var plugin$i = {
|
|
161999
162506
|
pluginName: 'Identify Vector',
|
|
162000
162507
|
enabled: true,
|
|
162001
|
-
bundle: bundle$
|
|
162508
|
+
bundle: bundle$e,
|
|
162002
162509
|
components: []
|
|
162003
162510
|
};
|
|
162004
162511
|
|
|
@@ -162052,7 +162559,7 @@ function values$1(object) {
|
|
|
162052
162559
|
|
|
162053
162560
|
var values_1 = values$1;
|
|
162054
162561
|
|
|
162055
|
-
var bundle$
|
|
162562
|
+
var bundle$f = {
|
|
162056
162563
|
name: 'vectorSearch',
|
|
162057
162564
|
getReducer: function getReducer() {
|
|
162058
162565
|
var initialData = {
|
|
@@ -162172,10 +162679,10 @@ var bundle$e = {
|
|
|
162172
162679
|
}
|
|
162173
162680
|
};
|
|
162174
162681
|
|
|
162175
|
-
var plugin$
|
|
162682
|
+
var plugin$j = {
|
|
162176
162683
|
pluginName: 'Vector Search',
|
|
162177
162684
|
enabled: true,
|
|
162178
|
-
bundle: bundle$
|
|
162685
|
+
bundle: bundle$f,
|
|
162179
162686
|
components: []
|
|
162180
162687
|
};
|
|
162181
162688
|
|
|
@@ -162255,7 +162762,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162255
162762
|
|
|
162256
162763
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
162257
162764
|
|
|
162258
|
-
var plugin$
|
|
162765
|
+
var plugin$k = {
|
|
162259
162766
|
pluginName: 'ZoomButtons',
|
|
162260
162767
|
enabled: true,
|
|
162261
162768
|
components: [{
|
|
@@ -162312,7 +162819,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162312
162819
|
|
|
162313
162820
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
162314
162821
|
|
|
162315
|
-
var bundle$
|
|
162822
|
+
var bundle$g = {
|
|
162316
162823
|
name: "zoomLevel",
|
|
162317
162824
|
getReducer: function getReducer() {
|
|
162318
162825
|
var initialData = {
|
|
@@ -162352,10 +162859,10 @@ var bundle$f = {
|
|
|
162352
162859
|
}
|
|
162353
162860
|
};
|
|
162354
162861
|
|
|
162355
|
-
var plugin$
|
|
162862
|
+
var plugin$l = {
|
|
162356
162863
|
pluginName: 'zoomIndicator',
|
|
162357
162864
|
enabled: true,
|
|
162358
|
-
bundle: bundle$
|
|
162865
|
+
bundle: bundle$g,
|
|
162359
162866
|
components: [{
|
|
162360
162867
|
component: zoomIndicator$1,
|
|
162361
162868
|
region: 'right-sidebar-top',
|
|
@@ -162430,7 +162937,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162430
162937
|
|
|
162431
162938
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
162432
162939
|
|
|
162433
|
-
var bundle$
|
|
162940
|
+
var bundle$h = {
|
|
162434
162941
|
name: "zoomHome",
|
|
162435
162942
|
getReducer: function getReducer() {
|
|
162436
162943
|
var initialData = {
|
|
@@ -162501,10 +163008,10 @@ var bundle$g = {
|
|
|
162501
163008
|
}
|
|
162502
163009
|
};
|
|
162503
163010
|
|
|
162504
|
-
var plugin$
|
|
163011
|
+
var plugin$m = {
|
|
162505
163012
|
pluginName: "ZoomToInitial",
|
|
162506
163013
|
enabled: true,
|
|
162507
|
-
bundle: bundle$
|
|
163014
|
+
bundle: bundle$h,
|
|
162508
163015
|
components: [{
|
|
162509
163016
|
component: ZoomHomeButton$1,
|
|
162510
163017
|
region: "left-sidebar-top",
|
|
@@ -162576,7 +163083,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
162576
163083
|
var zoombox = createInteraction({
|
|
162577
163084
|
interaction: 'dragbox'
|
|
162578
163085
|
});
|
|
162579
|
-
var bundle$
|
|
163086
|
+
var bundle$i = {
|
|
162580
163087
|
name: 'zoombox',
|
|
162581
163088
|
getReducer: function getReducer() {
|
|
162582
163089
|
var initialData = {
|
|
@@ -162674,10 +163181,10 @@ var bundle$h = {
|
|
|
162674
163181
|
}
|
|
162675
163182
|
};
|
|
162676
163183
|
|
|
162677
|
-
var plugin$
|
|
163184
|
+
var plugin$n = {
|
|
162678
163185
|
pluginName: 'ZoomtoExtent',
|
|
162679
163186
|
enabled: true,
|
|
162680
|
-
bundle: bundle$
|
|
163187
|
+
bundle: bundle$i,
|
|
162681
163188
|
components: [{
|
|
162682
163189
|
component: ZoomToBoxButton$1,
|
|
162683
163190
|
region: 'basic-toolbar',
|
|
@@ -162729,7 +163236,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162729
163236
|
|
|
162730
163237
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
162731
163238
|
|
|
162732
|
-
var bundle$
|
|
163239
|
+
var bundle$j = {
|
|
162733
163240
|
name: "mapLoading",
|
|
162734
163241
|
getReducer: function getReducer() {
|
|
162735
163242
|
var initialData = {
|
|
@@ -162766,10 +163273,10 @@ var bundle$i = {
|
|
|
162766
163273
|
}
|
|
162767
163274
|
};
|
|
162768
163275
|
|
|
162769
|
-
var plugin$
|
|
163276
|
+
var plugin$o = {
|
|
162770
163277
|
pluginName: "MapLoadingIndicator",
|
|
162771
163278
|
enabled: true,
|
|
162772
|
-
bundle: bundle$
|
|
163279
|
+
bundle: bundle$j,
|
|
162773
163280
|
components: [{
|
|
162774
163281
|
component: MapLoadingIndicator$1,
|
|
162775
163282
|
region: "lower-right-toolbar",
|
|
@@ -162805,18 +163312,19 @@ exports.geocoder = plugin$6;
|
|
|
162805
163312
|
exports.geojsonIdent = plugin$7;
|
|
162806
163313
|
exports.identify = plugin$8;
|
|
162807
163314
|
exports.legend = plugin$9;
|
|
162808
|
-
exports.mapLoadingIndicator = plugin$
|
|
163315
|
+
exports.mapLoadingIndicator = plugin$o;
|
|
162809
163316
|
exports.measureTools = plugin$a;
|
|
162810
163317
|
exports.permalink = plugin$b;
|
|
162811
163318
|
exports.printMap = plugin$c;
|
|
162812
|
-
exports.
|
|
162813
|
-
exports.
|
|
162814
|
-
exports.
|
|
162815
|
-
exports.
|
|
163319
|
+
exports.questionsTab = plugin$d;
|
|
163320
|
+
exports.rasterIdent = plugin$e;
|
|
163321
|
+
exports.rotateNorth = plugin$f;
|
|
163322
|
+
exports.themeSwitcher = plugin$g;
|
|
163323
|
+
exports.treeView = plugin$h;
|
|
162816
163324
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
162817
|
-
exports.vectorIdent = plugin$
|
|
162818
|
-
exports.vectorSearch = plugin$
|
|
162819
|
-
exports.zoomHome = plugin$
|
|
162820
|
-
exports.zoomInOut = plugin$
|
|
162821
|
-
exports.zoomLevel = plugin$
|
|
162822
|
-
exports.zoomToBox = plugin$
|
|
163325
|
+
exports.vectorIdent = plugin$i;
|
|
163326
|
+
exports.vectorSearch = plugin$j;
|
|
163327
|
+
exports.zoomHome = plugin$m;
|
|
163328
|
+
exports.zoomInOut = plugin$k;
|
|
163329
|
+
exports.zoomLevel = plugin$l;
|
|
163330
|
+
exports.zoomToBox = plugin$n;
|