/*!

=========================================================
* Black Dashboard React - v1.2.0
=========================================================

* Product Page: https://www.creative-tim.com/product/black-dashboard-react
* Copyright 2020 SAGATEC (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/creativetimofficial/black-dashboard-react/blob/master/LICENSE.md)

* Coded by SAGATEC

=========================================================

* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

*/
/*! For license information please see main.6005ec6b.chunk.js.LICENSE.txt */
(this["webpackJsonpblack-dashboard-react"]=this["webpackJsonpblack-dashboard-react"]||[]).push([[0],{401:function(e,t){var a={maintainAspectRatio:!1,legend:{display:!1},tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},responsive:!0,scales:{yAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.0)",zeroLineColor:"transparent"},ticks:{suggestedMin:60,suggestedMax:125,padding:20,fontColor:"#9a9a9a"}}],xAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9a9a9a"}}]}},n={data1:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],datasets:[{label:"My First dataset",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:[10,7,90,70,85,60,75,60,90,80,110,1e3]}]}},data2:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],datasets:[{label:"My First dataset",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:[80,120,105,110,95,105,90,100,80,95,70,120]}]}},data3:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],datasets:[{label:"My First dataset",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:[60,80,65,130,80,105,90,130,70,115,60,130]}]}},options:a},r={data:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:["JUL","AUG","SEP","OCT","NOV","DEC"],datasets:[{label:"Data",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:[80,100,70,80,120,80]}]}},options:a};e.exports={chartExample1:n,chartExample2:r,chartExample3:{data:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(72,72,176,0.1)"),t.addColorStop(.4,"rgba(72,72,176,0.0)"),t.addColorStop(0,"rgba(119,52,169,0)"),{labels:["USA","GER","AUS","UK","RO","BR"],datasets:[{label:"Countries",fill:!0,backgroundColor:t,hoverBackgroundColor:t,borderColor:"#d048b6",borderWidth:2,borderDash:[],borderDashOffset:0,data:[53,20,10,80,100,45]}]}},options:{maintainAspectRatio:!1,legend:{display:!1},tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},responsive:!0,scales:{yAxes:[{gridLines:{drawBorder:!1,color:"rgba(225,78,202,0.1)",zeroLineColor:"transparent"},ticks:{suggestedMin:60,suggestedMax:120,padding:20,fontColor:"#9e9e9e"}}],xAxes:[{gridLines:{drawBorder:!1,color:"rgba(225,78,202,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9e9e9e"}}]}}},chartExample4:{data:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(66,134,121,0.15)"),t.addColorStop(.4,"rgba(66,134,121,0.0)"),t.addColorStop(0,"rgba(66,134,121,0)"),{labels:["JUL","AUG","SEP","OCT","NOV"],datasets:[{label:"My First dataset",fill:!0,backgroundColor:t,borderColor:"#00d6b4",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:[90,27,60,12,80]}]}},options:{maintainAspectRatio:!1,legend:{display:!1},tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},responsive:!0,scales:{yAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.0)",zeroLineColor:"transparent"},ticks:{suggestedMin:50,suggestedMax:125,padding:20,fontColor:"#9e9e9e"}}],xAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(0,242,195,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9e9e9e"}}]}}}}},406:function(e,t){},408:function(e,t){},422:function(e,t){},424:function(e,t){},452:function(e,t){},454:function(e,t){},455:function(e,t){},460:function(e,t){},462:function(e,t){},468:function(e,t){},470:function(e,t){},489:function(e,t){},501:function(e,t){},504:function(e,t){},524:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/anime3.4438e506.png"},525:function(e,t,a){},526:function(e,t,a){},527:function(e,t,a){},529:function(e,t,a){"use strict";a.r(t);var n=a(146),r=a(0),c=a.n(r),o=a(18),s=a.n(o),i=a(37),l=a(20),d=a(15),j=a(40),b=a(6),u=a.n(b),m=a(564),h=a(565),O=a(566),x=a(567),p=a(568),g=a(569),f=a(570),v=a(571),C=a(595),N=a(572),S=a(573),k=a(594),E=a(574),A=a(575),D=a(1);var y=function(e){var t=c.a.useState(!1),a=Object(d.a)(t,2),n=a[0],r=a[1],o=c.a.useState(!1),s=Object(d.a)(o,2),i=s[0],l=s[1],j=c.a.useState("navbar-transparent"),b=Object(d.a)(j,2),y=b[0],T=b[1];c.a.useEffect((function(){return window.addEventListener("resize",B),function(){window.removeEventListener("resize",B)}}));var B=function(){window.innerWidth<993&&n?T("bg-white"):T("navbar-transparent")},R=function(){l(!i)};return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(m.a,{className:u()("navbar-absolute",y),expand:"lg",children:Object(D.jsxs)(h.a,{fluid:!0,children:[Object(D.jsxs)("div",{className:"navbar-wrapper",children:[Object(D.jsx)("div",{className:u()("navbar-toggle d-inline",{toggled:e.sidebarOpened})}),Object(D.jsx)(O.a,{href:"#pablo",onClick:function(e){return e.preventDefault()},children:e.brandText})]}),Object(D.jsxs)(x.a,{onClick:function(){T(n?"navbar-transparent":"bg-white"),r(!n)},children:[Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"})]}),Object(D.jsx)(p.a,{navbar:!0,isOpen:n,children:Object(D.jsxs)(g.a,{className:"ml-auto",navbar:!0,children:[Object(D.jsx)(f.a,{className:"search-bar"}),Object(D.jsx)(v.a,{nav:!0,children:Object(D.jsxs)(C.a,{className:"dropdown-navbar",right:!0,tag:"ul",children:[Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Mike John responded to your email"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"You have 5 more tasks"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Your friend Michael is in town"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Another notification"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Another one"})})]})}),Object(D.jsx)(v.a,{nav:!0,children:Object(D.jsxs)(C.a,{className:"dropdown-navbar",right:!0,tag:"ul",children:[Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})}),Object(D.jsx)(S.a,{divider:!0,tag:"li"}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})})]})}),Object(D.jsx)("li",{className:"separator d-lg-none"})]})})]})}),Object(D.jsx)(k.a,{modalClassName:"modal-search",isOpen:i,toggle:R,children:Object(D.jsxs)(E.a,{children:[Object(D.jsx)(A.a,{placeholder:"SEARCH",type:"text"}),Object(D.jsx)("button",{"aria-label":"Close",className:"close",onClick:R,children:Object(D.jsx)("i",{className:"tim-icons icon-simple-remove"})})]})})]})};var T,B=function(){return Object(D.jsx)("footer",{className:"footer",children:Object(D.jsxs)(h.a,{fluid:!0,children:[Object(D.jsx)(g.a,{}),Object(D.jsxs)("div",{className:"copyright",children:["\xa9 ",(new Date).getFullYear()]})]})})},R="primary",L="blue",w="green",M=Object(r.createContext)({color:L,changeColor:function(e){}});function G(e){var t=Object(l.h)(),a=c.a.useRef(null);c.a.useEffect((function(){return navigator.platform.indexOf("Win")>-1&&(T=new j.a(a.current,{suppressScrollX:!0,suppressScrollY:!1})),function(){navigator.platform.indexOf("Win")>-1&&T.destroy()}}));var n=e.routes,r=e.rtlActive,o=e.logo,s=null,d=null;return void 0!==o&&(void 0!==o.outterLink?(s=Object(D.jsx)("a",{href:o.outterLink,className:"simple-text logo-mini",target:"_blank",onClick:e.toggleSidebar,children:Object(D.jsx)("div",{className:"logo-img",children:Object(D.jsx)("img",{src:o.imgSrc,alt:"react-logo"})})}),d=Object(D.jsx)("a",{href:o.outterLink,className:"simple-text logo-normal",target:"_blank",onClick:e.toggleSidebar,children:o.text})):(s=Object(D.jsx)(i.b,{to:o.innerLink,className:"simple-text logo-mini",onClick:e.toggleSidebar,children:Object(D.jsx)("div",{className:"logo-img",children:Object(D.jsx)("img",{src:o.imgSrc,alt:"react-logo"})})}),d=Object(D.jsx)(i.b,{to:o.innerLink,className:"simple-text logo-normal",onClick:e.toggleSidebar,children:o.text}))),Object(D.jsx)(M.Consumer,{children:function(c){var o=c.color;return Object(D.jsx)("div",{className:"sidebar",data:o,children:Object(D.jsxs)("div",{className:"sidebar-wrapper",ref:a,children:[null!==s||null!==d?Object(D.jsxs)("div",{className:"logo",children:[s,d]}):null,Object(D.jsxs)(g.a,{children:[n.map((function(a,n){return a.redirect?null:Object(D.jsx)("li",{className:(c=a.path,(t.pathname===c?"active":"")+(a.pro?" active-pro":"")),children:Object(D.jsxs)(i.c,{to:a.layout+a.path,className:"nav-link",activeClassName:"active",onClick:e.toggleSidebar,children:[Object(D.jsx)("i",{className:a.icon}),Object(D.jsx)("p",{children:r?a.rtlName:a.name})]})},n);var c})),Object(D.jsx)("li",{className:"active-pro"})]})]})})}})}G.defaultProps={rtlActive:!1,routes:[{}]};var I=G,W=a(141),P=a(596),H=a(576),U="",F="white-content",z=Object(r.createContext)({theme:U,changeTheme:function(){}});var Y=function(e){var t=c.a.useState(!1),a=Object(d.a)(t,2),n=a[0],r=a[1];return Object(D.jsx)("div",{className:"fixed-plugin",children:Object(D.jsxs)(W.a,{isOpen:n,toggle:function(){r(!n)},children:[Object(D.jsx)(P.a,{tag:"div",children:Object(D.jsx)("i",{className:"fa fa-cog fa-2x"})}),Object(D.jsxs)("ul",{className:"dropdown-menu show",children:[Object(D.jsx)("li",{className:"header-title",children:"SIDEBAR BACKGROUND"}),Object(D.jsx)("li",{className:"adjustments-line",children:Object(D.jsxs)("div",{className:"badge-colors text-center",children:[Object(D.jsx)(H.a,{color:"primary",className:e.bgColor===R?"active":"",onClick:function(){e.handleBgClick(R)}})," ",Object(D.jsx)(H.a,{color:"info",className:e.bgColor===L?"active":"",onClick:function(){e.handleBgClick(L)}})," ",Object(D.jsx)(H.a,{color:"success",className:e.bgColor===w?"active":"",onClick:function(){e.handleBgClick(w)}})," "]})}),Object(D.jsx)("li",{className:"adjustments-line text-center color-change",children:Object(D.jsx)(z.Consumer,{children:function(e){var t=e.changeTheme;return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)("span",{className:"color-label",children:"LIGHT MODE"})," ",Object(D.jsx)(H.a,{className:"light-badge mr-2",onClick:function(){return t(F)}})," ",Object(D.jsx)(H.a,{className:"dark-badge ml-2",onClick:function(){return t(U)}})," ",Object(D.jsx)("span",{className:"color-label",children:"DARK MODE"})," "]})}})})]})]})})},_=a(251),J=a(29),X=a.n(J),q=a.p+"static/media/react-logo.561f1671.png",V=a(577),K=a(578),Q=a(579),Z=a(580),$=a(581),ee=a(582),te=a(250),ae=a(583),ne=a(584);a(401);var re=function(e){var t=Object(r.useState)([]),a=Object(d.a)(t,2),n=a[0],o=a[1],s=Object(r.useState)([]),i=Object(d.a)(s,2),j=i[0],b=i[1],m=Object(r.useState)([]),h=Object(d.a)(m,2),O=h[0],x=h[1],p=Object(r.useState)([]),g=Object(d.a)(p,2),f=g[0],v=g[1],C=Object(r.useState)([]),N=Object(d.a)(C,2),S=N[0],k=N[1],E=Object(r.useState)([]),A=Object(d.a)(E,2),y=A[0],T=A[1],B="",R="",L="",w="",M="",G="",W=c.a.useState(-1!==document.documentElement.className.indexOf("nav-open")),P=Object(d.a)(W,2),H=P[0],U=P[1],F=c.a.useState("data1"),z=Object(d.a)(F,2),Y=z[0],J=z[1],re=function(e){J(e)};Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/Mois",{IDclient:B}).then((function(e){x(e.data)}))}),[]),Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/chart",{GatChart:w}).then((function(e){v(e.data)}))}),[]),Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/chartAnnee",{GetChartAnnee:G}).then((function(e){console.log(e.data),T(e.data)}))}),[]),Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/chartMois",{GetChartMois:M}).then((function(e){k(e.data)}))}),[]),Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/Annee",{GetAnnee:L}).then((function(e){b(e.data)}))}),[]),Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/get",{GetData:R}).then((function(e){o(e.data)}))}),[]);var ce={data1:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:f.map((function(e){return e.DATE})),datasets:[{label:"Total",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:f.map((function(e){return e.RECETTE}))}]}},data2:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:S.map((function(e){return e.Mois})),datasets:[{label:"Total",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:S.map((function(e){return e.TotalMois}))}]}},data3:function(e){var t=e.getContext("2d").createLinearGradient(0,230,0,50);return t.addColorStop(1,"rgba(29,140,248,0.2)"),t.addColorStop(.4,"rgba(29,140,248,0.0)"),t.addColorStop(0,"rgba(29,140,248,0)"),{labels:y.map((function(e){return e.Annee})),datasets:[{label:"Total ",fill:!0,backgroundColor:t,borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#1f8ef1",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#1f8ef1",pointBorderWidth:20,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,data:y.map((function(e){return e.TotalAnn\u00e9e}))}]}},options:{maintainAspectRatio:!1,legend:{display:!1},tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},responsive:!0,scales:{yAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.0)",zeroLineColor:"transparent"},ticks:{suggestedMin:60,suggestedMax:125,padding:20,fontColor:"#9a9a9a"}}],xAxes:[{barPercentage:1.6,gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9a9a9a"}}]}}};return void 0==e.location.state?Object(D.jsx)(l.a,{to:"/admin/login"}):(B="SELECT SUM(RECETTE) AS TotalMois FROM "+e.location.state.detail+"_GlobalCloud WHERE MONTH(CURDATE()) = SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) LIMIT 1;",R="Select * from "+e.location.state.detail+"_GlobalCloud ORDER BY ID DESC LIMIT 1",L="SELECT SUM(RECETTE) AS TotalAnn\xe9e FROM "+e.location.state.detail+"_GlobalCloud WHERE YEAR(CURDATE()) = SUBSTRING_INDEX( DATE ,'/',-1) LIMIT 1;",w="Select * from "+e.location.state.detail+"_GlobalCloud ORDER BY ID DESC LIMIT 7",M="SELECT SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) AS Mois ,SUM(RECETTE) AS TotalMois FROM "+e.location.state.detail+"_GlobalCloud GROUP BY SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) ORDER BY Mois desc LIMIT 12 ;",G="SELECT SUM(RECETTE) AS TotalAnn\xe9e ,  SUBSTRING_INDEX( DATE ,'/',-1) AS Annee FROM "+e.location.state.detail+"_GlobalCloud GROUP BY Annee ORDER BY Annee desc ;",Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(I,{routes:oe,logo:{outterLink:"",text:"Dashboard",imgSrc:q},toggleSidebar:function(){document.documentElement.classList.toggle("nav-open"),U(!H)}}),Object(D.jsxs)("div",{className:"content",children:[Object(D.jsxs)(V.a,{children:[Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-key-25"}),Object(D.jsx)("h5",{}),Object(D.jsx)("h5",{children:"Les chiffres cl\xe9s"})]})}),Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-coins"}),Object(D.jsx)("p",{children:"Recette du jour"}),n.map((function(e){return Object(D.jsxs)("h4",{children:[e.RECETTE," DH"]})}))]})}),Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-money-coins"}),Object(D.jsx)("p",{children:"Recette de ce mois"}),O.map((function(e){return Object(D.jsxs)("h4",{children:[e.TotalMois," DH"]})}))]})}),Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-calendar-60"}),Object(D.jsx)("p",{children:"Recette de l'ann\xe9e"}),j.map((function(e){return Object(D.jsxs)("h4",{children:[e.TotalAnn\u00e9e," DH"]})}))]})}),Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-alert-circle-exc"}),Object(D.jsx)("p",{children:"Annulation d'aujourd'hui"}),n.map((function(e){return Object(D.jsxs)("h4",{children:[e.Annulation," DH"]})}))]})}),Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-gift-2"}),Object(D.jsx)("p",{children:"Gratuit\xe9 d'aujourd'hui"}),n.map((function(e){return Object(D.jsxs)("h4",{children:[e.Gratuit\u00e9," DH"]})}))]})})]}),Object(D.jsx)(V.a,{children:Object(D.jsx)(K.a,{xs:"12",children:Object(D.jsxs)(Q.a,{className:"card-chart",children:[Object(D.jsx)(Z.a,{children:Object(D.jsxs)(V.a,{children:[Object(D.jsxs)(K.a,{className:"text-left",sm:"6",children:[Object(D.jsx)("h5",{className:"card-category",children:"Total Shipments"}),Object(D.jsx)($.a,{tag:"h2",children:"Performance"})]}),Object(D.jsx)(K.a,{sm:"6",children:Object(D.jsxs)(ee.a,{className:"btn-group-toggle float-right","data-toggle":"buttons",children:[Object(D.jsxs)(te.a,{tag:"label",className:u()("btn-simple",{active:"data1"===Y}),color:"info",id:"0",size:"sm",onClick:function(){return re("data1")},children:[Object(D.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Semaine"}),Object(D.jsx)("span",{className:"d-block d-sm-none",children:Object(D.jsx)("i",{className:"tim-icons icon-coins"})})]}),Object(D.jsxs)(te.a,{color:"info",id:"1",size:"sm",tag:"label",className:u()("btn-simple",{active:"data2"===Y}),onClick:function(){return re("data2")},children:[Object(D.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Mois"}),Object(D.jsx)("span",{className:"d-block d-sm-none",children:Object(D.jsx)("i",{className:"tim-icons icon-money-coins"})})]}),Object(D.jsxs)(te.a,{color:"info",id:"2",size:"sm",tag:"label",className:u()("btn-simple",{active:"data3"===Y}),onClick:function(){return re("data3")},children:[Object(D.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Ann\xe9e"}),Object(D.jsx)("span",{className:"d-block d-sm-none",children:Object(D.jsx)("i",{className:"tim-icons icon-calendar-60"})})]})]})})]})}),Object(D.jsx)(ae.a,{children:Object(D.jsx)("div",{className:"chart-area",children:Object(D.jsx)(_.Line,{data:ce[Y],options:ce.options})})})]})})}),Object(D.jsxs)(V.a,{children:[Object(D.jsx)(K.a,{lg:"6",md:"12",children:Object(D.jsxs)(Q.a,{children:[Object(D.jsx)(Z.a,{children:Object(D.jsx)($.a,{tag:"h4",children:"Dernier Ticket"})}),Object(D.jsx)(ae.a,{children:Object(D.jsxs)(ne.a,{className:"tablesorter",responsive:!0,children:[Object(D.jsx)("thead",{className:"text-primary",children:Object(D.jsx)("tr",{})}),Object(D.jsxs)("tbody",{children:[Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierTicket1," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierTicket2," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierTicket3," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierTicket4," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsx)("td",{children:e.DernierTicket5})}))})]})]})})]})}),Object(D.jsx)(K.a,{lg:"6",md:"12",children:Object(D.jsxs)(Q.a,{children:[Object(D.jsx)(Z.a,{children:Object(D.jsx)($.a,{tag:"h4",children:"Dernier Produit Annul\xe9"})}),Object(D.jsx)(ae.a,{children:Object(D.jsxs)(ne.a,{className:"tablesorter",responsive:!0,children:[Object(D.jsx)("thead",{className:"text-primary",children:Object(D.jsx)("tr",{})}),Object(D.jsxs)("tbody",{children:[Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierProduitAnnul\u00e91," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierProduitAnnul\u00e92," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierProduitAnnul\u00e93," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierProduitAnnul\u00e94," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsx)("td",{children:e.DernierProduitAnnul\u00e95})}))})]})]})})]})})]}),Object(D.jsxs)(V.a,{children:[Object(D.jsx)(K.a,{lg:"6",md:"12",children:Object(D.jsxs)(Q.a,{children:[Object(D.jsx)(Z.a,{children:Object(D.jsx)($.a,{tag:"h4",children:"Dernier Carte Annul\xe9"})}),Object(D.jsx)(ae.a,{children:Object(D.jsxs)(ne.a,{className:"tablesorter",responsive:!0,children:[Object(D.jsx)("thead",{className:"text-primary",children:Object(D.jsx)("tr",{})}),Object(D.jsxs)("tbody",{children:[Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierCarteAnnul\u00e91," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierCarteAnnul\u00e92," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierCarteAnnul\u00e93," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.DernierCarteAnnul\u00e94," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsx)("td",{children:e.DernierCarteAnnul\u00e95})}))})]})]})})]})}),Object(D.jsx)(K.a,{lg:"6",md:"12",children:Object(D.jsxs)(Q.a,{children:[Object(D.jsx)(Z.a,{children:Object(D.jsx)($.a,{tag:"h4",children:"Top Produit"})}),Object(D.jsx)(ae.a,{children:Object(D.jsxs)(ne.a,{className:"tablesorter",responsive:!0,children:[Object(D.jsx)("thead",{className:"text-primary",children:Object(D.jsx)("tr",{})}),Object(D.jsxs)("tbody",{children:[Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.TopProduit1," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.TopProduit2," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.TopProduit3," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsxs)("td",{children:[e.TopProduit4," "]})}))}),Object(D.jsx)("tr",{children:n.map((function(e){return Object(D.jsx)("td",{children:e.TopProduit5})}))})]})]})})]})})]})]})]}))};var ce=function(e){var t=Object(l.g)(),a=Object(r.useState)([]),n=Object(d.a)(a,2),c=n[0],o=n[1],s=-1;return Object(r.useEffect)((function(){X.a.post("http://dashboard-api.mcsystem.net/api/Magasins",{IDclient:s}).then((function(e){o(e.data)}))}),[]),void 0==e.location.state?Object(D.jsx)(l.a,{to:"/admin/login"}):(s=e.location.state.detail[0].IDclient,Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(I,{logo:{outterLink:"",text:"Dashboard",imgSrc:q}}),Object(D.jsx)("div",{className:"content",children:Object(D.jsx)(V.a,{children:Object(D.jsx)(K.a,{md:"12",children:Object(D.jsxs)(Q.a,{children:[Object(D.jsxs)(Z.a,{children:[Object(D.jsx)("h5",{className:"title",children:"Vos magasins"}),Object(D.jsx)("p",{className:"category",children:"S\xe9lectionnez le magasin que vous voulez"})]}),Object(D.jsx)(ae.a,{className:"all-icons",children:Object(D.jsx)(V.a,{children:c.map((function(e){return Object(D.jsx)(K.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",onClick:function(){return a=e.IDmagasin,void t.push({pathname:"/admin/dashboard",state:{detail:a}});var a},children:Object(D.jsxs)("div",{className:"font-icon-detail",children:[Object(D.jsx)("i",{className:"tim-icons icon-square-pin"}),Object(D.jsx)("h4",{children:" "}),Object(D.jsx)("h4",{children:e.NomMagasin})]})})}))})})]})})})})]}))},oe=[{path:"/dashboard",name:"Dashboard",rtlName:"\u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629",icon:"tim-icons icon-chart-pie-36",component:re,layout:"/admin"},{path:"/magasin",name:"Magasins",rtlName:"\u0627\u0644\u0631\u0645\u0648\u0632",icon:"tim-icons icon-atom",component:ce,layout:"/admin"}],se=a(597),ie=a(593),le=a(590),de=a(591),je=a(592),be=a(252),ue=a.n(be),me=a(585),he=a(588),Oe=a(589);function xe(){return Object(D.jsxs)(me.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",(new Date).getFullYear(),"."]})}var pe=Object(he.a)((function(e){return{paper:{marginTop:e.spacing(8),display:"flex",flexDirection:"column",alignItems:"center"},avatar:{margin:e.spacing(1),backgroundColor:e.palette.secondary.main},form:{width:"100%",marginTop:e.spacing(1)},submit:{margin:e.spacing(3,0,2)}}}));var ge,fe=[{path:"/login",name:"login",rtlName:"\u0627\u0644\u0631\u0645\u0648\u0632",icon:"tim-icons icon-atom",component:function(){var e=Object(l.g)(),t=pe(),n=Object(r.useState)(""),c=Object(d.a)(n,2),o=c[0],s=c[1],i=Object(r.useState)(""),j=Object(d.a)(i,2),b=j[0],u=j[1],m=Object(r.useState)(""),h=Object(d.a)(m,2),O=(h[0],h[1]);return a(402),X.a.defaults.withCredentials=!0,Object(r.useEffect)((function(){X.a.get("http://dashboard-api.mcsystem.net/login").then((function(e){e.data.loggedIn&&O(e.data.user[0].Login)}))}),[]),Object(D.jsxs)(Oe.a,{component:"main",maxWidth:"xs",children:[Object(D.jsx)(le.a,{}),Object(D.jsxs)("div",{className:t.paper,children:[Object(D.jsx)(se.a,{className:t.avatar,children:Object(D.jsx)(ue.a,{})}),Object(D.jsx)(me.a,{component:"h1",variant:"h5",children:"Sign in"}),Object(D.jsxs)("form",{className:t.form,noValidate:!0,children:[Object(D.jsx)(de.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,InputProps:{style:{color:"#B6B6B6"}},id:"email",label:"UserName",name:"email",onChange:function(e){s(e.target.value)},autoComplete:"email",autoFocus:!0}),Object(D.jsx)(de.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,InputProps:{style:{color:"#B6B6B6"}},name:"password",label:"Password",type:"password",id:"password",autoComplete:"current-password",onChange:function(e){u(e.target.value)}}),Object(D.jsx)(ie.a,{fullWidth:!0,variant:"contained",color:"primary",className:t.submit,onClick:function(){X.a.post("http://dashboard-api.mcsystem.net/login",{username:o,password:b}).then((function(t){t.data.length>0&&e.push({pathname:"/admin/magasin",state:{detail:t.data}})}))},children:"Sign In"})]})]}),Object(D.jsx)(je.a,{mt:8,children:Object(D.jsx)(xe,{})})]})},layout:"/admin"},{path:"/dashboard",name:"Dashboard",rtlName:"\u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629",icon:"tim-icons icon-chart-pie-36",component:re,layout:"/admin"},{path:"/magasin",name:"Magasins",rtlName:"",icon:"tim-icons icon-atom",component:ce,layout:"/admin"}];var ve=function(e){var t=Object(l.h)(),a=c.a.useRef(null),n=c.a.useState(-1!==document.documentElement.className.indexOf("nav-open")),r=Object(d.a)(n,2),o=r[0],s=r[1];c.a.useEffect((function(){if(navigator.platform.indexOf("Win")>-1){document.documentElement.className+=" perfect-scrollbar-on",document.documentElement.classList.remove("perfect-scrollbar-off"),ge=new j.a(a.current,{suppressScrollX:!0});for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)ge=new j.a(e[t])}return function(){navigator.platform.indexOf("Win")>-1&&(ge.destroy(),document.documentElement.classList.add("perfect-scrollbar-off"),document.documentElement.classList.remove("perfect-scrollbar-on"))}})),c.a.useEffect((function(){if(navigator.platform.indexOf("Win")>-1)for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)ge=new j.a(e[t]);document.documentElement.scrollTop=0,document.scrollingElement.scrollTop=0,a.current&&(a.current.scrollTop=0)}),[t]);var i=function(){document.documentElement.classList.toggle("nav-open"),s(!o)},b=function(e){for(var a=0;a<oe.length;a++)if(-1!==t.pathname.indexOf(oe[a].layout+oe[a].path))return oe[a].name;return"Login"};return Object(D.jsx)(M.Consumer,{children:function(e){var n,r=e.color,s=e.changeColor;return Object(D.jsxs)(c.a.Fragment,{children:[Object(D.jsx)("div",{className:"wrapper",children:Object(D.jsxs)("div",{className:"main-panel",ref:a,data:r,children:[Object(D.jsx)(y,{brandText:b(t.pathname),toggleSidebar:i,sidebarOpened:o}),Object(D.jsxs)(l.d,{children:[(n=fe,n.map((function(e,t){return"/admin"===e.layout?Object(D.jsx)(l.b,{path:e.layout+e.path,component:e.component},t):null}))),Object(D.jsx)(l.a,{from:"*",to:"/admin/login"})]}),"/admin/maps"===t.pathname?null:Object(D.jsx)(B,{fluid:!0})]})}),Object(D.jsx)(Y,{bgColor:r,handleBgClick:s})]})}})};var Ce,Ne=function(e){var t=c.a.useState(!1),n=Object(d.a)(t,2),r=n[0],o=n[1],s=c.a.useState(!1),i=Object(d.a)(s,2),l=i[0],j=i[1],b=c.a.useState("navbar-transparent"),y=Object(d.a)(b,2),T=y[0],B=y[1];c.a.useEffect((function(){return window.addEventListener("resize",R),function(){window.removeEventListener("resize",R)}}));var R=function(){window.innerWidth<993&&r?B("bg-white"):B("navbar-transparent")},L=function(){j(!l)};return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(m.a,{className:u()("navbar-absolute",T),expand:"lg",children:Object(D.jsxs)(h.a,{fluid:!0,children:[Object(D.jsxs)("div",{className:"navbar-wrapper",children:[Object(D.jsx)("div",{className:u()("navbar-toggle d-inline",{toggled:e.sidebarOpened}),children:Object(D.jsxs)(x.a,{type:"button",onClick:e.toggleSidebar,children:[Object(D.jsx)("span",{className:"navbar-toggler-bar bar1"}),Object(D.jsx)("span",{className:"navbar-toggler-bar bar2"}),Object(D.jsx)("span",{className:"navbar-toggler-bar bar3"})]})}),Object(D.jsx)(O.a,{href:"#pablo",onClick:function(e){return e.preventDefault()},children:e.brandText})]}),Object(D.jsxs)(x.a,{onClick:function(){B(r?"navbar-transparent":"bg-white"),o(!r)},children:[Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(D.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"})]}),Object(D.jsx)(p.a,{navbar:!0,isOpen:r,children:Object(D.jsxs)(g.a,{className:"mr-auto",navbar:!0,children:[Object(D.jsx)(f.a,{className:"search-bar",children:Object(D.jsxs)(te.a,{color:"link",onClick:L,children:[Object(D.jsx)("i",{className:"tim-icons icon-zoom-split"}),Object(D.jsx)("span",{className:"d-lg-none d-md-block",children:"Search"})]})}),Object(D.jsxs)(v.a,{nav:!0,children:[Object(D.jsxs)(P.a,{caret:!0,color:"default","data-toggle":"dropdown",nav:!0,children:[Object(D.jsx)("div",{className:"notification d-none d-lg-block d-xl-block"}),Object(D.jsx)("i",{className:"tim-icons icon-sound-wave"}),Object(D.jsx)("p",{className:"d-lg-none",children:"Notifications"})]}),Object(D.jsxs)(C.a,{className:"dropdown-navbar",tag:"ul",right:!0,children:[Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Mike John responded to your email"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"You have 5 more tasks"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Your friend Michael is in town"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Another notification"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item",children:"Another one"})})]})]}),Object(D.jsxs)(v.a,{nav:!0,children:[Object(D.jsxs)(P.a,{caret:!0,color:"default",nav:!0,onClick:function(e){return e.preventDefault()},children:[Object(D.jsx)("div",{className:"photo",children:Object(D.jsx)("img",{alt:"...",src:a(524).default})}),Object(D.jsx)("b",{className:"caret d-none d-lg-block d-xl-block"}),Object(D.jsx)("p",{className:"d-lg-none"})]}),Object(D.jsxs)(C.a,{className:"dropdown-navbar",tag:"ul",children:[Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})}),Object(D.jsx)(S.a,{divider:!0,tag:"li"}),Object(D.jsx)(N.a,{tag:"li",children:Object(D.jsx)(S.a,{className:"nav-item"})})]})]}),Object(D.jsx)("li",{className:"separator d-lg-none"})]})})]})}),Object(D.jsx)(k.a,{modalClassName:"modal-search",isOpen:l,toggle:L,children:Object(D.jsxs)(E.a,{children:[Object(D.jsx)(A.a,{placeholder:"SEARCH",type:"text"}),Object(D.jsx)("button",{"aria-label":"Close",className:"close",onClick:L,children:Object(D.jsx)("i",{className:"tim-icons icon-simple-remove"})})]})})]})};var Se=function(e){var t=Object(l.h)(),a=c.a.useRef(null),n=c.a.useState(-1!==document.documentElement.className.indexOf("nav-open")),r=Object(d.a)(n,2),o=r[0],s=r[1];c.a.useEffect((function(){if(navigator.platform.indexOf("Win")>-1){document.documentElement.className+=" perfect-scrollbar-on",document.documentElement.classList.remove("perfect-scrollbar-off"),Ce=new j.a(a.current,{suppressScrollX:!0});for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)Ce=new j.a(e[t])}document.body.classList.add("rtl","menu-on-right");var n=document.head,r=document.createElement("link");return r.type="text/css",r.rel="stylesheet",r.id="rtl-id",r.href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-rtl/3.4.0/css/bootstrap-rtl.css",n.appendChild(r),function(){navigator.platform.indexOf("Win")>-1&&(Ce.destroy(),document.documentElement.classList.add("perfect-scrollbar-off"),document.documentElement.classList.remove("perfect-scrollbar-on")),document.body.classList.remove("rtl","menu-on-right"),document.getElementById("rtl-id").remove()}})),c.a.useEffect((function(){if(navigator.platform.indexOf("Win")>-1)for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)Ce=new j.a(e[t]);document.documentElement.scrollTop=0,document.scrollingElement.scrollTop=0,a.current&&(a.current.scrollTop=0)}),[t]);var i=function(){document.documentElement.classList.toggle("nav-open"),s(!o)},b=function(e){for(var a=0;a<oe.length;a++)if(-1!==t.pathname.indexOf(oe[a].layout+oe[a].path))return oe[a].name;return"Login"};return Object(D.jsx)(D.Fragment,{children:Object(D.jsx)(M.Consumer,{children:function(e){var n,r=e.color,s=e.changeColor;return Object(D.jsxs)(c.a.Fragment,{children:[Object(D.jsxs)("div",{className:"wrapper",children:[Object(D.jsx)(I,{routes:oe,rtlActive:!0,logo:{outterLink:"",text:"SAGATEC",imgSrc:q},toggleSidebar:i}),Object(D.jsxs)("div",{className:"main-panel",ref:a,data:r,children:[Object(D.jsx)(Ne,{brandText:b(t.pathname),toggleSidebar:i,sidebarOpened:o}),Object(D.jsx)(l.d,{children:(n=oe,n.map((function(e,t){return"/rtl"===e.layout?Object(D.jsx)(l.b,{path:e.layout+e.path,component:e.component},t):null})))}),"/admin/maps"===t.pathname?null:Object(D.jsx)(B,{fluid:!0})]})]}),Object(D.jsx)(Y,{bgColor:r,handleBgClick:s})]})}})})};a(525),a(526),a(527),a(528);function ke(e){var t=Object(r.useState)(U),a=Object(d.a)(t,2),n=a[0],c=a[1];return Object(r.useEffect)((function(){switch(n){case F:document.body.classList.add("white-content");break;case U:default:document.body.classList.remove("white-content")}}),[n]),Object(D.jsx)(z.Provider,{value:{theme:n,changeTheme:function(e){c(e)}},children:e.children})}function Ee(e){var t=Object(r.useState)(L),a=Object(d.a)(t,2),n=a[0],c=a[1];return Object(D.jsx)(M.Provider,{value:{color:n,changeColor:function(e){c(e)}},children:e.children})}s.a.render(Object(D.jsx)(ke,{children:Object(D.jsx)(Ee,{children:Object(D.jsx)(i.a,{children:Object(D.jsxs)(l.d,{children:[Object(D.jsx)(l.b,{path:"/admin",render:function(e){return Object(D.jsx)(ve,Object(n.a)({},e))}}),Object(D.jsx)(l.b,{path:"/rtl",render:function(e){return Object(D.jsx)(Se,Object(n.a)({},e))}}),Object(D.jsx)(l.a,{from:"/admin/login",to:"/"}),Object(D.jsx)(l.a,{from:"/",to:"/admin/login"})]})})})}),document.getElementById("root"))}},[[529,1,2]]]);
//# sourceMappingURL=main.6005ec6b.chunk.js.map