1import{_ as o,a as i,b as J}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-B177jzqY.js";import{j as K,F as Z,gY as oo,Y as l,bT as R,bQ as n,bS as p,bX as eo,bU as to}from"./index-B9O2cfno.js";import{e as io,d as ro}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_router_mf_2_dom__loadShare__.js-CK4j7iSY.js";import{A as no}from"./index.esm-DLBLOnGz.js";import{a as d}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react__loadShare__.js-ClGO9exV.js";import{L as so}from"./PageLoading-BT1BEaQU.js";import{G as po,b as ao}from"./Layout-S-NwUP9Q.js";import{I as mo}from"./Appbar-CbSVPwFS.js";import{D as lo}from"./DotMenu-DpGGHFwS.js";import{u as co}from"./useBucket-CR5UEp3u.js";import{u as ho,a as go,t as b,A as fo,I as uo,U as xo,b as wo,B as Io}from"./MemberActionMenu-BkPO2A5i.js";import{u as ko}from"./useBucketShares-CIPiozX6.js";import{I as Bo}from"./InfiniteGrid-BotAUgBq.js";import{A as yo}from"./ArrowBack-DonIluNH.js";import{T as S}from"./moment-D_DQNCUI.js";import{I as _}from"./CloudDownloadOutlined-Cg5tMevg.js";import{M}from"./Stack-Sf5GoIpP.js";import"./__virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react__loadShare__.js_commonjs-proxy-D_fXcg40.js";import"./virtualExposes-_ivNhQLP.js";import"./remoteEntry-uboCqDRT.js";import"./preload-helper-s0Msbe4-.js";import"./index-DM2295YJ.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-_fD68H2V.js";import"./__virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy-BYnSnx8j.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare___mf_0_unleash_mf_1_proxy_mf_2_client_mf_2_react__loadShare__.js-BdtqsXmB.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom__loadShare__.js-ckyQG2Wp.js";import"./groupsyChrome-CLCFmWEd.js";import"./index-Dks6jFMG.js";import"./Popper-CKZMq35R.js";import"./Select-BBMTu6sl.js";import"./isMuiElement-ByswdNQJ.js";import"./List-C5bK9afY.js";import"./useSelectedMedia-BLVwYI-I.js";import"./AlbumDelete-12m3V2Wy.js";import"./Close-D78lNu8F.js";import"./MediaShareCreate-79OR0t4d.js";import"./useBucketMediaFavoriteCacheUpdate-BBJ2VF0-.js";import"./en-US-CcscABQy.js";import"./useBucketMediaMove-BuvKt6ph.js";import"./logger-YHhloPCO.js";import"./ListItem-e5SPCG9y.js";import"./ListItemText-CKRtU6FZ.js";import"./Dialog-C1VO68NT.js";import"./DialogTitle-CtbZieWs.js";import"./DialogContent-Cspg_vaK.js";import"./ListItemButton-CvicjC8C.js";import"./groupsy-logo-white-C4_zM7ld.js";import"./PasswordVisibilityAdornment-DqSgn8Hl.js";import"./useProfilePlan-2AaC2fHr.js";import"./TextField-Cxuy6esU.js";import"./Grid-D6nfESib.js";import"./useThemeProps-DMYUNtYJ.js";import"./getThemeProps-B8tVaoKo.js";import"./X-BN8IQ5QI.js";import"./FormControlLabel-Czs4VhDI.js";import"./DialogActions-D9PHF9CH.js";import"./albumCacheLinks-Cqrf5vaz.js";import"./index-CNeZytPn.js";import"./useBucketMediaUpload-CW736OsH.js";import"./index--eSQkUPx.js";import"./placeholders-BhfK6KrI.js";import"./useAnalytics-BR9_As4i.js";import"./index-P9SMy3w3.js";import"./Chip-Cz6LBgjr.js";import"./formatDistanceToNow-uO2sKiQN.js";import"./Avatar-BTJ3UjGE.js";import"./DialogContentText-3_LgfOmt.js";import"./ShoppingCartOutlined-CMkj9tZs.js";import"./Skeleton-CVzxamYN.js";import"./Divider-Ds-LqyRJ.js";import"./dividerClasses-cApOefCC.js";import"./useCoverImage-Q0Hrs1vF.js";import"./coverImageProcessor-CAPCAp77.js";import"./MediaDetails-BEnwtCci.js";import"./formatBytes-jRUNT9z8.js";import"./CheckCircleOutline-CeZtT-Cq.js";import"./Link-jPbx2fgb.js";import"./SettingsMenu-NWhImQWZ.js";import"./getInitials-DL7R944W.js";import"./UpsellModal-CAUY_Vvc.js";import"./useStartPlusCheckout-Cfk75TzO.js";import"./PaymentModal-B3enHFLh.js";import"./useSubscriptionCreate-OLYKR3EK.js";import"./index-CwMG8eoe.js";import"./StyledFormAlert-CuxIc--d.js";import"./StyledFormDivider-DMPDnPdK.js";import"./Autocomplete-neN2nyEM.js";import"./CheckCircle-BwStVG4y.js";import"./useDownloadGate-BQMEGnwf.js";import"./useBucketList-Dcd9NUck.js";import"./Videocam-DeL9MjCY.js";import"./BucketCreate-B4a-RI5Z.js";import"./groupCapUpsell-Ckyvb8hl.js";import"./FilterAndSort-D4es-lv2.js";import"./mediaSortOptions-DtdpbfUc.js";import"./inviteUrl-DDIGNVvr.js";import"./__vite-browser-external-D7Ct-6yo.js";import"./Menu-CLoe2S8i.js";import"./useBucketUserUpdate-CO3LHbPQ.js";import"./EmailOutlined-yVcZ7gwV.js";import"./formatImageProxyUrl-BAJVO2EE.js";import"./CardActions-BXnAWm-V.js";import"./Card-Cf2-mLz8.js";const Co=p(n)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",fontSize:"24px",fontWeight:"600",lineHeight:"32px",color:"#081230",paddingBottom:t.spacing(2),borderBottom:"1px solid #D3DADB",marginBottom:"20px"})),v=p(n)(({theme:t})=>({marginBottom:t.spacing(4)})),T=p(n)(({theme:t})=>
1({display:"flex",alignItems:"flex-start",gap:t.spacing(1),alignSelf:"stretch",marginBottom:t.spacing(3),fontSize:"36px",fontWeight:"800"})),Ro=p(n)(({theme:t})=>({marginBottom:t.spacing(3),[t.breakpoints.down("md")]:{fontSize:"12px"}})),A=p(n)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",marginBottom:t.spacing(0),minHeight:"32px"})),h=p(n)(({theme:t})=>({fontWeight:"500",[t.breakpoints.down("sm")]:{maxWidth:"220px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},[t.breakpoints.down("xs")]:{maxWidth:"180px"}})),O=p(n)(()=>({display:"flex",gap:"8px",alignItems:"center"})),bo=p(n)(()=>({fontSize:"20px",fontWeight:400,letterSpacing:"0.18px",color:"#2F364E",lineHeight:"24px"}));function So(){var y;const{bucketId:t}=io(),{bucket:e}=co(),f=ao(e==null?void 0:e.bucketType),D=f.toLowerCase(),u=(y=K().currentUser)==null?void 0:y.uid,s=Z().readFragment({id:"BucketUser:".concat(t,":").concat(u),fragment:oo,fragmentName:"BucketUserFragment"}),{items:x,loading:L,fetchMore:U,nextToken:z}=ko(),{items:F,loading:P}=ho(),{items:W,loading:$}=go(),[H,w]=d(!1),[G,I]=d(!1),[j,k]=d(!1),[E,N]=d(null),V=a=>{N(a),k(!0)},B=ro(),Y=()=>{B(-1)},c=(s==null?void 0:s.userRole)===l.Admin||(s==null?void 0:s.userRole)===l.Owner,Q=(s==null?void 0:s.userRole)===l.Owner;if(P||L||$||!u)return o(so,{});if(!e)return o(R,{children:"There was an error fetching this space or group."});if(!s)return o(R,{children:"There was an error fetching your user profile."});const m=[...F],X=m.findIndex(a=>a.userRole===l.Owner);m.unshift(...m.splice(X,1));const g=W.filter(a=>a.email);return i(J,{children:[o(no,{children:({height:a,width:q})=>i(n,{id:"sharing-content",sx:{height:a,width:q,position:"relative",padding:{xs:"16px 16px 120px",md:"32px 32px 120px"},overflow:"auto"},children:[i(Co,{children:[i(n,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[o(n,{children:o(eo,{onClick:Y,children:o(yo,{})})}),e==null?void 0:e.title]}),o(to,{variant:"outlined",onClick:()=>B("/bucket/".concat(e.id)),children:"View Gallery"})]}),i(v,{children:[i(T,{children:["People",o(S,{title:"This is a ".concat(D,", which means you can invite others to collaborate in various ways here."),children:o(_,{fontSize:"small",htmlColor:"#727C8C"})})]}),i(n,{sx:{display:"flex",gap:"8px",marginBottom:"20px"},children:[e&&o(mo,{bucket:e}),Q&&i(lo,{children:[o(M,{onClick:()=>w(!0),children:" Reset Invite Links"}),i(M,{onClick:()=>I(!0),children:["Reset ",f," (Remove Links & Members)"]})]})]}),i(Ro,{children:[m==null?void 0:m.map(r=>{var C;return i(A,{children:[o(h,{children:(C=r==null?void 0:r.userProfile)==null?void 0:C.name}),i(O,{children:[o(h,{sx:{paddingRight:c&&r.userRole===l.Owner?"48px":"0"},children:b(r==null?void 0:r.userRole)}),c&&r.userRole!==l.Owner&&o(fo,{bucket:e,user:r,setActionsMenuUser:V})]})]},r.id)}),g==null?void 0:g.map(r=>i(A,{sx:{color:"#727C8C"},children:[o(h,{children:"".concat(r.email," (pending)")}),i(O,{children:[o(h,{children:b(r.userRole)}),c&&o(uo,{bucket:e,invitation:r})]})]},r.id))]})]}),i(v,{children:[i(T,{children:["Shared Content",o(S,{title:"Sharing links are view-only custom collections to share with anyone you like.",children:o(_,{fontSize:"small",htmlColor:"#727C8C"})})]}),x.length===0&&o(bo,{children:"This space is for shared albums, images and image collections. There is currently no shared content for this bucket."}),o(Bo,{items:x,fetchMore:U,hasMore:!!z,isAdmin:c})]})]})}),e&&o(xo,{bucket:e,user:E,open:j,onClose:()=>k(!1),currentUser:s}),e&&o(wo,{open:H,bucket:e,handleClose:()=>w(!1)}),e&&o(Io,{open:G,bucket:e,handleClose:()=>I(!1)})]})}function Rt(){return o(po,{children:o(So,{})})}export{Rt as default};
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.