..d}=a,u=(0,s.VA)(d);e((0,r.apiCall)({method:"usergroups.list",args:u,abortSignal:i,reason:c})).then(e=>{n(e)}).catch(e=>{(0,l.default)({getState:t}).error(`API call to usergroups.list
						with reason ${c} failed, initiated by generated fetcher`),o(e)})}));i.meta={name:"usergroupsListFetcher",key:"createFetcherUsergroupsListFetcher",description:"usergroups.list generated fetcher"}},0x3d75f87c:(e,t,a)=>{"use strict";a.d(t,{L:()=>i,R:()=>c});var n=a(0x139aa1a7),r=a(0x11c82607b),o=a(0x665ca02e),l=a(0x19895585a),s=a(0x9271cc31);let i=(0,r.Ay)("Updates the active thread state for any child windows that have this channel open as an AppSpace",(e,t,{channelId:a,threadTs:r})=>{let i=t();(0,s.f6)(i).forEach(t=>{let c=(0,s.Yi)(i,{container:l.mq.Primary,windowId:t});c?.id===a&&c?.viewType===n.D.AppSpace&&e((0,o.ZU)({channelId:a,threadTs:r,isSplitView:!1,windowId:t}))})});i.meta={name:"setAgentHomeActiveThreadForChildWindows",key:"createThunkSetAgentHomeActiveThreadForChildWindows",description:"Updates the active thread state for any child windows that have this channel open as an AppSpace"};let c=(0,r.Ay)("Sets the active thread on the agent home view using the right window id and split view state",async(e,t,{channelId:a,threadTs:r})=>{let c=t(),d=(0,s.e6)(c),u=(0,s.F8)(c,{tab:d,container:l.mq.Primary}),m=(0,s.Oy)(c),p=!!(m&&m.viewType===n.D.AgentHomeConversation&&m.params?.channelId===a);p&&e((0,o.ZU)({channelId:a,threadTs:r,isSplitView:p})),u?.id===a&&(u?.viewType===n.D.AgentHomeConversation||u?.viewType===n.D.AppSpace)&&e((0,o.ZU)({channelId:a,threadTs:r,isSplitView:!1})),e(i({channelId:a,threadTs:r}))});c.meta={name:"maybeSetAgentHomeActiveThread",key:"createThunkMaybeSetAgentHomeActiveThread",description:"Sets the active thread on the agent home view using the right window id and split view state"}},0x7041edd8:(e,t,a)=>{"use strict";a.d(t,{Y:()=>n});let n=(0,a(0xcf658893).Ay)("upsert app team context to the store");n.meta={name:"upsertAppHomeContextTeam",key:"createActionUpsertAppHomeContextTeam",description:"upsert app team context to the store"}},0x1b3f947f1:(e,t,a)=>{"use strict";a.d(t,{Ri:()=>s,aq:()=>r,eW:()=>o,m:()=>l,qX:()=>i});var n=a(0xcf658893);let r=(0,n.Ay)("Add user group IDs to the flexpane");r.meta={name:"addUserGroupIds",key:"createActionAddUserGroupIds",description:"Add user group IDs to the flexpane"};let o=(0,n.Ay)("Set the user groups flexpane scroll offset");o.meta={name:"saveScrollmark",key:"createActionSaveScrollmark",description:"Set the user groups flexpane scroll offset"};let l=(0,n.Ay)("Set the cursor mark");l.meta={name:"setCursorMark",key:"createActionSetCursorMark",description:"Set the cursor mark"};let s=(0,n.Ay)("Set the search query");s.meta={name:"setSearchQuery",key:"createActionSetSearchQuery",description:"Set the search query"};let i=(0,n.Ay)("Resets user groups flexpane list to initial state");i.meta={name:"resetUserGroupsFlexpane",key:"createActionResetUserGroupsFlexpane",description:"Resets user groups flexpane list to initial state"}},0x1f2aad211:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(0x5acf92f2),r=a(0x1ec68d6a3),o=a(0x11c82607b),l=a(0xaac3cc35);let s="BULK_EDIT_USER_GROUPS",i=(0,o.Ay)("Fetch and upsert the members of a user group",async(e,t,{groupId:a,teamId:o,users:i,reason:c="bulkEditUserGroupMembers"})=>{let d={};o&&(d.teamId=o);try{let{ok:t,usergroup:r}=await e((0,n.W)({usergroup:a,users:i,reason:c,...d}));if(t)return e((0,l.zz)({groupId:r?.id,users:r?.users})),r;return t}catch(e){throw(0,r.default)({getState:t}).error(s,e),Error(`${s} - ${e}`)}});i.meta={name:"bulkEditUserGroupMembers",key:"createThunkBulkEditUserGroupMembers",description:"Fetch and upsert the members of a user group"};let c=i},0x114056aef:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(0x1aba66b56),r=a(0x1673f3229),o=a(0x5acf92f2),l=a(0x61f75169),s=a(0x1ec68d6a3),i=a(0x11c82607b),c=a(0x475c9cfe);let d=(0,i.Ay)("Remove a group member from a user group",(e,t,{groupId:a,memberId:i,reason:d="removeUserGroupMember"})=>{let u=(0,s.default)({getState:t}),m=(0,c.lJ)(t(),a),p=(0,l.IM)(m);if(!(0,n.A)(p,i))return u.warn(`removeUserGroupMember: No member with id ${i} found in groupId ${a}`);let h=(0,r.A)(p,i);return e((0,o.W)({usergroup:a,users:h,reason:d})).catch(e=>{throw u.error("USER_GROUPS",`Error in removeUserGroupMember: ${JSON.stringify(e)}`),e})});d.meta={name:"removeUserGroupMember",key:"createThunkRemoveUserGroupMember",description:"Remove a group member from a user group"};let u=d},0x11cd1a647:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var n=a(0x11c82607b),r=a(0x1ccef1c6f),o=a(0x12f41fc32);let l=(0,n.Ay)("User has seen the user group sections new badge; record for new badge decay",(e,t)=>{let a=(0,r.ty)(t(),"seen_usergroup_section_new_badge")??0;e((0,o.AZ)({pref:"seen_usergroup_section_new_badge",value:a+1}))});l.meta={name:"seenUserGroupSectionsNewBadge",key:"createThunkSeenUserGroupSectionsNewBadge",description:"User has seen the user group sections new badge; record for new badge decay"}},0xe4034a92:(e,t,a)=>{"use strict";a.d(t,{m:()=>n});let n=(0,a(0x1cf0d97e1).Ay)((e,t)=>{});n.meta={name:"getExternalSelfWorkspaceHostId",key:"createSelectorGetExternalSelfWorkspaceHostId",description:(e,t)=>{}}},0x33830eed:(e,t,a)=>{"use strict";let n,r;a.d(t,{Ay:()=>m});var o=a(0xe874a88a),l=a(0x20482ad21),s=a(0x1f7b0911b),i=a(0x3ed00af5),c=a(0x11c82607b);let d=new l.Ay("user_groups");function initErrorStrings(e){n={hasHandleRequiredWarning:d.t("Please enter a handle for this group."),hasMaxLengthWarning:d.t("Handles can\u2019t be more than {maxLength} characters.",{maxLength:80}),hasReservedHandle:d.t("The group name @{handle} is reserved and cannot be used.",{handle:e}),hasSpecialsWarning:d.t("Handles can only contain letters or numbers."),hasPunctuationWarning:d.t("Handles can only contain letters or numbers."),hasLowercaseWarning:d.t("Handles can only be in lowercase."),hasHandleTakenWarning:d.t("This handle is already in use by a member, channel, or another group."),nonLatinCharacterWarning:d.t("Handles can only contain letters or numbers."),unknownError:d.t("Sorry, something went wrong. Please try a different handle.")}}function initReservedHandles(){r={admins:d.t("admins"),owners:d.t("owners")}}let u=(0,c.Ay)("Validate user group handle",(e,t,{handle:a,prevHandle:l,reason:c,targetTeam:d})=>(initErrorStrings(a),initReservedHandles(),a&&a.trim())?a===l?o.S.resolve(""):a.toLowerCase()===r.admins.toLowerCase()||a.toLowerCase()===r.owners.toLowerCase()?o.S.resolve(n.hasReservedHandle):/[ ,;'`~!@#$%^&*+=\\:"<>?|]/.test(a.trim())?o.S.resolve(n.hasSpecialsWarning):/^[-|_]+$/.test(a)?o.S.resolve(n.hasPunctuationWarning):/[A-Z]/.test(a)?o.S.resolve(n.hasLowercaseWarning):(0,i.A)(a)>80?o.S.resolve(n.hasMaxLengthWarning):e((0,s.S)({handle:a,reason:c,targetTeam:d})).then(()=>"").catch(e=>{let t=e?.data?.error;return"handle_already_exists"===t?n.hasHandleTakenWarning:"bad_handle"===t?n.nonLatinCharacterWarning:n.unknownError}):o.S.resolve(n.hasHandleRequiredWarning));u.meta={name:"validateUserGroupHandle",key:"createThunkValidateUserGroupHandle",description:"Validate user group handle"};let m=u;Object.defineProperty({},"handleErrorStrings",{get:()=>n,set:e=>{n=e}})},0x15e263568:(e,t,a)=>{"use strict";let n,r;a.d(t,{Ay:()=>m});var o=a(0xe874a88a),l=a(0x20482ad21),s=a(0x69509bae),i=a(0x3ed00af5),c=a(0x11c82607b);let d=new l.Ay("user_groups");function initErrorStrings(e){r={hasNameRequiredWarning:d.t("Please enter a name for this group."),hasReservedName:d.t('The name "{name}" is reserved and cannot be used.',{name:e}),hasMaxLengthWarning:d.t("Names can\u2019t be more than {maxLength} characters.",{maxLength:80}),hasNameTakenWarning:d.t("This name is already in use by another group."),unknownError:d.t("Sorry, something went wrong. Please try a different name.")}}function initReservedNames(){n={admins:d.t("Team Admins"),owners:d.t("Team Owners")}}let u=(0,c.Ay)("Validate user group name",async(e,t,{name:a,prevName:l,reason:c,targetTeam:d})=>{if(initErrorStrings(a),initReservedNames(),!a||!a.trim())return o.S.resolve(r.hasNameRequiredWarning);let u=a.toLowerCase().trim();return l&&u===l.toLowerCase().trim()?o.S.resolve(""):u===n.admins.toLowerCase()||u===n.owners.toLowerCase()?o.S.resolve(r.hasReservedName):(0,i.A)(a)>80?o.S.resolve(r.hasMaxLengthWarning):e((0,s.N)({name:a,reason:c,targetTeam:d})).then(()=>"").catch(e=>"name_already_exists"===e?.data?.error?r.hasNameTakenWarning:r.unknownError)});u.meta={name:"validateUserGroupName",key:"createThunkValidateUserGroupName",description:"Validate user group name"};let m=u;Object.defineProperty({},"nameErrorStrings",{get:()=>r,set:e=>{r=e}})},0x105dd6c49:(e,t,a)=>{"use strict";a.r(t),a.d(t,{LeadFormSetupChannelDetailsCoachmark:()=>LeadFormSetupChannelDetailsCoachmark});var n=a(0xbad225b5),r=a(0x16cf1da63),o=a(0x20482ad21),l=a(0x11a296110),s=a(0x13953efe6),i=a(0x10cf39bbb),c=a(0x3989021c),d=a(0x218842a12),u=a(0x1ba23e63c),m=a(0x226892387),p=a(0x14149c126),h=a(0xb9604b6),_=a(0x5b1935a6);let b=new o.Ay("slack_first_crm"),g=d.g.DOWNMARKET_CRM_LEAD_FORM_SETUP_CHANNEL_DETAILS_COACHMARK,LeadFormSetupChannelDetailsCoachmark=({channelScopedId:e})=>{let t=(0,r.wA)(),a=(0,m.d4)(e=>"on"===(0,p._Z)(e,"slack_crm_leads_web_form")),o=(0,m.d4)(t=>(0,h.OL)(t,_.xu.IN_PRODUCT_COACHMARK,e)),d=o?.dismissalType,{closeCoachmark:x,renderCoachmark:A}=(0,c.A)(g,_.xu.IN_PRODUCT_COACHMARK,e),f=(0,n.useCallback)(async a=>{a?.preventDefault(),a?.stopPropagation(),t((0,u.A)({id:e,defaultTab:i.n.Integrations})),x()},[t,e,x]),C=(0,n.useCallback)(e=>{e?.preventDefault(),e?.stopPropagation(),x()},[x]),E=a?b.t("Manage your web form here"):"Manage your web form here",k=a?b.t("Find form settings and your code snippet by clicking on the channel name and opening the Integrations tab."):"Find form settings and your code snippet by clicking on the channel name and opening the Integrations tab.",y=a?b.t("Set up a web form later"):"Set up a web form later",S=a?b.t("Create a web form at any time by clicking on the channel name and opening the Integrations tab."):"Create a web form at any time by clicking on the channel name and opening the Integrations tab.",v=(0,n.useMemo)(()=>"complete"===d?E:y,[d,E,y]),w=(0,n.useMemo)(()=>"complete"===d?k:S,[d,k,S]),I=A({title:v,bodyText:(0,n.useMemo)(()=>n.createElement("div",null,n.createElement("p",null,w),n.createElement("div",{className:"display_flex gap_50"},n.createElement(l.Ay,{size:"small",type:"primary",onClick:C},a?b.t("Got It"):"Got It"),n.createElement(l.Ay,{size:"small",type:"outline",onClick:f},a?b.t("Show Me"):"Show Me"))),[w,C,f,a]),closeCoachmark:C,arrowPosition:10,offsetX:-200});return n.createElement(s.Ay,{coachmarkElement:I,orientation:"bottom"})};LeadFormSetupChannelDetailsCoachmark.displayName="LeadFormSetupChannelDetailsCoachmark"}}]);
//# sourceMappingURL=https://slack.com/source-maps/bv1-13/gantry-v2-async-about-usergroup-view.07452ba7a5d117f25b16.min.js.mapØA
—Eoúô