1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5557],{96461:function(e,t,s){"use strict";var n=s(59499),r=s(94024),i=s(11163),l=s(67294),a=s(9473),o=s(85893);function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)}return s}t.Z=function(e){function t(t){var s,u=(0,a.I0)(),d=(0,i.useRouter)(),h=!!(null!==(s=JSON.parse(localStorage.getItem("sessionActive")||"{}"))&&void 0!==s&&s.token);return(0,l.useEffect)(function(){h||(u((0,r.setUserConnected)(null)),u((0,r.setIsSidebar)(!1)),d.push("/login?redirect=".concat(btoa(window.location.href))))},[]),(0,o.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach(function(t){(0,n.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({},t))}return e.getInitialProps&&(t.getInitialProps=e.getInitialProps),t}},93339:function(e,t,s){"use strict";s.r(t);var n=s(90116),r=s(19096),i=s(39332),l=s(67294),a=s(91281),o=s(28837),c=s(96461),u=s(13266),d=s(33883),h=s(7682),v=s(94024),x=s(50306),m=s(9473),f=s(88773),g=s(85893);t.default=(0,c.Z)(function(){var e,t,s=(0,h.IT)("orga"),c=(0,l.useState)(null),p=c[0],j=c[1],b=(0,l.useState)(null),N=b[0],y=b[1],E=(0,i.useRouter)(),O=(0,m.I0)(),P=(0,l.useState)([]),w=P[0],C=P[1],I=(0,d.hI)(),_=I.events,k=I.isLoadingEvents,A=I.onRefreshEvents,S=I.searchInputIntoList,L=I.setSearchInputIntoList,R=I.currentPageIntoList,D=I.setCurrentPageIntoList,B=I.lastPageIntoList,G=I.totalCount,M=I.itemsPerPage,Z=I.setItemsPerPage,J=(0,v.useCreateEventStates)(),T=J.succesCreateEvent,W=J.succesCreateEventName,z=(0,v.useGlobalStates)().userConnected,F=(0,v.useGlobalStates)().isModalOpen,U=!!(null!==(e=JSON.parse(localStorage.getItem("sessionActive")||"{}"))&&void 0!==e&&e.token);return(0,l.useEffect)(function(){_&&0===_.length&&(""===S||null===S)&&E.push("/orga"),C(_)},[_]),(0,l.useEffect)(function(){if(z){var e,t,s,n;L(void 0),null!=z&&null!==(e=z.roles)&&void 0!==e&&e.includes("ROLE_ORGA")||null!=z&&null!==(t=z.roles)&&void 0!==t&&t.includes("ROLE_COORGA")||null!=z&&null!==(s=z.roles)&&void 0!==s&&s.includes("ADMIN")||null!=z&&null!==(n=z.roles)&&void 0!==n&&n.includes("ROLE_SUPER_ADMIN")?A():E.push("/orga")}},[z,T]),(0,l.useEffect)(function(){A(),O((0,v.setAreaActiv)(x.$J.ORGAAERA)),O((0,v.setIsModalOpen)(!1))},[]),(0,g.jsxs)("div",{className:"w-full min-h-screen",children:[(0,g.jsxs)("div",{className:"relative mt-[-4rem] bg-[#BFF1EA] py-16 px-8 overflow-hidden",children:[(0,g.jsx)("div",{className:"absolute opacity-30 right-0 top-0",children:(0,g.jsx)(a.oVm,{width:"588px",height:"624px"})}),(0,g.jsxs)("div",{className:"relative max-w-7xl mx-auto pt-5",children:[(0,g.jsx)("h1",{className:"text-titre-1-mobile lg:text-titre-1 font-delightBlack leading-tight",children:"Bienvenue"}),(0,g.jsx)("h2",{className:"text-titre-2-mobile lg:text-titre-2 font-delightBlack leading-tight",children:"dans votre espace organisateur"})]})]}),(0,g.jsxs)("div",{className:"max-w-7xl mx-auto lg:px-8 px-5 py-6 sm:py-8",children:[T&&(0,g.jsx)("div",{className:"bg-grayColor5 border border-primaryColor rounded-2xl p-6 mb-8 shadow-sm",children:(0,g.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,g.jsxs)("div",{className:"flex-1",children:[(0,g.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,g.jsx)("div",{className:"w-10 h-10 bg-primaryColor rounded-full flex items-center justify-center flex-shrink-0",children:(0,g.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{d:"M5 13l4 4L19 7"})})}),(0,g.jsx)("h3",{className:"text-xl font-delightBold text-grayColor1",children:"\xc9v\xe9nement cr\xe9\xe9 avec succ\xe8s !"})]}),(0,g.jsxs)("p",{className:"text-base font-delight text-grayColor1 ml-[3.25rem]",children:[(0,g.jsx)("span",{className:"font-delightBold",children:W})," ",s((null==z||null===(t=z.organizations)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.status)==="NEW"?"has_been_created_and_should_be_validated":"has_been_created")]})]}),(0,g.jsx)("button",{type:"button",className:"flex-shrink-0 text-grayColor1 hover:text-gray-900 hover:bg-gray-100 rounded-lg p-2 transition-all duration-200",onClick:function(){O((0,v.setSuccesCreateEvent)(!1)),O((0,v.setSuccesCreateEventName)(""))},children:(0,g.jsx)(a.nZc,{className:"w-5 h-5"})})]})}),(0,g.jsx)("div",{className:"flex justify-center mb-6 sm:mb-8",children:(0,g.jsx)(o.zxk,{variant:"primary",icon:(0,g.jsx)(a.pOD,{className:"w-4 h-4 text-gray-800",strokeWidth:1.5}),iconPosition:"left",title:s("create_new_event"),className:"px-5 !py-3 text-sm sm:text-base",onClick:U?function(){O((0,v.setCurrentStateCreateEvent)(0)),O((0,v.setEventDatas)({})),E.push("/orga/events/create-event")}:function(){return O((0,v.setIsModalOpen)(!0))}})}),(0,g.jsx)("div",{className:"w-full bg-grayColor5 p-4 rounded-lg",children:(0,g.jsx)("div",{className:"flex flex-col sm:flex-row justify-center sm:justify-end items-stretch sm:items-center",children:(0,g.jsx)(r.tCG,{setSearchInputIntoList:L})})}),k?(0,g.jsx)("div",{className:"flex flex-col gap-4",children:(0,n.Z)(Array(9)).map(function(e){return(0,g.jsx)(o.HeL,{addClass:"",height:"7vh"},(0,f.Z)())})}):(0,g.jsxs)("div",{className:"space-y-4",children:[(0,g.jsx)(r.se0,{events:_,setEventActive:j,setEditionActive:y,listEvents:w}),w&&w.length>9&&(0,g.jsx)("div",{className:"mt-6",children:(0,g.jsx)(u.t,{itemsPerPageInitial:10,currentPage:R,setCurrentPage:D,lastPage:B,totalCount:G,itemsPerPage:M,setItemsPerPage:Z})}),F&&(0,g.jsx)(r._Ip,{eventActive:p,setEventActive:j,setEditionActive:y,editionActive:N})]})]})]})})},52021:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orga/events",function(){return s(93339)}])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=52021)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.