his),this.containerRef=n.createRef(),this.cssRef=n.createRef()}componentDidMount(){this.updateHoverSize(this.props.contentWidth)}componentDidUpdate(){this.updateHoverSize(this.props.contentWidth)}updateHoverSize(e){if(e&&0!==e&&e<800){let t=`
				:root {
					--p-modal_info_topic__hover_size: ${.5*e}px;
				}
			`;this.cssRef.current=t}else this.cssRef.current=void 0}onClick(e){if(this.props.showMemberList)return void this.props.openAboutChannelModal({defaultTab:ti.n.Members,id:this.props.channelId});let t=e.target;t&&"A"===t.tagName||this.props.readOnly||(!this.containerRef.current||!t||this.containerRef.current.contains(t))&&(this.props.openChannelTopicDialog({channelId:this.props.channelId}),this.props.clogger.track(ef.EventId.CLASSIC_NAV,{contexts:{ui_context:{action:"CLICK",ui_component:"CHANNEL_HEADER",ui_element:"NAV_CHANNEL_TOPIC"}}}))}render(){let{topic:e,readOnly:t,hasKeyboardFocus:a,hasKeyboardFocusWithin:r,isImOrMpim:l,experimentChannelTabsV5GroupOn:i,showMemberList:s,memberList:c,editButtonRef:d}=this.props;if(t&&!e&&!s)return null;let m=l?oU.t("Edit topic"):oU.t("Edit channel topic",{fallbackHash:"5301648dcf6b53cefc9ed52999aaa92d4603cae0"}),u=o()("p-classic_nav__model__title__info__topic__content",{"p-classic_nav__model__title__info__topic__content--channel_tabs":i}),p=n.createElement("div",{className:"p-classic_nav__model__title__info__topic__content"},oU.t("Add a topic"));s?p=n.createElement("div",{className:u},n.createElement(n0.A,{lines:1},c)):e&&(p=n.createElement(nw.A,{text:e,className:u,emojiSize:nU.lw.SMALL,noJumbomoji:!0,noHighlights:!0}));let h=o()({"p-classic_nav__model__title__info__item":!0,"p-classic_nav__model__title__info__topic":!0,"p-classic_nav__model__title__info__topic--empty":!e,"p-classic_nav__model__title__info__topic--readonly":t,"p-classic_nav__model__title__info__topic--focus-within":r||a},this.props.className),_=t||s?null:n.createElement(eU.Nm,{"aria-label":m,className:"p-classic_nav__model__title__info__topic__edit",onClick:this.onClick,ref:d},oU.t("Edit"));return n.createElement(n.Fragment,null,n.createElement(eU.Nm,{className:h,onClick:this.onClick,onFocus:this.props.onFocus,onBlur:this.props.onBlur},n.createElement("div",{className:"p-classic_nav__model__title__info__topic__text",ref:this.props.textRef},p)),_,n.createElement("style",{className:"p-model_info_topic__css"},this.cssRef.current))}};oR.displayName="ModelInfoTopic";let oH=(0,oI.A)((0,nc.N)((e,{channelId:t})=>{let a=(0,S.OL)(e,t);return{topic:(0,ty.cU)(a),readOnly:!(0,oT.P)(e,t),clogger:(0,am.eo)({state:e}),isImOrMpim:(0,f.JM)(a),experimentChannelTabsV5GroupOn:(0,oe.U6)(e),showMemberList:(0,f.yz)(a)&&(0,oM.h)(e),memberList:(0,tj.Xx)(e,a,null,!0)}},e=>({openChannelTopicDialog:(...t)=>e((0,C.A)(...t)),openAboutChannelModal:(...t)=>e((0,ol.A)(...t))}))(oR));var oO=a(0x7fbb7bb1),oD=a(0x16172bfe5);function ViewHeaderTopic({id:e}){let t=(0,E.d4)(t=>(0,R.A)(t,e)),a=(0,E.d4)(t=>{let a=(0,S.OL)(t,e);return(0,ty.cU)(a)}),[r,l]=(0,n.useState)(),[i,s]=(0,n.useState)(),[c,d]=(0,n.useState)(!1),m=(0,n.useRef)(null),u=(0,n.useCallback)(({offset:e})=>{e&&l({width:e.width,height:e.height})},[]),p=(0,n.useCallback)(({scroll:e})=>{e&&s({width:e.width,height:e.height})},[]);return((0,n.useEffect)(()=>{if(!r||!i)return;let e=m?.current?.getBoundingClientRect()?.width,t=r.width-(e?e+8:40);d(i.width>t||i.height>r.height)},[r,i]),a)?n.createElement(oO.A,{offset:!0,onResize:u},({measureRef:a})=>n.createElement("div",{className:o()("p-view_header__topic_container",{"p-view_header__topic_container--truncated":c,"p-view_header__topic_container--dm_topic":t===R.q.DM||t===R.q.MPDM}),ref:a},n.createElement(oO.A,{scroll:!0,onResize:p},({measureRef:t})=>n.createElement(oD.T.Consumer,null,a=>{let r=a?.columns??{},o=r[q.mq.Primary]??0,l=r[q.mq.Secondary]??0;return n.createElement(oH,{channelId:e,className:"p-view_header__topic",textRef:t,contentWidth:o+l,editButtonRef:m})})))):null}ViewHeaderTopic.displayName="ViewHeaderTopic";var oG=a(0x50ff7328),oL=a(0x9ccef20a),oP=a(0xab2e2cf4),oF=a(0x51b81145),oV=a(0x54536a24),oW=a(0xa144a6db),oB=a(0x2000be496),oq=a(0xaa596f75),oz=a(0x382cbff6),oK=a(0x242503693),oQ=a(0x303eaaff),oX=a(0x18d28c7d9),oY=a(0x1046e372c),oZ=a(0x12cbe336e),o$=a(0xa985ed31),oJ=a(0x10c92383d),oj=a(0x166d96bf1),o0=a(0x18358a245),o1=a(0x46a42efe),o2=a(0x1294547f8),o4=a(0x547c586f),o5=a(0x117f78ac8),o6=a(0x16082db4b);let o3=new i.Ay("view-header"),o8={name:"close"};function ViewHeader({closeView:e,id:t,hideActions:a,shouldShowSidebarToggle:r=!1,isInstantSlackInviteeSession:i=!1,viewType:m,showQuipActivityHistoryHeader:h,viewCanBeClosed:b,fileId:A,otherColumnLayouts:f,experimentIsHuddlesChannel:C,experimentHideAllSidebarsGroupOn:E,isRecord:k,shouldShowBackButton:S,experimentSlackAiSuggestedTopicsGroupOn:y,experimentMpdmTopicNamesGroupOn:v,container:w,isChannelMember:N,bookmarksEnabled:I,hideHeader:O,channelSpaceLayout:D,container:G,columnLayout:L,experimentViewHeaderOverflowBordersGroupOn:P,hideBorder:F,view:V,experimentChannelTabsV5GroupOn:W,isVipAvailableForCurrentTeam:B,isAgent:z,children:K,experimentSidebarVisualUpdatesM1Enabled:Q,showSlackbotPreviewBadge:X,experimentDesktopUiSimplificationGroupOn:Y,experimentTodayPageGroupOn:Z,experimentActivityPriorityGroupOn:$}){let J=(0,n.useRef)(null),j=L?.width,[ee,et]=(0,n.useState)(!1),ea=(0,n.useCallback)(e=>{J.current=e,et(J.current?.getButtons()?.length>0)},[]),en=(0,n.useCallback)(e=>e?.container!==q.mq.Sidebar&&!!ee&&J.current?.focus(),[ee]);(0,oF.A)(oK.Ay.VIEW_HEADER,en);let er=(0,n.useCallback)(()=>{e?.()},[e]),eo=w===q.mq.Split?p.BR:p.ZM,el=!!(j&&j<2*eo),ei=(0,n.useCallback)(()=>{if(h){let e=(0,oW.f)().params.entityId,{versionId:t}=(0,a_.EX)(e);return n.createElement(_.A,{versionId:t})}if(Y&&Z&&V?.viewType===u.D.Page&&V?.id===oa.c.TodayV2)return n.createElement(T.Q,null);let e=o3.t("Close"),o=m===R.q.Channel&&N||m===R.q.DM||m===R.q.MPDM||m===R.q.App,l=f?.[q.mq.Sidebar]?.isCollapsed;return C?null:n.createElement(n.Fragment,null,!E&&(l||r)&&n.createElement(H.A,null),S&&n.createElement(x.A,null),o&&n.createElement(ViewHeaderStar,{channelId:t}),n.createElement("div",{className:"p-view_header__text"},$&&V?.viewType===u.D.ActivityMlResults&&n.createElement("h3",null,"ML Results"),!i&&n.createElement(n.Fragment,null,n.createElement(oC,{id:t,isColumnNarrow:el}),X&&n.createElement(SlackbotAiPreviewBadge,null),y&&v&&n.createElement(EditTopicLabelButton,{channelId:t}),n.createElement(M.l,{channelId:t}),n.createElement(g.A,{id:A})),k&&n.createElement(oL.e,{channelId:t}),!i&&n.createElement(ViewHeaderTopic,{id:t}),m===R.q.App&&n.createElement(nC,{channelId:t})),!a&&n.createElement(nh,{id:t}),b&&(!S||w===q.mq.Split)&&n.createElement(d.Ay,{key:U.ks.CloseTile,tip:e,position:"bottom-right",delay:d.PK,hideFromScreenReader:!0},n.createElement(s.A,{svgIconProps:o8,onClick:er,"aria-label":e,className:"p-ia__view_header__button--close"})))},[h,Y,Z,V?.viewType,V?.id,m,N,f,C,E,r,S,t,i,el,X,y,v,A,k,a,b,w,er,$]);if(O||t===oa.c.Empty)return null;let es=!I,ec=P&&(F||t===oa.c.Drafts||t===oa.c.Sent||t===oa.c.Inbox||t===oa.c.ScheduledMessages||!z&&V?.viewType===u.D.AppSpace)||B&&t===oj.E.allThreads,ed=o()("p-view_header","p-view_header--tiles","p-view_header--with-star-header-icon",{"p-view_header--with-bookmarks-bar":I,"p-view_header--without-bookmarks-bar":es,"p-view_header--solid":R.q.Doc===m||es,"p-view_header--with-channel-canvas":D===o1.z.PRIMARY,"p-view_header--narrow":el,"p-view_header--without-bottom-border":ec,"p-view_header--with-channel-tabs":W&&!z,"p-view_header--visual-updates-m1":Q}),em=o3.t("Primary view actions"),eu=n.createElement(c.A,{key:t,"aria-label":em,ref:ea,className:ed,"data-qa":"view_header"},ei()),ep=n.createElement(l.A,{eventId:ef.EventId.VIEW_HEADER,clogImpression:!1,disableAutoReferringUiContext:!0},eu,K),eh=V?.id||t;if((0,oX.A)(V??eh)){let e;(0,au.Ay)(eh)||eh===R.q.ChannelCanvas?e="QuipHeaderView":V?.viewType===u.D.List&&(e="ListHeader");let t=(0,oY.A)({viewContainer:G??void 0});e&&(ep=n.createElement(oQ.A,{id:e,index:t},ep))}return ep}ViewHeader.displayName="ViewHeader";let o9=(0,oP.t)((0,n2.A)((0,nc.N)((e,{id:t,container:a,windowId:n,getSiblingView:r,view:o})=>{let l=(0,o6.j)(e,{windowId:n})?.columnMode===o5.oZ.Single,i=!!o?.prev||a===q.mq.Secondary&&l,s=t||(r(e,{container:q.mq.Primary})?.id??""),c=(0,nZ.gY)(s),d=!1;c?.isChannelHeaderHidden&&(d=c.isChannelHeaderHidden(e));let u=s===oV.XV,p=(0,oW.f)().params.entityId,{fileIdOrQuipThreadId:_}=(0,a_.EX)(t),g=(0,o$.A)(_)?_:void 0,x=(0,o4.A)(e,{container:a,windowId:n}),A=(0,S.OL)(e,s);return{bookmarksEnabled:(0,oB.Nu)(e,t),isAllUnreadsPage:u,showQuipActivityHistoryHeader:!!(0,oq.O4)(e)&&(0,oJ.A)(p),hideHeader:d,viewType:(0,R.A)(e,t),isInstantSlackInviteeSession:(0,oG.A)(e),channelSpaceLayout:(0,o0.q7)(e,t)||void 0,viewCanBeClosed:x,fileId:g,experimentViewHeaderOverflowBordersGroupOn:"on"===(0,ei._Z)(e,"view_header_overflow_borders"),experimentIsHuddlesChannel:(0,aY.a$)(e)&&(0,f.cb)(A),experimentHideAllSidebarsGroupOn:(0,oZ.Ob)(e),isRecord:(0,f.rI)(A),experimentChannelTabsV5GroupOn:(0,oe.U6)(e),isVipAvailableForCurrentTeam:(0,m.Gn)(e),shouldShowBackButton:i,isAgent:(0,h.yB)(e,A),experimentSlackAiSuggestedTopicsGroupOn:(0,k.d2)(e),experimentMpdmTopicNamesGroupOn:(0,oM.h)(e),isChannelMember:(0,t3.bl)(A),experimentSidebarVisualUpdatesM1Enabled:(0,b.in)(e),showSlackbotPreviewBadge:(0,o2.N)(e,t),experimentDesktopUiSimplificationGroupOn:(0,oZ.hi)(e),experimentTodayPageGroupOn:(0,oz.d9)(e)}})(ViewHeader)))},0x3d75f87c:(e,t,a)=>{"use strict";a.d(t,{L:()=>s,R:()=>c});var n=a(0x139aa1a7),r=a(0x11c82607b),o=a(0x665ca02e),l=a(0x19895585a),i=a(0x9271cc31);let s=(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 s=t();(0,i.f6)(s).forEach(t=>{let c=(0,i.Yi)(s,{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}))})});s.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,i.e6)(c),m=(0,i.F8)(c,{tab:d,container:l.mq.Primary}),u=(0,i.Oy)(c),p=!!(u&&u.viewType===n.D.AgentHomeConversation&&u.params?.channelId===a);p&&e((0,o.ZU)({channelId:a,threadTs:r,isSplitView:p})),m?.id===a&&(m?.viewType===n.D.AgentHomeConversation||m?.viewType===n.D.AppSpace)&&e((0,o.ZU)({channelId:a,threadTs:r,isSplitView:!1})),e(s({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:()=>i,aq:()=>r,eW:()=>o,m:()=>l,qX:()=>s});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 i=(0,n.Ay)("Set the search query");i.meta={name:"setSearchQuery",key:"createActionSetSearchQuery",description:"Set the search query"};let s=(0,n.Ay)("Resets user groups flexpane list to initial state");s.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 i="BULK_EDIT_USER_GROUPS",s=(0,o.Ay)("Fetch and upsert the members of a user group",async(e,t,{groupId:a,teamId:o,users:s,reason:c="bulkEditUserGroupMembers"})=>{let d={};o&&(d.teamId=o);try{let{ok:t,usergroup:r}=await e((0,n.W)({usergroup:a,users:s,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(i,e),Error(`${i} - ${e}`)}});s.meta={name:"bulkEditUserGroupMembers",key:"createThunkBulkEditUserGroupMembers",description:"Fetch and upsert the members of a user group"};let c=s},0x114056aef:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(0x1aba66b56),r=a(0x1673f3229),o=a(0x5acf92f2),l=a(0x61f75169),i=a(0x1ec68d6a3),s=a(0x11c82607b),c=a(0x475c9cfe);let d=(0,s.Ay)("Remove a group member from a user group",(e,t,{groupId:a,memberId:s,reason:d="removeUserGroupMember"})=>{let m=(0,i.default)({getState:t}),u=(0,c.lJ)(t(),a),p=(0,l.IM)(u);if(!(0,n.A)(p,s))return m.warn(`removeUserGroupMember: No member with id ${s} found in groupId ${a}`);let h=(0,r.A)(p,s);return e((0,o.W)({usergroup:a,users:h,reason:d})).catch(e=>{throw m.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 m=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:()=>u});var o=a(0xe874a88a),l=a(0x20482ad21),i=a(0x1f7b0911b),s=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 m=(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,s.A)(a)>80?o.S.resolve(n.hasMaxLengthWarning):e((0,i.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));m.meta={name:"validateUserGroupHandle",key:"createThunkValidateUserGroupHandle",description:"Validate user group handle"};let u=m;Object.defineProperty({},"handleErrorStrings",{get:()=>n,set:e=>{n=e}})},0x15e263568:(e,t,a)=>{"use strict";let n,r;a.d(t,{Ay:()=>u});var o=a(0xe874a88a),l=a(0x20482ad21),i=a(0x69509bae),s=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 m=(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 m=a.toLowerCase().trim();return l&&m===l.toLowerCase().trim()?o.S.resolve(""):m===n.admins.toLowerCase()||m===n.owners.toLowerCase()?o.S.resolve(r.hasReservedName):(0,s.A)(a)>80?o.S.resolve(r.hasMaxLengthWarning):e((0,i.N)({name:a,reason:c,targetTeam:d})).then(()=>"").catch(e=>"name_already_exists"===e?.data?.error?r.hasNameTakenWarning:r.unknownError)});m.meta={name:"validateUserGroupName",key:"createThunkValidateUserGroupName",description:"Validate user group name"};let u=m;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),i=a(0x13953efe6),s=a(0x10cf39bbb),c=a(0x3989021c),d=a(0x218842a12),m=a(0x1ba23e63c),u=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,u.d4)(e=>"on"===(0,p._Z)(e,"slack_crm_leads_web_form")),o=(0,u.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,m.A)({id:e,defaultTab:s.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.",S=a?b.t("Set up a web form later"):"Set up a web form later",y=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:S,[d,E,S]),w=(0,n.useMemo)(()=>"complete"===d?k:y,[d,k,y]),N=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(i.Ay,{coachmarkElement:N,orientation:"bottom"})};LeadFormSetupChannelDetailsCoachmark.displayName="LeadFormSetupChannelDetailsCoachmark"}}]);
//# sourceMappingURL=https://slack.com/source-maps/bv1-13/gantry-v2-async-paid-benefits-view.bda70c5a303b924c04f6.min.js.mapØA
—Eoúô