/*!

=========================================================
* 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.ec9cdbda.chunk.js.LICENSE.txt */
(this["webpackJsonpblack-dashboard-react"]=this["webpackJsonpblack-dashboard-react"]||[]).push([[0],{108:function(e,t,a){"use strict";(function(e){var n=a(13),r=a(0),c=a.n(r),s=a(16),o=a(64),i=a(50),l=a(159),d=a(160),j=a(161),b=a(25),m=a.n(b),u=a(47),h=a(48),O=a(29),p=a(1);t.a=function(t){var a=Object(r.useState)([]),b=Object(n.a)(a,2),x=b[0],g=b[1],f=Object(r.useState)([]),v=Object(n.a)(f,2),N=v[0],C=v[1],A=-1,E=c.a.useState(-1!==document.documentElement.className.indexOf("nav-open")),S=Object(n.a)(E,2),k=S[0],T=S[1];if(Object(r.useEffect)((function(){m.a.post("http://dashboard-api.mcsystem.net/api/getArticles",{GetData:B}).then((function(e){g(e.data)}))}),[]),Object(r.useEffect)((function(){m.a.post("http://dashboard-api.mcsystem.net/api/getCategorie",{GetCategorie:D}).then((function(e){C(e.data)}))}),[]),void 0==t.location.state.detail)return Object(p.jsx)(s.a,{to:"/admin/login"});var D="select * from "+t.location.state.detail+"_categories",B="select * from "+t.location.state.detail+"_articles";return A=t.location.state.detail,Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(u.a,{routes:O.a,logo:{outterLink:"",text:"Dashboard",imgSrc:h.a},IDmagasin:A,toggleSidebar:function(){document.documentElement.classList.toggle("nav-open"),T(!k)}}),Object(p.jsx)("div",{className:"content",children:N.map((function(t){return Object(p.jsx)(o.a,{children:Object(p.jsx)(i.a,{md:"12",children:Object(p.jsxs)(l.a,{children:[Object(p.jsxs)(d.a,{children:[Object(p.jsxs)("h5",{className:"title",children:[t.designation," "]}),Object(p.jsx)("p",{className:"category"})]}),Object(p.jsx)(j.a,{className:"all-icons",children:Object(p.jsx)(o.a,{children:x.map((function(a){if(a.categorie_id==t.category_id){var n="val.image_file",r=new e(n).toString("base64");return console.log("img : "+n),console.log("the base :"+r),Object(p.jsx)(i.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(p.jsxs)("div",{className:"font-icon-detail",children:[Object(p.jsx)("i",{className:"tim-icons icon-tag"}),Object(p.jsx)("img",{src:"data:image/jpeg;base64,".concat(r)}),Object(p.jsx)("h4",{children:" "}),Object(p.jsx)("h5",{children:a.nom}),Object(p.jsxs)("p",{children:[a.OPTIONS,"DH"]}),Object(p.jsx)("select",{children:Object(p.jsx)("option",{value:"volvo",children:"Volvo"})})]})})}}))})})]})})})}))})]})}}).call(this,a(23).Buffer)},109:function(e,t,a){"use strict";var n=a(13),r=a(0),c=a(16),s=a(25),o=a.n(s),i=a(64),l=a(50),d=a(159),j=a(160),b=a(161),m=a(548),u=a(162),h=a(158),O=a(549),p=a(156),x=a(1);t.a=function(e){var t,a=Object(r.useState)(""),s=Object(n.a)(a,2),g=s[0],f=s[1],v=Object(r.useState)(""),N=Object(n.a)(v,2),C=N[0],A=N[1],E=Object(r.useState)(""),S=Object(n.a)(E,2),k=S[0],T=S[1];return o.a.defaults.withCredentials=!0,void 0==e.location.state?Object(x.jsx)(c.a,{to:"/admin/login"}):(t=e.location.state.detail,Object(x.jsx)(x.Fragment,{children:Object(x.jsx)("div",{className:"content",children:Object(x.jsxs)(i.a,{children:[Object(x.jsx)(l.a,{md:"8",children:Object(x.jsxs)(d.a,{children:[Object(x.jsx)(j.a,{children:Object(x.jsx)("h5",{className:"title",children:"Edit Profile"})}),Object(x.jsx)(b.a,{children:Object(x.jsxs)(m.a,{children:[Object(x.jsx)(i.a,{children:Object(x.jsx)(l.a,{className:"pr-md-1",md:"5",children:Object(x.jsxs)(u.a,{children:[Object(x.jsx)("label",{children:"Ancien mot de passe"}),Object(x.jsx)(h.a,{onChange:function(e){A(e.target.value)},desaible:!0,placeholder:"Mot de passe",type:"text"}),Object(x.jsx)("p",{id:"mdpIncorrecte",children:k&&Object(x.jsx)("span",{className:"error",children:k})})]})})}),Object(x.jsxs)(i.a,{children:[Object(x.jsx)(l.a,{className:"pr-md-1",md:"6",children:Object(x.jsxs)(u.a,{children:[Object(x.jsx)("label",{children:"Nouveau mot de passe"}),Object(x.jsx)(h.a,{placeholder:"Nouveau mot de passe",type:"text"})]})}),Object(x.jsx)(l.a,{className:"pl-md-1",md:"6",children:Object(x.jsxs)(u.a,{children:[Object(x.jsx)("label",{children:"Confirmer mot de passe"}),Object(x.jsx)(h.a,{onChange:function(e){f(e.target.value)},placeholder:"Confirmer mot de passe",type:"text"})]})})]})]})}),Object(x.jsx)(O.a,{children:Object(x.jsx)(p.a,{className:"btn-fill",color:"primary",type:"submit",onClick:function(){o.a.post("http://dashboard-api.mcsystem.net/Update",{IDmagasin:t,password:C}).then((function(e){e.data.length>0?o.a.post("http://dashboard-api.mcsystem.net/Update/mdp",{Newpassword:g,IDmagasin:t}).then((function(e){console.log(e),T("Mot de passe Modifi\xe9")})):T("\u274c Mot de passe incorrect")}))},children:"Save"})})]})}),Object(x.jsx)(l.a,{md:"4"})]})})}))}},113:function(e,t,a){"use strict";var n=a(13),r=a(0),c=a.n(r),s=a(6),o=a.n(s),i=a(266),l=a(25),d=a.n(l),j=a(47),b=a(29),m=a(16),u=a(48),h=a(64),O=a(50),p=a(159),x=a(160),g=a(594),f=a(595),v=a(156),N=a(161),C=a(596),A=(a(416),a(1));t.a=function(e){var t=Object(r.useState)([]),a=Object(n.a)(t,2),s=a[0],l=a[1],E=Object(r.useState)([]),S=Object(n.a)(E,2),k=S[0],T=S[1],D=Object(r.useState)([]),B=Object(n.a)(D,2),y=B[0],L=B[1],R=Object(r.useState)([]),w=Object(n.a)(R,2),M=w[0],U=w[1],I=Object(r.useState)([]),P=Object(n.a)(I,2),H=P[0],G=P[1],F=Object(r.useState)([]),W=Object(n.a)(F,2),Y=W[0],X=W[1],z=Object(m.g)(),J=-1,V="",q="",Q="",Z="",K="",_="",$=c.a.useState(-1!==document.documentElement.className.indexOf("nav-open")),ee=Object(n.a)($,2),te=ee[0],ae=ee[1],ne=c.a.useState("data1"),re=Object(n.a)(ne,2),ce=re[0],se=re[1],oe=function(e){se(e)};Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/Mois",{IDclient:V}).then((function(e){L(e.data)}))}),[]),Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/chart",{GatChart:Z}).then((function(e){U(e.data)}))}),[]),Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/chartAnnee",{GetChartAnnee:_}).then((function(e){console.log(e.data),X(e.data)}))}),[]),Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/chartMois",{GetChartMois:K}).then((function(e){G(e.data)}))}),[]),Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/Annee",{GetAnnee:Q}).then((function(e){T(e.data)}))}),[]),Object(r.useEffect)((function(){d.a.post("http://dashboard-api.mcsystem.net/api/get",{GetData:q}).then((function(e){l(e.data)}))}),[]);var ie={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:M.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:M.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:H.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:H.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 console.log("idmagasin : "+e.location.state.detail),void 0==e.location.state?Object(A.jsx)(m.a,{to:"/admin/login"}):(V="SELECT ROUND(SUM(RECETTE),2) AS TotalMois FROM "+e.location.state.detail+"_GlobalCloud WHERE MONTH(CURDATE()) = SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) LIMIT 1;",q="Select * from "+e.location.state.detail+"_GlobalCloud ORDER BY ID DESC LIMIT 1",Q="SELECT ROUND(SUM(RECETTE),2) AS TotalAnn\xe9e FROM "+e.location.state.detail+"_GlobalCloud WHERE YEAR(CURDATE()) = SUBSTRING_INDEX( DATE ,'/',-1) LIMIT 1;",Z="Select * from "+e.location.state.detail+"_GlobalCloud WHERE SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) =MONTH(CURRENT_DATE()) ORDER BY ID DESC ",K="SELECT SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) AS Mois ,ROUND(SUM(RECETTE),2) AS TotalMois FROM "+e.location.state.detail+"_GlobalCloud WHERE SUBSTRING_INDEX( DATE ,'/',-1) = YEAR(CURDATE()) GROUP BY SUBSTRING_INDEX(SUBSTRING_INDEX( DATE ,'/',-2) ,'/',1) ORDER BY Mois desc LIMIT 12 ;",_="SELECT ROUND(SUM(RECETTE),2) AS TotalAnn\xe9e ,  SUBSTRING_INDEX( DATE ,'/',-1) AS Annee FROM "+e.location.state.detail+"_GlobalCloud GROUP BY Annee ORDER BY Annee desc ;",J=e.location.state.detail,Object(A.jsxs)(A.Fragment,{children:[Object(A.jsx)(j.a,{routes:b.a,logo:{outterLink:"",text:"Dashboard",imgSrc:u.a},IDmagasin:J,toggleSidebar:function(){document.documentElement.classList.toggle("nav-open"),ae(!te)}}),Object(A.jsxs)("div",{className:"content",children:[Object(A.jsxs)(h.a,{children:[Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",onClick:function(){z.push({pathname:"/admin/dashboard",state:{detail:J}})},children:[Object(A.jsx)("img",{src:"data:image/png;base64, "}),Object(A.jsx)("h5",{})]})}),Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",children:[Object(A.jsx)("i",{className:"tim-icons icon-coins"}),s.map((function(e){return Object(A.jsxs)("p",{children:["Recette du ",e.DATE]})})),s.map((function(e){return Object(A.jsxs)("h4",{children:[e.RECETTE," DH"]})}))]})}),Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",children:[Object(A.jsx)("i",{className:"tim-icons icon-money-coins"}),Object(A.jsx)("p",{children:"Recette de ce mois"}),y.map((function(e){return Object(A.jsxs)("h4",{children:[e.TotalMois," DH"]})}))]})}),Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",children:[Object(A.jsx)("i",{className:"tim-icons icon-calendar-60"}),Object(A.jsx)("p",{children:"Recette de l'ann\xe9e"}),k.map((function(e){return Object(A.jsxs)("h4",{children:[e.TotalAnn\u00e9e," DH"]})}))]})}),Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",children:[Object(A.jsx)("i",{className:"tim-icons icon-alert-circle-exc"}),s.map((function(e){return Object(A.jsxs)("p",{children:["Annulation du ",e.DATE," "]})})),s.map((function(e){return Object(A.jsxs)("h4",{children:[e.Annulation," DH"]})}))]})}),Object(A.jsx)(O.a,{className:"font-icon-list col-xs-6 col-xs-6",lg:"2",md:"3",sm:"4",children:Object(A.jsxs)("div",{className:"font-icon-detail",children:[Object(A.jsx)("i",{className:"tim-icons icon-gift-2"}),s.map((function(e){return Object(A.jsxs)("p",{children:["Gratuit\xe9 du ",e.DATE]})})),s.map((function(e){return Object(A.jsxs)("h4",{children:[e.Gratuit\u00e9," DH"]})}))]})})]}),Object(A.jsx)(h.a,{children:Object(A.jsx)(O.a,{xs:"12",children:Object(A.jsxs)(p.a,{className:"card-chart",children:[Object(A.jsx)(x.a,{children:Object(A.jsxs)(h.a,{children:[Object(A.jsxs)(O.a,{className:"text-left",sm:"6",children:[Object(A.jsx)("h5",{className:"card-category"}),Object(A.jsx)(g.a,{tag:"h2",children:"Performance"})]}),Object(A.jsx)(O.a,{sm:"6",children:Object(A.jsxs)(f.a,{className:"btn-group-toggle float-right","data-toggle":"buttons",children:[Object(A.jsxs)(v.a,{tag:"label",className:o()("btn-simple",{active:"data1"===ce}),color:"info",id:"0",size:"sm",onClick:function(){return oe("data1")},children:[Object(A.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Jours"}),Object(A.jsx)("span",{className:"d-block d-sm-none",children:Object(A.jsx)("i",{className:"tim-icons icon-coins"})})]}),Object(A.jsxs)(v.a,{color:"info",id:"1",size:"sm",tag:"label",className:o()("btn-simple",{active:"data2"===ce}),onClick:function(){return oe("data2")},children:[Object(A.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Mois"}),Object(A.jsx)("span",{className:"d-block d-sm-none",children:Object(A.jsx)("i",{className:"tim-icons icon-money-coins"})})]}),Object(A.jsxs)(v.a,{color:"info",id:"2",size:"sm",tag:"label",className:o()("btn-simple",{active:"data3"===ce}),onClick:function(){return oe("data3")},children:[Object(A.jsx)("span",{className:"d-none d-sm-block d-md-block d-lg-block d-xl-block",children:"Ann\xe9e"}),Object(A.jsx)("span",{className:"d-block d-sm-none",children:Object(A.jsx)("i",{className:"tim-icons icon-calendar-60"})})]})]})})]})}),Object(A.jsx)(N.a,{children:Object(A.jsx)("div",{className:"chart-area",children:Object(A.jsx)(i.Line,{data:ie[ce],options:ie.options})})})]})})}),Object(A.jsxs)(h.a,{children:[Object(A.jsx)(O.a,{lg:"6",md:"12",children:Object(A.jsxs)(p.a,{children:[Object(A.jsx)(x.a,{children:Object(A.jsx)(g.a,{tag:"h4",children:"Derniers Tickets"})}),Object(A.jsx)(N.a,{children:Object(A.jsxs)(C.a,{className:"tablesorter",responsive:!0,children:[Object(A.jsx)("thead",{className:"text-primary",children:Object(A.jsx)("tr",{})}),Object(A.jsxs)("tbody",{children:[Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierTicket1," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierTicket2," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierTicket3," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierTicket4," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsx)("td",{children:e.DernierTicket5})}))})]})]})})]})}),Object(A.jsx)(O.a,{lg:"6",md:"12",children:Object(A.jsxs)(p.a,{children:[Object(A.jsx)(x.a,{children:Object(A.jsx)(g.a,{tag:"h4",children:"Derniers Produits Annul\xe9s"})}),Object(A.jsx)(N.a,{children:Object(A.jsxs)(C.a,{className:"tablesorter",responsive:!0,children:[Object(A.jsx)("thead",{className:"text-primary",children:Object(A.jsx)("tr",{})}),Object(A.jsxs)("tbody",{children:[Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierProduitAnnul\u00e91," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierProduitAnnul\u00e92," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierProduitAnnul\u00e93," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierProduitAnnul\u00e94," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsx)("td",{children:e.DernierProduitAnnul\u00e95})}))})]})]})})]})})]}),Object(A.jsxs)(h.a,{children:[Object(A.jsx)(O.a,{lg:"6",md:"12",children:Object(A.jsxs)(p.a,{children:[Object(A.jsx)(x.a,{children:Object(A.jsx)(g.a,{tag:"h4",children:"Top vente Produit"})}),Object(A.jsx)(N.a,{children:Object(A.jsxs)(C.a,{className:"tablesorter",responsive:!0,children:[Object(A.jsx)("thead",{className:"text-primary",children:Object(A.jsx)("tr",{})}),Object(A.jsxs)("tbody",{children:[Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.TopProduit1," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.TopProduit2," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.TopProduit3," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.TopProduit4," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsx)("td",{children:e.TopProduit5})}))})]})]})})]})}),Object(A.jsx)(O.a,{lg:"6",md:"12",children:Object(A.jsxs)(p.a,{children:[Object(A.jsx)(x.a,{children:Object(A.jsx)(g.a,{tag:"h4",children:"Derni\xe8re Carte Annul\xe9e"})}),Object(A.jsx)(N.a,{children:Object(A.jsxs)(C.a,{className:"tablesorter",responsive:!0,children:[Object(A.jsx)("thead",{className:"text-primary",children:Object(A.jsx)("tr",{})}),Object(A.jsxs)("tbody",{children:[Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierCarteAnnul\u00e91," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierCarteAnnul\u00e92," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierCarteAnnul\u00e93," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsxs)("td",{children:[e.DernierCarteAnnul\u00e94," "]})}))}),Object(A.jsx)("tr",{children:s.map((function(e){return Object(A.jsx)("td",{children:e.DernierCarteAnnul\u00e95})}))})]})]})})]})})]})]})]}))}},150:function(e,t,a){"use strict";var n=a(13),r=a(0),c=a(16),s=a(64),o=a(50),i=a(159),l=a(160),d=a(161),j=a(25),b=a.n(j),m=a(47),u=a(48),h=a(1);t.a=function(e){var t=Object(c.g)(),a=Object(r.useState)([]),j=Object(n.a)(a,2),O=j[0],p=j[1],x=-1;return Object(r.useEffect)((function(){b.a.post("http://dashboard-api.mcsystem.net/api/Magasins",{IDclient:x}).then((function(e){p(e.data)}))}),[]),void 0==e.location.state?Object(h.jsx)(c.a,{to:"/admin/login"}):(x=e.location.state.detail[0].IDclient,Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(m.a,{logo:{outterLink:"",text:"Dashboard",imgSrc:u.a}}),Object(h.jsx)("div",{className:"content",children:Object(h.jsx)(s.a,{children:Object(h.jsx)(o.a,{md:"12",children:Object(h.jsxs)(i.a,{children:[Object(h.jsxs)(l.a,{children:[Object(h.jsx)("h5",{className:"title",children:"Vos magasins"}),Object(h.jsx)("p",{className:"category",children:"S\xe9lectionnez le magasin que vous voulez"})]}),Object(h.jsx)(d.a,{className:"all-icons",children:Object(h.jsx)(s.a,{children:O.map((function(e){return Object(h.jsx)(o.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(h.jsxs)("div",{className:"font-icon-detail",children:[Object(h.jsx)("i",{className:"tim-icons icon-square-pin"}),Object(h.jsx)("h4",{children:" "}),Object(h.jsx)("h4",{children:e.NomMagasin})]})})}))})})]})})})})]}))}},28:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return c}));var n=a(0),r={primary:"primary",blue:"blue",green:"green"},c=Object(n.createContext)({color:r.blue,changeColor:function(e){}})},29:function(e,t,a){"use strict";var n=a(113),r=(a(150),a(108)),c=a(109),s=[{path:"/dashboard",name:"Dashboard",rtlName:"\u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629",icon:"tim-icons icon-chart-pie-36",component:n.a,layout:"/admin"},{path:"/articles",name:"Modifier mot de passe",rtlName:"\u0627\u0644\u0631\u0645\u0648\u0632",icon:"tim-icons icon-tag",component:r.a,layout:"/admin"},{path:"/user-profile",name:"User Profile",rtlName:"\u0645\u0644\u0641 \u062a\u0639\u0631\u064a\u0641\u064a \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645",icon:"tim-icons icon-single-02",component:c.a,layout:"/admin"}];t.a=s},416: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"}}]}}}}},419:function(e,t,a){},422:function(e,t){},424:function(e,t){},438:function(e,t){},440:function(e,t){},468:function(e,t){},47:function(e,t,a){"use strict";var n,r=a(0),c=a.n(r),s=a(16),o=a(34),i=a(42),l=a(547),d=a(28),j=a(1);function b(e){var t=Object(s.h)(),a=c.a.useRef(null);c.a.useEffect((function(){return navigator.platform.indexOf("Win")>-1&&(n=new i.a(a.current,{suppressScrollX:!0,suppressScrollY:!1})),function(){navigator.platform.indexOf("Win")>-1&&n.destroy()}}));var r=e.routes,b=e.rtlActive,m=e.logo,u=e.IDmagasin,h=(e.IDclient,null),O=null;return void 0!==m&&(void 0!==m.outterLink?(h=Object(j.jsx)("a",{href:m.outterLink,className:"simple-text logo-mini",target:"_blank",onClick:e.toggleSidebar,children:Object(j.jsx)("div",{className:"logo-img",children:Object(j.jsx)("img",{src:m.imgSrc,alt:"react-logo"})})}),O=Object(j.jsx)("a",{href:m.outterLink,className:"simple-text logo-normal",target:"_blank",onClick:e.toggleSidebar,children:m.text})):(h=Object(j.jsx)(o.b,{to:m.innerLink,className:"simple-text logo-mini",onClick:e.toggleSidebar,children:Object(j.jsx)("div",{className:"logo-img",children:Object(j.jsx)("img",{src:m.imgSrc,alt:"react-logo"})})}),O=Object(j.jsx)(o.b,{to:m.innerLink,className:"simple-text logo-normal",onClick:e.toggleSidebar,children:m.text}))),Object(j.jsx)(d.a.Consumer,{children:function(n){var c=n.color;return Object(j.jsx)("div",{className:"sidebar",data:c,children:Object(j.jsxs)("div",{className:"sidebar-wrapper",ref:a,children:[null!==h||null!==O?Object(j.jsxs)("div",{className:"logo",children:[h,O]}):null,Object(j.jsxs)(l.a,{children:[r.map((function(a,n){return a.redirect?null:Object(j.jsx)("li",{className:(r=a.path,(t.pathname===r?"active":"")+(a.pro?" active-pro":"")),children:Object(j.jsxs)(o.c,{to:{pathname:a.layout+a.path,state:{detail:u}},className:"nav-link",activeClassName:"active",onClick:e.toggleSidebar,children:[Object(j.jsx)("i",{className:a.icon}),Object(j.jsx)("p",{children:b?a.rtlName:a.name})]})},n);var r})),Object(j.jsx)("li",{className:"active-pro"})]})]})})}})}b.defaultProps={rtlActive:!1,routes:[{}]},t.a=b},470:function(e,t){},471:function(e,t){},476:function(e,t){},478:function(e,t){},48:function(e,t,a){"use strict";t.a=a.p+"static/media/react-logo.a54cbdb6.png"},484:function(e,t){},486:function(e,t){},505:function(e,t){},517:function(e,t){},520:function(e,t){},540:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/anime3.4438e506.png"},541:function(e,t,a){},542:function(e,t,a){},543:function(e,t,a){},545:function(e,t,a){"use strict";a.r(t);var n=a(157),r=a(0),c=a.n(r),s=a(19),o=a.n(s),i=a(34),l=a(16),d=a(13),j=a(42),b=a(6),m=a.n(b),u=a(584),h=a(585),O=a(586),p=a(587),x=a(547),g=a(588),f=a(589),v=a(608),N=a(590),C=a(591),A=a(607),E=a(592),S=a(158),k=a(1);var T=function(e){var t=c.a.useState(!1),a=Object(d.a)(t,2),n=a[0],r=a[1],s=c.a.useState(!1),o=Object(d.a)(s,2),i=o[0],l=o[1],j=c.a.useState("navbar-transparent"),b=Object(d.a)(j,2),T=b[0],D=b[1];c.a.useEffect((function(){return window.addEventListener("resize",B),function(){window.removeEventListener("resize",B)}}));var B=function(){window.innerWidth<993&&n?D("bg-white"):D("navbar-transparent")},y=function(){l(!i)};return Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)(u.a,{className:m()("navbar-absolute",T),expand:"lg",children:Object(k.jsxs)(h.a,{fluid:!0,children:[Object(k.jsx)("div",{className:"navbar-wrapper",children:Object(k.jsx)("div",{className:m()("navbar-toggle d-inline",{toggled:e.sidebarOpened}),children:Object(k.jsxs)(O.a,{onClick:e.toggleSidebar,children:[Object(k.jsx)("span",{className:"navbar-toggler-bar bar1"}),Object(k.jsx)("span",{className:"navbar-toggler-bar bar2"}),Object(k.jsx)("span",{className:"navbar-toggler-bar bar3"})]})})}),Object(k.jsxs)(O.a,{onClick:function(){D(n?"navbar-transparent":"bg-white"),r(!n)},children:[Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"})]}),Object(k.jsx)(p.a,{navbar:!0,isOpen:n,children:Object(k.jsxs)(x.a,{className:"ml-auto",navbar:!0,children:[Object(k.jsx)(g.a,{className:"search-bar"}),Object(k.jsx)(f.a,{nav:!0,children:Object(k.jsxs)(v.a,{className:"dropdown-navbar",right:!0,tag:"ul",children:[Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Mike John responded to your email"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"You have 5 more tasks"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Your friend Michael is in town"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Another notification"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Another one"})})]})}),Object(k.jsx)(f.a,{nav:!0,children:Object(k.jsxs)(v.a,{className:"dropdown-navbar",right:!0,tag:"ul",children:[Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})}),Object(k.jsx)(C.a,{divider:!0,tag:"li"}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})})]})}),Object(k.jsx)("li",{className:"separator d-lg-none"})]})})]})}),Object(k.jsx)(A.a,{modalClassName:"modal-search",isOpen:i,toggle:y,children:Object(k.jsxs)(E.a,{children:[Object(k.jsx)(S.a,{placeholder:"SEARCH",type:"text"}),Object(k.jsx)("button",{"aria-label":"Close",className:"close",onClick:y,children:Object(k.jsx)("i",{className:"tim-icons icon-simple-remove"})})]})})]})};var D=function(){return Object(k.jsx)("footer",{className:"footer",children:Object(k.jsxs)(h.a,{fluid:!0,children:[Object(k.jsx)(x.a,{}),Object(k.jsxs)("div",{className:"copyright",children:["\xa9 ",(new Date).getFullYear()]})]})})},B=a(47),y=a(151),L=a(609),R=a(593),w="",M="white-content",U=Object(r.createContext)({theme:w,changeTheme:function(){}}),I=a(28);var P=function(e){var t=c.a.useState(!1),a=Object(d.a)(t,2),n=a[0],r=a[1];return Object(k.jsx)("div",{className:"fixed-plugin",children:Object(k.jsxs)(y.a,{isOpen:n,toggle:function(){r(!n)},children:[Object(k.jsx)(L.a,{tag:"div",children:Object(k.jsx)("i",{className:"fa fa-cog fa-2x"})}),Object(k.jsxs)("ul",{className:"dropdown-menu show",children:[Object(k.jsx)("li",{className:"header-title",children:"SIDEBAR BACKGROUND"}),Object(k.jsx)("li",{className:"adjustments-line",children:Object(k.jsxs)("div",{className:"badge-colors text-center",children:[Object(k.jsx)(R.a,{color:"primary",className:e.bgColor===I.b.primary?"active":"",onClick:function(){e.handleBgClick(I.b.primary)}})," ",Object(k.jsx)(R.a,{color:"info",className:e.bgColor===I.b.blue?"active":"",onClick:function(){e.handleBgClick(I.b.blue)}})," ",Object(k.jsx)(R.a,{color:"success",className:e.bgColor===I.b.green?"active":"",onClick:function(){e.handleBgClick(I.b.green)}})," "]})}),Object(k.jsx)("li",{className:"adjustments-line text-center color-change",children:Object(k.jsx)(U.Consumer,{children:function(e){var t=e.changeTheme;return Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)("span",{className:"color-label",children:"LIGHT MODE"})," ",Object(k.jsx)(R.a,{className:"light-badge mr-2",onClick:function(){return t(M)}})," ",Object(k.jsx)(R.a,{className:"dark-badge ml-2",onClick:function(){return t(w)}})," ",Object(k.jsx)("span",{className:"color-label",children:"DARK MODE"})," "]})}})})]})]})})},H=a(29),G=a(610),F=a(606),W=a(602),Y=a(604),X=a(605),z=a(267),J=a.n(z),V=a(597),q=a(600),Q=a(601),Z=a(25),K=a.n(Z);a(419);function _(){return Object(k.jsxs)(V.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",(new Date).getFullYear(),"."]})}var $=Object(q.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 ee,te=a(113),ae=a(150),ne=a(108),re=a(109),ce=[{path:"/login",name:"login",rtlName:"\u0627\u0644\u0631\u0645\u0648\u0632",icon:"tim-icons icon-atom",component:function(){var e=Object(l.g)(),t=$(),n=Object(r.useState)(""),c=Object(d.a)(n,2),s=c[0],o=c[1],i=Object(r.useState)(""),j=Object(d.a)(i,2),b=j[0],m=j[1],u=Object(r.useState)(""),h=Object(d.a)(u,2),O=h[0],p=h[1],x=Object(r.useState)(""),g=Object(d.a)(x,2),f=(g[0],g[1]);return a(420),K.a.defaults.withCredentials=!0,Object(r.useEffect)((function(){K.a.get("http://dashboard-api.mcsystem.net/login").then((function(e){e.data.loggedIn&&f(e.data.user[0].Login)}))}),[]),Object(k.jsxs)(Q.a,{component:"main",maxWidth:"xs",children:[Object(k.jsx)(W.a,{}),Object(k.jsxs)("div",{className:t.paper,children:[Object(k.jsx)(G.a,{className:t.avatar,children:Object(k.jsx)(J.a,{})}),Object(k.jsx)(V.a,{component:"h1",variant:"h5",children:"Sign in"}),Object(k.jsxs)("form",{className:t.form,noValidate:!0,children:[Object(k.jsx)(Y.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,InputLabelProps:{style:{color:"#B6B6B6"}},InputProps:{style:{color:"#B6B6B6"}},id:"email",label:"UserName",name:"email",onChange:function(e){o(e.target.value)},autoComplete:"email",autoFocus:!0}),Object(k.jsx)(Y.a,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,InputLabelProps:{style:{color:"#B6B6B6"}},InputProps:{style:{color:"#B6B6B6"}},name:"password",label:"Password",type:"password",id:"password",autoComplete:"current-password",onChange:function(e){m(e.target.value)}}),Object(k.jsx)(F.a,{fullWidth:!0,variant:"contained",color:"primary",className:t.submit,onClick:function(){K.a.post("http://dashboard-api.mcsystem.net/login",{username:s,password:b}).then((function(t){t.data.length>0?(e.push({pathname:"/admin/magasin",state:{detail:t.data}}),p("")):0==t.data?p("\u274c Mot de passe ou nom d'utilisateur incorrect"):1==t.data&&p("\u274c votre abonnement a expir\xe9 merci de contacter votre instalateur pour le renouveller ")}))},children:"Sign In"}),Object(k.jsx)("p",{id:"mdpIncorrecte",children:O&&Object(k.jsx)("span",{className:"error",children:O})})]})]}),Object(k.jsx)(X.a,{mt:8,children:Object(k.jsx)(_,{})})]})},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:te.a,layout:"/admin"},{path:"/magasin",name:"Magasins",rtlName:"",icon:"tim-icons icon-atom",component:ae.a,layout:"/admin"},{path:"/articles",name:"Articles",rtlName:"\u0627\u0644\u0631\u0645\u0648\u0632",icon:"tim-icons icon-atom",component:ne.a,layout:"/admin"},{path:"/user-profile",name:"User Profile",rtlName:"\u0645\u0644\u0641 \u062a\u0639\u0631\u064a\u0641\u064a \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645",icon:"tim-icons icon-single-02",component:re.a,layout:"/admin"}],se=a(48);var oe=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),s=r[0],o=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"),ee=new j.a(a.current,{suppressScrollX:!0});for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)ee=new j.a(e[t])}return function(){navigator.platform.indexOf("Win")>-1&&(ee.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++)ee=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"),o(!s)},b=function(e){for(var a=0;a<H.a.length;a++)if(-1!==t.pathname.indexOf(H.a[a].layout+H.a[a].path))return H.a[a].name;return"Login"};return Object(k.jsx)(I.a.Consumer,{children:function(e){var n,r=e.color,o=e.changeColor;return Object(k.jsxs)(c.a.Fragment,{children:[Object(k.jsx)("div",{className:"wrapper",children:Object(k.jsxs)("div",{className:"main-panel",ref:a,data:r,children:[Object(k.jsx)(T,{brandText:b(t.pathname),toggleSidebar:i,sidebarOpened:s}),Object(k.jsxs)(l.d,{children:[(n=ce,n.map((function(e,t){return"/admin"===e.layout?Object(k.jsx)(l.b,{path:e.layout+e.path,component:e.component},t):null}))),Object(k.jsx)(l.a,{from:"*",to:"/admin/login"})]}),"/admin/maps"===t.pathname?null:Object(k.jsx)(D,{fluid:!0})]})}),Object(k.jsx)(P,{bgColor:r,handleBgClick:o})]})}})},ie=a(603),le=a(156);var de,je=function(e){var t=c.a.useState(!1),n=Object(d.a)(t,2),r=n[0],s=n[1],o=c.a.useState(!1),i=Object(d.a)(o,2),l=i[0],j=i[1],b=c.a.useState("navbar-transparent"),T=Object(d.a)(b,2),D=T[0],B=T[1];c.a.useEffect((function(){return window.addEventListener("resize",y),function(){window.removeEventListener("resize",y)}}));var y=function(){window.innerWidth<993&&r?B("bg-white"):B("navbar-transparent")},R=function(){j(!l)};return Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)(u.a,{className:m()("navbar-absolute",D),expand:"lg",children:Object(k.jsxs)(h.a,{fluid:!0,children:[Object(k.jsxs)("div",{className:"navbar-wrapper",children:[Object(k.jsx)("div",{className:m()("navbar-toggle d-inline",{toggled:e.sidebarOpened}),children:Object(k.jsxs)(O.a,{type:"button",onClick:e.toggleSidebar,children:[Object(k.jsx)("span",{className:"navbar-toggler-bar bar1"}),Object(k.jsx)("span",{className:"navbar-toggler-bar bar2"}),Object(k.jsx)("span",{className:"navbar-toggler-bar bar3"})]})}),Object(k.jsx)(ie.a,{href:"#pablo",onClick:function(e){return e.preventDefault()},children:e.brandText})]}),Object(k.jsxs)(O.a,{onClick:function(){B(r?"navbar-transparent":"bg-white"),s(!r)},children:[Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"}),Object(k.jsx)("span",{className:"navbar-toggler-bar navbar-kebab"})]}),Object(k.jsx)(p.a,{navbar:!0,isOpen:r,children:Object(k.jsxs)(x.a,{className:"mr-auto",navbar:!0,children:[Object(k.jsx)(g.a,{className:"search-bar",children:Object(k.jsxs)(le.a,{color:"link",onClick:R,children:[Object(k.jsx)("i",{className:"tim-icons icon-zoom-split"}),Object(k.jsx)("span",{className:"d-lg-none d-md-block",children:"Search"})]})}),Object(k.jsxs)(f.a,{nav:!0,children:[Object(k.jsxs)(L.a,{caret:!0,color:"default","data-toggle":"dropdown",nav:!0,children:[Object(k.jsx)("div",{className:"notification d-none d-lg-block d-xl-block"}),Object(k.jsx)("i",{className:"tim-icons icon-sound-wave"}),Object(k.jsx)("p",{className:"d-lg-none",children:"Notifications"})]}),Object(k.jsxs)(v.a,{className:"dropdown-navbar",tag:"ul",right:!0,children:[Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Mike John responded to your email"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"You have 5 more tasks"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Your friend Michael is in town"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Another notification"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item",children:"Another one"})})]})]}),Object(k.jsxs)(f.a,{nav:!0,children:[Object(k.jsxs)(L.a,{caret:!0,color:"default",nav:!0,onClick:function(e){return e.preventDefault()},children:[Object(k.jsx)("div",{className:"photo",children:Object(k.jsx)("img",{alt:"...",src:a(540).default})}),Object(k.jsx)("b",{className:"caret d-none d-lg-block d-xl-block"}),Object(k.jsx)("p",{className:"d-lg-none"})]}),Object(k.jsxs)(v.a,{className:"dropdown-navbar",tag:"ul",children:[Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})}),Object(k.jsx)(C.a,{divider:!0,tag:"li"}),Object(k.jsx)(N.a,{tag:"li",children:Object(k.jsx)(C.a,{className:"nav-item"})})]})]}),Object(k.jsx)("li",{className:"separator d-lg-none"})]})})]})}),Object(k.jsx)(A.a,{modalClassName:"modal-search",isOpen:l,toggle:R,children:Object(k.jsxs)(E.a,{children:[Object(k.jsx)(S.a,{placeholder:"SEARCH",type:"text"}),Object(k.jsx)("button",{"aria-label":"Close",className:"close",onClick:R,children:Object(k.jsx)("i",{className:"tim-icons icon-simple-remove"})})]})})]})};var be=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),s=r[0],o=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"),de=new j.a(a.current,{suppressScrollX:!0});for(var e=document.querySelectorAll(".table-responsive"),t=0;t<e.length;t++)de=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&&(de.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++)de=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"),o(!s)},b=function(e){for(var a=0;a<H.a.length;a++)if(-1!==t.pathname.indexOf(H.a[a].layout+H.a[a].path))return H.a[a].name;return"Login"};return Object(k.jsx)(k.Fragment,{children:Object(k.jsx)(I.a.Consumer,{children:function(e){var n,r=e.color,o=e.changeColor;return Object(k.jsxs)(c.a.Fragment,{children:[Object(k.jsxs)("div",{className:"wrapper",children:[Object(k.jsx)(B.a,{routes:H.a,rtlActive:!0,logo:{outterLink:"",text:"SAGATEC",imgSrc:se.a},toggleSidebar:i}),Object(k.jsxs)("div",{className:"main-panel",ref:a,data:r,children:[Object(k.jsx)(je,{brandText:b(t.pathname),toggleSidebar:i,sidebarOpened:s}),Object(k.jsx)(l.d,{children:(n=H.a,n.map((function(e,t){return"/rtl"===e.layout?Object(k.jsx)(l.b,{path:e.layout+e.path,component:e.component},t):null})))}),"/admin/maps"===t.pathname?null:Object(k.jsx)(D,{fluid:!0})]})]}),Object(k.jsx)(P,{bgColor:r,handleBgClick:o})]})}})})};a(541),a(542),a(543),a(544);function me(e){var t=Object(r.useState)(w),a=Object(d.a)(t,2),n=a[0],c=a[1];return Object(r.useEffect)((function(){switch(n){case M:document.body.classList.add("white-content");break;case w:default:document.body.classList.remove("white-content")}}),[n]),Object(k.jsx)(U.Provider,{value:{theme:n,changeTheme:function(e){c(e)}},children:e.children})}function ue(e){var t=Object(r.useState)(I.b.blue),a=Object(d.a)(t,2),n=a[0],c=a[1];return Object(k.jsx)(I.a.Provider,{value:{color:n,changeColor:function(e){c(e)}},children:e.children})}o.a.render(Object(k.jsx)(me,{children:Object(k.jsx)(ue,{children:Object(k.jsx)(i.a,{children:Object(k.jsxs)(l.d,{children:[Object(k.jsx)(l.b,{path:"/admin",render:function(e){return Object(k.jsx)(oe,Object(n.a)({},e))}}),Object(k.jsx)(l.b,{path:"/rtl",render:function(e){return Object(k.jsx)(be,Object(n.a)({},e))}}),Object(k.jsx)(l.a,{from:"/admin/login",to:"/"}),Object(k.jsx)(l.a,{from:"/",to:"/admin/login"})]})})})}),document.getElementById("root"))}},[[545,1,2]]]);
//# sourceMappingURL=main.ec9cdbda.chunk.js.map