(this.webpackJsonpimonitornextgen=this.webpackJsonpimonitornextgen||[]).push([[127],{2071:function(e,a,l){"use strict";l.r(a);var t=l(26),n=l(0),r=l.n(n),c=l(30),o=l(191),m=l(200),s=l(53),i=l(199),d=l(213);a.default=Object(c.b)((function(e){var a=e.communityData;return{UUID:a.communityId?a.communityId:null}}),null)((function(e){var a=e.UUID,l=e.goToNext,c=e.nextTab,p=Object(n.useState)(!0),u=Object(t.a)(p,2),E=u[0],N=u[1],g=Object(n.useState)(null),b=Object(t.a)(g,2),x=b[0],v=b[1],f=Object(o.a)(),y=Object(t.a)(f,1)[0];Object(n.useEffect)((function(){var e={communityid:a};i.a.post(s.getDashboardConfigurationByCommunityId,e).then((function(e){var a=e.data;console.log(a),v(a.data),N(!1)})).catch((function(e){N(!1)}))}),[a]);return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.default,{isLoading:E}),r.a.createElement("div",{className:"card"},r.a.createElement("form",{onSubmit:function(){l(c)}},r.a.createElement("div",{className:"card-body"},r.a.createElement("h4",{className:"title"},"Cloudinary Setting"),r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"Cloudinary Cloud Name"),r.a.createElement(d.a,{type:"text",name:"cloudinaryCloudName",placeholder:y("Enter Cloudinary Cloud Name"),className:"form-control",id:"cloudinaryCloudName",disabled:!0,value:x?x.cloudinaryCloudName:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"Cloudinary Preset"),r.a.createElement(d.a,{type:"text",name:"cloudinaryPreset",placeholder:y("Enter Cloudinary Preset"),className:"form-control",id:"cloudinaryPreset",disabled:!0,value:x?x.cloudinaryPreset:""})))),r.a.createElement("h4",{className:"title"},"Mixpanel Setting"),r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"Mixpanel Api Key"),r.a.createElement(d.a,{type:"text",name:"mixpanelApiKey",placeholder:y("Enter Mixpanel Api Key"),className:"form-control",id:"mixpanelApiKey",disabled:!0,value:x?x.mixpanelApiKey:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"Mixpanel Api Secret"),r.a.createElement(d.a,{type:"text",name:"mixpanelApiSecret",placeholder:y("Enter Mixpanel Api Secret"),className:"form-control",id:"mixpanelApiSecret",disabled:!0,value:x?x.mixpanelApiSecret:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"Mixpanel Token"),r.a.createElement(d.a,{type:"text",name:"mixpanelToken",placeholder:y("Enter Mixpanel Token"),className:"form-control",id:"mixpanelToken",disabled:!0,value:x?x.mixpanelToken:""})))),r.a.createElement("h4",{className:"title"},"Onesignal Setting"),r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"onesignal appId"),r.a.createElement(d.a,{type:"text",name:"onesignal_appId",placeholder:y("Enter onesignal appId"),className:"form-control",id:"onesignal_appId",disabled:!0,value:x?x.onesignalAppid:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"onesignal explorer appId"),r.a.createElement(d.a,{type:"text",name:"onesignal_explorer_appId",placeholder:y("Enter onesignal explorer appId"),className:"form-control",id:"onesignal_explorer_appId",disabled:!0,value:x?x.onesignalExplorerAppid:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"onesignal explorer restApi"),r.a.createElement(d.a,{type:"text",name:"onesignal_explorer_restApi",placeholder:y("Enter onesignal explorer restApi"),className:"form-control",id:"onesignal_explorer_restApi",disabled:!0,value:x?x.onesignalExplorerRestapi:""}))),r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{className:"control-label"},"onesignal restApi"),r.a.createElement(d.a,{type:"text",name:"onesignal_restApi",placeholder:y("Enter onesignal restApi"),className:"form-control",id:"onesignal_restApi",disabled:!0,value:x?x.onesignalRestapi:""}))))),r.a.createElement("div",{className:"text-center card-footer"},r.a.createElement("button",{type:"submit",className:"mr-3 btn btn-primary btn-sm"},r.a.createElement("i",{className:"fa fa-dot-circle-o"})," ",y("Continue")," ")))))}))}}]);
//# sourceMappingURL=127.d9b9f25b.chunk.js.map