1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[20764],{772420(e,s,i){i.r(s);var a=i(635790),t=i(440302);function o(e){var s;let{spaceStore:o,internalDomainsSettingEnabled:g}=e,c=(0,i(533992).v3)(),n=o.id,d=(0,i(217844)._)({name:"domain_settings",spaceId:n,userId:null==(s=c.currentUser)?void 0:s.id}),h=null==d?void 0:d.upsell,p=(0,i(579993).K8)(()=>i(687295).S6(o),[o]),w=(0,a.useCallback)(()=>{(0,i(323517).createAndCommit)({userAction:"SpaceBasicSettings.workspaceDiscovery.toggle",environment:c,canUndo:!0,cellTarget:{spaceWithId:n},perform:e=>{(0,i(787932).z)({store:o,data:{settings:{...o.getSettings(),disable_workspace_discovery:!p}},transaction:e})}})},[c,p,n,o]);if(!(0,i(83208).X)("workspace_discovery_admin_setting"))return null;let u=(0,i(811656).wy)(h);return(0,t.jsx)(i(793679).H,{id:"workspaceSettingsWorkspaceDiscovery",isDisabled:u||!(0,i(747609).e2)(d),title:(0,t.jsx)(i(327219).sA,{...g?i(928057).aN.internalDomainWorkspaceDiscoveryTitle:i(928057).NK.workspaceDiscovery.title}),byline:u?(0,t.jsx)(i(179175).UpgradeButton,{source:"workspace_discovery_admin_setting",upsell:h,display:"text",width:"hug",size:"small",customMessages:g?l:r,spaceStore:o}):(0,t.jsx)(i(327219).sA,{...g?i(928057).aN.internalDomainWorkspaceDiscoveryDescription:i(928057).NK.workspaceDiscovery.description}),isToggledOn:!p,onToggle:w})}let r=(0,i(327219).YK)({eligible_to_purchase:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.eligibleToPurchase",defaultMessage:"<highlight>Upgrade</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"},eligible_for_trial:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.eligibleForTrial",defaultMessage:"<highlight>Start trial</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"},sales_eligible:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.salesEligible",defaultMessage:"<highlight>Contact sales</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"},sales_assisted:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.salesAssisted",defaultMessage:"<highlight>Contact sales</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"},eligible_to_request:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.eligibleToRequest",defaultMessage:"<highlight>Request</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"},request_pending:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.requestPending",defaultMessage:"<highlight>Requested</highlight> to allow teammates with trusted email domains to view this workspace in a directory of suggested workspaces"}}),l=(0,i(327219).YK)({eligible_to_purchase:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.eligibleToPurchase",defaultMessage:"<highlight>Upgrade</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"},eligible_for_trial:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.eligibleForTrial",defaultMessage:"<highlight>Start trial</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"},sales_eligible:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.salesEligible",defaultMessage:"<highlight>Contact sales</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"},sales_assisted:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.salesAssisted",defaultMessage:"<highlight>Contact sales</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"},eligible_to_request:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.eligibleToRequest",defaultMessage:"<highlight>Request</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"},request_pending:{id:"spaceBasicSettings.workspaceDiscovery.upgradeMessages.internalDomains.requestPending",defaultMessage:"<highlight>Requested</highlight> to allow teammates with internal email domains to view this workspace in a directory of suggested workspaces"}});i.d(s,{WorkspaceDiscoveryAdminSetting:()=>
1o})}}]);
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.