(this["webpackJsonpmetta-frontend"]=this["webpackJsonpmetta-frontend"]||[]).push([[14],{1071:function(e,t,c){},1094:function(e,t,c){"use strict";c.r(t);c(2);var n=c(31),s=c(67),a=c(321),r=c(30),i=c(57),o=c(300),l=(c(1071),c(38)),j=c(1),d=function(e){var t=e.title,c=e.showBack,n=e.backClick;return Object(j.jsx)("div",{className:"row component-title",children:Object(j.jsx)("div",{className:"col-md-12 mt-2",children:Object(j.jsx)("div",{className:"page-title",children:Object(j.jsx)("div",{className:"container",children:Object(j.jsxs)("div",{className:"row",children:[Object(j.jsx)("div",{className:"col-md-6 no-p-h",children:Object(j.jsx)("h3",{children:t})}),Object(j.jsx)("div",{className:"col-md-6 no-p-h",children:c?Object(j.jsxs)("button",{className:"float-right text-right",onClick:n,children:[Object(j.jsx)("i",{className:"fa fa-angle-double-left"})," Go back"]}):null})]})})})})})};t.default=Object(n.b)((function(e){return{termsNotAccepted:Object(r.n)(e),submitting:Object(r.p)(e),errorMessages:Object(r.e)(e),content:Object(r.o)(e)}}),(function(e){return{doDismissError:function(){e(Object(i.c)())},doAcceptTerms:function(){return e(Object(i.k)())}}}))((function(e){var t=e.termsNotAccepted,c=e.submitting,n=e.content,r=e.errorMessages,i=e.doAcceptTerms,b=e.doDismissError,m=Object(s.j)().path,h=Object(s.g)(),u=Object(s.h)().pathname.split("/"),O=u.length>2?u[2].toUpperCase():null,p=O?l.a[O]:null,f=!!p&&!(p.route===u[u.length-1]);return Object(j.jsxs)("div",{id:"main",children:[Object(j.jsx)("div",{className:"dashboard-inner",children:Object(j.jsxs)("div",{className:"container",children:[p?Object(j.jsx)(d,{title:p.title,showBack:!(!p.enableBack||!f)&&p.enableBack,backClick:function(){return h.goBack()}}):null,Object(j.jsx)("div",{className:"row d-flex justify-content-center",children:Object(j.jsx)(s.d,{children:Object.keys(l.a).map((function(e){var t=l.a[e],c=t.paramName?"".concat(m,"/").concat(t.route,"/:").concat(t.paramName,"?"):"".concat(m,"/").concat(t.route);return Object(j.jsx)(o.a,{path:c,children:t.component},t.id)}))})})]})}),t?Object(j.jsx)(a.b,{showNotAccept:!1,isLoading:c,show:t,onHide:function(e){e&&i()},errorMessages:r,content:n,dismissError:b}):null]})}))}}]);
//# sourceMappingURL=14.cc8240ae.chunk.js.map