1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[15138],{876252(e,r,t){function i(){return(0,t(579993).O$)(t(728372).AppStoreCurrentUserStore)}t.d(r,{$:()=>i})},709295(e,r,t){async function i({environment:e,spaceStore:r}){let a=r.id;await Promise.all([(0,t(294456).x)(e,a),t(949830).A.resetData(e,{spaceId:a,userId:e.currentUser.id})])}t.d(r,{n:()=>i})},378880(e,r,t){async function i(e,r){let i=(0,t(599412).H)(t(962299).A.getIntl()),a=r.value.email,n=await e.api.callApi({eventName:"createEmailUser",environment:e,data:{email:a,preferredLocaleOrigin:"inferred_from_inviter",preferredLocale:i}});if("failed"!==n.type)return n.data.userId;if((0,t(101787).op)(n.error)){let e=(0,t(416207).D)(t(962299).A.getIntl(),n.error);e?t(647095).f1(e):t(647095).c1(n.error.message)}else t(647095).c1(n.error.message);throw n.error}t.d(r,{J:()=>i})},215813(e,r,t){async function i(e){var r;let{environment:i,store:a,permissionItems:n,inviteFlowId:o,inviteMessage:s,inviteOrigin:l,disable_invite_email:c,notifySharer:d,useSudoMode:u}=e,p=a.getSpaceId()||("space"===a.table?a.id:null==(r=(0,t(974410).f)(a))?void 0:r.id);if(!p||a.table===t(832375).C0E)return[];let f=n.flatMap(e=>"user_permission"!==e.type?[]:[{userId:e.user_id,role:e.role,...void 0!==e.can_create_pages_in_collection&&{canCreatePagesInCollection:e.can_create_pages_in_collection}}]);if(0===f.length)return[];if(f.length>50)throw Error("Can only create up to 50 invites at a time.");try{let e=await i.api.callCellCompatibleApi({eventName:"inviteGuestsToSpace",environment:i,data:{action:"create_invites",spaceId:p,target:{table:a.table,id:a.id},invitees:f,flowId:o,message:s,origin:l,disableInviteEmail:c,notifySharer:d,useSudoMode:u},cellNavigation:{spaceId:p}});if("success"!==e.type)throw e.error;if(void 0===e.data.inviteIds)throw Error("Invite creation did not return invite IDs.");return t(184921).R2({status:"success",origin:l}),e.data.inviteIds}catch(e){throw t(184921).R2({status:"fail",origin:l}),e}}t(533958),t(730330),t(974864),t.d(r,{E:()=>i})},230993(e,r,t){function i(){(0,t(533992).v3)();let e=(0,t(579993).O$)(t(728372).AppStoreSidebarSpaceStore),r=(0,t(876252).$)();return(0,t(202146).exposeDebugValue)("permissions",{createRestrictedMember:async t=>{if(e)if(r){if(1)throw Error("This command is not available in production")}else throw Error("No current user store available");else throw Error("No current space store available")}}),null}t.r(r),t(533958),t.d(r,{PermissionDebugCommands:()=>i})}}]);
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.