1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[21518],{920014(e,t,n){n(635790);var i=n(440302);let r={k1xSpc:"x78zum5",kXwgrk:"x1q0g3np",kGNEyG:"x6s0dn4",$$css:!0};function s(e){let{tint:t,action:s}=e,{label:l,onClick:a,icon:o,iconTrailing:c,disabled:d}=s,x=(0,n(960253).I)(()=>({button:{color:"gray"===t?n(632079).Tj.text.primary:n(632079).Tj[t].text.secondary,borderWidth:1,borderStyle:"solid",borderColor:n(632079).Tj[t].border.strongTranslucent},buttonHovered:{backgroundColor:n(632079).Tj[t].background.secondaryTranslucent},buttonPressed:{backgroundColor:n(632079).Tj[t].background.tertiaryTranslucent}}),[t]);return(0,i.jsx)(n(548436).A,{iconLeading:o?{icon:o,size:"sm"}:void 0,iconTrailing:c?{icon:c,size:"sm"}:void 0,onClick:a,disabled:d,style:x.button,hoveredStyle:x.buttonHovered,pressedStyle:x.buttonPressed,children:(0,i.jsx)(n(111010).D,{styleKey:"bodyMedium",style:r,children:l})})}n.d(t,{f:()=>s})},748356(e,t,n){n(159952),n(635790);var i=n(440302);let r=(0,n(327219).YK)({learnMore:{id:"banner.learnMore",defaultMessage:"Learn more"},dismiss:{id:"banner.dismiss",defaultMessage:"Dismiss"}});function s(e,t){return(0,n(960253).I)(()=>({container:{position:"relative",backgroundColor:n(632079).Tj[e].background.secondary,padding:"8px 12px",minHeight:44,flexShrink:0},icon:{width:n(139424).A.isMobile?n(104509).Ev.default:n(104509).Ev.sm,height:n(139424).A.isMobile?n(104509).Ev.default:n(104509).Ev.sm,fill:t?n(632079).Tj[t].icon.accentPrimary:n(632079).Tj[e].icon.secondary},content:{color:n(632079).Tj[e].text.secondary},contentAutoLayout:{position:"relative",color:n(632079).Tj[e].text.secondary},learnMoreIcon:{fill:n(632079).Tj[e].icon.secondary},titleIcon:{marginInlineEnd:8}}),[e,t])}function l(e){let{onDismiss:t,tint:s,iconColor:l}=e,a=(0,n(327219).tz)();if(!t)return null;let o=l?{colorPalette:l,colorVariant:"accentPrimary"}:{colorPalette:s,colorVariant:"secondary"};return(0,i.jsx)(n(374533).K,{size:"xs",onClick:t,icon:n(25094).xMarkSmallIcon,colorPalette:o.colorPalette,colorVariant:o.colorVariant,ariaLabel:a.formatMessage(r.dismiss)})}function a(e){let{tint:t,iconGroup:r,style:s}=e;return r?(0,i.jsx)(n(708966).Q,{iconGroup:r,variantName:"small",colorPalette:t,colorVariant:"secondary",style:s}):null}let o={kVAEAm:"x1n2onr6",$$css:!0};function c(e){let{label:t,iconGroup:c,tint:d,onDismiss:x,actions:u,onLearnMoreClick:y}=e,f=s(d),m=(0,n(327219).tz)();return(0,i.jsxs)(n(4458).fI,{style:f.container,width:"100%",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(n(4458).fI,{style:f.contentAutoLayout,alignItems:"center",justifyContent:"center",children:[(0,i.jsx)(a,{tint:d,iconGroup:c,style:f.titleIcon}),(0,i.jsx)(n(111010).D,{styleKey:"bodyMedium",children:t}),y?(0,i.jsx)(n(374533).K,{onClick:y,icon:()=>(0,i.jsx)(n(708966).Q,{iconGroup:n(799472).u,variantName:"default",colorPalette:d,colorVariant:"secondary"}),ariaLabel:m.formatMessage(r.learnMore)}):void 0]}),(0,i.jsxs)(n(4458).fI,{gap:12,alignItems:"center",justifyContent:"flex-end",style:o,flex:"1 1 0",children:[(0,i.jsx)(n(4458).fI,{gap:8,alignItems:"center",justifyContent:"center",style:o,children:null==u?void 0:u.map((e,t)=>e.isCustom?e.render():(0,i.jsx)(n(920014).f,{tint:d,action:e},t))}),(0,i.jsx)(l,{onDismiss:x,tint:d})]})]})}function d(e){let{label:t,iconGroup:c,staticIcon:d,iconColor:x,tint:u,onDismiss:y,actions:f,onLearnMoreClick:m,alignment:h="center"}=e,p=s(u,x),j=(0,n(327219).tz)(),g=c?(0,i.jsx)(a,{tint:u,iconGroup:c,style:p.titleIcon}):d?d({...p.icon,...p.titleIcon}):null;return(0,i.jsxs)(n(4458).fI,{style:p.container,alignItems:"center",width:"100%",justifyContent:"space-between",gap:8,children:[(0,i.jsxs)(n(4458).fI,{style:p.contentAutoLayout,gap:24,flexGrow:1,alignItems:"center",justifyContent:"start"===h?"space-between":"center",children:[(0,i.jsxs)(n(4458).fI,{alignItems:"center",justifyContent:"center",style:o,children:[g,(0,i.jsx)(n(111010).D,{styleKey:"bodyMedium",children:t}),m?(0,i.jsx)(n(51831).m_,{content:()=>j.formatMessage(r.learnMore),children:e=>(0,i.jsx)(n(374533).K,{onClick:m,icon:()=>(0,i.jsx)(n(708966).Q,{iconGroup:n(799472).u,variantName:"default",colorPalette:u,colorVariant:"secondary"}),ariaLabel:j.formatMessage(r.learnMore),...e})}):void 0]}),f?(0,i.jsx)(n(4458).fI,{gap:8,style:o,children:null==f?void 0:f.map((e,t)=>e.isCustom?e.render():(0,i.jsx)(n(920014).f,{tint:u,action:e},t))}):null]}),(0,i.jsx)(l,{onDismiss:y,tint:u,iconColor:x})]})}function x(e){let{label:t,description:r,iconGroup:c,staticIcon:d,iconColor:x,tint:u,onDismiss:y,actions:f,noRoundedCorners:m}=e,h=s(u,x),p=(0,n(960253).I)(()=>({container:{position:"relative",backgroundColor:n(632079).Tj[u].background.secondary,padding:16,borderRadius:8*!m,minHeight:44,flexShrink:0}}),[u,m]),j=c?(0,i.jsx)(a,{tint:u,iconGroup:c}):d?d(h.icon):null;return(0,i.jsxs)(n(4458).fI,{style:p.container,gap:8,width:"100%",children:[j?(0,i.jsx)(n(4458).fI,{height:20,alignItems:"center",justifyContent:"center",children:j}):null,(0,i.jsxs)(n(4458).VP,{style:h.content,gap:8,flex:"1 1 0",children:[(0,i.jsxs)(n(4458).VP,{gap:4,style:o,children:[(0,i.jsx)(n(111010).D,{styleKey:"bodyMedium",colorVariant:"gray"===u?"primary":void 0,children:t}),r?(0,i.jsx)(n(111010).D,{styleKey:"bodyRegular",children:r}):null]}),f?(0,i.jsx)(n(4458).fI,{gap:8,style:o,children:null==f?void 0:f.map((e,t)=>e.isCustom?e.render():(0,i.jsx)(n(920014).f,{tint:u,action:e},t))}):null]}),(0,i.jsx)(l,{onDismiss:y,tint:u,iconColor:x})]})}function u(e){let{label:t,staticIcon:r,tint:a,iconColor:c,onDismiss:d,actions:x}=e,u=s(a,c),y=void 0!==d,f=(0,n(960253).I)(()=>({container:{position:"relative",backgroundColor:n(632079).Tj[a].background.secondary,paddingTop:y?12:8,paddingInlineEnd:y?12:8,paddingBottom:y?12:8,paddingInlineStart:12,borderRadius:8,height:44,flexShrink:0},label:{color:n(632079).Tj[a].text.secondary,flex:"1 1 0",minWidth:0}}),[a,y]);return(0,i.jsxs)(n(4458).fI,{style:f.container,gap:8,alignItems:"center",width:"100%",children:[r?(0,i.jsx)(n(4458).fI,{height:20,alignItems:"center",justifyContent:"center",flexShrink:0,children:r(u.icon)}):null,(0,i.jsxs)(n(4458).fI,{flex:"1 1 0",minWidth:0,alignItems:"center",justifyContent:"space-between",gap:8,children:[(0,i.jsx)(n(111010).D,{styleKey:"bodyMedium",style:f.label,lineClamp:1,colorVariant:"gray"===a?"primary":void 0,children:t}),x?(0,i.jsx)(n(4458).fI,{gap:8,style:o,flexShrink:0,children:null==x?void 0:x.map((e,t)=>e.isCustom?e.render():(0,i.jsx)(n(920014).f,{tint:a,action:e},t))}):null]}),(0,i.jsx)(l,{onDismiss:d,tint:a,iconColor:c})]})}function y(e){let{tint:t,onDismiss:r,content:a,alignment:o="center",verticalAlignment:c="center"}=e,d=s(t);return(0,i.jsxs)(n(4458).fI,{style:d.container,gap:8,alignItems:c,justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(n(4458).fI,{style:d.content,flexGrow:1,justifyContent:o,children:a}),(0,i.jsx)(l,{onDismiss:r,tint:t})]})}function f(e){let{display:t}=e;switch(t){case"inline":return(0,i.jsx)(x,{...e});case"full-width":if(n(139424).A.isMobile)return(0,i.jsx)(c,{...e});return(0,i.jsx)(d,{...e});case"full-width-no-content":return(0,i.jsx)(y,{...e});case"inline-compact":return(0,i.jsx)(u,{...e})}return null}n.d(t,{f:()=>n(920014).f,l:()=>f})},515450(e,t,n){n(635790);var i=n(440302);let r={small:"bodySmSemibold",medium:"titleLgBold",large:"titleLgBold"},s={k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kGNEyG:"x1cy8zhl",kXHlph:"x6ikm8r",kORKVm:"x10wlt62",kHjlTd:"x1mzt3pk",$$css:!0},l={kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",kN2L0X:"x1fzhlzt",$$css:!0},a={k9WMMc:"x2b8uid",$$css:!0},o={small:{kzqmXN:"x1hfn5x7",kLKAdn:"xyamay9",kwRFfy:"xv54qhq",kGO01o:"x1l90r2v",kZCmMZ:"xf7dkkf",khm7nJ:"xgpatz3",k1C7PZ:"x40hh3e",$$css:!0},medium:{kzqmXN:"xht4xr3",kLKAdn:"x1cnzs8",kwRFfy:"x1xnnf8n",kGO01o:"xx6bls6",kZCmMZ:"x106a9eq",khm7nJ:"xgpatz3",k1C7PZ:"x40hh3e",$$css:!0},large:{kzqmXN:"xdpfuu1",kLKAdn:"x1p5oq8j",kwRFfy:"x64bnmy",kGO01o:"xwxc41k",kZCmMZ:"x13jy36j",khm7nJ:"x1kb72lq",k1C7PZ:"x18hwk67",$$css:!0}},c={horizontal:{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np",khm7nJ:"x3pnbk8",k1C7PZ:"xfex06f",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",$$css:!0},vertical:{k1xSpc:"x78zum5",kXwgrk:"x3ieub6",khm7nJ:"x3pnbk8",k1C7PZ:"xfex06f",kGNEyG:"x1qjc9v5",kzqmXN:"xh8yej3",$$css:!0},"horizontal-hug":{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np",khm7nJ:"x3pnbk8",k1C7PZ:"xfex06f",kGNEyG:"x6s0dn4",kjj79g:"x13a6bvl",kzqmXN:"xh8yej3",$$css:!0}};function d(e){let{title:t,description:c,icon:d,size:u="small",children:y,contentAlignment:f="left",...m}=e;return(0,i.jsxs)("div",{...n(398276).A.props(s,o[u]),children:[(0,i.jsxs)(n(4458).VP,{gap:6,alignItems:"left"===f?"flex-start":"center",children:[(0,n(104509).lE)(d)?(0,i.jsx)(n(16275).I,{icon:d,size:"xl",colorVariant:"secondary"}):d,(0,i.jsxs)(n(4458).VP,{gap:2,alignItems:"left"===f?"flex-start":"center",paddingInlineEnd:20*("left"===f),children:[(0,i.jsx)(n(111010).D,{styleKey:r[u],colorVariant:"primary",style:[l,"center"===f&&a],children:t}),c?(0,i.jsx)(n(111010).D,{styleKey:"bodySmRegular",colorVariant:"secondary",style:[l,"center"===f&&a],children:c}):null]})]}),y,(0,i.jsx)(x,{...m})]})}
1function x(e){let{colorPalette:t,primaryButtonVariant:r="primary",primaryButton:s,secondaryButton:l,layout:a}=e,o="horizontal-hug"===a;return(0,i.jsxs)("div",{...n(398276).A.props(c[a]),children:[l?(0,i.jsx)(y,{button:l,shouldFillWidth:!o,colorPalette:o&&"primary"===r?"gray":void 0,variant:o?"plain":"tint"}):null,(0,i.jsx)(y,{button:s,shouldFillWidth:!o,colorPalette:t,variant:r})]})}let u={overflow:"hidden",textOverflow:"ellipsis"};function y(e){let{button:t,shouldFillWidth:r,colorPalette:s,variant:l}=e,a="primary"===l?n(912946).j:"tint"===l?n(265779).E:n(988022).p;return(0,i.jsx)("div",{...{0:{},1:{className:"x98rzlu xeuugli"}}[0|!!r],children:(0,i.jsx)(a,{colorPalette:s,size:"lg",width:"fill",style:u,...t,children:t.label})})}n.d(t,{l:()=>d})},734389(e,t,n){function i(e,t){(0,n(943278).K)(e,t)}n.d(t,{O:()=>i})},503788(e,t,n){n.r(t),n.d(t,{WorkspaceInviteReview:()=>o});var i=n(635790);function r(e,t){n(696190).default.state.messages.get(e.key)===e&&(n(696190).default.removeMessage(e.key),t?n(192314).AppStoreInAppCalloutStore.state.updateCalloutStatus({calloutId:e.key,visible:!1}):n(192314).AppStoreInAppCalloutStore.state.abandonUndisplayedModal(e.key))}async function s(e,t){return new(n(138260)).z({maxRetries:1,baseDelay:250,maxDelay:500}).execute(async()=>{let n=await e.api.callCellCompatibleApi({eventName:"getWorkspaceInviteReview",environment:e,data:{spaceId:t},cellNavigation:{spaceId:t}});if("failed"===n.type&&(n.offline||n.status>=500))throw n.error;return n})}var l=n(440302);function a(e){let{review:t,onClose:i}=e,r=(0,n(327219).tz)(),s=r.formatMessage({id:"workspaceInviteReview.title",defaultMessage:"Review this workspace"}),a=r.formatMessage({id:"workspaceInviteReview.close",defaultMessage:"Close"}),o=t.workspaceName||r.formatMessage({id:"workspaceInviteReview.untitledWorkspace",defaultMessage:"Untitled workspace"}),c=(0,n(262166).bQ)({tier:t.tier,intl:r});return(0,l.jsx)(n(943365).s,{isOpen:!0,onDismiss:i,ariaLabel:s,allowDismissByEscape:!0,children:()=>(0,l.jsx)(n(515450).l,{title:s,description:r.formatMessage({id:"workspaceInviteReview.description",defaultMessage:"You were invited to this workspace. Review its details before interacting with its content."}),size:"medium",layout:"horizontal-hug",primaryButtonVariant:"tint",primaryButton:{label:a,onClick:i,autoFocus:!0},children:(0,l.jsxs)(n(4458).VP,{gap:20,children:[(0,l.jsxs)(n(4458).fI,{gap:12,alignItems:"center",children:[(0,l.jsx)(n(569553).B6,{disabled:!0,size:40,isEmptyPage:!1,title:o,icon:t.workspaceIcon?{icon:t.workspaceIcon,pointer:{table:"space",id:t.spaceId}}:void 0}),(0,l.jsx)(n(4458).VP,{gap:2,minWidth:0,children:(0,l.jsx)(n(111010).D,{styleKey:"bodyLgSemibold",children:o})})]}),(0,l.jsx)(n(346268).c,{size:1}),(0,l.jsx)(n(4458).VP,{gap:12,children:(0,l.jsxs)(n(4458).fI,{gap:16,alignItems:"flex-start",children:[(0,l.jsx)(n(4458).VP,{width:96,flexShrink:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",colorVariant:"secondary",children:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.inviterLabel",defaultMessage:"Invited by"})})}),(0,l.jsxs)(n(4458).VP,{gap:2,flex:"1 1 0",minWidth:0,children:[t.inviterName?(0,l.jsx)(n(111010).D,{styleKey:"bodyMedium",children:t.inviterName}):void 0,(0,l.jsx)(n(111010).D,{styleKey:"body",children:t.inviterEmail})]})]})}),(0,l.jsx)(n(346268).c,{size:1}),(0,l.jsxs)(n(4458).VP,{gap:12,children:[t.createdAt>0?(0,l.jsxs)(n(4458).fI,{gap:16,alignItems:"flex-start",children:[(0,l.jsx)(n(4458).VP,{width:96,flexShrink:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",colorVariant:"secondary",children:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.createdLabel",defaultMessage:"Created"})})}),(0,l.jsx)(n(4458).VP,{gap:2,flex:"1 1 0",minWidth:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",children:r.formatDate(t.createdAt,{year:"numeric",month:"long",day:"numeric"})})})]}):void 0,(0,l.jsxs)(n(4458).fI,{gap:16,alignItems:"flex-start",children:[(0,l.jsx)(n(4458).VP,{width:96,flexShrink:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",colorVariant:"secondary",children:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.planLabel",defaultMessage:"{trial, select, yes {Trial plan} other {Plan}}",values:{trial:t.isTrial?"yes":"no"}})})}),(0,l.jsx)(n(4458).VP,{gap:2,flex:"1 1 0",minWidth:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",children:c})})]}),void 0!==t.memberCount?(0,l.jsxs)(n(4458).fI,{gap:16,alignItems:"flex-start",children:[(0,l.jsx)(n(4458).VP,{width:96,flexShrink:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",colorVariant:"secondary",children:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.membersLabel",defaultMessage:"Members"})})}),(0,l.jsx)(n(4458).VP,{gap:2,flex:"1 1 0",minWidth:0,children:(0,l.jsx)(n(111010).D,{styleKey:"body",children:r.formatNumber(t.memberCount)})})]}):void 0]}),(0,l.jsx)(n(748356).l,{display:"inline",tint:"gray",staticIcon:n(372181).infoCircleSmallIcon,label:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.safetyTitle",defaultMessage:"Verify unexpected invitations"}),description:(0,l.jsx)(n(111010).D,{styleKey:"body",colorVariant:"primary",children:(0,l.jsx)(n(327219).sA,{id:"workspaceInviteReview.warning",defaultMessage:"If you werenât expecting this invitation, verify it through a trusted channel before sharing information, following links, or downloading files."})})})]})})})}function o(e){var t;let{message:o}=e,c=(0,n(533992).v3)(),d=(0,n(723240).r)(),x="static"===o.type?null==(t=o.props.metadata)?void 0:t.spaceId:void 0,u="string"==typeof x?x:void 0,[y,f]=(0,i.useState)(),m=(0,i.useRef)(!1),h=!!(y&&y.spaceId===u&&u===d);(0,i.useEffect)(()=>{h&&(m.current=!0)}
1,[h]);let p=(0,i.useCallback)(()=>{var e;u&&(null==(e=(0,n(328765).S)())?void 0:e.id)===u?(0,n(734389).O)(c,o):r(o,m.current)},[c,o,u]);return(0,i.useEffect)(()=>{let e=!0;return u&&u===d?(s(c,u).then(t=>{if(e){if("success"!==t.type){(0,n(208318).t)().error({from:"WorkspaceInviteReview",type:"detailsFailed",error:t.error}),r(o,m.current);return}if(!t.data.review)return void r(o,m.current);f(t.data.review)}}).catch(t=>{(0,n(208318).t)().error({from:"WorkspaceInviteReview",type:"detailsFailed",error:t}),e&&r(o,m.current)}),()=>{e=!1}):void r(o,m.current)},[c,u,d,o]),y&&h?(0,l.jsx)(a,{review:y,onClose:p}):null}}}]);
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.