1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[24155],{470437(e,t,r){r.r(t),r.d(t,{Content:()=>M,default:()=>D});var c=r(391426),a=r(257957),l=r(355104),n=r(941388),i=r(398061),s=r(570310),o=r(605274),p=r(555449),d=r(854634),x=r(762618),m=r(981224),u="members_directory.all_members",h=function(e){var t=e.activeViewType,r=e.spaceSlug,a=(0,o.NT)()?n.Vw.LIST:t,l=a===n.Vw.LIST,h=(0,i.Ir)().data,v=(0,p.N)(),b=v.filterParams,f=v.isFilteringEnabled,j=b.length>0?"".concat(u,".search_results_title"):"".concat(u,".title");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"md:hidden",children:(0,c.jsx)(x.u,{})}),(0,c.jsx)("div",{className:"md:pt-6",children:(0,c.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col gap-4 px-5 md:flex-row lg:gap-6 lg:px-0",children:[f&&(0,c.jsx)("div",{className:"top-5 hidden w-[280px] shrink-0 flex-col gap-6 self-start md:flex xl:sticky",children:(0,c.jsx)(m.u,{})}),(0,c.jsx)("div",{className:(0,s.x)("w-full min-w-0 flex-1 px-0",l&&"md:min-w-[550px]",!f&&!l&&"md:mx-auto md:max-w-[720px]"),children:(0,c.jsx)(d.G,{titleI18nKey:j,activeView:a,shouldHideMembersCount:!!(null==h?void 0:h.hide_members_count),shouldShowHiddenMemberTooltip:!1,baseFilters:[{id:"space-members",key:"spaces",value:r}]})})]})})]})},v=r(942636),b=r(940624),f="members_directory.all_members",j=function(e){var t=e.activeViewType,r=e.spaceSlug,a=t===n.Vw.LIST,l=(0,i.Ir)().data,o=(0,p.N)().filterParams.length>0?"".concat(f,".search_results_title"):"".concat(f,".title");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"md:hidden",children:(0,c.jsx)(b.n,{children:(0,c.jsx)(v.i,{})})}),(0,c.jsx)("div",{className:"h-full md:pt-6 mx-0",children:(0,c.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col gap-4 md:flex-row md:gap-8",children:[(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"hidden md:flex flex-col gap-6 z-lg:top-20 w-[298px]",children:(0,c.jsx)(m.u,{})})}),(0,c.jsx)("div",{className:"min-w-0 flex-1 overflow-x-auto",children:(0,c.jsx)("div",{className:(0,s.x)("w-full px-5 md:min-w-[696px] md:max-w-[772px] md:px-0 md:mx-0",a&&"md:max-w-[648px] md:min-w-[550px]"),children:(0,c.jsx)(d.G,{titleI18nKey:o,activeView:t,shouldHideMembersCount:!!(null==l?void 0:l.hide_members_count),shouldShowHiddenMemberTooltip:!1,baseFilters:[{id:"space-members",key:"spaces",value:r}]})})})]})})]})};function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},c=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),c.forEach(function(t){var c;c=r[t],t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c})}return e}var y=function(e){return(0,l.c)().isCircleV4?(0,c.jsx)(h,g({},e)):(0,c.jsx)(j,g({},e))},w=r(568316),O=r(938845),_=r(230763),S=r(417980),N=r(981416),P=r(387099),I=r(725532),T=r(6418),C=r(341409),k=function(e){var t=e.space,r=(0,_.Od)().currentCommunityMember,a=(0,N.Q)().shouldShowTrialBanner,l=(0,I.T)({space:t}).records,n=(0,O.y)(),i=(0,T.V8)(r)||(0,C.WY)(t),o=i||!!(null==l?void 0:l.length);return(0,c.jsx)("div",{className:(0,s.x)("flex items-center justify-center",{"h-[calc(100vh-64px-64px-70px)] md:h-[calc(100vh-128px-48px)] lg:h-[calc(100vh-64px-48px)]":!o&&!a,"h-[calc(100vh-64px-64px-41px-70px)] md:h-[calc(100vh-64px-64px-41px-48px)] lg:h-[calc(100vh-64px-41px-48px)]":o&&!a,"h-[calc(100vh-64px-64px-70px)] md:h-[calc(100vh-128px-48px)] lg:h-[calc(100vh-112px-48px)]":!o&&a,"h-[calc(100vh-64px-64px-41px-70px)] md:h-[calc(100vh-64px-64px-41px-48px)] lg:h-[calc(100vh-64px-41px-48px-48px)]":o&&a}),children:(0,c.jsxs)("div",{className:"text-center",children:[(0,c.jsx)(w.o.TitleLg,{weight:"bold",children:(0,S.t)("members_space.empty_state.title")}),(0,c.jsx)("div",{className:"py-3",children:(0,c.jsx)(w.o.BodySm,{children:(0,S.t)("members_space.empty_state.description")})}),i&&(0,c.jsx)(P.$,{type:"button",variant:"secondary",large:!0,onClick:function(){return n.show({spaceId:t.id})},children:(0,S.t)("members_space.empty_state.call_to_action")})]})})},L=r(546028),V=function(){var e=(0,i.Ir)().data,t=(0,L.o)({spaceId:null==e?void 0:e.id});
1return{space:e,activeSpaceMembersCount:t.count,isLoadingSpaceMembersCount:t.isInitialLoading}},M=function(e){var t=e.activeViewType,r=V(),l=r.space,n=r.activeSpaceMembersCount;return r.isLoadingSpaceMembersCount||!l?(0,c.jsx)(a.a,{}):0===n?(0,c.jsx)(k,{space:l}):(0,c.jsx)(y,{activeViewType:t,spaceSlug:l.slug})};let D=M},546028(e,t,r){var c=r(292626),a=r(258752),l=function(e){var t,r,l,n=e.spaceId,i=e.enabled,s=(0,a.IT)((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},c=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),c.forEach(function(t){var c;c=r[t],t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c})}return e}({},c.l9.activeMembersCount(null!=n?n:0)),r=r={enabled:!!n&&(void 0===i||i)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t));return{count:(null==(l=s.data)?void 0:l.members_count)||0,isInitialLoading:s.isInitialLoading,isLoading:s.isLoading,refetch:s.refetch}};r.d(t,{o:()=>l})}}]); 2//# sourceMappingURL=/packs/js/MembersSpaceContentComponent-2da54cce5da0852f.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.