1"use strict";(self.webpackChunk_geovelo_frontends_companies=self.webpackChunk_geovelo_frontends_companies||[]).push([[6675],{13463:function(e,n,i){var t=i(13761),o=i(64864),r=i(60060);n.A=function({children:e,onClickCapture:n,sx:i,...s}){const l=(0,o.useRef)({down:!1,moved:!1,startX:0,scrollLeft:0,scroller:null}),a=(0,o.useRef)(null);function c(e){const n=l.current;if(!n.down||!n.scroller)return;const i=e.clientX-n.startX;Math.abs(i)>3&&(n.moved=!0),n.scroller.scrollLeft=n.scrollLeft-i}function d(){l.current.down=!1,document.body.style.userSelect="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)}return(0,o.useEffect)((()=>()=>{document.body.style.userSelect="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)}),[]),(0,o.useEffect)((()=>{var e;const n=null===(e=a.current)||void 0===e?void 0:e.querySelector(".MuiTabs-scroller");if(n)return n.addEventListener("wheel",i,{passive:!1}),()=>n.removeEventListener("wheel",i);function i(e){Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.preventDefault(),n.scrollLeft+=e.deltaY)}}),[]),(0,r.jsx)(t.A,{...s,allowScrollButtonsMobile:!0,onClickCapture:e=>{l.current.moved&&(e.stopPropagation(),l.current.moved=!1),null===n||void 0===n||n(e)},onMouseDown:function(e){const n=e.currentTarget.querySelector(".MuiTabs-scroller");n&&(l.current={down:!0,moved:!1,startX:e.clientX,scrollLeft:n.scrollLeft,scroller:n},document.body.style.userSelect="none",document.addEventListener("mousemove",c),document.addEventListener("mouseup",d))},ref:a,scrollButtons:"auto",sx:{cursor:"grab","&:active":{cursor:"grabbing"},...i},variant:"scrollable",children:e})}},24261:function(e,n,i){var t=i(84188),o=i(60060);n.A=(0,t.A)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},26675:function(e,n,i){i.r(n),i.d(n,{default:function(){return L}});var t=i(84188),o=i(60060),r=(0,t.A)((0,o.jsx)("path",{d:"M17 11V3H7v4H3v14h8v-4h2v4h8V11zM7 19H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm4 4H9v-2h2zm0-4H9V9h2zm0-4H9V5h2zm4 8h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm4 12h-2v-2h2zm0-4h-2v-2h2z"}),"Apartment"),s=i(24261),l=i(27988),a=i(4587),c=i(64864),d=i(41811),m=i(33387),u=i(90119),x=i(13463),h=i(76300),p=i(88055),g=i(90106),f=i(75922),v=i(16757),j=i(61640),A=i(29072),b=i(27525),w=i(32154),y=i(25285),k=i(46782),C=i(65721),S=i(83419),_=i(62015),D=i(95167),E=i(65108);var z=function(){const[e,n]=(0,c.useState)(""),[i,t]=(0,c.useState)(""),[r,s]=(0,c.useState)(!1),{partner:{current:a}}=(0,c.useContext)(u.BR),{t:m}=(0,d.useTranslation)(),{enqueueSnackbar:x}=(0,_.useSnackbar)(),{downloadCSV:h,downloadXLSX:p}=(0,g.useFileSaver)(),{data:z}=(0,E.A)(a);(0,c.useEffect)((()=>{let n=!0;return setTimeout((()=>{n&&t(e.trim().toLowerCase())}),300),()=>{n=!1}}),[e]);const L=(0,c.useMemo)((()=>(z||[]).filter((({title:e,code:n})=>!i||e.toLowerCase().includes(i)||(n||"").toLowerCase().includes(i)))),[z,i]);function I(e){s(!0);try{const n=[m("companies.pages.holding.communities.table.title"),m("companies.pages.holding.communities.table.code"),m("companies.pages.holding.communities.table.members_count")],i=L.map((({title:e,code:n,nbMembers:i})=>[e,n||"-",i]));"csv"===e?h("holding-communities.csv",n,i):p("holding-communities.xlsx",n,i)}catch(n){console.error(n),x(m("companies.pages.holding.communities.export_error"),{variant:"error"})}s(!1)}return(0,o.jsx)(D.Zp,{disableDivider:!0,header:(0,o.jsx)(f.A,{fontSize:"1.1rem",fontWeight:600,children:m("companies.pages.holding.communities.title")}),children:(0,o.jsxs)(l.A,{display:"flex",flexDirection:"column",gap:3,padding:3,children:[(0,o.jsx)(f.A,{color:"text.secondary",variant:"body2",children:m("companies.pages.holding.communities.description",{count:L.length})}),(0,o.jsx)(v.A,{fullWidth:!0,onChange:({currentTarget:e})=>n(e.value),placeholder:m("companies.pages.holding.communities.search"),size:"small",slotProps:{input:{startAdornment:(0,o.jsx)(j.A,{position:"start",children:(0,o.jsx)(D.WI,{})})}},value:e}),(0,o.jsxs)(l.A,{display:"flex",gap:2,children:[(0,o.jsxs)(D.$n,{color:"primary",disabled:!z||r,onClick:()=>I("xlsx"),startIcon:r?(0,o.jsx)(A.A,{color:"inherit",size:16,thickness:4}):(0,o.jsx)(D.s3,{}),variant:"outlined",children:[m("commons.actions.export")," (XLSX)"]}),(0,o.jsxs)(D.$n,{color:"primary",disabled:!z||r,onClick:()=>I("csv"),startIcon:r?(0,o.jsx)(A.A,{color:"inherit",size:16,thickness:4}):(0,o.jsx)(D.s3,{}),variant:"outlined",children:[m("commons.actions.export")," (CSV)"]})]}),(0,o.jsx)(b.A,{children:(0,o.jsxs)(w.A,{size:"small",children:[(0,o.jsx)(y.A,{children:(0,o.jsxs)(k.A,{children:[(0,o.jsx)(C.A,{children:m("companies.pages.holding.communities.table.title")}),(0,o.jsx)(C.A,{children:m("companies.pages.holding.communities.table.code")}),(0,o.jsx)(C.A,{align:"right",children:m("companies.pages.holding.communities.table.members_count")})]})}),(0,o.jsx)(S.A,{children:L.map((({id:e,title:n,code:i,nbMembers:t})=>(0,o.jsxs)(k.A,{children:[(0,o.jsx)(C.A,{children:n}),(0,o.jsx)(C.A,{children:i||"-"}),(0,o.jsx)(C.A,{align:"right",children:t})]},e)))})]})})]})})};var L=function(){const[e,n]=(0,c.useState)("communities"),{partner:{type:i},user:{employee:t}}=(0,c.useContext)(u.BR),{t:g}=(0,d.useTranslation)(),f=(0,m.Zp)();return(0,c.useEffect)((()=>{!t||"holding"===i&&t.isAdmin||f("/")}),[t,i]),null!==t&&void 0!==t&&t.isAdmin&&"holding"===i?(0,o.jsx)(h.A,{title:g("companies.pages.holding.title"),children:(0,o.jsxs)(l.A,{display:"flex",flexDirection:"column",gap:3,width:"100%",children:[(0,o.jsxs)(x.A,{onChange:(e,i)=>n(i),value:e,children:[(0,o.jsx)(a.A,{icon:(0,o.jsx)(r,{}),iconPosition:"start",label:g("companies.pages.holding.tabs.communities"),sx:{minHeight:48,textTransform:"initial"},value:"communities"}),(0,o.jsx)(a.A,{icon:(0,o.jsx)(s.A,{}),iconPosition:"start",label:g("companies.pages.holding.tabs.members"),sx:{minHeight:48,textTransform:"initial"},value:"members"})]}),"communities"===e?(0,o.jsx)(z,{}):(0,o.jsx)(p.default,{holdingScope:"communities",pageName:"holding_members"})]})}):(0,o.jsx)(m.C5,{replace:!0,to:"/"})}},65108:function(e,n,i){var t=i(90106),o=i(52264),r=i(57584);n.A=function(e,{enabled:n=!0}={}){const i=null===e||void 0===e?void 0:e.geoGroupId;return(0,o.I)({queryKey:r.l.aggregatedGroups.all(null===e||void 0===e?void 0:e.id),queryFn:()=>async function(e,n){return(await t.GeogroupService.getAggregatedGroups({geoGroupId:e,partner:n})).sort(((e,n)=>e.title.localeCompare(n.title,void 0)))}(i,e),enabled:!!e&&!!i&&n,staleTime:1/0})}},76300:function(e,n,i){i.d(n,{A:function(){return j}});var t=i(27988),o=i(89106),r=i(58628),s=i(75922),l=i(41811),a=i(33387),c=i(95167),d=i(53598),m=i(88604),u=i(64864),x=i(90119),h=i(89870),p=i(75565),g=i(85859),f=i(60060);var v=function(){const{partner:{type:e},user:{current:n,employee:i}}=(0,u.useContext)(x.BR),{t:o}=(0,l.useTranslation)(),{impersonating:r}=(0,p.A)(),{trackEvent:v}=(0,g.A)();return r?(0,f.jsxs)(t.A,{alignItems:"center",bgcolor:"#FAE3EE",display:"flex",gap:3,minHeight:60,paddingX:3,paddingY:1,width:"100%",children:[(0,f.jsxs)(t.A,{alignItems:"center",display:"flex",flexGrow:1,gap:2,children:[(0,f.jsx)(d.A,{sx:{color:"#DD428D"}}),(0,f.jsxs)(s.A,{variant:"body2",children:['Vous \xeates connect\xe9\xb7e en tant que "',null===n||void 0===n?void 0:n.username,'"
1(',null===n||void 0===n?void 0:n.email,")"]})]}),(0,f.jsx)(t.A,{alignItems:{xs:"stretch",md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},gap:1,children:(0,f.jsx)(c.$n,{onClick:()=>{try{localStorage.removeItem("impersonate_authorization_token"),localStorage.removeItem("impersonate_user_id"),window.open("/","_self")}catch{console.error("localStorage access is denied")}},size:"medium",sx:{color:"#DD428D",textDecoration:"underline !important"},variant:"text",children:"Revenir \xe0 son propre compte"})})]}):(0,f.jsx)(f.Fragment,{children:(null===i||void 0===i?void 0:i.isAdmin)&&"free"===e&&(0,f.jsxs)(t.A,{alignItems:"center",bgcolor:"#EEE8FD",borderRadius:2,display:"flex",gap:3,minHeight:60,paddingX:3,paddingY:1,width:"100%",children:[(0,f.jsxs)(t.A,{alignItems:"center",display:"flex",flexGrow:1,gap:2,children:[(0,f.jsx)(m.A,{sx:{color:"#6236BD"}}),(0,f.jsx)(s.A,{color:"#2C2E30",variant:"body2",children:"other"===i.surveyAnswers.job?o("companies.trial_banner.description_free_non_decision_maker"):o("companies.trial_banner.description_free")})]}),(0,f.jsx)(t.A,{alignItems:{xs:"stretch",md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},flexShrink:0,gap:1,children:"free"===e&&"other"===i.surveyAnswers.job?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.$n,{component:"a",href:h.c.driveLinks.communicationKitUrl,onClick:()=>{v("Communication Kit Button Clicked",{context:"Banner"})},rel:"noreferrer",size:"medium",sx:{color:"#491EA1",textDecoration:"underline !important"},target:"_blank",variant:"text",children:"Voir les ressources"}),(0,f.jsx)(c.$n,{component:"a",href:h.c.pipedriveFormUrl,onClick:()=>{v("Demo Button Clicked",{context:"Banner"})},rel:"noreferrer",size:"medium",sx:{color:"#491EA1",textDecoration:"underline !important"},target:"_blank",variant:"text",children:"Demander une d\xe9mo"})]}):(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.$n,{component:a.N_,onClick:()=>{v("free"===e?"Upgrade Offer Button Clicked":"See Offers Button Clicked",{context:"Banner"})},size:"medium",sx:{color:"#491EA1",textDecoration:"underline !important"},to:"/admin/offers",variant:"text",children:o("free"===e?"companies.actions.upgrade_offer":"companies.actions.see_offers")})})})]})})};var j=function({bgcolor:e,fullHeight:n,disableScoll:i,headerImage:d,collapseHeaderImage:m,disableContentBottomPadding:u,backPath:x,backPathState:h,avatar:p,title:g,titleLines:j,subtitle:A,badge:b,children:w,actions:y,onBackButtonClick:k,bleedContent:C,maxWidth:S,topBanner:_}){const{t:D}=(0,l.useTranslation)();return(0,f.jsxs)(t.A,{bgcolor:e||"#F6F8FC",display:n||C?"flex":void 0,flexDirection:n||C?"column":void 0,id:"page-layout-content",minHeight:"100%",position:"relative",...i?{height:"100%",overflow:"hidden"}:{},children:[(0,f.jsx)(v,{}),d&&(0,f.jsx)(t.A,{sx:{aspectRatio:2.5,backgroundColor:"#E3E7EE",backgroundImage:`url(${d})`,backgroundPosition:"center top",backgroundRepeat:"no-repeat",backgroundSize:"cover",maxHeight:m?0:432,opacity:m?0:1,overflow:"hidden",transition:"max-height 0.4s ease, opacity 0.25s ease"},width:"100%"}),_,(0,f.jsxs)(t.A,{display:n||C?"flex":void 0,flexDirection:n||C?"column":void 0,flexGrow:n||C?1:void 0,marginLeft:"auto",marginRight:"auto",maxWidth:null!==S&&void 0!==S?S:1080,width:"100%",children:[(0,f.jsx)(t.A,{display:n&&!C?"flex":void 0,flexDirection:n&&!C?"column":void 0,flexGrow:n&&!C?1:void 0,overflow:i&&!C?"hidden":void 0,paddingBottom:C||u?0:{xs:3,sm:5},paddingTop:{xs:3,sm:5},paddingX:{xs:2,sm:3,md:"64px"},width:"100%",children:(0,f.jsxs)(t.A,{alignItems:"start",display:"flex",flexDirection:"column",flexGrow:n&&!C?1:void 0,gap:3,overflow:i&&!C?"hidden":void 0,children:[(0,f.jsxs)(t.A,{alignItems:{xs:"stretch",md:"center"},alignSelf:"stretch",display:"flex",flexDirection:{xs:"column",md:"row"},gap:2,minHeight:48,children:[(0,f.jsxs)(t.A,{alignItems:"center",display:"flex",flexGrow:1,flexWrap:{xs:"nowrap",sm:"wrap"},gap:2,minWidth:0,rowGap:1,children:[x?(0,f.jsx)(t.A,{flexShrink:0,width:48,children:(0,f.jsx)(o.A,{title:D("commons.actions.go_back"),children:(0,f.jsx)(r.A,{component:a.N_,state:h,to:x,children:(0,f.jsx)(c.YJ,{})})})}):k&&(0,f.jsx)(t.A,{flexShrink:0,width:48,children:(0,f.jsx)(o.A,{title:D("commons.actions.go_back"),children:(0,f.jsx)(r.A,{onClick:k,children:(0,f.jsx)(c.YJ,{})})})}),p,g&&(0,f.jsxs)(t.A,{display:"flex",flexDirection:"column",gap:.5,minWidth:0,children:[(0,f.jsx)(s.A,{component:"h1",sx:{fontSize:{xs:20,sm:32},fontWeight:800,...j?{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:j}:{overflow:{xs:"hidden",sm:"visible"},textOverflow:{xs:"ellipsis",sm:"clip"},whiteSpace:{xs:"nowrap",sm:"normal"}}},variant:"h5",children:g}),A]}),b&&(0,f.jsx)(t.A,{flexShrink:0,children:b})]}),y&&(0,f.jsx)(t.A,{alignItems:"center",display:"flex",flexShrink:0,gap:2,justifyContent:{xs:"flex-start",md:"flex-end"},children:y})]}),w]})}),C&&(0,f.jsx)(t.A,{display:n?"flex":void 0,flexDirection:n?"column":void 0,flexGrow:n?1:void 0,overflow:i?"hidden":void 0,children:C})]})]})}}}]); 2//# sourceMappingURL=6675.c28de8dd.chunk.js.map
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.