@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/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.9";
|
|
106425
106425
|
var description = "CorpsMap as React Components";
|
|
106426
106426
|
var main = "index.js";
|
|
106427
106427
|
var scripts = {
|
|
@@ -160577,7 +160577,515 @@ 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
|
+
store = _ref4.store,
|
|
160962
|
+
apiPost = _ref4.apiPost;
|
|
160963
|
+
console.log(issues); // Here we want to POST the contents of the Form
|
|
160964
|
+
// (path, payload, callback)
|
|
160965
|
+
|
|
160966
|
+
var path = store.selectEmailPath();
|
|
160967
|
+
var params = {
|
|
160968
|
+
application_name: store.selectApplicationName(),
|
|
160969
|
+
first_name: issues.first_Name,
|
|
160970
|
+
last_name: issues.last_Name,
|
|
160971
|
+
email_address: issues.e_mail,
|
|
160972
|
+
category: issues.sel_issue,
|
|
160973
|
+
comments: issues.add_comments
|
|
160974
|
+
};
|
|
160975
|
+
apiPost(path, params, function (err, response, body) {
|
|
160976
|
+
if (err || response.statusCode !== 200) {
|
|
160977
|
+
console.log(err, response);
|
|
160978
|
+
dispatch({
|
|
160979
|
+
type: "API_POST_ERROR",
|
|
160980
|
+
payload: {
|
|
160981
|
+
notification: {
|
|
160982
|
+
message: "api-error",
|
|
160983
|
+
level: "danger"
|
|
160984
|
+
}
|
|
160985
|
+
}
|
|
160986
|
+
});
|
|
160987
|
+
} else {
|
|
160988
|
+
dispatch({
|
|
160989
|
+
type: "API_POST_SUCCESS",
|
|
160990
|
+
payload: {
|
|
160991
|
+
notification: {
|
|
160992
|
+
message: "api-success",
|
|
160993
|
+
level: "success"
|
|
160994
|
+
}
|
|
160995
|
+
}
|
|
160996
|
+
});
|
|
160997
|
+
console.log(response);
|
|
160998
|
+
}
|
|
160999
|
+
});
|
|
161000
|
+
};
|
|
161001
|
+
},
|
|
161002
|
+
doSubmitNotification: function doSubmitNotification(bool) {
|
|
161003
|
+
return function (_ref5) {
|
|
161004
|
+
var dispatch = _ref5.dispatch,
|
|
161005
|
+
store = _ref5.store;
|
|
161006
|
+
|
|
161007
|
+
if (bool) {
|
|
161008
|
+
store.doNotificationsFire({
|
|
161009
|
+
title: "Form Submitted",
|
|
161010
|
+
message: "Form Submitted",
|
|
161011
|
+
level: "success"
|
|
161012
|
+
});
|
|
161013
|
+
dispatch({
|
|
161014
|
+
type: "FORM_SUBMITTED",
|
|
161015
|
+
payload: {}
|
|
161016
|
+
});
|
|
161017
|
+
} else {
|
|
161018
|
+
store.doNotificationsFire({
|
|
161019
|
+
title: "Form Error",
|
|
161020
|
+
message: "Form Has Errors",
|
|
161021
|
+
level: "danger"
|
|
161022
|
+
});
|
|
161023
|
+
dispatch({
|
|
161024
|
+
type: "FORM_ERROR",
|
|
161025
|
+
payload: {}
|
|
161026
|
+
});
|
|
161027
|
+
}
|
|
161028
|
+
};
|
|
161029
|
+
}
|
|
161030
|
+
}, _defineProperty(_name$getReducer$doHa, "doSubmitNotification", function doSubmitNotification(bool) {
|
|
161031
|
+
return function (_ref6) {
|
|
161032
|
+
var dispatch = _ref6.dispatch,
|
|
161033
|
+
store = _ref6.store;
|
|
161034
|
+
|
|
161035
|
+
if (bool) {
|
|
161036
|
+
store.doNotificationsFire({
|
|
161037
|
+
title: "Form Submitted",
|
|
161038
|
+
message: "Form Submitted",
|
|
161039
|
+
level: "success"
|
|
161040
|
+
});
|
|
161041
|
+
dispatch({
|
|
161042
|
+
type: "FORM_SUBMITTED",
|
|
161043
|
+
payload: {}
|
|
161044
|
+
});
|
|
161045
|
+
} else {
|
|
161046
|
+
store.doNotificationsFire({
|
|
161047
|
+
title: "Form Error",
|
|
161048
|
+
message: "Form Has Errors",
|
|
161049
|
+
level: "danger"
|
|
161050
|
+
});
|
|
161051
|
+
dispatch({
|
|
161052
|
+
type: "FORM_ERROR",
|
|
161053
|
+
payload: {}
|
|
161054
|
+
});
|
|
161055
|
+
}
|
|
161056
|
+
};
|
|
161057
|
+
}), _defineProperty(_name$getReducer$doHa, "doQuestionBarActivate", function doQuestionBarActivate() {
|
|
161058
|
+
return function (_ref7) {
|
|
161059
|
+
var dispatch = _ref7.dispatch;
|
|
161060
|
+
dispatch({
|
|
161061
|
+
type: "ACTIVATE_QUESTIONS_TAB",
|
|
161062
|
+
payload: {
|
|
161063
|
+
questionsTabStatus: true
|
|
161064
|
+
}
|
|
161065
|
+
});
|
|
161066
|
+
};
|
|
161067
|
+
}), _defineProperty(_name$getReducer$doHa, "selectApplicationName", function selectApplicationName(state) {
|
|
161068
|
+
return state.questionsTab.applicationName;
|
|
161069
|
+
}), _defineProperty(_name$getReducer$doHa, "selectEmailPath", function selectEmailPath(state) {
|
|
161070
|
+
return state.questionsTab.emailPath;
|
|
161071
|
+
}), _defineProperty(_name$getReducer$doHa, "selectQuestionsTabStatus", function selectQuestionsTabStatus(state) {
|
|
161072
|
+
return state.questionsTab.questionsTabStatus;
|
|
161073
|
+
}), _defineProperty(_name$getReducer$doHa, "selectErrorList", function selectErrorList(state) {
|
|
161074
|
+
return state.questionsTab.errorList;
|
|
161075
|
+
}), _name$getReducer$doHa);
|
|
161076
|
+
|
|
161077
|
+
var plugin$d = {
|
|
161078
|
+
pluginName: "questionsTab",
|
|
161079
|
+
enabled: true,
|
|
161080
|
+
bundle: bundle$b,
|
|
161081
|
+
components: [{
|
|
161082
|
+
component: questionsTab$1,
|
|
161083
|
+
region: "right-sidebar-top",
|
|
161084
|
+
sortOrder: 100
|
|
161085
|
+
}]
|
|
161086
|
+
};
|
|
161087
|
+
|
|
161088
|
+
var bundle$c = {
|
|
160581
161089
|
name: "rasterIdent",
|
|
160582
161090
|
getReducer: function getReducer() {
|
|
160583
161091
|
var initialData = {
|
|
@@ -160668,10 +161176,10 @@ var bundle$b = {
|
|
|
160668
161176
|
}
|
|
160669
161177
|
};
|
|
160670
161178
|
|
|
160671
|
-
var plugin$
|
|
161179
|
+
var plugin$e = {
|
|
160672
161180
|
pluginName: 'Identify Raster',
|
|
160673
161181
|
enabled: true,
|
|
160674
|
-
bundle: bundle$
|
|
161182
|
+
bundle: bundle$c,
|
|
160675
161183
|
components: []
|
|
160676
161184
|
};
|
|
160677
161185
|
|
|
@@ -160719,7 +161227,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160719
161227
|
|
|
160720
161228
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
160721
161229
|
|
|
160722
|
-
var plugin$
|
|
161230
|
+
var plugin$f = {
|
|
160723
161231
|
pluginName: 'NorthButton',
|
|
160724
161232
|
enabled: true,
|
|
160725
161233
|
components: [{
|
|
@@ -160729,7 +161237,7 @@ var plugin$e = {
|
|
|
160729
161237
|
}]
|
|
160730
161238
|
};
|
|
160731
161239
|
|
|
160732
|
-
var bundle$
|
|
161240
|
+
var bundle$d = {
|
|
160733
161241
|
name: 'themeSwitcher',
|
|
160734
161242
|
getReducer: function getReducer() {
|
|
160735
161243
|
var initialData = {
|
|
@@ -160863,7 +161371,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
160863
161371
|
return ThemeSwitcherButton;
|
|
160864
161372
|
}(React$1__default.Component);
|
|
160865
161373
|
|
|
160866
|
-
var plugin$
|
|
161374
|
+
var plugin$g = {
|
|
160867
161375
|
pluginName: 'Theme Switcher',
|
|
160868
161376
|
enabled: true,
|
|
160869
161377
|
components: [{
|
|
@@ -160871,7 +161379,7 @@ var plugin$f = {
|
|
|
160871
161379
|
region: 'left-sidebar-bottom',
|
|
160872
161380
|
sortOrder: 30
|
|
160873
161381
|
}],
|
|
160874
|
-
bundle: bundle$
|
|
161382
|
+
bundle: bundle$d
|
|
160875
161383
|
};
|
|
160876
161384
|
|
|
160877
161385
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -161890,7 +162398,7 @@ var treeViewDownload = {
|
|
|
161890
162398
|
}
|
|
161891
162399
|
};
|
|
161892
162400
|
|
|
161893
|
-
var plugin$
|
|
162401
|
+
var plugin$h = function plugin(controls) {
|
|
161894
162402
|
return {
|
|
161895
162403
|
pluginName: "LayerTree",
|
|
161896
162404
|
enabled: true,
|
|
@@ -161904,7 +162412,7 @@ var plugin$g = function plugin(controls) {
|
|
|
161904
162412
|
};
|
|
161905
162413
|
|
|
161906
162414
|
var geoJSON$3 = new GeoJSON();
|
|
161907
|
-
var bundle$
|
|
162415
|
+
var bundle$e = {
|
|
161908
162416
|
name: "vectorIdent",
|
|
161909
162417
|
getReducer: function getReducer() {
|
|
161910
162418
|
var initialData = {
|
|
@@ -161995,10 +162503,10 @@ var bundle$d = {
|
|
|
161995
162503
|
}
|
|
161996
162504
|
};
|
|
161997
162505
|
|
|
161998
|
-
var plugin$
|
|
162506
|
+
var plugin$i = {
|
|
161999
162507
|
pluginName: 'Identify Vector',
|
|
162000
162508
|
enabled: true,
|
|
162001
|
-
bundle: bundle$
|
|
162509
|
+
bundle: bundle$e,
|
|
162002
162510
|
components: []
|
|
162003
162511
|
};
|
|
162004
162512
|
|
|
@@ -162052,7 +162560,7 @@ function values$1(object) {
|
|
|
162052
162560
|
|
|
162053
162561
|
var values_1 = values$1;
|
|
162054
162562
|
|
|
162055
|
-
var bundle$
|
|
162563
|
+
var bundle$f = {
|
|
162056
162564
|
name: 'vectorSearch',
|
|
162057
162565
|
getReducer: function getReducer() {
|
|
162058
162566
|
var initialData = {
|
|
@@ -162172,10 +162680,10 @@ var bundle$e = {
|
|
|
162172
162680
|
}
|
|
162173
162681
|
};
|
|
162174
162682
|
|
|
162175
|
-
var plugin$
|
|
162683
|
+
var plugin$j = {
|
|
162176
162684
|
pluginName: 'Vector Search',
|
|
162177
162685
|
enabled: true,
|
|
162178
|
-
bundle: bundle$
|
|
162686
|
+
bundle: bundle$f,
|
|
162179
162687
|
components: []
|
|
162180
162688
|
};
|
|
162181
162689
|
|
|
@@ -162255,7 +162763,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162255
162763
|
|
|
162256
162764
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
162257
162765
|
|
|
162258
|
-
var plugin$
|
|
162766
|
+
var plugin$k = {
|
|
162259
162767
|
pluginName: 'ZoomButtons',
|
|
162260
162768
|
enabled: true,
|
|
162261
162769
|
components: [{
|
|
@@ -162312,7 +162820,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162312
162820
|
|
|
162313
162821
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
162314
162822
|
|
|
162315
|
-
var bundle$
|
|
162823
|
+
var bundle$g = {
|
|
162316
162824
|
name: "zoomLevel",
|
|
162317
162825
|
getReducer: function getReducer() {
|
|
162318
162826
|
var initialData = {
|
|
@@ -162352,10 +162860,10 @@ var bundle$f = {
|
|
|
162352
162860
|
}
|
|
162353
162861
|
};
|
|
162354
162862
|
|
|
162355
|
-
var plugin$
|
|
162863
|
+
var plugin$l = {
|
|
162356
162864
|
pluginName: 'zoomIndicator',
|
|
162357
162865
|
enabled: true,
|
|
162358
|
-
bundle: bundle$
|
|
162866
|
+
bundle: bundle$g,
|
|
162359
162867
|
components: [{
|
|
162360
162868
|
component: zoomIndicator$1,
|
|
162361
162869
|
region: 'right-sidebar-top',
|
|
@@ -162430,7 +162938,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
162430
162938
|
|
|
162431
162939
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
162432
162940
|
|
|
162433
|
-
var bundle$
|
|
162941
|
+
var bundle$h = {
|
|
162434
162942
|
name: "zoomHome",
|
|
162435
162943
|
getReducer: function getReducer() {
|
|
162436
162944
|
var initialData = {
|
|
@@ -162501,10 +163009,10 @@ var bundle$g = {
|
|
|
162501
163009
|
}
|
|
162502
163010
|
};
|
|
162503
163011
|
|
|
162504
|
-
var plugin$
|
|
163012
|
+
var plugin$m = {
|
|
162505
163013
|
pluginName: "ZoomToInitial",
|
|
162506
163014
|
enabled: true,
|
|
162507
|
-
bundle: bundle$
|
|
163015
|
+
bundle: bundle$h,
|
|
162508
163016
|
components: [{
|
|
162509
163017
|
component: ZoomHomeButton$1,
|
|
162510
163018
|
region: "left-sidebar-top",
|
|
@@ -162576,7 +163084,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
162576
163084
|
var zoombox = createInteraction({
|
|
162577
163085
|
interaction: 'dragbox'
|
|
162578
163086
|
});
|
|
162579
|
-
var bundle$
|
|
163087
|
+
var bundle$i = {
|
|
162580
163088
|
name: 'zoombox',
|
|
162581
163089
|
getReducer: function getReducer() {
|
|
162582
163090
|
var initialData = {
|
|
@@ -162674,10 +163182,10 @@ var bundle$h = {
|
|
|
162674
163182
|
}
|
|
162675
163183
|
};
|
|
162676
163184
|
|
|
162677
|
-
var plugin$
|
|
163185
|
+
var plugin$n = {
|
|
162678
163186
|
pluginName: 'ZoomtoExtent',
|
|
162679
163187
|
enabled: true,
|
|
162680
|
-
bundle: bundle$
|
|
163188
|
+
bundle: bundle$i,
|
|
162681
163189
|
components: [{
|
|
162682
163190
|
component: ZoomToBoxButton$1,
|
|
162683
163191
|
region: 'basic-toolbar',
|
|
@@ -162729,7 +163237,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
162729
163237
|
|
|
162730
163238
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
162731
163239
|
|
|
162732
|
-
var bundle$
|
|
163240
|
+
var bundle$j = {
|
|
162733
163241
|
name: "mapLoading",
|
|
162734
163242
|
getReducer: function getReducer() {
|
|
162735
163243
|
var initialData = {
|
|
@@ -162766,10 +163274,10 @@ var bundle$i = {
|
|
|
162766
163274
|
}
|
|
162767
163275
|
};
|
|
162768
163276
|
|
|
162769
|
-
var plugin$
|
|
163277
|
+
var plugin$o = {
|
|
162770
163278
|
pluginName: "MapLoadingIndicator",
|
|
162771
163279
|
enabled: true,
|
|
162772
|
-
bundle: bundle$
|
|
163280
|
+
bundle: bundle$j,
|
|
162773
163281
|
components: [{
|
|
162774
163282
|
component: MapLoadingIndicator$1,
|
|
162775
163283
|
region: "lower-right-toolbar",
|
|
@@ -162805,18 +163313,19 @@ exports.geocoder = plugin$6;
|
|
|
162805
163313
|
exports.geojsonIdent = plugin$7;
|
|
162806
163314
|
exports.identify = plugin$8;
|
|
162807
163315
|
exports.legend = plugin$9;
|
|
162808
|
-
exports.mapLoadingIndicator = plugin$
|
|
163316
|
+
exports.mapLoadingIndicator = plugin$o;
|
|
162809
163317
|
exports.measureTools = plugin$a;
|
|
162810
163318
|
exports.permalink = plugin$b;
|
|
162811
163319
|
exports.printMap = plugin$c;
|
|
162812
|
-
exports.
|
|
162813
|
-
exports.
|
|
162814
|
-
exports.
|
|
162815
|
-
exports.
|
|
163320
|
+
exports.questionsTab = plugin$d;
|
|
163321
|
+
exports.rasterIdent = plugin$e;
|
|
163322
|
+
exports.rotateNorth = plugin$f;
|
|
163323
|
+
exports.themeSwitcher = plugin$g;
|
|
163324
|
+
exports.treeView = plugin$h;
|
|
162816
163325
|
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$
|
|
163326
|
+
exports.vectorIdent = plugin$i;
|
|
163327
|
+
exports.vectorSearch = plugin$j;
|
|
163328
|
+
exports.zoomHome = plugin$m;
|
|
163329
|
+
exports.zoomInOut = plugin$k;
|
|
163330
|
+
exports.zoomLevel = plugin$l;
|
|
163331
|
+
exports.zoomToBox = plugin$n;
|