<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&amp;&amp;(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92bff51f-599c-4420-95b1-79053f96b7d9",e._sentryDebugIdIdentifier="sentry-dbid-92bff51f-599c-4420-95b1-79053f96b7d9")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"2025.1.69895"},(this.webpackChunk_youtrack_simplified=this.webpackChunk_youtrack_simplified||[]).push([[1423],{63219:(e,t,n)=&gt;{"use strict";n.d(t,{$f:()=&gt;S,BA:()=&gt;M,Bn:()=&gt;f,Cj:()=&gt;U,Fh:()=&gt;l,H9:()=&gt;a,IY:()=&gt;_,Id:()=&gt;A,JM:()=&gt;C,KN:()=&gt;y,MT:()=&gt;P,Mk:()=&gt;v,NC:()=&gt;u,Px:()=&gt;w,Qw:()=&gt;I,S$:()=&gt;h,Vu:()=&gt;o,WL:()=&gt;m,Xz:()=&gt;R,b7:()=&gt;b,bz:()=&gt;k,cq:()=&gt;r,er:()=&gt;d,ew:()=&gt;s,f5:()=&gt;x,kd:()=&gt;N,nk:()=&gt;j,qm:()=&gt;D,tK:()=&gt;E,tV:()=&gt;p,tW:()=&gt;g,ub:()=&gt;c,wd:()=&gt;T,wp:()=&gt;i});var s="additionalTextFields__b103",i="attachments__a74f",a="bottomWidget__a88b",o="changes__c271",r="changesWrapper__a649",c="commentEditor__e21a",d="contentContainer__df94",l="contentWrapper__ef27",m="description__e030",h="editorHolder__e398",u="editorHolderOnBottom__baa8",p="editorHolderPreview__d56e",g="emptyContentPlaceholder__a325",C="expandedBottomWidget__a168",k="expandedWidget__a1e0",y="imagesInSidebar__ff3e",b="modalMode__e4e6",f="panel__a478",x="renderedMarkdown__c113 prosemirror__b91a markdown__e3b0 font__dd1f",_="scrollableArea__c54c",T="showFieldsOnLeft__bbe8",v="sidebarMode__c53b",j="ticketContent__c0d9",S="ticketContentInner__bf36",A="ticketHeaderSticky__a247",R="ticketSidebarinQuickView__b4e6",E="tipsInSidebar__fadd",I="toTopButtonScroll__b175",w="toolbarMode__a5b5",N="topWidget__c47b",U="widgetInMainArea__d124",P="widgetsAboveActivity__e3a7",D="widgetsBelowEditingSummary__dcee",M="widgetsBelowSummary__d550"},99735:e=&gt;{e.exports='&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"&gt;&lt;path fill-rule="evenodd" d="M2.226 5.124a.725.725 0 0 0 0 1.025l2.673 2.673a.625.625 0 1 0 .884-.884L4.106 6.261h7.407a2.251 2.251 0 1 1 0 4.502H8.61a.625.625 0 0 0 0 1.25h2.902a3.501 3.501 0 1 0 0-7.002H4.106l1.677-1.676A.625.625 0 1 0 4.9 2.45L2.226 5.124Z" clip-rule="evenodd"&gt;&lt;/path&gt;&lt;/svg&gt;'},57520:e=&gt;{e.exports='&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"&gt;&lt;path fill-rule="evenodd" d="M13.76 5.124a.725.725 0 0 1 0 1.025l-2.673 2.673a.625.625 0 1 1-.884-.884l1.677-1.677H6.597a4.375 4.375 0 0 0-4.375 4.375v1.726a.625.625 0 1 1-1.25 0v-1.726a5.625 5.625 0 0 1 5.625-5.625h5.283l-1.677-1.676a.625.625 0 1 1 .884-.884l2.673 2.673Z" clip-rule="evenodd"&gt;&lt;/path&gt;&lt;/svg&gt;'},87369:(e,t,n)=&gt;{"use strict";n.d(t,{H:()=&gt;r});var s=n(92379),i=n(39274),a=n(77661),o=n(88889);const r=({ticket:e,textActionsStore:t})=&gt;{const n=(0,a.O)(),{permissionsStore:r}=(0,i.Yh)();return(0,s.useCallback)(((s,i,a,c)=&gt;{if(!e||!t)return[];const d=e.project.id,l=Boolean(d&amp;&amp;e&amp;&amp;r.canCreateTicket()),m=Boolean(e&amp;&amp;r.helpdesk.isHelpdeskTicket(e)),h=r.helpdesk.isReporter(e),u=[n((e=&gt;t.getCommentTextByPosition(e,a)))];if(l){const n=Boolean(e&amp;&amp;r.canEditComment(e,c)),d=()=&gt;{u.push((0,o.Z)({tokens:i,onApply:(e,n)=&gt;t.onCreateTicketsFromTextInComments(e,a,n),textActionFactoryParams:s}))};if(m){const e=0===a.restricted.length;!n||h||e||d()}else n&amp;&amp;d()}return u.filter((e=&gt;null!==e))}),[n,t,e,r])}},80747:(e,t,n)=&gt;{"use strict";n.d(t,{u:()=&gt;r});var s=n(92379),i=n(39274),a=n(77661),o=n(88889);const r=({textActionsStore:e,ticket:t})=&gt;{const n=(0,a.O)(),{permissionsStore:r}=(0,i.Yh)();return(0,s.useCallback)((s=&gt;{if(!t||!e)return[];const i=t.project.id,a=Boolean(i&amp;&amp;t&amp;&amp;r.canCreateTicket());return[Boolean(t&amp;&amp;a&amp;&amp;r.canUpdateTicket(t))?(0,o.I)(s,e.onCreateTicketsFromTextInEditMode):null,n((()=&gt;s.state.doc.textBetween(s.state.selection.from,s.state.selection.to," ","\n")))].filter((e=&gt;null!==e))}),[n,r,e,t])}},35164:(e,t,n)=&gt;{"use strict";n.d(t,{_:()=&gt;Z});var s=n(651),i=n(49047),a=n(65443),o=n.n(a),r=n(68019),c=n(92379),d=n(63329),l=n.n(d),m=n(86646),h=n(25913),u=n(39274),p=n(73161),g=n(65602),C=n(49847),k=n(62893),y=n(55854),b=n(27730),f=n(32744),x=n(9629),_=n(55093),T=n(38004),v=n.n(T),j=n(78265),S=n(19554),A=n(91421),R=n(204),E=n(77913);const I=(0,r.Pi)((function({onSend:e,loader:t,disabled:n,getStateValues:a,onChangeState:o}){const[r,d]=(0,c.useState)([]),[l,h]=(0,c.useState)([]),u=(0,c.useCallback)((async()=&gt;{const e=await a("");d(e),h([{rgItemType:A.default.ListProps.Type.TITLE,label:m.t`And change state to:`,key:"test"},...e.map((e=&gt;({key:e.id,label:e.label,rgItemType:A.default.ListProps.Type.CUSTOM,template:(0,s.jsxs)("div",{className:"optionsList__fe9d",children:[(0,s.jsx)("span",{children:e.label}),e.color?(0,s.jsx)(R.ZP,{className:"colorField__dfff",type:R.i0.bigSquare,label:e.label,color:e.color}):null]})})))])}),[a]),p=(0,c.useCallback)((({wrapperProps:e,buttonProps:a,popup:o})=&gt;(0,s.jsxs)("span",{...e,children:[(0,s.jsx)(i.ZP,{...a,primary:!0,disabled:n,loader:t,className:"sendButtonOptions__b6ed","data-test":"change-state",children:(0,s.jsx)(S.ZP,{glyph:v()})}),o]})),[n,t]);return(0,s.jsxs)(j.Z,{split:!0,children:[(0,s.jsx)(i.ZP,{primary:!0,onClick:e,disabled:n,loader:t,"data-test":"post-comment",children:m.t`Add comment`}),a&amp;&amp;(0,s.jsx)(E.ZP,{"data-test":"state-options",customAnchor:p,type:E.ZP.Type.CUSTOM,maxHeight:300,data:l,filter:l.length&gt;5,onBeforeOpen:u,onSelect:e=&gt;{const t=r.find((t=&gt;t.id===e?.key))??null;t&amp;&amp;o(t)}})]})}));var w=n(12687),N=n(56124),U=n(47701),P=n(97688),D=n(56e3),M=n(76783),O=n(42310);const B=(0,r.Pi)((function(e){const t=(0,u.Yh)(),{commentDraft:n,onApply:i,disabled:a}=e,o=(0,c.useCallback)(((s,a)=&gt;({label:s,onClick:()=&gt;{n&amp;&amp;t.grazieStore.commentDraftAction(n.id,m.t`Rephrasingâ€¦`,m.t`Rephrased comment`,a,{isDraft:!0,projectId:e.projectId},i)}})),[n,i,e.projectId,t.grazieStore]),r=(0,y._p)({isDraft:!0,projectId:e.projectId,entityId:n?.id??"",entityType:"comment"}),d=(0,c.useMemo)((()=&gt;n?.content?.length?[o(m.t`Rephrase to sound polite`,"PoliteComment"),o(m.t`Rephrase to sound formal`,"OfficialComment")]:[]),[n,o]);return(0,s.jsx)(M.Z,{popupCloseStatisticContext:{isDraft:!0,entityId:n?.id??"",entityType:"comment",projectId:e.projectId},spellcheckerItem:r,disabled:a,disabledReason:m.t`To work with the AI Assistant, you must first add a comment`,data:d,tip:{label:m.t`New AI Actions for Comments`,description:m.t`Click here to access prompts that can make your comment more polite or more formal`,storageKey:"aiTipsShown",position:[O.Directions.TOP_LEFT],top:-8}})}));var H=n(72051);const Z=(0,r.Pi)((function({store:e,ticket:t,markdownByDefault:n,getEditorTextActions:a,editorClassName:d}){const T=(0,u.Yh)(),{appStore:v,permissionsStore:j,settingsStore:A}=T,R=v.getCurrentUser(),{initialCommentText:E,commentDraft:M}=e.state,{removingAttachment:O,commentIsPosting:Z}=e,L=(M&amp;&amp;M.restricted.length&gt;0)??e.defaultCommentVisibility.length&gt;0,F=j.helpdesk.isReporter(t),V=c.useRef([]),Y=(0,x.v)({entity:t,getEmbeddings:()=&gt;M?.embeddings??V.current,updateEmbeddings:t=&gt;{V.current=t,e.state.commentDraft&amp;&amp;(e.state.commentDraft.embeddings=t)}}),{callback:G}=(0,h.Z)((t=&gt;{Z||e.createOrUpdateCommentDraft(t,M?.embeddings??V.current)}),500),$=(0,c.useCallback)((t=&gt;{e.state.initialCommentText=t,G(t)}),[e,G]),q=(0,c.useCallback)((async(t,n)=&gt;{const s=M||await e.createOrUpdateCommentDraft("",[]);await e.updateAttachmentForCommentDraft({...t,base64Content:n},s),M||(e.state.commentDraft=s)}),[M,e]),W=(0,c.useCallback)((async(n,s)=&gt;{await e.updateAttachment({...n,base64Content:s},t)}),[t,e]),z=(0,c.useCallback)((async t=&gt;{t.forEach((t=&gt;{e.attachFileToComment(t)}))}),[e]),J=(0,c.useCallback)((async()=&gt;{const e=await(0,k.w)();await z(e)}),[z]),K=j.canAddAttachmentTo(t,!0),Q=(0,c.useCallback)((e=&gt;j.canUpdateAttachment(t,e)),[t,j]),X=(0,c.useCallback)((async()=&gt;{const e=await(0,k.w)();await z(e)}),[z]),ee=(0,c.useCallback)((()=&gt;!0),[]),te=(0,c.useCallback)((async t=&gt;{M&amp;&amp;await e.updateAttachmentForCommentDraft(t,M)}),[M,e]),ne=M?M.canUpdateVisibility:j.canUpdateCommentVisibility(t),se=t.project,ie=j.has(U.g.updateProject,se.id);let ae;ne||j.isAgentInProject(se)||(ae=ie?m.t`Only agents can post public comments in helpdesk tickets. To grant yourself an agent license, open the Team tab in the project settings.`:m.t`Only agents can post public comments in helpdesk tickets`);const oe=F?m.t`Write a comment`:m.t`Write a comment, @mention people`,re=Boolean((0,H.i)()),ce=(0,y.jE)({projectId:t.project.id,entityType:"comment",entityId:M?.id??"",isDraft:!0});return(0,s.jsx)("div",{children:(0,s.jsx)(C.Z,{handleErrorCorrectionPluginEvent:ce,className:w.ub,editorClassName:d,renderAvatar:()=&gt;(0,s.jsx)(g.Z,{compactUiMode:re,className:w.ri,round:!0,size:32,url:R.avatarUrl,subAvatarUrl:A.settings?.membership?.avatarUrl,subAvatarTitle:A.settings?.membership?.name}),project:t.project,isReporter:F,widgetsHost:Y,initialValue:E,onChange:$,getSuggestions:e.getMentionSuggestions,onFocus:()=&gt;e.setEditorBlurred(!1),onBlur:()=&gt;e.setEditorBlurred(!0),onSend:e.postComment,loading:e.commentDraftIsLoading,posting:e.commentIsPosting,draftAttachments:M?.attachments??[],entityAttachments:(0,_._i)(t)?t.attachments:[],onUpdatedDraftAttachment:q,onUpdatedParentEntityAttachment:W,isUpdatableAttachment:Q,uploadImage:e.attachFileToComment,onAttachFile:K?X:void 0,limitedVisibility:(M?.restricted??e.defaultCommentVisibility).length&gt;0,placeholder:oe,modeStorage:A.editorModeStorage,mentions:M?.mentions??((0,_._i)(t)?t.mentions:{users:[],tickets:[],articles:[]}),auxShortcutsMap:e.activityItemsNavigationAuxShortcutsMap,renderSendButton:(n,i,a)=&gt;(0,s.jsx)(r.Qj,{children:()=&gt;(0,s.jsx)(I,{onSend:n,loader:i,disabled:a,onChangeState:async t=&gt;{await n(),e.updateTicketState(t)},getStateValues:j.canUpdatePrivateFields(t)&amp;&amp;t?.status?e.getStateOptions:void 0})}),renderCancelButton:t=&gt;(0,s.jsx)(i.ZP,{onClick:async()=&gt;{const{canceled:n}=await e.onDeleteCommentDraft();n||t()},children:m.t`Cancel`}),renderCustomToolbarItems:()=&gt;(0,s.jsxs)(s.Fragment,{children:[(0,_._i)(t)&amp;&amp;(0,s.jsx)(B,{projectId:t.project.id,disabled:""===e.state.initialCommentText,commentDraft:M,onApply:t=&gt;{e.state.initialCommentText=t}}),(0,_._i)(t)&amp;&amp;j.canAddTimeTracking(t)&amp;&amp;(0,s.jsx)(b.u,{title:m.t`Add spent time...`,children:(0,s.jsx)(i.ZP,{icon:l(),onClick:()=&gt;e.trackTime(),"data-test":"add-spent-time"})})]}),renderCustomActionItems:()=&gt;(0,s.jsxs)(s.Fragment,{children:[(0,_._i)(t)&amp;&amp;j.canCommentOn(t)&amp;&amp;!F&amp;&amp;(0,s.jsx)("div",{className:w.Ju,"data-test":"comment-visibility-picker",children:j.helpdesk.isHelpdeskTicket(t)?(0,s.jsx)(b.u,{title:ae,children:(0,s.jsx)(N.M,{publicLabel:m.t`Public`,getDefaultRestrictions:e.getHelpdeskCommentRestrictions,selected:M?.restricted??e.defaultCommentVisibility,onChange:e.updateCommentDraftVisibility,disabled:!ne})}):(0,s.jsx)(f.O,{className:o()({[w.x$]:L}),selected:M?.restricted??e.defaultCommentVisibility,getOptions:e.getVisibilityOptions,onChange:e.updateCommentDraftVisibility,emptyLabel:(0,P.WL)(m.t`Visible to same as issue`,m.t`Visible to same as ticket`,t),disabled:!ne})}),(0,_._i)(t)&amp;&amp;j.canAddTimeTracking(t)&amp;&amp;(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:w.hd}),(0,s.jsx)(b.u,{className:w.F,children:(0,s.jsxs)(i.ZP,{onClick:()=&gt;e.trackTime(),"data-test":"add-spent-time",children:[(0,s.jsx)(S.ZP,{glyph:l(),className:w.rL}),m.t`Add spent time`]})})]})]}),markdownByDefault:n,renderPreview:e=&gt;(0,s.jsx)(r.Qj,{children:()=&gt;(0,s.jsx)(D.Z,{markdown:e,mentions:M?.mentions,attachments:M?.attachments??[]})}),getEditorTextActions:a,children:(0,s.jsx)(p.s,{onAttach:J,attachments:M?.attachments??[],canRemove:ee,onRemove:e.removeDraftAttachment,removingAttachment:O,onUpdate:te,canUpdate:ee,getVisibilityOptions:e.getVisibilityOptions,canEditVisibility:!j.helpdesk.isReporter(t),hideVisibilityForImagePreview:j.helpdesk.isReporter(t),entity:"ticket",entityId:t?.id,projectId:t?.project?.id,hideCommentAttachments:!0})})})}))},94888:(e,t,n)=&gt;{"use strict";n.d(t,{i:()=&gt;yt});var s=n(651),i=n(49047),a=n(65443),o=n.n(a),r=n(68019),c=n(44e3),d=n(92379),l=n(86646),m=n(73161),h=n(65602),u=n(99879),p=n(76875),g=n(55854),C=n(55093),k=n(21299),y=n(99088),b=n.n(y),f=n(97817),x=n.n(f),_=n(34097),T=n.n(_),v=n(75229),j=n.n(v),S=n(47170),A=n.n(S),R=n(93281),E=n(27730),I=n(75100),w=n.n(I),N=n(57520),U=n.n(N),P=n(57240),D=n.n(P),M=n(7992),O=n.n(M),B=n(60029),H=n(78265),Z=n(79247),L=n(45853);const F=()=&gt;(0,L.ag)("YouTrack was unable to match the VCS user name to a Hub account for an unknown reason. Check your server logs for details."),V=(()=&gt;{const e=F();return{...["GitHub","GitLab","Bitbucket","Bitbucket Server","Gogs","Gitea","Space"].reduce(((e,t)=&gt;{const n=t.split(" ").join("_").toUpperCase();return{...e,[`${n}_NO_USER_INFO_PROVIDED`]:(0,L.ag)("YouTrack did not receive user data for this commit author from {{system}}.",{system:t}),[`${n}_NO_USER_FOUND_IN_YOUTRACK`]:(0,L.ag)("YouTrack did not find a user that matches the user account in {{system}}.",{system:t}),[`${n}_USER_NOT_UNIQUE`]:(0,L.ag)("YouTrack found multiple users with email addresses that match the registered email in {{system}}.",{system:t}),[`${n}_NO_EMAIL`]:(0,L.ag)("YouTrack did not receive an email address for the commit author from {{system}}.",{system:t})}}),{}),TEAMCITY_NO_USER_INFO_PROVIDED:e,TEAMCITY_NO_USER:e,TEAMCITY_NO_EMAIL_FOR_THAT_USER:(0,L.ag)("When integrating TeamCity and YouTrack, the users are matched by their email addresses. TeamCity has not provided any email address of the committer."),TEAMCITY_NO_USER_IN_YOUTRACK_BY_EMAIL:(0,L.ag)("The author of this commit has not been identified because they haven't specified their email address in their YouTrack profile."),TEAMCITY_USER_IS_NOT_UNIQUE_BY_EMAIL:(0,L.ag)("When integrating TeamCity and YouTrack, the users are matched by their email addresses. There are two or more different YouTrack users that have the same email address as the commit's author has in TeamCity."),TEAMCITY_ERROR_RETRIEVING_USER:(0,L.ag)("There was an error retrieving information about the change's author from TeamCity. The most probable reason is that TeamCity user that integration runs on behalf of does not have the required permissions."),UPSOURCE_NO_USER:(0,L.ag)("No user information provided by Upsource."),SPACE_NO_ACCESS_TO_PROFILES:(0,L.ag)("The Space application used for this VCS integration doesn't have access to Space member profile data."),HUB_ERROR_RING_INTEGRATION:(0,L.ag)("YouTrack was unable to match the VCS user name to a Hub account for an unknown reason. Check your server logs for details."),HUB_ERROR_FORCE_SYNC:(0,L.ag)("YouTrack was unable to match the VCS user name to a Hub account for an unknown reason. Check your server logs for details."),HUB_NULL_USER:(0,L.ag)("The VCS user name does not match any user in YouTrack. To link future commits, add the VCS user name to the Hub account for this user."),HUB_MULTIPLE_USERS:(0,L.ag)("The VCS user name matches more than one user in YouTrack. To link future commits, remove the duplicate VCS user names from one or more Hub accounts or merge the duplicates into a single user account."),VCS_NOT_IN_COMMITTERS_GROUP:(0,L.ag)("The commit author does not belong to the committers group."),INTEGRATION_NOT_AN_ASSIGNEE:(0,L.ag)("The commit author is not an assignee in the project."),BITBUCKET_NO_USER_BY_EMAIL:(0,L.ag)("YouTrack did not receive an email address for the commit author from Bitbucket."),BITBUCKET_NO_RAW_EMAIL:(0,L.ag)("The commit author has not specified an email address."),BITBUCKET_AUTHORS_DO_NOT_MATCH_DEPRECATED:(0,L.ag)("The commit author has specified an email address that is associated with a different user account.")}})();function Y(e,t){const n=[e,t].filter((e=&gt;e)).map((e=&gt;V[e]||F()));return Array.from(new Set(n))}var G=n(19554),$=n(92067),q=n.n($);const W=e=&gt;{const{noHubUserReason:t,noUserReason:n,extraErrors:i=[]}=e,a=[...Y(t,n),...i];return 0===a.length?null:(0,s.jsx)(E.u,{title:(0,s.jsx)("ul",{className:R.Gs,"data-test":"vcs-errors-list",children:a.map((e=&gt;(0,s.jsx)("li",{children:e},e)))}),"data-test":"vcs-user-warning",children:(0,s.jsx)(G.ZP,{className:R.tO,glyph:q()})})};var z=n(30387);function J(e,t=!1){const n=[],s=function(e){let t="";switch(e){case C.tc.MANUALLY_ATTACHED:t=l.t`The change has been manually attached to this issue.`;break;case C.tc.DETACHED:t=l.t`The change has been detached from this issue. It is still displayed here because its comment mentions the issue.`;break;case C.tc.LEGACY:t=l.t`The change was processed during the initial data fetching, thus no command has been applied.`;break;default:t=""}return t}(e.state);s&amp;&amp;!t&amp;&amp;n.push(s);const i=e.commands.filter((e=&gt;t?e.hasError:!e.hasError));if((0,z.dU)(i)){const e={COMMAND_APPLIED:(0,L.ag)("Command was successfully applied."),COMMAND_NOT_APPLIED:(0,L.ag)("Could not apply specified command.")},t=i.some((e=&gt;e.hasError))?e.COMMAND_NOT_APPLIED:e.COMMAND_APPLIED;n.push(t)}return n}const K=(0,r.Pi)((function(e){const{store:t,change:n}=e;if(n.commit){const e=J(n.commit,!1),{state:a,id:o,version:r}=n.commit;return(0,s.jsx)("div",{"data-test":"vcs-actions",children:(0,s.jsxs)(H.Z,{className:"actionsContainerInner__eaaf",split:!0,children:[e.length&gt;0&amp;&amp;(0,s.jsx)(E.u,{title:e.join("\n"),children:(0,s.jsx)(i.ZP,{icon:O(),iconSize:B.$.Size16,iconSuppressSizeWarning:!0})}),t.canChangeVCS&amp;&amp;(0,s.jsx)(s.Fragment,{children:a===C.tc.DEFAULT||a===C.tc.MANUALLY_ATTACHED?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E.u,{title:l.t`Detach`,children:(0,s.jsx)(i.ZP,{icon:w(),onClick:()=&gt;t.detachCommit(o)})}),(0,s.jsx)(E.u,{title:l.t`Move`,children:(0,s.jsx)(i.ZP,{icon:U(),onClick:()=&gt;t.toggleMoveCommitDialog(r)})})]}):(0,s.jsx)(E.u,{title:l.t`Attach`,children:(0,s.jsx)(i.ZP,{icon:D(),onClick:()=&gt;t.attachCommit(o)})})})]})})}if(n.pullRequest){const{id:e,idExternal:t,url:i,noHubUserReason:a,noUserReason:o}=n.pullRequest;return(0,s.jsxs)("div",{"data-test":"vcs-actions",children:[(0,s.jsx)(W,{noHubUserReason:a,noUserReason:o}),Boolean(i)&amp;&amp;(0,s.jsxs)(Z.r,{target:"_blank",href:i,"data-test":"vcs-actions-link",children:["#",t??e]})]})}return(0,s.jsx)("span",{})}));var Q=n(72619),X=n(58984),ee=n(38004),te=n.n(ee),ne=n(15970);const se={TeamcityChangesProcessor:"Teamcity",TeamcityBuildConfMapping:"Teamcity",GitLabChangesProcessor:"GitLab",GitHubChangesProcessor:"GitHub",GithubRepo:"GitHub",GogsServer:"Gogs",GogsChangesProcessor:"Gogs",GiteaServer:"Gitea",GiteaChangesProcessor:"Gitea",UpsourceChangesProcessor:"Upsource",JenkinsServer:"Jenkins",JenkinsChangesProcessor:"Jenkins",BitBucketServer:"Bitbucket",BitBucketChangesProcessor:"Bitbucket",SpaceServer:"Space",SpaceChangesProcessor:"Space",GenericServer:"Generic",GenericChangesProcessor:"Generic"};var ie=n(89265),ae=n(39599),oe=n(16983),re=n(39274),ce=n(22138),de=n(49397),le=n(31053);function me(e){return()=&gt;{ie.B.copyText(e,l.t`Commit hash copied`,void 0,2e3)}}function he(e){return e.version.substring(0,8)}function ue(e){return e.filter((e=&gt;e.hasError)).map((e=&gt;e.errorText))}const pe=(0,r.Pi)((function({commit:e,ticket:t,shouldRenderChainHelper:n}){const{appStore:{linkBuilder:i},settingsStore:a}=(0,re.Yh)(),{settings:r}=a,{text:c,mentions:m,files:h,noHubUserReason:u,noUserReason:p,commands:g}=e,k=(0,d.useMemo)((()=&gt;({...m,tickets:[...m.tickets,t]})),[m,t]),[y,b]=(0,d.useState)(!0),f=c.length&gt;512,x=(0,ae.Z)(m,[]),_=(0,d.useMemo)((()=&gt;c?(0,oe.Z)(c,i,{html:!1,mentions:k,mentionsUnfurling:{tickets:!1,articles:!1,users:!1},commands:g,unsafeLinks:a.featureEnabled(le.Y.allowReferrerHeader)}):""),[i,k,c,x,a]),T=[...ue(g),...J(e,!0)],v=(0,s.jsx)(W,{noUserReason:p,noHubUserReason:u,extraErrors:T}),j=t=&gt;(0,s.jsxs)(X.l,{target:"_blank",href:t?void 0:e.urls[0],className:o()(R.Sh,{[R.fd]:e.state===C.tc.DETACHED}),onCopy:me(e.version),message:l.t`Copy commit hash`,renderCustomNode:()=&gt;v,"data-test":"commit-info-link",right:!0,children:[he(e),t&amp;&amp;(0,s.jsx)(G.ZP,{glyph:te(),style:{marginLeft:"6px"}})]});return(0,s.jsxs)("div",{className:R._E,"data-test":"commit-info",children:[c?.trim()&amp;&amp;(0,s.jsxs)("div",{className:o()(R._B,{[R.Ek]:n}),children:[(0,s.jsxs)(ce.ZP,{children:[(0,s.jsx)(de.Z.MentionsTooltipHolder,{isCurrentUserReporter:r?.isReporter,isCurrentUserAgent:r?.isAgent,mentions:k.users}),(0,s.jsx)(de.Z.IssueCardHolder,{html:c,mentions:k.tickets}),(0,s.jsx)("div",{"data-test":"commits-info-text",className:o()(R.fL,{[R.it]:y&amp;&amp;f,[R.fd]:e.state===C.tc.DETACHED}),dangerouslySetInnerHTML:{__html:_}})]}),f&amp;&amp;(0,s.jsx)(Z.r,{className:R.$B,onClick:()=&gt;b(!y),children:y?l.t`Show more`:void 0})]}),(0,s.jsxs)("div",{className:R.II,children:[h&gt;=1&amp;&amp;(0,s.jsx)("span",{className:R.Kn,"data-test":"files-changed",children:(0,l.ngettext)(l.msgid`${h} file`,`${h} files`,h)}),1===e.urls.length&amp;&amp;j(),1!==e.urls.length&amp;&amp;(0,s.jsx)(ne.Z,{"data-test":"commit-info-dropdown",className:R.Sh,data:(S=e.processors,A=e.urls,S.map(((e,t)=&gt;{return{id:e.id,label:(n=e.type,se[n]||void 0),href:A[t],target:"_blank"};var n}))),anchor:j(!0)})]})]});var S,A})),ge=(0,r.Pi)((function({pullRequest:e,ticket:t}){const{appStore:{linkBuilder:n},settingsStore:i}=(0,re.Yh)(),{settings:a}=i,{title:r,text:c,mentions:m}=e,h=(0,d.useMemo)((()=&gt;({...m,tickets:[...m.tickets,t]})),[m,t]),[u,p]=(0,d.useState)(!0),g=r.length&gt;512,C=(0,d.useMemo)((()=&gt;r?(0,oe.Z)(r+(c?`&lt;/br&gt;${c}`:""),n,{html:!1,mentions:h,mentionsUnfurling:{tickets:!1,articles:!1,users:!1},unsafeLinks:i.featureEnabled(le.Y.allowReferrerHeader)}):""),[r,c,n,h,i]);return(0,s.jsx)("div",{className:o()(R._E),"data-test":"pull-request-info",children:r?.trim()&amp;&amp;(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ce.ZP,{className:R._B,children:[(0,s.jsx)(de.Z.MentionsTooltipHolder,{isCurrentUserReporter:a?.isReporter,isCurrentUserAgent:a?.isAgent,mentions:h.users}),(0,s.jsx)(de.Z.IssueCardHolder,{html:r,mentions:h.tickets}),(0,s.jsx)("div",{className:o()(R.fL),dangerouslySetInnerHTML:{__html:C},"data-test":"pull-request-info-text"})]}),g&amp;&amp;(0,s.jsx)(Z.r,{onClick:()=&gt;p(!u),children:u?l.t`Show more`:l.t`Show less`})]})})}));var Ce=n(25219),ke=n(12687);const ye=(0,r.Pi)((function(e){const{change:t,index:n,className:i,dateFormatter:a,onItemClick:r,author:c,isItemFocused:l,store:m,renderSeparator:h,isLastSubsequentItem:u,isReporterMode:p}=e,{settingsStore:{settings:g}}=(0,re.Yh)(),{commit:C,pullRequest:k}=t,y=(0,d.useRef)(null);return(0,Ce.D)(y,l),(0,s.jsxs)("div",{ref:y,id:t.id,className:o()("vcsChange__f6cd",i),"data-test":"vcs-change",onClick:()=&gt;{r(t.id)},role:"tabpanel",tabIndex:0,children:[(0,s.jsxs)(Q.J,{author:0===n?c:void 0,locale:g.locale,date:t.date,dateFormatter:a,isReporter:p,children:[h&amp;&amp;(0,s.jsx)("span",{className:o()(R.xd,ke.tp)}),(0,s.jsx)(K,{change:t,store:m})]}),C&amp;&amp;(0,s.jsx)(pe,{commit:C,ticket:m.ticket,shouldRenderChainHelper:!u}),k&amp;&amp;(0,s.jsx)(ge,{pullRequest:k,ticket:m.ticket})]})})),be=(0,r.Pi)((function(e){const{store:t,changeSet:n,isItemFocused:i=!1,className:a,children:o,isReporterMode:r,isChangeHashNav:c}=e,m=n.changes.filter(C.$G),{pullRequest:h,author:u}=m[0],p=(0,d.useRef)(null);(0,Ce.D)(p,i,c);let g=b(),y=e=&gt;l.jt`Committed changes ${e}`;if(h)switch(h.state){case C.Zm.OPEN:y=e=&gt;l.jt`Submitted a pull request ${e}`,g=x();break;case C.Zm.MERGED:y=e=&gt;l.jt`Merged the pull request ${e}`,g=T();break;case C.Zm.DECLINED:y=e=&gt;l.jt`Declined the pull request ${e}`,g=j();break;default:g=A()}const f=n.changeIDs.join(" ");return(0,s.jsx)("div",{ref:p,id:f,"data-test":"vcs-changes",className:a,role:"tabpanel",tabIndex:0,children:(0,s.jsxs)("div",{className:R.p7,children:[(0,s.jsx)(k.Z,{glyph:g,className:h?void 0:R.sA}),(0,s.jsxs)("div",{className:R.kQ,children:[m.map(((e,n)=&gt;{const{commit:i,pullRequest:a}=e;if(i||a){const o=i?.id??a?.id;return(0,s.jsx)(ye,{change:e,index:n,className:R.Jg,dateFormatter:y,isItemFocused:e.id===t.focusedActivityItemId,onItemClick:t.focusActivityItem,author:u,store:t,renderSeparator:0!==n&amp;&amp;m.length&gt;1,isLastSubsequentItem:n===m.length-1,isReporterMode:r},o)}})),o]})]})})}));var fe=n(49847),xe=n(44120),_e=n(2314),Te=n(62893),ve=n(32744),je=n(72463),Se=n(86426),Ae=n(85498),Re=n.n(Ae),Ee=n(28466),Ie=n.n(Ee),we=n(13246),Ne=n.n(we),Ue=n(55379),Pe=n.n(Ue),De=n(43219),Me=n.n(De),Oe=n(5623),Be=n.n(Oe),He=n(53455),Ze=n.n(He),Le=n(26718),Fe=n.n(Le),Ve=n(12140),Ye=n.n(Ve),Ge=n(41909),$e=n.n(Ge),qe=n(99735),We=n.n(qe),ze=n(81205),Je=n(91421),Ke=n(21096),Qe=n(2429),Xe="icon__d41e",et="iconPadded__de22";const tt=e=&gt;{const{text:t,percent:n,onClick:i,glyph:a,className:r,padded:c,...d}=e;return(0,s.jsxs)("div",{className:o()("loader__a7db",r),onClick:i,...d,children:[(0,s.jsxs)("span",{className:"background__bf64",children:[(0,s.jsx)(G.ZP,{className:o()(Xe,"backgroundIcon__a014",{[et]:c}),glyph:a,size:B.$.Size16}),t]}),(0,s.jsxs)("span",{className:"foreground__f362",style:{width:`${n}%`},children:[(0,s.jsx)(G.ZP,{className:o()(Xe,{[et]:c}),glyph:a,size:B.$.Size16}),t]})]})};var nt=n(7331),st=n(86743),it=n(94680),at=n(70465),ot=n(49997);const rt=(0,r.Pi)((function(e){const{ticket:t,changeSet:n,onReply:a,onDelete:o,onPin:r,onEdit:c,onReact:m,onUndo:h,onShowOriginal:u,onApplyAction:p,canUndo:g,onActionsShow:k,actions:y,hasHistory:b,onShowHistory:f}=e,{comment:x}=n,_=-1!==n.key.indexOf("tmp"),{permissionsStore:T,appStore:v,settingsStore:j}=(0,re.Yh)(),S=v.getCurrentUser().id,A=(0,it.a)("screen and (max-width: 1103px) and (min-width: 901px)"),R=x&amp;&amp;T.helpdesk.canUseUndoComment(t)&amp;&amp;0===x.restricted.length&amp;&amp;t.canUndoComment,I=T.helpdesk.isHelpdeskTicket(t),w=!x||!I||x?.restricted.length&gt;0,N=x&amp;&amp;T.canRemoveComment(t,n.author.id)&amp;&amp;w,U=x&amp;&amp;x.hasSource&amp;&amp;T.canViewMessageSource(t),P=x&amp;&amp;T.canEditComment(t,n.author.id)&amp;&amp;w,D=x&amp;&amp;T.canCommentOn(t),M=x&amp;&amp;T.canReactComment(t)&amp;&amp;j.featureEnabled(le.Y.reactionsEnabled),O=x&amp;&amp;!T.helpdesk.isReporter()&amp;&amp;(!T.helpdesk.isHelpdeskTicket(t)||T.isAgentInProject(t.project))&amp;&amp;T.canUpdatePrivateFields(t),B=(0,d.useCallback)((()=&gt;c()),[c]),Z=(0,d.useCallback)((()=&gt;a?.(n)),[n,a]),L=(0,d.useCallback)((()=&gt;f(t.id,x.id)),[x,f,t]),[F,V]=(0,d.useState)(-1),Y=(0,d.useCallback)((async()=&gt;{await(0,ze.i)({text:l.t`Are you sure you want to delete comment?`,confirmLabel:l.t`Delete`,rejectLabel:l.t`Cancel`})&amp;&amp;o()}),[o]),G=(0,d.useCallback)((async()=&gt;{r()}),[r]),$=(0,d.useRef)(0);(0,d.useEffect)((()=&gt;{if(!x)return;const e=()=&gt;{if(!g)return void V(-1);const t=6e4-((new Date).getTime()-n.date.getTime()),s=t&lt;0,i=Math.round(100-t/6e4*100);V(s?-1:i),s||($.current=window.setTimeout(e,1e3))};return e(),()=&gt;window.clearTimeout($.current)}),[n.date,x,g]);const q=(0,d.useMemo)((()=&gt;{const e=v.linkBuilder.buildEntityLink(t,{external:!0}),i=n.changes[0]?.kind||C.yX.change,a=(0,nt.TH)(n.key,i,e),o=n.key.replace(".pinned",""),r=document.querySelector(`[data-activity-locator~="${o}"]`),c=(0,at.P)(y,(e=&gt;p(x.id,e)));return[{key:"copy",glyph:Re(),label:`${x?l.t`Copy link to comment`:l.t`Copy link to this history item`}`,onClick:(e,t)=&gt;{ie.B.copyText(a,l.t`Link copied to clipboard`),t.preventDefault()}},x&amp;&amp;x.pinned&amp;&amp;r&amp;&amp;"date"in x&amp;&amp;{key:"locate",glyph:Pe(),label:l.t`Locate in activity stream`,onClick:()=&gt;{r.scrollIntoView({block:"center",behavior:"smooth"})}},U&amp;&amp;x&amp;&amp;{key:"view-original",glyph:Ie(),label:l.t`View original email`,onClick:()=&gt;u(t.id,x.id)},O&amp;&amp;{key:"pin",label:x.pinned?l.t`Unpin comment`:l.t`Pin comment`,glyph:Be(),onClick:G},!I&amp;&amp;b&amp;&amp;D&amp;&amp;{key:"history",label:l.t`View comment history`,glyph:$e(),onClick:L},N&amp;&amp;{key:"remove",label:l.t`Delete`,glyph:Fe(),className:ke.ap,onClick:Y},R&amp;&amp;F&gt;=0&amp;&amp;A&amp;&amp;{key:"revise",rgItemType:Ke.Dy.CUSTOM,template:(0,s.jsx)(tt,{glyph:We(),"data-test":"revise-comment",text:l.t`Revise comment`,percent:F,padded:!0,onClick:h})},c.length&gt;0?{key:"separator",rgItemType:Je.default.ListProps.Type.SEPARATOR}:null,...c].filter((e=&gt;!!e))}),[v.linkBuilder,t,n.changes,n.key,y,x,U,O,G,I,b,D,L,N,Y,R,F,A,h,p,u]),W=(0,d.useMemo)((()=&gt;{const e=x?.reactions;return e?e.filter((e=&gt;e.votes.some((e=&gt;e.voter.id===S)))):[]}),[S,x]),z=(0,d.useCallback)((async e=&gt;{const t=W.find((t=&gt;t.kind===e)),n=t?.votes.find((e=&gt;e.voter.id===S));m(e,n?.id??null)}),[S,W,m]);return _?(0,s.jsx)(Qe.Z,{className:ke.XG}):(0,s.jsxs)("div",{"data-test":"ticket-change-action",onClick:e=&gt;e.stopPropagation(),className:ke.Pl,children:[(0,s.jsxs)(H.Z,{className:ke.JT,split:!0,children:[M&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Add reaction`,children:(0,s.jsx)(st.g,{onReact:z,votedReactions:W})}),a&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Reply`,children:(0,s.jsx)(i.ZP,{icon:Ye(),onClick:Z})}),P&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Edit comment`,children:(0,s.jsx)(i.ZP,{"data-test":"edit-event",icon:Me(),onClick:B})}),a&amp;&amp;x&amp;&amp;(0,s.jsx)(ot.Z,{changeSet:n,comment:x,entity:t,onReply:a}),q.length&gt;0&amp;&amp;(0,s.jsx)(ne.Z,{onShow:()=&gt;{x&amp;&amp;k(x.id)},anchor:({active:e},t={})=&gt;{const n=(0,s.jsx)(i.ZP,{icon:Ne(),active:e,"data-test":"comment-menu",...t});return e?n:(0,s.jsx)(E.u,{title:l.t`More actions`,children:n})},data:q})]}),R&amp;&amp;F&gt;=0&amp;&amp;!A&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Unpublish your comment so you can revise the text or update its visibility. This option is only available within 60 seconds after the most recent public comment is posted.`,children:(0,s.jsx)(tt,{glyph:We(),"data-test":"revise-comment",text:l.t`Revise comment`,percent:F,onClick:h})}),x&amp;&amp;x.pinned&amp;&amp;!T.helpdesk.isReporter()&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Unpin comment`,children:(0,s.jsx)(i.ZP,{"data-test":"unpin-comment",icon:Ze(),disabled:!O,primary:!0,onClick:G})})]})})),ct=(0,r.Pi)((function(e){const{store:t,change:n,ticket:i,undoAllowed:a}=e,{permissionsStore:o,appStore:r}=(0,re.Yh)(),c=n.comment;(0,Se.yR)(c);const d=!o.helpdesk.isReporter(i)&amp;&amp;o.canReplyComment(i,n.author.id),l=r.getCurrentUser().id;return(0,s.jsx)(s.Fragment,{children:c&amp;&amp;!c.deleted&amp;&amp;(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(rt,{ticket:i,changeSet:n,onDelete:()=&gt;t.removeComment(c),onEdit:()=&gt;t.enterCommentEditMode(n),onPin:()=&gt;t.pinComment(c?.id,n),onReply:d?t.replyToComment:null,onReact:(e,n)=&gt;t.toggleReaction(c.id,e,n),canUndo:a&amp;&amp;n.author.id===l,onUndo:()=&gt;t.undoComment(c),onShowOriginal:(e,n)=&gt;t.showCommentOriginalMessage(e,n),onApplyAction:(e,n)=&gt;t.applyCommentAction(e,n),hasHistory:Boolean(c.updated),onShowHistory:(e,n)=&gt;t.showCommentHistory(e,n),onActionsShow:t.loadCommentActions,actions:t.ticketCommentActions.get(c.id)??[]})})})})),dt=(0,r.Pi)((function({ticket:e,changeSet:t,onDelete:n,onEdit:a}){const{timeItem:o}=t;(0,Se.yR)(o,"Could not show time item actions without time item");const{permissionsStore:r}=(0,re.Yh)(),c=r.canRemoveTimeTracking(e,o.author.id),m=r.canEditTimeTracking(e,o.author.id),h=(0,d.useCallback)((()=&gt;a(o)),[a,o]),u=(0,d.useCallback)((()=&gt;{n(o)}),[n,o]),p=(0,d.useMemo)((()=&gt;[c&amp;&amp;{key:"remove",label:l.t`Delete`,glyph:Fe(),onClick:u}].filter((e=&gt;!!e))),[c,u]);return(0,s.jsx)("div",{children:(0,s.jsxs)(H.Z,{className:ke.JT,split:!0,children:[m&amp;&amp;(0,s.jsx)(E.u,{title:l.t`Edit`,children:(0,s.jsx)(i.ZP,{"data-test":"edit-event",icon:Me(),onClick:h})}),p.length&gt;0&amp;&amp;(0,s.jsx)(ne.Z,{data:p,anchor:({active:e},t={})=&gt;{const n=(0,s.jsx)(i.ZP,{icon:Ne(),active:e,"data-test":"work-item-menu",...t});return e?n:(0,s.jsx)(E.u,{title:l.t`More actions`,children:n})}})]})})}));var lt=n(38013),mt=n(20324),ht=n(97688);const ut=(0,r.Pi)((function(e){const{canRestore:t,canRemoveForever:n,onRestore:i,onDelete:a}=e,o=(0,s.jsx)(Z.r,{onClick:i,"data-test":"restore",children:l.t`Restore`},"restore"),r=(0,s.jsx)(Z.r,{onClick:a,"data-test":"delete-forever",children:l.t`Delete permanently`},"delete");return(0,s.jsxs)("span",{"data-test":"was-deleted",className:ke.tZ,children:[l.t`Comment was deleted.`," ",t&amp;&amp;!n&amp;&amp;o,!t&amp;&amp;n&amp;&amp;r,t&amp;&amp;n&amp;&amp;l.jt`${o} or ${r}`]})}));var pt=n(56e3),gt=n(57612),Ct=n(72051),kt=n(90869);const yt=(0,r.Pi)((function(e){const{store:t,permissionsStore:n,linkBuilder:a,changeSets:r,reverse:k=!1,markdownByDefault:y,alwaysShowAvatars:b=!1,imageControlComponent:f,canUpdateTicket:x=!1,getCommentTextActions:_,getEditorTextActions:T,className:v}=e,{appStore:{auth:j,getCurrentUser:S},appsWidgetsStore:A,i18nStore:E}=(0,re.Yh)(),{ticket:I,removingAttachment:w,settingsStore:N}=t,{editingComment:U,editingChangeId:P}=t.state,D=n.helpdesk.isReporter(I),M=I&amp;&amp;n.helpdesk.isHelpdeskTicket(I),O=Boolean((0,Ct.i)()),B=l.t`View change in version history`,H=(0,d.useCallback)(((e,t=!1)=&gt;!!I&amp;&amp;n.canRemoveAttachment(I,e,t)),[n,I]),Z=(0,d.useCallback)(((e,t=!1)=&gt;!!I&amp;&amp;n.canUpdateAttachment(I,e,t)),[n,I]),L=e=&gt;n.canReadUsers(e.id,xe.Zl.LINK,xe.Zl.BOLD,xe.Zl.NONE),F=(0,d.useCallback)((async(e,n)=&gt;{n.forEach((n=&gt;{t.attachFileToEditingComment(e,n)}))}),[t]),V=(0,d.useCallback)((async(e,n)=&gt;{const s={...e,base64Content:n};I&amp;&amp;await t.updateAttachment(s,I,U)}),[I,t,U]),Y=(0,d.useCallback)((async e=&gt;{const t=await(0,Te.w)();await F(e,t)}),[F]),G=(0,d.useCallback)(((e=!1)=&gt;!!I&amp;&amp;n.canAddAttachmentTo(I,e)),[n,I]),$=(0,d.useCallback)(((e,t,n)=&gt;s=&gt;t?_(s,e,t,n):[]),[_]);return I?(0,s.jsx)("div",{className:v,children:r.map(((e,_)=&gt;{const v=o()(ke.I7,{[ke.s_]:!k&amp;&amp;_===r.length-1});if(e.changes.find(C.$G)){const n=Boolean(!e.changes.every(C.$G)&amp;&amp;t.focusedActivityItemId&amp;&amp;e.changeIDs.includes(t.focusedActivityItemId));return(0,s.jsx)(be,{store:t,changeSet:e,className:v,isItemFocused:n,isChangeHashNav:t.isChangeHashNav,isReporterMode:D,children:e.changes.find((e=&gt;!(0,C.$G)(e)))&amp;&amp;(0,s.jsx)("div",{className:o()(R.Vu,R.i6),children:e.changes.filter((e=&gt;!(0,C.$G)(e))).map((e=&gt;(0,s.jsx)(lt.R,{change:e,collapsible:!0,linkBuilder:a,overrideTranslations:{description:l.t`Description`},isReporterMode:D},e.id)))})},e.key)}const{comment:q,timeItem:W}=e,z=q&amp;&amp;n.canEditComment(I,e.author.id)||W&amp;&amp;n.canEditTimeTracking(I,W.creator.id),J=!!q&amp;&amp;q.restricted.length&gt;0;if(q&amp;&amp;q.id===U?.id&amp;&amp;P===e.key){const a=(0,C._i)(I)?I.mentions:{users:[],tickets:[],articles:[]},r={users:[...q.mentions.users,...a.users],tickets:[...q.mentions.tickets,...a.tickets],articles:[...q.mentions.articles,...a.articles]},u=(0,C._i)(I)?I.attachments:U.attachments,p={hubURL:j.config.serverUri,me:S(),backendURL:A.backendURL,makeRequest:A.makeRequest,getAvailablePlugins:()=&gt;t.markdownWidgets,entity:I,locale:E.language,canEmbedWidget:!0,getServices:()=&gt;A.getCachedHubServices(),getEmbeddings:()=&gt;(0,c.ZN)(q.embeddings),updateEmbeddings:e=&gt;{q.embeddings=e}};return(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(mt.Z,{scope:"ticket-editor",map:t.commentEditModeShortcutsMap}),(0,s.jsx)(fe.Z,{focusEventName:je.FOCUS_EXISTING_COMMENT_EDITOR_EVENT_NAME,className:o()(ke.cR,{[ke.yS]:J}),renderAvatar:()=&gt;(0,s.jsx)(h.Z,{compactUiMode:O,className:ke.ri,round:!0,size:32,url:e.author.avatarUrl,subAvatarUrl:e.author.membership?.avatarUrl}),modeStorage:N.editorModeStorage,handleErrorCorrectionPluginEvent:(0,g.YU)({entityType:"comment",entityId:q.id,projectId:I.project.id,isDraft:!1}),widgetsHost:p,project:I.project,isReporter:D,initialValue:q.content,markdownByDefault:null!==q.htmlContent||y,getSuggestions:t.getMentionSuggestions,onSend:e=&gt;t.updateComment(q.id,e,q),onChange:e=&gt;t.state.editingCommentText=e,posting:t.commentIsUpdating,entityAttachments:u,limitedVisibility:J,mentions:r,uploadImage:(e,n)=&gt;t.attachFileToEditingComment(q,e,n),onUpdatedParentEntityAttachment:V,isUpdatableAttachment:Z,onAttachFile:G(J)?()=&gt;Y(q):void 0,collapsedByDefault:!1,renderCancelButton:()=&gt;(0,s.jsx)(i.ZP,{onClick:t.exitCommentEditMode,className:ke.Tu,children:l.t`Cancel`}),renderSendButton:(e,t,n)=&gt;(0,s.jsx)(i.ZP,{"data-test":"save-comment",onClick:e,loader:t,disabled:n,primary:!0,children:l.t`Save`}),renderCustomActionItems:()=&gt;(0,s.jsx)("div",{className:ke.Ju,children:(0,s.jsx)(ve.O,{className:o()({[ke.x$]:J}),selected:q.restricted,getOptions:t.getVisibilityOptions,onChange:e=&gt;t.setCommentRestrictions(q,e),emptyLabel:(0,ht.WL)(l.t`Visible to same as issue`,l.t`Visible to same as ticket`,I),disabled:!q.canUpdateVisibility})}),renderPreview:e=&gt;(0,s.jsx)(pt.Z,{markdown:e,attachments:q?.attachments,host:p}),auxShortcutsMap:t.activityItemsNavigationAuxShortcutsMap,getEditorTextActions:T,children:(0,s.jsx)(m.s,{attachments:q.attachments,onAttach:e=&gt;F(q,e),canRemove:e=&gt;H(e,J),onRemove:t.removeAttachment,removingAttachment:w,canUpdate:e=&gt;Z(e,J),onUpdate:e=&gt;t.updateAttachment(e,I,q),getVisibilityOptions:t.getVisibilityOptions,onApplyAction:(e,n)=&gt;t.applyAttachmentAction(e,n),canEditVisibility:!n.helpdesk.isReporter(I),hideVisibilityForImagePreview:n.helpdesk.isReporter(I),entity:"ticket",entityId:I?.id,projectId:I?.project?.id,hideEmbeddedAttachments:t.hideEmbeddedAttachments,hideCommentAttachments:!0})})]},e.key)}{const o=t.changeSetsMap[e.key],d=q&amp;&amp;q.updated&amp;&amp;t.state.commentHistory.isShown&amp;&amp;t.state.commentHistory.commentId===q.id,h=e.changes.find((e=&gt;"changedThingId"in e&amp;&amp;["summary","description"].includes(e.changedThingId)))?.id,g=()=&gt;t.showHistory(I.id,!0,h);return(0,s.jsx)(ce.ZP,{children:(0,s.jsxs)(_e.Z,{onUpdate:async(...e)=&gt;q?t.updateCommentTaskStatus(q,...e):void 0,children:[(0,s.jsxs)(p.Z,{className:v,alwaysShowAvatars:b,renderSeparator:o?.renderSeparator,changeSet:e,isDifferentAuthor:o?.isDifferentAuthor,mentionsUnfurling:{users:!0,articles:!0,tickets:!1},isLastSubsequentChange:o?.isLastSubsequentChange,expandChanges:t.expandChanges,entity:I,getEmbeddings:()=&gt;q?(0,c.ZN)(q.embeddings):[],attachments:(0,C._i)(I)?I.attachments:[],isReporterMode:n.helpdesk.isReporter(I),isCurrentUserAgent:N.settings?.isAgent,highlightMentions:L,linkBuilder:a,history:h?{onShowInHistory:g,showInHistoryTooltip:B}:null,isHelpDeskTicket:Boolean(M),onImageClick:t.onImageClick,canEdit:()=&gt;z??!1,canUpdateDocumentContent:Boolean(x),overrideTranslations:{description:l.t`Description changed`,summary:l.t`Summary changed`,restored:M?l.t`Ticket restored`:l.t`Issue restored`,deleted:M?l.t`Ticket deleted`:l.t`Issue deleted`,removedFromBoard:l.t`Removed from board`,addedToBoard:l.t`Added to board`},documentModificationType:M?"ticket":"issue",onUpdateTaskStatus:t.updateActivityItemTaskStatus,limited:!0,onItemClick:t.focusActivityItem,isItemFocused:Boolean(t.focusedActivityItemId&amp;&amp;e.changeIDs.includes(t.focusedActivityItemId)),isChangeHashNav:t.isChangeHashNav,toolbarActionsNode:(0,s.jsxs)(s.Fragment,{children:[q&amp;&amp;(0,s.jsx)(ct,{ticket:I,change:e,store:t,undoAllowed:k?_===r.length-1:0===_}),e.timeItem&amp;&amp;(0,s.jsx)(dt,{ticket:I,changeSet:e,onDelete:t.deleteTimeItem,onEdit:t.editTimeItem}),!q&amp;&amp;x&amp;&amp;h&amp;&amp;!M&amp;&amp;(0,s.jsx)(kt.Z,{title:B,className:ke.JT,children:(0,s.jsx)(i.ZP,{icon:$e(),onClick:g})})]}),imageControlComponent:f,textActionsFactory:t=&gt;$(t,q,e.author.id),children:[q&amp;&amp;!q.deleted&amp;&amp;(0,s.jsxs)(s.Fragment,{children:[q.attachments.length&gt;0&amp;&amp;(0,s.jsx)(m.s,{attachments:q.attachments,canRemove:e=&gt;H(e,J),onRemove:t.removeAttachment,removingAttachment:w,canUpdate:e=&gt;Z(e,J),onUpdate:e=&gt;t.updateAttachment(e,I,q),getVisibilityOptions:t.getVisibilityOptions,onApplyAction:(e,n)=&gt;t.applyAttachmentAction(e,n),canEditVisibility:!n.helpdesk.isReporter(I),hideVisibilityForImagePreview:n.helpdesk.isReporter(I),isTextRecognitionEnabled:t.isTextRecognitionEnabled,recognizedTextSidebarExpanded:t.recognizedTextSidebarExpanded,onToggleRecognizedTextSidebarExpanded:t.toggleRecognizedTextSidebarExpanded,highlightAttachmentsWithRecognizedText:t.highlightedAttachmentsWithRecognizedText,entity:"ticket",entityId:I?.id,projectId:I?.project?.id,hideEmbeddedAttachments:t.hideEmbeddedAttachments,hideCommentAttachments:!0}),(0,s.jsx)(u.J,{reactions:q.reactions,onReaction:(e,n)=&gt;t.toggleReaction(q.id,e,n),canReact:n.canReactComment(I)})]}),q&amp;&amp;q.deleted&amp;&amp;(0,s.jsx)(ut,{canRemoveForever:n.canRemoveCommentForever(I),canRestore:n.canRestoreComment(I,e.author.id),onRestore:()=&gt;t.restoreComment(q),onDelete:()=&gt;t.removeCommentForever(q)})]}),d?(0,s.jsx)(gt.A,{entity:q,rootEntity:I,historyState:t.state.commentHistory,fromOldest:k,onClose:t.hideCommentHistory,onCommentRestore:z?t.restoreCommentState:void 0,linkBuilder:a,context:"ticket"}):null]})},e.key)}}))}):null}))},89891:(e,t,n)=&gt;{"use strict";n.d(t,{Z:()=&gt;m});var s=n(651),i=n(90869),a=n(68019),o=n(92379),r=n(86646),c=n(39274),d=n(31053),l="block__a9fa";const m=(0,a.Pi)((function({usersTyping:e}){const t=(0,c.Yh)(),{appStore:n,settingsStore:{featureEnabled:a}}=t,m=(0,o.useMemo)((()=&gt;n.getCurrentUser().id),[n]),h=(0,o.useMemo)((()=&gt;{const t=new Set;return e.filter((e=&gt;!e.user.isReporter)).slice().sort(((e,t)=&gt;e.timestamp&lt;t.timestamp?1:-1)).filter((e=&gt;e.user.id!==m&amp;&amp;!t.has(e.user.id)&amp;&amp;(t.add(e.user.id),!0)))}),[e,m]);if(!a(d.Y.userTyping))return null;if(0===h.length)return(0,s.jsx)("div",{className:l,children:"Â&nbsp;"});let u="",p="";const g=h.slice(0,3).map((e=&gt;e.user.name)).join(", "),C=h.map((e=&gt;e.user.name)).join(", "),k=h.slice(3);if(1===h.length)u=r.t`${g} is adding a comment`,p=r.t`${C} is adding a comment`;else{const e=k.length?(0,r.ngettext)(r.msgid` and ${k.length} more user`,` and ${k.length} more users`,k.length):"";u=r.t`${g}${e} are adding comments`,p=r.t`${C} are adding comments`}return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(i.Z,{title:k.length?p:void 0,children:u})})}))}}]);
//# sourceMappingURL=1423.5aa7dc36.js.map</pre></body></html>