티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[3201,6315,9389,16902,28773,28970,31146,37415,38074,45338,48727,50531,57293,57431,58281,60229,61526,64492,65404,73369,73560,73575,76413,76512,83846,85243,90920,91472,91491,92260],{977:(e,l,a)=>{a.d(l,{Z:()=>z});var n,t=a(74848);let i={kind:”InlineDataFragment”,name:”IssueFormElements_templateElements”};i.hash=”8c027995abd00c22fac1d025a14e2a8d”;var s=a(40104),r=a(96540),o=a(18312);let d={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”CheckboxesElement_input”,selections:[{alias:”itemId”,args:null,kind:”ScalarField”,name:”id”,storageKey:null},n={alias:null,args:null,kind:”ScalarField”,name:”label”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:”checkboxOptions”,args:null,concreteType:”IssueFormElementCheckboxOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[n,{alias:null,args:null,kind:”ScalarField”,name:”labelHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”required”,storageKey:null}],storageKey:null},{kind:”ClientExtension”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__id”,storageKey:null}]}],type:”IssueFormElementCheckboxes”,abstractKey:null};d.hash=”66c71c2357977009e7b34571e8a11e21″;var u=a(62559),c=a(73017),m=a(64451),p=a(86877),g=a(46720),y=a(10286);let h=”_No response_”;function k(e,l){return(0===l.length&&(l=h),e)?`### ${e} ${l}`:l}let f=(e,l,a,n)=>{if(“markdown”===l)return””;let t=””===l?a:`${l}-${a}`;return`${e}-${t}-${n}`};function b({itemId:e,indexOfFormElement:l,defaultValuesById:a,checkboxCount:n}){if(!e)return Array(n).fill(!1);let t=(0,y.k)({id:e,value:””,indexOfFormElement:l,defaultValuesById:a}).split(“,”).map(e=>”true”===e.trim());return t.length===n?t:Array(n).fill(!1)}let F=({ref:e,elementRef:l,index:a,sessionStorageKey:n,defaultValuesById:i,onFieldChange:s})=>{let r=(0,o.useFragment)(d,l);if(!r.checkboxOptions)return null;let u=f(n,””,r.label,r.__id);return(0,t.jsx)(I,{…r,type:”checkboxes”,index:a,ref:e,sessionStorageKey:u,defaultValuesById:i,onFieldChange:s})},I=({ref:e,itemId:l,index:a,sessionStorageKey:n,label:i,descriptionHTML:o,checkboxOptions:d,defaultValuesById:y,onFieldChange:h})=>{let f=(0,r.useRef)(null),F=(0,r.useMemo)(()=>b({itemId:l,indexOfFormElement:a,defaultValuesById:y,checkboxCount:d.length}),[d.length,y,a,l]),[I,S]=(0,s.Fo)(n,F),v=(0,r.useRef)(I);(0,r.useEffect)(()=>{v.current=I},[I]),(0,r.useEffect)(()=>{if(h&&y){let e=b({itemId:l,indexOfFormElement:a,defaultValuesById:y,checkboxCount:d.length});S(e),v.current=e}},[y,a,l,d.length,S,h]),(0,r.useEffect)(()=>{if(h){let e=v.current,n=b({itemId:l,indexOfFormElement:a,defaultValuesById:y,checkboxCount:d.length});e.length===n.length&&e.every((e,l)=>e===n[l])||h(l,a,e.map(e=>e.toString()).join(“,”))}},[I,l,a,h,y,d.length]);let[x,C]=(0,r.useState)(void 0);return(0,r.useImperativeHandle)(e,()=>({focus:()=>f.current?.focus(),markdown:()=>k(i,d.map((e,l)=>{var a,n;return a=e.label,n=I[l],`- [${n?”x”:” “}] ${a}`}).join(` `)),validate:()=>{for(let[e,l]of d.entries())if(l.required&&!I[e])return C(u.wY.checkboxInAGroupMustBeSelected),!1;return!0},reset:()=>{S(F),C(void 0)},hasChanges:()=>!F.every((e,l)=>e===I[l]),getSessionStorageKey:()=>n,type:”checkboxes”}),[d,F,i,I,n,S]),(0,r.useEffect)(()=>{x&&d.every((e,l)=>!e.required||I[l])&&C(void 0)},[d,I,x]),(0,t.jsxs)(m.A,{className:”CheckboxesElement-module__CheckboxesElementGroup–cz_dJ”,children:[(0,t.jsx)(m.A.Label,{className:”CheckboxesElement-module__CheckboxesElementGroupLabel–wixq_”,children:i}),o&&(0,t.jsx)(m.A.Caption,{className:”CheckboxesElement-module__CheckboxesElementGroupDescription–DoWqf”,children:(0,t.jsx)(c.vb,{html:o,className:”markdown-body note text-small mb-2″})}),d.map((e,l)=>(0,t.jsxs)(p.A,{required:e.required??!1,children:[(0,t.jsx)(g.A,{ref:0===l?f:void 0,checked:I[l],onChange:()=>{S(I.map((e,a)=>a===l?!e:e))}}),(0,t.jsx)(p.A.Label,{className:”CheckboxesElement-module__checkboxOptionLabel–kENEm”,children:(0,t.jsx)(c.JR,{html:e.labelHTML})})]},l)),x&&(0,t.jsx)(m.A.Validation,{variant:”error”,children:x})]})};F.displayName=”CheckboxesElement”,I.displayName=”CheckboxesElementInternal”;let S={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”DropdownElement_input”,selections:[{alias:”itemId”,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”label”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”options”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”required”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”multiple”,storageKey:null},{alias:”defaultOptionIndex”,args:null,kind:”ScalarField”,name:”default”,storageKey:null},{kind:”ClientExtension”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__id”,storageKey:null}]}],type:”IssueFormElementDropdown”,abstractKey:null};S.hash=”c5f5c78821adbd1825aa041b7a1063bf”;var v=a(94236),x=a(11196),C=a(5524);let j=”DropdownElement-module__dropdownElementButtonText–NRhbg”;var T=a(34164);function _({children:e,label:l,required:a,description:n,validationResult:i,className:s}){let o=(0,r.useId)(),d=(0,r.useId)(),u=(0,r.useId)();return(0,t.jsxs)(“div”,{className:(0,T.$)(“ElementWrapper-module__elementWrapperContainer–Zviz8”,s),children:[(0,t.jsxs)(p.A,{required:a??!1,children:[(0,t.jsx)(p.A.Label,{id:o,className:(0,T.$)(“ElementWrapper-module__elementLabel–qX9VS”,n&&”ElementWrapper-module__elementLabelWithDescription–c2FAt”),children:l}),n&&(0,t.jsx)(p.A.Caption,{id:d,className:”ElementWrapper-module__elementDescription–EA7D6″,children:(0,t.jsx)(c.vb,{html:n,className:”markdown-body note text-small mb-2″})})]}),e({labelId:o,descriptionIds:`${d} ${u}`}),i&&(0,t.jsx)(p.A.Validation,{id:u,variant:”error”,className:”ElementWrapper-module__validationMessage–P3NuI”,children:i})]})}try{_.displayName||(_.displayName=”ElementWrapper”)}catch{}function N({itemId:e,indexOfFormElement:l,defaultValuesById:a,optionChoices:n}){if(!e)return[];let t=new Set(function(e){if(!e.trim())return[];try{let l=`[${e}]`;return JSON.parse(l)}catch{return[]}}((0,y.k)({id:e,indexOfFormElement:l,value:””,defaultValuesById:a})));return n.filter(e=>t.has(e))}let K=({ref:e,elementRef:l,index:a,sessionStorageKey:n,defaultValuesById:i,onFieldChange:s})=>{let r=(0,o.useFragment)(S,l);if(!r.options)return null;let d=f(n,””,r.label,r.__id);return(0,t.jsx)(L,{…r,index:a,ref:e,type:”dropdown”,sessionStorageKey:d,defaultValuesById:i,onFieldChange:s})},L=({ref:e,itemId:l,index:a,sessionStorageKey:n,label:i,options:o,descriptionHTML:d,required:c,multiple:m,defaultOptionIndex:p,defaultValuesById:g,onFieldChange:y})=>{let h=(0,r.useRef)(null),f=(0,r.useRef)(null),b=null!=p,F=(0,r.useMemo)(()=>m||c||b?o:[“None”,…o],[b,m,o,c]),I=(0,r.useMemo)(()=>{let e=N({itemId:l,indexOfFormElement:a,defaultValuesById:g,optionChoices:F});return 0===e.length&&b&&p>=0&&p0&&!m&&(e=[F[0]]),e)},[p,g,b,a,l,m,F]),[S,T]=(0,s.Fo)(n,I),K=(0,r.useRef)(S);(0,r.useEffect)(()=>{K.current=S},[S]),(0,r.useEffect)(()=>{if(y&&g){let e=N({itemId:l,indexOfFormElement:a,defaultValuesById:g,optionChoices:F});T(e),K.current=e}},[g,a,l,F,T,y]),(0,r.useEffect)(()=>{if(y){let e=K.current,n=N({itemId:l,indexOfFormElement:a,defaultValuesById:g,optionChoices:F}),t=new Set(e),i=new Set(n);t.size===i.size&&[…t].every(e=>i.has(e))||y(l,a,e.map(e=>`”${e.replace(/\\/g,”\\\\”).replace(/”/g,’\\”‘)}”`).join(“, “))}},[S,l,a,y,g,F]);let[L,A]=(0,r.useState)(void 0),w=(0,r.useCallback)(e=>()=>{S.includes(e)?m&&T(S.filter(l=>l!==e)):m?T([…S,e]):T([e])},[m,S,T]);(0,r.useImperativeHandle)(e,()=>({focus:()=>h.current?.focus(),markdown:()=>k(i,S.join(“, “)),validate:()=>!c||0!==S.length||(A(u.wY.missingDropdownSelection),!1),reset:()=>{T(I),A(void 0)},hasChanges:()=>{if(S.length!==I.length)return!0;for(let e of S)if(!I.includes(e))return!0;return!1},getSessionStorageKey:()=>n,type:”dropdown”}),[I,i,c,S,n,T]),(0,r.useEffect)(()=>{S.length>0&&A(void 0)},[S]);let[P,E]=(0,r.useState)(!1),R=0===S.length?”None”:S.join(“, “);return(0,r.useEffect)(()=>{f.current&&E(f.current.scrollWidth>f.current.clientWidth)},[f,E]),(0,t.jsx)(_,{label:i,description:d,required:c,validationResult:L,className:”DropdownElement-module__dropdownElementContainer–ME35C”,children:({labelId:e,descriptionIds:l})=>(0,t.jsxs)(v.W,{anchorRef:h,children:[P?(0,t.jsx)(x.m,{text:R,children:(0,t.jsx)(v.W.Button,{“aria-labelledby”:e,”aria-describedby”:l,children:(0,t.jsx)(“span”,{ref:f,className:j,children:R})})}):(0,t.jsxs)(v.W.Button,{“aria-labelledby”:e,”aria-describedby”:l,children:[” “,(0,t.jsx)(“span”,{ref:f,className:j,children:R})]}),(0,t.jsx)(v.W.Overlay,{width:”medium”,side:”outside-top”,maxHeight:”medium”,className:”DropdownElement-module__dropdownMenuOverlay–qDXwf”,children:(0,t.jsx)(C.l,{selectionVariant:m?”multiple”:”single”,children:F.map((e,l)=>(0,t.jsx)(C.l.Item,{selected:S.includes(e),onSelect:w(e),children:e},l))})})]})})};K.displayName=”DropdownElement”,L.displayName=”DropdownElementInternal”;let A={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”MarkdownElement_input”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”contentHTML”,storageKey:null}],type:”IssueFormElementMarkdown”,abstractKey:null};A.hash=”bcf5223d492443ecf5db4594632948d9″;var w=a(26076),P=a(41057);let E=()=>(0,t.jsx)(“div”,{className:”FormElementLoading-module__loadingSkeletonContainer–QboQa”,children:(0,t.jsx)(P.Q,{borderRadius:”pill”,height:”lg”,width:”400px”})});try{E.displayName||(E.displayName=”FormElementLoading”)}catch{}let R=({elementRef:e})=>{let l=(0,o.useFragment)(A,e);return(0,t.jsx)(D,{verifiedHTML:l.contentHTML,type:”markdown”})},D=({verifiedHTML:e})=>(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(E,{}),children:(0,t.jsx)(w.G,{verifiedHTML:e})});try{R.displayName||(R.displayName=”MarkdownElement”)}catch{}try{D.displayName||(D.displayName=”MarkdownElementInternal”)}catch{}let V={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TextAreaElement_input”,selections:[{alias:”itemId”,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”label”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”placeholder”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”required”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”render”,storageKey:null},{kind:”ClientExtension”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__id”,storageKey:null}]}],type:”IssueFormElementTextarea”,abstractKey:null};V.hash=”77263c4a3e8e6f76c8ddc25b88931e27″;var M=a(42118),O=a(10576);let B=({ref:e,elementRef:l,index:a,sessionStorageKey:n,…i})=>{let s=(0,o.useFragment)(V,l),r=f(n,””,s.label,s.__id);return(0,t.jsx)($,{…s,…i,index:a,ref:e,type:”textarea”,sessionStorageKey:r})},$=({ref:e,itemId:l,sessionStorageKey:a,index:n,label:i,descriptionHTML:o,placeholder:d,required:c,value:m,render:p,subject:g,defaultValuesById:f,onSave:b,setIsFileUploading:F,onFieldChange:I})=>{let S=(0,r.useMemo)(()=>(0,y.k)({id:l,indexOfFormElement:n,value:m,defaultValuesById:f}),[l,n,m,f]),[v,x]=(0,s.Fo)(a,S),[C,j]=(0,r.useState)(!1),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(I&&f&&!C){let e=(0,y.k)({id:l,indexOfFormElement:n,value:m,defaultValuesById:f});e!==v&&e!==m&&x(e)}},[f,n,l,I,x,m,C,v]);let N=e=>{j(!0),x(e),I&&I(l,n,e),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{j(!1),T.current=null},500)},K=(0,r.useRef)(null),[L,A]=(0,r.useState)(void 0);return(0,r.useImperativeHandle)(e,()=>({focus:()=>K.current?.focus(),markdown:()=>k(i,p&&v!==h?`\`\`\`${p} ${v.replace(/(“`)(\w+)/g,””).replace(/(“`)/g,””).trim()} \`\`\“:v),validate:()=>{let e=(0,u.sT)(v,c??!1);return A(e.errorMessage),e.isValid},reset:()=>{x(S),A(void 0)},hasChanges:()=>v!==S,getSessionStorageKey:()=>a,type:”textarea”}),[S,i,p,c,a,x,v]),(0,r.useEffect)(()=>{L&&(0,u.sT)(v,c??!1).isValid&&A(void 0)},[c,v,L]),(0,t.jsx)(_,{label:i,required:c,description:o,validationResult:L,className:”TextAreaElement-module__TextAreaElementContainer–efGjO”,children:({labelId:e,descriptionIds:l})=>p?(0,t.jsx)(O.Ay,{“aria-labelledby”:e,”aria-describedby”:l,ref:K,placeholder:d??void 0,value:v,className:”TextAreaElement-module__codeViewTextArea–uyz8K”,onChange:e=>{N(e.target.value)}}):(0,t.jsx)(M.hF,{labelledBy:e,”aria-describedby”:l,ref:K,placeholder:d??void 0,value:v,onChange:e=>{N(e)},onSave:b,saveButtonTrailingIcon:!1,subject:g,setIsFileUploading:F})})};B.displayName=”TextAreaElement”,$.displayName=”TextAreaElementInternal”;let U={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TextInputElement_input”,selections:[{alias:”itemId”,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”label”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”placeholder”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”required”,storageKey:null},{kind:”ClientExtension”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__id”,storageKey:null}]}],type:”IssueFormElementInput”,abstractKey:null};U.hash=”20ef068a2834313afaaf43e8b01d0d49″;var H=a(30093);let q=({ref:e,elementRef:l,sessionStorageKey:a,…n})=>{let i=(0,o.useFragment)(U,l),s=f(a,””,i.label,i.__id);return(0,t.jsx)(G,{…i,…n,type:”input”,sessionStorageKey:s,ref:e})},G=({ref:e,sessionStorageKey:l,itemId:a,index:n,label:i,descriptionHTML:o,placeholder:d,required:c,value:m,defaultValuesById:p,onFieldChange:g})=>{let h=(0,r.useMemo)(()=>(0,y.k)({id:a,indexOfFormElement:n,value:m,defaultValuesById:p}),[a,n,m,p]),[f,b]=(0,s.Fo)(l,h),[F,I]=(0,r.useState)(!1),S=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(g&&p&&!F){let e=(0,y.k)({id:a,indexOfFormElement:n,value:m,defaultValuesById:p});e!==f&&e!==m&&b(e)}},[p,n,F,a,g,b,m,f]);let v=(0,r.useRef)(null),[x,C]=(0,r.useState)(void 0);return(0,r.useImperativeHandle)(e,()=>({focus:()=>v.current?.focus(),markdown:()=>k(i,f),validate:()=>{let e=(0,u.sT)(f,c??!1);return C(e.errorMessage),e.isValid},reset:()=>{b(h),C(void 0)},hasChanges:()=>f!==h,getSessionStorageKey:()=>l,type:”input”}),[h,i,c,l,b,f]),(0,r.useEffect)(()=>{x&&(0,u.sT)(f,c??!1).isValid&&C(void 0)},[c,f,x]),(0,t.jsx)(_,{label:i,description:o,required:c,validationResult:x,children:({labelId:e,descriptionIds:l})=>(0,t.jsx)(H.A,{ref:v,”aria-labelledby”:e,”aria-describedby”:l,placeholder:d??void 0,value:f,className:”TextInputElement-module__issueFormTextField–dG9jp”,onChange:e=>{var l;l=e.target.value,I(!0),b(l),g&&g(a,n,l),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!1),S.current=null},500)}})})};q.displayName=”TextInputElement”,G.displayName=”TextInputElementInternal”;let W=”IssueFormElements-module__formElementsContainer–v0fMt”,z=e=>”elements”in e?(0,t.jsx)(Q,{…e}):(0,t.jsx)(Y,{…e}),Q=({elements:e,outputRef:l,sessionStorageKey:a,…n})=>{let i=X(e.length,l);return(0,t.jsx)(“div”,{className:W,children:e.map((e,l)=>{let s=”markdown”===e.type?””:f(a,e.type,e.label,l);switch(e.type){case”markdown”:return(0,t.jsx)(D,{…e},l);case”textarea”:return(0,t.jsx)($,{index:l,…e,ref:i[l],sessionStorageKey:s,…n},l);case”input”:return(0,t.jsx)(G,{index:l,…e,ref:i[l],sessionStorageKey:s,…n},l);case”dropdown”:return(0,t.jsx)(L,{index:l,…e,ref:i[l],sessionStorageKey:s},l);case”checkboxes”:return(0,t.jsx)(I,{index:l,…e,ref:i[l],sessionStorageKey:s},l)}})})},Y=({issueFormRef:e,outputRef:l,…a})=>{let n=(0,o.readInlineData)(i,e),s=X(n.elements.length,l);return(0,t.jsx)(“div”,{className:W,children:n.elements.map((e,l)=>{switch(e.__typename){case”IssueFormElementMarkdown”:return(0,t.jsx)(“div”,{className:”IssueFormElements-module__markdownElementWrapper–sr15G”,children:(0,t.jsx)(R,{elementRef:e})},l);case”IssueFormElementInput”:return(0,t.jsx)(q,{index:l,elementRef:e,ref:s[l],…a},l);case”IssueFormElementDropdown”:return(0,t.jsx)(K,{index:l,elementRef:e,ref:s[l],…a},l);case”IssueFormElementTextarea”:return(0,t.jsx)(B,{index:l,elementRef:e,ref:s[l],…a},l);case”IssueFormElementCheckboxes”:return(0,t.jsx)(F,{index:l,elementRef:e,ref:s[l],…a},l);default:return null}})})},X=(e,l)=>{let a=(0,r.useMemo)(()=>Array.from({length:e},()=>(0,r.createRef)()),[e]);return(0,r.useImperativeHandle)(l,()=>({markdown:()=>a.map(e=>e.current?.markdown()??””).filter(e=>e.length>0).join(` `),getInvalidInputs:()=>a.map(e=>e.current).filter(e=>null!==e&&!e.validate()),validateInputs:()=>!a.map(e=>e.current?.validate()??!0).some(e=>!e),resetInputs:(e={})=>{let{textOnly:n=!1}=e;for(let e of a){if(!n){e.current?.reset();continue}(e.current?.type===”input”||e.current?.type===”textarea”||e.current?.type===”markdown”)&&e.current?.reset()}l.current?.clearSessionStorage()},hasChanges:()=>a.some(e=>e.current?.hasChanges()??!1),clearSessionStorage:()=>{let e=a.map(e=>e.current?.getSessionStorageKey()).filter(e=>null!==e);(0,s.D6)(e)}}),[a,l]),a};try{z.displayName||(z.displayName=”IssueFormElements”)}catch{}try{Q.displayName||(Q.displayName=”IssueFormElementsViaPayload”)}catch{}try{Y.displayName||(Y.displayName=”IssueFormElementsViaQuery”)}catch{}},1293:(e,l,a)=>{a.d(l,{pf:()=>j,S7:()=>N,PT:()=>_,Dd:()=>T});var n,t,i,s,r=a(74848);let o=(i=[n={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},t={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],{argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TypesSectionTypeFragment”,selections:[{alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”issueType”,plural:!1,selections:[n,t,{alias:null,args:null,kind:”ScalarField”,name:”isEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”pinnedFields”,plural:!0,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldText”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldSingleSelect”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldDate”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldNumber”,abstractKey:null}],storageKey:null}],storageKey:null}],type:”Issue”,abstractKey:null});o.hash=”5de1a91f4e1d4ecaa3f0a9efbb82f741″;let d={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TypesSectionFragment”,selections:[{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null}],storageKey:null},{alias:null,args:[{kind:”Literal”,name:”first”,value:100}],concreteType:”IssueTypeConnection”,kind:”LinkedField”,name:”issueTypes”,plural:!1,selections:[{alias:null,args:null,concreteType:”IssueTypeEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”node”,plural:!1,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:”issueTypes(first:100)”}],storageKey:null},s,{args:null,kind:”FragmentSpread”,name:”TypesSectionTypeFragment”},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanType”,storageKey:null}],type:”Issue”,abstractKey:null};d.hash=”ed89df93a2fdaab7d32e7dfddf950293″;var u=a(37630),c=a(67126),m=a(85346),p=a(43258),g=a(30459),y=a(96540),h=a(18312),k=a(93513),f=a(2495),b=a(16810),F=a(21798),I=a(25983),S=a(20177);function v({type:e,anchorProps:l,repoNameWithOwner:a}){return(0,r.jsx)(r.Fragment,{children:e?(0,r.jsx)(“div”,{“data-testid”:S.Y.typeContainer,className:”IssueType-module__IssueTypeToken–hdXht”,children:(0,r.jsx)(I.n,{name:e.name,color:e.color,href:`/${a}/issues?q=type:”${e.name}”`,getTooltipText:l=>l?e.name:void 0})}):(0,r.jsx)(“div”,{className:”IssueType-module__hiddenPlaceholder–nnfV9″,…l})})}try{v.displayName||(v.displayName=”IssueType”)}catch{}let x=()=>(0,r.jsx)(f.h,{title:k.k.sectionTitles.types}),C=({sectionHeader:e,type:l,repoNameWithOwner:a,sx:n})=>(0,r.jsx)(b.w,{id:”sidebar-types-section”,sx:n,sectionHeader:e,emptyText:l?void 0:k.k.emptySections.types,children:(0,r.jsx)(“div”,{className:”TypesSection-module__typeContainer–YI5mY”,children:(0,r.jsx)(v,{type:l,repoNameWithOwner:a})})});function j({type:e,onSelectionChange:l,viewerCanType:a,sx:n,…t}){let{sendAnalyticsEvent:i}=(0,g.s)(),{repo:s,owner:o}=t;return(0,r.jsx)(C,{sx:n,sectionHeader:a?(0,r.jsx)(m.u,{onSelectionChange:e=>{let a=e?.[0]||null;i(“issue_create.update_issue_type”,”ISSUE_CREATE_UPDATE_ISSUE_TYPE_DIALOG”,{issueTypeId:a?.id??””}),l(a)},readonly:a,activeIssueType:e,anchorElement:(e,l)=>(0,r.jsx)(F.X,{title:k.k.sectionTitles.types,buttonProps:e,ref:l}),…t,width:”medium”}):(0,r.jsx)(x,{}),type:e,repoNameWithOwner:`${o}/${s}`})}let T=o,_=d;function N({issue:e,onIssueUpdate:l,insideSidePanel:a,readonly:n}){let t=(0,h.useFragment)(_,e),{repository:{owner:{login:i},nameWithOwner:s,issueTypes:o},id:d,viewerCanType:f}=t,b=o?.edges?.map(e=>e?.node?.id)||[],{issueType:I}=(0,h.useFragment)(T,t),S=I||null,{sendAnalyticsEvent:v}=(0,g.s)(),{addToast:j}=(0,p.Y6)(),N=(0,h.useRelayEnvironment)(),K=(0,y.useCallback)(e=>{let a=e.length>0?e[0]?.id:null;v(“issue_viewer.update_issue_type”,”ISSUE_VIEWER_UPDATE_ISSUE_TYPE_DIALOG”,{initialIssueTypeId:S?.id??””,issueTypeId:a??””}),(0,u._)({environment:N,input:{issueId:d,issueTypeId:a},onError:()=>j({type:”error”,message:c.S.couldNotUpdateType}),onCompleted:l})},[S?.id,j,N,d,l,v]),L=(0,y.useMemo)(()=>{let e=n||!f;return e?(0,r.jsx)(x,{}):(0,r.jsx)(m.u,{owner:i,onSelectionChange:K,anchorElement:(e,l)=>(0,r.jsx)(F.X,{title:k.k.sectionTitles.types,buttonProps:e,ref:l}),readonly:e,activeIssueType:S??null,insidePortal:a,width:”medium”})},[n,f,i,K,S,a]);return f||0!==b.length?(0,r.jsx)(C,{sectionHeader:L,type:S??null,repoNameWithOwner:s}):null}try{x.displayName||(x.displayName=”ReadonlyTypesSectionHeader”)}catch{}try{C.displayName||(C.displayName=”TypesSection”)}catch{}try{j.displayName||(j.displayName=”CreateIssueIssueTypesSection”)}catch{}try{N.displayName||(N.displayName=”EditIssueIssueTypeSection”)}catch{}},2320:(e,l,a)=>{a.d(l,{t:()=>D});var n=a(74848),t=a(19918),i=a(49275),s=a(81289),r=a(81709),o=a(69599),d=a(84363),u=a(67126),c=a(38143),m=a(86391),p=a(73017),g=a(71315),y=a(43258),h=a(46747),k=a(38621),f=a(5839),b=a(96540);let F=[],I={groupId:”labels”},S={groupId:”favorite”,header:{title:”Favorite”,variant:”filled”}},v={groupId:”suggestions”,header:{title:”Suggestions”,variant:”filled”}},x={groupId:”copilot”,header:{title:”Copilot suggestions”,variant:”filled”}};function C({labels:e,suggestions:l=F,totalNumberOfLabels:a,copilotSuggestedLabels:s,favoriteLabelIds:r,searchLabels:C,onSelectionChange:T,insidePortal:_,anchorElement:N,nested:K=!1,triggerOpen:L=!0,initialFilter:A,owner:w,repo:P,showEditLabelsButton:E=!0,noLabelOption:R,title:D,showNoMatchItem:V=!1,canCreateLabel:M,repositoryId:O,isLoading:B=!1,setIsLoading:$,onCreate:U}){let H=(0,o.G7)(“issues_react_remove_labels_loading”),q=(0,o.G7)(“issues_react_select_panel_fullscreen_on_narrow”),G=(0,o.G7)(“issues_react_labelpicker_patch”),[W,z]=(0,b.useState)(“”),Q=(0,b.useRef)(new Set),[Y,X]=(0,b.useState)(!1),[Z,J]=(0,b.useState)(l),{addToast:ee}=(0,y.Y6)(),el=`${w}/${P}`;(0,b.useEffect)(()=>{J(l)},[l]);let ea=C&&a>l.length,en=(0,b.useMemo)(()=>e.slice().sort((e,l)=>e.name.localeCompare(l.name)),[e]),et=(0,b.useMemo)(()=>{if(!W){let a=H?Z:l,n=[…en],t=(s??[]).filter(l=>!e.find(e=>e.id===l.id)),i=a.filter(l=>!e.find(e=>e.id===l.id)&&!t.find(e=>e.id===l.id));return n.push(…t,…i),n.slice(0,c.t.labelsInitialLoadCount)}let a=new Map;for(let e of Z)a.set(e.id,e);for(let e of s??[])a.has(e.id)||a.set(e.id,e);let n=Array.from(a.values());return(0,d.t)({items:n,filter:W,key:e=>e.name,secondaryKey:e=>`${e.name} ${e.description}`}).slice(0,c.t.labelsInitialLoadCount)},[W,Z,H,l,en,s,e]),ei=(0,b.useCallback)(async e=>{if(!H&&””===e){J(l),X(!1);return}if(H&&Q.current.has(e))return void X(!1);if(C){X(!0);try{J(H?j([…Z,…await C(e)]):await C(e))}catch{ee({type:”error”,message:u.S.couldNotSearchLabels})}finally{X(!1),H&&Q.current.add(e)}}},[H,C,l,Z,ee]),es=(0,h.d)(e=>ei(e),c.t.pickerDebounceTime),er=(0,b.useCallback)(e=>{let a=e.trim();if(W!==a&&ea){X(!0),es(a),z(e);return}0!==l.length&&z(e)},[es,W,ea,l.length]),eo=(0,b.useCallback)(e=>e.id,[]),ed=(0,b.useCallback)((e,l,a)=>{a.preventDefault(),a.stopPropagation(),O&&U&&$&&($(!0),U({repositoryId:O,color:l.color,name:l.name},{onError:()=>{ee({type:”error”,message:u.S.couldNotCreateLabel}),$(!1)},onSuccess:e=>{e&&J([{…e,__isNew__:!0},…Z]),$(!1)}}))},[ee,Z,U,O,$]),eu=(0,b.useCallback)(l=>{let a;if(R&&l.id===i.v.noLabelsData.id){let e={…R};return e.groupId=e.selected?I.groupId:v.groupId,e}if(l.id===W)return{id:l.id,description:l.description||void 0,descriptionVariant:”block”,source:l,text:`Create new label: “${l.name}”`,trailingVisual:k.PlusIcon,className:”LabelPickerBase-module__labelPickerItem–gTZua”,onAction:(e,a)=>ed(e,l,a)};let t=(s??[]).some(e=>e.id===l.id),o=(r??[]).some(e=>e===l.id);return a=e.find(e=>e.id===l.id)?I.groupId:o?S.groupId:t?x.groupId:v.groupId,{id:l.id,description:l.description??void 0,descriptionVariant:”block”,children:(0,n.jsx)(p.JR,{html:l.nameHTML,className:”LabelPickerBase-module__labelNameText–wVmPP”}),source:l,groupId:a,leadingVisual:()=>(0,n.jsx)(“div”,{style:{background:`#${l.color}`,borderColor:`#${l.color}`},className:”LabelPickerBase-module__labelColorBox–PSuNK”})}},[R,W,s,r,e,ed]),ec=(0,b.useMemo)(()=>{let l=[];return e.length>0&&l.push(I),(r??[]).some(l=>!e.some(e=>e.id===l))&&l.push(S),(s??[]).some(l=>!e.some(e=>e.id===l.id)&&r?.indexOf(l.id)===-1)&&l.push(x),et.length>0&&et.length-e.length>0&&l.push(v),l},[e,r,s,et.length]),em=(0,b.useMemo)(()=>{if(!el||!g.XC?.location)return;let e=g.XC.location.origin;return`${e}/${el}/issues/labels`},[el]),ep=(0,b.useCallback)(e=>{g.XC?.location?.href&&E&&em&&1!==e.button&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),g.XC.location.href=em))},[em,E]),eg=(0,b.useRef)(null),ey=(0,b.useMemo)(()=>{let e=!Y&&!W&&0===et.length,l=!(V&&M&&!Y)&&!!W&&0===et.length;return e||l},[Y,W,et.length,V,M]);return(0,n.jsx)(“div”,{className:”LabelPickerBase-module__labelPickerContainer–cqqGL”,children:(0,n.jsx)(m.O,{loading:H?B:B||Y,items:et,initialSelectedItems:e,title:D||t.k.labelsHeader,filterItems:er,getItemKey:eo,convertToItemProps:eu,placeholderText:”Filter labels”,selectionVariant:0===et.length?”single”:”multiple”,onSelectionChange:T,renderAnchor:e=>N(e,eg),groups:W?void 0:ec,insidePortal:_,height:”large”,width:”medium”,nested:K,resultListAriaLabel:”Label results”,triggerOpen:L,initialFilter:A,selectPanelRef:eg,keybindingCommandId:”item-pickers:open-labels”,eventsTag:”label”,customNoMatchItem:M&&V&&W&&!Y?{id:W,color:”aaaaaa”,name:W,nameHTML:W,description:void 0,url:””}:void 0,suppressNoMatchItem:!0,improvedNoMatchAccessibility:ey,noMatchMessage:ey?{title:”No labels were found”,body:”Try searching with a different query for results.”,variant:”empty”}:void 0,secondaryAction:E?(0,n.jsx)(f.X.SecondaryActionLink,{onClick:ep,href:em,size:”small”,children:t.k.editLabels}):void 0,responsiveOnNarrow:q,focusPrependedElements:G})})}let j=e=>e.filter((e,l,a)=>a.findIndex(l=>l.id===e.id)===l);try{C.displayName||(C.displayName=”LabelPickerBase”)}catch{}var T=a(97665),_=a(96379),N=a(47544);async function K({owner:e,repo:l,query:a,count:n,labelNames:t}){let i={owner:e,repo:l};a&&(i.query=a),n&&(i.count=n),t&&t.length>0&&(i.labelNames=t.join(“,”));let s=(0,N.JF)(“labels”,i),r=await (0,_.lS)(s);return await r.json()}function L(e,l){let a=e.map(e=>e.replace(/^”/,””).replace(/”$/,””));return l.filter(e=>a.includes(e.name))}var A=a(73049),w=a(94747);async function P(e){let l=(0,N.kP)(“labels”);return(await (0,_.lS)(l,{method:”POST”,body:e})).json()}async function E(e,{owner:l,repo:a,query:n,count:t,labelNames:i}){return await e.fetchQuery({queryKey:[“item_picker”,”labels”,{owner:l,repo:a,query:n,count:t,labelNames:i}],queryFn:async()=>{var e;let s,r=await K({owner:l,repo:a,query:n,count:t,labelNames:i});return e=(0,A.A)(r).data,s=e.repository.labelsByNames?.nodes,i&&i.length>0&&s&&(s=L(i,s)),{labels:e.repository.labels.nodes,repositoryId:e.repository.id,totalCount:e.repository.labels.totalCount,labelsByNames:s}}})}function R({repo:e,owner:l,labels:a,labelNames:s,preloadedLabels:o,noLabelOption:d,…u}){let c=o&&!!o.labels?.length,[m,p]=(0,b.useState)(!c),[y,h]=(0,b.useState)(0),[k,f]=(0,b.useState)(!1),[F,I]=(0,b.useState)(()=>{if(c){let e=s?L(s,o.labels):void 0;return{repositoryId:o.repositoryId,labels:s?e||[]:o.labels,totalCount:o.totalCount,labelsByNames:e}}return null}),[S,v]=(0,b.useState)(()=>c&&s?L(s,o.labels):a),x=(0,T.jE)(),{mutate:j}=(0,w.n)({mutationFn:async e=>{let l=await P(e);return(0,A.A)(l).data.createLabel.label}});(0,b.useEffect)(()=>{g.X3||c||(async()=>{try{let a=await E(x,{owner:l,repo:e,query:””,labelNames:s});I(a),s&&s.length>0&&v(a.labelsByNames||[]),p(!1),f(!1)}catch{f(!0),p(!1)}})()},[y,l,x,e,s,c]);let _=(0,b.useRef)(null),{createFallbackComponent:N}=(0,r.j)({errorMessage:t.k.cantEditItems(“labels”),anchorElement:e=>u.anchorElement(e,_),open:!0}),K=(0,b.useCallback)(async a=>(await E(x,{owner:l,repo:e,query:a})).labels,[x,l,e]),R=(0,b.useCallback)((e,{onSuccess:l,onError:a})=>{j(e,{onSuccess:l,onError:a})},[j]),D=(0,b.useMemo)(()=>{let e=F?.labels??[];return d?[i.v.noLabelsData,…e]:e},[F?.labels,d]),V=(0,b.useMemo)(()=>{let e=s?S:a;return d?.selected&&!e.find(e=>e.id===i.v.noLabelsData.id)?[i.v.noLabelsData,…e]:e},[S,s,a,d?.selected]);return k?N(()=>h(e=>e+1)):(0,n.jsx)(C,{repo:e,owner:l,repositoryId:F?.repositoryId??””,labels:V,suggestions:D,totalNumberOfLabels:F?.totalCount??0,isLoading:m,setIsLoading:p,searchLabels:K,onCreate:R,noLabelOption:d,…u})}function D({repo:e,owner:l,anchorElement:a,readonly:t,labels:i,labelNames:r,noLabelOption:o,…d}){return(0,n.jsx)(s.y,{keybindingCommandId:”item-pickers:open-labels”,anchorElement:(e,l)=>a(e,l),createChild:()=>(0,n.jsx)(R,{repo:e,owner:l,readonly:t,initialFilter:””,labels:i,labelNames:r,triggerOpen:!0,anchorElement:a,noLabelOption:o,…d}),insidePortal:d.insidePortal})}try{R.displayName||(R.displayName=”ItemPickerFetcher”)}catch{}try{D.displayName||(D.displayName=”LabelPicker”)}catch{}},2495:(e,l,a)=>{a.d(l,{h:()=>i});var n=a(74848),t=a(21798);function i({title:e,headingProps:{…l}={},…a}){return(0,n.jsx)(t.X,{title:e,headingProps:l,…a,readonly:!0})}try{i.displayName||(i.displayName=”ReadonlySectionHeader”)}catch{}},2892:(e,l,a)=>{a.d(l,{a:()=>I});var n=a(74848),t=a(12683),i=a(26108),s=a(38621),r=a(47990),o=a(96540),d=a(38267);let u=”16px”,c=”20px”,m=”24px”,p=”32px”,g=”medium”,y=({as:e=”span”,onClick:l,onFocus:a,tabIndex:n=-1,interactive:t})=>t??!!(a||l||n>-1||[“a”,”button”].includes(e)),h={fontSize:1,height:p,lineHeight:p,px:3,py:0},k={small:{fontSize:0,height:u,lineHeight:u,px:1,py:0},medium:{fontSize:0,height:c,lineHeight:c,px:2,py:0},large:{fontSize:0,height:m,lineHeight:m,px:2,py:0},extralarge:h,xlarge:h},f=d.Ay.span.withConfig({displayName:”TokenBase__StyledTokenBase”,componentId:”sc-69232497-0″})([“align-items:center;border-radius:999px;cursor:”,”;display:inline-flex;font-weight:”,”;font-family:inherit;text-decoration:none;max-width:100%;position:relative;white-space:nowrap;”,””],e=>y(e)?”pointer”:”auto”,(0,t.yB)(“fontWeights.bold”),t.sx),b=o.forwardRef(function({text:e,onRemove:l,id:a,as:t=”span”,sx:i,size:s=g,…r},o){return(0,n.jsx)(f,{“aria-label”:l?`${e}, press backspace or delete to remove`:void 0,id:a?.toString(),as:t,sx:{…k[s],…i},…r,ref:o})});try{b.displayName||(b.displayName=”TokenBase”)}catch{}let F=(0,d.Ay)(“span”).withConfig({displayName:”TokenTextContainer”,componentId:”sc-64a94069-0″})([“flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:0;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex=’0’]){cursor:pointer;&::after{content:”;position:absolute;left:0;top:0;right:0;bottom:0;}}”]);try{F.displayName||(F.displayName=”TokenTextContainer”)}catch{}let I=(0,o.forwardRef)(({as:e,fontWeight:l,fillColor:a=”#999″,onRemove:d,id:u,isSelected:c,text:m,size:p=g,hideRemoveButton:h,href:k,onDelete:f,…I},S)=>{let{colorScheme:v}=(0,t.DP)(),x=(0,o.useMemo)(()=>v?.includes(“high_contrast”),[v]),C=(0,o.useMemo)(()=>({“–lightness-threshold”:”0.453″,”–border-threshold”:”0.96″,”–background-alpha”:”0.20″,”–border-alpha”:”max(0, min(calc((var(–perceived-lightness) – var(–border-threshold)) * 100), 1))”,background:”rgb(var(–label-r), var(–label-g), var(–label-b))”,color:”hsl(0deg, 0%, calc(var(–lightness-switch) * 100%))”,borderWidth:1,borderStyle:”solid”,borderColor:”hsla(var(–label-h), calc(var(–label-s) * 1%), calc((var(–label-l) – 25) * 1%), var(–border-alpha))”}),[]),j=(0,o.useMemo)(()=>({“–lightness-threshold”:”0.6″,”–background-alpha”:”0.18″,”–border-alpha”:x?”0.9″:”0.3″,”–lighten-by”:”calc(((var(–lightness-threshold) – var(–perceived-lightness)) * 100) * var(–lightness-switch))”,borderWidth:1,borderStyle:”solid”,background:”rgba(var(–label-r), var(–label-g), var(–label-b), var(–background-alpha))”,color:”hsl(var(–label-h), calc(var(–label-s) * 1%), calc((var(–label-l) + var(–lighten-by)) * 1%))”,borderColor:”hsla(var(–label-h), calc(var(–label-s) * 1%), calc((var(–label-l) + var(–lighten-by)) * 1%), var(–border-alpha))”}),[x]),T={as:e,href:k},_=y(I)&&!!d&&!h,N=(0,o.useMemo)(()=>{let[e,n,t]=(0,r.Du)(a),[i,s,o]=(0,r.BT)(a);return{“–label-r”:String(e),”–label-g”:String(n),”–label-b”:String(t),”–label-h”:String(Math.round(i)),”–label-s”:String(Math.round(100*s)),”–label-l”:String(Math.round(100*o)),”–perceived-lightness”:”calc(((var(–label-r) * 0.2126) + (var(–label-g) * 0.7152) + (var(–label-b) * 0.0722)) / 255)”,”–lightness-switch”:”max(0, min(calc((var(–perceived-lightness) – var(–lightness-threshold)) * -1000), 1))”,”–border-color”:”var(–borderColor-muted, var(–color-border-subtle))”,paddingRight:h||!d?void 0:0,position:”relative”,minWidth:0,overflow:”hidden”,…v?.includes(“light”)?C:j,…l?{fontWeight:l}:{},…c?{background:”light”===v?”hsl(var(–label-h), calc(var(–label-s) * 1%), calc((var(–label-l) – 5) * 1%))”:j.background,”:focus”:{outline:”none”},”:after”:{content:'””‘,position:”absolute”,zIndex:1,top:”-2px”,right:”-2px”,bottom:”-2px”,left:”-2px”,display:”block”,pointerEvents:”none”,boxShadow:`0 0 0 2px ${“light”===v?”rgb(var(–label-r), var(–label-g), var(–label-b))”:”hsl(var(–label-h), calc(var(–label-s) * 1%), calc((var(–label-l) + var(–lighten-by)) * 1%))”}`,borderRadius:”999px”}}:{}}},[a,h,d,l,v,C,j,c]);return(0,n.jsxs)(b,{onRemove:d,id:u?.toString(),isSelected:c,text:m,size:p,sx:N,…!_?T:{},…I,ref:S,className:f?”LabelToken-module__labelTokenBase–v0rBi”:void 0,children:[(0,n.jsx)(F,{…_?T:{},children:m}),f&&(0,n.jsx)(i.K,{onClick:e=>{e.stopPropagation(),e.preventDefault(),f()},variant:”invisible”,icon:s.XIcon,size:”small”,”aria-label”:”Remove label”,className:”LabelToken-module__labelTokenDeleteButton–VLMDp”})]})});I.displayName=”IssueLabelToken”},3047:(e,l,a)=>{a.d(l,{IE:()=>d,Y0:()=>o,kO:()=>s,nB:()=>c,uV:()=>r,vl:()=>u,zo:()=>i});var n=a(98646),t=a(8816);function i(e,l){if(e?.field?.id!==l?.field?.id||!e?.field||!l?.field)return!1;let a=e.field;return”TEXT”===a.dataType||”DATE”===a.dataType?e?.value===l?.value:”NUMBER”===a.dataType?e?.numberValue===l?.numberValue:”SINGLE_SELECT”!==a.dataType||e?.name===l?.name}function s(e,l){let a=l.filter(l=>!e.some(e=>e?.field?.id===l?.field?.id));return{addedFields:a,updatedFields:l.filter(l=>e.some(e=>e?.field?.id===l?.field?.id&&!i(e,l))),removedFields:e.filter(e=>!l.some(l=>l?.field?.id===e?.field?.id))}}function r(e){return e&&e.field?o(e.field,null):e}function o(e,l){let a=(0,n.YQ)(e);switch(a.dataType){case”text”:return{field:{…a,dataType:”TEXT”},value:l||””};case”single_select”:return{field:{…a,dataType:”SINGLE_SELECT”},value:l};case”date”:return{field:{…a,dataType:”DATE”},value:l};case”number”:return{field:{…a,dataType:”NUMBER”},value:l}}}function d(e,l,a){let t=(0,n.YQ)(e);switch(t.dataType){case”text”:return{field:{…t,dataType:”TEXT”},value:l,readonly:a};case”single_select”:return{field:{…t,dataType:”SINGLE_SELECT”},value:l,readonly:a};case”date”:return{field:{…t,dataType:”DATE”},value:l,readonly:a};case”number”:{if(null===l||””===l)return{field:{…t,dataType:”NUMBER”},value:null,readonly:a};let e=Number(l);return{field:{…t,dataType:”NUMBER”},value:isNaN(e)?0:e,readonly:a}}}}function u(e,l){switch(e){case”text”:return l;case”single_select”:return l&&l.id?String(l.id):void 0;case”date”:return m(l)||void 0;case”number”:return l?.toString()}}function c(e,l){if(“single_select”===e)return l&&l.name?String(l.name):void 0;if(“date”===e){let e=m(l),a=e?(0,t.o)(e):null;return a?(0,t.b)(a):void 0}return u(e,l)}function m(e){return e?e.toISOString():null}},3155:(e,l,a)=>{a.d(l,{g:()=>d});var n=a(74848),t=a(11196),i=a(12683),s=a(34164),r=a(96540),o=a(92233);let d=({name:e,color:l,getTooltipText:a,size:d,sx:c,containerClassName:m})=>{let p=(0,r.useRef)(null),[g,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>y(u(p.current)),[y,p]);let h=a(g),k=(0,n.jsx)(i.ou,{className:o.A.token,”data-color”:l,ref:p,sx:c,text:(0,n.jsx)(“span”,{className:o.A.tokenText,children:e}),as:h?”button”:”span”,…h&&{type:”button”,”aria-label”:`${e} token`}});return(0,n.jsx)(“div”,{className:(0,s.$)(o.A.container,m),”data-size”:d,children:h?(0,n.jsx)(t.m,{text:h,children:k}):k})},u=e=>!!e&&!!e.firstElementChild&&e.firstElementChild.scrollWidth>e.firstElementChild.clientWidth;try{d.displayName||(d.displayName=”IssueFieldSingleSelectValueToken”)}catch{}},3872:(e,l,a)=>{a.d(l,{Z:()=>d});var n=a(82075),t=a(40104),i=a(31021),s=a(96540),r=a(98338),o=a(79403);let d=({storageKeyPrefix:e,issueFormRef:l,onCancel:a})=>{let d=(0,i.S)(),u=(0,n.A)(“sessionStorage”),c=(0,s.useMemo)(()=>JSON.stringify(“”),[]),m=(0,s.useCallback)(async()=>await d({title:r.k.discardConfirmation.title,content:r.k.discardConfirmation.content,confirmButtonContent:r.k.discardConfirmation.confirm,confirmButtonType:”danger”,cancelButtonContent:r.k.discardConfirmation.cancel}),[d]);return{onSafeClose:(0,s.useCallback)(async()=>{(!((0,o.m5)(e).some(e=>null!==u.getItem(e)&&u.getItem(e)!==c)||l?.current?.hasChanges())||await m())&&((0,t.D6)((0,o.wK)(e)),l?.current?.clearSessionStorage(),a())},[e,m,u,c,l,a])}}},4551:(e,l,a)=>{a.d(l,{n:()=>i,w:()=>s});var n=a(74848),t=a(5524);let i={SPAM:”Spam”,ABUSE:”Abuse”,OFF_TOPIC:”Off-topic”,OUTDATED:”Outdated”,DUPLICATE:”Duplicate”,RESOLVED:”Resolved”},s=({setMenuOpen:e,onSelect:l})=>(0,n.jsx)(n.Fragment,{children:Object.keys(i).map(a=>(0,n.jsx)(t.l.Item,{“aria-label”:`Hide comment as ${i[a]}`,onSelect:()=>{l(a),e?.(!1)},children:i[a]},a))});try{s.displayName||(s.displayName=”HideCommentActionItems”)}catch{}},4889:(e,l,a)=>{a.d(l,{eH:()=>x,lT:()=>j});var n=a(74848),t=a(69599),i=a(83494),s=a(38621),r=a(86877),o=a(30093),d=a(26108),u=a(31604),c=a(21373),m=a(96540),p=a(16810),g=a(21798),y=a(41848),h=a(68384);let k=”IssueFieldTextToken-module__issuesFieldTextError–AZz7r”,f=”IssueFieldTextToken-module__actionButton–YsG8y”;var b=a(84268),F=a(8645);let I=/^([([‘”]{0,3})(.{1,1000}?)([.,:;!?\])”‘]{0,10})$/;function S(e){if(!e)return null;let l=e.split(/(\s+)/);return(0,n.jsx)(n.Fragment,{children:l.map((e,l)=>{let a=`${e}-${l}`;if(!e.trim())return(0,n.jsx)(m.Fragment,{children:e},a);let{cleanText:t,prefix:i,suffix:s}=function(e){let l=e.match(I);if(!l)return{cleanText:e,prefix:””,suffix:””};let[a,n=””,t=””,i=””]=l;return{cleanText:t,prefix:n,suffix:i}}(e);if(!t)return(0,n.jsx)(m.Fragment,{children:e},a);let r=(0,F.o2)(t),o=(0,F.ml)(r);return(0,F.Y9)(o)&&(0,F.cE)(o)?(0,n.jsxs)(m.Fragment,{children:[i,(0,n.jsx)(b.A,{href:o,rel:”noopener noreferrer”,children:r}),s]},a):(0,n.jsx)(m.Fragment,{children:e},a)})})}try{I.displayName||(I.displayName=”PUNCTUATION_REGEX”)}catch{}let v=e=>(e=>{let{length:l}=e;return l>255?y.k.textValidationMaxLength(l,255):null})(e),x=({initialValue:e,validate:l=v,className:a,errorPresent:i=!1,readonly:s,…r})=>{let o=(0,t.G7)(“issue_fields_compact_view”),d=(0,n.jsx)(j,{initialValue:e,validate:l,renderAnchor:(e,l,a)=>(0,n.jsx)(g.X,{ref:l,title:a,readonly:s,buttonProps:e,errorPresent:i}),…r});return o?(0,n.jsx)(C,{initialValue:e,validate:l,readonly:s,…r}):(0,n.jsx)(p.w,{sectionHeader:d,className:a,children:e?(0,n.jsx)(“span”,{className:”IssueFieldTextToken-module__issuesFieldText–WUTvu”,children:S(e)}):(0,n.jsx)(“span”,{className:”IssueFieldTextToken-module__noValueContainer–GU_ur”,children:y.k.setValue})})},C=({fieldId:e,fieldName:l,initialValue:a,onCommit:t,shouldOpen:u=!1,validate:c=v,inputProps:p,isDraft:g=!1,isNumber:f=!1,readonly:b})=>{let[F,I]=(0,m.useState)(!0),[x,C]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=e=>{x&&(e.preventDefault(),e.returnValue=””)};return window.addEventListener(“beforeunload”,e),()=>{window.removeEventListener(“beforeunload”,e)}},[x]);let[j,T]=(0,m.useState)(a),_=(0,m.useMemo)(()=>F?null:c(j),[F,j,c]),N=(0,m.useMemo)(()=>F||!!_,[F,_]),[K,L]=(0,m.useState)(u),A=(0,m.useCallback)(()=>{t(e,f?null:””),C(!1)},[e,f,t]),w=(0,m.useCallback)(()=>{a?(T(a),L(!1),I(!0),C(!1)):A()},[a,A]),P=(0,m.useCallback)(()=>{t(e,j),L(!1),I(!0),C(!1)},[e,t,j]),E=(0,m.useCallback)(()=>{g?A():(F||C(!0),L(!1))},[F,g,A]),R=(0,m.useMemo)(()=>({commands:{“github:cancel”:w,”github:submit-form”:N?void 0:P},keys:{“github:cancel”:[“Escape”],”github:submit-form”:[“Enter”]}}),[N,w,P]),D=(0,m.useMemo)(()=>x?`${l} (edited)`:l,[l,x]),V=(0,m.useCallback)(e=>{e.stopPropagation(),”Enter”===e.key&&P(),”Escape”===e.key&&E()},[P,E]);return(0,n.jsx)(n.Fragment,{children:K&&!b?(0,n.jsx)(i.tL,{…R,children:(0,n.jsxs)(r.A,{className:h.A.issueFieldFormWrapper,children:[(0,n.jsx)(r.A.Label,{className:h.A.issueFieldLabel,children:D}),(0,n.jsx)(o.A,{value:j,placeholder:y.k.textEditorPlaceholder,onChange:e=>{let{value:l}=e.target;T(l),l===a?I(!0):I(!1)},size:”small”,onKeyDown:V,className:”IssueFieldTextToken-module__issueFieldTextInput–_YT6n”,autoFocus:!0,…p}),_&&(0,n.jsx)(r.A.Validation,{variant:”error”,className:k,children:_}),(0,n.jsx)(d.K,{icon:s.CheckIcon,onClick:P,”aria-disabled”:N,”aria-label”:y.k.textEditorUpdateButtonAriaLabel(l),className:h.A.issueFieldActionButton})]})}):(0,n.jsxs)(“div”,{className:h.A.issueFieldFormWrapper,children:[(0,n.jsx)(“p”,{className:h.A.issueFieldLabel,children:D}),b?(0,n.jsx)(“div”,{className:h.A.issueFieldValue,children:a?S(a):y.k.setValue}):(0,n.jsx)(“div”,{role:”button”,tabIndex:0,className:h.A.issueFieldValue,”aria-label”:a?`Edit ${l}`:`Set ${l}`,onClick:()=>L(!0),onKeyDown:()=>{L(!0)},children:a?S(a):y.k.setValue})]})})},j=({fieldId:e,fieldName:l,initialValue:a,onCommit:t,shouldOpen:s=!1,validate:d=v,inputProps:p,isDraft:g=!1,isNumber:h=!1,renderAnchor:b,overrideWidth:F,onClose:I})=>{let[S,x]=(0,m.useState)(!0),[C,j]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=e=>{C&&(e.preventDefault(),e.returnValue=””)};return window.addEventListener(“beforeunload”,e),()=>{window.removeEventListener(“beforeunload”,e)}},[C]);let[T,_]=(0,m.useState)(a),N=(0,m.useMemo)(()=>S?null:d(T),[S,T,d]),K=(0,m.useMemo)(()=>S||!!N,[S,N]),[L,A]=(0,m.useState)(s),w=(0,m.useCallback)(()=>{t(e,h?null:””),j(!1)},[e,h,t]),P=(0,m.useCallback)(()=>{g?w():(_(a),A(!1),x(!0),j(!1))},[a,g,w]),E=(0,m.useCallback)(()=>{t(e,T),A(!1),x(!0),j(!1)},[e,t,T]),R=(0,m.useCallback)(()=>A(!0),[]),D=(0,m.useCallback)(()=>{(I?.(),g)?w():(S||j(!0),A(!1))},[S,g,I,w]),V=(0,m.useMemo)(()=>({commands:{“github:cancel”:P,”github:submit-form”:K?void 0:E},keys:{“github:cancel”:[“Escape”],”github:submit-form”:[“Enter”]}}),[K,P,E]),M=(0,m.useRef)(null),[O,B]=(0,m.useState)(“256px”);(0,m.useEffect)(()=>{if(L&&M.current){let e=M.current.getBoundingClientRect().width;e>0&&B(`${e}px`)}},[L]);let $=(0,m.useMemo)(()=>C?`${l} (edited)`:l,[l,C]);return(0,n.jsx)(u.T,{open:L,anchorRef:M,renderAnchor:e=>b(e,M,$),onClose:D,onOpen:R,overlayProps:{style:{width:F??O}},children:(0,n.jsxs)(i.tL,{…V,children:[(0,n.jsx)(“div”,{className:”IssueFieldTextToken-module__issuesFieldTextInputContainer–BYChH”,children:(0,n.jsxs)(r.A,{children:[(0,n.jsx)(r.A.Label,{visuallyHidden:!0,children:y.k.textEditorLabel(l)}),(0,n.jsx)(o.A,{block:!0,value:T,placeholder:y.k.textEditorPlaceholder,onChange:e=>{let{value:l}=e.target;_(l),l===a?x(!0):x(!1)},…p}),N&&(0,n.jsx)(r.A.Validation,{variant:”error”,className:k,children:N})]})}),(0,n.jsx)(“div”,{className:”IssueFieldTextToken-module__issuesFieldToolbar–gb7A0″,role:”toolbar”,”aria-label”:y.k.textEditorToolbarLabel(l),children:(0,n.jsxs)(“div”,{className:”IssueFieldTextToken-module__issuesFieldToolbarActions–gYxXu”,children:[(0,n.jsx)(c.Q,{size:”small”,onClick:P,className:f,trailingVisual:(0,n.jsx)(i.hh,{commandId:”github:cancel”}),children:y.k.textEditorCancelButton}),(0,n.jsx)(c.Q,{size:”small”,variant:”primary”,onClick:E,”aria-disabled”:K,”aria-label”:y.k.textEditorUpdateButtonAriaLabel(l),className:f,trailingVisual:(0,n.jsx)(i.hh,{commandId:”github:submit-form”}),children:y.k.textEditorUpdateButton})]})})]})})};try{x.displayName||(x.displayName=”IssueFieldTextEditor”)}catch{}try{C.displayName||(C.displayName=”IssueFieldCompactTextEditor”)}catch{}try{j.displayName||(j.displayName=”IssueFieldTextEditorInternal”)}catch{}},5643:(e,l,a)=>{a.d(l,{C:()=>b,$:()=>f});var n=a(74848),t=a(69599),i=a(74563),s=a(19918),r=a(86391),o=a(46377),d=a(83494),u=a(38621),c=a(5839),m=a(50279),p=a(96540),g=a(57387);let y=({onClose:e,returnFocusRef:l})=>(0,n.jsx)(g.l,{“aria-label”:s.k.projectItemsLimitReachedDialogLabel,title:s.k.projectItemsLimitReachedDialogTitle,onClose:e,returnFocusRef:l,width:”large”,footerButtons:[{content:s.k.closeButton,onClick:e,buttonType:”primary”}],children:(0,n.jsx)(“div”,{children:s.k.projectItemsLimitReachedDialogMessage})});try{y.displayName||(y.displayName=”ProjectItemsLimitReachedDialog”)}catch{}let h=[],k=[];function f({items:e=h,groups:l=k,selectedProjects:a,isDialogOpen:o,handleDialogClose:u,filterValue:g,onCancel:f,onOpenChange:b,onFilterChange:F,anchorElement:I,onSelectionChange:S,insidePortal:v,isLoading:x,title:C,triggerOpen:j}){let T=(0,p.useCallback)(()=>{j||b(!0,”anchor-key-press”)},[j,b]),_=(0,p.useRef)(null),N=e.length<=2?"auto":"large",K=(0,r.D)(v,_,N),L=(0,t.G7)("issues_react_select_panel_fullscreen_on_narrow"),A=(0,p.useMemo)(()=>0===e.length,[e.length]),w=(0,p.useMemo)(()=>{let n={renderAnchor:e=>I(e),anchorRef:_,placeholderText:s.k.filterProjects,items:e,selected:a,open:j||!1,onOpenChange:b,onCancel:f,onSelectedChange:S,filterValue:g,onFilterChange:F,showItemDividers:!0,overlayProps:{width:”medium”,…K},loading:x,title:C??s.k.selectProjects,message:A?{title:”No projects were found”,variant:”empty”,body:”Please try a different search query.”}:void 0};return l?.length>0&&e.length>0&&(n.groupMetadata=l),n},[K,I,g,e,l,x,f,F,b,S,j,a,A,C]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.ak,{commands:{“item-pickers:open-projects”:T}}),(0,n.jsx)(m.g,{flags:{primer_react_select_panel_fullscreen_on_narrow:L},children:(0,n.jsx)(c.X,{“aria-label”:”Project results”,”data-id”:i.B.itemPickerRootId,”data-testid”:i.B.itemPickerTestId,…w})}),o&&(0,n.jsx)(y,{onClose:u,returnFocusRef:_})]})}function b({firstSelectedProjectTitle:e,readonly:l,nested:a,anchorProps:t}){return(0,n.jsx)(o._,{anchorText:s.k.noProjects,sharedPickerMainValue:e,anchorProps:l?void 0:t,ariaLabel:s.k.selectProjects,readonly:l,nested:a,leadingIcon:u.TableIcon,hotKey:void 0})}try{f.displayName||(f.displayName=”ProjectPickerBase”)}catch{}try{b.displayName||(b.displayName=”DefaultProjectPickerAnchor”)}catch{}},8645:(e,l,a)=>{a.d(l,{cE:()=>o,Y9:()=>r,ml:()=>i,o2:()=>s});var n=a(99418);let t={FORBID_TAGS:[“style”],ALLOW_DATA_ATTR:!1,ALLOWED_TAGS:[“h1″,”h2″,”h3″,”h4″,”h5″,”h6″,”h7″,”h8″,”br”,”b”,”i”,”strong”,”em”,”a”,”pre”,”code”,”img”,”tt”,”div”,”span”,”ins”,”del”,”sup”,”sub”,”p”,”ol”,”ul”,”table”,”thead”,”tbody”,”tfoot”,”blockquote”,”dl”,”dt”,”dd”,”kbd”,”q”,”samp”,”var”,”hr”,”ruby”,”rt”,”rp”,”li”,”tr”,”td”,”th”,”s”,”strike”,”summary”,”details”,”picture”,”source”]};function i(e){return(e?.startsWith(“www.”)?”https://”:””)+e}let s=e=>n.default.sanitize(e,t),r=e=>{if(!e||!function(e){try{return new window.URL(e),!0}catch{return!1}}(e))return!1;try{let l=new URL(e,window.location.origin);return[“http:”,”https:”].includes(l.protocol)}catch{return!1}},o=e=>s(e)===e},8816:(e,l,a)=>{a.d(l,{b:()=>t,o:()=>i});let n={year:”numeric”,month:”short”,day:”numeric”,timeZone:”UTC”};function t(e,l={}){return e.toLocaleDateString(“en-us”,{…n,…l})}function i(e){if(!e)return null;let l=e.match(/^(?\d{4})-(?\d{2})-(?\d{2})/);if(!l?.groups)return null;let{year:a,month:n,day:t}=l.groups;if(!a||!n||!t)return null;let i=parseInt(a,10),s=parseInt(n,10),r=parseInt(t,10);if(isNaN(i)||isNaN(s)||isNaN(r)||s<1||s>12||r<1||r>31)return null;let o=new Date(Date.UTC(i,s-1,r,12,0,0,0));return isNaN(o.getTime())?null:o}},10231:(e,l,a)=>{a.d(l,{DD:()=>n,DJ:()=>t,Pu:()=>s,d6:()=>i});let n={COMPLETED:”COMPLETED”,NOT_PLANNED:”NOT_PLANNED”,DUPLICATE:”DUPLICATE”,REOPENED:”REOPENED”},t={OPEN:”OPEN”,CLOSED:”CLOSED”},i={COMPLETED:”completed”,NOT_PLANNED:”not planned”,DUPLICATE:”duplicate”,REOPENED:”reopened”},s={COMPLETED:”is:issue state:closed archived:false reason:completed”,NOT_PLANNED:”is:issue state:closed archived:false reason:not-planned”,DUPLICATE:”is:issue state:closed archived:false reason:duplicate”,REOPENED:””}},10286:(e,l,a)=>{a.d(l,{k:()=>t,y:()=>n});let n=”template-field”,t=({id:e,indexOfFormElement:l,value:a,defaultValuesById:t})=>{let i=t&&e?t[e]:void 0;return void 0===i&&t&&void 0!==l&&(i=t[`${n}-${l}`]),i??a??””}},10991:(e,l,a)=>{function n(e){let l=document.getElementById(“issues-repo-tab-count”);if(null===l)return!1;let a=Number(l.title.replace(/\D/g,””)),n=Math.max(a+e,0);return 0===a&&n>0?l.removeAttribute(“hidden”):0===n&&l.setAttribute(“hidden”,”true”),l.title=n.toLocaleString(),/^\d*$/.test(l.textContent||””)&&n<=999&&(l.textContent=n.toString()),!0}function t(){n(1)}function i(){n(-1)}a.d(l,{T:()=>i,f:()=>t})},11241:(e,l,a)=>{a.d(l,{e:()=>lz});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K,L,A,w,P=a(74848),E=a(20538),R=a(17855),D=a(42118),V=a(24550),M=a(25641),O=a(62559),B=a(38102),$=a(69599),U=a(98646),H=a(977),q=a(3047),G=a(81688),W=a(8403),z=a(30459),Q=a(96459),Y=a(38621),X=a(57387),Z=a(11680),J=a(21373),ee=a(72511),el=a(10095),ea=a(43715),en=a(12683),et=a(34164),ei=a(96540),es=a(18312),er=a(16642),eo=a(98338),ed=a(96480),eu=a(17831),ec=a(53419),em=a(96379),ep=a(69726),eg=a(86877),ey=a(10576);function eh({isOpen:e,onClose:l,onGenerate:a,repoOwner:n,repoName:t,title:i,body:s,returnFocusRef:r}){let[o,d]=(0,ei.useState)(“”),[u,c]=(0,ei.useState)(!1),[m,p]=(0,ei.useState)(null),{sendAnalyticsEvent:g}=(0,z.s)(),y=!!(i?.trim()||s?.trim()||o?.trim()),h=(0,ei.useCallback)(()=>{d(“”),p(null),l()},[l]),k=(0,ei.useCallback)(async()=>{g(“analytics.click”,”ISSUE_CREATE_GENERATE_DESCRIPTION_WITH_COPILOT”,{repoNWO:`${n}/${t}`,hasTitle:!!i,hasExistingDescription:!!s,hasAdditionalContext:!!o}),c(!0),p(null);try{let e=await (0,em.lS)(`/${n}/${t}/issues/new/generate_copilot_description`,{method:”POST”,body:{title:i,body:s,context:o}});if(!e.ok){p(eo.k.copilotGenerateError),ek(“response_not_ok”);return}let l=await e.json(),r=l.title,u=l.description;if(!r||!u||0===r.trim().length||0===u.trim().length){p(eo.k.copilotGenerateError),ek(`response_missing${!r?”_title”:””}${!u?”_description”:””}`);return}ek(),a(r,u),d(“”)}catch(e){p(eo.k.copilotGenerateError),ek(e instanceof Error?e.message:”unknown_error”),(0,B.N7)(e)}finally{c(!1)}},[g,n,t,i,s,o,a]);return e?(0,P.jsx)(X.l,{title:eo.k.copilotGenerateDialogTitle,onClose:h,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:h,disabled:u},{buttonType:”primary”,content:u?(0,P.jsx)(ep.A,{size:”small”,className:”mt-1 mr-1″}):eo.k.copilotGenerateDialogGenerateButton,onClick:k,disabled:u||!y}],returnFocusRef:r,children:(0,P.jsxs)(en.az,{sx:{display:”flex”,flexDirection:”column”,gap:3},children:[m&&(0,P.jsxs)(ee.A,{variant:”danger”,children:[(0,P.jsx)(el.A,{icon:Y.AlertIcon}),m]}),!y&&(0,P.jsxs)(ee.A,{variant:”warning”,children:[(0,P.jsx)(el.A,{icon:Y.AlertIcon}),eo.k.copilotGenerateValidationWarning]}),(0,P.jsxs)(eg.A,{disabled:u,children:[(0,P.jsx)(eg.A.Label,{children:eo.k.copilotGenerateDialogTextareaLabel}),(0,P.jsx)(ey.Ay,{value:o,onChange:e=>d(e.target.value),placeholder:eo.k.copilotGenerateDialogTextareaPlaceholder,rows:6,block:!0,className:”mt-3″})]})]})}):null}function ek(e,l,a,n){(0,ec.BI)(“copilot.create_issue_description”,{hasTitle:!!l,hasExistingDescription:!!a,hasAdditionalContext:!!n,error:e})}try{eh.displayName||(eh.displayName=”CopilotGenerateDescriptionDialog”)}catch{}var ef=a(21067),eb=a(74807),eF=a(65411),eI=a(45244),eS=a(94747),ev=a(45007),ex=a(88431),eC=a(31021),ej=a(26108);let eT=”CopilotGenerateDescriptionPanel-module__actionButton–K8YrE”,e_=`You are a helpful assistant that helps users create and refine GitHub issue titles and descriptions. Your task is to take the user’s input and the current issue title and body, and create or improve them. For the issue body: – Provide a clear, comprehensive issue body in markdown format that explains the problem, context, and any relevant details. Keep it clear and concise. – If there is an existing body that has a structure (template), work with the template. DO NOT change the template unless instructed. – Return the body in a markdown format, unwrapped by \`\`\`markdown tags. – Only work with information you have. The length of the issue should be proportional to the information provided. – Try to focus updates on the portions of the body that are relevant to the user’s request. – When the user should be directed to edit portions of the returned body, explicitly put areas to edit [inside brackets with instructions]. Do not add meta instructions outside the main body content. For the issue title: – Only update the title if it reflects incorrect or incomplete information based on the user’s request. Return your response as a JSON object with “title” and “body” fields.`;function eN({isOpen:e,onClose:l,onGenerate:a,repoOwner:n,repoName:t,title:i,body:s,className:r,onPendingChange:o,onStateChange:d,anchorPosition:u=”top”,onHeightChange:c,editorRef:m}){let[p,g]=(0,ei.useState)(“”),[y,h]=(0,ei.useState)(“initial”),[k,f]=(0,ei.useState)(“”),b=(0,ei.useRef)(i),F=(0,ei.useRef)(s),I=(0,ei.useRef)(e),S=(0,ei.useRef)(i),v=(0,ei.useRef)(s),x=(0,ei.useRef)(null),C=(0,ei.useRef)(null),j=(0,ei.useRef)(new eF.JR([])),T=(0,eC.S)(),_=(0,ei.useRef)(null),{sendAnalyticsEvent:N}=(0,z.s)(),K=(0,ei.useRef)(null),L=(0,ei.useRef)(null),A=(0,ev.S)({minHeightLines:1,maxHeightLines:10,elementRef:K,value:p}),[w,E]=(0,ei.useState)(void 0);(0,ex.N)(()=>{if(!e)return;let l=m?.current?.inputRef.current;if(!l)return;let a=()=>{let e=L.current?.offsetParent;if(!e)return;let a=l.getBoundingClientRect(),n=e.getBoundingClientRect();if(“top”===u)E(a.top-n.top);else{let e=parseFloat(getComputedStyle(l).paddingBottom)||0;E(a.bottom-n.top-e)}};a();let n=new ResizeObserver(()=>{a()});return l.parentElement&&n.observe(l.parentElement),L.current&&n.observe(L.current),()=>{n.disconnect()}},[u,m,e]),(0,ei.useEffect)(()=>{e&&!I.current&&(b.current=i,F.current=s),I.current=e},[e,i,s]),(0,ei.useEffect)(()=>{d?.(y)},[y,d]);let R=(0,ei.useMemo)(()=>{switch(y){case”initial”:return eo.k.copilotPanelInitialMessage;case”suggested”:return eo.k.copilotPanelUpdatedMessage;case”error”:return eo.k.copilotGenerateError;default:return””}},[y]),{mutate:D,isPending:V}=(0,eS.n)({mutationFn:async e=>{_.current=new AbortController;let l=`${(0,ef._$)().copilotApiOverrideUrl||”https://api.githubcopilot.com”}/chat/completions`,a={Authorization:(await j.current.getAuthToken()).authorizationHeaderValue,”copilot-integration-id”:”copilot-embedded-experience”,”Content-Type”:”application/json”},n=`Current title: ${i||”(empty)”} Current body: ${s||”(empty)”} User’s request: ${e}`;if(n.length>5e4)throw Error(“Input is too large. Please reduce the length of your title, description, or request.”);let t={messages:[{role:”system”,content:e_},{role:”user”,content:n}],model:”gpt-4o-mini”,stream:!1,temperature:.3,response_format:{type:”json_schema”,json_schema:{name:”issue_content”,strict:!0,schema:{type:”object”,properties:{title:{type:”string”,description:”The improved or generated issue title”},body:{type:”string”,description:”The improved or generated issue body/description”}},required:[“title”,”body”],additionalProperties:!1}}}},r=await fetch(l,{method:”POST”,headers:a,body:JSON.stringify(t),signal:_.current.signal});if(!r.ok)throw Error(`API request failed with status ${r.status}`);let o=await r.json(),d=o.choices?.[0]?.message?.content;if(!d)throw Error(“No content in response”);let u=JSON.parse(d);if(!u.body)throw Error(“Invalid response structure”);return u},onSuccess:(e,l)=>{h(“suggested”),x.current=e.title,C.current=e.body,a(e.title,e.body),g(“”),N(“analytics.click”,”ISSUE_CREATE_GENERATE_DESCRIPTION_WITH_COPILOT_PANEL”,{repoNWO:`${n}/${t}`,hasTitle:!!i,hasExistingDescription:!!s,success:!0}),eK()},onError:(e,l)=>{“AbortError”===e.name?h(“initial”):(h(“error”),N(“analytics.click”,”ISSUE_CREATE_GENERATE_DESCRIPTION_WITH_COPILOT_PANEL”,{repoNWO:`${n}/${t}`,hasTitle:!!i,hasExistingDescription:!!s,success:!1,error:e.message}),eK(e.message))}}),M=(0,ei.useCallback)(()=>{g(“”),h(“initial”),f(“”),S.current=i,v.current=s,x.current=null,C.current=null,l()},[l,i,s]),O=(0,ei.useCallback)(()=>{_.current?.abort()},[]),B=(0,ei.useCallback)(()=>{p.trim()&&!V&&(S.current=i,v.current=s,f(p),h(“loading”),D(p))},[p,V,D,i,s]),$=(0,ei.useCallback)(async()=>{(null===x.current||null===C.current||i===x.current&&s===C.current||await T({title:eo.k.copilotDiscardConfirmDialog.title,content:eo.k.copilotDiscardConfirmDialog.content,confirmButtonContent:eo.k.copilotDiscardConfirmDialog.confirm,confirmButtonType:”danger”,cancelButtonContent:eo.k.copilotDiscardConfirmDialog.cancel}))&&(a(b.current,F.current),M())},[a,M,i,s,T]),U=(0,ei.useCallback)(async()=>{!k||(null===x.current||null===C.current||i===x.current&&s===C.current||await T({title:eo.k.copilotTryAgainConfirmDialog.title,content:eo.k.copilotTryAgainConfirmDialog.content,confirmButtonContent:eo.k.copilotTryAgainConfirmDialog.confirm,confirmButtonType:”danger”,cancelButtonContent:eo.k.copilotTryAgainConfirmDialog.cancel}))&&(a(S.current,v.current),h(“loading”),D(k))},[k,D,a,i,s,T]),H=(0,ei.useCallback)(e=>{“Enter”!==e.key||e.shiftKey||(e.preventDefault(),B())},[B]);return((0,ei.useEffect)(()=>{e&&K.current&&K.current.focus()},[e]),(0,ei.useEffect)(()=>{o?.(V)},[V,o]),(0,ei.useEffect)(()=>()=>{o?.(!1)},[]),(0,ei.useEffect)(()=>()=>{_.current?.abort()},[]),(0,ex.N)(()=>{if(!e||!L.current||!c)return;c(L.current.getBoundingClientRect().height+16);let l=new ResizeObserver(e=>{for(let l of e)c((l.borderBoxSize?.[0]?.blockSize??l.target.getBoundingClientRect().height)+16)});return l.observe(L.current),()=>{l.disconnect(),c(0)}},[e,c]),e)?(0,P.jsxs)(“div”,{ref:L,className:(0,et.$)(“CopilotGenerateDescriptionPanel-module__container–Fvrfz”,”top”===u?”CopilotGenerateDescriptionPanel-module__anchorTop–g_ceW”:”bottom”===u?”CopilotGenerateDescriptionPanel-module__anchorBottom–L_s3U”:void 0,r),style:void 0!==w?{top:`${w}px`}:void 0,role:”region”,”aria-label”:”Generate with Copilot”,children:[!V&&(0,P.jsx)(“div”,{className:”CopilotGenerateDescriptionPanel-module__closeButtonContainer–HqvjI”,children:(0,P.jsx)(ej.K,{“aria-label”:”Close”,icon:Y.XIcon,variant:”invisible”,onClick:M})}),R&&(0,P.jsxs)(“div”,{className:”CopilotGenerateDescriptionPanel-module__messageRow–Bnyvc”,children:[(0,P.jsx)(“div”,{className:”CopilotGenerateDescriptionPanel-module__iconContainer–Wb2Qn”,children:(0,P.jsx)(Y.CopilotIcon,{size:16})}),(0,P.jsxs)(“div”,{className:”CopilotGenerateDescriptionPanel-module__messageContent–s0h9s”,children:[(0,P.jsx)(“div”,{className:”CopilotGenerateDescriptionPanel-module__messageLabel–LJrD5″,children:(0,P.jsx)(“span”,{children:”Copilot”})}),R===eo.k.copilotGenerateError?(0,P.jsx)(“div”,{className:”CopilotGenerateDescriptionPanel-module__errorContainer–FtxMG”,children:(0,P.jsxs)(ee.A,{variant:”danger”,children:[(0,P.jsx)(Y.AlertIcon,{}),R]})}):(0,P.jsx)(“div”,{className:”CopilotGenerateDescriptionPanel-module__messageText–jZwhl”,children:(0,P.jsx)(“span”,{children:R})})]})]}),V&&(0,P.jsxs)(“div”,{className:”CopilotGenerateDescriptionPanel-module__loadingContainer–CVxad”,”aria-live”:”polite”,”aria-atomic”:”true”,role:”status”,children:[(0,P.jsx)(eb.N,{animationType:eb.L.Thinking,loopAnimation:!0,size:20}),(0,P.jsx)(“span”,{className:”CopilotGenerateDescriptionPanel-module__loadingLabel–Mwlgb”,children:”Copilot”}),(0,P.jsx)(eI.b,{className:”CopilotGenerateDescriptionPanel-module__loadingText–mElNI”,children:eo.k.copilotPanelLoadingMessage}),(0,P.jsx)(ej.K,{“aria-label”:”Stop generation”,icon:Y.SquareFillIcon,size:”small”,onClick:O})]}),”suggested”===y&&!V&&(0,P.jsxs)(“div”,{className:”CopilotGenerateDescriptionPanel-module__actionButtons–HP8KF”,children:[(0,P.jsx)(J.Q,{size:”small”,variant:”invisible”,className:eT,leadingVisual:Y.CheckIcon,onClick:M,children:eo.k.copilotPanelAcceptButton}),(0,P.jsx)(J.Q,{size:”small”,variant:”invisible”,className:eT,leadingVisual:Y.XIcon,onClick:$,children:eo.k.copilotPanelDiscardButton}),(0,P.jsx)(J.Q,{size:”small”,variant:”invisible”,className:eT,leadingVisual:Y.SyncIcon,onClick:U,children:eo.k.copilotPanelTryAgainButton})]}),!V&&(0,P.jsxs)(“div”,{className:”CopilotGenerateDescriptionPanel-module__inputArea–ICWEH”,children:[(0,P.jsx)(ey.Ay,{ref:K,value:p,onChange:e=>g(e.target.value),onKeyPress:H,placeholder:eo.k.copilotPanelInputPlaceholder,rows:1,resize:”none”,block:!0,className:”CopilotGenerateDescriptionPanel-module__textarea–v7rax”,style:A}),(0,P.jsx)(ej.K,{className:”CopilotGenerateDescriptionPanel-module__sendButton–SbKPr”,”aria-label”:eo.k.copilotPanelSendButton,icon:Y.PaperAirplaneIcon,variant:”invisible”,onClick:B,disabled:””===p.trim()})]})]}):null}function eK(e){(0,ec.BI)(“copilot.create_issue_description_panel”,{error:e})}try{eN.displayName||(eN.displayName=”CopilotGenerateDescriptionPanel”)}catch{}var eL=a(62180),eA=a(71651),ew=a(30093);let eP=({title:e,titleValidationResult:l,titleInputRef:a,handleTitleChange:n})=>{let{settings:t}=(0,eA.z)(),i=(0,P.jsx)(ew.A,{ref:a,”aria-label”:eo.k.issueCreateTitleLabel,placeholder:eo.k.issueCreateTitlePlaceholder,”aria-describedby”:”issue-create-pane-title title-validation”,value:e,onChange:n,onInput:n,”data-hpc”:!0,autoFocus:!0,”data-react-autofocus”:!0});return(0,P.jsx)(“div”,{className:”CreateIssueFormTitle-module__container–GhqlY”,children:(0,P.jsxs)(eg.A,{className:”CreateIssueFormTitle-module__formControl–H5ulr”,required:!0,children:[(0,P.jsx)(eg.A.Label,{className:”CreateIssueFormTitle-module__formControlLabel–ksDPF”,children:eo.k.issueCreateTitleLabel}),(0,P.jsxs)(“div”,{className:”CreateIssueFormTitle-module__subcontainer–wchOC”,children:[(0,P.jsx)(ei.Suspense,{fallback:i,children:(0,P.jsx)(eL.x,{tone:t.emojiTone,children:i})}),l&&(0,P.jsx)(“span”,{role:”alert”,”aria-live”:”assertive”,children:(0,P.jsx)(eg.A.Validation,{variant:”error”,id:”title-validation”,children:l})})]})]})})};try{eP.displayName||(eP.displayName=”CreateIssueFormTitle”)}catch{}let eE={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”id”}],kind:”Fragment”,metadata:null,name:”useIssueFormSecondaryQuery”,selections:[{alias:null,args:t=[{kind:”Variable”,name:”id”,variableName:”id”}],concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[i={alias:null,args:null,kind:”ScalarField”,name:”securityPolicyUrl”,storageKey:null},s={alias:null,args:null,kind:”ScalarField”,name:”contributingFileUrl”,storageKey:null},r={alias:null,args:null,kind:”ScalarField”,name:”codeOfConductFileUrl”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”supportFileUrl”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:d=[{kind:”Literal”,name:”first”,value:10}],concreteType:”IssueFieldsConnection”,kind:”LinkedField”,name:”pinnedIssueFields”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[u={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},p={kind:”InlineFragment”,selections:m=[c={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],type:”IssueFieldText”,abstractKey:null},g={kind:”InlineFragment”,selections:m,type:”IssueFieldSingleSelect”,abstractKey:null},y={kind:”InlineFragment”,selections:m,type:”IssueFieldDate”,abstractKey:null},h={kind:”InlineFragment”,selections:m,type:”IssueFieldNumber”,abstractKey:null}],storageKey:null}],storageKey:”pinnedIssueFields(first:10)”}],type:”Organization”,abstractKey:null}],storageKey:null}],type:”Repository”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”useIssueFormSecondaryQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[u,{kind:”InlineFragment”,selections:[i,s,r,o,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[u,{kind:”InlineFragment”,selections:[{alias:null,args:d,concreteType:”IssueFieldsConnection”,kind:”LinkedField”,name:”pinnedIssueFields”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[u,p,g,y,h,{kind:”InlineFragment”,selections:[c],type:”Node”,abstractKey:”__isNode”}],storageKey:null}],storageKey:”pinnedIssueFields(first:10)”}],type:”Organization”,abstractKey:null},c],storageKey:null}],type:”Repository”,abstractKey:null},c],storageKey:null}]},params:{id:”d3765abb61ac2c4f9019e654724d3043″,metadata:{},name:”useIssueFormSecondaryQuery”,operationKind:”query”,text:null}};eE.hash=”72c60bf38c11334e07dfc92e81deade1″;var eR=a(30721),eD=a(71315);a(69487);var eV=a(65249),eM=a(23490),eO=a(77430),eB=a(19918),e$=a(46377),eU=a(25407);let eH=({ref:e,assignees:l,anchorProps:a,displayHotkey:n,MAX_DISPLAYED_ASSIGNEES:t=2,readonly:i})=>(0,P.jsx)(e$._,{leadingIconElement:l.slice(0,t).map(e=>(0,P.jsx)(eq,{assignee:e},e.login)),anchorText:l.length>1?eB.k.assignees:eB.k.noAssignees,anchorProps:a,sharedPickerMainValue:l.slice(0,t).map(e=>e.isCopilot?”Copilot”:e.login).join(“, “).concat(l.length>t?`, ${l.length-t}+`:””),ariaLabel:eB.k.selectAssignees,readonly:i,leadingIcon:Y.PeopleIcon,hotKey:!i&&n?”A”:void 0,ref:e});function eq({assignee:e}){return e.isCopilot?(0,P.jsx)(Y.CopilotIcon,{}):(0,P.jsx)(eO.r,{“data-hovercard-url”:(0,eU.dCN)({owner:e.login}),src:e.avatarUrl,size:16,alt:`@${e.login}`,className:”CompressedAssigneeAnchor-module__compressedAssigneeAvatar–y2Hg2″})}eH.displayName=”CompressedAssigneeAnchor”;try{eq.displayName||(eq.displayName=”AssigneeLeadingVisual”)}catch{}let eG=({ref:e,assignees:l,readonly:a,anchorProps:n})=>(0,P.jsx)(eH,{assignees:l||[],displayHotkey:!1,anchorProps:a?void 0:n,readonly:a,ref:e});eG.displayName=”DefaultAssigneePickerAnchor”;var eW=a(45750),ez=a(14307);let eQ=({color:e})=>{let l=ez.i4.find(l=>l===e),{fg:a}=(0,ez.Wk)(l);return(0,P.jsx)(“div”,{style:{“–bg”:`${a}`},className:”DefaultIssueTypePickerAnchor-module__issueTypeDot–KX5Dc”})},eY=({ref:e,activeIssueType:l,readonly:a,anchorProps:n})=>(0,P.jsx)(e$._,{anchorText:eB.k.noIssueTypes,sharedPickerMainValue:l?.name,anchorProps:a?void 0:n,ariaLabel:eB.k.selectIssueTypes,readonly:a,leadingIcon:Y.IssueOpenedIcon,hotKey:void 0,ref:e,leadingIconElement:l&&(0,P.jsx)(eQ,{color:l.color})});eY.displayName=”DefaultIssueTypePickerAnchor”;try{eQ.displayName||(eQ.displayName=”IssueTypeDot”)}catch{}var eX=a(85346),eZ=a(73017);let eJ=({MAX_DISPLAYED_LABELS:e=5,labelColors:l})=>(0,P.jsx)(“div”,{className:”LabelDots-module__labelDotsContainer–sNiXI”,children:l.slice(0,e).map((e,l)=>(0,P.jsx)(en.az,{sx:{backgroundColor:`#${e}`},className:”LabelDots-module__labelDot–MZUOf”},`${l}-${e}`))});try{eJ.displayName||(eJ.displayName=”LabelDots”)}catch{}let e0=({ref:e,size:l=”large”,labelNamesWithColor:a,anchorProps:n,MAX_DISPLAYED_LABELS:t=5,readonly:i,leadingIcon:s,hotKey:r,anchorText:o})=>{let d=a.slice(0,t).map(e=>e.nameHTML).join(“, “).concat(a.length>t?`, ${a.length-t}+`:””);return(0,P.jsx)(e$._,{anchorProps:n,readonly:i,anchorText:o||(a.length>1?eB.k.labels:eB.k.noLabels),sharedPickerMainValue:a.length>0&&(0,P.jsx)(e1,{labelNamesWithColor:a,MAX_DISPLAYED_LABELS:t,compressedLabelTitle:d}),leadingIconElement:a.length>0&&(0,P.jsx)(eJ,{MAX_DISPLAYED_LABELS:t,labelColors:a.map(e=>e.color)}),ariaLabel:eB.k.selectLabels,size:l,leadingIcon:s,hotKey:r,ref:e,compressedTitle:d})};e0.displayName=”CompressedLabelsToken”;let e1=({compressedLabelTitle:e})=>(0,P.jsx)(eZ.JR,{html:e});try{e1.displayName||(e1.displayName=”LabelNames”)}catch{}let e2=({ref:e,size:l=”small”,labels:a,anchorProps:n,displayHotkey:t,MAX_DISPLAYED_LABELS:i=2,readonly:s})=>(0,P.jsx)(e0,{size:l,labelNamesWithColor:a.map(e=>({nameHTML:e.nameHTML,color:e.color})),anchorProps:n,MAX_DISPLAYED_LABELS:i,readonly:s,leadingIcon:Y.TagIcon,hotKey:!s&&t?”L”:void 0,anchorText:a?.length===0?eB.k.noLabels:void 0,ref:e});e2.displayName=”CompressedLabelAnchor”;let e4=({ref:e,labels:l,readonly:a,anchorProps:n})=>(0,P.jsx)(e2,{labels:l,readonly:a,displayHotkey:!1,anchorProps:a?void 0:n,ref:e});e4.displayName=”DefaultLabelAnchor”;var e8=a(49669);let e7=({ref:e,activeMilestone:l,readonly:a,nested:n,anchorProps:t})=>(0,P.jsx)(e$._,{anchorText:eB.k.noMilestones,sharedPickerMainValue:l?.title,anchorProps:a?void 0:t,ariaLabel:eB.k.selectMilestones,readonly:a,nested:n,leadingIcon:Y.MilestoneIcon,hotKey:void 0,ref:e});e7.displayName=”DefaultMilestonePickerAnchor”;var e6=a(90921),e3=a(5643),e9=a(25820),e5=a(75202),le=a(41057);let ll=()=>(0,P.jsx)(“div”,{className:”MetadataFooterLoading-module__MetadataFooterLoadingContainer–MlVdF”,children:(0,P.jsx)(le.Q,{borderRadius:”pill”,height:”lg”,width:”400px”})});try{ll.displayName||(ll.displayName=”MetadataFooterLoading”)}catch{}var la=a(83463),ln=a(43570),lt=a(4889),li=a(72690);let ls=”MetadataFooter-module__animationClass–JG8Qb”,lr=({fieldWithValue:e,buttonProps:l,className:a,readonly:n})=>{let t=(0,U.HZ)(e.field.dataType),i=(0,q.nB)(t,e.value),s=lo(e),r=i?`${e.field.name}:`:e.field.name;return(0,P.jsx)(e$._,{anchorText:r,sharedPickerMainValue:i,leadingIcon:(0,U.mQ)(t),leadingIconElement:s,anchorProps:l,className:a,readonly:n},e.field.id)},lo=e=>{if(“SINGLE_SELECT”===e.field.dataType&&e.value){let l=e.value,a=l?.color||”GRAY”;return(0,P.jsx)(ld,{color:a})}return null},ld=({color:e})=>{let l=ez.i4.find(l=>l===e),{fg:a}=(0,ez.Wk)(l);return(0,P.jsx)(“div”,{style:{“–bg”:`${a}`},className:”MetadataFooter-module__SingleSelectFieldDot–V_G0U”})},lu=(e,l)=>(0,P.jsx)(ej.K,{onClick:l=>{e.onClick?.(l)},ref:l,icon:Y.PlusIcon,variant:”default”,”aria-label”:eo.k.setAdditionalFields,tooltipDirection:”n”,size:”small”});try{lr.displayName||(lr.displayName=”IssueFieldValueSharedEditorAnchor”)}catch{}try{ld.displayName||(ld.displayName=”SingleSelectFieldDot”)}catch{}let lc=”256px”,lm=({pendingField:e,onCommit:l,onClose:a})=>lf((0,q.Y0)(e,null),l,a,!0),lp=({field:e,onChange:l,className:a,readonly:n})=>{let t=(0,ei.useCallback)((a,n)=>{l(e,n)},[l,e]);return e.field.id&&e.field.name?lf(e,t,void 0,!1,a,n):null},lg=(e,l,a,n=!1,t)=>(0,P.jsx)(lt.lT,{fieldId:e.field.id,fieldName:e.field.name,initialValue:e.value,onCommit:l,renderAnchor:a,overrideWidth:lc,isNumber:!0,validate:ln.H,shouldOpen:n,onClose:t}),ly=(e,l,a,n=!1,t)=>(0,P.jsx)(lt.lT,{fieldId:e.field.id,fieldName:e.field.name,initialValue:e.value,onCommit:l,renderAnchor:a,overrideWidth:lc,shouldOpen:n,onClose:t}),lh=(e,l,a,n=!1,t)=>{let[i,s]=(0,ei.useState)(n);return(0,P.jsx)(la.DatePicker,{anchor:e=>a(e),showClearButton:!0,showTodayButton:!0,variant:”single”,dateFormat:”long”,onChange:a=>{l(e.field.id,a)},value:e.value,placeholder:”Set date”,open:i,onOpen:()=>{s(!0)},onClose:()=>{s(!1),t?.()},anchoredOverlayProps:{side:”outside-top”}},e.field.id)},lk=(e,l,a,n=!1,t)=>{let i=e.value;return(0,P.jsx)(li.CZ,{fieldId:e.field.id,fieldName:e.field.name||””,selectedOption:i?.name||null,onSelectionChange:a=>{l(e.field.id,a)},anchorElement:e=>a(e),readonly:!1,isLazy:!0,shouldOpen:n,onClose:t,insidePortal:!0},e.field.id)},lf=(e,l,a,n=!1,t,i)=>{let s=l=>(0,P.jsx)(lr,{fieldWithValue:e,buttonProps:l,className:t,readonly:i},e.field.id);switch(e.field.dataType){case”SINGLE_SELECT”:return lk(e,l,s,n,a);case”DATE”:return lh(e,l,s,n,a);case”TEXT”:return ly(e,l,s,n,a);case”NUMBER”:return lg(e,l,s,n,a)}};try{lm.displayName||(lm.displayName=”IssueFieldValueSharedPendingEditor”)}catch{}try{lp.displayName||(lp.displayName=”IssueFieldValueSharedEditor”)}catch{}try{lg.displayName||(lg.displayName=”IssueFieldNumberEditor”)}catch{}try{ly.displayName||(ly.displayName=”IssueFieldTextEditor”)}catch{}try{lh.displayName||(lh.displayName=”IssueFieldDateEditor”)}catch{}try{lk.displayName||(lk.displayName=”IssueFieldSingleSelectEditor”)}catch{}try{lf.displayName||(lf.displayName=”IssueFieldEditor”)}catch{}let lb=({repo:e,owner:l,canSetAssignees:a,canSetLabels:n,canSetMilestone:t,canSetProjects:i,canSetIssueFields:s,canSetType:r,issueTypesEnabled:o,orgPinnedFields:d})=>{let{optionConfig:u}=(0,ed.a)(),{repository:c,labels:m,setLabels:p,assignees:g,setAssignees:y,projects:h,setProjects:k,milestone:f,setMilestone:b,issueType:F,setIssueType:I,setIssueFields:S}=(0,eu.u)(),v={insidePortal:u.insidePortal},x=(0,$.G7)(“issue_metadata_add_field_button”),{pendingSelectedField:C,setPendingSelectedField:j,pinnedFields:T,unpinnedFields:_,selectedFieldNames:N,onPendingFieldCommit:K,onIssueFieldPickerSelectionChange:L,onIssueFieldValueChanged:A}=function({pinnedFieldsFromType:e,setIssueFieldsWithValues:l,scopedFields:a}){let[n,t]=(0,ei.useState)([]),[i,s]=(0,ei.useState)(null),r=(0,ei.useMemo)(()=>e||[],[e]),o=(0,ei.useCallback)(e=>{t(e);let a=[];for(let l of e)l.value&&a.push(l);l(a)},[l]),d=(0,ei.useCallback)((e,l)=>{if(!i||i.id!==e)return;s(null);let a=(0,U.HZ)(i.dataType),t=(0,q.vl)(a,l);if(“string”==typeof t?!t.trim():!t)return;let r=[…n];i.name&&!r.some(e=>e.field.name===i.name)&&r.push((0,q.Y0)(i,l)),o(r)},[n,i,o]),u=(0,ei.useCallback)(e=>{let l=e[0];l?.id&&l?.name&&l?.dataType&&s({id:l.id,name:l.name,dataType:(0,U.HZ)(l.dataType)})},[]),c=(0,ei.useCallback)((e,l)=>{r.find(l=>l.id===e.field.id)&&!n.find(l=>l.field.id===e.field.id)?o([…n,(0,q.Y0)(e.field,l)]):o(n.map(a=>a.field.id===e.field.id?(0,q.Y0)(a.field,l):a).filter(e=>null!==e))},[n,r,o]),m=((e,l,a)=>{let n=[];for(let t of l){let l=e.find(e=>e.field.id===t.id);if(l)n.push(l);else{let e=a.find(e=>e.fieldId===t.id);n.push((0,q.IE)(t,e?e.value:null,!!e))}}return n})(n,r,a),p=((e,l,a)=>{let n=a?.map(e=>e.fieldId)||[],t=[…new Set([…e.map(e=>e.field.id).filter(e=>void 0!==e),…n])],i=[];for(let n of t)if(!l.find(e=>e.id===n)){let l=a?.find(e=>e.fieldId===n),t=e.find(e=>e.field.id===n);i.push(t||(0,q.IE)({id:n,name:l.fieldName,dataType:l.fieldType},l.value,!0))}return i})(n,r,a),g=m.map(e=>e.field.name).concat(p.map(e=>e.field.name)).filter(e=>void 0!==e);return{pendingSelectedField:i,setPendingSelectedField:s,pinnedFields:m,unpinnedFields:p,selectedFieldNames:g,onPendingFieldCommit:d,onIssueFieldPickerSelectionChange:u,onIssueFieldValueChanged:c}}({pinnedFieldsFromType:(0,ei.useMemo)(()=>(0,U.IR)(F?.pinnedFields?.filter(e=>e?.__typename!==”%other”))??d??[],[F,d]),setIssueFieldsWithValues:S,scopedFields:u.scopedFields||[]}),w=h[0]?.title||””,{sendAnalyticsEvent:E}=(0,z.s)(),R=c&&(a||g.length>0)&&!u.scopedAssignees?{repo:c.name,owner:c.owner.login,readonly:!a,includeAuthorableBots:!1,includeAssignableBots:!0,assignees:g,assigneeTokens:[],anchorElement:(e,l)=>(0,P.jsx)(eG,{assignees:g,readonly:!a,anchorProps:{…e,id:”assignees-select-menu”},ref:l,…v}),onSelectionChange:y,…v}:null,D=null;return R&&(D=(0,P.jsx)(eW._,{…R})),(0,P.jsx)(ei.Suspense,{fallback:(0,P.jsx)(ll,{}),children:(0,P.jsxs)(“div”,{className:”MetadataFooter-module__MetadataFooterContainer–omn3p”,children:[D,u.scopedAssignees&&(0,P.jsx)(eH,{assignees:u.scopedAssignees,displayHotkey:!1,anchorProps:void 0,readonly:!0}),(n||m.length>0)&&(0,P.jsx)(e8.t,{repo:e,owner:l,readonly:!n,canCreateLabel:n,labels:m,anchorElement:(e,l)=>(0,P.jsx)(e4,{readonly:!n,labels:m,anchorProps:e,ref:l,…v}),onSelectionChange:p,…v}),o&&(r||null!==F)&&!u.scopedIssueType&&(0,P.jsx)(eX.u,{owner:l,onSelectionChange:e=>{let l=e?.[0]||null;E(“issue_create.update_issue_type”,”ISSUE_CREATE_UPDATE_ISSUE_TYPE_DIALOG”,{issueTypeId:l?.id??””}),I(l)},anchorElement:e=>(0,P.jsx)(eY,{readonly:!r,activeIssueType:F,anchorProps:e,…v}),readonly:!r,activeIssueType:F??null,width:”medium”,…v}),s&&T.map(e=>(0,P.jsx)(lp,{field:e,onChange:A,className:ls,readonly:e.readonly},e.field.id)),u.scopedIssueType&&(0,P.jsx)(e$._,{anchorText:u.scopedIssueType,leadingIcon:Y.IssueOpenedIcon,readonly:!0}),c&&!u.scopedProjectTitle&&(i||h.length>0)&&(0,P.jsx)(e5.t,{fallback:(0,P.jsx)(e$._,{anchorText:”Projects are unavailable”,leadingIcon:Y.AlertIcon,readonly:!0}),children:(0,P.jsx)(e9.w,{pickerId:”create-issue-projects-picker”,readonly:!i,onSave:k,selectedProjects:h,owner:c.owner.login,repo:c.name,anchorElement:e=>(0,P.jsx)(e3.C,{nested:!1,readonly:!i,anchorProps:e,firstSelectedProjectTitle:w,…v}),…v})}),u.scopedProjectTitle&&(0,P.jsx)(e$._,{anchorText:u.scopedProjectTitle,leadingIcon:Y.TableIcon,readonly:!0}),(t||null!==f)&&!u.scopedMilestone&&(0,P.jsx)(e6.D,{repo:e,owner:l,readonly:!t,canCreateMilestone:t,activeMilestone:f,anchorElement:(e,l)=>(0,P.jsx)(e7,{nested:!1,readonly:!t,activeMilestone:f,anchorProps:e,ref:l,…v}),onSelectionChange:e=>b(e?.[0]||null),…v}),u.scopedMilestone&&(0,P.jsx)(e$._,{anchorText:u.scopedMilestone,leadingIcon:Y.MilestoneIcon,readonly:!0}),s&&_.map(e=>(0,P.jsx)(lp,{field:e,onChange:A,className:ls,readonly:e.readonly},e.field.id)),C&&(0,P.jsx)(lm,{pendingField:C,onCommit:K,onClose:()=>{j(null)}}),s&&x&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(“div”,{className:”MetadataFooter-module__MetadataFooterSeparator–zajRG”}),(0,P.jsx)(eM.iF,{owner:l,title:eo.k.addIssueField,fieldsSet:N,onSelectionChange:L,anchorElement:lu,…v})]})]})})};try{lb.displayName||(lb.displayName=”MetadataFooter”)}catch{}var lF=a(95104),lI=a(21725),lS=a(63487),lv=a(43952),lx=a(30107),lC=a(83116),lj=a(83494),lT=a(5524),l_=a(94236),lN=a(93513),lK=a(78211);function lL({issue:e,onLinkClick:l}){let a=(0,ei.useCallback)(()=>{l?.(e.url)},[e.url,l]),{sourceIcon:n}=(0,lK.e)({state:e.state,stateReason:e.stateReason}),t=n(“Issue”);return(0,P.jsxs)(lT.l.LinkItem,{href:e.url,target:”_blank”,onClick:a,children:[(0,P.jsx)(lT.l.LeadingVisual,{children:(0,P.jsx)(t,{})}),(0,P.jsx)(“span”,{className:”markdown-title”,children:e.title}),(0,P.jsxs)(lT.l.Description,{variant:”block”,children:[e.repository.nameWithOwner,”#”,e.number]})]})}try{lL.displayName||(lL.displayName=”IssueItem”)}catch{}try{(w=IconComponent).displayName||(w.displayName=”IconComponent”)}catch{}var lA=a(2495),lw=a(16810),lP=a(21798);let lE=({sectionHeader:e,relationships:l,className:a})=>{let{parent:n}=l,t=n?void 0:lN.k.emptySections.relationships;return(0,P.jsx)(lw.w,{id:”sidebar-relationships-section”,sectionHeader:e,emptyText:t,className:a,children:n&&(0,P.jsx)(lT.l,{variant:”full”,className:”RelationshipsSection-module__actionListOverrides–ysNvn”,children:(0,P.jsxs)(lT.l.Group,{children:[(0,P.jsx)(lT.l.GroupHeading,{as:”h4″,className:”RelationshipsSection-module__groupHeading–l5iUA”,children:lN.k.relationNames.parentIssue}),(0,P.jsx)(lL,{issue:n})]})})})};function lR({owner:e,repo:l,readonly:a,parentIssue:n,onParentChange:t,className:i}){let[s,r]=(0,ei.useState)(!1),[o,d]=(0,ei.useState)(null),u=(0,ei.useRef)(null),c=(0,ei.useCallback)(e=>{d(e)},[]),m=(0,ei.useCallback)(e=>{t(e[0]||null),d(null)},[t]),p=(0,ei.useCallback)(()=>{r(!1),d(“Issue”)},[]),g=(0,ei.useCallback)(()=>{d(null),r(e=>!e)},[]),y=(0,ei.useCallback)(e=>{let{ref:l}=e;return l&&(l.current=u.current),(0,P.jsx)(P.Fragment,{})},[u]),h=a?(0,P.jsx)(lA.h,{title:lN.k.sectionTitles.relationships}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(lj.ak,{commands:{“issue-create:edit-parent”:p}}),(0,P.jsx)(lP.X,{ref:u,buttonProps:{onClick:g},readonly:a,title:lN.k.sectionTitles.relationships}),(0,P.jsx)(lC.D,{onPickerTypeChange:c,selectedIssueIds:n?[n.id]:[],hiddenIssueIds:[],onIssueSelection:m,organization:e,defaultRepositoryNameWithOwner:`${e}/${l}`,pickerType:o,anchorElement:y}),(0,P.jsx)(l_.W,{open:s,onOpenChange:r,anchorRef:u,children:(0,P.jsx)(l_.W.Overlay,{width:”medium”,children:(0,P.jsx)(lT.l,{children:(0,P.jsx)(lT.l.Group,{children:(0,P.jsx)(lj.Vr,{commandId:”issue-create:edit-parent”,onSelect:p,children:n?”Change or remove parent”:”Add parent”})})})})})]});return(0,P.jsx)(lE,{sectionHeader:h,relationships:{parent:n},className:i})}try{lE.displayName||(lE.displayName=”RelationshipsSection”)}catch{}try{lR.displayName||(lR.displayName=”CreateIssueRelationshipsSection”)}catch{}var lD=a(1293);let lV=”MetadataSidebar-module__CreateIssueAssigneesSection–CPHmR”,lM=({canSetAssignees:e,canSetLabels:l,canSetMilestone:a,canSetProjects:n,canSetType:t,canSetIssueFields:i,canSetRelationships:s,issueTypesEnabled:r,orgPinnedFields:o})=>{let{optionConfig:d}=(0,ed.a)(),{repository:u,labels:c,setLabels:m,assignees:p,setAssignees:g,projects:y,setProjects:h,milestone:k,setMilestone:f,issueType:b,setIssueType:F,setIssueFields:I,parentIssue:S,setParentIssue:v}=(0,eu.u)(),x={insidePortal:d.insidePortal};return u?(0,P.jsxs)(“div”,{className:”MetadataSidebar-module__MetadataSidebarContainer–Q36lm”,children:[(0,P.jsx)(“h2″,{className:”sr-only”,children:”Metadata”}),u&&(0,P.jsx)(lF.b2,{repo:u.name,owner:u.owner.login,readonly:!e,assignees:p,onSelectionChange:g,className:lV,repository:u,issueNumber:void 0,onIssueUpdate:void 0,…x}),(0,P.jsx)(lS.qn,{repo:u.name,owner:u.owner.login,readonly:!l,labels:c,onSelectionChange:m,…x}),r&&(0,P.jsx)(lD.pf,{owner:u.owner.login,repo:u.name,…x,viewerCanType:t,type:b,onSelectionChange:F}),i&&(0,P.jsx)(lI.u,{owner:u.owner.login,ownerId:u.owner.databaseId,onSelectionChange:I,issueType:b,orgPinnedFields:o,…x}),(0,P.jsx)(lx.PH,{owner:u.owner.login,repo:u.name,projects:y,readonly:!n,onSelectionChange:h,…x}),(0,P.jsx)(lv.C5,{repo:u.name,owner:u.owner.login,milestone:k,onSelectionChange:f,viewerCanSetMilestone:a??!1,className:lV,…x}),(0,$.G7)(“issue_create_relationships”)&&(0,P.jsx)(lR,{owner:u.owner.login,repo:u.name,readonly:!s,parentIssue:S,onParentChange:v})]}):null};try{lM.displayName||(lM.displayName=”MetadataSidebar”)}catch{}let lO=({orgPinnedFields:e})=>{let{optionConfig:l}=(0,ed.a)(),a=!l.insidePortal,{repository:n}=(0,eu.u)(),t=n?.viewerIssueCreationPermissions?.assignable??!1,i=n?.viewerIssueCreationPermissions?.labelable??!1,s=n?.viewerIssueCreationPermissions?.milestoneable??!1,r=n?.viewerIssueCreationPermissions?.triageable??!1,o=n?.viewerIssueCreationPermissions?.typeable??!1,d=n?.viewerIssueCreationPermissions?.canSetIssueFields??!1,u=n?.viewerIssueCreationPermissions?.triageable??!1,c=n?.owner?.issueTypesEnabled??!1,m={repo:n?.name||””,owner:n?.owner.login||””,canSetAssignees:t,canSetLabels:i,canSetMilestone:s,canSetProjects:r,canSetType:o,canSetIssueFields:d,canSetRelationships:u,issueTypesEnabled:c,orgPinnedFields:e};return a?(0,P.jsx)(lM,{…m}):(0,P.jsx)(lb,{…m})};try{lO.displayName||(lO.displayName=”MetadataSelectors”)}catch{}let lB=(k={defaultValue:!1,kind:”LocalArgument”,name:”fetchParent”},f={defaultValue:null,kind:”LocalArgument”,name:”input”},b=[{kind:”Variable”,name:”input”,variableName:”input”}],F={alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},I={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},S={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},v={alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},x={alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},C={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},j={alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},T=[{kind:”Literal”,name:”first”,value:100}],N=[_={alias:null,args:null,kind:”ScalarField”,name:”totalCount”,storageKey:null}],K={alias:null,args:null,kind:”ScalarField”,name:”message”,storageKey:null},A={alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[L={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},v,I],storageKey:null},{fragment:{argumentDefinitions:[k,f],kind:”Fragment”,metadata:null,name:”createIssueMutation”,selections:[{alias:null,args:b,concreteType:”CreateIssuePayload”,kind:”LinkedField”,name:”createIssue”,plural:!1,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[F,{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[F,I,S,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[v],storageKey:null}],storageKey:null},x,C,I,j,{condition:”fetchParent”,kind:”Condition”,passingValue:!0,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”parent”,plural:!1,selections:[I,{alias:null,args:T,concreteType:”IssueConnection”,kind:”LinkedField”,name:”subIssues”,plural:!1,selections:N,storageKey:”subIssues(first:100)”},{args:null,kind:”FragmentSpread”,name:”SubIssuesListView”}],storageKey:null}]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”errors”,plural:!0,selections:[K],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[f,k],kind:”Operation”,name:”createIssueMutation”,selections:[{alias:null,args:b,concreteType:”CreateIssuePayload”,kind:”LinkedField”,name:”createIssue”,plural:!1,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[F,{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[F,I,S,A],storageKey:null},x,C,I,j,{condition:”fetchParent”,kind:”Condition”,passingValue:!0,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”parent”,plural:!1,selections:[I,{alias:null,args:T,concreteType:”IssueConnection”,kind:”LinkedField”,name:”subIssues”,plural:!1,selections:[_,{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[I,{alias:null,args:null,kind:”ScalarField”,name:”state”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”stateReason”,storageKey:null},{alias:null,args:null,concreteType:”IssueDependenciesSummary”,kind:”LinkedField”,name:”issueDependenciesSummary”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”blockedBy”,storageKey:null}],storageKey:null},{alias:null,args:[{kind:”Literal”,name:”first”,value:10}],concreteType:”UserConnection”,kind:”LinkedField”,name:”assignees”,plural:!1,selections:[_,{alias:null,args:null,concreteType:”UserEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”node”,plural:!1,selections:[I,v,{alias:null,args:null,kind:”ScalarField”,name:”avatarUrl”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:”assignees(first:10)”},j,{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[S,A,I,{alias:”enabledForRepo”,args:[{kind:”Literal”,name:”name”,value:”issues_preheating_for_repo”}],kind:”ScalarField”,name:”isFeatureEnabled”,storageKey:’isFeatureEnabled(name:”issues_preheating_for_repo”)’}],storageKey:null},F,x,C,{alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},{alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”issueType”,plural:!1,selections:[I,S,{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”SubIssuesSummary”,kind:”LinkedField”,name:”subIssuesSummary”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”total”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”completed”,storageKey:null}],storageKey:null},{alias:null,args:[{kind:”Literal”,name:”first”,value:0},{kind:”Literal”,name:”includeClosedPrs”,value:!0}],concreteType:”PullRequestConnection”,kind:”LinkedField”,name:”closedByPullRequestsReferences”,plural:!1,selections:N,storageKey:”closedByPullRequestsReferences(first:0,includeClosedPrs:true)”},{alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null}],storageKey:null}],storageKey:”subIssues(first:100)”},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[S,A,I],storageKey:null},{alias:”subIssuesConnection”,args:null,concreteType:”IssueConnection”,kind:”LinkedField”,name:”subIssues”,plural:!1,selections:N,storageKey:null}],storageKey:null}]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”errors”,plural:!0,selections:[L,K],storageKey:null}],storageKey:null}]},params:{id:”498aab3af5de6766f5850a21d4cc6dcc”,metadata:{},name:”createIssueMutation”,operationKind:”mutation”,text:null}});lB.hash=”52d12f0951eb99b4e97acd8c5026e0f0″;var l$=a(10991);let lU=({reasonHTML:e,issuesUrl:l})=>(0,P.jsxs)(“div”,{className:”UserRestrictedView-module__userRestrictedContainer–Ootl2″,children:[e&&(0,P.jsx)(Z.l,{“aria-label”:”Warning”,variant:”warning”,hideTitle:!0,title:”Action restricted”,children:(0,P.jsx)(Z.l.Description,{children:(0,P.jsx)(eZ.JR,{html:e})})}),l&&(0,P.jsx)(J.Q,{as:”a”,href:l,className:”UserRestrictedView-module__backToAllIssuesButton–pt4aq”,children:eo.k.backToAllIssues})]});try{lU.displayName||(lU.displayName=”UserRestrictedView”)}catch{}var lH=a(50167),lq=a(81724),lG=a(94007);let lW=[],lz=({repository:e,title:l,setTitle:a,body:n,setBody:t,clearOnCreate:i,onCreateSuccess:s,onCreateError:r,selectedTemplate:o,footer:d,issueFormRef:u,onBeforeCreate:c,defaultValuesById:m,showUserRestrictedView:p=!1,onFieldChange:g,clientMutationId:y})=>{let{optionConfig:h,createMore:k,createMoreCreatedPath:f,setCreateMoreCreatedPath:b,isSubmitting:F,setIsSubmitting:I,onCreateAction:S,setIsFileUploading:v,displayMode:x}=(0,ed.a)(),C=!h.insidePortal,j=(0,ei.useRef)(null),[T,_]=(0,ei.useState)(),[N,K]=(0,ei.useState)(void 0),[L,A]=(0,ei.useState)(void 0),[w,ec]=(0,ei.useState)(null),[em,ep]=(0,ei.useState)(!1),eg=function({repoId:e}){let l=(0,es.useRelayEnvironment)(),[a,n]=(0,ei.useState)(null);return(0,ei.useEffect)(()=>{eD.X3||(0,eR.SD)({environment:l,query:eE,variables:{id:e}}).subscribe({next:e=>{let l=(0,U.IR)(e.node?.owner?.pinnedIssueFields?.nodes?.filter(e=>e?.__typename!==”%other”));n({securityPolicyUrl:e.node?.securityPolicyUrl??null,contributingFileUrl:e.node?.contributingFileUrl??null,codeOfConductFileUrl:e.node?.codeOfConductFileUrl??null,supportFileUrl:e.node?.supportFileUrl??null,orgPinnedFields:l})}})},[l,e]),a}({repoId:e.id}),ey=(0,ei.useRef)(null),ek=(0,es.useRelayEnvironment)(),{sendAnalyticsEvent:ef}=(0,z.s)(),{labels:eb,assignees:eF,projects:eI,milestone:eS,issueType:ev,issueFields:ex,parentIssueId:eC,usedStorageKeyPrefix:ej,isCopilotAssignmentDialogOpen:eT,setIsCopilotAssignmentDialogOpen:e_,copilotAssignmentAttributes:eK,setCopilotAssignmentAttributes:eL}=(0,eu.u)(),eA=(0,eV.E)({additionalConditions:[!o||!(0,lq.GQ)(o.data)],repositoryVisibility:e.visibility,userCanPushToRepo:e.viewerCanPush});(0,ei.useEffect)(()=>{eA&&ef(“analytics.view”,”ISSUE_CREATE_NEW_ISSUE_WITH_COPILOT_BUTTON_VIEW”,{repoNWO:`${e.owner.login}/${e.name}`})},[e.name,e.owner.login,ef,eA]);let ew=(0,ei.useRef)(!1);(0,ei.useEffect)(()=>{eK&&ew.current&&(ew.current=!1,S.current?.onCreate(!1,!1))},[eK]),(0,ei.useEffect)(()=>{eT||eK||(ew.current=!1)},[eT,eK]);let eM=(0,P.jsx)(lU,{reasonHTML:e.viewerInteractionLimitReasonHTML,issuesUrl:`/${e.owner.login}/${e.name}/issues`}),eO=e.viewerIssueCreationPermissions.typeable,eB=e.viewerIssueCreationPermissions.canSetIssueFields,e$=e=>{let l=e.map(e=>e?.message).filter(Boolean).join(“, “);return(l?l.charAt(0).toUpperCase()+l.slice(1):null)??er.S.createIssueError},eU=m||(0,lG.Zi)();(0,ei.useEffect)(()=>{w&&w.length>0&&ey?.current&&ey.current.focus()},[ey,w]),(0,ei.useImperativeHandle)(S,()=>({onCreate:async(a,t)=>{let d,m;if(a)return;let p=(0,O.O_)(l);K(p.errorMessage),!p.isValid&&j.current&&(d=j.current);let g=o&&(0,lq.GQ)(o.data),h=n;if(g&&u.current){let e=u.current.getInvalidInputs();e.length>0?d=d||e[0]:h=u.current.markdown()??””}if(d||void 0!==N||0===(l??””).trim().length||void 0===e||void 0!==L)return void d?.focus();if(ec(null),I(!0),eF.some(e=>(0,R.v)(e.login))&&!eK){ew.current=!0,e_(!0),I(!1);return}c&&(h=await c(h)),o&&(o.kind===lq.t7.IssueTemplate||o.kind===lq.t7.IssueForm)&&(m=o.name);let k={repositoryId:e.id,title:l?l.trim():””,body:h,labelIds:eb.length>0?eb.map(e=>e.id):void 0,assigneeIds:eF.length>0?eF.map(e=>e.id):void 0,milestoneId:eS?.id,issueTypeId:eO||m?ev?.id:null,issueFields:eB?ex.map(e=>{if(void 0===e.field.dataType||void 0===e.field.id)return null;let l=(0,q.vl)((0,U.HZ)(e.field.dataType),e.value);return{fieldId:e.field.id,…(0,U.Ft)((0,U.HZ)(e.field.dataType),l)}}).filter(e=>!!e):null,issueTemplate:m,isDuplicated:x===lH.q.IssueDuplication,parentIssueId:eC,clientMutationId:y,copilotAssignment:eK??void 0};!function({environment:e,input:l,onError:a,onCompleted:n}){(0,es.commitMutation)(e,{mutation:lB,variables:{input:l,fetchParent:!!l.parentIssueId},onError:e=>a&&a(e),onCompleted:e=>{n?.(e),(0,l$.f)()}})}({environment:ek,input:k,onError:e=>{(0,B.N7)(lQ(e.message)),r(e),I(!1);let l=er.S.createIssueError;e.cause&&Array.isArray(e.cause)&&e.cause.length>0&&(l=e$(e.cause)),ec(l)},onCompleted:e=>{if(I(!1),!e.createIssue?.issue){e.createIssue?.errors.map(e=>(0,B.N7)(lQ(e.message)));let l=er.S.createIssueError;e.createIssue?.errors&&e.createIssue?.errors.length>0&&(l=e$(e.createIssue.errors)),ec(l);return}let l=e.createIssue.issue;ef(“analytics.click”,”ISSUE_CREATE_NEW_ISSUE_BUTTON”,{issueId:l.id,issueNumber:l.number,issueNWO:`${l.repository.owner.login}/${l.repository.name}`}),eI.length>0&&function(e,l,a){for(let n of l)(0,G.Z)({environment:a,issueId:e,projectId:n.id})}(l.id,eI,ek),t?(_(“edit”),b({…f,number:l.number})):i(),s({issue:l,createMore:t})}})}}),[l,o,n,u,N,e,L,I,c,eb,eF,eS?.id,eO,ev?.id,eB,ex,x,eC,y,eK,e_,ek,r,ef,eI,s,b,f,i]);let eH=e=>{(0,O.O_)(e).isValid&&K(void 0),a(e)},eq=e=>{A((0,O.QK)(e).errorMessage),t(e)},eG=o&&(0,lq.GQ)(o.data),eW=(0,ei.useMemo)(()=>{if(e)return{type:”issue”,repository:{databaseId:e.databaseId,nwo:`${e.owner.login}/${e.name}`,slashCommandsEnabled:e.slashCommandsEnabled}}},[e]),ez=(0,ei.useId)(),eQ=[],eY=(0,Q.Z)(),eX=(0,ei.useRef)(null),eZ=(0,ei.useRef)(null),eJ=(0,ei.useRef)(null),[e0,e1]=(0,ei.useState)(!1),[e2,e4]=(0,ei.useState)(!1),[e8,e7]=(0,ei.useState)(!1),[e6,e3]=(0,ei.useState)(0),e9=(0,$.G7)(“create_issue_description_with_copilot”),e5=e9&&eA,le=(0,$.G7)(“write_issue_body_with_copilot”)&&eA;(0,ei.useEffect)(()=>{let e=document.getElementById(“assignees-select-menu”);e&&(eZ.current=e)},[]);let ll=()=>{ef(“analytics.click”,”ISSUE_CREATE_NEW_ISSUE_WITH_COPILOT_BUTTON”,{repoNWO:`${e.owner.login}/${e.name}`});let l=new URLSearchParams({prompt:`Create an issue in ${e.nameWithOwner} to `});eY(`${M.Jz}?${l.toString()}`)};eA&&!le&&eQ.push((0,P.jsx)(W.n.FooterButton,{ref:eX,variant:”invisible”,leadingVisual:e5?Y.CopilotIcon:Y.ArrowUpRightIcon,size:”small”,className:”CreateIssueForm-module__footerButton–pogcH”,onClick:()=>{le?ep(!0):e9?e4(!0):n.length||l.length?e1(!0):ll()},children:eo.k.copilotCTAButton},”create-issue-with-copilot”));let la=()=>{e_(!1)},ln=p?eM:(0,P.jsxs)(P.Fragment,{children:[e0&&(0,P.jsx)(X.l,{title:eo.k.copilotCTADialogTitle,onClose:()=>e1(!1),footerButtons:[{buttonType:”default”,content:eo.k.copilotCTADialogCancelButton,onClick:()=>e1(!1)},{buttonType:”primary”,content:eo.k.copilotCTADialogContinueButton,onClick:ll}],returnFocusRef:eX,children:eo.k.copilotCTADialogDescription}),!le&&e9&&(0,P.jsx)(eh,{isOpen:e2,onClose:()=>e4(!1),onGenerate:(e,l)=>{a(e),t(l),e4(!1)},repoOwner:e.owner.login,repoName:e.name,title:l,body:n,returnFocusRef:eX}),w&&(0,P.jsx)(Z.l,{ref:ey,title:”Error”,description:(0,P.jsx)(ea.o,{children:w}),variant:”critical”,className:”CreateIssueForm-module__errorBanner–eNPfc”,role:”alert”}),(0,P.jsx)(E.B,{isOpen:eT,onClose:la,onSubmit:(e,l,a,n,t)=>{eL({targetRepositoryId:e,baseRef:l,customInstructions:a,customAgent:n?.subAgentSlug,agentId:n?.topLevelAgentId,model:t}),la()},repository:{name:e.name,owner:{login:e.owner.login}},returnFocusRef:eZ}),(0,P.jsx)(eP,{title:l,titleInputRef:j,handleTitleChange:e=>{eH(e.currentTarget.value)},titleValidationResult:N}),eW&&!eG&&(0,P.jsxs)(“div”,{className:”CreateIssueForm-module__commentBox–vEs40″,style:em&&(n.trim()||e8)?{“–markdown-input-bottom-padding”:`${e6}px`}:void 0,children:[(0,P.jsx)(D.hF,{ref:eJ,subject:eW,label:eo.k.issueCreateBodyLabel,showLabel:!0,placeholder:eo.k.issueBodyPlaceholder,viewMode:T,onChangeViewMode:_,value:n,onSave:()=>S?.current?.onCreate(F,k),onChange:e=>{eq(e)},saveButtonTrailingIcon:!1,minHeightLines:h.insidePortal?14:20,”aria-describedby”:L?ez:void 0,setIsFileUploading:v,toolbarButtons:le?(0,P.jsx)(J.Q,{variant:”invisible”,leadingVisual:Y.PencilAiIcon,size:”small”,className:”CreateIssueForm-module__copilotWriteButton–kQOZ7″,onClick:()=>ep(e=>!e),”aria-pressed”:em,”aria-label”:eo.k.copilotCTAButton,children:(0,P.jsx)(“span”,{className:”CreateIssueForm-module__copilotWriteButtonText–jsV0i”,children:eo.k.copilotCTAButton})}):null,footerButtons:eQ,disabled:e8,generatingText:e8,onInputFocus:()=>{em&&!n.trim()&&ep(!1)}}),le&&em&&”preview”!==T&&(0,P.jsx)(eN,{isOpen:em,onClose:()=>ep(!1),onGenerate:(e,l)=>{eH(e),eq(l)},repoOwner:e.owner.login,repoName:e.name,title:l,body:n,onPendingChange:e7,anchorPosition:n.trim()||e8?”bottom”:”top”,onHeightChange:e3,editorRef:eJ}),L&&(0,P.jsxs)(ee.A,{variant:”danger”,id:ez,children:[(0,P.jsx)(el.A,{icon:Y.AlertIcon}),L]})]}),eW&&eG&&(0,lq.GQ)(o.data)&&(0,P.jsx)(H.Z,{outputRef:u,issueFormRef:o.data,subject:eW,sessionStorageKey:ej,defaultValuesById:eU,onSave:()=>S?.current?.onCreate(F,k),setIsFileUploading:v,onFieldChange:g})]}),lt=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(lO,{orgPinnedFields:eg?.orgPinnedFields??lW}),eg&&(0,P.jsx)(V.t,{supportFileUrl:eg.supportFileUrl??void 0,codeOfConductFileUrl:eg.codeOfConductFileUrl??void 0,securityPolicyUrl:eg.securityPolicyUrl??void 0,contributingFileUrl:eg.contributingFileUrl??void 0})]}),li=p?null:(0,P.jsx)(P.Fragment,{children:d&&(0,P.jsx)(en.az,{sx:{gridArea:”footer”,mt:[4,4,2*!!eG]},children:d})});return C?(0,P.jsx)(“div”,{className:”CreateIssueForm-module__CreateIssueFormWrapper–xluI0″,children:(0,P.jsxs)(en.az,{className:(0,et.$)(“width-fit”,”CreateIssueForm-module__formGridContainer–SxqjE”),sx:{gridTemplateAreas:` “body metadata” “footer nil” `},children:[(0,P.jsx)(“div”,{className:”CreateIssueForm-module__mainContentSection–rApst”,children:ln}),(0,P.jsx)(“div”,{className:”CreateIssueForm-module__metadataSection–r67Zi”,children:lt}),li]})}):(0,P.jsxs)(P.Fragment,{children:[ln,lt,li]})};function lQ(e){return Error(`Issue create mutation failed with error: ${e}`)}try{lz.displayName||(lz.displayName=”CreateIssueForm”)}catch{}},11770:(e,l,a)=>{a.d(l,{M:()=>n,i:()=>t});let n=({includeAssignableBots:e,includeAuthorableBots:l})=>{let a=[];return e&&a.push(“CAN_BE_ASSIGNED”),l&&a.push(“CAN_BE_AUTHOR”),a},t=e=>e.isCopilot?”@copilot”:”Bot”===e.__typename?`app/${e.login}`:e.login},12360:(e,l,a)=>{a.d(l,{C:()=>u});var n=a(74848),t=a(16522),i=a(74807),s=a(38621),r=a(34164);let o={copilotAvatar:”CopilotAvatar-module__copilotAvatar–VK2n9″,small:”CopilotAvatar-module__small–OG22P”,medium:”CopilotAvatar-module__medium–onZfu”,large:”CopilotAvatar-module__large–KgXbi”,defaultStyle:”CopilotAvatar-module__defaultStyle–T4PhU”},d={small:{default:12,minimal:16},medium:{default:16,minimal:20},large:{default:24,minimal:32}};function u(e){let l,a,u,c=(0,t.c)(10),{size:m,minimal:p,className:g}=e,y=void 0===m?”small”:m,h=void 0!==p&&p,k=void 0===g?””:g,f=h?d[y].minimal:d[y].default,b=o[y],F=!h&&o.defaultStyle;return c[0]!==k||c[1]!==b||c[2]!==F?(l=(0,r.$)(o.copilotAvatar,b,F,k),c[0]=k,c[1]=b,c[2]=F,c[3]=l):l=c[3],c[4]!==f||c[5]!==y?(a=”large”===y?(0,n.jsx)(i.N,{animationType:”static”,loopAnimation:!0,size:f}):(0,n.jsx)(s.CopilotIcon,{size:f}),c[4]=f,c[5]=y,c[6]=a):a=c[6],c[7]!==l||c[8]!==a?(u=(0,n.jsx)(“span”,{className:l,”data-testid”:”copilot-avatar”,role:”img”,”aria-label”:”Copilot avatar”,children:a}),c[7]=l,c[8]=a,c[9]=u):u=c[9],u}try{u.displayName||(u.displayName=”CopilotAvatar”)}catch{}},13771:(e,l,a)=>{a.d(l,{A:()=>n});let n={avatarOuter:”Avatar-module__avatarOuter–waYVs”,avatarInner:”Avatar-module__avatarInner–leXLe”,avatarLink:”Avatar-module__avatarLink–leRdV”,hiddenActivityAvatar:”Avatar-module__hiddenActivityAvatar–SrQQa”,activityAvatar:”Avatar-module__activityAvatar–xUQh3″,issueViewerAvatar:”Avatar-module__issueViewerAvatar–LY0E0″,avatarWithDivider:”Avatar-module__avatarWithDivider–ge7w7″,avatarWithoutDivider:”Avatar-module__avatarWithoutDivider–XoLX3″,avatarWithoutLink:”Avatar-module__avatarWithoutLink–sASpy”}},14307:(e,l,a)=>{a.d(l,{M3:()=>o,Nh:()=>d,Wk:()=>r,i4:()=>i});var n=a(12683),t=a(96540);let i=[“GRAY”,”BLUE”,”GREEN”,”YELLOW”,”ORANGE”,”RED”,”PINK”,”PURPLE”],s={BLUE:”accent”,GREEN:”success”,YELLOW:”attention”,ORANGE:”severe”,RED:”danger”,PINK:”sponsors”,PURPLE:”done”},r=(e=”GRAY”)=>{let{getPresentationalColor:l}=o();return l(e)},o=()=>{let{theme:e,resolvedColorScheme:l=”light”}=(0,n.DP)();return{getPresentationalColor:(0,t.useCallback)((a=”GRAY”)=>{let n=u(l),t=e?.colorSchemes?.[n]?.colors;if(“GRAY”===a)return{bg:t?.canvas?.subtle,fg:t?.fg?.muted,border:t?.border?.default,accent:t?.fg?.subtle};{let e=t?.[s[a]];return{bg:e?.subtle,fg:e?.fg,border:e?.muted,accent:e?.emphasis}}},[e,l])}},d=e=>i.includes(e),u=e=>”light_colorblind”===e||”light_tritanopia”===e?”light”:”dark_colorblind”===e||”dark_tritanopia”===e?”dark”:e},14406:(e,l,a)=>{a.d(l,{o:()=>c});var n,t,i=a(74848),s=a(31021),r=a(96540),o=a(18312),d=a(69487);let u={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”unblockUserFromOrganizationMutation”,selections:t=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”UnblockUserFromOrganizationPayload”,kind:”LinkedField”,name:”unblockUserFromOrganization”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”clientMutationId”,storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”unblockUserFromOrganizationMutation”,selections:t},params:{id:”3bb2b18124f6d9e474f1e4d67f4d648c”,metadata:{},name:”unblockUserFromOrganizationMutation”,operationKind:”mutation”,text:null}};u.hash=”05b84828fae0f7858c1ccd7347bfbb3e”;let c=e=>e.onUnblock?(0,i.jsx)(p,{…e}):(0,i.jsx)(m,{…e}),m=({contentAuthor:e,organization:l,onClose:a,contentId:n})=>{let t=(0,o.useRelayEnvironment)(),c=(0,r.useCallback)(i=>{“confirm”===i&&function({environment:e,input:{organizationId:l,unblockedUserId:a},onError:n,onCompleted:t}){(0,o.commitMutation)(e,{mutation:u,variables:{input:{organizationId:l,unblockedUserId:a}},onError:e=>n&&n(e),onCompleted:()=>{t?.()}})}({environment:t,input:{unblockedUserId:e.id,organizationId:l.id},onCompleted:()=>(0,d.commitLocalUpdate)(t,e=>{let l=e.get(n);l?.setValue(!0,”pendingUnblock”),l?.setValue(!1,”pendingBlock”)})}),a()},[a,t,e.id,l.id,n]);return(0,i.jsxs)(s.K,{title:`Unblock ${e.login} from ${l.login}`,confirmButtonContent:”Unblock user”,confirmButtonType:”danger”,onClose:c,children:[“Are you sure you want to unblock “,(0,i.jsx)(“strong”,{children:e.login}),” from “,(0,i.jsx)(“strong”,{children:l.login}),”?”]})},p=({contentAuthor:e,organization:l,onClose:a,onUnblock:n})=>{let t=(0,r.useCallback)(t=>{“confirm”===t&&n?.(l.login,e.login),a()},[a,n,l.login,e.login]);return(0,i.jsxs)(s.K,{title:`Unblock ${e.login} from ${l.login}`,confirmButtonContent:”Unblock user”,confirmButtonType:”danger”,onClose:t,children:[“Are you sure you want to unblock “,(0,i.jsx)(“strong”,{children:e.login}),” from “,(0,i.jsx)(“strong”,{children:l.login}),”?”]})};try{c.displayName||(c.displayName=”UnblockUserFromOrgDialog”)}catch{}try{m.displayName||(m.displayName=”UnblockUserFromOrgDialogWithRelay”)}catch{}try{p.displayName||(p.displayName=”UnblockUserFromOrgDialogWithoutRelay”)}catch{}},14709:(e,l,a)=>{a.d(l,{N:()=>o,z:()=>d});var n,t=a(74848),i=a(14307),s=a(38621),r=a(12683);function o(e){return”TEXT”===e?s.TypographyIcon:”SINGLE_SELECT”===e?s.SingleSelectIcon:”DATE”===e?s.CalendarIcon:”NUMBER”===e?s.NumberIcon:void 0}let d=e=>function(){let l=i.i4.find(l=>l===e),{bg:a,accent:n}=(0,i.Wk)(l);return(0,t.jsx)(r.az,{sx:{bg:a,borderColor:n,borderWidth:2,borderStyle:”solid”,width:12,height:12,borderRadius:8,flexShrink:0}})};try{(n=IssueSingleSelectFieldPickerItemLeadingVisual).displayName||(n.displayName=”IssueSingleSelectFieldPickerItemLeadingVisual”)}catch{}},14969:(e,l,a)=>{a.d(l,{_:()=>S});var n,t,i=a(74848),s=a(43258),r=a(84268),o=a(94236),d=a(5524),u=a(21373),c=a(56149),m=a(15837),p=a(86877),g=a(33989),y=a(57387),h=a(96540),k=a(18312);let f={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”submitAbuseReportMutation”,selections:t=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”SubmitAbuseReportPayload”,kind:”LinkedField”,name:”submitAbuseReport”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”clientMutationId”,storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”submitAbuseReportMutation”,selections:t},params:{id:”0603fe0f6dabc68adea31e484c57deb7″,metadata:{},name:”submitAbuseReportMutation”,operationKind:”mutation”,text:null}};f.hash=”8b252221b8eab001809aa2a2d583cb84″;let b=”ReportContentDialog-module__ReportContentContainer–N0pcI”,F=”ReportContentDialog-module__ReportContentHelpText–z0X7C”,I=”ReportContentDialog-module__ReportContentSubmitButton–r7_yG”,S=({owner:e,ownerUrl:l,reportUrl:a,contentId:n,onClose:t,contentType:S=”content”})=>{let v=(0,k.useRelayEnvironment)(),{addToast:x}=(0,s.Y6)(),[C,j]=(0,h.useState)(“Choose a reason”),[T,_]=(0,h.useState)(!1),[N,K]=(0,h.useState)(“admins”),L=(0,h.useCallback)(()=>{var e;_(!0),function({environment:e,input:{reportedContentId:l,reason:a},onError:n,onCompleted:t}){(0,k.commitMutation)(e,{mutation:f,variables:{input:{reportedContent:l,reason:a}},onError:e=>n&&n(e),onCompleted:()=>t&&t()})}({environment:v,input:{reportedContentId:n,reason:”Choose a reason”===(e=C)?”UNSPECIFIED”:e},onError(e){x({type:”error”,message:`Unable to submit report: ${e}`}),_(!1)},onCompleted(){x({type:”success”,message:”Report submitted”}),_(!1),t()}})},[x,n,v,t,C]),A=(0,i.jsxs)(“div”,{className:b,children:[(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(“p”,{children:[(0,i.jsxs)(“span”,{children:[“This “,S,” violates “]}),(0,i.jsx)(r.A,{inline:!0,href:l,children:`@${e}’s`}),(0,i.jsx)(“span”,{children:” Code of Conduct and should be submitted to the maintainers of this repository for review.”})]}),(0,i.jsx)(“p”,{children:”This report, as well as your username as the reporter, will be viewable by all admins of this repository.”}),(0,i.jsxs)(“p”,{children:[“Choose a reason for reporting this “,S]})]}),(0,i.jsx)(“div”,{className:”ReportContentDialog-module__ReportContentSpacing–CM9Pl”,children:(0,i.jsxs)(o.W,{children:[(0,i.jsx)(o.W.Button,{children:C}),(0,i.jsx)(o.W.Overlay,{children:(0,i.jsxs)(d.l,{children:[(0,i.jsx)(d.l.Item,{onSelect:()=>j(“ABUSE”),children:”Abuse”}),(0,i.jsx)(d.l.Item,{onSelect:()=>j(“SPAM”),children:”Spam”}),(0,i.jsx)(d.l.Item,{onSelect:()=>j(“OFF_TOPIC”),children:”Off Topic”})]})})]})}),(0,i.jsxs)(“div”,{className:”ReportContentDialog-module__ReportContentTopMargin–f_wU_”,children:[(0,i.jsxs)(“div”,{className:F,children:[(0,i.jsx)(“span”,{children:”Learn more about “}),(0,i.jsx)(r.A,{href:”https://docs.github.com/articles/reporting-abuse-or-spam”,children:”requesting that maintainers moderate content.”})]}),(0,i.jsx)(u.Q,{variant:”danger”,onClick:()=>L(),disabled:T,className:I,children:”Report to repository admins”})]})]}),w=(0,i.jsxs)(“div”,{className:b,children:[(0,i.jsx)(“span”,{children:”Contact GitHub Support about this user’s spammy or abusive behavior.”}),(0,i.jsxs)(“div”,{className:”ReportContentDialog-module__ReportContentFooterSpacing–Eb8cV”,children:[(0,i.jsxs)(“div”,{className:F,children:[(0,i.jsx)(“span”,{children:”Learn more about “}),(0,i.jsx)(r.A,{href:”https://docs.github.com/articles/reporting-abuse-or-spam”,children:”reporting abuse to GitHub support”})]}),(0,i.jsx)(u.Q,{variant:”danger”,as:”a”,href:a,disabled:T,className:I,children:”Report abuse to GitHub support”})]})]});return(0,i.jsx)(c.ZL,{children:(0,i.jsx)(y.l,{title:`Report ${S}`,width:”xlarge”,height:”auto”,onClose:t,className:”ReportContentDialog-module__ReportContentDialog–WgQ4X”,children:(0,i.jsxs)(“div”,{className:”ReportContentDialog-module__ReportContentRadioContainer–hWsdC”,children:[(0,i.jsxs)(m.A,{name:”choiceGroup”,onChange:e=>{K(e)},children:[(0,i.jsxs)(m.A.Label,{className:”ReportContentDialog-module__ReportContentRadioLabel–V9lmm”,children:[“Where would you like to report this “,S,” to?”]}),(0,i.jsxs)(p.A,{children:[(0,i.jsx)(g.A,{value:”admins”,defaultChecked:!0}),(0,i.jsx)(p.A.Label,{children:”To repository admins”})]}),(0,i.jsxs)(p.A,{children:[(0,i.jsx)(g.A,{value:”support”}),(0,i.jsx)(p.A.Label,{children:”To GitHub support”})]})]}),”admins”===N&&A,”support”===N&&w]})})})};try{S.displayName||(S.displayName=”ReportContentDialog”)}catch{}},16642:(e,l,a)=>{a.d(l,{S:()=>n});let n={createIssueError:”Unable to create issue.”,unableToLoadSelectedTemplate:”Unable to selected template”}},16810:(e,l,a)=>{a.d(l,{w:()=>s});var n=a(74848),t=a(12683),i=a(34164);function s({children:e,emptyText:l,sectionHeader:a,sectionFooter:s,hideDivider:r,id:o,sx:d,className:u}){return(0,n.jsxs)(t.az,{“data-testid”:o??”sidebar-section”,sx:{marginBottom:2*!r,”:after”:r?void 0:{content:'””‘,position:”absolute”,height:”1px”,bottom:”-8px”,left:”8px”,right:”8px”,bg:”border.muted”},…d},className:(0,i.$)(“Section-module__SectionContainer–bIlEv”,u),children:[(0,n.jsxs)(“div”,{className:”Section-module__headerContentWrapper–OIm9m”,children:[a,l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(“span”,{className:”Section-module__emptyText–qZ0Bc”,children:l}),(0,n.jsx)(“div”,{className:”Section-module__hiddenChildrenContainer–X126P”,children:e})]})]}),!l&&(0,n.jsx)(“div”,{className:”Section-module__childrenContainer–bY_oH”,children:e}),s]})}try{s.displayName||(s.displayName=”Section”)}catch{}},17831:(e,l,a)=>{a.d(l,{s:()=>m,u:()=>p});var n=a(74848),t=a(17855),i=a(71315),s=a(40104),r=a(96540),o=a(79403);function d(e,l,a,n){if(!e)return{projectsToSet:[],milestoneToSet:null};let t=n?.repository?.owner.login===n?.selectedRepository?.owner.login,i=t&&n?.repository?.name===n?.selectedRepository?.name;return{projectsToSet:t&&l.length>0?l:[],milestoneToSet:i&&a?a:null}}var u=a(81724);let c=(0,r.createContext)(null);function m({optionConfig:e,preselectedData:l,children:a}){let{storageKeyPrefix:m,issueCreateArguments:p}=e,{issueTitle:g,issueBody:y}=o.tT.localTitleAndBodyStorageKeys,{issueLabels:h,issueAssignees:k,issueProjects:f,issueMilestone:b,issueIssueType:F,issueIssueFields:I}=o.tT.localStorageMetadataKeys,[S,v]=(0,r.useState)(l?.repository),[x,C]=(0,r.useState)(l?.template),[j,T]=(0,r.useState)(`${m}.${x?.fileName||u.$K}`),_=””;if(p?.initialValues?.discussion)_=p?.initialValues?.discussion.title;else if(p?.initialValues?.title)_=p?.initialValues?.title;else if(x){let e,l=(e=””,x?.data&&(e=x?.data.title||””),e),a=””;p?.initialValues?.appendTitleToTemplate&&(a=` ${p?.initialValues?.appendTitleToTemplate}`),_=[l,a].join(“”).trimStart()}else p?.initialValues?.appendTitleToTemplate&&(_=p?.initialValues?.appendTitleToTemplate);let[N,K,L]=(0,s.Fo)(g(j),_),A=””;if(p?.initialValues?.discussion)A=p?.initialValues?.discussion.formattedBody;else if(p?.initialValues?.body)A=p?.initialValues?.body;else{let e;x&&(e=””,x?.data&&(0,u.Al)(x?.data)&&(e=x?.data.body||””),A=e)}let[w,P,E]=(0,s.Fo)(y(j),A),R=[];if(p?.initialValues?.discussion)R=p?.initialValues?.discussion?.labels||[];else if(p?.initialValues?.labels)R=p?.initialValues?.labels;else{let e;x&&(e=[],x?.data&&(e=x?.data.labels?.edges?.flatMap(e=>e?.node?[e?.node]:[])||[]),R=e)}let[D,V,M]=(0,s.Fo)(h(j),R),O=[];if(p?.initialValues?.assignees)O=p?.initialValues?.assignees;else{let e;x&&(e=[],x?.data&&(e=x?.data.assignees?.edges?.flatMap(e=>e?.node?[e?.node]:[])||[]),O=e)}let[B,$,U]=(0,s.Fo)(k(j),O),H=(0,r.useMemo)(()=>p?.initialValues?.projects??[],[p?.initialValues?.projects]),q=function(e){let l,{template:a,projects:n=[],isParentInheritance:t=!1}=e;if(!t&&n.length>0)return n;let i=a?(l=[],a?.data&&(0,u.GQ)(a?.data)&&(l=a.data.projects?.edges?.flatMap(e=>e?.node?[e.node]:[])||[]),l):[];return i.length>0?i:n}({template:x,projects:p?.initialValues?.projects??[],isParentInheritance:!!p?.parentIssue}),[G,W,z]=(0,s.Fo)(f(j),q),Q=(0,r.useMemo)(()=>p?.initialValues?.milestone??null,[p?.initialValues?.milestone]),Y=(0,r.useMemo)(()=>Q&&l?.parentIssue?d(!0,[],Q,{repository:l?.repository,selectedRepository:S}).milestoneToSet:Q,[Q,l?.parentIssue,l?.repository,S]),[X,Z,J]=(0,s.Fo)(b(j),Y),ee=null;if(p?.initialValues?.type)ee=p?.initialValues?.type;else{let e;x&&(e=null,x?.data&&((0,u.GQ)(x?.data)||(0,u.Al)(x?.data))&&(e=x?.data.type||null),ee=e)}let[el,ea,en]=(0,s.Fo)(F(j),ee),[et,ei]=(0,s.Fo)(I(j),[]),[es,er]=(0,r.useState)(!1),[eo,ed]=(0,r.useState)(null),[eu,ec]=(0,r.useState)(N),[em,ep]=(0,r.useState)(w),eg=(0,r.useRef)(B);(0,r.useEffect)(()=>{eg.current=B},[B]);let ey=(0,r.useCallback)(e=>{K(e),ec(e)},[K,ec]),eh=(0,r.useCallback)(e=>{P(e),ep(e)},[P,ep]),ek=(0,r.useCallback)(l=>{let a=eg.current.some(e=>(0,t.v)(e.login)),n=l.some(e=>(0,t.v)(e.login));$(l),e.disableCopilotAssignmentModal||a||!n||er(!0)},[$,e.disableCopilotAssignmentModal]),ef=(0,r.useCallback)(e=>{ek([]),V([]),ei([]);let a=d(!!l?.parentIssue,H,Q,e);W(a.projectsToSet),Z(a.milestoneToSet)},[ek,V,ei,l?.parentIssue,Q,H,W,Z]),eb=(0,r.useCallback)(()=>{(0,s.D6)((0,o.wK)(j))},[j]),eF=(0,r.useCallback)(()=>{(0,s.D6)((0,o.Zf)(j))},[j]),eI=(0,r.useCallback)(()=>{(0,s.D6)((0,o.bV)(j))},[j]),eS=(0,r.useCallback)(()=>{(0,s.D6)([`config.${o.tT.localStorageKeys.issueCreateMore(m)}`])},[m]),ev=(0,r.useCallback)(()=>{K(“”),P(“”),ec(“”),ep(“”)},[K,P,ec,ep]),ex=i.fV?.origin??””,eC=S?.nameWithOwner??””,ej=(0,r.useMemo)(()=>`${ex}/${eC}`,[ex,eC]),eT=l?.parentIssue,[e_,eN]=(0,r.useState)(eT&&”title”in eT?eT:null),eK=e_??l?.parentIssue??null,eL=eK?.id??null,eA=(0,r.useCallback)(e=>{C(e),T(`${m}.${e?.fileName||u.$K}`)},[m]),ew=(0,r.useMemo)(()=>({reinitTitle:L,reinitBody:E,reinitAssignees:U,reinitLabels:M,reinitProjects:z,reinitMilestone:J,reinitIssueType:en,usedStorageKeyPrefix:j,clearSessionData:eb,clearSessionMetadata:eF,clearSessionTitleAndBody:eI,clearSessionCreateMore:eS,resetMetadata:ef,clearTitleAndBody:ev,setNewTitle:ey,setNewBody:eh,originalTitle:eu,setOriginalTitle:ec,originalBody:em,setOriginalBody:ep,title:N,setTitle:K,body:w,setBody:P,repository:S,setRepository:v,repositoryAbsolutePath:ej,template:x,setTemplate:eA,preselectedRepository:l?.repository,preselectedTemplate:l?.template,labels:D,setLabels:V,assignees:B,setAssignees:ek,projects:G,setProjects:W,milestone:X,setMilestone:Z,issueType:el,setIssueType:ea,issueFields:et,setIssueFields:ei,parentIssue:e_,setParentIssue:eN,parentIssueId:eL,isCopilotAssignmentDialogOpen:es,setIsCopilotAssignmentDialogOpen:er,copilotAssignmentAttributes:eo,setCopilotAssignmentAttributes:ed}),[L,E,U,M,z,J,en,j,eb,eF,eI,eS,ef,ev,ey,eh,eu,em,N,K,w,P,S,ej,x,eA,l?.repository,l?.template,D,V,B,ek,G,W,X,Z,el,ea,et,ei,e_,eL,es,eo]);return(0,n.jsx)(c.Provider,{value:ew,children:a})}let p=()=>{let e=(0,r.useContext)(c);if(!e)throw Error(“useIssueCreateDataContext must be used within a IssueCreateDataContextProvider.”);return e};try{c.displayName||(c.displayName=”IssueCreateDataContext”)}catch{}try{m.displayName||(m.displayName=”IssueCreateDataContextProvider”)}catch{}},17855:(e,l,a)=>{a.d(l,{v:()=>n});function n(e){let l=e.toLocaleLowerCase();return”copilot-swe-agent”===l||”copilot”===l}},18559:(e,l,a)=>{a.d(l,{p:()=>C});var n=a(74848),t=a(33643),i=a(21067),s=a(40260),r=a(69599),o=a(59464),d=a(50167),u=a(71315),c=a(38621),m=a(26108),p=a(94236),g=a(5524),y=a(96540),h=a(46173),k=a(25641),f=a(30459),b=a(20459);let F=”CommentActions-module__CommentActionsIconButton–EOXv7″;var I=a(59123),S=a(4551),v=a(14969),x=a(14406);function C({comment:e,commentAuthorLogin:l,editComment:a,onReplySelect:C,isMinimized:j=!1,isReply:T=!1,navigate:_,onBlock:N,onUnblock:K,onMinimize:L,hideComment:A,unhideComment:w,deleteComment:P,onSuccessfulBlock:E,commentRef:R,isDisabled:D=!1,showCopilotMenuItem:V=!1}){let[M,O]=(0,y.useState)(!1),[B,$]=(0,y.useState)(null),[U,H]=(0,y.useState)(!1),[q,G]=(0,y.useState)(!1),[W,z]=(0,y.useState)(!1),[Q,Y]=(0,y.useState)(!1),{updateIssueWithCopilot:X}=function(){let{sendAnalyticsEvent:e}=(0,f.s)();return{updateIssueWithCopilot:(0,y.useCallback)(l=>{let a=l.url.match(/\/issues\/(\d+)/),n=a?a[1]:””;if(!n)return;e(“analytics.click”,”COPILOT_COMMENT_UPDATE_ISSUE_BUTTON”,{commentId:l.id,issueNumber:n,repoNWO:`${l.repository.owner.login}/${l.repository.name}`});let t=new URLSearchParams({prompt:`Update the issue body in @${l.repository.owner.login}/${l.repository.name}/issues/${n} by taking into account the following feedback: ${l.body}`});window.open(`${k.Jz}?${t.toString()}`,”_blank”)},[e])}}(),Z=V&&e.viewerCanUpdate,J=(0,y.useCallback)(a=>`${a.replace(/^(?!>)/gm,”> “)} _Originally posted by @${l} in [${e.referenceText}](${e.url})_`,[e.referenceText,l,e.url]),ee=e=>{(0,s.D)(e)},el=(0,y.useCallback)(()=>{X(e)},[X,e]),ea=!!e.pendingMinimizeReason||e.isHidden,en=(0,y.useMemo)(()=>ea&&!j&&e.viewerCanSeeMinimizeButton?(0,n.jsx)(m.K,{“aria-label”:”hide comment”,variant:”invisible”,onClick:()=>L?.(!0),icon:c.FoldIcon,size:”small”,className:F}):null,[ea,j,L,e.viewerCanSeeMinimizeButton]),et=(0,y.useMemo)(()=>ea&&j&&e.viewerCanSeeUnminimizeButton?(0,n.jsx)(m.K,{“aria-label”:”show comment”,variant:”invisible”,onClick:()=>L?.(!1),icon:c.UnfoldIcon,size:”small”,className:F}):null,[ea,j,L,e.viewerCanSeeUnminimizeButton]),ei=(0,y.useMemo)(()=>{if(!e.author)return;let a=u.cg?.location.origin;if(!a)return;let n=`content_url=${encodeURIComponent(e.url)}&report=${l}+(user)`;return`${a}/contact/report-content?${n}`},[l,e.author,e.url]),es=(e.viewerCanReport||e.viewerCanReportToMaintainer)&&e.author,er=function(e){let{viewerCanBlockFromOrg:l,pendingBlock:a,hasAuthor:n,pendingUnblock:t}=e;return!!n&&!a&&(!!t||l)}({viewerCanBlockFromOrg:e.viewerCanBlockFromOrg,pendingBlock:!!e.pendingBlock,pendingUnblock:!!e.pendingUnblock,hasAuthor:!!e.author}),eo=function(e){let{viewerCanUnblockFromOrg:l,pendingBlock:a,hasAuthor:n,pendingUnblock:t}=e;return!!n&&!t&&(!!a||l)}({viewerCanUnblockFromOrg:e.viewerCanUnblockFromOrg,pendingBlock:!!e.pendingBlock,pendingUnblock:!!e.pendingUnblock,hasAuthor:!!e.author}),ed=”boolean”!=typeof e.viewerCanReferenceInIssue||e.viewerCanReferenceInIssue,eu=”boolean”!=typeof e.viewerCanQuoteReply||e.viewerCanQuoteReply,ec={isCreateDialogOpen:U,setIsCreateDialogOpen:H,navigate:_,optionConfig:{storageKeyPrefix:e.id,defaultDisplayMode:d.q.IssueCreation,scopedOrganization:e.repository.owner.login,issueCreateArguments:{initialValues:{body:J(e.body)},repository:{name:e.repository.name,owner:e.repository.owner.login}}}},em=(0,t.C)(new Date(e.createdAt)),ep=`Actions for ${l}’s ${T?”reply”:”comment”}, ${em}`;return(0,n.jsxs)(n.Fragment,{children:[U&&(0,n.jsx)(o.or,{…ec}),q&&(0,n.jsx)(v._,{owner:e.repository.owner.login,ownerUrl:e.repository.owner.url,reportUrl:ei,contentId:e.id,onClose:()=>G(!1),contentType:”comment”}),W&&e.author&&(0,n.jsx)(I.r5,{onBlock:N,onClose:()=>{E?.(),z(!1)},organization:e.repository.owner,contentId:e.id,contentAuthor:e.author,contentUrl:e.url}),Q&&e.author&&(0,n.jsx)(x.o,{onClose:()=>Y(!1),onUnblock:K,organization:e.repository.owner,contentAuthor:e.author,contentId:e.id}),en,et,(0,n.jsxs)(p.W,{open:M,onOpenChange:e=>{if(e){let e=window.getSelection();e&&e.anchorNode?$({anchorNode:e.anchorNode,range:e.getRangeAt(0)}):$(null)}O(e)},children:[(0,n.jsx)(p.W.Anchor,{“data-testid”:h.Y.commentHeaderHamburger,children:(0,n.jsx)(m.K,{disabled:D,size:”small”,icon:c.KebabHorizontalIcon,variant:”invisible”,”aria-label”:ep,tooltipDirection:”n”,description:”More actions”,className:F})}),(0,n.jsx)(p.W.Overlay,{children:(0,n.jsxs)(g.l,{“data-testid”:h.Y.commentHeaderHamburgerOpen,children:[(0,r.G7)(“copilot_comment_update_issue_body”)&&Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.l.Item,{onSelect:el,children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.CopilotIcon,{})}),”Update issue”,(0,n.jsx)(g.l.TrailingVisual,{children:(0,n.jsx)(c.ArrowUpRightIcon,{})})]}),(0,n.jsx)(g.l.Divider,{})]}),(0,n.jsxs)(g.l.Item,{inactiveText:””===e.url?”Comment must have a URL to be copied”:void 0,onSelect:()=>ee(e.url),children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.LinkIcon,{})}),”Copy link”]}),(0,r.G7)(“comment_viewer_copy_raw_markdown”)?(0,n.jsxs)(g.l.Item,{inactiveText:””===e.body?”Comment must have content to be copied”:void 0,onSelect:()=>ee(e.bodyForClipboard||e.body),children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.MarkdownIcon,{})}),”Copy Markdown”]}):null,(0,i.M3)()&&(0,n.jsxs)(n.Fragment,{children:[eu&&(0,n.jsxs)(g.l.Item,{onSelect:()=>{C((0,b.E)(R?.current,B,e.body))},children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.QuoteIcon,{})}),”Quote reply”]}),ed&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.l.Divider,{}),(0,n.jsxs)(g.l.Item,{“data-testid”:h.Y.commentMenuRefComment,onSelect:()=>H(!0),className:”CommentActions-module__CommentActionsListItem–rBMCI”,children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.IssueOpenedIcon,{})}),”Reference in a new issue”]})]})]}),(e.viewerCanUpdate||e.viewerCanMinimize||e.viewerCanDelete)&&(0,n.jsx)(g.l.Divider,{}),e.viewerCanUpdate&&(0,n.jsxs)(g.l.Item,{onSelect:()=>a(),children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.PencilIcon,{})}),”Edit”]}),e.viewerCanMinimize&&!ea&&(0,n.jsxs)(p.W,{children:[(0,n.jsx)(p.W.Anchor,{children:(0,n.jsxs)(g.l.Item,{children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.EyeClosedIcon,{})}),”Hide”]})}),(0,n.jsx)(p.W.Overlay,{children:(0,n.jsx)(g.l,{children:(0,n.jsx)(S.w,{onSelect:A,setMenuOpen:O})})})]}),e.viewerCanUnminimize&&ea&&(0,n.jsxs)(g.l.Item,{onSelect:w,children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.EyeIcon,{})}),” “,”Unhide”]}),e.viewerCanDelete&&(0,n.jsxs)(g.l.Item,{variant:”danger”,onSelect:P,children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.TrashIcon,{})}),”Delete”]}),es&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.l.Divider,{}),e.viewerCanReportToMaintainer?(0,n.jsxs)(g.l.Item,{onSelect:()=>{G(!0)},children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.ReportIcon,{})}),”Report content”]}):(0,n.jsxs)(g.l.LinkItem,{href:ei,target:”_blank”,children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.ReportIcon,{})}),”Report content”]})]}),(er||eo)&&!es&&(0,n.jsx)(g.l.Divider,{}),er&&(0,n.jsxs)(g.l.Item,{onSelect:()=>z(!0),children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.BlockedIcon,{})}),”Block user”]}),eo&&(0,n.jsxs)(g.l.Item,{onSelect:()=>Y(!0),children:[(0,n.jsx)(g.l.LeadingVisual,{children:(0,n.jsx)(c.BlockedIcon,{})}),”Unblock user”]})]})})]})]})}try{C.displayName||(C.displayName=”CommentActions”)}catch{}},18815:(e,l,a)=>{a.d(l,{AE:()=>t,En:()=>n,ek:()=>o,gO:()=>r,jX:()=>i,u4:()=>s});let n=25,t=50,i=64,s=256,r=[“issue”,”pr”,”pull-request”,”pull request”],o=10},20177:(e,l,a)=>{a.d(l,{Y:()=>n});let n={assignees:”issue-assignees”,issueLabels:”issue-labels”,milestoneContainer:”issue-milestone-container”,milestoneProgressIcon:”issue-milestone-progress-bar”,typeContainer:”issue-type-container”}},20403:(e,l,a)=>{a.d(l,{S:()=>t});var n=a(25407);function t(e,{isCopilot:l=!1,tracking:a=!0,isAgent:s=!1}={}){return l||s?function(e,{tracking:l=!0}={}){let a={“data-hovercard-url”:(0,n._nf)({bot_slug:e}),”data-hovercard-type”:”copilot”};return l?i(a):a}(e,{tracking:a}):function(e,{tracking:l=!0}={}){let a={“data-hovercard-url”:(0,n.dCN)({owner:e}),”data-hovercard-type”:”user”};return l?i(a):a}(e,{tracking:a})}function i(e){return{…e,”octo-click”:”hovercard-link-click”,”octo-dimensions”:”link_type:self”}}},20459:(e,l,a)=>{a.d(l,{E:()=>o,s:()=>i});var n=a(66661),t=a(96760);function i(e){if(!e)return e;let l=e.split(` `),a=””;for(let e of l)a=a.concat(`> ${e} `);return a}let s=e=>”none”===e.style.display||”hidden”===e.style.visibility||”true”===e.ariaHidden,r=e=>{let l=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,{acceptNode:()=>NodeFilter.FILTER_ACCEPT}),a=l.nextNode();for(;a;)a instanceof HTMLElement&&s(a)&&a.remove(),a=l.nextNode()};function o(e,l,a){if(!e)return;let i=e.querySelector((0,t.Sp)(t.mU.markdownBody)),s=new n.g(“”,r);l&&i.contains(l.anchorNode)&&i.contains(l.range.startContainer)&&i.contains(l.range.endContainer)&&!l.range.collapsed&&””!==l.range.toString().trim()?s.range=l.range:s.select(i),a&&(s.processSelectionTextFn=e=>{for(let l of a.matchAll(/(!\[[^[]+?\]\([^()]+\/)([\w\d-]+)(.+)/g)){let a=l[1],n=l[2],t=l[3];if(!a||!n||!t)continue;let i=`${a}${n}${t.split(“)”)[0]})`,s=e.split(n);if(s.length<2)continue;let r=s[0]?.match(/!\[[^[]+$/),o=s[1]?.split(")")[0],d=`${r}${n}${o})`;e=e.replaceAll(d,i)}return e});let o=(0,t.tD)();if(o){let e=o?.querySelector("textarea"),l=o?.querySelector("button");if(e)return s.insert(e),e.value;if(l)return s.quotedText}}},20538:(e,l,a)=>{a.d(l,{B:()=>q});var n=a(74848),t=a(16522),i=a(66990),s=a(46642),r=a(86877),o=a(10576),d=a(26108),u=a(11680),c=a(21373),m=a(79431),p=a(96540),g=a(38621),y=a(63422),h=a(79184),k=a(51213),f=a(47723),b=a(97286),F=a(96379),I=a(25407);async function S(e){try{let[l,a]=e.split(“/”);if(!l||!a)return null;let n=(0,I.SHX)({owner:l,repo:a}),t=await (0,F.lS)(n);if(t.ok){let e=await t.json();return e?.payload.repo.defaultBranch||null}return null}catch{return null}}var v=a(92352);let x=”CopilotAssignmentForm-module__formControl–Y9Z73″;var C=a(83494),j=a(14496),T=a(69599),_=a(73678),N=a(35247),K=a(78223),L=a(86101),A=a(25811);function w(e){var l;let a,F,I,w,P,E,R,D,V,M,O,B,$,U,H,q,G,W,z,Q,Y,X,Z,J,ee,el,ea,en,et=(0,t.c)(84),{ref:ei,initialRepo:es,onSubmit:er,onCancel:eo,isSubmitting:ed,textareaRef:eu,textareaAriaDescribedBy:ec}=e,em=void 0!==ed&&ed,{plan:ep}=(0,h.xR)(),[eg,ey]=(0,p.useState)(“”),[eh,ek]=(0,p.useState)(void 0),[ef,eb]=(0,p.useState)(void 0),[eF,eI]=(0,p.useState)(void 0),[eS,ev]=(0,A.s)(),{data:ex}=(0,L.B)(eS.topLevelAgentId?Number(eS.topLevelAgentId):null),eC=`copilot-assignment-ref-selector-${(0,p.useId)()}`,ej=(0,p.useRef)(null),eT=eu||ej,e_=`${es.owner.login}/${es.name}`,eN=(l=es.owner.login,(en=(0,t.c)(3))[0]!==l||en[1]!==e_?(ea=e=>(0,v.P)(e,l,e_),en[0]=l,en[1]=e_,en[2]=ea):ea=en[2],ea),{selectedRepo:eK,selectedBranch:eL,setSelectedBranch:eA,isLoadingBranch:ew,initialRepoApiMetadata:eP,handleRepoSelect:eE,handleReposLoaded:eR}=function(e){let l,a,n,i,s,r,o,d,u,c,m,g,y,h,k,f,F=(0,t.c)(32);F[0]!==e.owner.login?(l={login:e.owner.login},F[0]=e.owner.login,F[1]=l):l=F[1],F[2]!==e.defaultBranch||F[3]!==e.name||F[4]!==l?(a={name:e.name,defaultBranch:e.defaultBranch,owner:l},F[2]=e.defaultBranch,F[3]=e.name,F[4]=l,F[5]=a):a=F[5];let I=a,[v,x]=(0,p.useState)(null),[C,j]=(0,p.useState)(“”),[T,_]=(0,p.useState)(!1),[N,K]=(0,p.useState)(null);F[6]!==N||F[7]!==I.name||F[8]!==I.owner.login?(n=e=>{if(N)return;let l=`${I.owner.login}/${I.name}`,a=e.find(e=>e.nameWithOwner===l);if(!a)return;let n={private:a.private,isEmpty:a.isEmpty,graphQLId:a.graphQLId};K(n),x(e=>e?.nameWithOwner===l?{…e,…n}:e)},F[6]=N,F[7]=I.name,F[8]=I.owner.login,F[9]=n):n=F[9];let L=n,A=`${I.owner.login}/${I.name}`,w=!I.defaultBranch,{data:P,isLoading:E}=(k=(0,t.c)(7),f=void 0===w||w,k[0]!==A?(g=[“repository-default-branch”,A],y=()=>S(A??””),k[0]=A,k[1]=g,k[2]=y):(g=k[1],y=k[2]),k[3]!==f||k[4]!==g||k[5]!==y?(h={queryKey:g,queryFn:y,enabled:f,staleTime:3e5,gcTime:6e5,retry:1},k[3]=f,k[4]=g,k[5]=y,k[6]=h):h=k[6],(0,b.I)(h));F[10]!==v||F[11]!==I.defaultBranch||F[12]!==I.name||F[13]!==I.owner.login?(i=()=>{if(v)return;let e=`${I.owner.login}/${I.name}`;x({owner:I.owner.login,name:e,nameOnly:I.name,nameWithOwner:e,enabled:!0,defaultBranch:I.defaultBranch||””,private:!1,graphQLId:””,isEmpty:!1}),I.defaultBranch&&j(I.defaultBranch)},F[10]=v,F[11]=I.defaultBranch,F[12]=I.name,F[13]=I.owner.login,F[14]=i):i=F[14],F[15]!==v||F[16]!==I?(s=[I,v],F[15]=v,F[16]=I,F[17]=s):s=F[17],(0,p.useEffect)(i,s),F[18]!==E?(r=()=>{_(E)},o=[E],F[18]=E,F[19]=r,F[20]=o):(r=F[19],o=F[20]),(0,p.useEffect)(r,o),F[21]!==P||F[22]!==I.defaultBranch?(d=()=>{P&&!I.defaultBranch&&(j(P),x(e=>e?{…e,defaultBranch:P}:e))},u=[P,I.defaultBranch],F[21]=P,F[22]=I.defaultBranch,F[23]=d,F[24]=u):(d=F[23],u=F[24]),(0,p.useEffect)(d,u),F[25]===Symbol.for(“react.memo_cache_sentinel”)?(c=e=>{e&&(_(!1),x(e),j(e.defaultBranch))},F[25]=c):c=F[25];let R=c;return F[26]!==L||F[27]!==N||F[28]!==T||F[29]!==C||F[30]!==v?(m={selectedRepo:v,selectedBranch:C,isLoadingBranch:T,initialRepoApiMetadata:N,setSelectedBranch:j,handleRepoSelect:R,handleReposLoaded:L},F[26]=L,F[27]=N,F[28]=T,F[29]=C,F[30]=v,F[31]=m):m=F[31],m}(es);et[0]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,T.G7)(“copilot_swe_agent_use_subagents”),et[0]=a):a=et[0];let eD=a;e:{if(!eK){F=null;break e}let e=!eK.private,l=es.owner.login!==eK.owner;if(eK.isEmpty){F=”The selected repo has no commits or branches so there’s no valid base branch to create a PR against.”;break e}if(l){F=”You’re assigning Copilot coding agent to open a pull request in a different organization. The issue description will be visible to users outside this repository.”;break e}if(eP?.private&&e){F=”You’re assigning Copilot coding agent to open a pull request in a public repository. The issue description will be visible to users outside this repository.”;break e}F=null}let eV=F;et[1]!==eE||et[2]!==em?(I=e=>{e&&!em&&(eE(e),eb(void 0))},et[1]=eE,et[2]=em,et[3]=I):I=et[3];let eM=I;et[4]!==eg||et[5]!==em||et[6]!==er||et[7]!==eS||et[8]!==eL||et[9]!==eF||et[10]!==eK?(w=async()=>{if(!em){if(ek(void 0),eb(void 0),eg.length>f.R2)return void ek(`Instructions must be ${f.R2.toLocaleString()} characters or fewer. Current length: ${eg.length.toLocaleString()} characters.`);if(!eK||!eL)return void eb(“Please select a repository and branch.”);if(eK.isEmpty)return void eb(“Please select a valid base branch.”);await er(eg,eK,eL,eS,eF)}},et[4]=eg,et[5]=em,et[6]=er,et[7]=eS,et[8]=eL,et[9]=eF,et[10]=eK,et[11]=w):w=et[11];let eO=w;et[12]!==eO?(P=()=>({submit:eO}),E=[eO],et[12]=eO,et[13]=P,et[14]=E):(P=et[13],E=et[14]),(0,p.useImperativeHandle)(ei,P,E);let eB=eK?.isEmpty||em||!eK||!eL,e$=em||ew||!eK?.defaultBranch||eK?.isEmpty;et[15]===Symbol.for(“react.memo_cache_sentinel”)?(R=(0,n.jsx)(r.A.Label,{children:f.nX}),et[15]=R):R=et[15],et[16]===Symbol.for(“react.memo_cache_sentinel”)?(D=e=>ey(e.target.value),et[16]=D):D=et[16],et[17]!==eg||et[18]!==eT||et[19]!==ec?(V=(0,n.jsx)(o.Ay,{ref:eT,className:”CopilotAssignmentForm-module__textarea–wCaxl”,placeholder:f.qB,value:eg,onChange:D,rows:2,resize:”vertical”,”aria-describedby”:ec,maxLength:f.R2}),et[17]=eg,et[18]=eT,et[19]=ec,et[20]=V):V=et[20],et[21]!==eh?(M=eh&&(0,n.jsx)(r.A.Validation,{variant:”error”,children:eh}),et[21]=eh,et[22]=M):M=et[22],et[23]!==em||et[24]!==V||et[25]!==M?(O=(0,n.jsx)(“div”,{className:”CopilotAssignmentForm-module__textareaContainer–Vki_J”,children:(0,n.jsxs)(r.A,{disabled:em,children:[R,V,M]})}),et[23]=em,et[24]=V,et[25]=M,et[26]=O):O=et[26],et[27]===Symbol.for(“react.memo_cache_sentinel”)?(B=(0,n.jsx)(r.A.Label,{visuallyHidden:!0,children:f.De}),et[27]=B):B=et[27];let eU=eK||void 0,eH=eK?.nameWithOwner||”Select repository”,eq=`Repository: ${eK?.nameWithOwner||”Select repository”}`;return et[28]!==em||et[29]!==eq?($={“aria-label”:eq,disabled:em},et[28]=em,et[29]=eq,et[30]=$):$=et[30],et[31]!==eN||et[32]!==eM||et[33]!==eR||et[34]!==eU||et[35]!==eH||et[36]!==$?(U=(0,n.jsxs)(r.A,{className:x,children:[B,(0,n.jsx)(s.P,{repositoryLoader:eN,selectionVariant:”single”,selectAllOption:!1,onSelect:eM,onLoad:eR,currentSelection:eU,buttonText:eH,width:”large”,truncateMaxWidth:250,additionalButtonProps:$})]}),et[31]=eN,et[32]=eM,et[33]=eR,et[34]=eU,et[35]=eH,et[36]=$,et[37]=U):U=et[37],et[38]===Symbol.for(“react.memo_cache_sentinel”)?(H=(0,n.jsx)(r.A.Label,{visuallyHidden:!0,children:f.T6}),et[38]=H):H=et[38],et[39]!==eC||et[40]!==ew||et[41]!==em||et[42]!==e$||et[43]!==eL||et[44]!==eK||et[45]!==eA?(q=(0,n.jsxs)(r.A,{className:x,children:[H,eK||eL?(0,n.jsx)(i.PI,{useFocusZone:!0,cacheKey:eC,canCreate:!1,currentCommitish:eL||eK?.defaultBranch||””,defaultBranch:eK?.defaultBranch??eL,owner:eK?.owner||””,repo:eK?.nameOnly||””,types:[“branch”],selectedRefType:”branch”,closeOnSelect:!0,hideShowAll:!0,disabled:e$,actionListHeadingText:f.in,actionListDescription:f.vA,onSelectItem:e=>{em||eA(e)},renderAnchor:e=>(0,n.jsx)(y.L,{…e,icon:g.GitBranchIcon,selectedIcon:g.GitBranchCheckIcon,selected:eL!==eK?.defaultBranch,”aria-label”:eK?.isEmpty?”Branch: None available”:`Branch: ${ew?”Loading branch…”:eL||”Select branch”}`,”aria-labelledby”:void 0}),anchoredOverlayProps:{variant:{regular:”anchored”,narrow:”fullscreen”},height:”small”}}):(0,n.jsx)(d.K,{icon:g.GitBranchIcon,”aria-label”:”Loading branches\u2026″,disabled:!0})]}),et[39]=eC,et[40]=ew,et[41]=em,et[42]=e$,et[43]=eL,et[44]=eK,et[45]=eA,et[46]=q):q=et[46],et[47]!==em||et[48]!==eS||et[49]!==eL||et[50]!==eK||et[51]!==ev?(G=eD&&eK&&(0,n.jsxs)(r.A,{className:x,children:[(0,n.jsx)(r.A.Label,{visuallyHidden:!0,children:f.SF}),(0,n.jsx)(j.b,{repo:eK,branch:eL||eK.defaultBranch,selectedAgent:eS,onSelectAgent:e=>ev(e),iconOnly:!0,disabled:em})]}),et[47]=em,et[48]=eS,et[49]=eL,et[50]=eK,et[51]=ev,et[52]=G):G=et[52],et[53]!==ex?.slug||et[54]!==ep||et[55]!==eS||et[56]!==eF?(W=N.W.codingAgentModelSelection&&(N.W.codingAgentModelSelectionAllSkus||ep===k.UH.IndividualPro||ep===k.UH.IndividualProPlus)&&(0,K.CF)(eS,ex?.slug)&&(0,n.jsx)(“div”,{className:”CopilotAssignmentForm-module__modelPickerContainer–z4faA”,children:(0,n.jsxs)(r.A,{children:[(0,n.jsx)(r.A.Label,{visuallyHidden:!0,children:”Model”}),(0,n.jsx)(_.Y,{onUpdateModel:eI,selectedModelId:eF})]})}),et[53]=ex?.slug,et[54]=ep,et[55]=eS,et[56]=eF,et[57]=W):W=et[57],et[58]!==U||et[59]!==q||et[60]!==G||et[61]!==W?(z=(0,n.jsxs)(“div”,{className:”CopilotAssignmentForm-module__selectorsRow–LskTl”,children:[U,q,G,W]}),et[58]=U,et[59]=q,et[60]=G,et[61]=W,et[62]=z):z=et[62],et[63]!==eV?(Q=eV&&(0,n.jsx)(u.l,{variant:”warning”,title:”Warning”,hideTitle:!0,className:”CopilotAssignmentForm-module__warningBanner–xcQ1g”,children:eV}),et[63]=eV,et[64]=Q):Q=et[64],et[65]!==z||et[66]!==Q?(Y=(0,n.jsxs)(“div”,{className:”CopilotAssignmentForm-module__selectorsContainer–QsXMe”,children:[z,Q]}),et[65]=z,et[66]=Q,et[67]=Y):Y=et[67],et[68]!==ef?(X=ef&&(0,n.jsx)(m.v,{variant:”critical”,className:”CopilotAssignmentForm-module__branchValidation–GLQgi”,children:ef}),et[68]=ef,et[69]=X):X=et[69],et[70]!==em||et[71]!==eo?(Z=eo&&(0,n.jsx)(c.Q,{variant:”invisible”,onClick:eo,disabled:em,children:”Cancel”}),et[70]=em,et[71]=eo,et[72]=Z):Z=et[72],et[73]!==em||et[74]!==eB?(J=(0,n.jsx)(C.cQ,{commandId:”github:submit-form”,showKeybindingHint:!0,variant:”primary”,inactive:eB,loading:em,className:”CopilotAssignmentForm-module__assignButton–CzEjI”,children:”Assign”}),et[73]=em,et[74]=eB,et[75]=J):J=et[75],et[76]!==Z||et[77]!==J?(ee=(0,n.jsx)(“div”,{className:”CopilotAssignmentForm-module__buttonsContainer–ZpsdN”,children:(0,n.jsxs)(“div”,{className:”CopilotAssignmentForm-module__buttonsRow–TlL8P”,children:[Z,J]})}),et[76]=Z,et[77]=J,et[78]=ee):ee=et[78],et[79]!==O||et[80]!==Y||et[81]!==X||et[82]!==ee?(el=(0,n.jsxs)(“div”,{className:”CopilotAssignmentForm-module__formContainer–ncBDe”,children:[O,Y,X,ee]}),et[79]=O,et[80]=Y,et[81]=X,et[82]=ee,et[83]=el):el=et[83],el}try{w.displayName||(w.displayName=”CopilotAssignmentForm”)}catch{}var P=a(57387),E=a(26607),R=a(84268),D=a(61491),V=a(75908),M=a(82518),O=a(97189),B=a(4817),$=a(34295),U=a(79634);async function H(){let e=await (0,F.lS)(“/github-copilot/chat/entitlement”);if(!e.ok)throw Error(`Failed to retrieve Copilot chat entitlement (${e.status} on ${e.url})`);return await e.json()}function q({isOpen:e,onClose:l,repository:a,issueNumbers:i,onAssignmentComplete:s,returnFocusRef:r,onSubmit:o}){let[d,c]=(0,p.useState)(!1),[m,g]=(0,p.useState)(null),y=(0,p.useRef)(null),f=(0,p.useRef)(null),F=function(){let e,l,a,n=(0,t.c)(4),i=(0,U.X)(),s=i?.licenseType;n[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=[“copilot-chat”,”entitlement”],n[0]=e):e=n[0];let r=void 0===s;n[1]===Symbol.for(“react.memo_cache_sentinel”)?(l={licenseType:k.mF.Unlicensed},n[1]=l):l=n[1],n[2]!==r?(a={queryKey:e,queryFn:H,enabled:r,placeholderData:l,staleTime:3e5},n[2]=r,n[3]=a):a=n[3];let{data:o}=(0,b.I)(a);return s??o?.licenseType??k.mF.Unlicensed}(),I=(0,T.G7)(“agent_session_retry_fetch_capi_on_401″),[S,v]=(0,p.useState)(()=>i?.length??0),x=(0,p.useRef)(e);(0,p.useEffect)(()=>{e&&!x.current&&v(i?.length??0),x.current=e},[e,i]);let j=(0,p.useCallback)(()=>{I&&new $.l().removeLocalStorageAuthToken()},[I]),_=()=>{g(null),c(!1),l()},N=a.owner.login,K=a.name,L=S>1,A=(0,p.useCallback)(async(e,a,n,t,r)=>{if(!a)return;if(o&&a.graphQLId)return void o(a.graphQLId,n,e,t,r);if(!i||0===i.length)return;let d=[…i];c(!0),g(null);try{let i=await (0,D.J)(N,K,d,{instructions:e,targetRepo:a.nameWithOwner,targetBranch:n,customAgent:t?.subAgentSlug||void 0,agentId:t?.topLevelAgentId||void 0,model:r});if(j(),i.ok)await s?.(i.data?.copilot),l();else{let e=L?(0,V.Ah)(d,i.jobs):”Assignment failed”,l=(0,V.v0)(i,e);g(l)}}catch(e){g((0,V.VJ)(e,”Assignment”))}finally{c(!1)}},[i,N,K,s,l,L,o,j]),q=(0,p.useMemo)(()=>a?{name:a.name,defaultBranch:void 0,owner:{login:a.owner.login}}:null,[a]),G=(0,p.useCallback)(async()=>{!d&&f.current&&await f.current.submit()},[d]);if(!e)return null;let W=L?`Assign ${S} issues to Copilot`:”Assign Copilot to issue”,z=(0,M.Xl)()?”https://gh.io/copilot-issues-cross-repo-assign-staff-feedback”:”https://gh.io/copilot-issues-cross-repo-assign-feedback”;return(0,n.jsxs)(P.l,{onClose:_,width:”xlarge”,returnFocusRef:r,renderHeader:({dialogLabelId:e})=>(0,n.jsxs)(P.l.Header,{id:e,className:”CopilotAssignmentModal-module__header–sMKO8″,children:[(0,n.jsx)(P.l.Title,{children:W}),(0,n.jsxs)(“div”,{className:”CopilotAssignmentModal-module__rightSection–R7yuX”,children:[(0,n.jsx)(E.A,{variant:”success”,className:”CopilotAssignmentModal-module__previewBadge–Gu2_W”,children:”Preview”}),(0,n.jsx)(R.A,{href:z,target:”_blank”,rel:”noopener noreferrer”,className:”CopilotAssignmentModal-module__feedbackLink–bcJD_”,children:”Feedback”}),(0,n.jsx)(P.l.CloseButton,{onClose:_})]})]}),children:[(0,n.jsx)(“p”,{className:”CopilotAssignmentModal-module__description–L15j_”,children:”Copilot will open a pull request using the issue’s description, comments, and the additional prompt if you provide one. Choose a custom agent to tailor Copilot for specific tasks.”}),m&&(0,n.jsx)(“div”,{className:”CopilotAssignmentModal-module__errorContainer–xYkaJ”,children:(0,n.jsx)(u.l,{variant:”critical”,title:”Assignment Failed”,hideTitle:!0,description:(0,n.jsx)(“div”,{“data-testid”:”copilot-markdown”,children:(0,n.jsx)(B.To,{markdown:m,className:”CopilotAssignmentModal-module__errorMarkdown–pw_FR”})}),secondaryAction:(0,n.jsx)(u.l.SecondaryAction,{onClick:()=>g(null),children:”Dismiss”})})}),q&&(0,n.jsx)(C.tL,{commands:{“github:submit-form”:G},children:(0,n.jsx)(O.Fn,{children:(0,n.jsx)(h.$d,{initialLicenseType:F,children:(0,n.jsx)(w,{ref:f,initialRepo:q,onSubmit:A,onCancel:_,isSubmitting:d,textareaRef:y,textareaAriaDescribedBy:”copilot-assignment-description”})})})})]})}try{q.displayName||(q.displayName=”CopilotAssignmentModal”)}catch{}},21725:(e,l,a)=>{a.d(l,{u:()=>eA,E:()=>ew});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K,L,A,w=a(74848);let P=(s=[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”InlineFragment”,selections:i=[n={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},t={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],type:”IssueFieldText”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldSingleSelect”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldDate”,abstractKey:null},{kind:”InlineFragment”,selections:i,type:”IssueFieldNumber”,abstractKey:null}],{argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”FieldsSectionFragment”,selections:[n,{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isPrivate”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:[{kind:”Literal”,name:”first”,value:100}],concreteType:”IssueFieldsConnection”,kind:”LinkedField”,name:”pinnedIssueFields”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:s,storageKey:null}],storageKey:”pinnedIssueFields(first:100)”}],type:”Organization”,abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanSetFields”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”FieldsSectionFieldValues”},{alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”issueType”,plural:!1,selections:[n,t,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”pinnedFields”,plural:!0,selections:s,storageKey:null}],storageKey:null}],type:”Issue”,abstractKey:null});P.hash=”38bf1597e10e1798c4f23eaf5ee6e2d6″;let E=(d=[r={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],{argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”FieldsSectionFieldValues”,selections:[r,{alias:null,args:[{kind:”Literal”,name:”first”,value:25}],concreteType:”IssueFieldValueConnection”,kind:”LinkedField”,name:”issueFieldValues”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:d,type:”IssueFieldText”,abstractKey:null}],storageKey:null},u={alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldTextValue”,abstractKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:d,type:”IssueFieldSingleSelect”,abstractKey:null}],storageKey:null},o,{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],type:”IssueFieldSingleSelectValue”,abstractKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:d,type:”IssueFieldDate”,abstractKey:null}],storageKey:null},u],type:”IssueFieldDateValue”,abstractKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:d,type:”IssueFieldNumber”,abstractKey:null}],storageKey:null},{alias:”numberValue”,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldNumberValue”,abstractKey:null}],storageKey:null}],storageKey:”issueFieldValues(first:25)”},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanSetFields”,storageKey:null},{alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”issueType”,plural:!1,selections:[r,o],storageKey:null}],type:”Issue”,abstractKey:null});E.hash=”461a0c55032c3a4bf8d10a5a74a2fd22″;var R=a(69599),D=a(98646),V=a(44251),M=a(73189),O=a(75202),B=a(11196),$=a(96540),U=a(18312);a(69487);var H=a(3047),q=a(38621),G=a(21373);let W=({ref:e,…l})=>{let{anchorProps:a,inactive:n=!1,disabled:t=!1,onClick:i}=l;return(0,w.jsx)(“div”,{className:”AddIssueFieldButton-module__container–vCxXw”,children:(0,w.jsx)(G.Q,{leadingVisual:n?q.AlertIcon:void 0,trailingVisual:n?void 0:q.PlusIcon,size:”small”,ref:e,…a,className:”AddIssueFieldButton-module__button–GCUMC”,inactive:n||t,onClick:e=>{t||(i(),a?.onClick?.(e))},children:”Add field”})})};W.displayName=”AddIssueFieldButton”;var z=a(41848),Q=a(23490);function Y({owner:e,fieldsSet:l,onIssueFieldSelected:a,markInteractionStart:n,inactive:t=!1,disabled:i=!1,onButtonElementReceived:s,hideAddFieldButton:r=!1}){let o=(0,$.useMemo)(()=>(e,l)=>(l?.current&&s?.(l.current),(0,w.jsx)(W,{anchorProps:e,ref:l,onClick:n,inactive:t,disabled:i})),[n,t,i,s]),d=(0,$.useCallback)(e=>{let l=e[0];l&&a((0,D.YQ)(l))},[a]);return r?null:(0,w.jsx)(Q.iF,{owner:e,fieldsSet:l,onSelectionChange:d,anchorElement:o,insidePortal:!1})}try{Y.displayName||(Y.displayName=”FieldsSelector”)}catch{}let X=”FieldsSection-module__pinnedField–xRXo6″;function Z(e){let l=(0,$.useRef)(null),a=(0,$.useRef)(e),n=(0,$.useCallback)(e=>{l.current=e},[]);return(0,$.useEffect)(()=>{null!==a.current&&null===e&&l.current?.focus(),a.current=e},[e]),{setAddFieldButtonElement:n}}function J(e){let[l,a]=(0,$.useState)(!1),n=(0,$.useRef)(null),t=(0,$.useRef)(!1),i=(0,$.useRef)(null);return(0,$.useEffect)(()=>{if(t.current&&e!==i.current&&null!==e){a(!1),i.current=e;let l=setTimeout(()=>{a(!0)},0);return()=>{clearTimeout(l)}}t.current||(i.current=e),n.current=e,t.current=!0},[e]),{animatePinned:l}}function ee(e,l){return e&&l?`${X} FieldsSection-module__animationClass–ZaRW4`:e?X:void 0}function el({mutationFn:e,input:l,environment:a,action:n,fieldId:t,fieldType:i,inProjectsPage:s,ownerId:r,reportUsage:o,onError:d,onCompleted:u}){let c=Date.now();e({environment:a,input:l,onCompleted:()=>{o({page:s?”memex#show”:”issue#show”,action:n,fieldId:t,fieldType:i,status:”success”,duration:Date.now()-c,orgId:r?.toString()}),u?.()},onError:e=>{let l=Date.now()-c;o({page:s?”memex#show”:”issue#show”,action:n,fieldId:t,fieldType:i,status:”error”,errorDetails:e instanceof Error?e.message:String(e),duration:l,orgId:r?.toString()}),d?.(e)}})}var ea=a(31021),en=a(8816),et=a(83463),ei=a(16810),es=a(21798);let er=”FieldEditors-module__dateAnchorContainer–I3CxZ”;var eo=a(68384);let ed=({formattedDate:e})=>e?(0,w.jsx)(“span”,{className:”FieldEditors-module__dateText–SPr35″,children:e}):(0,w.jsx)(“span”,{className:”FieldEditors-module__noValueContainer–jjEy0″,children:z.k.setValue}),eu=({fieldId:e,fieldName:l,value:a,onCommit:n,shouldOpen:t=!1,isDraft:i=!1,readonly:s})=>{let[r,o]=(0,$.useState)(t),d=(0,$.useMemo)(()=>a?(0,en.b)(a):””,[a]),u=(0,$.useMemo)(()=>a?new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()):null,[a]),c=(0,$.useCallback)(()=>{i&&n(e,null),o(!1)},[i,e,n]),m=(0,$.useCallback)(l=>{let a=null;l&&(a=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,0))),n(e,a),o(!1)},[e,n]),p=d||z.k.setValue;return(0,w.jsxs)(“div”,{className:eo.A.issueFieldFormWrapper,children:[(0,w.jsx)(“p”,{className:eo.A.issueFieldLabel,children:l}),s?(0,w.jsx)(“div”,{className:eo.A.issueFieldValue,children:p}):(0,w.jsx)(et.DatePicker,{variant:”single”,showClearButton:!0,value:u,onChange:m,open:r,onOpen:()=>o(!0),onClose:c,anchor:e=>(0,w.jsx)(G.Q,{…e,variant:”invisible”,size:”small”,alignContent:”start”,className:eo.A.issueFieldValue,”aria-label”:a?`Edit ${l}`:`Set ${l}`,children:p})})]})},ec=({fieldId:e,fieldName:l,value:a,readonly:n,onCommit:t,shouldOpen:i=!1,isDraft:s=!1,errorPresent:r=!1,className:o})=>{let d=(0,R.G7)(“issue_fields_compact_view”),u=(0,$.useMemo)(()=>a?(0,en.b)(a):””,[a]),c=(0,$.useMemo)(()=>a?new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()):null,[a]),[m,p]=(0,$.useState)(i),g=(0,$.useCallback)(()=>{s&&t(e,null),p(!1)},[s,t,e]);return d?(0,w.jsx)(eu,{fieldId:e,fieldName:l,value:a,onCommit:t,shouldOpen:i,isDraft:s,readonly:n}):(0,w.jsx)(ei.w,{sectionHeader:(0,w.jsx)(es.X,{title:l,readonly:n,buttonProps:n?void 0:{onClick:()=>p(!0)},errorPresent:r}),className:o,children:n?(0,w.jsx)(“div”,{className:er,children:(0,w.jsx)(ed,{formattedDate:u})}):(0,w.jsx)(et.DatePicker,{anchor:e=>(0,w.jsx)(“div”,{…e,className:`${er} FieldEditors-module__dateAnchorContainerInteractive–EFP_p`,children:(0,w.jsx)(ed,{formattedDate:u})}),showClearButton:!0,showTodayButton:!0,variant:”single”,dateFormat:”long”,onChange:l=>{let a=null;l&&(a=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,0))),t(e,a),p(!1)},value:c,placeholder:”Set date”,open:m,onOpen:()=>p(!0),onClose:g},l)})};try{ed.displayName||(ed.displayName=”DateDisplay”)}catch{}try{eu.displayName||(eu.displayName=”IssueFieldCompactDateEditorInternal”)}catch{}try{ec.displayName||(ec.displayName=”IssueFieldDateEditor”)}catch{}var em=a(43570),ep=a(72690),eg=a(3155),ey=a(92233);let eh=({fieldId:e,fieldName:l,initialValue:a,onCommit:n,shouldOpen:t=!1,isDraft:i=!1,readonly:s})=>{let r=(0,$.useCallback)(l=>{n(e,l)},[e,n]),o=(0,$.useCallback)(()=>{i&&n(e,null)},[e,i,n]),d=!a||””===a.name&&””===a.color,u=d?z.k.setValue:(0,w.jsx)(eg.g,{name:a.name,color:a.color,getTooltipText:()=>void 0,size:”small”,containerClassName:ey.A.compactContainer}),c=d?`Set ${l}`:`Edit ${l}`;return(0,w.jsxs)(“div”,{className:eo.A.issueFieldFormWrapper,children:[(0,w.jsx)(“p”,{className:eo.A.issueFieldLabel,children:l}),s?(0,w.jsx)(“div”,{className:eo.A.issueFieldValue,children:u}):(0,w.jsx)(ep.CZ,{fieldId:e,fieldName:l,selectedOption:a?a.name:null,onSelectionChange:r,anchorElement:(e,l)=>(0,w.jsx)(G.Q,{ref:l,variant:”invisible”,size:”small”,alignContent:”start”,className:eo.A.issueFieldValue,”aria-label”:c,…e,children:u}),readonly:!1,isLazy:!0,onClose:o,shouldOpen:t})]})},ek=({fieldId:e,fieldName:l,readonly:a,initialValue:n,onCommit:t,shouldOpen:i=!1,isDraft:s=!1,className:r})=>{let o=(0,R.G7)(“issue_fields_compact_view”),d=(0,$.useCallback)(l=>{t(e,l)},[e,t]),u=(0,$.useCallback)(()=>{s&&t(e,null)},[e,s,t]),c=(0,$.useMemo)(()=>(0,w.jsx)(ep.CZ,{fieldId:e,fieldName:l,selectedOption:n?n.name:null,onSelectionChange:d,anchorElement:(e,n)=>(0,w.jsx)(es.X,{title:l||””,buttonProps:e,ref:n,readonly:a}),readonly:!1,isLazy:!0,onClose:u,shouldOpen:i}),[e,l,n,u,d,a,i]);if(o)return(0,w.jsx)(eh,{fieldId:e,fieldName:l,initialValue:n,onCommit:t,shouldOpen:i,isDraft:s,readonly:a});let m=n?.name===””&&n?.color===””&&n?.description===””;return(0,w.jsx)(ei.w,{sectionHeader:c,className:r,children:(0,w.jsx)(“div”,{className:ey.A.fieldEditorContainer,children:m?(0,w.jsx)(“div”,{className:ey.A.noValueContainer,children:z.k.setValue}):(0,w.jsx)(eg.g,{name:n?.name||””,color:n?.color||””,getTooltipText:e=>e?n?.description??””:void 0})})})};try{eh.displayName||(eh.displayName=”IssueFieldCompactSingleSelectEditorInternal”)}catch{}try{ek.displayName||(ek.displayName=”IssueFieldSingleSelectEditor”)}catch{}var ef=a(4889);function eb({fieldValue:e,readonly:l,onCommit:a,className:n},t){let i=””===e.value;switch(e.field.dataType){case”TEXT”:return(0,w.jsx)(ef.eH,{fieldId:e.field.id,fieldName:e.field.name||””,initialValue:e.value||””,readonly:l,onCommit:(e,l)=>a(e,l),errorPresent:t,className:n},e.field.name);case”SINGLE_SELECT”:return(0,w.jsx)(ek,{fieldId:e.field.id,fieldName:e.field.name||””,initialValue:{name:i||!e?.name?””:e.name,color:i||!e?.color?””:e.color,description:i||!e?.description?””:e.description},readonly:l,onCommit:(e,l)=>a(e,l),className:n},e.field.name);case”DATE”:{let i=null,s=e.value;return s&&(s instanceof Date?i=s:”string”==typeof s&&(i=(0,en.o)(s))),(0,w.jsx)(ec,{fieldId:e.field.id,fieldName:e.field.name||””,value:i,readonly:l,onCommit:(e,l)=>a(e,l),errorPresent:t,className:n},e.field.name)}case”NUMBER”:{let i=void 0!==e.numberValue&&null!==e.numberValue,s=void 0!==e.value&&null!==e.value&&””!==e.value,r=i?e.numberValue.toString():s?String(e.value):””;return(0,w.jsx)(em.k,{fieldId:e.field.id,fieldName:e.field.name||””,initialValue:r,readonly:l,onCommit:(e,l)=>{“”===l?a(e,l):a(e,Number(l))},errorPresent:t,className:n},e.field.name)}default:throw Error(`Unsupported field type: ${e.field.dataType}`)}}function eF({fieldSelection:e,onCommit:l,className:a}){switch(e.dataType){case”text”:return(0,w.jsx)(ef.eH,{fieldId:e.id||””,fieldName:e.name||””,initialValue:””,readonly:!1,onCommit:(e,a)=>l(e,a),shouldOpen:!0,isDraft:!0,className:a},e.id);case”single_select”:return(0,w.jsx)(ek,{fieldId:e.id,fieldName:e.name||””,initialValue:{name:””,color:””,description:””},readonly:!1,onCommit:(e,a)=>l(e,a),shouldOpen:!0,isDraft:!0,className:a},e.name);case”date”:return(0,w.jsx)(ec,{fieldId:e.id,fieldName:e.name||””,value:null,readonly:!1,onCommit:(e,a)=>l(e,a),shouldOpen:!0,isDraft:!0,className:a},e.name);case”number”:return(0,w.jsx)(em.k,{fieldId:e.id||””,fieldName:e.name||””,initialValue:””,readonly:!1,onCommit:(e,a)=>l(e,a),shouldOpen:!0,isDraft:!0,className:a},e.id);default:throw Error(`Unsupported field type: ${e.dataType}`)}}function eI({onClose:e,message:l}){return(0,w.jsx)(ea.K,{title:”Error”,confirmButtonContent:”OK”,confirmButtonType:”primary”,onClose:e,children:l})}try{eI.displayName||(eI.displayName=”ErrorDialog”)}catch{}let eS={fragment:{argumentDefinitions:c=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”createIssueFieldValueMutation”,selections:[{alias:null,args:m=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”CreateIssueFieldValuePayload”,kind:”LinkedField”,name:”createIssueFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”issueFieldValue”,plural:!1,selections:[y={kind:”InlineFragment”,selections:g=[p={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldTextValue”,abstractKey:null},h={kind:”InlineFragment”,selections:[p,{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],type:”IssueFieldSingleSelectValue”,abstractKey:null},k={kind:”InlineFragment”,selections:g,type:”IssueFieldDateValue”,abstractKey:null},f={kind:”InlineFragment”,selections:[p,{alias:”numberValue”,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldNumberValue”,abstractKey:null}],storageKey:null},F={alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:b=[p],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:c,kind:”Operation”,name:”createIssueFieldValueMutation”,selections:[{alias:null,args:m,concreteType:”CreateIssueFieldValuePayload”,kind:”LinkedField”,name:”createIssueFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”issueFieldValue”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},y,h,k,f,{kind:”InlineFragment”,selections:b,type:”Node”,abstractKey:”__isNode”}],storageKey:null},F],storageKey:null}]},params:{id:”7d34c7a47ddc5e24a7fe4d1980651c76″,metadata:{},name:”createIssueFieldValueMutation”,operationKind:”mutation”,text:null}};eS.hash=”efaa5ef3592a90da63e7e17d2645f75c”;let ev=e=>void 0!==e.singleSelectOptionId?D.KO:void 0!==e.dateValue?D.fk:void 0!==e.numberValue?D.qg:D.qH,ex=(e,l,a)=>{if(l){if(void 0!==a.textValue&&l.setValue(a.textValue,”value”),void 0!==a.singleSelectOptionId&&null!==a.singleSelectOptionId){let n=(e.get(a.fieldId)?.getLinkedRecords(“options”)||[]).find(e=>e.getDataID()===a.singleSelectOptionId);l.setValue(n?.getValue(“name”)??null,”name”),l.setValue(n?.getValue(“color”)??null,”color”),l.setValue(n?.getValue(“description”)??null,”description”)}void 0!==a.dateValue&&l.setValue(a.dateValue,”value”),void 0!==a.numberValue&&l.setValue(a.numberValue,”value”)}},eC=(e,l,a)=>{if(!e||!a)return;let n=(e.getLinkedRecords(“nodes”)||[]).filter(e=>e?.getLinkedRecord(“field”)?.getDataID()!==l);n.push(a),e.setLinkedRecords(n,”nodes”)};function ej({environment:e,input:l,onCompleted:a,onError:n}){return(0,U.commitMutation)(e,{mutation:eS,variables:{input:l},onCompleted:()=>{a?.()},onError:e=>n?.(e),optimisticUpdater:e=>{let a=e.get(l.issueId);if(!a)return;let n=l.issueField,t=a.getLinkedRecord(“issueFieldValues”,{first:25}),i=t?.getLinkedRecords(“nodes”)||[],s=ev(n),r=e.create(`client:newFieldValue:${n.fieldId}`,s);r.setValue(`client:newFieldValue:${n.fieldId}`,”id”);let o=e.get(n.fieldId);o&&r.setLinkedRecord(o,”field”),ex(e,r,n),i.push(r),t&&t.setLinkedRecords(i,”nodes”)},updater:e=>{let a=e.get(l.issueId),n=a?.getLinkedRecord(“issueFieldValues”,{first:25}),t=e.getRootField(“createIssueFieldValue”),i=t?.getLinkedRecord(“issueFieldValue”);if(!a||!i||!n)return;let s=l.issueField;if(!i.getLinkedRecord(“field”)){let l=e.get(s.fieldId);l&&i.setLinkedRecord(l,”field”)}eC(n,s.fieldId,i)}})}let eT={fragment:{argumentDefinitions:I=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”deleteIssueFieldValueMutation”,selections:S=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”DeleteIssueFieldValuePayload”,kind:”LinkedField”,name:”deleteIssueFieldValue”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”success”,storageKey:null},{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:I,kind:”Operation”,name:”deleteIssueFieldValueMutation”,selections:S},params:{id:”07154732cd6de9c83b93caf7e4fdb17b”,metadata:{},name:”deleteIssueFieldValueMutation”,operationKind:”mutation”,text:null}};function e_({environment:e,input:l,onCompleted:a,onError:n}){return(0,U.commitMutation)(e,{mutation:eT,variables:{input:l},onCompleted:()=>{a?.()},onError:e=>n?.(e),optimisticUpdater:e=>{let a=e.get(l.issueId);a&&eN(a,l.fieldId)},updater:e=>{let a=e.get(l.issueId);a&&eN(a,l.fieldId)}})}eT.hash=”ade9c121a42280fa29046520cd641e3c”;let eN=(e,l)=>{if(!e)return;let a=e.getLinkedRecord(“issueFieldValues”,{first:25});if(!a)return;let n=(a.getLinkedRecords(“nodes”)||[]).find(e=>e?.getLinkedRecord(“field”)?.getDataID()===l);if(!n)return;let t=n.getType();(0,D.fy)(n,t)},eK={fragment:{argumentDefinitions:v=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”updateIssueFieldValueMutation”,selections:[{alias:null,args:x=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”UpdateIssueFieldValuePayload”,kind:”LinkedField”,name:”updateIssueFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”issueFieldValue”,plural:!1,selections:[T={kind:”InlineFragment”,selections:j=[C={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldTextValue”,abstractKey:null},_={kind:”InlineFragment”,selections:[C,{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],type:”IssueFieldSingleSelectValue”,abstractKey:null},N={kind:”InlineFragment”,selections:j,type:”IssueFieldDateValue”,abstractKey:null},K={kind:”InlineFragment”,selections:[C,{alias:”numberValue”,args:null,kind:”ScalarField”,name:”value”,storageKey:null}],type:”IssueFieldNumberValue”,abstractKey:null}],storageKey:null},A={alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:L=[C],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:v,kind:”Operation”,name:”updateIssueFieldValueMutation”,selections:[{alias:null,args:x,concreteType:”UpdateIssueFieldValuePayload”,kind:”LinkedField”,name:”updateIssueFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”issueFieldValue”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},T,_,N,K,{kind:”InlineFragment”,selections:L,type:”Node”,abstractKey:”__isNode”}],storageKey:null},A],storageKey:null}]},params:{id:”c9b8f156814615ff82eb2393351e0719″,metadata:{},name:”updateIssueFieldValueMutation”,operationKind:”mutation”,text:null}};function eL({environment:e,input:l,onCompleted:a,onError:n}){return(0,U.commitMutation)(e,{mutation:eK,variables:{input:l},onCompleted:()=>{a?.()},onError:e=>n?.(e),optimisticUpdater:e=>{let a=e.get(l.issueId),n=a?.getLinkedRecord(“issueFieldValues”,{first:25}),t=n?.getLinkedRecords(“nodes”)||[],i=l.issueField,s=ev(i),r=t.find(e=>e.getLinkedRecord(“field”)?.getDataID()===i.fieldId);if(!r){r=e.create(`client:updateFieldValue:${i.fieldId}`,s);let l=e.get(i.fieldId);l&&r.setLinkedRecord(l,”field”)}ex(e,r,i),eC(n,i.fieldId,r)},updater:e=>{let a=e.get(l.issueId),n=a?.getLinkedRecord(“issueFieldValues”,{first:25}),t=e.getRootField(“updateIssueFieldValue”),i=t?.getLinkedRecord(“issueFieldValue”),s=l.issueField;if(i){if(!i.getLinkedRecord(“field”)){let l=e.get(s.fieldId);l&&i.setLinkedRecord(l,”field”)}eC(n,s.fieldId,i)}}})}function eA({owner:e,ownerId:l,onSelectionChange:a,issueType:n,orgPinnedFields:t}){let i,[s,r]=(0,$.useState)([]),[o,d]=(0,$.useState)([]),[u,c]=(0,$.useState)(null),{animatePinned:m}=J(n?.name||null),{markInteractionStart:p,reportUsage:g}=(0,V.k)(),{setAddFieldButtonElement:y}=Z(u),{pinnedFieldIds:h}=function({pinnedFields:e,setFields:l,setFieldsSet:a}){let n=(0,$.useMemo)(()=>(e||[]).map(e=>(0,H.Y0)((0,D.YQ)(e),null)),[e]),t=(0,$.useMemo)(()=>new Set(n.map(e=>e.field.id)),[n]);return(0,$.useEffect)(()=>{n.length>0?(l(e=>[…n.map(l=>{let a=e.find(e=>e.field.id===l.field.id);return a&&a.value?a:l}),…e.filter(e=>!t.has(e.field.id)&&e.value)]),a(n.map(e=>e.field.name))):(l(e=>e.filter(e=>!t.has(e.field.id)&&e.value)),a(e=>e.filter(e=>!n.map(e=>e.field.name).includes(e))))},[e,t,n,l,a]),{pinnedFieldIds:t}}({pinnedFields:(0,$.useMemo)(()=>(0,D.IR)(n?.pinnedFields?.filter(e=>e?.__typename!==”%other”)??[])??t??[],[n,t]),setFields:r,setFieldsSet:d}),k=!(0,R.G7)(“issue_metadata_add_field_button”);(0,$.useEffect)(()=>{a(s.filter(e=>e.value))},[s,a]),(0,$.useEffect)(()=>{let e=[…new Set([…s.map(e=>e.field.name).filter(e=>!!e),…o])];e.length===o.length&&e.every(e=>o.includes(e))||d(e)},[s,o]);let f=(0,$.useCallback)(e=>{p(),e.id&&(c(e),e.name&&d(l=>[…l,e.name]))},[p]),b=(0,$.useCallback)((e,a)=>{r(n=>{let t,i=n.map(l=>l.field.id===e?t=(0,H.IE)(l.field,a):l).filter(e=>void 0!==e.value||e.field.id&&h.has(e.field.id));return t&&!t.value&&(t.field.id&&h.has(t.field.id)||d(e=>e.filter(e=>e!==t?.field.name))),t&&t.field.dataType&&g({page:”issue#new”,action:”create”,fieldId:e,fieldType:(0,D.HZ)(t.field.dataType),status:”success”,orgId:l?.toString()}),i})},[l,h,g]),F=(0,$.useCallback)((e,l)=>{if(!u||u.id!==e)return;c(null);let a=(0,D.HZ)(u.dataType),n=(0,H.vl)(a,l),t=”string”==typeof n?!n.trim():!n;u.name&&t?d(e=>e.filter(e=>e!==u.name)):!t&&(r(e=>{let a=[…e];return u.name&&!a.some(e=>e.field.name===u.name)&&a.push((0,H.Y0)(u,l)),a}),u.name&&d(e=>e.includes(u.name)?e:[…e,u.name]))},[u]);return(0,w.jsxs)(w.Fragment,{children:[s.map(e=>e.field.id?eb({fieldValue:”object”==typeof e.value&&null!==e.value?{…e,…e.value}:e,readonly:!1,onCommit:b,className:ee(h.has(e.field.id),m)}):null),u&&(i=h.has(u.id),eF({fieldSelection:u,readonly:!1,onCommit:F,className:ee(i,m)})),(0,w.jsx)(Y,{owner:e,fieldsSet:o,onIssueFieldSelected:f,markInteractionStart:p,disabled:null!==u,onButtonElementReceived:y,hideAddFieldButton:k})]})}function ew({issue:e,onUpdate:l,inProjectsPage:a,readonly:n}){let t,[i,s]=(0,$.useState)([]),[r,o]=(0,$.useState)(!1),[d,u]=(0,$.useState)(!1),[c,m]=(0,$.useState)(null),p=(0,U.useRelayEnvironment)(),{markInteractionStart:g,reportUsage:y}=(0,V.k)(),{setAddFieldButtonElement:h}=Z(c),k=!(0,R.G7)(“issue_metadata_add_field_button”),f=(0,U.useFragment)(P,e),{repository:{isPrivate:b,owner:{login:F}},viewerCanSetFields:I,issueType:S}=f,v=(0,$.useMemo)(()=>(0,D.IR)(f.repository.owner.pinnedIssueFields?.nodes?.filter(e=>e?.__typename!==”%other”)??[]),[f.repository.owner.pinnedIssueFields]),x=(0,$.useMemo)(()=>(0,D.IR)(S?.pinnedFields?.filter(e=>e?.__typename!==”%other”))??v??[],[S,v]),C=(0,$.useMemo)(()=>x.map(e=>(0,H.Y0)((0,D.YQ)(e),null)),[x]),j=(0,$.useCallback)(()=>{o(!0)},[]),T=(0,$.useCallback)((e,l)=>{if(!c||c.id!==e)return;m(null);let n=(0,H.vl)(c.dataType,l||””),t=”string”==typeof n?!n.trim():!n;c.name&&t?s(e=>e.filter(e=>e!==c.name)):t||el({mutationFn:ej,input:{issueId:f.id,issueField:{fieldId:e,…(0,D.Ft)(c.dataType,n)}},environment:p,action:”create”,fieldId:e,fieldType:(0,D.HZ)(c.dataType),inProjectsPage:a,ownerId:f.repository?.owner?.databaseId,reportUsage:y,onError:j})},[c,f.id,f.repository.owner.databaseId,p,a,y,j]);return b?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(O.t,{fallback:(0,w.jsxs)(“div”,{children:[(0,w.jsx)(B.m,{text:z.k.loadingFieldsTooltipMessage,children:(0,w.jsx)(“span”,{children:(0,w.jsx)(W,{inactive:!0,anchorProps:{onClick:()=>u(!0)},onClick:M.l})})}),d&&(0,w.jsx)(eI,{onClose:()=>u(!1),message:z.k.loadingFieldsErrorMessage})]}),children:[(0,w.jsx)(eP,{issue:f,fieldsSet:i,setFieldsSet:s,inProjectsPage:a,pinnedFields:C,readonly:n,onUpdate:l}),c&&(t=C.some(e=>e.field.id===c.id),eF({fieldSelection:c,readonly:!1,onCommit:T,className:t?X:void 0})),!n&&I&&(0,w.jsx)(Y,{owner:F,fieldsSet:i,onIssueFieldSelected:e=>{e.id&&(m(e),e.name&&s(l=>[…l,e.name]))},markInteractionStart:g,disabled:null!==c,onButtonElementReceived:h,hideAddFieldButton:k})]}),r&&(0,w.jsx)(eI,{onClose:()=>o(!1),message:z.k.mutationErrorMessage})]}):null}function eP({issue:e,fieldsSet:l,setFieldsSet:a,inProjectsPage:n,onUpdate:t,pinnedFields:i,readonly:s}){let r=(0,U.useRelayEnvironment)(),[o,d]=(0,$.useState)({}),{reportUsage:u}=(0,V.k)();(0,$.useEffect)(()=>{let e=Object.values(o).some(e=>e),l=l=>{if(e)return l.preventDefault(),l.returnValue=z.k.reloadWarningMessage,l.returnValue};return window.addEventListener(“beforeunload”,l),()=>{window.removeEventListener(“beforeunload”,l)}},[o]);let c=(0,U.useFragment)(E,e),{animatePinned:m}=J(c.issueType?.id||null),p=(c.issueFieldValues?.nodes||[]).map(e=>e),[g,y]=(0,$.useState)(p.filter(e=>e?.field!=null));(0,$.useEffect)(()=>{y((c.issueFieldValues?.nodes||[]).map(e=>e).filter(e=>e?.field!=null))},[c.id]);let h=(0,$.useCallback)(e=>{d(l=>({…l,[e]:!0}))},[]),k=(0,$.useCallback)((e,l,a)=>{let i=(0,D.HZ)(l),s=(0,H.vl)(i,a);””===a||null===a?el({mutationFn:e_,input:{issueId:c.id,fieldId:e},environment:r,action:”delete”,fieldId:e,fieldType:i,inProjectsPage:n,reportUsage:u,onCompleted:()=>{d(l=>({…l,[e]:!1})),t()},onError:()=>h(e)}):el({mutationFn:eL,input:{issueId:c.id,issueField:{fieldId:e,…(0,D.Ft)(i,s)}},environment:r,action:”update”,fieldId:e,fieldType:i,inProjectsPage:n,reportUsage:u,onCompleted:()=>{d(l=>({…l,[e]:!1})),t()},onError:()=>h(e)})},[c.id,r,h,n,u,t]);(0,$.useMemo)(()=>{let{addedFields:e,updatedFields:l,removedFields:a}=(0,H.kO)(g,p);if(0===e.length&&0===l.length&&0===a.length)return;let n=e.length>0,t=g.map(e=>{let t=l.find(l=>l?.field?.id===e?.field?.id);if(t)return(0,H.zo)(t,e)||(n=!0),t;if(a.some(l=>l?.field?.id===e?.field?.id)){let l=(0,H.uV)(e);return(0,H.zo)(l,e)||(n=!0),l}return e}).filter(e=>null!=e);n&&y([…t,…e])},[p,g]);let f=(0,$.useMemo)(()=>{if(!i||0===i.length)return g;let e=i.map(e=>g.find(l=>l.field.id===e.field.id)||e),l=e.map(e=>e.field.id);return[…e,…g.filter(e=>!l.includes(e.field.id))]},[i,g]);(0,$.useEffect)(()=>{let e=f.map(e=>e?.field?.name||””).filter(e=>e);l.length===e.length&&l.every((l,a)=>l===e[a])||a(e)},[l,f,a]);let b=f.map(e=>{if(!e||!e.field||!e.field.id||void 0===e.field||void 0===e.field.dataType)return null;let l=i?.some(l=>l.field.id===e.field.id)||!1;return function({errorPresent:e,setErrorPresent:l,fieldValue:a,…n}){if(!a.field)return null;let t=a.field.id,i=”SINGLE_SELECT”===a.field.dataType,s=eb({fieldValue:a,…n},e[t]);return(0,w.jsxs)($.Fragment,{children:[s,i&&e[t]&&(0,w.jsx)(eI,{onClose:()=>l(t,!1),message:z.k.mutationErrorMessage})]},a.field.name)}({errorPresent:o,setErrorPresent:(e,l)=>d(a=>({…a,[e]:l})),fieldValue:e,readonly:s||!c.viewerCanSetFields,onCommit:(l,a)=>k(l,e.field.dataType,a),className:ee(l,m)})});return(0,w.jsx)(w.Fragment,{children:b})}eK.hash=”42fa492eab38e97eb091a4309e4f4202″;try{eA.displayName||(eA.displayName=”CreateIssueFieldsSection”)}catch{}try{ew.displayName||(ew.displayName=”EditIssueFieldsSection”)}catch{}try{eP.displayName||(eP.displayName=”IssueFields”)}catch{}},21798:(e,l,a)=>{a.d(l,{X:()=>u});var n=a(74848),t=a(38621),i=a(21373),s=a(11196),r=a(12683),o=a(34164),d=a(41848);let u=({ref:e,id:l,title:a,buttonProps:u,headingProps:{as:c=”h3″,…m}={},readonly:p,errorPresent:g,…y})=>{let h=p?{display:”flex”,flexDirection:”row”,justifyContent:”space-between”,alignItems:”center”,width:”100%”,pb:”8px”,…y.sx}:{width:”100%”,position:”relative”,display:”flex”,alignItems:”center”,…y.sx},k=(0,n.jsxs)(r.az,{sx:h,children:[(0,n.jsx)(r.DZ,{id:l,as:c,sx:{position:p?”relative”:”absolute”,…m},className:”SectionHeader-module__SectionHeaderTitle–TxSJL”,children:a}),!p&&(0,n.jsxs)(i.Q,{ref:e,…u,variant:”invisible”,size:”small”,trailingAction:()=>g?(0,n.jsx)(t.AlertIcon,{className:”fgColor-danger”}):(0,n.jsx)(t.GearIcon,{}),block:!0,className:”SectionHeader-module__editButton–pMar1″,”aria-describedby”:g?`error-message-${l}`:void 0,children:[(0,n.jsx)(“span”,{className:(0,o.$)(“sr-only”,”SectionHeader-module__screenReaderText–O1ZJ0″),children:d.k.editFieldValueLabel(a)}),g&&(0,n.jsx)(“span”,{id:`error-message-${l}`,className:”sr-only”,children:d.k.errorUpdatingIssueField})]})]});return g&&!p?(0,n.jsx)(s.m,{text:d.k.errorUpdatingIssueField,children:k}):k};u.displayName=”SectionHeader”},23490:(e,l,a)=>{a.d(l,{iF:()=>N});var n,t,i,s,r,o,d,u=a(74848);let c={kind:”InlineDataFragment”,name:”IssueFieldPickerIssueField”};c.hash=”31d854fea63dea594c796cfb9821b91c”;let m={argumentDefinitions:[{defaultValue:null,kind:”LocalArgument”,name:”issueFieldsPageSize”}],kind:”Fragment”,metadata:{connection:[{count:”issueFieldsPageSize”,cursor:null,direction:”forward”,path:[“issueFields”]}]},name:”IssueFieldPickerPaginated”,selections:[{alias:”issueFields”,args:null,concreteType:”IssueFieldsConnection”,kind:”LinkedField”,name:”__Organization_issueFields_connection”,plural:!1,selections:[{alias:null,args:null,concreteType:”IssueFieldsEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineDataFragmentSpread”,name:”IssueFieldPickerIssueField”,selections:[{kind:”InlineFragment”,selections:n=[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],type:”IssueFieldText”,abstractKey:null},{kind:”InlineFragment”,selections:n,type:”IssueFieldSingleSelect”,abstractKey:null},{kind:”InlineFragment”,selections:n,type:”IssueFieldDate”,abstractKey:null},{kind:”InlineFragment”,selections:n,type:”IssueFieldNumber”,abstractKey:null}],args:null,argumentDefinitions:[]},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:null}],type:”Organization”,abstractKey:null};m.hash=”8a6dd6e5fd4fe5d70ead8019af2bbe61″;let p={fragment:{argumentDefinitions:[t={defaultValue:null,kind:”LocalArgument”,name:”issueFieldsPageSize”},i={defaultValue:null,kind:”LocalArgument”,name:”name”}],kind:”Fragment”,metadata:null,name:”IssueFieldPickerQuery”,selections:[{alias:null,args:s=[{kind:”Variable”,name:”login”,variableName:”name”}],concreteType:”Organization”,kind:”LinkedField”,name:”organization”,plural:!1,selections:[{args:[{kind:”Variable”,name:”issueFieldsPageSize”,variableName:”issueFieldsPageSize”}],kind:”FragmentSpread”,name:”IssueFieldPickerPaginated”}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[i,t],kind:”Operation”,name:”IssueFieldPickerQuery”,selections:[{alias:null,args:s,concreteType:”Organization”,kind:”LinkedField”,name:”organization”,plural:!1,selections:[{alias:null,args:r=[{kind:”Variable”,name:”first”,variableName:”issueFieldsPageSize”}],concreteType:”IssueFieldsConnection”,kind:”LinkedField”,name:”issueFields”,plural:!1,selections:[{alias:null,args:null,concreteType:”IssueFieldsEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”TypeDiscriminator”,abstractKey:”__isIssueFields”},{kind:”InlineFragment”,selections:d=[o={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],type:”IssueFieldText”,abstractKey:null},{kind:”InlineFragment”,selections:d,type:”IssueFieldSingleSelect”,abstractKey:null},{kind:”InlineFragment”,selections:d,type:”IssueFieldDate”,abstractKey:null},{kind:”InlineFragment”,selections:d,type:”IssueFieldNumber”,abstractKey:null},{kind:”InlineFragment”,selections:[o],type:”Node”,abstractKey:”__isNode”}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:r,filters:null,handle:”connection”,key:”Organization_issueFields”,kind:”LinkedHandle”,name:”issueFields”},o],storageKey:null}]},params:{id:”dadedc2e94c39085c4fdd2fe515621a9″,metadata:{},name:”IssueFieldPickerQuery”,operationKind:”query”,text:null}};p.hash=”9a4fe5cc933711b34b06c8deb4838e9d”;var g=a(18815),y=a(19918),h=a(86391),k=a(81289),f=a(81709),b=a(30721),F=a(71315),I=a(82518),S=a(26607),v=a(84268),x=a(96540),C=a(18312),j=a(14709);let T=(0,I.Xl)(),_=(0,u.jsxs)(“div”,{className:”IssueFieldPicker-module__footer–mYJzU”,children:[(0,u.jsx)(S.A,{variant:”success”,children:”Preview”}),(0,u.jsx)(v.A,{href:T?”https://github-grid.enterprise.slack.com/archives/C0969KWTU01″:”https://github.com/orgs/community/discussions/175366″,children:”Share feedback”})]});function N({anchorElement:e,…l}){return(0,u.jsx)(k.y,{anchorElement:l=>e(l),createChild:()=>(0,u.jsx)(K,{anchorElement:(l,a)=>e(l,a),…l}),insidePortal:l.insidePortal,keybindingCommandId:”item-pickers:open-fields”})}function K({owner:e,anchorElement:l,…a}){let n=(0,C.useRelayEnvironment)(),[t,i]=(0,x.useState)(!0),[s,r]=(0,x.useState)(0),[o,d]=(0,x.useState)(!1),[c,m]=(0,x.useState)(null);(0,x.useEffect)(()=>{F.X3||(0,b.SD)({environment:n,query:p,variables:{name:e,issueFieldsPageSize:g.AE}}).subscribe({next:e=>{m(e.organization??null),i(!1),d(!1)},error:()=>{d(!0),i(!1)}})},[n,s,e]);let{createFallbackComponent:h}=(0,f.j)({errorMessage:y.k.cantEditItems(“fields”),anchorElement:l,open:!0});return o?h(()=>r(e=>e+1)):(0,u.jsx)(L,{owner:e,fields:c,isLoading:t,anchorElement:l,…a})}function L({title:e=y.k.fieldsHeader,width:l=”medium”,fields:a,fieldsSet:n,onSelectionChange:t,insidePortal:i,anchorElement:s,isLoading:r,nested:o,notice:d}){let[p,g]=(0,x.useState)(“”),k=(0,C.useFragment)(m,a),f=(0,x.useMemo)(()=>(k?.issueFields?.edges?.flatMap(e=>e?.node?[(0,C.readInlineData)(c,e.node)]:[])||[]).filter(e=>!!e&&(!(n.length>0)||!e.name||-1===n.indexOf(e.name))),[k,n]),b=(0,x.useMemo)(()=>p?f.filter(e=>e.name&&e.name.toLowerCase().indexOf(p.toLowerCase())>=0):f,[f,p]),F=(0,x.useCallback)(e=>{g(e)},[]),I=(0,x.useCallback)(e=>e.id||””,[]),S=(0,x.useId)(),v=(0,x.useCallback)(e=>({id:e.id||S,text:e.name,description:e.description||””,descriptionVariant:”block”,leadingVisual:(0,j.N)(e.dataType||”TEXT”),source:e}),[S]),T=(0,x.useRef)(null),N=(0,x.useMemo)(()=>0===b.length,[b.length]);return(0,u.jsx)(h.O,{loading:r,items:b,initialSelectedItems:[],filterItems:F,title:e,getItemKey:I,convertToItemProps:v,placeholderText:”Filter fields”,selectionVariant:”single”,onSelectionChange:t,renderAnchor:e=>s(e,T),insidePortal:i,height:”large”,width:l,nested:o,resultListAriaLabel:”Issue Fields results”,triggerOpen:!0,secondaryAction:_,notice:d,selectPanelRef:T,keybindingCommandId:”item-pickers:open-fields”,improvedNoMatchAccessibility:N,noMatchMessage:N?{title:”No issue fields were found”,variant:”empty”,body:”Try searching with a different query for results.”}:void 0})}try{_.displayName||(_.displayName=”SECONDARY_ACTION”)}catch{}try{N.displayName||(N.displayName=”IssueFieldPicker”)}catch{}try{K.displayName||(K.displayName=”IssueFieldPickerFetcher”)}catch{}try{L.displayName||(L.displayName=”ItemPickerWrapper”)}catch{}},24453:(e,l,a)=>{a.d(l,{O:()=>t});var n=a(59403);let t=(e,l)=>(0,n.dt)(e,l)>n.IP},24550:(e,l,a)=>{a.d(l,{t:()=>c});var n=a(74848),t=a(38621),i=a(84268),s=a(12683),r=a(10095),o=a(96540),d=a(99223),u=a(34164);function c(e){let{contributingFileUrl:l,securityPolicyUrl:a,codeOfConductFileUrl:t,supportFileUrl:i}=e;return!(0,d.k)()&&(l||a||t||i)?(0,n.jsx)(m,{…e}):null}function m({contributingFileUrl:e,securityPolicyUrl:l,codeOfConductFileUrl:a,supportFileUrl:d,sx:c,className:m}){let p=(0,o.useMemo)(()=>{let t=[];if(e&&t.push((0,n.jsx)(i.A,{inline:!0,href:e,children:”contributing guidelines”})),l&&t.push((0,n.jsx)(i.A,{inline:!0,href:l,children:”security policy”})),a&&t.push((0,n.jsx)(i.A,{inline:!0,href:a,children:”code of conduct”})),d&&t.push((0,n.jsx)(i.A,{inline:!0,href:d,children:”Support”})),1===t.length)return(0,n.jsx)(n.Fragment,{children:t[0]});let s=t.slice(0,-1),r=t[t.length-1];return(0,n.jsxs)(n.Fragment,{children:[s.map((e,l)=>(0,n.jsxs)(o.Fragment,{children:[e,(0,n.jsx)(“span”,{children:l!==s.length-1?”, “:” “})]},l)),(0,n.jsxs)(“span”,{children:[“and “,r]})]})},[e,l,a,d]);return(0,n.jsxs)(s.az,{“data-testid”:”contributor-footer”,sx:c,className:(0,u.$)(“ContributorFooter-module__ContributorFooterContainer–lDUwn”,m),children:[(0,n.jsx)(r.A,{icon:t.InfoIcon}),(0,n.jsxs)(“div”,{“data-testid”:”contributor-footer-text”,children:[(0,n.jsx)(“span”,{children:”Remember, contributions to this repository should follow its “}),(0,n.jsx)(“span”,{children:p}),(0,n.jsx)(“span”,{children:”.”})]})]})}try{c.displayName||(c.displayName=”ContributorFooter”)}catch{}try{m.displayName||(m.displayName=”ContributorFooterContent”)}catch{}},25820:(e,l,a)=>{a.d(l,{w:()=>w,D:()=>N});var n=a(74848),t=a(67126),i=a(74563),s=a(19918),r=a(76027),o=a(38143),d=a(81709),u=a(5643),c=a(31993),m=a(97665),p=a(71315),g=a(96540),y=a(96379),h=a(47544);async function k({owner:e,repo:l,query:a,count:n}){let t={owner:e,repo:l};a&&(t.query=a),n&&(t.count=n);let i=(0,h.JF)(“projects”,t),s=await (0,y.lS)(i);return await s.json()}var f=a(73049),b=a(43258),F=a(46747),I=a(38621),S=a(34267),v=a(83494),x=a(57019);let C={groupId:”recent”,header:{title:”Recent”,variant:”filled”}},j={groupId:”repository”,header:{title:”Repository”,variant:”filled”}},T={groupId:”organization”,header:{title:”Organization”,variant:”filled”}},_={groupId:”selected”};function N({owner:e,repo:l,query:a,count:n}){return(0,c.j)({queryKey:[“item_picker”,”projects”,{owner:e,repo:l,query:a,count:n}],queryFn:async()=>{var t;let i=await k({owner:e,repo:l,query:a,count:n});return{repositoryId:(t=(0,f.A)(i).data).repository.id,repositoryProjects:t.repository.projectsV2.nodes,recentRepositoryProjects:t.repository.recentProjects.edges.map(e=>e.node),ownerProjects:t.repository.owner.projectsV2.edges.map(e=>e.node),recentOwnerProjects:t.repository.owner.recentProjects.edges.map(e=>e.node)}}})}let K=[];function L({projectsData:e,selectedProjects:l=K,onSave:a,anchorElement:d,insidePortal:c,owner:p,repo:y,isLoading:h=!1,triggerOpen:k=!1,readonly:f,title:v,getSelectedProjects:L,pickerId:A}){let[w,P]=(0,g.useState)(e),[E,R]=(0,g.useState)(!1),[D,V]=(0,g.useState)(!1),M=(0,m.jE)(),{addToast:O}=(0,b.Y6)(),[B,$]=(0,g.useState)(“”),[U,H]=(0,g.useState)(k),q=(0,g.useCallback)(async e=>{R(!0);try{let l=await M.fetchQuery(N({repo:y,owner:p,query:e}));P(l),R(!1)}catch{R(!1),O({type:”error”,message:t.S.couldNotSearchProjects})}},[p,M,y]),G=(0,F.d)(e=>q(e),o.t.pickerDebounceTime);(0,g.useEffect)(()=>(0===B.length?P(e):G(B),()=>{R(!1)}),[G,B,e]);let W=(0,g.useMemo)(()=>(w?.recentOwnerProjects||[]).filter(e=>!1===e.closed),[w]),z=(0,g.useMemo)(()=>(w?.repositoryProjects||[]).filter(e=>!1===e.closed),[w]),Q=(0,g.useMemo)(()=>(w?.ownerProjects||[]).filter(e=>!1===e.closed),[w]),Y=(0,g.useMemo)(()=>L?L([…W,…z,…Q]):l,[L,l,Q,W,z]),[X,Z]=(0,g.useState)(()=>Y.map(e=>e.id));(0,g.useEffect)(()=>{Z(Y.map(e=>e.id))},[Y]);let J=(0,g.useCallback)((e,l)=>{let{title:a,id:n}=l,t=l.hasReachedItemsLimit&&!Y.some(e=>e.id===n)?”danger”:”default”,i=l.hasReachedItemsLimit?”block”:”inline”;return{text:a,description:l.hasReachedItemsLimit?`${s.k.projectItemsLimitReached}`:void 0,descriptionVariant:i,id:n,groupId:e,selected:X.includes(n),disabled:f||!l.viewerCanUpdate,leadingVisual:I.TableIcon,variant:t}},[Y,X,f]),ee=(0,g.useMemo)(()=>{let e=Y.map(e=>e.id);return{selected:Y,recent:W.filter(l=>!e.includes(l.id)),repository:z.filter(l=>!e.includes(l.id)),organization:Q.filter(l=>!e.includes(l.id))}},[Y,W,z,Q]),el=(0,g.useMemo)(()=>Object.keys(ee).flatMap(e=>{let l=ee[e];return l?l.map(l=>J(e,l)):[]}),[ee,J]),ea=(0,g.useMemo)(()=>el.filter(e=>e.id&&X.includes(e.id.toString())),[X,el]),en=(0,g.useMemo)(()=>{if(el.length<1)return[];if(""===B)return el;let e=el.filter(e=>(e.text||””).toLowerCase().indexOf(B.trim().toLowerCase())>=0);return e.length<1?[]:e},[B,el]),et=(0,g.useMemo)(()=>[Y.length>0?_:null,W.length>0?C:null,z.length>0?j:null,Q.length>0?T:null].filter(e=>null!==e),[Y.length,W.length,z.length,Q.length]),ei=(0,g.useCallback)(e=>{let l=ea.filter(l=>!e.includes(l)).map(e=>e.id),a=X;a=[…a,…e.filter(e=>void 0!==e.id).map(e=>e.id)],l.length>0&&(a=a.filter(e=>!l.includes(e))),Z([…new Set(a)])},[Z,ea,X]),es=(0,g.useCallback)(()=>{H(!1),$(“”),(X.length!==l.length||X.some(e=>!l.some(l=>e===l.id)))&&Z(l.map(e=>e.id?e.id.toString():””))},[l,X]),{updateOpenState:er}=(0,S.t)(),eo=(0,g.useCallback)((e,l)=>{if(!e&&document.activeElement instanceof HTMLElement&&document.activeElement?.blur(),”cancel”!==l&&(H(e),er(A,e),!e)){$(“”),ea.filter(e=>”danger”===e.variant).length>0&&V(!0);let e=ea.filter(e=>”danger”!==e.variant).map(e=>e.id).filter(e=>void 0!==e);Z(e);let l=Object.keys(ee).flatMap(e=>ee[e]||[]),n=new Map;for(let e of l)n.set(e.id,e);let t=[…new Set(e)].map(e=>n.get(e)).filter(e=>void 0!==e);a&&a(t)}},[er,A,ea,a,ee]),ed=(0,g.useCallback)(()=>{V(!1)},[V]);return(0,x._)([” “],e=>{if(U){let l=document.querySelector(r.Z.activePickerOption(i.B.itemPickerRootId));if(l){let a=l.getAttribute(“data-id”),n=[…en.values()].find(e=>e.id===a);if(n&&n.id){if(n.disabled)return;e.preventDefault(),e.stopPropagation();let l=n.id.toString();Z(e=>{let a=[…e],n=a.indexOf(l);return n>-1?a.splice(n,1):a.push(l),a})}}}},{triggerWhenInputElementHasFocus:!0,triggerWhenPortalIsActive:!0}),(0,n.jsx)(u.$,{anchorElement:d,title:v,items:en,selectedProjects:ea,groups:et,onOpenChange:eo,isDialogOpen:D,handleDialogClose:ed,insidePortal:c,onCancel:es,onSelectionChange:ei,triggerOpen:U,isLoading:h||E,onFilterChange:$,filterValue:B})}function A({repo:e,owner:l,…a}){let[t,i]=(0,g.useState)(!0),[r,o]=(0,g.useState)(0),[u,c]=(0,g.useState)(!1),[y,h]=(0,g.useState)(null),k=(0,m.jE)();(0,g.useEffect)(()=>{p.X3||(async()=>{try{let a=await k.fetchQuery(N({owner:l,repo:e,query:””}));h(a),i(!1),c(!1)}catch{c(!0),i(!1)}})()},[r,l,k,e]);let f=(0,g.useRef)(null),{createFallbackComponent:b}=(0,d.j)({errorMessage:s.k.cantEditItems(“projects”),anchorElement:e=>a.anchorElement(e,f),open:!0});return u?b(()=>o(e=>e+1)):(0,n.jsx)(L,{projectsData:y,owner:l,repo:e,isLoading:t,…a})}function w({anchorElement:e,triggerOpen:l,…a}){let[t,i]=(0,g.useState)(l),s=(0,g.useCallback)(()=>{t||i(!0)},[t]);return t?(0,n.jsx)(A,{triggerOpen:!0,anchorElement:l=>e(l),…a,pickerId:”list-header-projects-picker”}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.ak,{commands:{“item-pickers:open-projects”:s}}),e({onClick:()=>{i(!0)},onKeyPress:e=>{(“Enter”===e.key||” “===e.key)&&(e.preventDefault(),i(!0))}})]})}try{L.displayName||(L.displayName=”SelectPanelWrapper”)}catch{}try{A.displayName||(A.displayName=”ItemPickerFetcher”)}catch{}try{w.displayName||(w.displayName=”ProjectPicker”)}catch{}},25983:(e,l,a)=>{a.d(l,{n:()=>d});var n=a(74848),t=a(84268),i=a(12683),s=a(96540),r=a(11196),o=a(34164);let d=({name:e,color:l,href:a,getTooltipText:d,size:c,sx:m,className:p})=>{let g=(0,s.useRef)(null),[y,h]=(0,s.useState)(!1);(0,s.useEffect)(()=>h(u(g.current)),[h,g]);let k=(0,n.jsx)(t.A,{href:a,children:(0,n.jsx)(i.ou,{className:(0,o.$)(“IssueTypeToken-module__token–QZUId”,p),”data-color”:l,ref:g,sx:m,text:(0,n.jsx)(“span”,{className:”IssueTypeToken-module__tokenText–jTqtr”,children:e})})}),f=d(y);return(0,n.jsx)(“div”,{className:”IssueTypeToken-module__issueTypeTokenContainer–u7mnl”,”data-size”:c,children:f?(0,n.jsx)(r.m,{text:f,children:k}):k})},u=e=>!!e&&!!e.firstElementChild&&e.firstElementChild.scrollWidth>e.firstElementChild.clientWidth;try{d.displayName||(d.displayName=”IssueTypeToken”)}catch{}},26052:(e,l,a)=>{a.d(l,{v:()=>r});var n=a(74848),t=a(16522),i=a(96540),s=a(68245);function r(e){let l,a=(0,t.c)(7),{login:r,profileName:o,isAgent:d}=e,u=(0,i.useContext)(s._);if(d){let e;return a[0]!==r?(e=(0,n.jsx)(n.Fragment,{children:r}),a[0]=r,a[1]=e):e=a[1],e}if(“name_handle”===u&&o?.trim()){let e;return a[2]!==r||a[3]!==o?(e=(0,n.jsxs)(n.Fragment,{children:[o,” (“,r,”)”]}),a[2]=r,a[3]=o,a[4]=e):e=a[4],e}return a[5]!==r?(l=(0,n.jsx)(n.Fragment,{children:r}),a[5]=r,a[6]=l):l=a[6],l}try{r.displayName||(r.displayName=”ProfileReference”)}catch{}},26156:(e,l,a)=>{a.d(l,{v:()=>C,S:()=>x});var n=a(74848),t=a(69599),i=a(77430),s=a(25407),r=a(26052),o=a(38621),d=a(84268),u=a(62935),c=a(26607),m=a(12683),p=a(34164),g=a(96540),y=a(96901),h=a(46173),k=a(29554),f=a(13771),b=a(41248),F=a(40846);let I=({viewerDidAuthor:e,subjectType:l})=>(0,n.jsx)(F.C,{viewerDidAuthor:e,ariaLabel:y.k.commentSubjectAuthor(e??!1,l??”comment”),label:y.k.commentAuthor,testId:h.Y.commentSubjectAuthor});try{I.displayName||(I.displayName=”CommentSubjectAuthor”)}catch{}var S=a(85757);let v=({createdAt:e,owner:l,viewerDidAuthor:a})=>{let t=new Date(e),i=t.toLocaleString(“default”,{month:”long”}),s=y.k.sponsor(l,`${i} ${t.getFullYear()}`);return(0,n.jsx)(F.C,{label:y.k.sponsorBadge,ariaLabel:s,testId:h.Y.sponsorLabel,viewerDidAuthor:a})};try{v.displayName||(v.displayName=”SponsorsBadge”)}catch{}let x={Bot:”Bot”,Mannequin:”Mannequin”,User:”User”};function C({actions:e,badges:l,comment:a,commentAuthorType:i,commentAuthorSlug:C,commentAuthorLogin:T,commentAuthorProfileName:_,isMinimized:N=!1,avatarUrl:K,lastEditedByMessage:L,editHistoryComponent:A,additionalHeaderMessage:w,sx:P,viewerDidAuthor:E=!1,userAvatar:R,commentSubjectAuthorLogin:D,commentSubjectType:V,isReply:M=!1,headingProps:{as:O,…B}={as:”h3″},id:$,forceInlineAvatar:U,containerStyle:H,originalDiffPathUri:q,isOutdated:G,hideProfileLink:W=!1}){let z,Q=H||M?{}:{backgroundColor:E?”accent.subtle”:”canvas.subtle”,borderTopLeftRadius:”6px”,borderTopRightRadius:”6px”,borderBottom:”1px solid”,borderColor:E?”accent.muted”:”border.default”,borderBottomWidth:+!N,py:U?[1,1,2,2]:1,pr:1,pl:3,…P},Y=a.pendingMinimizeReason??a.minimizedReason,X=!!Y||a.isHidden,Z=new Date(a.createdAt),J=i===x.Bot,ee=i===x.Mannequin,el=J&&(“Copilot”===T&&!!C||”copilot-swe-agent”===T),ea=ee||W?void 0:`/${J?”apps/”:””}${C??T}`,en=el?”Copilot”:T;z=el?(0,s._nf)({bot_slug:C??T}):ee?void 0:(0,s.dCN)({owner:T});let et=(0,n.jsxs)(n.Fragment,{children:[w&&(0,n.jsx)(“span”,{className:k.A.HeaderMutedText,children:w}),(0,n.jsxs)(“span”,{className:k.A.HeaderMutedText,children:[(0,n.jsx)(d.A,{href:G?function(e){if(!e)return;let l=new URL(e,window.location.origin);return l.searchParams.set(“new_files_changed”,”true”),l.toString()}(q):a.url,”data-turbo”:G?”false”:”true”,className:k.A.HeaderLink,children:(0,n.jsxs)(u.A,{date:Z,children:[“on “,Z.toLocaleDateString(“en-US”,{month:”short”,day:”numeric”,year:”numeric”})]})}),a.createdViaEmail&&(0,n.jsx)(“span”,{children:` ${y.k.sentViaEmail}`}),a.viaApp&&(0,n.jsxs)(“span”,{children:[” “,”\u2013 with”,” “,(0,n.jsx)(d.A,{inline:!0,href:a.viaApp.url,children:a.viaApp.name})]})]}),X&&(0,n.jsxs)(“span”,{className:k.A.HeaderMutedTextNoEllipsis,children:[” “,”\xb7″,” “,Y?(0,n.jsxs)(“span”,{children:[y.k.hiddenCommentWithReason,” “,Y.replace(/_/g,”-“).toLowerCase()]}):(0,n.jsx)(“span”,{children:y.k.hiddenComment})]}),L&&!X&&(0,n.jsx)(g.Suspense,{children:L})]});return(0,n.jsx)(m.az,{id:$,sx:{…Q},”data-testid”:h.Y.commentHeader,className:k.A.ActivityHeaderContainer,children:(0,n.jsxs)(m.az,{className:(0,p.$)(k.A.activityHeader,k.A.ActivityHeaderGridLayout),sx:{paddingBottom:L||U?0:”var(–base-size-6, 6px)”},children:[(0,n.jsx)(O,{…B,className:”sr-only”,children:(0,n.jsxs)(n.Fragment,{children:[el?”Copilot”:T,” “,M?”replied”:”commented”,” “,(0,n.jsxs)(u.A,{date:Z,children:[“on “,Z.toLocaleDateString(“en-US”,{month:”short”,day:”numeric”,year:”numeric”}),” “]})]})}),(0,n.jsx)(m.az,{className:(0,p.$)(U?””:f.A.avatarInner,k.A.AvatarContainer),sx:{display:U?”flex”:[“flex”,”flex”,”none”,”none”]},children:R??(0,n.jsx)(j,{avatarUrl:K,login:T,isCopilot:el,isHidden:X,hovercardUrl:z,profileUrl:ea})}),(0,n.jsxs)(“div”,{className:(0,p.$)(k.A.narrowViewportWrapper,k.A.CommentHeaderContentContainer),”data-testid”:h.Y.commentHeaderLeftSideItems,children:[(0,n.jsxs)(“div”,{className:k.A.TitleContainer,children:[ea?(0,n.jsx)(d.A,{href:ea,”data-testid”:h.Y.avatarLink,”data-hovercard-url”:z,className:(0,p.$)(k.A.AuthorName,k.A.AuthorLink,X?”color-fg-muted”:”color-fg-default”),children:(0,t.G7)(“render_user_display_name”)?(0,n.jsx)(r.v,{login:en,profileName:_,isAgent:el}):en}):(0,n.jsx)(“span”,{“data-testid”:h.Y.avatarName,”data-hovercard-url”:z,className:(0,p.$)(k.A.AuthorName,X?”color-fg-muted”:”color-fg-default”),children:(0,t.G7)(“render_user_display_name”)?(0,n.jsx)(r.v,{login:en,profileName:_,isAgent:el}):en}),(J||ee)&&(0,n.jsx)(c.A,{variant:”secondary”,className:”ml-1″,children:y.k.authorLabel(J,el)})]}),(0,n.jsx)(“div”,{className:(0,p.$)(k.A.footer,k.A.FooterContainer),children:et})]}),(0,n.jsxs)(“div”,{“data-testid”:h.Y.commentHeaderRightSideItems,className:(0,p.$)(k.A.narrowViewportWrapper,k.A.ActionsContainer),children:[A&&(0,n.jsx)(“div”,{className:k.A.EditsContainer,children:A}),(0,n.jsxs)(“div”,{className:k.A.BadgesContainer,children:[(0,n.jsxs)(“div”,{className:k.A.BadgesGroupContainer,children:[a.state?.toUpperCase()===”PENDING”&&(0,n.jsx)(F.C,{leadingElement:(0,n.jsx)(o.DotFillIcon,{}),label:”Pending”,ariaLabel:”This review comment is pending”,testId:”pending-badge”,variant:”attention”,className:k.A.CommentHeaderBadge}),!X&&!N&&a.authorToRepoOwnerSponsorship&&a.authorToRepoOwnerSponsorship.isActive&&(0,n.jsx)(v,{createdAt:a.authorToRepoOwnerSponsorship.createdAt,owner:a.repository.owner.login,viewerDidAuthor:E}),!X&&!N&&a.showSpammyBadge&&(0,n.jsx)(S.b,{}),!a.repository.isPrivate&&!X&&!N&&(0,n.jsx)(b.m,{association:a.authorAssociation,viewerDidAuthor:E,org:a.repository.owner.login,repo:a.repository.name}),T===D&&(0,n.jsx)(I,{viewerDidAuthor:E,subjectType:V}),l]}),(0,n.jsx)(“div”,{className:k.A.ActionsButtonsContainer,children:e})]})]})]})})}function j({avatarUrl:e,login:l,isHidden:a,isCopilot:t,hovercardUrl:s,profileUrl:r}){let o=(0,n.jsx)(i.r,{src:e,alt:t?”Copilot”:`@${l}`,size:24,square:t,className:a?f.A.hiddenActivityAvatar:f.A.activityAvatar});return r?(0,n.jsx)(d.A,{href:r,className:f.A.avatarLink,”data-hovercard-url”:s,”aria-label”:t?”Copilot”:`@${l}’s profile`,children:o}):(0,n.jsx)(“div”,{className:f.A.avatarWithoutLink,”data-hovercard-url”:s,children:o})}try{C.displayName||(C.displayName=”ActivityHeader”)}catch{}try{j.displayName||(j.displayName=”DefaultAvatar”)}catch{}},27849:(e,l,a)=>{a.d(l,{y:()=>r});var n=a(26261),t=a(96698);let i=2592e5,s=async(e,l)=>await e(l),r=({validator:e,sendAnalyticsEvent:l,prefix:a=”key”,maxAgeMs:r=i,alwaysRefetch:o,enabled:d=!0})=>d?function({storage:e,sendAnalyticsEvent:l,maxAgeMs:a=864e5,prefix:t=”tanstack-query”,refetchOnRestore:i=!0}){async function s(l,a){if(null!=e){let i=`${t}-${l}`;try{let l=await e.getItem(i);if(l)return a&&n.jG.schedule(()=>a(l)),l.state.data}catch{await e.removeItem(i)}}}async function r(l,a){if(null!=e){let e=a.getQueryCache().find({queryKey:l});e&&await o(e)}}async function o(l){if(null!=e){let n=`${t}-${l.queryHash}`;e.setItem(n,{state:l.state,queryKey:l.queryKey,queryHash:l.queryHash},l.state.dataUpdatedAt,a)}}return{persisterFn:async function(a,r,d){let u=`${t}-${d.queryHash}`,c=void 0!==d.state.data,m=performance.now();if(void 0===d.state.data&&null!=e){let e=await s(d.queryHash,e=>{let a=performance.now(),n=Math.round(a-m);d.setState({dataUpdatedAt:e.state.dataUpdatedAt});let t=”always”===i,s=!0===i&&d.isStale(),r={is_always_restore:t,is_stale_data:s,indexeddb_duration_ms:n};t||s?(async()=>{let e=performance.now();await d.fetch();let n=performance.now();l?.(“offline_cache.stale_while_revalidate”,u,{…r,stale_visible_ms:Math.round(n-a),api_duration_ms:Math.round(n-e),total_ms:Math.round(n-m)})})():l?.(“offline_cache.cache_hit”,u,r)});if(void 0!==e)return Promise.resolve(e)}let p=performance.now(),g=await a(r),y=Math.round(performance.now()-p);return c||l?.(“offline_cache.cache_miss”,u,{api_duration_ms:y,total_ms:Math.round(performance.now()-m)}),null!=e&&n.jG.schedule(()=>{o(d)}),Promise.resolve(g)},persistQuery:o,persistQueryByKey:r,retrieveQuery:s,persisterGc:async function(){if(e?.entries)for(let[l,a]of(await e.entries()))l.startsWith(t)&&e.isBustedOrExpired(a)&&await e.removeItem(l)},restoreQueries:async function(l){if(e?.entries){for(let[a,n]of(await e.entries()))if(a.startsWith(t)){if(e.isBustedOrExpired(n)){await e.removeItem(a);continue}l.setQueryData(n.queryKey,n.state.data,{updatedAt:n.state.dataUpdatedAt})}}}}}({storage:(0,t.i5)({validator:e,sendAnalyticsEvent:l}),sendAnalyticsEvent:l,prefix:a,maxAgeMs:r,refetchOnRestore:!o||”always”}).persisterFn:s},29554:(e,l,a)=>{a.d(l,{A:()=>n});let n={activityHeader:”ActivityHeader-module__activityHeader–WiwzD”,footer:”ActivityHeader-module__footer–ssKOW”,narrowViewportWrapper:”ActivityHeader-module__narrowViewportWrapper–k4ncm”,edits:”ActivityHeader-module__edits–WkfqY”,HeaderMutedText:”ActivityHeader-module__HeaderMutedText–aJAo0″,HeaderLink:”ActivityHeader-module__HeaderLink–fStdK”,HeaderMutedTextNoEllipsis:”ActivityHeader-module__HeaderMutedTextNoEllipsis–zWavP”,ActivityHeaderContainer:”ActivityHeader-module__ActivityHeaderContainer–fKwFm”,ActivityHeaderGridLayout:”ActivityHeader-module__ActivityHeaderGridLayout–Jwd78″,AvatarContainer:”ActivityHeader-module__AvatarContainer–p2vAR”,CommentHeaderContentContainer:”ActivityHeader-module__CommentHeaderContentContainer–OOrIN”,TitleContainer:”ActivityHeader-module__TitleContainer–pa99A”,AuthorName:”ActivityHeader-module__AuthorName–Im5nP”,AuthorLink:”ActivityHeader-module__AuthorLink–D7Ojk”,FooterContainer:”ActivityHeader-module__FooterContainer–FHEpM”,ActionsContainer:”ActivityHeader-module__ActionsContainer–Ebsux”,EditsContainer:”ActivityHeader-module__EditsContainer–aMWsI”,BadgesContainer:”ActivityHeader-module__BadgesContainer–lAU4a”,BadgesGroupContainer:”ActivityHeader-module__BadgesGroupContainer–thmDS”,CommentHeaderBadge:”ActivityHeader-module__CommentHeaderBadge–ZOgwo”,ActionsButtonsContainer:”ActivityHeader-module__ActionsButtonsContainer–L7GUK”}},30107:(e,l,a)=>{a.d(l,{PH:()=>l0,le:()=>l2,ym:()=>lJ,nf:()=>l1});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K,L,A,w,P,E,R,D,V,M,O,B,$,U,H,q,G,W,z,Q,Y,X,Z,J,ee,el,ea,en,et,ei,es,er,eo,ed,eu,ec,em,ep,eg,ey,eh,ek,ef,eb,eF,eI,eS,ev,ex,eC,ej,eT,e_,eN,eK,eL,eA=a(74848);let ew=(n={count:null,cursor:null,direction:”forward”,path:[“projectItemsNext”]},i={alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null}],storageKey:null},o={alias:”projectItemsNext”,args:[{kind:”Literal”,name:”allowSameEnterprise”,value:!0},{kind:”Variable”,name:”allowedOwner”,variableName:”allowedOwner”}],concreteType:”ProjectV2ItemConnection”,kind:”LinkedField”,name:”__ProjectSection_projectItemsNext_connection”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”node”,plural:!1,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”ProjectItemSection”},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[s,{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null},t={alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},r={alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasReachedItemsLimit”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:null},{argumentDefinitions:[{defaultValue:null,kind:”LocalArgument”,name:”allowedOwner”}],kind:”Fragment”,metadata:{connection:[n,n]},name:”ProjectsSectionFragment”,selections:[{kind:”InlineFragment”,selections:[t,i,s,o,{alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdateMetadata”,storageKey:null}],type:”Issue”,abstractKey:null},{kind:”InlineFragment”,selections:[t,i,s,o,r],type:”PullRequest”,abstractKey:null}],type:”IssueOrPullRequest”,abstractKey:”__isIssueOrPullRequest”});ew.hash=”b0cd40ce9c9b54db21a4d6545ed8c497″;var eP=a(81688),eE=a(25820),eR=a(75202),eD=a(43258),eV=a(38621),eM=a(5524),eO=a(21373),eB=a(96540),e$=a(18312),eU=a(69487),eH=a(93513);let eq={fragment:{argumentDefinitions:d=[{defaultValue:null,kind:”LocalArgument”,name:”connections”},{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”deleteIssueProjectsMutation”,selections:[{alias:null,args:u=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”DeleteProjectV2ItemPayload”,kind:”LinkedField”,name:”deleteProjectV2Item”,plural:!1,selections:[c={alias:null,args:null,kind:”ScalarField”,name:”deletedItemId”,storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:d,kind:”Operation”,name:”deleteIssueProjectsMutation”,selections:[{alias:null,args:u,concreteType:”DeleteProjectV2ItemPayload”,kind:”LinkedField”,name:”deleteProjectV2Item”,plural:!1,selections:[c,{alias:null,args:null,filters:null,handle:”deleteEdge”,key:””,kind:”ScalarHandle”,name:”deletedItemId”,handleArgs:[{kind:”Variable”,name:”connections”,variableName:”connections”}]}],storageKey:null}]},params:{id:”cdc2c4b69492faa142269c6a6a60df92″,metadata:{},name:”deleteIssueProjectsMutation”,operationKind:”mutation”,text:null}};eq.hash=”b546b455603fb197fd8347b4cec2351a”;var eG=a(2495),eW=a(16810),ez=a(21798);let eQ={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”ProjectItemSection”,selections:[m={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[m],storageKey:null},{args:null,kind:”FragmentSpread”,name:”ProjectItemSectionView”}],type:”ProjectV2Item”,abstractKey:null};eQ.hash=”d514f44f54887c87d0f242aa077953b2″;let eY=(p=[{defaultValue:null,kind:”LocalArgument”,name:”id”}],g=[{kind:”Variable”,name:”id”,variableName:”id”}],y={alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},h={alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},f={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},F=[{kind:”Literal”,name:”first”,value:50},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”POSITION”}}],I={alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null},S={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},v={alias:null,args:null,kind:”ScalarField”,name:”isIssueField”,storageKey:null},_={alias:null,args:null,concreteType:”ProjectV2IterationFieldConfiguration”,kind:”LinkedField”,name:”configuration”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”iterations”,plural:!0,selections:T=[k={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},b={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},x={alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},C={alias:null,args:null,kind:”ScalarField”,name:”startDate”,storageKey:null},j={alias:null,args:null,kind:”ScalarField”,name:”duration”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”completedIterations”,plural:!0,selections:T,storageKey:null}],storageKey:null},N={alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},K={alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},L={alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},w={kind:”InlineFragment”,selections:A=[k],type:”Node”,abstractKey:”__isNode”},P={alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[f,{kind:”InlineFragment”,selections:[k,S],type:”ProjectV2Field”,abstractKey:null},w],storageKey:null},{fragment:{argumentDefinitions:p,kind:”Fragment”,metadata:null,name:”ProjectItemSectionFieldListQuery”,selections:[{alias:null,args:g,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[y,h,k],storageKey:null},{args:null,kind:”FragmentSpread”,name:”ProjectItemSectionFields”}],type:”ProjectV2Item”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:p,kind:”Operation”,name:”ProjectItemSectionFieldListQuery”,selections:[{alias:null,args:g,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[f,k,{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[y,h,k,b,{alias:null,args:F,concreteType:”ProjectV2FieldConfigurationConnection”,kind:”LinkedField”,name:”fields”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2FieldConfigurationEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[f,{kind:”InlineFragment”,selections:[k,I,S,v],type:”ProjectV2Field”,abstractKey:null},{kind:”InlineFragment”,selections:[k,I,S,v,_],type:”ProjectV2IterationField”,abstractKey:null},{kind:”InlineFragment”,selections:[k,I,S,v,{alias:null,args:null,concreteType:”ProjectV2SingleSelectFieldOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[k,N,S,K,L,{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],storageKey:null}],type:”ProjectV2SingleSelectField”,abstractKey:null},w],storageKey:null}],storageKey:null}],storageKey:’fields(first:50,orderBy:{“direction”:”ASC”,”field”:”POSITION”})’}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:F,concreteType:”ProjectV2ItemFieldValueConnection”,kind:”LinkedField”,name:”fieldValues”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemFieldValueEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[f,{kind:”InlineFragment”,selections:[k,P,{alias:null,args:null,kind:”ScalarField”,name:”text”,storageKey:null}],type:”ProjectV2ItemFieldTextValue”,abstractKey:null},{kind:”InlineFragment”,selections:[k,P,{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null}],type:”ProjectV2ItemFieldNumberValue”,abstractKey:null},{kind:”InlineFragment”,selections:[k,P,{alias:null,args:null,kind:”ScalarField”,name:”date”,storageKey:null}],type:”ProjectV2ItemFieldDateValue”,abstractKey:null},{kind:”InlineFragment”,selections:[k,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[f,{kind:”InlineFragment”,selections:A,type:”ProjectV2SingleSelectField”,abstractKey:null},w],storageKey:null},N,S,K,L],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},{kind:”InlineFragment”,selections:[k,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[f,{kind:”InlineFragment”,selections:[k,S,_],type:”ProjectV2IterationField”,abstractKey:null},w],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”iterationId”,storageKey:null},b,x,C,j],type:”ProjectV2ItemFieldIterationValue”,abstractKey:null},w],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’fieldValues(first:50,orderBy:{“direction”:”ASC”,”field”:”POSITION”})’},{alias:null,args:F,filters:[“orderBy”],handle:”connection”,key:”ProjectItemSection_fieldValues”,kind:”LinkedHandle”,name:”fieldValues”}],type:”ProjectV2Item”,abstractKey:null}],storageKey:null}]},params:{id:”241d243a15a751aa4668f46296a39636″,metadata:{},name:”ProjectItemSectionFieldListQuery”,operationKind:”query”,text:null}});eY.hash=”b0347ba7355910f2a5163bb08004baef”;var eX=a(84268);let eZ={fragment:{argumentDefinitions:E=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”unarchiveProjectItemMutation”,selections:[{alias:null,args:R=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”UnarchiveProjectV2ItemPayload”,kind:”LinkedField”,name:”unarchiveProjectV2Item”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”item”,plural:!1,selections:[D={alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:E,kind:”Operation”,name:”unarchiveProjectItemMutation”,selections:[{alias:null,args:R,concreteType:”UnarchiveProjectV2ItemPayload”,kind:”LinkedField”,name:”unarchiveProjectV2Item”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”item”,plural:!1,selections:[D,{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:”1d1e59700f5c9977430696b2338a0674″,metadata:{},name:”unarchiveProjectItemMutation”,operationKind:”mutation”,text:null}};eZ.hash=”774df17c4810f952c016355065fbcd6c”;let eJ={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”ProjectItemSectionFields”,selections:[V={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[V,{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},{alias:null,args:[{kind:”Literal”,name:”first”,value:50},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”POSITION”}}],concreteType:”ProjectV2FieldConfigurationConnection”,kind:”LinkedField”,name:”fields”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2FieldConfigurationEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[V,M={alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null},O={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},B={alias:null,args:null,kind:”ScalarField”,name:”isIssueField”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”TextFieldConfigFragment”},{args:null,kind:”FragmentSpread”,name:”DateFieldConfigFragment”},{args:null,kind:”FragmentSpread”,name:”NumberFieldConfigFragment”}],type:”ProjectV2Field”,abstractKey:null},{kind:”InlineFragment”,selections:[V,M,O,B,{args:null,kind:”FragmentSpread”,name:”IterationFieldConfigFragment”}],type:”ProjectV2IterationField”,abstractKey:null},{kind:”InlineFragment”,selections:[V,M,O,B,{args:null,kind:”FragmentSpread”,name:”SingleSelectFieldConfigFragment”}],type:”ProjectV2SingleSelectField”,abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:’fields(first:50,orderBy:{“direction”:”ASC”,”field”:”POSITION”})’}],storageKey:null},{args:null,kind:”FragmentSpread”,name:”ProjectItemSectionFieldsValues”}],type:”ProjectV2Item”,abstractKey:null};eJ.hash=”9e108cec835ef8bbd41e623d8601e11b”;let e0=(U=[$={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],{argumentDefinitions:[],kind:”Fragment”,metadata:{connection:[{count:null,cursor:null,direction:”forward”,path:[“fieldValues”]}]},name:”ProjectItemSectionFieldsValues”,selections:[{alias:”fieldValues”,args:[{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”POSITION”}}],concreteType:”ProjectV2ItemFieldValueConnection”,kind:”LinkedField”,name:”__ProjectItemSection_fieldValues_connection”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemFieldValueEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:H=[$,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:U,type:”ProjectV2Field”,abstractKey:null}],storageKey:null}],type:”ProjectV2ItemFieldTextValue”,abstractKey:null},{args:null,kind:”FragmentSpread”,name:”TextFieldFragment”},{kind:”InlineFragment”,selections:H,type:”ProjectV2ItemFieldNumberValue”,abstractKey:null},{args:null,kind:”FragmentSpread”,name:”NumberFieldFragment”},{kind:”InlineFragment”,selections:H,type:”ProjectV2ItemFieldDateValue”,abstractKey:null},{args:null,kind:”FragmentSpread”,name:”DateFieldFragment”},{kind:”InlineFragment”,selections:[$,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:U,type:”ProjectV2SingleSelectField”,abstractKey:null}],storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},{args:null,kind:”FragmentSpread”,name:”SingleSelectFieldFragment”},{kind:”InlineFragment”,selections:[$,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{kind:”InlineFragment”,selections:U,type:”ProjectV2IterationField”,abstractKey:null}],storageKey:null}],type:”ProjectV2ItemFieldIterationValue”,abstractKey:null},{args:null,kind:”FragmentSpread”,name:”IterationFieldFragment”},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’__ProjectItemSection_fieldValues_connection(orderBy:{“direction”:”ASC”,”field”:”POSITION”})’}],type:”ProjectV2Item”,abstractKey:null});e0.hash=”6064e6f5025ede2958816599a371f827″;var e1=a(34164);let e2={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”DateFieldFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”date”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”DateFieldConfigFragment”}],storageKey:null}],type:”ProjectV2ItemFieldDateValue”,abstractKey:null};e2.hash=”77aee2b1b5d211b322b848ac87e2ca19″;let e4={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”DateFieldConfigFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”ProjectV2Field”,abstractKey:null};e4.hash=”137f1e064b5aa98d4b4aa184ee4db814″;var e8=a(83463);let e7=(q=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],G=[{kind:”Variable”,name:”input”,variableName:”input”}],z={alias:null,args:null,kind:”ScalarField”,name:”type”,storageKey:null},Y={alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:Q=[W={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],storageKey:null},X=[{kind:”Literal”,name:”name”,value:”Status”}],J={kind:”InlineFragment”,selections:[Z={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},ee=[{kind:”Literal”,name:”first”,value:50},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”POSITION”}}],en={alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[el={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”InlineFragment”,selections:[W,Z],type:”ProjectV2Field”,abstractKey:null},ea={kind:”InlineFragment”,selections:Q,type:”Node”,abstractKey:”__isNode”}],storageKey:null},eo=[W,et={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},ei={alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},es={alias:null,args:null,kind:”ScalarField”,name:”startDate”,storageKey:null},er={alias:null,args:null,kind:”ScalarField”,name:”duration”,storageKey:null}],{fragment:{argumentDefinitions:q,kind:”Fragment”,metadata:null,name:”clearProjectItemFieldValueMutation”,selections:[{alias:null,args:G,concreteType:”ClearProjectV2ItemFieldValuePayload”,kind:”LinkedField”,name:”clearProjectV2ItemFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”projectV2Item”,plural:!1,selections:[W,z,Y,{args:null,kind:”FragmentSpread”,name:”ProjectItemSectionFieldsValues”},{alias:null,args:X,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[J],storageKey:’fieldValueByName(name:”Status”)’}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:q,kind:”Operation”,name:”clearProjectItemFieldValueMutation”,selections:[{alias:null,args:G,concreteType:”ClearProjectV2ItemFieldValuePayload”,kind:”LinkedField”,name:”clearProjectV2ItemFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”projectV2Item”,plural:!1,selections:[W,z,Y,{alias:null,args:ee,concreteType:”ProjectV2ItemFieldValueConnection”,kind:”LinkedField”,name:”fieldValues”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemFieldValueEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[el,{kind:”InlineFragment”,selections:[W,en,{alias:null,args:null,kind:”ScalarField”,name:”text”,storageKey:null}],type:”ProjectV2ItemFieldTextValue”,abstractKey:null},{kind:”InlineFragment”,selections:[W,en,{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null}],type:”ProjectV2ItemFieldNumberValue”,abstractKey:null},{kind:”InlineFragment”,selections:[W,en,{alias:null,args:null,kind:”ScalarField”,name:”date”,storageKey:null}],type:”ProjectV2ItemFieldDateValue”,abstractKey:null},{kind:”InlineFragment”,selections:[W,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[el,{kind:”InlineFragment”,selections:Q,type:”ProjectV2SingleSelectField”,abstractKey:null},ea],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},Z,{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},{kind:”InlineFragment”,selections:[W,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[el,{kind:”InlineFragment”,selections:[W,Z,{alias:null,args:null,concreteType:”ProjectV2IterationFieldConfiguration”,kind:”LinkedField”,name:”configuration”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”iterations”,plural:!0,selections:eo,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”completedIterations”,plural:!0,selections:eo,storageKey:null}],storageKey:null}],type:”ProjectV2IterationField”,abstractKey:null},ea],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”iterationId”,storageKey:null},et,ei,es,er],type:”ProjectV2ItemFieldIterationValue”,abstractKey:null},ea],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’fieldValues(first:50,orderBy:{“direction”:”ASC”,”field”:”POSITION”})’},{alias:null,args:ee,filters:[“orderBy”],handle:”connection”,key:”ProjectItemSection_fieldValues”,kind:”LinkedHandle”,name:”fieldValues”},{alias:null,args:X,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[el,J,ea],storageKey:’fieldValueByName(name:”Status”)’}],storageKey:null}],storageKey:null}]},params:{id:”d132dec069be1a67131a5e271bc909a6″,metadata:{},name:”clearProjectItemFieldValueMutation”,operationKind:”mutation”,text:null}});function e6({environment:e,input:l,onError:a,onCompleted:n}){return(0,e$.commitMutation)(e,{mutation:e7,variables:{input:l},optimisticUpdater:e=>{let a,n;return a=`${e$.ConnectionHandler.getConnectionID(l.itemId,”ProjectItemSection_fieldValues”)}(orderBy:{“direction”:”ASC”,”field”:”POSITION”})`,void((n=e.get(a))&&n.getLinkedRecords(“edges”)?.map((e,a)=>{if(e?.getLinkedRecord(“node”)?.getLinkedRecord(“field”)?.getDataID()===l.fieldId){let e=n.getLinkedRecords(“edges”)||[];e.splice(a,1),n.setLinkedRecords(e,”edges”)}}))},onError:e=>a&&a(e),onCompleted:e=>n&&n(e)})}e7.hash=”1cc97421540c4997953175725e1f92c9″;let e3=(ed=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],eu=[{kind:”Variable”,name:”input”,variableName:”input”}],ec=[{kind:”Literal”,name:”name”,value:”Status”}],ep={kind:”InlineFragment”,selections:[em={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},eg=[{kind:”Literal”,name:”first”,value:50},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”POSITION”}}],ey={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},ef={kind:”InlineFragment”,selections:ek=[eh={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],type:”Node”,abstractKey:”__isNode”},eb={alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[ey,{kind:”InlineFragment”,selections:[eh,em],type:”ProjectV2Field”,abstractKey:null},ef],storageKey:null},ex=[eh,eF={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},eI={alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},eS={alias:null,args:null,kind:”ScalarField”,name:”startDate”,storageKey:null},ev={alias:null,args:null,kind:”ScalarField”,name:”duration”,storageKey:null}],{fragment:{argumentDefinitions:ed,kind:”Fragment”,metadata:null,name:”updateProjectItemFieldValueMutation”,selections:[{alias:null,args:eu,concreteType:”UpdateProjectV2ItemFieldValuePayload”,kind:”LinkedField”,name:”updateProjectV2ItemFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”projectV2Item”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”ProjectItemSectionFieldsValues”},{alias:null,args:ec,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[ep],storageKey:’fieldValueByName(name:”Status”)’}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:ed,kind:”Operation”,name:”updateProjectItemFieldValueMutation”,selections:[{alias:null,args:eu,concreteType:”UpdateProjectV2ItemFieldValuePayload”,kind:”LinkedField”,name:”updateProjectV2ItemFieldValue”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”projectV2Item”,plural:!1,selections:[{alias:null,args:eg,concreteType:”ProjectV2ItemFieldValueConnection”,kind:”LinkedField”,name:”fieldValues”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemFieldValueEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[ey,{kind:”InlineFragment”,selections:[eh,eb,{alias:null,args:null,kind:”ScalarField”,name:”text”,storageKey:null}],type:”ProjectV2ItemFieldTextValue”,abstractKey:null},{kind:”InlineFragment”,selections:[eh,eb,{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null}],type:”ProjectV2ItemFieldNumberValue”,abstractKey:null},{kind:”InlineFragment”,selections:[eh,eb,{alias:null,args:null,kind:”ScalarField”,name:”date”,storageKey:null}],type:”ProjectV2ItemFieldDateValue”,abstractKey:null},{kind:”InlineFragment”,selections:[eh,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[ey,{kind:”InlineFragment”,selections:ek,type:”ProjectV2SingleSelectField”,abstractKey:null},ef],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},em,{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},{kind:”InlineFragment”,selections:[eh,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[ey,{kind:”InlineFragment”,selections:[eh,em,{alias:null,args:null,concreteType:”ProjectV2IterationFieldConfiguration”,kind:”LinkedField”,name:”configuration”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”iterations”,plural:!0,selections:ex,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”completedIterations”,plural:!0,selections:ex,storageKey:null}],storageKey:null}],type:”ProjectV2IterationField”,abstractKey:null},ef],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”iterationId”,storageKey:null},eF,eI,eS,ev],type:”ProjectV2ItemFieldIterationValue”,abstractKey:null},ef],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’fieldValues(first:50,orderBy:{“direction”:”ASC”,”field”:”POSITION”})’},{alias:null,args:eg,filters:[“orderBy”],handle:”connection”,key:”ProjectItemSection_fieldValues”,kind:”LinkedHandle”,name:”fieldValues”},{alias:null,args:ec,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[ey,ep,ef],storageKey:’fieldValueByName(name:”Status”)’},eh],storageKey:null}],storageKey:null}]},params:{id:”8b296fae9f2499af49f72d6df68d6b5c”,metadata:{},name:”updateProjectItemFieldValueMutation”,operationKind:”mutation”,text:null}});function e9({environment:e,input:l,onError:a,onCompleted:n}){return(0,e$.commitMutation)(e,{mutation:e3,variables:{input:l},optimisticUpdater:e=>(function(e,l){let a=`${e$.ConnectionHandler.getConnectionID(l.itemId,”ProjectItemSection_fieldValues”)}(orderBy:{“direction”:”ASC”,”field”:”POSITION”})`,n=e.get(a);if(!n)return;let t=(n.getLinkedRecords(“edges”)?.map(e=>e.getLinkedRecord(“node”))||[]).find(e=>{if(!e)return!1;let a=e.getLinkedRecord(“field”);return!!a&&a.getDataID()===l.fieldId});if(t)switch(t.getType()){case”ProjectV2ItemFieldTextValue”:t.setValue(l.value.text,”text”);break;case”ProjectV2ItemFieldNumberValue”:t.setValue(l.value.number,”number”);break;case”ProjectV2ItemFieldDateValue”:t.setValue(l.value.date,”date”);break;case”ProjectV2ItemFieldSingleSelectValue”:{if(!l.value.singleSelectOptionId)return;let a=e.get(l.value.singleSelectOptionId);if(!a)return;for(let e of(t.setValue(l.value.singleSelectOptionId,”optionId”),[“color”,”name”,”nameHTML”]))t.setValue(a.getValue(e),e);break}case”ProjectV2ItemFieldIterationValue”:{if(!l.value.iterationId)return;let a=e.get(l.value.iterationId);if(!a)return;for(let e of(t.setValue(l.value.iterationId,”iterationId”),[“duration”,”startDate”,”title”,”titleHTML”]))t.setValue(a.getValue(e),e)}}})(e,l),onError:e=>a&&a(e),onCompleted:e=>n&&n(e)})}e3.hash=”de3a39d4584b64ead2a58f140d26d900″;var e5=a(8816),le=a(73189),ll=a(26108),la=a(12683);let ln=”ProjectsSections-module__FieldListLi–wheLp”,lt=”ProjectsSections-module__FieldListUl–nweud”;function li({children:e,onClick:l,anchorProps:a,disabled:n,isStatusField:t=!1,placeholder:i}){return(0,eA.jsx)(la.az,{as:n?void 0:”button”,”aria-label”:n?”Field is not editable”:i,onClick:n?le.l:l,sx:{py:t?1:”var(–control-medium-paddingBlock)”,minHeight:t?”var(–control-small-size)”:”var(–control-xsmall-size)”,…n?{paddingLeft:”6px”,paddingRight:”6px”}:{“&:hover”:{backgroundColor:”actionListItem.default.hoverBg”}}},className:”FieldWrapper-module__metadataFieldButton–qr7tn”,…a,children:(0,eA.jsx)(“div”,{className:”FieldWrapper-module__fieldContentContainer–UA6kk”,children:e})})}function ls({ref:e,name:l,placeholder:a,value:n,input:t,inputRef:i,anchorProps:s,showInput:r,setShowInput:o,canUpdate:d=!0,isStatusField:u=!1,onCommit:c=le.l}){let m=(0,eB.useRef)(null),p=(0,eB.useId)(),g=(0,eB.useCallback)(e=>{!s&&d?o(!0):s?.onClick&&s.onClick(e)},[s,d,o]);(0,eB.useEffect)(()=>{!0===r&&i&&i.current&&i.current.focus()},[i,r]);let y=(0,e1.$)(“ProjectsSections-module__ListFieldWrapperText–cXqRk”,u&&”ProjectsSections-module__FieldBasisAuto–kiwmO”);return(0,eA.jsx)(“span”,{ref:e||m,className:”ProjectsSections-module__ListFieldWrapper–XmHs2″,children:r?(0,eA.jsxs)(“label”,{className:”ProjectsSections-module__FieldWrapperLabel–EzGZt”,children:[(0,eA.jsx)(“p”,{className:y,children:l}),(0,eA.jsxs)(“span”,{className:”ProjectsSections-module__FieldWrapperInputContainer–Vem8C”,children:[t,(0,eA.jsx)(ll.K,{“aria-label”:”Update”,”data-testid”:”commit”,size:”small”,icon:eV.CheckIcon,onClick:()=>{c(),o(!1)},disabled:!d})]})]}):(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsx)(“p”,{id:p,className:y,children:l}),(0,eA.jsx)(li,{isStatusField:u,anchorProps:{…s,”aria-describedby”:p},onClick:g,placeholder:”string”==typeof a?a:void 0,disabled:!d,children:n?(0,eA.jsx)(“span”,{className:”FieldWrapper-module__fieldValueText–CgERg”,children:n}):(0,eA.jsx)(“span”,{className:”FieldWrapper-module__fieldPlaceholderText–qU9l7″,children:a})})]})})}try{li.displayName||(li.displayName=”MetadataButton”)}catch{}try{ls.displayName||(ls.displayName=”FieldWrapper”)}catch{}function lr({viewerCanUpdate:e,itemId:l,projectId:a,field:n,value:t,onIssueUpdate:i}){let s=(0,e$.useRelayEnvironment)(),r=(0,e$.useFragment)(e4,n),o=(0,e$.useFragment)(e2,t),d=r.id,u=r.name,c=o?new Date(o.date):null,m=c?(0,e5.b)(c):”No date”,[p,g]=(0,eB.useState)(c),[y,h]=(0,eB.useState)(!1),k=(0,eB.useCallback)(e=>{g(e),e?e9({environment:s,input:{fieldId:d,itemId:l,projectId:a,value:{date:new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().slice(0,10)}},onCompleted:i}):e6({environment:s,input:{fieldId:d,itemId:l,projectId:a},onCompleted:i})},[s,d,l,i,a]),f=(0,eB.useCallback)(e=>(0,eA.jsx)(ls,{showInput:y,setShowInput:h,anchorProps:e,placeholder:eH.k.emptySections.datePlaceholder,value:m||eH.k.emptySections.noValue(u),name:u}),[m,u,y]);return e?(0,eA.jsx)(e8.DatePicker,{variant:”single”,showClearButton:!0,value:p,onChange:k,anchor:f}):(0,eA.jsx)(ls,{showInput:y,setShowInput:h,placeholder:eH.k.emptySections.noValue(u),canUpdate:!1,name:u,value:m})}try{lr.displayName||(lr.displayName=”DateField”)}catch{}let lo={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”IterationFieldFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”iterationId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”startDate”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”duration”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”IterationFieldConfigFragment”}],storageKey:null}],type:”ProjectV2ItemFieldIterationValue”,abstractKey:null};lo.hash=”57212d5c33092763cd6c9ea8afef0615″;let ld=(ej=[{kind:”InlineDataFragmentSpread”,name:”IterationFieldIterationFragment”,selections:[eC={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”titleHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”startDate”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”duration”,storageKey:null}],args:null,argumentDefinitions:[]}],{argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”IterationFieldConfigFragment”,selections:[eC,{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2IterationFieldConfiguration”,kind:”LinkedField”,name:”configuration”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”iterations”,plural:!0,selections:ej,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2IterationFieldIteration”,kind:”LinkedField”,name:”completedIterations”,plural:!0,selections:ej,storageKey:null}],storageKey:null}],type:”ProjectV2IterationField”,abstractKey:null});ld.hash=”1820eb43fb63bb62abf4c8f24979732c”;let lu={kind:”InlineDataFragment”,name:”IterationFieldIterationFragment”};lu.hash=”28591c2749a30e9b111acd7e77a057f9″;var lc=a(86391),lm=a(73017),lp=a(84929);function lg({startDate:e,durationInDays:l,titleHTML:a}){var n,t;let i=new Date,s=(0,lp.H)(e),r=(n=s,t=l,new Date(n.getTime()+(t-1)*864e5)),o=s<=i&&i<=r,d=e=>e.toLocaleDateString(“en-US”,{month:”short”,day:”numeric”});return(0,eA.jsxs)(“div”,{className:”IterationItem-module__IterationItemContainer–DDoTl”,children:[(0,eA.jsx)(“div”,{className:”IterationItem-module__iterationTitleContainer–Dlq2Q”,children:(0,eA.jsx)(lm.JR,{html:a})}),(0,eA.jsx)(eA.Fragment,{children:”\u2022 “}),(0,eA.jsxs)(“span”,{className:”IterationItem-module__iterationDateRange–V5IVr”,children:[`${d(s)} – ${d(r)}`,” “,o&&(0,eA.jsx)(eA.Fragment,{children:”\u2022 “})]}),o&&(0,eA.jsx)(“span”,{className:”IterationItem-module__currentIndicator–vXDTT”,children:”Current”})]})}try{lg.displayName||(lg.displayName=”IterationItem”)}catch{}let ly={groupId:”completed”,header:{title:”Completed”,variant:”filled”}},lh={groupId:”active”,header:{title:”Active”,variant:”filled”}};function lk({viewerCanUpdate:e,itemId:l,projectId:a,field:n,value:t,onIssueUpdate:i}){let[s,r]=(0,eB.useState)(!1),o=(0,e$.useRelayEnvironment)(),d=(0,e$.useFragment)(ld,n),u=(0,e$.useFragment)(lo,t),c=d.id,m=d.name,[p,g]=(0,eB.useState)(“”),y=(0,eB.useCallback)(e=>{1===e.length?e9({environment:o,input:{fieldId:c,itemId:l,projectId:a,value:{iterationId:e[0].id}},onCompleted:i}):0===e.length&&e6({environment:o,input:{fieldId:c,itemId:l,projectId:a},onCompleted:i}),r(!1)},[o,c,l,a,i]),h=(0,eB.useCallback)(e=>{g(e)},[]),k=(0,eB.useMemo)(()=>{let e=(d.configuration?.iterations||[]).concat(d.configuration?.completedIterations||[]).map(e=>(0,e$.readInlineData)(lu,e));return p?e.filter(e=>e.title.toLowerCase().indexOf(p.toLowerCase())>=0):e},[d.configuration?.completedIterations,d.configuration?.iterations,p]),f=(0,eB.useMemo)(()=>new Set((d.configuration?.completedIterations||[]).map(e=>(0,e$.readInlineData)(lu,e).id)),[d.configuration?.completedIterations]),b=(0,eB.useMemo)(()=>{let e=d.configuration?.iterations||[],l=d.configuration?.completedIterations||[];return e.concat(l).map(e=>(0,e$.readInlineData)(lu,e)).filter(e=>e.id===u?.iterationId)},[d.configuration?.completedIterations,d.configuration?.iterations,u?.iterationId]),F=(0,eB.useCallback)(e=>({id:e.id,children:(0,eA.jsx)(lg,{startDate:e.startDate,durationInDays:e.duration,titleHTML:e.titleHTML}),source:e,groupId:f.has(e.id)?ly.groupId:lh.groupId}),[f]),I=(0,eB.useCallback)(e=>(0,eA.jsx)(ls,{showInput:s,setShowInput:r,anchorProps:e,placeholder:eH.k.emptySections.iterationPlaceholder,value:u?(0,eA.jsx)(lg,{startDate:u.startDate,durationInDays:u.duration,titleHTML:u.titleHTML}):null,name:m}),[m,s,u]),S=(0,eB.useMemo)(()=>f.size>0?[lh,ly]:[lh],[f.size]);return e?(0,eA.jsx)(lc.O,{items:k,groups:S,initialSelectedItems:b,filterItems:h,getItemKey:e=>e.id,convertToItemProps:F,placeholderText:eH.k.emptySections.iterationFilterPlaceholder,selectionVariant:”single”,onSelectionChange:y,renderAnchor:I,height:”large”}):(0,eA.jsx)(ls,{showInput:s,setShowInput:r,value:u?(0,eA.jsx)(lg,{startDate:u.startDate,durationInDays:u.duration,titleHTML:u.titleHTML}):null,placeholder:eH.k.emptySections.noValue(m),canUpdate:!1,name:m})}try{lk.displayName||(lk.displayName=”IterationField”)}catch{}let lf={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”NumberFieldFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”NumberFieldConfigFragment”}],storageKey:null}],type:”ProjectV2ItemFieldNumberValue”,abstractKey:null};lf.hash=”ac86c256f18719392417c8d6f6be4c01″;let lb={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”NumberFieldConfigFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”ProjectV2Field”,abstractKey:null};lb.hash=”aa7c72083a9ec843850d1089ba1ddda3″;var lF=a(66718),lI=a(30093),lS=a(19415);function lv({viewerCanUpdate:e,itemId:l,projectId:a,field:n,value:t,onIssueUpdate:i}){let[s,r]=(0,eB.useState)(!1),o=(0,eB.useRef)(null),d=(0,e$.useRelayEnvironment)(),u=(0,e$.useFragment)(lb,n),c=(0,e$.useFragment)(lf,t),m=u.id,p=u.name,g=c?.number?.toString()??””,[y,h]=(0,eB.useState)(g),[k,f]=(0,eB.useState)(void 0),b=(0,eB.useCallback)(()=>{k?(h(g),f(void 0)):e9({environment:d,input:{fieldId:m,itemId:l,projectId:a,value:{number:””===y?null:(0,lF.$J)(y)}},onCompleted:i})},[y,d,m,k,l,i,g,a]),F=(0,eB.useCallback)(e=>{f((0,lF.Ge)(e.target.value)),h(e.currentTarget.value)},[]),I=(0,eB.useCallback)(e=>{“Enter”===e.key&&(b(),r(!1)),”Escape”===e.key&&(e.stopPropagation(),o.current&&(h(g),o.current.blur(),r(!1)))},[b,g]);return e?(0,eA.jsx)(ls,{showInput:s,setShowInput:r,value:y,name:p,placeholder:eH.k.emptySections.numberPlaceholder,inputRef:o,onCommit:b,input:(0,eA.jsxs)(“div”,{children:[(0,eA.jsx)(lI.A,{“data-testid”:”number-field-input”,ref:o,size:”small”,type:”number”,onChange:F,onKeyDown:I,value:y,className:”NumberField-module__numberInput–niEAY”}),(0,eA.jsx)(lS.A,{caret:”top-left”,open:!!k,children:(0,eA.jsx)(lS.A.Content,{className:”NumberField-module__errorMessagePointer–OzQjU”,children:(0,eA.jsx)(“span”,{children:k})})})]})}):(0,eA.jsx)(ls,{showInput:s,setShowInput:r,placeholder:eH.k.emptySections.noValue(p),canUpdate:!1,value:y,name:p})}try{lv.displayName||(lv.displayName=”NumberField”)}catch{}let lx={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”SingleSelectFieldFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null};lx.hash=”46251798d3a30836a6711ecaa3cc54e8″;let lC={kind:”InlineDataFragment”,name:”SingleSelectFieldOptionFragment”};lC.hash=”be640a30fa15271b4fa34e75d3ddb9b1″;let lj={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”SingleSelectFieldConfigFragment”,selections:[eT={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},e_={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2SingleSelectFieldOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[{kind:”InlineDataFragmentSpread”,name:”SingleSelectFieldOptionFragment”,selections:[eT,{alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},e_,{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},eN={alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null}],args:null,argumentDefinitions:[]},eT,e_,{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},eN],storageKey:null}],type:”ProjectV2SingleSelectField”,abstractKey:null};lj.hash=”7609e6b1ac2a8d003401b9f85fcd3e61″;let lT={overflow:”hidden”,cursor:”inherit”,”> span”:{overflow:”hidden”,textOverflow:”ellipsis”}},l_={overflow:”hidden”,textOverflow:”ellipsis”,display:”inline-flex”,cursor:”inherit”,”> span”:{verticalAlign:”text-top”}};var lN=a(14307);let lK=({inputName:e,inputColor:l})=>{let a=(0,lN.Wk)(l);return(0,eA.jsx)(la.ou,{sx:{bg:a.bg,color:a.fg,borderColor:a.border,”:hover”:{bg:a.bg,color:a.fg,borderColor:a.border},…l_},size:”medium”,text:e,className:”SingleSelectToken-module__Token–FOSN8″})},lL=({inputColor:e})=>{let{bg:l,accent:a}=(0,lN.Wk)(e);return(0,eA.jsx)(la.az,{sx:{bg:l,borderColor:a},className:”SingleSelectToken-module__colorIndicator–mFcTC”})};try{lK.displayName||(lK.displayName=”SingleSelectToken”)}catch{}try{lL.displayName||(lL.displayName=”SingleSelectLeadingVisual”)}catch{}function lA({viewerCanUpdate:e,itemId:l,projectId:a,field:n,value:t,onIssueUpdate:i,isStatusField:s}){let[r,o]=(0,eB.useState)(!1),d=(0,e$.useRelayEnvironment)(),u=(0,e$.useFragment)(lj,n),c=(0,e$.useFragment)(lx,t),m=u.id,p=u.name,[g,y]=(0,eB.useState)(“”),h=(0,eB.useCallback)(e=>{1===e.length?e9({environment:d,input:{fieldId:m,itemId:l,projectId:a,value:{singleSelectOptionId:e[0].optionId}},onCompleted:i}):0===e.length&&e6({environment:d,input:{fieldId:m,itemId:l,projectId:a},onCompleted:i}),o(!1)},[d,m,l,i,a]),k=(0,eB.useCallback)(e=>{y(e)},[]),f=(0,eB.useMemo)(()=>{let e=(u.options||[]).map(e=>(0,e$.readInlineData)(lC,e));return g?e.filter(e=>e.name.toLowerCase().indexOf(g.toLowerCase())>=0):e},[u.options,g]),b=(0,eB.useMemo)(()=>(u.options||[]).map(e=>(0,e$.readInlineData)(lC,e)).filter(e=>e.optionId===c?.optionId),[u.options,c?.optionId]),F=(0,eB.useCallback)(e=>({id:e.optionId,children:(0,eA.jsxs)(“div”,{className:”SingleSelectField-module__optionContent–xJjmm”,children:[(0,eA.jsx)(lm.JR,{html:e.nameHTML}),(0,eA.jsx)(lm.JR,{html:e.descriptionHTML,className:”SingleSelectField-module__VerifiedHTMLText–zOUZc”})]}),source:e,leadingVisual:()=>(0,eA.jsx)(lL,{inputColor:e.color})}),[]),I=(0,eB.useCallback)(e=>(0,eA.jsx)(ls,{showInput:r,setShowInput:o,name:p,isStatusField:s,placeholder:s?(0,eA.jsxs)(“div”,{className:”SingleSelectField-module__statusPlaceholder–VhnZp”,children:[eH.k.emptySections.status,(0,eA.jsx)(eV.TriangleDownIcon,{})]}):(0,eA.jsx)(eA.Fragment,{children:eH.k.emptySections.singleSelectFilterPlaceholder}),value:c?.name&&c?.color?(0,eA.jsxs)(“div”,{className:”SingleSelectField-module__selectedValueContainer–kmRuq”,children:[(0,eA.jsx)(lK,{inputName:c.name,inputColor:c.color}),s&&(0,eA.jsx)(eV.TriangleDownIcon,{})]}):null,anchorProps:e}),[p,s,r,c?.color,c?.name]);if(!e)return(0,eA.jsx)(ls,{showInput:r,setShowInput:o,canUpdate:!1,name:p,placeholder:eH.k.emptySections.noValue(p),value:c?.name?(0,eA.jsx)(la.ou,{sx:(c.name,l_),size:”medium”,text:c.name}):null,isStatusField:s});return(0,eA.jsx)(lc.O,{items:f,initialSelectedItems:b,filterItems:k,getItemKey:e=>e.optionId,convertToItemProps:F,placeholderText:eH.k.emptySections.singleSelectFilterPlaceholder,selectionVariant:”single”,onSelectionChange:h,renderAnchor:I,height:”large”})}try{lA.displayName||(lA.displayName=”SingleSelectField”)}catch{}let lw={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TextFieldFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”text”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”TextFieldConfigFragment”}],storageKey:null}],type:”ProjectV2ItemFieldTextValue”,abstractKey:null};lw.hash=”69f479d8a39d90ca27cb126efa7b738b”;let lP={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TextFieldConfigFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”ProjectV2Field”,abstractKey:null};lP.hash=”7fbd4e4b2889e3438c0acaa4655bcc8d”;var lE=a(71315),lR=a(94236),lD=a(8645);function lV({viewerCanUpdate:e,itemId:l,projectId:a,field:n,value:t,onIssueUpdate:i}){let s=(0,e$.useRelayEnvironment)(),r=(0,eB.useRef)(null),o=(0,e$.useFragment)(lP,n),d=(0,e$.useFragment)(lw,t),u=o.id,c=o.name,[m,p]=(0,eB.useState)(!1),[g,y]=(0,eB.useState)(d?.text??””),h=(0,eB.useCallback)(()=>{e9({environment:s,input:{fieldId:u,itemId:l,projectId:a,value:{text:g}},onCompleted:i})},[s,u,l,a,g,i]),k=(0,eB.useCallback)(e=>{y(e.target.value)},[]),f=(0,eB.useCallback)(e=>{“Enter”===e.key&&(h(),p(!1)),”Escape”===e.key&&(e.stopPropagation(),r.current&&(y(d?.text??””),r.current.blur(),p(!1)))},[h,d?.text]),[b,F]=(0,eB.useState)(!1),I=(0,eB.useRef)(null),S=(0,eB.useCallback)(e=>()=>lE.cg?.open((0,lD.ml)(e),”_blank”,”noreferrer”),[]),v=(0,eB.useCallback)(()=>p(!0),[p]),x=(0,eB.useCallback)(()=>F(!0),[F]),C=(0,eB.useCallback)(e=>{“Enter”===e.key&&(e.preventDefault(),x())},[x]),j=(0,eB.useCallback)(l=>e&&l.preventDefault(),[e]),T=(0,eB.useMemo)(()=>g.split(/(\s+)/),[g]),[_,N,K]=(0,eB.useMemo)(()=>{let e=[],l=!1;return[T.map((a,n)=>{let t=(0,lD.o2)(a),i=(0,lD.ml)(t);return(0,lD.Y9)(i)&&(0,lD.cE)(i)?(l=!0,e.push(a),(0,eA.jsx)(eX.A,{tabIndex:0,href:(0,lD.ml)(a),onKeyDown:C,onClick:j,target:”_blank”,children:a},`text-field-link-${n}`)):a}),l,e]},[T,j,C]),L=N?{onClick:x}:void 0,A=(0,eA.jsx)(lR.W,{open:b,onOpenChange:e=>F(e),anchorRef:I,children:(0,eA.jsx)(lR.W.Overlay,{width:”small”,children:(0,eA.jsx)(eM.l,{children:(0,eA.jsxs)(eM.l.Group,{children:[K?.map((e,l)=>(0,eA.jsxs)(eM.l.Item,{onSelect:S(e),role:”button”,children:[(0,eA.jsx)(eM.l.LeadingVisual,{children:(0,eA.jsx)(eV.LinkIcon,{})}),e]},l)),e&&(0,eA.jsxs)(eM.l.Item,{onSelect:v,role:”button”,children:[(0,eA.jsx)(eM.l.LeadingVisual,{children:(0,eA.jsx)(eV.PencilIcon,{})}),”Edit”]})]})})})});return e?(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsx)(ls,{ref:I,value:_,anchorProps:L,name:c,placeholder:”Enter text\u2026″,inputRef:r,showInput:m,setShowInput:p,onCommit:h,input:(0,eA.jsx)(lI.A,{“data-testid”:”text-field-input”,ref:r,size:”small”,onChange:k,onKeyDown:f,value:g,className:”TextField-module__projectTextInput–XPyxL”})}),A]}):(0,eA.jsx)(ls,{showInput:m,setShowInput:p,placeholder:`No ${c}`,canUpdate:!1,value:_,name:c})}try{lV.displayName||(lV.displayName=”TextField”)}catch{}function lM({projectItem:e,onIssueUpdate:l}){let a=(0,e$.useFragment)(eJ,e),{fieldValues:n}=(0,e$.useFragment)(e0,a),t=(0,eB.useMemo)(()=>(a?.project.fields?.edges||[]).map(e=>{if(!e?.node||e.node.isIssueField||”Status”===e.node.name)return;let t=e.node,i=t.dataType,s=t.id,r=(n?.edges||[]).flatMap(e=>e?.node?[e.node]:[]).find(e=>e?.field?.id===s)||null,o={key:s,viewerCanUpdate:!a.isArchived&&a.project.viewerCanUpdate,itemId:a.id,projectId:a.project.id,field:t,value:r,onIssueUpdate:l};switch(i){case”SINGLE_SELECT”:return(0,eB.createElement)(lA,{…o,key:o.key});case”TEXT”:return(0,eB.createElement)(lV,{…o,key:o.key});case”DATE”:return(0,eB.createElement)(lr,{…o,key:o.key});case”NUMBER”:return(0,eB.createElement)(lv,{…o,key:o.key});case”ITERATION”:return(0,eB.createElement)(lk,{…o,key:o.key})}}).filter(e=>void 0!==e),[a.project.fields?.edges,a.project.viewerCanUpdate,a.project.id,a.isArchived,a.id,n?.edges,l]);return 0===t.length?(0,eA.jsx)(eA.Fragment,{children:” “}):(0,eA.jsx)(“ul”,{className:(0,e1.$)(lt,”ProjectsSections-module__FieldListInternal–NLirt”),children:t.map((e,l)=>(0,eA.jsx)(“li”,{className:ln,children:e},`project-field-${l}`))})}try{lM.displayName||(lM.displayName=”ProjectItemSectionFields”)}catch{}var lO=a(41057);function lB(){return(0,eA.jsx)(“ul”,{className:lt,children:(0,eA.jsxs)(“li”,{className:ln,children:[(0,eA.jsx)(l$,{}),(0,eA.jsx)(l$,{}),(0,eA.jsx)(l$,{})]})})}function l$(){return(0,eA.jsxs)(“span”,{style:{display:”flex”,flexDirection:”row”,alignItems:”center”,gap:8,width:”100%”,marginTop:2},children:[(0,eA.jsx)(lO.Q,{height:”md”,width:”40%”}),(0,eA.jsx)(lO.Q,{height:”md”,width:”60%”})]})}try{lB.displayName||(lB.displayName=”ProjectItemSectionFieldsLoading”)}catch{}try{l$.displayName||(l$.displayName=”ProjectFieldLoading”)}catch{}function lU(e){return(0,eA.jsx)(eB.Suspense,{fallback:(0,eA.jsx)(lB,{}),children:(0,eA.jsx)(lH,{…e})})}function lH({isArchived:e,projectItemId:l,projectId:a,onIssueUpdate:n}){let t=(0,e$.useRelayEnvironment)(),{addToast:i}=(0,eD.Y6)(),{node:s}=(0,e$.useLazyLoadQuery)(eY,{id:l}),r=(0,eB.useCallback)(()=>{!function({environment:e,input:l,onError:a,onCompleted:n}){(0,e$.commitMutation)(e,{mutation:eZ,variables:{input:l},onError:e=>a&&a(e),onCompleted:e=>n&&n(e)})}({environment:t,input:{projectId:a,itemId:l},onCompleted:()=>{i({type:”success”,message:eH.k.archivedSuccess})},onError:()=>{i({type:”error”,message:eH.k.archivedError})}})},[t,a,l,i]);if(!s||!s.project)return null;let o=e&&s.project.viewerCanUpdate;return(0,eA.jsxs)(eA.Fragment,{children:[o&&(0,eA.jsx)(“ul”,{className:lt,children:(0,eA.jsx)(“li”,{className:”ProjectsSections-module__ArchivedLi–ELvR5″,children:(0,eA.jsxs)(“span”,{className:”ProjectsSections-module__FieldListLiText–zEDBh”,children:[eH.k.archivedDescription,”\xa0″,(0,eA.jsx)(eX.A,{onClick:r,className:”ProjectItemSectionFieldList-module__restoreLink–npi95″,children:”Restore”})]})})}),(0,eA.jsx)(lM,{onIssueUpdate:n,projectItem:s})]})}try{lU.displayName||(lU.displayName=”ProjectItemSectionFieldList”)}catch{}try{lH.displayName||(lH.displayName=”ProjectItemSectionFieldListInternal”)}catch{}let lq={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”ProjectItemSectionView”,selections:[eK={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[eK,{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”template”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:eL=[{kind:”Literal”,name:”name”,value:”Status”}],concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”SingleSelectFieldConfigFragment”}],storageKey:’field(name:”Status”)’}],storageKey:null},{alias:null,args:eL,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”SingleSelectFieldFragment”}],storageKey:’fieldValueByName(name:”Status”)’}],type:”ProjectV2Item”,abstractKey:null};lq.hash=”7d5cd0d9d7271a8e8f19cce6e01dac52″;var lG=a(51802),lW=a(69497);function lz({projectItem:e,setOpen:l,open:a,onIssueUpdate:n,isProjectOpen:t}){let{id:i,project:s,fieldValueByName:r,isArchived:o}=(0,e$.useFragment)(lq,e);return(0,eA.jsxs)(“div”,{className:”ProjectItemSectionView-module__ProjectItemSectionViewContainer–Pjx02″,children:[t?(0,eA.jsxs)(“span”,{className:”ProjectItemSectionView-module__projectTitleText–AeMlK”,children:[s.template?(0,eA.jsx)(eV.ProjectTemplateIcon,{className:”fgColor-muted”,”aria-hidden”:”true”}):(0,eA.jsx)(eV.TableIcon,{className:”fgColor-muted”,”aria-hidden”:”true”}),(0,eA.jsx)(“span”,{className:”ProjectItemSectionView-module__truncatedProjectTitle–rFO6B”,children:s.title})]}):(0,eA.jsx)(“div”,{className:”ProjectItemSectionView-module__projectLinkContainer–aLELu”,children:(0,eA.jsxs)(eX.A,{href:s.url,hoverColor:”accent.fg”,tabIndex:0,className:”ProjectItemSectionView-module__projectLink–su_OB”,children:[s.template?(0,eA.jsx)(eV.ProjectTemplateIcon,{className:”fgColor-muted”,”aria-hidden”:”true”}):(0,eA.jsx)(eV.TableIcon,{className:”fgColor-muted”,”aria-hidden”:”true”}),(0,eA.jsx)(lW.A,{title:s.title,”data-testid”:lG.Y.projectTitle,className:”ProjectItemSectionView-module__Truncate–CxV2L”,children:s.title})]})}),(0,eA.jsxs)(“div”,{className:”ProjectItemSectionView-module__statusFieldContainer–yap_1″,children:[s.field&&void 0!==r&&(0,eA.jsx)(lA,{viewerCanUpdate:s.viewerCanUpdate&&!o,itemId:i,projectId:s.id,field:s.field,value:r,onIssueUpdate:n,isStatusField:!0}),(0,eA.jsx)(ll.K,{variant:”invisible”,onClick:()=>{l(!a)},size:”small”,icon:a?eV.ChevronUpIcon:eV.ChevronDownIcon,”aria-label”:a?eH.k.hideMoreProjectFields:eH.k.showMoreProjectFields,”aria-expanded”:a})]})]})}try{lz.displayName||(lz.displayName=”ProjectItemSectionView”)}catch{}function lQ({projectItem:e,onIssueUpdate:l,isOpen:a=!1}){let[n,t]=(0,eB.useState)(a),i=(0,e$.useFragment)(eQ,e);return(0,eA.jsxs)(“div”,{className:”ProjectItemSection-module__ProjectItemSectionContainer–BQnwM”,children:[(0,eA.jsx)(lz,{projectItem:i,open:n,setOpen:t,onIssueUpdate:l,isProjectOpen:a}),n&&(0,eA.jsx)(lU,{projectItemId:i.id,projectId:i.project.id,isArchived:i.isArchived,onIssueUpdate:l})]})}try{lQ.displayName||(lQ.displayName=”ProjectItemSection”)}catch{}let lY=()=>(0,eA.jsx)(eG.h,{title:eH.k.sectionTitles.projects}),lX=({ref:e,…l})=>(0,eA.jsx)(ez.X,{ref:e,id:l.id,title:eH.k.sectionTitles.projects,buttonProps:l});lX.displayName=”ProjectsSectionHeader”;let lZ=({sectionHeader:e,hasItems:l,children:a})=>(0,eA.jsx)(eW.w,{id:”sidebar-projects-section”,sectionHeader:e,emptyText:l?void 0:eH.k.emptySections.projects,children:a}),lJ=()=>(0,eA.jsx)(eW.w,{id:”projects-section-fallback”,sectionHeader:(0,eA.jsx)(eG.h,{title:”Projects are currently unavailable”}),emptyText:”Please try again later”}),l0=({owner:e,repo:l,projects:a,readonly:n,onSelectionChange:t,…i})=>{let s=”create-issue-sidebar-projects-section-heading”,r=n?(0,eA.jsx)(lY,{}):(0,eA.jsx)(eE.w,{pickerId:”create-issue-projects-picker”,owner:e,repo:l,selectedProjects:a,readonly:n,onSave:t,anchorElement:e=>(0,eA.jsx)(lX,{…e,id:s}),…i});return(0,eA.jsx)(eR.t,{fallback:(0,eA.jsx)(lJ,{}),children:(0,eA.jsx)(lZ,{sectionHeader:r,hasItems:a.length>0,children:a.length>0&&(0,eA.jsx)(eM.l,{“aria-labelledby”:s,variant:”full”,className:”ProjectsSection-module__projectActionList–VG9Tr”,children:a.map(e=>(0,eA.jsx)(eM.l.LinkItem,{href:e.url,className:”ProjectsSection-module__ActionList_LinkItem–fZc7M”,children:e.title},e.id))})})})},l1=ew;function l2(e){let l=(0,e$.useFragment)(l1,e.issueOrPullRequest);return l.projectItemsNext?(0,eA.jsx)(l4,{projectsSectionData:l,…e}):(0,eA.jsx)(lJ,{})}let l4=({projectsSectionData:e,allowedProjectOwner:l,onIssueUpdate:a,onRemovedFromProject:n,insideSidePanel:t,selectedProjectId:i,readonly:s})=>{let{addToast:r}=(0,eD.Y6)(),o=(e.projectItemsNext?.edges??[]).flatMap(e=>e?.node?e?.node:[]).filter(e=>!0!==e.project.closed),d=(e.projectItemsNext?.edges??[]).flatMap(e=>e?.node?e?.node:[]).filter(e=>!0===e.project.closed),[u,c]=(0,eB.useState)(!1),{viewerCanUpdateMetadata:m,viewerCanUpdate:p,repository:g}=e,y=s||!(m||p)||g?.isArchived,h=e.id||””,k=o.length>0||d.length>0,f=eU.ConnectionHandler.getConnectionID(h,”ProjectSection_projectItemsNext”,{allowedOwner:l,allowSameEnterprise:!0}),b=(0,e$.useRelayEnvironment)(),F=(0,eB.useCallback)(e=>{let l=e.filter(e=>!o.some(l=>l.project.id===e.id)),t=o.filter(l=>!e.some(e=>e.id===l.project.id)),s=!1;for(let e of l)(0,eP.Z)({environment:b,connectionId:f,projectId:e.id,issueId:h,onError:()=>s=!0,onCompleted:a});for(let e of t)!function({environment:e,connectionId:l,projectId:a,itemId:n,onError:t,onCompleted:i}){(0,e$.commitMutation)(e,{mutation:eq,variables:{input:{itemId:n,projectId:a},connections:[l]},onError:e=>t&&t(e),onCompleted:e=>i&&i(e)})}({environment:b,connectionId:f,projectId:e.project.id,itemId:e.id,onError:()=>s=!0,onCompleted:()=>{e.project.id===i&&n()}});s&&r({type:”error”,message:”Could not update projects”})},[r,f,b,h,a,n,o,i]),I=(0,eB.useMemo)(()=>o.map(e=>e.project),[o]),S=d.length,v=(0,eB.useMemo)(()=>!e.repository||y?(0,eA.jsx)(lY,{}):(0,eA.jsx)(eE.w,{pickerId:`edit-issue-projects-picker-${h}`,repo:e.repository.name,owner:e.repository.owner.login,selectedProjects:I,readonly:y,onSave:F,anchorElement:e=>(0,eA.jsx)(lX,{…e}),insidePortal:t}),[h,e.repository,y,F,I,t]);return e.repository&&e.number?(0,eA.jsx)(lZ,{sectionHeader:v,hasItems:k,children:(0,eA.jsxs)(“div”,{className:”ProjectsSection-module__projectItemsContainer–XwAWz”,children:[o.map(e=>(0,eA.jsx)(lQ,{onIssueUpdate:a,projectItem:e,isOpen:i===e.project.id},e.id)),S>0&&(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsx)(eO.Q,{variant:”invisible”,trailingVisual:u?eV.ChevronUpIcon:eV.ChevronDownIcon,onClick:()=>c(!u),”aria-label”:eH.k.showClosedProjects,className:”ProjectsSection-module__toggleClosedProjectsButton–E9nMY”,children:`${S} closed project${S>1?”s”:””}`}),u&&d.map(e=>(0,eA.jsx)(lQ,{onIssueUpdate:a,projectItem:e,isOpen:i===e.project.id},e.id))]})]})}):null};try{lY.displayName||(lY.displayName=”ReadonlyProjectsSectionHeader”)}catch{}try{lZ.displayName||(lZ.displayName=”ProjectsSection”)}catch{}try{lJ.displayName||(lJ.displayName=”ProjectsSectionFallback”)}catch{}try{l0.displayName||(l0.displayName=”CreateIssueProjectsSection”)}catch{}try{l2.displayName||(l2.displayName=”EditIssueProjectsSection”)}catch{}try{l4.displayName||(l4.displayName=”EditIssueProjectsSectionInternal”)}catch{}},31877:(e,l,a)=>{a.d(l,{Ir:()=>x,_g:()=>C,nH:()=>F});var n=a(74848),t=a(84363),i=a(24453),s=a(91253),r=a(19918),o=a(49275),d=a(38143),u=a(81289),c=a(81709),m=a(97665),p=a(71315),g=a(96540),y=a(96379),h=a(47544);async function k({owner:e,repo:l,query:a,first:n,number:t,loginNames:i,capabilities:s}){let r={owner:e,repo:l};a&&(r.query=a),void 0!==n&&(r.first=n),void 0!==t&&(r.number=t),i&&(r.loginNames=i),s&&s.length>0&&(r.capabilities=s.join(“,”));let o=(0,h.JF)(“assignees”,r),d=await (0,y.lS)(o);return await d.json()}var f=a(73049),b=a(11770);async function F(e,{owner:l,repo:a,query:n,first:t,number:i,loginNames:s,capabilities:r}){let o;o=void 0!==t?t:void 0!==s?s.length:void 0;let d=void 0!==s?s.join(“,”):void 0;return await e.fetchQuery({queryKey:[“item_picker”,”assignees”,{owner:l,repo:a,query:n,first:o,number:i,loginNames:d,capabilities:r}],queryFn:async()=>{var e;let t,s,u=await k({owner:l,repo:a,query:n,first:o,number:i,loginNames:d,capabilities:r});return e=(0,f.A)(u).data,s=[],e.repository.suggestedActors?(s=e.repository.suggestedActors.nodes,t=e.repository.suggestedActors.totalCount):e.repository.assignableUsers?(s=e.repository.assignableUsers.nodes,t=e.repository.assignableUsers.totalCount):e.repository.issueOrPullRequest?.suggestedActors&&(s=e.repository.issueOrPullRequest.suggestedActors.nodes),{assignees:s,repositoryId:e.repository.id,totalCount:t}}})}function I({repo:e,owner:l,number:a,assignees:t,suggestions:i,viewer:o,…d}){let[u,y]=(0,g.useState)(!i||0===i.length),[h,k]=(0,g.useState)(0),[f,b]=(0,g.useState)(!1),[I,S]=(0,g.useState)(null),v=(0,m.jE)(),x=(i?.length||0)>0;(0,g.useEffect)(()=>{p.X3||x||(async()=>{try{let n=await F(v,{owner:l,repo:e,query:””,number:a,first:10});S(n),y(!1),b(!1)}catch{b(!0),y(!1)}})()},[h,l,v,e,a,x]);let C=(0,g.useRef)(null),{createFallbackComponent:j}=(0,c.j)({errorMessage:r.k.cantEditItems(“assignees”),anchorElement:e=>d.anchorElement(e,C),open:!0}),T=(0,g.useCallback)(async n=>{try{y(!0);let t=await F(v,{owner:l,repo:e,query:n,number:a,first:10});return y(!1),b(!1),t.assignees}catch{return y(!1),b(!0),[]}},[v,l,e,a]),_=i||I?.assignees||[];return f?j(()=>k(e=>e+1)):(0,n.jsx)(s.l,{…d,assignees:t,suggestions:_,isLoading:u,searchAssignees:T,viewer:o})}function S({repo:e,owner:l,assignees:a,assigneeTokens:u,suggestions:y,includeAssignableBots:h,includeAuthorableBots:k,maximumAssignees:f,viewer:I,…S}){let[v,x]=(0,g.useState)(!1),[C,j]=(0,g.useState)(!1),[T,_]=(0,g.useState)(0),[N,K]=(0,g.useState)(null),[L,A]=(0,g.useState)(null),[w,P]=(0,g.useState)(null),E=(0,m.jE)(),R=(0,g.useMemo)(()=>(0,b.M)({includeAssignableBots:h,includeAuthorableBots:k}),[h,k]),D=u.length>0;(0,g.useEffect)(()=>{!p.X3&&D&&(async()=>{try{x(!0);let a=await F(E,{owner:l,repo:e,query:””,loginNames:u,capabilities:R});K(a),x(!1),j(!1)}catch{x(!1),j(!0)}})()},[T,l,e,u,R,E,D]);let V=(0,g.useCallback)(async a=>{if(w&&w<=d.t.maximumSuggestedUsers&&L)return x(!1),(0,t.t)({items:[...L,...S.noAssigneeOption?[o.v.noAssigneeData]:[]],filter:a,key:e=>e.isAgent&&e.displayName||e.login||(S.noAssigneeOption?.source?.login??””),secondaryKey:e=>`${e.name}`});try{x(!0);let n=await F(E,{owner:l,repo:e,query:a,first:d.t.maximumSuggestedUsers,capabilities:R}),t=n.assignees;return n.totalCount&&””===a.trim()&&P(n.totalCount),S.noAssigneeOption&&(0,i.O)(a,S.noAssigneeOption?.source?.login??””)&&t.unshift({…o.v.noAssigneeData}),x(!1),j(!1),t}catch{return x(!1),j(!0),[]}},[w,L,S.noAssigneeOption,E,l,e,R]),M=(0,g.useMemo)(()=>{let e=[];return a&&a.length>0?e=a:u.length>0&&(e=N?.assignees||[]),S.noAssigneeOption?.selected&&e.unshift(o.v.noAssigneeData),e},[u.length,a,N?.assignees,S.noAssigneeOption?.selected]);(0,g.useEffect)(()=>{(async()=>{A(await V(“”)),x(!1)})()},[]);let O=(0,g.useMemo)(()=>{let e=(L||[]).find(e=>e.isCopilot),l=[…y||L||[]];return e&&!l.find(e=>e.isCopilot)&&l.unshift(e),l},[L,y]),B=(0,g.useRef)(null),{createFallbackComponent:$}=(0,c.j)({errorMessage:r.k.cantEditItems(“assignees”),anchorElement:e=>S.anchorElement(e,B),open:!0});return C?$(()=>_(e=>e+1)):(0,n.jsx)(s.l,{…S,assignees:M,suggestions:O,isLoading:v,searchAssignees:V,maximumAssignees:f,viewer:I})}let v=e=>”author”===e?”item-pickers:open-author”:”item-pickers:open-assignees”;function x({repo:e,owner:l,number:a,anchorElement:t,readonly:i,assignees:s,suggestions:r,viewer:o,…d}){return(0,n.jsx)(u.y,{keybindingCommandId:v(d.name),anchorElement:(e,l)=>t(e,l),createChild:()=>(0,n.jsx)(I,{repo:e,owner:l,number:a,readonly:i,assignees:s,suggestions:r,viewer:o,triggerOpen:!0,anchorElement:t,…d}),insidePortal:d.insidePortal})}function C({anchorElement:e,…l}){return(0,n.jsx)(u.y,{anchorElement:(l,a)=>e(l,a),keybindingCommandId:v(l.name),createChild:()=>(0,n.jsx)(S,{anchorElement:e,triggerOpen:!0,…l}),insidePortal:l.insidePortal})}try{I.displayName||(I.displayName=”ItemPickerFetcherForIssue”)}catch{}try{S.displayName||(S.displayName=”ItemPickerFetcherForRepository”)}catch{}try{x.displayName||(x.displayName=”AssigneePicker”)}catch{}try{C.displayName||(C.displayName=”AssigneeRepositoryPicker”)}catch{}},33643:(e,l,a)=>{a.d(l,{C:()=>o});var n=a(96912),t=a(72471),i=a(26320),s=a(79639),r=a(9802);function o(e){if(!(0,n.f)(e))return””;let l=(0,t.GP)(e,”h:mm a”);return(0,i.c)(e)?`${l} today`:(0,s.P)(e)?`${l} yesterday`:(0,r.e)(e)?`${l} on ${(0,t.GP)(e,”MMMM d”)}`:`${l} on ${(0,t.GP)(e,”MMMM d, yyyy”)}`}},35669:(e,l,a)=>{a.d(l,{H_:()=>r,mZ:()=>o});var n=a(71315),t=a(74731),i=a(81724),s=a(94007);function r({includeRepository:e,repository:l,templateFileName:a,title:i,body:r,assignees:o,labels:d,projects:u,milestone:c,type:m}){let p=new URLSearchParams(n.cg?.location?.search||””);return e&&l&&(p.set(t.t.queryParams.org,l.owner.login),p.set(t.t.queryParams.repo,l.name)),a&&p.set(t.t.queryParams.template,a),(0,s.E2)(p,t.t.queryParams.title,i,t.t.maxQueryLengthLimits.title),(0,s.E2)(p,t.t.queryParams.body,r,t.t.maxQueryLengthLimits.body),o&&(0,s.Hx)(p,t.t.queryParams.assignees,o?o.map(e=>e.login):void 0,t.t.maxQueryLengthLimits.assignees),d&&(0,s.Hx)(p,t.t.queryParams.labels,d.map(e=>e.name),t.t.maxQueryLengthLimits.assignees),u&&l?.owner&&(0,s.Hx)(p,t.t.queryParams.projects,u.map(e=>`${l.owner.login}/${e.number}`),t.t.maxQueryLengthLimits.assignees),c&&p.set(t.t.queryParams.milestone,c.title),m&&p.set(t.t.queryParams.type,m.name),p.toString()}function o(e,l,a){let n=e.get(t.t.queryParams.org)||a?.owner||null,r=e.get(t.t.queryParams.repo)||a?.repository||null,o=e.get(t.t.queryParams.template)||a?.template||null,d={…null!==n&&null!==r&&{repository:{owner:n,name:r}},…null!==o&&{templateFileName:o}},u=(0,s.Qg)(e,t.t.queryParams.title,t.t.maxQueryLengthLimits.title)||a?.title,c=(0,s.Qg)(e,t.t.queryParams.permalink,t.t.maxQueryLengthLimits.body);c=void 0===c?(0,s.Qg)(e,t.t.queryParams.body,t.t.maxQueryLengthLimits.body)||a?.body:decodeURIComponent(c);let m={…void 0!==u&&{title:u},…void 0!==c&&{body:c},…l};if(0===Object.keys(d).length)if(!(Object.keys(m).length>0))return;else d={templateFileName:i.rp};return{…d,…Object.keys(m).length>0&&{initialValues:m}}}},36285:(e,l,a)=>{a.d(l,{N:()=>u});let n={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”setLabelsForLabelableRelayMutation”,selections:[{alias:null,args:i=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”SetLabelsForLabelablePayload”,kind:”LinkedField”,name:”setLabelsForLabelable”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”labelableRecord”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”LabelsSectionAssignedLabels”}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:t,kind:”Operation”,name:”setLabelsForLabelableRelayMutation”,selections:[{alias:null,args:i,concreteType:”SetLabelsForLabelablePayload”,kind:”LinkedField”,name:”setLabelsForLabelable”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”labelableRecord”,plural:!1,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”TypeDiscriminator”,abstractKey:”__isLabelable”},{alias:null,args:r=[{kind:”Literal”,name:”first”,value:100},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”NAME”}}],concreteType:”LabelConnection”,kind:”LinkedField”,name:”labels”,plural:!1,selections:[{alias:null,args:null,concreteType:”LabelEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”Label”,kind:”LinkedField”,name:”node”,plural:!1,selections:[o={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},s],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’labels(first:100,orderBy:{“direction”:”ASC”,”field”:”NAME”})’},{alias:null,args:r,filters:[“orderBy”],handle:”connection”,key:”MetadataSectionAssignedLabels_labels”,kind:”LinkedHandle”,name:”labels”},{kind:”InlineFragment”,selections:[o],type:”Node”,abstractKey:”__isNode”}],storageKey:null}],storageKey:null}]},params:{id:”ce4e6c29b102596a5c1e65c7da660aef”,metadata:{},name:”setLabelsForLabelableRelayMutation”,operationKind:”mutation”,text:null}};n.hash=”f0eeb3a48d277042e107513ab4ed8f62″;var t,i,s,r,o,d=a(18312);function u({environment:e,input:{labelableId:l,labels:a,labelableTypeName:t},clientMutationId:i,onError:s,onCompleted:r}){return(0,d.commitMutation)(e,{mutation:n,variables:{input:{labelableId:l,labelIds:a.map(e=>e.id),clientMutationId:i}},optimisticResponse:{setLabelsForLabelable:{labelableRecord:{__typename:t,__isNode:”true”,__isLabelable:”true”,id:l,labels:{pageInfo:{hasNextPage:!1,endCursor:null},edges:a.map(e=>({cursor:e.id,node:{__typename:”Label”,id:e.id,name:e.name,nameHTML:e.nameHTML,color:e.color,url:e.url,description:e.description}}))}}}},onError:e=>s&&s(e),onCompleted:e=>r&&r(e)})}},37630:(e,l,a)=>{a.d(l,{_:()=>d});let n={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”updateIssueIssueTypeSharedMutation”,selections:[{alias:null,args:i=[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”UpdateIssueIssueTypePayload”,kind:”LinkedField”,name:”updateIssueIssueType”,plural:!1,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[r={alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”issueType”,plural:!1,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:t,kind:”Operation”,name:”updateIssueIssueTypeSharedMutation”,selections:[{alias:null,args:i,concreteType:”UpdateIssueIssueTypePayload”,kind:”LinkedField”,name:”updateIssueIssueType”,plural:!1,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[r,s],storageKey:null}],storageKey:null}]},params:{id:”7f65e947ab21dc1572e9b06674ca6cab”,metadata:{},name:”updateIssueIssueTypeSharedMutation”,operationKind:”mutation”,text:null}};n.hash=”525c7c0b085e2a3347272a3cefbab2c2″;var t,i,s,r,o=a(18312);function d({environment:e,input:l,onError:a,onCompleted:t}){return(0,o.commitMutation)(e,{mutation:n,variables:{input:l},onError:e=>a&&a(e),onCompleted:e=>t&&t(e)})}},40846:(e,l,a)=>{a.d(l,{C:()=>r});var n=a(74848),t=a(82550),i=a(12683),s=a(96540);let r=({label:e,ariaLabel:l,testId:a,viewerDidAuthor:r,variant:o,leadingElement:d,className:u})=>{let c=s.useRef(null),[m,p]=(0,t.B)({contentRef:c,”aria-label”:l});return(0,n.jsxs)(i.JU,{variant:o||”secondary”,”data-testid”:a,”aria-label”:l,className:u,ref:c,sx:r?{borderColor:”accent.muted”}:{},…m,children:[d,e,p]})};try{r.displayName||(r.displayName=”CommentHeaderBadge”)}catch{}},41057:(e,l,a)=>{a.d(l,{Q:()=>o});var n=a(74848),t=a(82156),i=a(96540);let s={sm:16,md:20,lg:24,xl:32},r={rounded:”3px”,pill:”100px”,elliptical:”50%”},o=({height:e,width:l,borderRadius:a=”rounded”})=>{let[o,d]=(0,i.useState)(“100%”);(0,i.useEffect)(()=>{“random”===l&&d(`${Math.floor(40*Math.random()+40)}%`)},[l]);let u=”string”==typeof e&&e in s?`${s[e]}px`:e,c=”random”===l?o:”string”==typeof l&&l in s?`${s[l]}px`:l,m=”string”==typeof a&&a in r?r[a]:a;return(0,n.jsx)(t.f,{“data-testid”:”issues-loading-skeleton”,className:”IssuesLoadingSkeleton-module__container–Z01Fm”,style:{width:c,height:u,borderRadius:m}})};try{o.displayName||(o.displayName=”IssuesLoadingSkeleton”)}catch{}},41248:(e,l,a)=>{a.d(l,{m:()=>o});var n=a(74848),t=a(46173),i=a(40846);let s={MEMBER:”Member”,OWNER:”Owner”,MANNEQUIN:”Mannequin”,COLLABORATOR:”Collaborator”,CONTRIBUTOR:”Contributor”,FIRST_TIME_CONTRIBUTOR:”First-time contributor”,FIRST_TIMER:”First-time GitHub contributor”,NONE:””},r={MEMBER:({viewerDidAuthor:e,org:l})=>`${e?”You are”:”This user is”} a member of the ${l} organization.`,OWNER:({viewerDidAuthor:e,repo:l})=>`${e?”You are”:”This user is”} the owner of the ${l} repository.`,MANNEQUIN:()=>”This is a mannequin user.”,COLLABORATOR:({viewerDidAuthor:e,repo:l})=>`${e?”You have”:”This user has”} been invited to collaborate on the ${l} repository.`,CONTRIBUTOR:({viewerDidAuthor:e,repo:l})=>`${e?”You have”:”This user has”} previously committed to the ${l} repository.`,FIRST_TIME_CONTRIBUTOR:({viewerDidAuthor:e,repo:l})=>`${e?”You are”:”This user is”} a first-time contributor to the ${l} repository.`,FIRST_TIMER:({viewerDidAuthor:e})=>`${e?”This is your”:”This user’s”} first pull request on GitHub.`,NONE:()=>””},o=({association:e,org:l,repo:a,viewerDidAuthor:o})=>{let d=s[e]?e:”NONE”;if(“NONE”===d)return null;let u=r[d]({viewerDidAuthor:o??!1,org:l,repo:a});return(0,n.jsx)(i.C,{label:s[d],ariaLabel:u,testId:t.Y.commentAuthorAssociation,viewerDidAuthor:o})};try{o.displayName||(o.displayName=”CommentAuthorAssociation”)}catch{}},41305:(e,l,a)=>{a.d(l,{w:()=>c});var n=a(74848),t=a(2892),i=a(73017),s=a(84268),r=a(12683),o=a(30459),d=a(96540),u=a(69599);function c({labels:e,testId:l,onDelete:a,emptyText:c=”No labels”}){let{sendAnalyticsEvent:m}=(0,o.s)(),p=(0,u.G7)(“issues_report_sidebar_interactions”),g=(0,d.useMemo)(()=>0!==e.length&&e[0]?`${e[0].url.slice(0,e[0].url.lastIndexOf(“/labels/”))}/issues`:””,[e]),y=(0,d.useCallback)(e=>`${g}?q=${encodeURIComponent(`state:open label:”${e.name}”`)}`,[g]);return(0,n.jsx)(“div”,{tabIndex:-1,”data-testid”:l,className:”LabelsList-module__labelsListContainer–bS7BO”,children:e.length>0?e.sort((e,l)=>e.name===l.name?0:e.name>l.name?1:-1).map(e=>(0,n.jsx)(r.m_,{text:e.description??””,type:”description”,”aria-label”:e.description??””,sx:{visibility:e.description?”visible”:”hidden”},className:”LabelsList-module__labelDescriptionTooltip–LvHc0″,children:(0,n.jsxs)(s.A,{href:y(e),muted:!0,”aria-describedby”:`${e.id}-tooltip`,className:”LabelsList-module__labelLink–hHZBM”,onClick:()=>{p&&m(“analytics.click”,”ISSUE_SIDEBAR_LABEL_CLICK”)},onContextMenu:()=>{p&&m(“analytics.click”,”ISSUE_SIDEBAR_LABEL_RIGHT_CLICK”)},children:[(0,n.jsx)(t.a,{text:(0,n.jsx)(i.JR,{html:e.nameHTML}),onDelete:a?()=>a(e.id):void 0,fillColor:`#${e.color}`,style:{overflow:”hidden”,textOverflow:”ellipsis”,cursor:”pointer”,maxWidth:”100%”}},e.id),(0,n.jsx)(“span”,{className:”sr-only”,id:`${e.id}-tooltip`,children:e.description??””})]},e.id)},e.id)):c})}try{c.displayName||(c.displayName=”LabelsList”)}catch{}},41848:(e,l,a)=>{a.d(l,{k:()=>n});let n={mutationErrorMessage:”Something went wrong while setting the field value. Please try again.”,loadingFieldsTooltipMessage:”Couldn’t load issue fields”,loadingFieldsErrorMessage:”We couldn’t load the issue fields. Please try again later or if the problem persists contact support”,setValue:”None yet”,reloadWarningMessage:”Reload site? Changes you made might not be saved.”,textValidationMaxLength:(e,l)=>`Value cannot be more than ${l} characters (${e})`,textValidationEmpty:”Text cannot be empty.”,textEditorLabel:e=>`The value for the ${e} field`,textEditorToolbarLabel:e=>`Toolbar for ${e} field`,textEditorPlaceholder:”Type text\u2026″,numberEditorPlaceholder:”Type number\u2026″,numberValidation:{errorMessage:”Must contain only numbers, decimals, and optional negative sign”,max:e=>`Cannot be greater than ${e}`,min:e=>`Cannot be less than ${e}`},textEditorUpdateButton:”Update”,textEditorRemoveFieldButtonLabel:e=>`Remove field ${e}`,textEditorUpdateButtonAriaLabel:e=>`Update field ${e} (press enter to submit)`,textEditorCancelButton:”Cancel”,errorUpdatingIssueField:”There was an error updating this value. Please try again.”,editFieldValueLabel:e=>`Edit ${e}`}},42118:(e,l,a)=>{a.d(l,{hF:()=>O,xR:()=>V,s_:()=>M});var n=a(74848),t=a(69599),i=a(8403),s=a(73189),r=a(82075),o=a(31223),d=a(71651),u=a(21513),c=a(72511),m=a(96540),p=a(38621),g=a(40961);function y({onChange:e,inputValue:l,sourceContentFromDiffLines:a,onInsertSuggestedChange:t,shouldInsertSuggestionOnRender:s,editorRef:r}){let o=`\`\`\`suggestion ${a??””} \`\`\“,d=()=>{t(),r.current?.focus();let a=””===l?o:`${l} ${o}`;(0,g.flushSync)(()=>{e(a)});let n=document.activeElement;if(!n||!(n instanceof HTMLTextAreaElement))return;let i=a.length-3;n.selectionStart=i-1,n.selectionEnd=i-1};return(0,m.useEffect)(()=>{if(s){let e=window.setTimeout(()=>d());return()=>{window.clearTimeout(e)}}},[]),(0,n.jsx)(i.n.ToolbarButton,{icon:p.FileDiffIcon,”aria-label”:”Add a suggestion”,onClick:d})}try{y.displayName||(y.displayName=”AddSuggestionButton”)}catch{}var h=a(16049),k=a(62173),f=a(55255),b=a(91835);function F({onSave:e,validationResult:l,children:a,trailingIcon:t,disabled:i,size:s}){let r=(0,n.jsx)(b.x,{variant:”primary”,size:s,onClick:e,disabled:i||!l.isValid,trailingVisual:t&&i?p.AlertFillIcon:null,children:a});return l.isValid?r:(0,n.jsx)(f.A,{text:l.errorMessage,direction:”w”,”data-testid”:”save-button-tooltip”,children:r})}try{F.displayName||(F.displayName=”SaveButton”)}catch{}var I=a(12683),S=a(34164);let v=(0,m.createContext)(null),x=({children:e,subject:l,onInsertText:a,onSave:t})=>{let i,s=(0,m.useRef)(null),r=(0,m.useRef)(null),[{top:o,left:d},u]=(0,m.useState)({top:0,left:0});(0,m.useEffect)(()=>{let e=s.current;if(!e)return;let l=e?.querySelector(“textarea”),a={top:0,left:0};for(;l!==e;){if(null===l)return;a.top+=l.offsetTop,a.left+=l.offsetLeft,l=l.offsetParent instanceof HTMLElement?l.offsetParent:null}u(a)},[]),(0,m.useEffect)(()=>{let e=r.current;if(!e)return;s.current?.querySelector(“textarea”)&&e.reconnect?.();let l=()=>{e.querySelector(“.js-slash-command-menu:not(.d-none)”)||e.reconnect?.()},a=s.current?.querySelector(“textarea”);return a?.addEventListener(“focus”,l),()=>{a?.removeEventListener(“focus”,l)}},[]),(0,m.useEffect)(()=>{let e=r.current;if(!e)return;let l=s.current?.querySelector(“textarea”)||null,a=new MutationObserver(()=>{let a=s.current?.querySelector(“textarea”);a&&a!==l&&(l=a,e.querySelector(“.js-slash-command-menu:not(.d-none)”)||e.reconnect?.())});return s.current&&a.observe(s.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[]),(0,m.useEffect)(()=>{if(!t)return;let e=r.current;if(e)return e.addEventListener(“request-submit”,t),()=>{e.removeEventListener(“request-submit”,t)}},[t]);let c=(0,m.useMemo)(()=>({onInsertText:a}),[a]);return(0,n.jsx)(I.az,{ref:s,sx:{“& .js-slash-command-menu”:{mt:`${o}px`,ml:`${d}px`}},className:(0,S.$)(“js-slash-command-surface”,”SlashCommandsProvider-module__slashCommandContainer–ZPT3l”),children:(0,n.jsx)(“slash-command-expander”,{ref:r,keys:”/”,”data-slash-command-url”:(i=`/${l.repository.nwo}/slash_apps?surface=${function(e){switch(e){case”issue_comment”:return”issue_comment”;case”issue”:return”issue_body”;case”pull_request”:return”pull_request”;case”commit”:return”commit”}}(l.type)}`,l.id&&(i+=`&subject_gid=${l.id.id}`),i),children:(0,n.jsx)(v.Provider,{value:c,children:e})})})},C=()=>{let e=(0,m.useContext)(v);return e?(0,n.jsx)(i.n.ToolbarButton,{icon:p.DiffIgnoredIcon,”aria-label”:”Slash commands”,onClick:()=>e.onInsertText(“/”)}):null};try{v.displayName||(v.displayName=”SlashCommandButtonContext”)}catch{}try{x.displayName||(x.displayName=”SlashCommandsProvider”)}catch{}try{C.displayName||(C.displayName=”SlashCommandsButton”)}catch{}let j=//;var T=a(67702),_=a(70263),N=a(96379);function K(e){let l=(0,m.useRef)(void 0);return(0,m.useEffect)(()=>{l.current&&(l.current=void 0)},[e]),(0,m.useCallback)(()=>(l.current||(l.current=e()),l.current),[e])}async function L(e){try{let l=await (0,N.lS)(`/settings/replies${e?`?context=${e}`:””}`);return(await l.json()).map(e=>({name:e.title,content:e.body}))}catch{return[]}}async function A({subjectId:e,subjectType:l,subjectRepoId:a}){let n=e?`/${e}`:””,t=”?mention_suggester=1&user_avatar=1″;t=a?`${t}&repository_id=${a}`:t;let i=`/suggestions/${l}${n}${t}`,s=await (0,N.lS)(i,{method:”GET”});return await s.json()}async function w(e){try{return(await A(e)).map(e=>”login”in e?{description:e.name,identifier:e.login,avatarUrl:e.avatarUrl,participant:e.participant}:{description:e.description,identifier:e.name,avatarUrl:e.avatarUrl,participant:e.participant})}catch{return[]}}async function P({subjectId:e,subjectType:l,subjectRepoId:a}){let n=e?`/${e}`:””,t=await (0,N.lS)(`/suggestions/${l}${n}?issue_suggester=1&repository_id=${a}`,{method:”GET”});return await t.json()}async function E(e){try{let l=await P(e),a=l.icons;return l.suggestions.map(e=>({id:e.number.toString(),titleText:e.title,titleHtml:e.title,iconHtml:a[e.type]}))}catch{return[]}}let R={mentions:”loading”,references:”loading”,savedReplies:[]},D=[],V=i.n.ActionButton,M=()=>{let e=(0,r.A)(“localStorage”);return(0,t.G7)(“markdown_experience_hybrid_editor”)?e.getItem(“markdown_editor_selected_view”)??”edit”:”edit”},O=({ref:e,”aria-describedby”:l,”data-testid”:a,label:t,labelledBy:p,showLabel:g,disabled:f=!1,subject:b,viewMode:I,onChangeViewMode:S,value:v,placeholder:N,onChange:A,onSave:P,onCancel:V,validationResult:O,saveButtonText:B=”Save”,saveButtonTrailingIcon:$=!0,actions:U,footerButtons:H,toolbarButtons:q,contentIsStale:G,fileUploadsEnabled:W=!0,minHeightLines:z,maxHeightLines:Q,className:Y,onPrimaryAction:X,buttonSize:Z,suggestedChangesConfig:J,markdownErrorMessage:ee,teamHovercardsEnabled:el,setIsFileUploading:ea,markdownSuggestionsFetchMethod:en=”lazy”,lineNumber:et,filePath:ei,startLineNumber:es,onInputFocus:er,generatingText:eo})=>{let ed,eu=(ed=b)?”project”===ed.type?{subjectId:ed.id?.databaseId?.toString(),subjectType:ed.type}:{subjectId:ed.id?.databaseId?.toString()??ed.id?.id,subjectRepoId:ed.repository.databaseId,subjectType:”issue_comment”===ed.type?”issue”:ed.type}:{},ec=b?.type===”project”?b?.id?.databaseId.toString():void 0,[em,ep]=(0,m.useState)(“eager”===en),{mentions:eg,references:ey,emojis:eh,savedReplies:ek}=function(e={},l){let a=(0,_.A)(),n=function({subjectId:e,subjectType:l,subjectRepoId:a}){return K((0,m.useCallback)(()=>l&&(“project”===l||a)?w({subjectId:e,subjectType:l,subjectRepoId:a}):Promise.resolve([]),[l,a,e]))}(e),t=function({subjectId:e,subjectType:l,subjectRepoId:a}){return K((0,m.useCallback)(async()=>l&&a?E({subjectId:e,subjectType:l,subjectRepoId:a}):Promise.resolve([]),[e,l,a]))}(e),i=function({subjectType:e}){return K((0,m.useCallback)(()=>L(“issue”===e||”pull_request”===e?e:void 0),[e]))}(e),[s,r]=(0,m.useState)(R);(0,m.useEffect)(()=>{let e=async()=>{let[e,l,s]=await Promise.all([n(),t(),i()]);a()&&(e.length||l.length||s.length)&&r({mentions:e,references:l,savedReplies:s})};l&&e()},[n,t,i,a,l]);let o=(0,T.P)(l);return{…s,emojis:o.isPending?”loading”:o.data??D}}(eu,em),ef=(0,k.y)({…eu,path:ei,lineNumber:et,startCommitOid:b?.type===”project”?””:b?.comparison?.startCommitOid,startLineNumber:es,endCommitOid:b?.type===”project”?””:b?.comparison?.endCommitOid,baseCommitOid:b?.type===”project”?””:b?.comparison?.startCommitOid,subject:b?.type===”project”?void 0:b?.pullRequestNumber}),eb=(0,h.fU)(eu.subjectRepoId?.toString(),ec),eF=(0,r.A)(“localStorage”),eI=M(),[eS,ev]=(0,m.useState)(I??eI),[ex,eC]=(0,m.useState)(!1),ej=(0,m.useRef)(null);(0,u.T)(e??null,ej);let eT=(0,m.useRef)(null),e_=void 0!==b&&”repository”in b&&void 0!==b.repository,eN=e_&&b.repository.slashCommandsEnabled,[eK,eL]=(0,m.useState)(J?.shouldInsertSuggestedChange??!1);(0,m.useEffect)(()=>(eC(G??!1),()=>{eC(!1)}),[G]);let eA=(0,m.useMemo)(()=>ex?s.l:()=>{P?.(),ev(eI)},[P,ex,eI]),ew=(0,o.M)(eI);(0,m.useEffect)(()=>{ev(ew.current)},[eu.subjectRepoId,eu.subjectId,ew]),(0,m.useEffect)(()=>{I&&ev(I)},[I]);let eP=(0,m.useCallback)(e=>{ev(e),eF.setItem(“markdown_editor_selected_view”,”preview”===e?”edit”:e),S?.(e)},[S,eF]),eE=(0,m.useCallback)(e=>{ej.current?.focus();try{document.execCommand(“insertText”,!1,e)}catch{}},[ej]),eR=(0,m.useCallback)(()=>{“lazy”!==en||em||ep(!0),er?.()},[em,en,er]);ex&&null!==eT.current&&window.scrollY>173&&eT.current.scrollIntoView();let eD=(0,m.useMemo)(()=>j.test(v),[v]);(0,m.useEffect)(()=>{ea&&ea(eD)},[eD,ea]);let eV=(0,m.useMemo)(()=>e=>(0,m.isValidElement)(e)&&”object”==typeof e&&”symbol”==typeof e.type&&”Symbol(react.fragment)”===String(e.type)?m.Children.toArray(e.props.children):m.Children.toArray(e),[]),eM=(0,m.useMemo)(()=>e=>eV(e).map((e,l)=>(0,m.isValidElement)(e)?(0,m.cloneElement)(e,{key:l,disabled:f||eD}):e),[eV,f,eD]),eO=(0,d.z)(!1),eB=(0,n.jsxs)(m.Suspense,{children:[ex&&(0,n.jsx)(c.A,{ref:eT,variant:”danger”,className:”CommentBox-module__staleContentWarning–i6nrw”,children:”The content you are editing has changed. Please copy your edits and exit the editor.”}),(0,n.jsxs)(i.n,{“aria-describedby”:l,labelledBy:p,disabled:f,value:v,placeholder:void 0!==N?N:”Leave a comment”,emojiSuggestions:eh,emojiTone:eO.settings.emojiTone,mentionSuggestions:eg,referenceSuggestions:ey,viewMode:eS,onChangeViewMode:eP,onChange:A,onInputFocus:eR,onRenderPreview:ef,onUploadFile:W?eb:void 0,acceptedFileTypes:W?(0,h.jw)(e_):void 0,onPrimaryAction:()=>{eA(),X?.()},ref:ej,pasteUrlsAsPlainText:eO.settings.pasteUrlsAsPlainText,savedReplies:ek,monospace:eO.settings.useMonospaceFont,minHeightLines:z,maxHeightLines:Q,className:Y,teamHovercardsEnabled:el,onSavedRepliesOpen:eR,errorMessage:ee,generatingText:eo,children:[(0,n.jsx)(i.n.Label,{visuallyHidden:!g,children:t??”Markdown Editor”}),(0,n.jsxs)(i.n.Actions,{children:[eM(U),V&&(0,n.jsx)(i.n.ActionButton,{variant:”default”,size:Z,onClick:V,value:”Cancel”,children:”Cancel”}),eA&&O&&(0,n.jsx)(F,{onSave:eA,validationResult:O,trailingIcon:$,disabled:f||eD,size:Z,children:B})]}),(0,n.jsxs)(i.n.Toolbar,{children:[J?.showSuggestChangesButton&&(0,n.jsx)(y,{shouldInsertSuggestionOnRender:eK,inputValue:v,onChange:A,sourceContentFromDiffLines:J?.sourceContentFromDiffLines,editorRef:ej,onInsertSuggestedChange:()=>{J?.onInsertSuggestedChange(),eL(!1)}}),q,(0,n.jsx)(i.n.DefaultToolbarButtons,{}),(0,n.jsx)(C,{})]}),H&&(0,n.jsx)(i.n.Footer,{children:H})]})]});return(0,n.jsx)(“div”,{“data-testid”:a,className:”CommentBox-module__commentBoxContainer–yrAth”,children:eN?(0,n.jsx)(x,{subject:b,onInsertText:eE,onSave:eA,children:eB}):eB})};O.displayName=”CommentBox”},43570:(e,l,a)=>{a.d(l,{H:()=>r,k:()=>o});var n=a(74848),t=a(41848),i=a(4889);let s=/^-?\d+(\.\d+)?$/,r=e=>{if(“”===e)return null;if(!s.test(e))return t.k.numberValidation.errorMessage;let l=parseFloat(e);return l>0x7fffffff?t.k.numberValidation.max(0x7fffffff):l<-0x80000000?t.k.numberValidation.min(-0x80000000):null},o=e=>(0,n.jsx)(i.eH,{…e,inputProps:{placeholder:t.k.numberEditorPlaceholder,type:”number”},validate:r,isNumber:!0,className:e.className});try{s.displayName||(s.displayName=”NUMBER_PATTERN”)}catch{}try{o.displayName||(o.displayName=”IssueFieldNumberEditor”)}catch{}},43755:(e,l,a)=>{a.d(l,{J:()=>t});var n=a(79634);let t=()=>{let e=(0,n.X)();return{currentUser:e&&e.current_user?e.current_user:null}}},43952:(e,l,a)=>{a.d(l,{C5:()=>x,eJ:()=>T,Bk:()=>j,zD:()=>C});var n=a(74848);let t={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”MilestonesSectionMilestone”,selections:[{alias:null,args:null,concreteType:”Milestone”,kind:”LinkedField”,name:”milestone”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dueOn”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”progressPercentage”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”closedAt”,storageKey:null}],storageKey:null}],type:”Issue”,abstractKey:null};t.hash=”76d2f86529ad47c916131104f23ee735″;let i={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”MilestonesSectionFragment”,selections:[{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”MilestonesSectionMilestone”},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanSetMilestone”,storageKey:null}],type:”Issue”,abstractKey:null};i.hash=”72b43b6f8433e4a47b0321cf2aa3c5ea”;var s=a(52590),r=a(67126),o=a(90921),d=a(43258),u=a(5524),c=a(96540),m=a(18312),p=a(93513),g=a(2495),y=a(16810),h=a(21798),k=a(73867),f=a(73189),b=a(20177);let F=({progress:e})=>(0,n.jsxs)(“svg”,{role:”presentation”,width:”16″,height:”16″,”data-target”:”tracked-issues-progress.progress”,”data-circumference”:”38″,style:{transform:”rotate(-90deg)”},”data-testid”:b.Y.milestoneProgressIcon,children:[e<1?null:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0206 11.1074C9.68518 11.3949 9.18014 11.3561 8.8926 11.0206L5.8926 7.52061C5.62055 7.20322 5.63873 6.72989 5.93432 6.4343L7.43432 4.9343C7.74674 4.62188 8.25327 4.62188 8.56569 4.9343C8.87811 5.24672 8.87811 5.75325 8.56569 6.06567L7.58953 7.04182L10.1074 9.97935C10.3949 10.3148 10.3561 10.8198 10.0206 11.1074Z",fill:"var(--fgColor-done, var(--color-done-fg))"}),(0,n.jsx)("circle",{stroke:"var(--borderColor-default, var(--color-border-default))",strokeWidth:"2",fill:"transparent",cx:"50%",cy:"50%",r:"6"}),(0,n.jsx)("circle",{style:{transition:"stroke-dashoffset 0.35s"},stroke:"var(--fgColor-done, var(--color-done-fg))",strokeWidth:"2",strokeDasharray:38,strokeDashoffset:38-38*e,strokeLinecap:"round",fill:"transparent",cx:"50%",cy:"50%",r:"6"})]});try{F.displayName||(F.displayName="ProgressIcon")}catch{}function I({milestone:e,anchorProps:l}){return(0,n.jsx)(n.Fragment,{children:e?(0,n.jsxs)(u.l.LinkItem,{href:e.url||"#",target:"_blank","data-testid":b.Y.milestoneContainer,...l,onClick:f.l,children:[(0,n.jsx)(u.l.LeadingVisual,{children:(0,n.jsx)(F,{progress:e.progressPercentage/100})}),e.title,(0,n.jsx)(u.l.Description,{variant:"block",children:(0,n.jsx)(k.R,{closed:e.closed,closedAt:e.closedAt,progressPercentage:e.progressPercentage,dueOn:e.dueOn,showProgressPercentage:!0})})]},e.id):(0,n.jsx)("div",{className:"Milestone-module__hiddenPlaceholder--b_yit",...l})})}try{I.displayName||(I.displayName="Milestone")}catch{}let S=()=>(0,n.jsx)(g.h,{title:p.k.sectionTitles.milestones}),v=({sectionHeader:e,milestone:l,sx:a,className:t})=>(0,n.jsx)(y.w,{id:”sidebar-milestones-section”,sx:a,className:t,sectionHeader:e,emptyText:l?void 0:p.k.emptySections.milestones,children:(0,n.jsx)(u.l,{variant:”full”,children:(0,n.jsx)(I,{milestone:l})})});function x({milestone:e,onSelectionChange:l,viewerCanSetMilestone:a,className:t,sx:i,…s}){let r=a?(0,n.jsx)(o.D,{onSelectionChange:e=>{l(e?.[0]||null)},readonly:a,canCreateMilestone:a,activeMilestone:e,anchorElement:(e,l)=>(0,n.jsx)(h.X,{title:p.k.sectionTitles.milestones,buttonProps:e,ref:l}),showMilestoneDescription:!0,…s}):(0,n.jsx)(S,{});return(0,n.jsx)(v,{sx:i,className:t,sectionHeader:r,milestone:e})}let C=t,j=i;function T({issue:e,onIssueUpdate:l,insideSidePanel:a,readonly:t}){let i=(0,m.useFragment)(j,e),{repository:{owner:{login:u},name:g},id:y,viewerCanSetMilestone:k}=i,{milestone:f}=(0,m.useFragment)(C,i),{addToast:b}=(0,d.Y6)(),F=(0,m.useRelayEnvironment)(),I=(0,c.useCallback)(e=>{(0,s.v)({environment:F,input:{issueId:y,milestone:e.length>0?e.at(-1):null},onError:()=>b({type:”error”,message:r.S.couldNotUpdateMilestone}),onCompleted:l})},[b,F,y,l]),x=(0,c.useMemo)(()=>{let e=t||!k;return e?(0,n.jsx)(S,{}):(0,n.jsx)(o.D,{repo:g,owner:u,onSelectionChange:I,anchorElement:(e,l)=>(0,n.jsx)(h.X,{title:p.k.sectionTitles.milestones,buttonProps:e,ref:l}),readonly:e,canCreateMilestone:k,activeMilestone:f??null,insidePortal:a,showMilestoneDescription:!0,showNoMatchItem:!0})},[t,k,g,u,I,f,a]);return(0,n.jsx)(v,{sectionHeader:x,milestone:f??null})}try{S.displayName||(S.displayName=”ReadonlyMilestonesSectionHeader”)}catch{}try{v.displayName||(v.displayName=”MilestonesSection”)}catch{}try{x.displayName||(x.displayName=”CreateIssueMilestonesSection”)}catch{}try{T.displayName||(T.displayName=”EditIssueMilestonesSection”)}catch{}},44251:(e,l,a)=>{a.d(l,{k:()=>r});var n=a(16522),t=a(96540),i=a(69599),s=a(53419);function r(){let e,l,a,r,o=(0,n.c)(4);o[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.G7)(“issue_fields_report_usage”),o[0]=e):e=o[0];let d=e,u=(0,t.useRef)(null);o[1]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>{u.current=Date.now()},o[1]=l):l=o[1];let c=l;o[2]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{if(!d)return;let l=u.current?Date.now()-u.current:void 0;u.current=null;var a={…e,interactionDuration:l};let n={};for(let[e,l]of Object.entries(a))if(void 0!==l){let a=e.replace(/([a-z])([A-Z])/g,”$1_$2″).toLowerCase();Array.isArray(l)?n[a]=l.join(“,”):n[a]=l}(0,s.BI)(“issue_fields_usage”,{…n,version:”1.0.1″})},o[2]=a):a=o[2];let m=a;return o[3]===Symbol.for(“react.memo_cache_sentinel”)?(r={markInteractionStart:c,reportUsage:m},o[3]=r):r=o[3],r}},45750:(e,l,a)=>{a.d(l,{I:()=>s,_:()=>r});var n=a(74848),t=a(31877),i=a(72274);function s(e){let l=(0,i.u)();return(0,n.jsx)(t.Ir,{…e,viewer:l})}function r(e){let l=(0,i.u)();return(0,n.jsx)(t._g,{…e,viewer:l})}try{s.displayName||(s.displayName=”AssigneePicker”)}catch{}try{r.displayName||(r.displayName=”AssigneeRepositoryPicker”)}catch{}},46173:(e,l,a)=>{a.d(l,{Y:()=>n});let n={avatarLink:”avatar-link”,avatarName:”avatar-name”,commentAuthorAssociation:”comment-author-association”,commentSubjectAuthor:”comment-subject-author”,spammyLabel:”spammy-label”,sponsorLabel:”sponsor-label”,commentHeader:”comment-header”,commentHeaderLeftSideItems:”comment-header-left-side-items”,commentHeaderRightSideItems:”comment-header-right-side-items”,commentHeaderHamburger:”comment-header-hamburger”,commentHeaderHamburgerOpen:”comment-header-hamburger-open”,commentMenuRefComment:”comment-menu-ref-comment”,commentViewerOuterBox:e=>e?`comment-viewer-outer-box-${e}`:”comment-viewer-outer-box”,commentComposer:”comment-composer”,markdownBody:”markdown-body”,commentBox:(e=””)=>`markdown-editor-${e}`,readonlyCommentBox:(e=””)=>`readonly-markdown-editor-${e}`,commentSkeleton:”comment-skeleton”}},46377:(e,l,a)=>{a.d(l,{_:()=>u});var n=a(74848),t=a(5524),i=a(21373),s=a(69497),r=a(12683),o=a(96540);let d=”SharedPicker-module__dashedPickerButton–VyqkO”,u=({ref:e,leadingIconElement:l,anchorText:a,anchorProps:u,sharedPickerMainValue:c,ariaLabel:m,readonly:p,size:g,nested:y=!1,leadingIcon:h,hotKey:k,ariaLabelledBy:f,compressedTitle:b,className:F})=>{let I={“aria-labelledby”:f,”aria-label”:f?void 0:m,”aria-description”:o.useMemo(()=>{let e;if(c)return e=”string”==typeof c?c:b||””,`Currently selected: ${e}`},[c,b]),”aria-disabled”:y?p:void 0,disabled:p};if(y){let e=c?l:h&&(0,n.jsx)(h,{});return(0,n.jsxs)(t.l.Item,{…u,…I,role:”menuitem”,children:[e?(0,n.jsx)(t.l.LeadingVisual,{children:e}):null,a]})}return c?(0,n.jsx)(i.Q,{ref:e,size:g||”small”,…u,…I,className:F,children:(0,n.jsxs)(“div”,{className:”SharedPicker-module__pickerContentContainer–Rgp_C”,children:[(0,n.jsx)(“div”,{className:”SharedPicker-module__pickerLabelText–JSlao”,children:a}),(0,n.jsx)(r.az,{sx:{display:l?”flex”:”none”,”> *:not(:last-child)”:{}},className:”SharedPicker-module__leadingIconContainer–LQhJ_”,children:l}),(0,n.jsx)(“div”,{className:”SharedPicker-module__title–CNycE”,children:(0,n.jsx)(s.A,{title:b??c.toString()??””,children:c})})]})}):(0,n.jsx)(i.Q,{ref:e,size:”small”,leadingVisual:h,trailingVisual:k?()=>(0,n.jsx)(“div”,{className:”SharedPicker-module__hotkeyBadge–nXrIA”,children:k}):void 0,className:F?`${d} ${F}`:d,…I,…u,children:a})};u.displayName=”SharedPicker”},47544:(e,l,a)=>{a.d(l,{JF:()=>i,R1:()=>s,kP:()=>t});let n=”/_ghui/item-pickers”;function t(e){return`${n}/${e}`}function i(e,l={}){let a=new URLSearchParams(l).toString();return`${t(e)}${a&&`?${a}`}`}function s(){return`${n}/bulk_actions`}},47685:(e,l,a)=>{a.d(l,{e:()=>M,N:()=>V});var n,t,i,s,r,o,d,u,c=a(74848);let m={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”id”}],kind:”Fragment”,metadata:null,name:”TemplateListPaneQuery”,selections:[{alias:null,args:t=[{kind:”Variable”,name:”id”,variableName:”id”}],concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”TemplateListPane”}],type:”Repository”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”TemplateListPaneQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[i={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”hasIssuesEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null},{alias:null,args:null,concreteType:”IssueForm”,kind:”LinkedField”,name:”issueForms”,plural:!0,selections:[i,s={alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null},r={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”IssueTemplate”,kind:”LinkedField”,name:”issueTemplates”,plural:!0,selections:[i,s,r,o={alias:null,args:null,kind:”ScalarField”,name:”about”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isBlankIssuesEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isSecurityPolicyEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”securityPolicyUrl”,storageKey:null},{alias:null,args:null,concreteType:”RepositoryContactLink”,kind:”LinkedField”,name:”contactLinks”,plural:!0,selections:[r,o,{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasAnyTemplates”,storageKey:null}],type:”Repository”,abstractKey:null}],storageKey:null}]},params:{id:”616cce00c4f4fa38692beac78606b059″,metadata:{},name:”TemplateListPaneQuery”,operationKind:”query”,text:null}};m.hash=”48fd58d3a414612124beb28d391e3930″;let p={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TemplateListPane”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”hasIssuesEnabled”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”TemplateList”}],type:”Repository”,abstractKey:null};p.hash=”881cdbdb34820ab9cdf5b5c8e6409bb0″;var g=a(38621),y=a(18312),h=a(98338),k=a(96480);let f={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TemplateList”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null},{alias:null,args:null,concreteType:”IssueForm”,kind:”LinkedField”,name:”issueForms”,plural:!0,selections:[d={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},u={alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”IssueFormRow”}],storageKey:null},{alias:null,args:null,concreteType:”IssueTemplate”,kind:”LinkedField”,name:”issueTemplates”,plural:!0,selections:[d,u,{args:null,kind:”FragmentSpread”,name:”IssueTemplateRow”}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isBlankIssuesEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isSecurityPolicyEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”securityPolicyUrl”,storageKey:null},{alias:null,args:null,concreteType:”RepositoryContactLink”,kind:”LinkedField”,name:”contactLinks”,plural:!0,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”ExternalLinkTemplateRow”}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasAnyTemplates”,storageKey:null}],type:”Repository”,abstractKey:null};f.hash=”9273ddd168cea9d6445f53cc752642e5″;var b=a(71315),F=a(5524);a(69487);var I=a(66108);let S=({filename:e,onTemplateSelected:l,name:a,about:n,link:t,externalLink:i,trailingIcon:s})=>(0,c.jsxs)(F.l.LinkItem,{as:I.N,to:t??”#”,target:i?”_blank”:void 0,onClick:a=>{a.altKey||a.ctrlKey||a.metaKey||a.shiftKey||(i||t||(a.preventDefault(),a.stopPropagation()),l(e))},className:”IssueTemplateItem-module__templateItemContainer–LLWZY”,children:[(0,c.jsx)(“span”,{className:”IssueTemplateItem-module__actionListTitle–wBUhO”,children:a}),(0,c.jsx)(F.l.Description,{variant:”block”,children:n}),(0,c.jsx)(F.l.TrailingVisual,{children:s??(0,c.jsx)(g.ArrowRightIcon,{})})]},e);try{S.displayName||(S.displayName=”IssueTemplateItem”)}catch{}var v=a(81724),x=a(94007);let C=({nameWithOwner:e,onTemplateSelected:l})=>(0,c.jsx)(S,{filename:v.$K,onTemplateSelected:()=>l?.(v.$K,v.t7.BlankIssue),name:h.k.blankIssueName,about:h.k.blankIssueDescription,link:l?void 0:(0,x.Qy)(e,v.$K)});try{C.displayName||(C.displayName=”BlankIssueItem”)}catch{}var j=a(92858);let T={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”ExternalLinkTemplateRow”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”about”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null}],type:”RepositoryContactLink”,abstractKey:null};T.hash=”89d8106fd30fe009b4d13c1f4908f32e”;var _=a(73189);let N=({repositoryContactLink:e})=>{let l=(0,y.useFragment)(T,e);return(0,c.jsx)(S,{filename:l.name,onTemplateSelected:_.l,name:l.name,link:l.url,about:l.about,externalLink:!0,trailingIcon:(0,c.jsx)(g.LinkExternalIcon,{})})};try{N.displayName||(N.displayName=”ExternalLinkTemplateRow”)}catch{}let K={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”IssueFormRow”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null}],type:”IssueForm”,abstractKey:null};K.hash=”4707734c7aff8e836f17a948f0fc6e8d”;let L=({nameWithOwner:e,form:l,onTemplateSelected:a})=>{let n=(0,y.useFragment)(K,l);return(0,c.jsx)(S,{filename:n.filename,onTemplateSelected:e=>a?.(e,v.t7.IssueForm),name:n.name,about:n.description,link:a?void 0:(0,x.Qy)(e,n.filename)})};try{L.displayName||(L.displayName=”IssueFormRow”)}catch{}let A={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”IssueTemplateRow”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”about”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null}],type:”IssueTemplate”,abstractKey:null};A.hash=”2047157ce521e245c1030871b4d976b7″;let w=({nameWithOwner:e,template:l,onTemplateSelected:a})=>{let n=(0,y.useFragment)(A,l);return(0,c.jsx)(S,{filename:n.filename,onTemplateSelected:e=>a?.(e,v.t7.IssueTemplate),name:n.name,about:n.about,link:a?void 0:(0,x.Qy)(e,n.filename)})};try{w.displayName||(w.displayName=”IssueTemplateRow”)}catch{}let P=({link:e})=>(0,c.jsx)(S,{filename:”default-security-policy”,link:e,externalLink:!0,onTemplateSelected:_.l,name:h.k.securityPolicyName,about:h.k.securityPolicyDescription,trailingIcon:(0,c.jsx)(g.ShieldIcon,{})});try{P.displayName||(P.displayName=”SecurityPolicyRow”)}catch{}var E=a(89946),R=a(50167);function D({repository:e,onTemplateSelected:l,className:a,setIsNavigatingToNew:n}){let{optionConfig:t,displayMode:i}=(0,k.a)(),s=(0,y.useFragment)(f,e);if(!s.hasAnyTemplates&&!s.isBlankIssuesEnabled&&!s.isSecurityPolicyEnabled)return(0,c.jsx)(“span”,{children:h.k.noTemplates});if(t.canBypassTemplateSelection){let e=function(e){if(e.contactLinks&&e.contactLinks.length>0||e.isSecurityPolicyEnabled&&e.securityPolicyUrl||e.isBlankIssuesEnabled)return null;let l=null;if(e.issueForms){if(1===e.issueForms.length)l=e.issueForms[0].filename;else if(e.issueForms.length>1)return null}if(e.issueTemplates)if(l){if(e.issueTemplates.length>0)return null}else 1===e.issueTemplates.length&&(l=e.issueTemplates[0].filename);if(!l)return null;let a=b.fV?.origin??””,n=`${a}/${e.nameWithOwner}`;return(0,x.RG)({repositoryAbsolutePath:n,fileName:l})}(s);if(e)return n?.(!0),t.navigate?.(e),null;n?.(!1)}let r=[…s.issueForms||[],…s.issueTemplates||[]].sort((e,l)=>e.filename.localeCompare(l.filename)).map(e=>”IssueForm”===e.__typename?(0,c.jsx)(L,{onTemplateSelected:l,form:e,nameWithOwner:s.nameWithOwner},e.filename):(0,c.jsx)(w,{onTemplateSelected:l,template:e,nameWithOwner:s.nameWithOwner},e.filename)),o=(0,c.jsxs)(c.Fragment,{children:[r,s.isBlankIssuesEnabled&&(0,c.jsx)(C,{onTemplateSelected:l,nameWithOwner:s.nameWithOwner},v.$K),s.isSecurityPolicyEnabled&&(0,c.jsx)(P,{link:s.securityPolicyUrl},”security_policy”),s.contactLinks&&s.contactLinks.map(e=>(0,c.jsx)(N,{repositoryContactLink:e},`contact_links.${e.name}`))]});return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(F.l,{className:a,”data-testid”:j.Y.templateList,showDividers:!0,variant:”inset”,children:t.showRepositoryPicker&&i===R.q.TemplatePicker?(0,c.jsxs)(F.l.Group,{children:[(0,c.jsx)(F.l.GroupHeading,{as:”h2″,variant:”filled”,className:`position-sticky top-0 x ${!t.insidePortal&&”border-top-0″} ${E.A.templateHeader}`,children:h.k.templatesFormsTitle}),o]}):o})})}try{D.displayName||(D.displayName=”TemplateList”)}catch{}function V({repositoryId:e,…l}){let a=(0,y.useLazyLoadQuery)(m,{id:e});return a.node?(0,c.jsx)(M,{repository:a.node,…l}):null}function M({repository:e,descriptionId:l,…a}){let{optionConfig:n}=(0,k.a)(),{insidePortal:t}=n,i=(0,y.useFragment)(p,e);return(0,c.jsx)(“div”,{children:i.hasIssuesEnabled?(0,c.jsx)(D,{repository:i,…a,className:`${!t?`border borderColor-muted rounded-2 overflow-hidden ${n.showRepositoryPicker?”pt-0 mt-0″:”py-2 mt-2″}`:””}`}):(0,c.jsxs)(“div”,{className:”TemplateListPane-module__disabledStateGap–AF9Nn d-flex flex-row flex-items-center m-3″,children:[(0,c.jsx)(g.InfoIcon,{}),(0,c.jsx)(“span”,{id:l,children:h.k.issuesDisabledForRepo})]})})}try{V.displayName||(V.displayName=”TemplateListPaneFromRepo”)}catch{}try{M.displayName||(M.displayName=”TemplateListInternal”)}catch{}},49246:(e,l,a)=>{a.d(l,{S:()=>s});var n=a(74848),t=a(96480),i=a(17831);function s({children:e,…l}){return(0,n.jsx)(t.o,{…l,children:(0,n.jsx)(i.s,{…l,children:e})})}try{s.displayName||(s.displayName=”IssueCreateContextProvider”)}catch{}},49275:(e,l,a)=>{a.d(l,{v:()=>n});let n={noMilestoneData:{id:”no-milestone”,title:”No milestone”,closed:!1},noLabelsData:{id:”no-labels”,name:”No labels”,color:”ededed”,description:”Issues with no labels”},noAssigneeData:{id:”no-assignee”,login:”No assignees”,avatarUrl:””},noMatchData:{id:”no-match-item”,avatarUrl:””,description:”Filter by user”},noTypeData:{id:”no-type”,name:”No type”,color:”ededed”,description:”Issues with no type”}}},49669:(e,l,a)=>{a.d(l,{t:()=>m});var n,t,i,s=a(74848),r=a(2320);let o={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”owner”},{defaultValue:null,kind:”LocalArgument”,name:”repo”}],kind:”Fragment”,metadata:null,name:”usePreloadedLabelsQuery”,selections:i=[{alias:null,args:[{kind:”Variable”,name:”name”,variableName:”repo”},{kind:”Variable”,name:”owner”,variableName:”owner”}],concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[t={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,concreteType:”LabelConnection”,kind:”LinkedField”,name:”labels”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”totalCount”,storageKey:null},{alias:null,args:null,concreteType:”Label”,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[t,{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”usePreloadedLabelsQuery”,selections:i},params:{id:”3e32908c91bf1665aa4acc9da94bd619″,metadata:{},name:”usePreloadedLabelsQuery”,operationKind:”query”,text:null}};o.hash=”29b91e6e7012c171094bcd0c3cf2f71f”;var d=a(96540),u=a(18312);function c(e){var l,a;let n,t=(l=e.owner,a=e.repo,n=(0,u.useClientQuery)(o,{owner:l,repo:a}),(0,d.useMemo)(()=>{if(!n?.repository?.labels?.nodes?.length||!n?.repository?.id)return;let e=(n.repository.labels.nodes||[]).flatMap(e=>e?[e]:[]);return{repositoryId:n.repository.id,labels:e,totalCount:n.repository.labels.totalCount||0}},[n]));return(0,s.jsx)(r.t,{…e,preloadedLabels:t})}try{c.displayName||(c.displayName=”LabelPickerTsqWithRelayWrapper”)}catch{}function m(e){return(0,s.jsx)(c,{…e})}try{m.displayName||(m.displayName=”LabelPicker”)}catch{}},50167:(e,l,a)=>{a.d(l,{q:()=>n});let n={TemplatePicker:”TemplatePicker”,IssueCreation:”IssueCreation”,IssueDuplication:”IssueDuplication”}},51802:(e,l,a)=>{a.d(l,{Y:()=>n});let n={issueBody:”issue-body”,bodyLoading:”body-loading”,commentBox:(e=””)=>`markdown-editor-${e}`,projectTitle:”project-title”}},51928:(e,l,a)=>{a.d(l,{f:()=>p,i:()=>c});var n,t=a(74848),i=a(69599),s=a(86391),r=a(96540),o=a(19918),d=a(14307);try{(n=IssueTypePickerItemLeadingVisual).displayName||(n.displayName=”IssueTypePickerItemLeadingVisual”)}catch{}var u=a(49275);let c=”UNSET”,m=[];function p({activeIssueType:e,issueTypes:l=m,issueTypeToken:a,noTypeItem:n,showUnset:p=!1,anchorElement:g,insidePortal:y,isLoading:h,nested:k,onSelectionChange:f,title:b=o.k.typesHeader,triggerOpen:F=!0,width:I=”large”,onOpen:S}){let[v,x]=(0,r.useState)(“”),C=(0,r.useMemo)(()=>{let e=a&&'”‘===a[0]&&'”‘===a[a.length-1]?a.slice(1,-1):a;return l.find(l=>l.name===e)},[l,a]),j=(0,r.useMemo)(()=>{let e=l.slice().sort((e,l)=>e.name.localeCompare(l.name));return(n?e.unshift(u.v.noTypeData):p&&e.unshift({id:c,name:”No issue type”,isEnabled:!0,description:””,color:”GRAY”}),v)?e.filter(e=>e.name.toLowerCase().indexOf(v.toLowerCase())>=0):e},[l,v,p,n]),T=(0,r.useCallback)(e=>{x(e)},[]),_=(0,r.useCallback)(e=>e.id,[]),N=(0,r.useCallback)(e=>{let l;return{id:e.id,text:e.name,description:e.description??””,descriptionVariant:”block”,leadingVisual:(l=e.color,function(){let e=d.i4.find(e=>e===l),{bg:a,accent:n}=(0,d.Wk)(e);return(0,t.jsx)(“div”,{style:{“–bg”:`${a}`,”–accent”:`${n}`},className:”IssueTypePickerItemLeadingVisual-module__issueTypeColorIndicator–ivyh6″})}),source:e}},[]),K=(0,r.useMemo)(()=>n?.selected?[u.v.noTypeData]:e?[e]:C?[C]:[],[e,C,n]),L=(0,r.useRef)(null),A=(0,r.useMemo)(()=>0===j.length,[j.length]),w=(0,i.G7)(“issues_react_select_panel_fullscreen_on_narrow”);return(0,t.jsx)(s.O,{loading:h,items:j,initialSelectedItems:K,filterItems:T,title:b,getItemKey:_,convertToItemProps:N,placeholderText:”Filter types”,selectionVariant:”single”,onSelectionChange:f,onOpen:S,renderAnchor:e=>g(e),insidePortal:y,height:”large”,width:I,nested:k,resultListAriaLabel:”Issue Type results”,triggerOpen:F,keybindingCommandId:”item-pickers:open-issue-type”,selectPanelRef:L,improvedNoMatchAccessibility:A,noMatchMessage:A?{title:”No issue types were found”,variant:”empty”,body:”Try searching with a different query for results.”}:void 0,responsiveOnNarrow:w})}try{p.displayName||(p.displayName=”IssueTypePickerBase”)}catch{}},52590:(e,l,a)=>{a.d(l,{v:()=>o});let n={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”updateIssueMilestoneRelayMutation”,selections:s=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”UpdateIssuePayload”,kind:”LinkedField”,name:”updateIssue”,plural:!1,selections:[{alias:null,args:null,concreteType:”Issue”,kind:”LinkedField”,name:”issue”,plural:!1,selections:[i={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,concreteType:”Milestone”,kind:”LinkedField”,name:”milestone”,plural:!1,selections:[i,{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”dueOn”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”progressPercentage”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”closedAt”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:t,kind:”Operation”,name:”updateIssueMilestoneRelayMutation”,selections:s},params:{id:”15f7936034547bc129d53f9c6b14fba9″,metadata:{},name:”updateIssueMilestoneRelayMutation”,operationKind:”mutation”,text:null}};n.hash=”253dc6aa9f06016bb138f16bb1697b39″;var t,i,s,r=a(18312);function o({environment:e,input:{issueId:l,milestone:a,clientMutationId:t},onError:i,onCompleted:s}){return(0,r.commitMutation)(e,{mutation:n,variables:{input:{id:l,milestoneId:a?a.id:null,clientMutationId:t}},optimisticResponse:{updateIssue:{issue:{id:l,milestone:a?{id:a.id,title:a.title,closed:a.closed,dueOn:a.dueOn,progressPercentage:a.progressPercentage,url:a.url,closedAt:a.closedAt}:null}}},onError:e=>i&&i(e),onCompleted:e=>s&&s(e)})}},58335:(e,l,a)=>{a.d(l,{l:()=>b});var n=a(74848),t=a(25407),i=a(83494),s=a(38621),r=a(86877),o=a(46720),d=a(84268),u=a(21373),c=a(10095),m=a(12683),p=a(34164),g=a(96540),y=a(89064),h=a(98338),k=a(92858),f=a(96480);let b=({className:e,sx:l,hideCreateMore:a=!1,onClose:b})=>{let{createMore:F,setCreateMore:I,createMoreCreatedPath:S,onCreateAction:v,isSubmitting:x,isFileUploading:C,isSubIssue:j,optionConfig:{insidePortal:T}}=(0,f.a)(),[_,N]=(0,g.useState)(!1),K=(0,g.useRef)(null),L=()=>!x&&(!C||(N(!0),!1)),A=async()=>{L()&&v?.current?.onCreate(x,F)};(0,g.useEffect)(()=>{K.current&&!C&&!x&&_&&(N(!1),K.current.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0})))},[C,x,_]);let w={“github:submit-form”:A};return a||(w[“issue-create:submit-and-create-more”]=()=>{I(!0),L()&&v?.current?.onCreate(x,!0)}),(0,n.jsxs)(“div”,{className:(0,p.$)(“CreateIssueFooter-module__container–C49xM”,e,”CreateIssueFooter-module__CreateIssueFooterContainer–iM6Iv”),children:[(0,n.jsx)(i.ak,{commands:w}),_&&(0,n.jsxs)(“div”,{className:”CreateIssueFooter-module__fileUploadWarningSection–M7r9j”,children:[(0,n.jsx)(c.A,{icon:s.InfoIcon,size:16}),(0,n.jsx)(“span”,{className:”CreateIssueFooter-module__warningMessageText–fKwCF”,children:h.k.fileUploadWarning})]}),(0,n.jsxs)(m.az,{sx:{…l},className:”CreateIssueFooter-module__mainContentWrapper–cs_cN”,children:[!a&&(0,n.jsxs)(m.az,{sx:{ml:2*!T},className:”CreateIssueFooter-module__checkboxAndLinksSection–TMq5G”,children:[(0,n.jsxs)(r.A,{className:”CreateIssueFooter-module__FormControl–g1A8W”,children:[(0,n.jsx)(o.A,{“data-testid”:k.Y.createMoreIssuesCheckbox,checked:F,onChange:()=>{I(!F)},className:”CreateIssueFooter-module__Checkbox–RNE52″}),(0,n.jsx)(r.A.Label,{children:j?y.l.createMoreSubIssues:y.l.createMore})]}),(0,n.jsx)(“div”,{“data-testid”:k.Y.issueCreatedAnnouncement,className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,role:”status”,children:S.number?h.k.lastIssueCreated(S.number):null}),S.number?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(“span”,{className:”CreateIssueFooter-module__separatorDot–HAWps”,children:”\xb7″}),(0,n.jsx)(d.A,{href:(0,t.dRG)({owner:S.owner,repo:S.repo,issueNumber:S.number}),”data-testid”:k.Y.issueCreatedLink,children:h.k.lastIssueCreated(S.number)})]}):null]}),(0,n.jsxs)(“div”,{className:”CreateIssueFooter-module__actionButtonsContainer–UzT1K”,children:[b&&(0,n.jsx)(u.Q,{onClick:()=>b(),children:y.l.cancel}),(0,n.jsx)(i.cQ,{commandId:”github:submit-form”,variant:”primary”,inactive:x||C,”data-testid”:k.Y.createIssueButton,ref:K,showKeybindingHint:!0,children:y.l.create})]})]})]})};try{b.displayName||(b.displayName=”CreateIssueFooter”)}catch{}},59123:(e,l,a)=>{a.d(l,{r5:()=>v});var n,t,i=a(74848),s=a(73189),r=a(56149),o=a(94236),d=a(5524),u=a(86877),c=a(46720),m=a(21373),p=a(57387),g=a(96540),y=a(18312),h=a(69487);let k={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”blockUserFromOrganizationMutation”,selections:t=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”BlockUserFromOrganizationPayload”,kind:”LinkedField”,name:”blockUserFromOrganization”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”clientMutationId”,storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”blockUserFromOrganizationMutation”,selections:t},params:{id:”cc2dfdd4807633d71341d55e85bdcec5″,metadata:{},name:”blockUserFromOrganizationMutation”,operationKind:”mutation”,text:null}};k.hash=”1cc6b979024f82ac249a77676892c1f0″;let f=”BlockUserFromOrgDialog-module__BlockUserFormRow–kI5df”,b=”BlockUserFromOrgDialog-module__BlockUserHelpText–znGRy”;var F=a(4551);let I={ONE_DAY:”For 1 day”,THREE_DAYS:”For 3 days”,SEVEN_DAYS:”For 7 days”,THIRTY_DAYS:”For 30 days”,INDEFINITE:”Until I unblock them”},S={ONE_DAY:”1″,THREE_DAYS:”3″,SEVEN_DAYS:”7″,THIRTY_DAYS:”30″,INDEFINITE:”0″},v=({onBlock:e,onClose:l,…a})=>{let[n,t]=(0,g.useState)(“INDEFINITE”),[s,m]=(0,g.useState)(!0),[y,h]=(0,g.useState)(!1),[k,S]=(0,g.useState)(void 0),v=a.contentAuthor.login;return(0,i.jsx)(r.ZL,{children:(0,i.jsx)(p.l,{title:`Block ${a.contentAuthor.login} from ${a.organization.login}`,renderFooter:()=>e?(0,i.jsx)(j,{onBlock:e,onClose:l,…a,notifyBlockedUser:s,hideComment:y,duration:n,hiddenReason:k}):(0,i.jsx)(C,{onClose:l,…a,notifyBlockedUser:s,hideComment:y,duration:n,hiddenReason:k}),width:”xlarge”,height:”auto”,onClose:l,className:”BlockUserFromOrgDialog-module__BlockUserDialog–I4tCJ”,children:(0,i.jsxs)(“div”,{className:”BlockUserFromOrgDialog-module__BlockUserContainer–EfgwE”,children:[(0,i.jsx)(“div”,{className:f,children:(0,i.jsx)(“div”,{children:(0,i.jsxs)(“span”,{children:[“Blocking a user prevents them from interacting with repositories of this organization, such as opening or commenting on pull requests or issues. Learn more about”,” “,(0,i.jsx)(“a”,{href:”https://docs.github.com/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-organization”,children:”blocking a user.”})]})})}),(0,i.jsx)(“div”,{className:f,children:(0,i.jsxs)(o.W,{children:[(0,i.jsxs)(o.W.Button,{children:[“Block a user: “,I[n]]}),(0,i.jsx)(o.W.Overlay,{children:(0,i.jsx)(d.l,{selectionVariant:”single”,children:(0,i.jsxs)(d.l.Group,{children:[(0,i.jsx)(d.l.GroupHeading,{children:”Block options”}),Object.keys(I).map(e=>(0,i.jsx)(d.l.Item,{onSelect:()=>{t(e)},selected:e===n,children:I[e]},e))]})})})]})}),(0,i.jsx)(x,{}),(0,i.jsx)(“h4″,{children:”More options”}),(0,i.jsxs)(u.A,{className:”BlockUserFromOrgDialog-module__BlockUserFormControl–jMHp4″,children:[(0,i.jsx)(c.A,{checked:s,onChange:()=>m(!s),”aria-checked”:s}),(0,i.jsx)(u.A.Label,{children:”Send user a notification and show activity in timeline”}),(0,i.jsx)(u.A.Caption,{children:(0,i.jsxs)(“span”,{className:b,children:[“You can notify “,(0,i.jsx)(“b”,{children:v}),” as to why they’re being blocked. A public timeline entry will show that this user was blocked. They will receive an email notification and a notice when they try to comment with the following message:”,(0,i.jsx)(“div”,{className:”BlockUserFromOrgDialog-module__BlockUserIndentedContainer–lH9mJ”,children:(0,i.jsxs)(“blockquote”,{children:[“A maintainer of the @”,a.organization.login,” organization has blocked you because of”,” “,(0,i.jsx)(“a”,{href:a.contentUrl,children:”this content”}),”. For more information please see”,” “,(0,i.jsx)(“a”,{href:”https://docs.github.com/site-policy/github-terms/github-community-guidelines”,children:”the community guidelines”}),”.”]})})]})})]}),(0,i.jsxs)(u.A,{children:[(0,i.jsx)(c.A,{checked:y,onChange:()=>h(!y),”aria-checked”:y}),(0,i.jsx)(u.A.Label,{children:”Hide this user’s comments”}),(0,i.jsx)(u.A.Caption,{children:(0,i.jsxs)(“span”,{className:b,children:[“All of their comments in this organization”,” “,(0,i.jsx)(“a”,{href:”https://docs.github.com/communities/moderating-comments-and-conversations/managing-disruptive-comments#hiding-a-comment”,children:”will be hidden”}),” “,”to all users and will display a reason.”]})})]}),(0,i.jsx)(“div”,{className:”BlockUserFromOrgDialog-module__BlockUserLeftPadding–XEifV”,children:(0,i.jsxs)(o.W,{children:[(0,i.jsx)(o.W.Button,{children:(k&&F.n[k])??”Choose a reason”}),(0,i.jsx)(o.W.Overlay,{children:(0,i.jsx)(d.l,{selectionVariant:”single”,children:(0,i.jsx)(F.w,{onSelect:S})})})]})})]})})})},x=()=>(0,i.jsx)(“div”,{className:”BlockUserFromOrgDialog-module__BlockUserDivider–xUkJ6″}),C=({organization:e,contentAuthor:l,contentId:a,notifyBlockedUser:n,hideComment:t,duration:r,hiddenReason:o,onClose:d})=>{let u=(0,y.useRelayEnvironment)(),c=(0,g.useCallback)(()=>{!function({environment:e,input:{organizationId:l,blockedUserId:a,duration:n,notifyBlockedUser:t,hiddenReason:i,contentId:s},onError:r,onCompleted:o}){let d={organizationId:l,blockedUserId:a,duration:n,notifyBlockedUser:t,contentId:s};i&&(d={…d,hiddenReason:i}),(0,y.commitMutation)(e,{mutation:k,variables:{input:d},onError:e=>r&&r(e),onCompleted:()=>{o?.()}})}({environment:u,input:{organizationId:e.id,contentId:a,blockedUserId:l.id,duration:r,hiddenReason:t&&o?o:void 0,notifyBlockedUser:n},onError:s.l,onCompleted:()=>(0,h.commitLocalUpdate)(u,e=>{let l=e.get(a);l?.setValue(!1,”pendingUnblock”),l?.setValue(!0,”pendingBlock”),o&&l?.setValue(o,”pendingMinimizeReason”)})}),d()},[u,e.id,a,l.id,r,t,o,n,d]);return(0,i.jsx)(T,{hideComment:t,hiddenReason:o,onSubmit:c})},j=({contentAuthor:e,duration:l,hideComment:a,hiddenReason:n,onBlock:t,onClose:s,organization:r,notifyBlockedUser:o})=>(0,i.jsx)(T,{hideComment:a,hiddenReason:n,onSubmit:()=>{t?.(S[l]??”0″,a,n,r.login,o,e.login),s()}}),T=({hideComment:e,hiddenReason:l,onSubmit:a})=>(0,i.jsx)(p.l.Footer,{children:(0,i.jsx)(m.Q,{variant:”danger”,disabled:e&&!l,onClick:a,className:”BlockUserFromOrgDialog-module__Button–FFeVP”,children:”Block user from organization”})});try{v.displayName||(v.displayName=”BlockUserFromOrgDialog”)}catch{}try{x.displayName||(x.displayName=”DialogDivider”)}catch{}try{C.displayName||(C.displayName=”BlockUserFromOrgDialogFooterWithRelay”)}catch{}try{j.displayName||(j.displayName=”BlockUserFromOrgDialogFooterWithoutRelay”)}catch{}try{T.displayName||(T.displayName=”BlockUserFromOrgDialogFooterComponent”)}catch{}},59464:(e,l,a)=>{a.d(l,{or:()=>ed,vN:()=>eu});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K=a(74848);let L={fragment:{argumentDefinitions:[n={defaultValue:!1,kind:”LocalArgument”,name:”includeTemplates”},t={defaultValue:null,kind:”LocalArgument”,name:”name”},i={defaultValue:null,kind:”LocalArgument”,name:”owner”}],kind:”Fragment”,metadata:null,name:”CreateIssueDialogEntryQuery”,selections:[{alias:null,args:s=[{kind:”Variable”,name:”name”,variableName:”name”},{kind:”Variable”,name:”owner”,variableName:”owner”}],concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[r={alias:null,args:null,kind:”ScalarField”,name:”hasAnyTemplates”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”isBlankIssuesEnabled”,storageKey:null},d={alias:null,args:null,kind:”ScalarField”,name:”hasIssuesEnabled”,storageKey:null},{kind:”InlineDataFragmentSpread”,name:”RepositoryPickerRepository”,selections:[u={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},c={alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},m={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},p={alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[c,g={alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},y={alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”},h={alias:null,args:null,kind:”ScalarField”,name:”issueTypesEnabled”,storageKey:null}],storageKey:null},k={alias:null,args:null,kind:”ScalarField”,name:”isLocked”,storageKey:null},f={alias:null,args:null,kind:”ScalarField”,name:”isPrivate”,storageKey:null},b={alias:null,args:null,kind:”ScalarField”,name:”visibility”,storageKey:null},F={alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},I={alias:null,args:null,kind:”ScalarField”,name:”isInOrganization”,storageKey:null},d,r,S={alias:null,args:null,kind:”ScalarField”,name:”slashCommandsEnabled”,storageKey:null},v={alias:null,args:null,kind:”ScalarField”,name:”viewerCanPush”,storageKey:null},o,x={alias:null,args:[{kind:”Literal”,name:”action”,value:”create an issue”}],kind:”ScalarField”,name:”viewerInteractionLimitReasonHTML”,storageKey:’viewerInteractionLimitReasonHTML(action:”create an issue”)’},C={alias:null,args:null,concreteType:”IssueCreationPermissions”,kind:”LinkedField”,name:”viewerIssueCreationPermissions”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”labelable”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”milestoneable”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”assignable”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”triageable”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”typeable”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”canSetIssueFields”,storageKey:null}],storageKey:null},j={alias:null,args:null,kind:”ScalarField”,name:”shortDescriptionHTML”,storageKey:null}],args:null,argumentDefinitions:[]},{args:[{kind:”Variable”,name:”includeTemplates”,variableName:”includeTemplates”}],kind:”FragmentSpread”,name:”CreateIssueDialog”}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[i,t,n],kind:”Operation”,name:”CreateIssueDialogEntryQuery”,selections:[{alias:null,args:s,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[r,o,d,u,c,m,p,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[T={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},c,g,y,h,u],storageKey:null},k,f,b,F,I,S,v,x,C,j,{condition:”includeTemplates”,kind:”Condition”,passingValue:!0,selections:[{alias:null,args:null,concreteType:”IssueForm”,kind:”LinkedField”,name:”issueForms”,plural:!0,selections:[T,_={alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null},m,{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”IssueTemplate”,kind:”LinkedField”,name:”issueTemplates”,plural:!0,selections:[T,_,m,N={alias:null,args:null,kind:”ScalarField”,name:”about”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isSecurityPolicyEnabled”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”securityPolicyUrl”,storageKey:null},{alias:null,args:null,concreteType:”RepositoryContactLink”,kind:”LinkedField”,name:”contactLinks”,plural:!0,selections:[m,N,{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null}],storageKey:null}]}],storageKey:null}]},params:{id:”050c2ef0f45554f8ab51c2e2c48bc886″,metadata:{},name:”CreateIssueDialogEntryQuery”,operationKind:”query”,text:null}};L.hash=”3637b8207b4416b73b8db4727054b1cd”;var A=a(81171),w=a(73189),P=a(25407),E=a(96540),R=a(18312),D=a(79403),V=a(49246),M=a(50167),O=a(90651),B=a(35669);let $={argumentDefinitions:[{defaultValue:!1,kind:”LocalArgument”,name:”includeTemplates”}],kind:”Fragment”,metadata:null,name:”CreateIssueDialog”,selections:[{args:[{kind:”Variable”,name:”includeTemplates”,variableName:”includeTemplates”}],kind:”FragmentSpread”,name:”CreateIssue”}],type:”Repository”,abstractKey:null};$.hash=”2462dd98bf9bee7cbb97c2e845715e7c”;var U=a(56149),H=a(98107);a(69487);var q=a(96480),G=a(17831),W=a(62670),z=a(58335),Q=a(3872),Y=a(98755),X=a(69599),Z=a(83494),J=a(38621),ee=a(26108),el=a(57387),ea=a(89064),en=a(98338),et=a(81724),ei=a(94007);let es=”CreateIssueDialogHeader-module__CopyToClipboardButton–P4HRy”,er=({navigate:e,dialogLabelId:l,onClose:a})=>{let{displayMode:n,setDisplayMode:t,optionConfig:i,isSubIssue:s}=(0,q.a)(),{repository:r,repositoryAbsolutePath:o,template:d,resetMetadata:u,setTemplate:c}=(0,G.u)(),m=(0,X.G7)(“memex_default_issue_create_repository”),p=(0,E.useCallback)(()=>{a(“close-button”)},[a]),g=(0,E.useMemo)(()=>(0,ei.jk)(o),[o]),y=n===M.q.TemplatePicker&&void 0!==r,h=n===M.q.IssueCreation&&i.showFullScreenButton&&e!==w.l&&void 0!==r,k=(0,E.useCallback)(()=>{u({repository:r,selectedRepository:r}),c(void 0),t(M.q.TemplatePicker)},[u,c,t,r]),f=(0,E.useMemo)(()=>{if(n===M.q.TemplatePicker||!r?.nameWithOwner){let e=i.issueCreateArguments?.initialValues?.title;return en.k.issueCreateDialogTitleTemplatePane+(e?` – “${e}”`:””)}let e=d&&d.kind!==et.t7.BlankIssue?d.name:void 0,l=s?”sub-issue”:”issue”;return n===M.q.IssueDuplication?en.k.issueCreateDialogTitleDuplicationPane(r.nameWithOwner,l):en.k.issueCreateDialogTitleCreationPane(r.nameWithOwner,e,l)},[n,s,r?.nameWithOwner,d,i]);return(0,K.jsxs)(el.l.Header,{children:[(0,K.jsx)(Z.ak,{commands:{“issue-create:open-fullscreen”:()=>{if(!h)return;let l=`/${r.nameWithOwner}/issues/new`,a=d&&d.kind!==et.t7.BlankIssue?d.fileName:void 0;e(a?`${l}?template=${encodeURIComponent(a)}`:l)}}}),(0,K.jsxs)(“div”,{className:”CreateIssueDialogHeader-module__CreateIssueDialogHeaderContainer–_BhIA”,children:[m&&n===M.q.IssueCreation&&(0,K.jsx)(ee.K,{icon:J.ArrowLeftIcon,”aria-label”:”Back to templates”,variant:”invisible”,onClick:k,className:es}),(0,K.jsx)(“div”,{className:”CreateIssueDialogHeader-module__dialogTitleSection–M7S4F”,children:(0,K.jsx)(el.l.Title,{id:l,children:f})}),y&&(0,K.jsx)(Y.T,{textToCopy:g,ariaLabel:ea.l.copyUrl,icon:J.CopyIcon,tooltipProps:{direction:”n”},className:es}),h&&(0,K.jsx)(Z.N5,{variant:”invisible”,commandId:”issue-create:open-fullscreen”,icon:J.ScreenFullIcon,className:es}),(0,K.jsx)(el.l.CloseButton,{onClose:p})]})]})};try{er.displayName||(er.displayName=”CreateIssueDialogHeader”)}catch{}let eo=({onCreateSuccess:e,onCancel:l,navigate:a,currentRepository:n,isNavigatingToNew:t,returnFocusRef:i,…s})=>{let{optionConfig:r,initialDefaultDisplayMode:o,setDisplayMode:d,displayMode:u,setCreateMore:c}=(0,q.a)(),{usedStorageKeyPrefix:m}=(0,G.u)(),p=(0,R.useFragment)($,n),g=(0,E.useCallback)(()=>{c(!1),d(o),l()},[o,l,c,d]),{onSafeClose:y}=(0,Q.Z)({storageKeyPrefix:m,issueFormRef:s.issueFormRef,onCancel:g}),h=(0,E.useCallback)(({issue:l,createMore:a})=>{e({issue:l,createMore:a}),a||d(o)},[o,e,d]),k={…s,onCancel:y},f=(0,E.useMemo)(()=>!t||!r.canBypassTemplateSelection,[t,r.canBypassTemplateSelection]);return(0,K.jsx)(U.ZL,{children:(0,K.jsx)(H.lG,{returnFocusRef:i,renderHeader:e=>(0,K.jsx)(er,{navigate:a,…e}),renderFooter:()=>u===M.q.IssueCreation||u===M.q.IssueDuplication?(0,K.jsx)(H.lG.Footer,{children:(0,K.jsx)(z.l,{onClose:()=>y(),…s})}):null,renderBody:()=>(0,K.jsx)(“div”,{className:`${u===M.q.IssueCreation||u===M.q.IssueDuplication?”p-3″:”p-0″}`,children:(0,K.jsx)(W.E,{onCreateSuccess:h,navigate:a,currentRepository:p,…k})}),onClose:y,width:”xlarge”,height:”auto”,sx:{visibility:f?”visible”:”hidden”},className:”CreateIssueDialog-module__CreateIssueDialogContainer–paAFp”})})};try{eo.displayName||(eo.displayName=”CreateIssueDialog”)}catch{}let ed=({…e})=>(0,K.jsx)(E.Suspense,{children:(0,K.jsx)(eu,{…e})}),eu=({navigate:e,isCreateDialogOpen:l,setIsCreateDialogOpen:a,onCancel:n,onCreateSuccess:t,onCreateError:i,optionConfig:s,isNavigatingToNew:r,setIsNavigatingToNew:o,returnFocusRef:d})=>{let u=(0,R.useRelayEnvironment)(),[c,m]=(0,E.useState)(null),[p,g,y]=(0,R.useQueryLoader)(L),h=(0,O.S)(s),k=h.showRepositoryPicker;(0,E.useEffect)(()=>{let e=async()=>{m(await (0,A.St)(u,{first:D.tT.repositoriesPreloadCount,hasIssuesEnabled:!0}))};k&&e()},[]);let f=(0,E.useMemo)(()=>h.issueCreateArguments?.repository?{owner:h.issueCreateArguments.repository.owner,name:h.issueCreateArguments.repository.name}:null,[h.issueCreateArguments?.repository]);(0,E.useEffect)(()=>(f&&g({…f,includeTemplates:!0},{fetchPolicy:”store-or-network”}),()=>y()),[y,f,g]);let b=()=>{n?.(),a(!1)};return l&&(!k||c)&&(p||!f)?(0,K.jsx)(ec,{createIssueProps:{topRepositories:c,onCreateSuccess:({issue:l,createMore:a})=>{t?t({issue:l,createMore:a}):a||(b(),e((0,P.dRG)({owner:l.repository.owner.login,repo:l.repository.name,issueNumber:l.number})))},onCreateError:e=>i?.(e),onCancel:b,navigate:e,isNavigatingToNew:r,setIsNavigatingToNew:o},config:h,currentRepoQueryRef:p??null,returnFocusRef:d}):null},ec=({currentRepoQueryRef:e,…l})=>e?(0,K.jsx)(em,{currentRepoQueryRef:e,…l}):(0,K.jsx)(ep,{currentRepoData:null,…l}),em=({currentRepoQueryRef:e,…l})=>{let a=(0,R.usePreloadedQuery)(L,e);return(0,K.jsx)(ep,{currentRepoData:a,…l})},ep=({createIssueProps:e,config:l,currentRepoData:a,returnFocusRef:n})=>{let t=e.navigate??w.l,i=a&&a.repository?(0,A.Jo)(a.repository):null,s=(0,E.useRef)(null),r={repository:i??void 0,template:void 0,parentIssue:l.issueCreateArguments?.parentIssue},o={…e,issueFormRef:s},d=a?.repository,u=!1;return(d?.hasIssuesEnabled&&l.defaultDisplayMode!==M.q.IssueDuplication&&(u=t!==w.l&&!!i&&!!d&&!d.hasAnyTemplates&&d.isBlankIssuesEnabled),(0,E.useEffect)(()=>{if(u&&i){let e=(0,B.H_)({includeRepository:!1,repository:i,templateFileName:void 0,…l.issueCreateArguments?.initialValues});t(`/${i.nameWithOwner}/issues/new${e?`?${e}`:””}`)}},[t,u,i,l.issueCreateArguments?.initialValues]),u)?null:(0,K.jsx)(V.S,{optionConfig:l,overrideFallbackDisplaymode:M.q.TemplatePicker,preselectedData:r,children:(0,K.jsx)(eo,{currentRepository:a?.repository,…o,returnFocusRef:n})})};try{ed.displayName||(ed.displayName=”CreateIssueDialogEntry”)}catch{}try{eu.displayName||(eu.displayName=”CreateIssueDialogEntryInternal”)}catch{}try{ec.displayName||(ec.displayName=”CreateIssueEntry”)}catch{}try{em.displayName||(em.displayName=”CreateIssueEntryWithRepo”)}catch{}try{ep.displayName||(ep.displayName=”CreateIssueEntryInternal”)}catch{}},61491:(e,l,a)=>{a.d(l,{J:()=>i});var n=a(96379),t=a(47723);async function i(e,l,a,i){try{let s=await (0,n.lS)(`/${e}/${l}${t.Ct}`,{method:”POST”,body:{issue_ids:a,repo_name_with_owner:i.targetRepo,base_ref:i.targetBranch,custom_instructions:i.instructions,custom_agent:i.customAgent,agent_id:i.agentId,model:i.model}});if(s.ok){let e=await s.json();return{ok:!0,status:s.status,data:e}}{let e;try{let l=await s.json();return e=l.error||`Request failed with status ${s.status}`,{ok:!1,status:s.status,errorMessage:e,jobs:l.jobs||[]}}catch{return e=`Request failed with status ${s.status}`,{ok:!1,status:s.status,errorMessage:e}}}}catch(e){return{ok:!1,status:0,errorMessage:e instanceof Error?e.message:”An unexpected error occurred”}}}},62180:(e,l,a)=>{a.d(l,{x:()=>d});var n=a(74848),t=a(51112),i=a(65826),s=a(96540),r=a(67702);let o=[];function d({tone:e,…l}){let[a,d]=(0,s.useState)(),u=(0,r.P)(void 0!==a),{calculateSuggestions:c,trigger:m}=(0,i.xf)(u.isPending?”loading”:u.data??o,{tone:e}),p=(0,s.useMemo)(()=>void 0!==a?c(a):null,[a,c]);return(0,n.jsx)(t.a,{triggers:[m],suggestions:p,onShowSuggestions:({query:e})=>d(e),onHideSuggestions:()=>d(void 0),…l})}try{d.displayName||(d.displayName=”EmojiAutocomplete”)}catch{}},62559:(e,l,a)=>{a.d(l,{KG:()=>d,O_:()=>i,QK:()=>o,iy:()=>r,sT:()=>s,wY:()=>t});let n={maxBodyLength:65536,maxIssueTitleLength:256,maxViewTitleLength:1024},t={…n,titleCanNotBeEmpty:”Title can not be empty”,fieldCanNotBeEmpty:”Field can not be empty”,issueTitleExceedsMaxLength:`Title can not be longer than ${n.maxIssueTitleLength} characters`,viewTitleExceedsMaxLength:`Title can not be longer than ${n.maxViewTitleLength} characters`,issueBodyExceedsMaxLength:`Body can not be longer than ${n.maxBodyLength} characters`,fieldExceedsMaxLength:`Field can not be longer than ${n.maxBodyLength} characters`,commentBodyEmpty:”Comment can not be empty”,checkboxInAGroupMustBeSelected:”A required checkbox is missing”,missingDropdownSelection:”An option must be selected”,noChangesToSave:”No changes to save”};function i(e){return 0===e.trim().length?{isValid:!1,errorMessage:t.titleCanNotBeEmpty}:e.length>t.maxIssueTitleLength?{isValid:!1,errorMessage:t.issueTitleExceedsMaxLength}:{isValid:!0}}function s(e,l){return 0===e.trim().length&&l?{isValid:!1,errorMessage:t.fieldCanNotBeEmpty}:e.length>t.maxBodyLength?{isValid:!1,errorMessage:t.fieldExceedsMaxLength}:{isValid:!0}}function r(e){return 0===e.trim().length?{isValid:!1,errorMessage:t.titleCanNotBeEmpty}:e.length>t.maxViewTitleLength?{isValid:!1,errorMessage:t.viewTitleExceedsMaxLength}:{isValid:!0}}function o(e){return e.length>t.maxBodyLength?{isValid:!1,errorMessage:t.issueBodyExceedsMaxLength}:{isValid:!0}}function d(e){return 0===e.length?{isValid:!1,errorMessage:t.commentBodyEmpty}:{isValid:!0}}},62670:(e,l,a)=>{a.d(l,{E:()=>ef,d:()=>ek});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K,L,A,w,P,E,R,D,V,M,O=a(74848);let B=(n={defaultValue:null,kind:”LocalArgument”,name:”filename”},t={defaultValue:null,kind:”LocalArgument”,name:”repoId”},i=[{kind:”Variable”,name:”id”,variableName:”repoId”}],s=[{kind:”Variable”,name:”filename”,variableName:”filename”}],r={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},d={alias:null,args:null,kind:”ScalarField”,name:”filename”,storageKey:null},u={alias:null,args:null,kind:”ScalarField”,name:”body”,storageKey:null},c={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},k={alias:null,args:[m={kind:”Literal”,name:”first”,value:20},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”NAME”}}],concreteType:”LabelConnection”,kind:”LinkedField”,name:”labels”,plural:!1,selections:[{alias:null,args:null,concreteType:”LabelEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”Label”,kind:”LinkedField”,name:”node”,plural:!1,selections:[p={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},g={alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},y={alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},h={alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:’labels(first:20,orderBy:{“direction”:”ASC”,”field”:”NAME”})’},S={alias:null,args:f=[{kind:”Literal”,name:”first”,value:10}],concreteType:”UserConnection”,kind:”LinkedField”,name:”assignees”,plural:!1,selections:[{alias:null,args:null,concreteType:”UserEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[r,p,b={alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},o,F={alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},I={alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”}],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:null}],storageKey:”assignees(first:10)”},v={alias:null,args:null,kind:”ScalarField”,name:”isEnabled”,storageKey:null},C={kind:”InlineFragment”,selections:x=[p,o,{alias:null,args:null,kind:”ScalarField”,name:”dataType”,storageKey:null}],type:”IssueFieldText”,abstractKey:null},N={alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”type”,plural:!1,selections:[p,o,v,y,g,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”pinnedFields”,plural:!0,selections:[r,C,j={kind:”InlineFragment”,selections:x,type:”IssueFieldSingleSelect”,abstractKey:null},T={kind:”InlineFragment”,selections:x,type:”IssueFieldDate”,abstractKey:null},_={kind:”InlineFragment”,selections:x,type:”IssueFieldNumber”,abstractKey:null}],storageKey:null}],storageKey:null},K={kind:”ClientExtension”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__id”,storageKey:null}]},L={alias:null,args:[m],concreteType:”ProjectV2Connection”,kind:”LinkedField”,name:”projects”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Edge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”node”,plural:!1,selections:[p,c,{alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},h,{alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasReachedItemsLimit”,storageKey:null},r],storageKey:null}],storageKey:null}],storageKey:”projects(first:20)”},A={alias:null,args:f,concreteType:”UserConnection”,kind:”LinkedField”,name:”assignees”,plural:!1,selections:[{alias:null,args:null,concreteType:”UserEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”node”,plural:!1,selections:[p,{kind:”InlineFragment”,selections:[r,b,o,F,I],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:null}],storageKey:”assignees(first:10)”},w={alias:null,args:null,concreteType:”IssueType”,kind:”LinkedField”,name:”type”,plural:!1,selections:[p,o,v,y,g,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”pinnedFields”,plural:!0,selections:[r,C,j,T,_,{kind:”InlineFragment”,selections:[p],type:”Node”,abstractKey:”__isNode”}],storageKey:null}],storageKey:null},{fragment:{argumentDefinitions:[n,t],kind:”Fragment”,metadata:null,name:”CreateIssueQuery”,selections:[{alias:null,args:i,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{kind:”InlineDataFragmentSpread”,name:”useHandleTemplateChange”,selections:[{alias:null,args:s,concreteType:”IssueTemplate”,kind:”LinkedField”,name:”issueTemplate”,plural:!1,selections:[{kind:”InlineDataFragmentSpread”,name:”useHandleTemplateChangeIssueTemplate”,selections:[r,o,d,u,c,k,S,N,K],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:s,concreteType:”IssueForm”,kind:”LinkedField”,name:”issueForm”,plural:!1,selections:[{kind:”InlineDataFragmentSpread”,name:”useHandleTemplateChangeIssueForm”,selections:[r,o,d,c,{kind:”InlineDataFragmentSpread”,name:”IssueFormElements_templateElements”,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”elements”,plural:!0,selections:[r,{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”TextInputElement_input”}],type:”IssueFormElementInput”,abstractKey:null},{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”TextAreaElement_input”}],type:”IssueFormElementTextarea”,abstractKey:null},{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”MarkdownElement_input”}],type:”IssueFormElementMarkdown”,abstractKey:null},{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”DropdownElement_input”}],type:”IssueFormElementDropdown”,abstractKey:null},{kind:”InlineFragment”,selections:[{args:null,kind:”FragmentSpread”,name:”CheckboxesElement_input”}],type:”IssueFormElementCheckboxes”,abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]},k,S,L,N,K],args:null,argumentDefinitions:[]}],storageKey:null}],args:s,argumentDefinitions:[{defaultValue:””,kind:”LocalArgument”,name:”filename”}]}],type:”Repository”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[t,n],kind:”Operation”,name:”CreateIssueQuery”,selections:[{alias:null,args:i,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[r,p,{kind:”InlineFragment”,selections:[{alias:null,args:s,concreteType:”IssueTemplate”,kind:”LinkedField”,name:”issueTemplate”,plural:!1,selections:[r,o,d,u,c,k,A,w,K],storageKey:null},{alias:null,args:s,concreteType:”IssueForm”,kind:”LinkedField”,name:”issueForm”,plural:!1,selections:[r,o,d,c,{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”elements”,plural:!0,selections:[r,{kind:”InlineFragment”,selections:[P={alias:”itemId”,args:null,kind:”ScalarField”,name:”id”,storageKey:null},E={alias:null,args:null,kind:”ScalarField”,name:”label”,storageKey:null},R={alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},D={alias:null,args:null,kind:”ScalarField”,name:”placeholder”,storageKey:null},V={alias:null,args:null,kind:”ScalarField”,name:”value”,storageKey:null},M={alias:null,args:null,kind:”ScalarField”,name:”required”,storageKey:null},K],type:”IssueFormElementInput”,abstractKey:null},{kind:”InlineFragment”,selections:[P,E,R,D,V,M,{alias:null,args:null,kind:”ScalarField”,name:”render”,storageKey:null},K],type:”IssueFormElementTextarea”,abstractKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”contentHTML”,storageKey:null}],type:”IssueFormElementMarkdown”,abstractKey:null},{kind:”InlineFragment”,selections:[P,E,R,{alias:null,args:null,kind:”ScalarField”,name:”options”,storageKey:null},M,{alias:null,args:null,kind:”ScalarField”,name:”multiple”,storageKey:null},{alias:”defaultOptionIndex”,args:null,kind:”ScalarField”,name:”default”,storageKey:null},K],type:”IssueFormElementDropdown”,abstractKey:null},{kind:”InlineFragment”,selections:[P,E,R,{alias:”checkboxOptions”,args:null,concreteType:”IssueFormElementCheckboxOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[E,{alias:null,args:null,kind:”ScalarField”,name:”labelHTML”,storageKey:null},M],storageKey:null},K],type:”IssueFormElementCheckboxes”,abstractKey:null}],storageKey:null},k,A,L,w,K],storageKey:null}],type:”Repository”,abstractKey:null}],storageKey:null}]},params:{id:”9e2b24072388cd7bd7820cba1fdd5d49″,metadata:{},name:”CreateIssueQuery”,operationKind:”query”,text:null}});B.hash=”a07055edea10e255144aa55d8c188972″;let $={argumentDefinitions:[{defaultValue:!1,kind:”LocalArgument”,name:”includeTemplates”}],kind:”Fragment”,metadata:null,name:”CreateIssue”,selections:[{condition:”includeTemplates”,kind:”Condition”,passingValue:!0,selections:[{args:null,kind:”FragmentSpread”,name:”TemplatePickerButton”},{args:null,kind:”FragmentSpread”,name:”TemplateListPane”}]}],type:”Repository”,abstractKey:null};$.hash=”8a3f411e97612f6b11008dffb70a56f0″;var U=a(69599),H=a(43258),q=a(96540),G=a(18312),W=a(16642),z=a(96480),Q=a(17831),Y=a(81171),X=a(11241),Z=a(98338);let J=Z.k.crossRepoIssueDuplicationDefaultWarning;function ee({onCreateSuccess:e,topRepositories:l,issueFormRef:a,…n}){let{title:t,body:i,setBody:s,repository:r,setNewTitle:o,clearSessionData:d}=(0,Q.u)(),{onRepositoryChange:u,notice:c,sourceRepository:m}=(()=>{let{repository:e,setRepository:l,assignees:a,setAssignees:n,issueType:t,setIssueType:i,issueFields:s,setIssueFields:r,milestone:o,setMilestone:d,labels:u,setLabels:c}=(0,Q.u)(),[m,p]=(0,q.useState)({repository:e,assignees:a,issueType:t,issueFields:s,milestone:o,labels:u}),[g,y]=(0,q.useState)(J),h=(0,q.useCallback)(e=>{if(!e)return;let a=[],t=e.id===m.repository?.id,s=e.owner?.databaseId===m.repository?.owner?.databaseId;t?(n?.(m.assignees),r?.(m.issueFields),i?.(m.issueType),d?.(m.milestone),c?.(m.labels)):(d?.(null),a.push(“Milestone”,”Labels”),s?(n?.(m.assignees),r?.(m.issueFields),i?.(m.issueType)):(n?.([]),r?.([]),i?.(null),a.push(“Assignees”),m.repository?.owner?.issueTypesEnabled&&a.push(“Type”))),y(a.length>0?Z.k.crossRepoIssueDuplicationWarning(a):J),l(e)},[m,n,r,i,c,d,l]);return(0,q.useEffect)(()=>{e?.databaseId===m.repository?.databaseId&&p({repository:e,assignees:a,issueType:t,issueFields:s,milestone:o,labels:u})},[e,a,t,s,o,u,m.repository?.databaseId]),{onRepositoryChange:h,notice:g,sourceRepository:m.repository}})(),p=(0,U.G7)(“issues_react_select_panel_fullscreen_on_narrow”),g=(0,q.useCallback)(e=>e.id===m?.id?e.viewerIssueCreationPermissions.triageable:e.viewerIssueCreationPermissions.triageable&&e.isBlankIssuesEnabled,[m?.id]);return(0,O.jsx)(O.Fragment,{children:l&&r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Y.f0,{“aria-describedby”:”Choose repository to duplicate issue in”,initialRepository:r,topRepositories:l,onSelect:u,focusRepositoryPicker:!0,enforceAtleastOneSelected:!0,options:{hasIssuesEnabled:!0},notice:{text:c,variant:”warning”},repositoryFilter:g,responsiveOnNarrow:p}),(0,O.jsx)(X.e,{…n,issueFormRef:a,onCreateSuccess:e,repository:r,title:t,setTitle:o,body:i,setBody:s,clearOnCreate:d,focusTitleInput:!1})]})})}try{ee.displayName||(ee.displayName=”CreateDuplicateIssueForm”)}catch{}var el=a(94252),ea=a(92858),en=a(41057),et=a(89946);let ei=[“220px”,”250px”,”290px”,”210px”].map((e,l)=>({id:`skeleton-${l}`,width:e}));function es(){let{optionConfig:e}=(0,z.a)();return(0,O.jsx)(“div”,{className:`${et.A.skeletonContainer} ${e.insidePortal&&”ml-3″}`,children:ei.map(({id:e,width:l})=>(0,O.jsx)(en.Q,{height:”xl”,width:l},e))})}try{es.displayName||(es.displayName=”TemplateListLoading”)}catch{}var er=a(47685);function eo({repository:e,topRepositories:l,organization:a,onRepositorySelected:n,onTemplateSelected:t}){let{optionConfig:i}=(0,z.a)(),s=(0,q.useId)(),r=i.insidePortal?”ml-3″:”ml-0″;return(0,O.jsxs)(“div”,{className:i.insidePortal?”pt-2″:””,”data-testid”:ea.Y.repositoryAndTemplateDialog,children:[(0,O.jsx)(ed,{className:r,name:”Repository”}),(0,O.jsx)(“div”,{className:`${i.insidePortal?”mb-2″:”mb-3″} ${r}`,children:(0,O.jsx)(Y.f0,{“aria-describedby”:s,initialRepository:e,onSelect:n,organization:a,topRepositories:l,focusRepositoryPicker:!0,enforceAtleastOneSelected:!0,options:{hasIssuesEnabled:!0,includeForks:!0}})}),(0,O.jsx)(q.Suspense,{fallback:(0,O.jsx)(es,{}),children:e&&(0,O.jsx)(er.N,{repositoryId:e.id,onTemplateSelected:t,descriptionId:s})})]})}function ed({name:e,className:l}){return(0,O.jsxs)(“div”,{className:`pt-1 pb-1 ${l}`,children:[(0,O.jsx)(“span”,{className:”text-bold”,children:e}),(0,O.jsx)(“span”,{className:”ml-1 mb-1 fgColor-danger”,children:”*”})]})}try{eo.displayName||(eo.displayName=”RepositoryAndTemplatePicker”)}catch{}try{ed.displayName||(ed.displayName=”Field”)}catch{}let eu={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”TemplatePickerButton”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasAnyTemplates”,storageKey:null}],type:”Repository”,abstractKey:null};eu.hash=”fc9ace64aa764ca00db0ea2f61b67a2b”;var ec=a(38621),em=a(21373);a(69487);var ep=a(50167);function eg({repository:e,template:l}){let a=(0,G.useFragment)(eu,e),{setDisplayMode:n}=(0,z.a)(),t=l?l.name:Z.k.blankIssueName,i=(0,q.useRef)(null);return((0,q.useEffect)(()=>{i.current?.focus()},[]),a.hasAnyTemplates)?(0,O.jsx)(“div”,{“data-testid”:”template-picker-button”,className:”TemplatePickerButton-module__TemplatePickerButtonContainer–sNawE”,children:(0,O.jsxs)(em.Q,{“data-testid”:”template-picker-button-el”,onClick:()=>n(ep.q.TemplatePicker),leadingVisual:ec.RepoIcon,trailingVisual:ec.PencilIcon,ref:i,children:[a&&(0,O.jsxs)(“span”,{children:[t,” “,(0,O.jsx)(“span”,{className:”TemplatePickerButton-module__repositoryConnectorText–CKviI”,children:”in”}),” “,a.nameWithOwner]}),!e&&(0,O.jsx)(O.Fragment,{children:”Select a repository”})]})}):null}try{eg.displayName||(eg.displayName=”TemplatePickerButton”)}catch{}var ey=a(93997),eh=a(81724);let ek=B,ef=({topRepositories:e,navigate:l,currentRepository:a,onCreateSuccess:n,issueFormRef:t,…i})=>{let s=(0,G.useFragment)($,a),{addToast:r}=(0,H.Y6)(),o=(0,G.useRelayEnvironment)(),{title:d,body:u,setBody:c,repository:m,setRepository:p,template:g,setNewTitle:y,resetMetadata:h,clearSessionData:k}=(0,Q.u)(),{optionConfig:f,displayMode:b,initialDefaultDisplayMode:F,setDisplayMode:I,setCreateMoreCreatedPath:S}=(0,z.a)(),v=(0,U.G7)(“memex_default_issue_create_repository”),x=(0,q.useRef)({defaultIssueCreateRepoEnabled:v,isInitialRender:!0,values:{resetMetadata:h,initialDefaultDisplayMode:F,repository:m,setDisplayMode:I}});(0,q.useEffect)(()=>{if(x.current.isInitialRender){if(x.current.isInitialRender=!1,!x.current.defaultIssueCreateRepoEnabled)return;let{resetMetadata:e,initialDefaultDisplayMode:l,repository:a,setDisplayMode:n}=x.current.values;if(l!==ep.q.IssueDuplication){if(e(),a?.hasAnyTemplates)return void n(ep.q.TemplatePicker);if(!a?.hasAnyTemplates&&a?.isBlankIssuesEnabled)return void n(ep.q.IssueCreation);n(l)}}},[]);let C=(0,q.useCallback)(e=>{e&&(m?.id!==e.id&&(h({repository:x.current.values.repository,selectedRepository:e}),v&&(e.hasAnyTemplates?I(ep.q.TemplatePicker):!e.hasAnyTemplates&&e.isBlankIssuesEnabled&&I(ep.q.IssueCreation))),p(e),S({owner:e.owner.login,repo:e.name,number:void 0}))},[h,m,S,p,I,v]),j=(0,ey.wT)({optionConfig:f,repository:m,navigate:l,setDisplayMode:I}),T=(0,q.useCallback)((e,a)=>{let n;if(m){if(m?.viewerInteractionLimitReasonHTML&&m.viewerInteractionLimitReasonHTML.length>0)return void l(`/${m.owner.login}/${m.name}/issues/new`);if(a!==eh.t7.ContactLink){if(f.issueCreateArguments?.initialValues?.appendTitleToTemplate&&(n={appendTitleToTemplate:f.issueCreateArguments.initialValues.appendTitleToTemplate}),a===eh.t7.BlankIssue)return void j((0,eh.AI)(),n,!0);(0,G.fetchQuery)(o,ek,{repoId:m.id,filename:e}).subscribe({next:e=>{if(!e.node)return;let l=(0,ey.EV)(e.node);l&&j(l,n,!0)},error:()=>{reportError(Error(W.S.unableToLoadSelectedTemplate)),r({type:”error”,message:W.S.unableToLoadSelectedTemplate})}})}}},[m,o,f.issueCreateArguments?.initialValues?.appendTitleToTemplate,j,r,l]),_=(0,el.K)({issueFormRef:t,handleTemplateChange:j,template:g,callback:n});(0,q.useEffect)(()=>{m&&S({owner:m.owner?.login||””,repo:m.name||””,number:void 0})},[m,S]);let N=F===ep.q.IssueCreation;return(0,O.jsxs)(“div”,{tabIndex:-1,className:”CreateIssue-module__CreateIssueContainer–Laikr”,children:[b===ep.q.IssueCreation&&(0,O.jsxs)(O.Fragment,{children:[N&&s&&(0,O.jsx)(eg,{repository:s,template:g}),m&&(0,O.jsx)(X.e,{…i,issueFormRef:t,onCreateSuccess:_,selectedTemplate:g,repository:m,title:d,setTitle:y,body:u,setBody:c,clearOnCreate:k,focusTitleInput:!N,footer:void 0})]}),b===ep.q.IssueDuplication&&(0,O.jsx)(ee,{navigate:l,onCreateSuccess:_,topRepositories:e,issueFormRef:t,…i}),b===ep.q.TemplatePicker&&f.showRepositoryPicker&&e&&(0,O.jsx)(eo,{repository:m,onRepositorySelected:C,topRepositories:e,organization:f.scopedOrganization,onTemplateSelected:T}),b===ep.q.TemplatePicker&&!s&&!m&&(0,O.jsx)(eo,{repository:m,onRepositorySelected:C,topRepositories:e,organization:f.scopedOrganization,onTemplateSelected:T}),b===ep.q.TemplatePicker&&!f.showRepositoryPicker&&s&&(0,O.jsx)(“div”,{“data-hpc”:!0,children:(0,O.jsx)(er.e,{repository:s,onTemplateSelected:T,…i})})]})};try{ef.displayName||(ef.displayName=”CreateIssue”)}catch{}},63487:(e,l,a)=>{a.d(l,{qn:()=>D,ku:()=>O,Wj:()=>M,Pv:()=>V});var n,t,i,s,r,o,d,u,c,m=a(74848);let p={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”LabelsSectionFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”body”,storageKey:null},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null}],storageKey:null},{args:null,kind:”FragmentSpread”,name:”LabelsSectionAssignedLabels”},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanLabel”,storageKey:null}],type:”Issue”,abstractKey:null};p.hash=”89d173296b36dd6c47d64eaffcd8fa74″;let g={fragment:{argumentDefinitions:n=[{defaultValue:100,kind:”LocalArgument”,name:”assignedLabelPageSize”},{defaultValue:null,kind:”LocalArgument”,name:”cursor”},{defaultValue:null,kind:”LocalArgument”,name:”id”}],kind:”Fragment”,metadata:null,name:”LabelsSectionAssignedLabelsQuery”,selections:[{alias:null,args:t=[{kind:”Variable”,name:”id”,variableName:”id”}],concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{args:[{kind:”Variable”,name:”assignedLabelPageSize”,variableName:”assignedLabelPageSize”},{kind:”Variable”,name:”cursor”,variableName:”cursor”}],kind:”FragmentSpread”,name:”LabelsSectionAssignedLabels”}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”LabelsSectionAssignedLabelsQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[i={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:r=[{kind:”Variable”,name:”after”,variableName:”cursor”},{kind:”Variable”,name:”first”,variableName:”assignedLabelPageSize”},{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”NAME”}}],concreteType:”LabelConnection”,kind:”LinkedField”,name:”labels”,plural:!1,selections:[{alias:null,args:null,concreteType:”LabelEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”Label”,kind:”LinkedField”,name:”node”,plural:!1,selections:[s,{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},i],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:r,filters:[“orderBy”],handle:”connection”,key:”MetadataSectionAssignedLabels_labels”,kind:”LinkedHandle”,name:”labels”},{kind:”TypeDiscriminator”,abstractKey:”__isNode”}],type:”Labelable”,abstractKey:”__isLabelable”}],storageKey:null}]},params:{id:”d103ad1af39cfc73beab26bc9a07c330″,metadata:{},name:”LabelsSectionAssignedLabelsQuery”,operationKind:”query”,text:null}};g.hash=”20f7e48e94311f48bdecc097fbeb646a”;let y={argumentDefinitions:[{defaultValue:100,kind:”LocalArgument”,name:”assignedLabelPageSize”},{defaultValue:null,kind:”LocalArgument”,name:”cursor”}],kind:”Fragment”,metadata:{connection:[{count:”assignedLabelPageSize”,cursor:”cursor”,direction:”forward”,path:o=[“labels”]}],refetch:{connection:{forward:{count:”assignedLabelPageSize”,cursor:”cursor”},backward:null,path:o},fragmentPathInResult:[“node”],operation:g,identifierInfo:{identifierField:”id”,identifierQueryVariableName:”id”}}},name:”LabelsSectionAssignedLabels”,selections:[{alias:”labels”,args:[{kind:”Literal”,name:”orderBy”,value:{direction:”ASC”,field:”NAME”}}],concreteType:”LabelConnection”,kind:”LinkedField”,name:”__MetadataSectionAssignedLabels_labels_connection”,plural:!1,selections:[{alias:null,args:null,concreteType:”LabelEdge”,kind:”LinkedField”,name:”edges”,plural:!0,selections:[{alias:null,args:null,concreteType:”Label”,kind:”LinkedField”,name:”node”,plural:!1,selections:[d={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”cursor”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:”PageInfo”,kind:”LinkedField”,name:”pageInfo”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”endCursor”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”hasNextPage”,storageKey:null}],storageKey:null}],storageKey:’__MetadataSectionAssignedLabels_labels_connection(orderBy:{“direction”:”ASC”,”field”:”NAME”})’},{kind:”InlineFragment”,selections:[d],type:”Node”,abstractKey:”__isNode”}],type:”Labelable”,abstractKey:”__isLabelable”};y.hash=”20f7e48e94311f48bdecc097fbeb646a”;var h=a(69599),k=a(36285),f=a(67126),b=a(49669),F=a(41305),I=a(43258),S=a(30459),v=a(96540),x=a(34784),C=a(93513),j=a(20177);let T={fragment:{argumentDefinitions:u=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],kind:”Fragment”,metadata:null,name:”removeLabelsFromLabelableMutation”,selections:c=[{alias:null,args:[{kind:”Variable”,name:”input”,variableName:”input”}],concreteType:”RemoveLabelsFromLabelablePayload”,kind:”LinkedField”,name:”removeLabelsFromLabelable”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”clientMutationId”,storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:u,kind:”Operation”,name:”removeLabelsFromLabelableMutation”,selections:c},params:{id:”cce4e0522a0bbf89aa28f9e4da5d7beb”,metadata:{},name:”removeLabelsFromLabelableMutation”,operationKind:”mutation”,text:null}};T.hash=”9f3ee532d3745a09f037181e4a226f48″;var _=a(18312);let N=(0,a(82075).A)(“localStorage”,{throwQuotaErrorsOnSet:!1,ttl:2592e6});function K(e){return`favorite-labels:${e}`}function L(e){let l=K(e),a=N.getItem(l);if(!a)return{labels:{}};try{return JSON.parse(a)}catch{return{labels:{}}}}var A=a(2495),w=a(16810),P=a(21798);let E=()=>(0,m.jsx)(A.h,{title:C.k.sectionTitles.labels}),R=({sectionHeader:e,onDelete:l,labels:a})=>(0,m.jsx)(w.w,{id:”sidebar-labels-section”,sectionHeader:e,emptyText:a.length>0?void 0:C.k.emptySections.labels,children:(0,m.jsx)(F.w,{labels:a,onDelete:l,testId:j.Y.issueLabels})}),D=({repo:e,owner:l,readonly:a,labels:n,onSelectionChange:t,…i})=>{let s=a?(0,m.jsx)(E,{}):(0,m.jsx)(b.t,{repo:e,owner:l,readonly:a,canCreateLabel:!a,labels:n,onSelectionChange:t,showNoMatchItem:!0,anchorElement:(e,l)=>(0,m.jsx)(P.X,{title:C.k.sectionTitles.labels,buttonProps:e,ref:l}),…i});return(0,m.jsx)(R,{sectionHeader:s,labels:n})},V=p,M=y;function O({issue:e,onIssueUpdate:l,insideSidePanel:a,readonly:n}){let{sendAnalyticsEvent:t}=(0,S.s)(),i=(0,x.useFragment)(V,e),{repository:{owner:{login:s},name:r,isArchived:o}}=i,{data:d}=(0,x.usePaginationFragment)(M,i),{id:u,viewerCanLabel:c}=i,p=(0,v.useMemo)(()=>d.labels?.edges?.flatMap(e=>e?.node?[e?.node]:[])||[],[d]),g=(0,x.useRelayEnvironment)(),y=(0,h.G7)(“issues_report_sidebar_interactions”),F=(0,h.G7)(“issues_react_favorite_labels”),j=n||!c||o,{addToast:A}=(0,I.Y6)(),w=(0,v.useCallback)(e=>{(0,k.N)({environment:g,input:{labelableId:u,labels:e,labelableTypeName:”Issue”},onError:()=>A({type:”error”,message:f.S.couldNotUpdateLabels}),onCompleted:()=>{F&&e.length>0&&function(e,l){if(0===l.length)return;let a=L(e),n=Date.now();for(let e of l){let l=a.labels[e];a.labels[e]={labelId:e,count:l?l.count+1:1,lastUsed:n}}let t=K(e);try{N.setItem(t,JSON.stringify(a))}catch{}}(`${s}/${r}`,e.map(e=>e.id)),l?.()}})},[A,g,u,l,s,r,F]),D=(0,h.G7)(“issues_react_remove_labels_oneclick”),O=(0,v.useCallback)(e=>{!function({environment:e,input:l,onError:a,onCompleted:n}){let t=e=>{let a=_.ConnectionHandler.getConnectionID(l.labelableId,”MetadataSectionAssignedLabels_labels”),n=e.get(`${a}(orderBy:{“direction”:”ASC”,”field”:”NAME”})`);n&&l.labelIds[0]&&_.ConnectionHandler.deleteNode(n,l.labelIds[0])};(0,_.commitMutation)(e,{mutation:T,variables:{input:l},onError:e=>a&&a(e),onCompleted:e=>n&&n(e),updater:t,optimisticUpdater:t})}({environment:g,input:{labelableId:u,labelIds:[e]}})},[g,u]),B=(0,v.useMemo)(()=>{if(j)return(0,m.jsx)(E,{});let e=F?(function(e,l=10,a=4){let n=L(e),t=Date.now()-24*l*36e5;return Object.values(n.labels).filter(e=>e.lastUsed>=t).sort((e,l)=>e.count!==l.count?l.count-e.count:l.lastUsed-e.lastUsed).slice(0,a)})(`${s}/${r}`).map(e=>e.labelId):[];return(0,m.jsx)(b.t,{repo:r,owner:s,readonly:j,labels:p,canCreateLabel:!j,favoriteLabelIds:e,onSelectionChange:w,anchorElement:(e,l)=>(0,m.jsx)(P.X,{title:C.k.sectionTitles.labels,buttonProps:{…e,onClick:l=>{y&&t(“analytics.click”,”ISSUE_SIDEBAR_LABELS_SECTION_EDIT_CLICK”),e.onClick?.(l)}},ref:l}),insidePortal:a,showNoMatchItem:!0})},[j,F,s,r,p,w,a,y,t]);return(0,m.jsx)(R,{sectionHeader:B,onDelete:D&&!j?O:void 0,labels:p})}try{E.displayName||(E.displayName=”ReadonlyLabelsSectionHeader”)}catch{}try{R.displayName||(R.displayName=”LabelsSection”)}catch{}try{D.displayName||(D.displayName=”CreateIssueLabelsSection”)}catch{}try{O.displayName||(O.displayName=”EditIssueLabelsSection”)}catch{}},65249:(e,l,a)=>{a.d(l,{E:()=>i});var n=a(2635),t=a(79634);function i({additionalConditions:e=[],repositoryVisibility:l,userCanPushToRepo:a}){let i=(0,n.mo)(),s=(0,t.X)();return i?.mode!==”immersive”&&!!s?.current_user_settings?.copilot_show_functionality&&(“PUBLIC”!==l||!!a)&&e.every(e=>e)}},66718:(e,l,a)=>{a.d(l,{Ge:()=>n,UI:()=>t,$J:()=>i});function n(e){let l=i(e);if(Number.isNaN(l))return”This field must be a number”;if(l<-0x7fffffff||l>0x7fffffff)return”This value must be between -2147483647 and 2147483647″;let a=e.split(“.”)[1];if(a&&a.length>15)return”This floating point value is too precise”}function t(e){return new Blob([e]).size>1024?”This value is too long”:void 0}function i(e){return Number(e.replace(/,/g,””))}},67702:(e,l,a)=>{a.d(l,{P:()=>i});var n=a(34418),t=a(97286);function i(e){return(0,t.I)({queryKey:[“autocomplete-emojis-for-editor”],enabled:e,queryFn:async()=>Object.entries(await (0,n.X)({queryDeps:{pathname:”/autocomplete/emojis_for_editor”}})).map(([e,[l,a]])=>({name:e,character:a,url:l})),staleTime:1/0})}},68245:(e,l,a)=>{a.d(l,{_:()=>i,z:()=>r});var n=a(74848),t=a(16522);let i=(0,a(96540).createContext)(“handle”),s={NAME_HANDLE:”name_handle”,NAME_AND_HANDLE:”name_handle”,HANDLE:”handle”};function r(e){let l,a=(0,t.c)(3),{value:r,children:o}=e,d=r&&s[r.toUpperCase()]||”handle”;return a[0]!==o||a[1]!==d?(l=(0,n.jsx)(i,{value:d,children:o}),a[0]=o,a[1]=d,a[2]=l):l=a[2],l}try{i.displayName||(i.displayName=”UserNameDisplayContext”)}catch{}try{r.displayName||(r.displayName=”UserNameDisplayContextProvider”)}catch{}},68384:(e,l,a)=>{a.d(l,{A:()=>n});let n={issueFieldFormWrapper:”IssueFieldItem-module__issueFieldFormWrapper–QtLp9″,issueFieldLabel:”IssueFieldItem-module__issueFieldLabel–YZrxM”,issueFieldValue:”IssueFieldItem-module__issueFieldValue–lJFMv”,issueFieldActionButton:”IssueFieldItem-module__issueFieldActionButton–OTZnS”}},71651:(e,l,a)=>{a.d(l,{z:()=>u});var n=a(58615),t=a(96379),i=a(96540);let s={emojiTone:0,pasteUrlsAsPlainText:!1,useMonospaceFont:!1},r=new Map,o=”/settings/appearance/viewer-settings”;async function d(){try{let e=await (0,t.Sr)(o);if(!e.ok)throw Error(`HTTP ${e.status}`);let l=await e.json(),a=function(e){if(!e||”object”!=typeof e)return null;let l=”number”==typeof e.emojiTone?e.emojiTone:s.emojiTone,a=”boolean”==typeof e.pasteUrlsAsPlainText?e.pasteUrlsAsPlainText:s.pasteUrlsAsPlainText,n=”boolean”==typeof e.useMonospaceFont?e.useMonospaceFont:s.useMonospaceFont;return void 0!==e.emojiTone||void 0!==e.pasteUrlsAsPlainText||void 0!==e.useMonospaceFont?{emojiTone:l,pasteUrlsAsPlainText:a,useMonospaceFont:n}:null}(l);if(!a)throw Error(“Invalid response payload”);return a}catch(e){throw e}}function u(e=!1){let[l,a]=(0,n.M)(“user.preferences.viewer-settings”,null),[t,c]=(0,i.useState)(!0),[m,p]=(0,i.useState)(!1),g=(0,i.useRef)(!1);e&&(r.clear(),g.current=!1);let y=(0,i.useCallback)(async()=>{let e=r.get(o);try{e||(e=d(),r.set(o,e));let l=await e;a(l),p(!1)}catch{p(!0)}finally{c(!1)}},[a]);return(0,i.useEffect)(()=>{g.current?c(!1):(g.current=!0,y())},[y]),{settings:l||s,loading:t,error:m&&!l}}},72274:(e,l,a)=>{a.d(l,{u:()=>u});let n={fragment:{argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”useViewerSafeViewerSharedQuery”,selections:t=[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”safeViewer”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},{alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[],kind:”Operation”,name:”useViewerSafeViewerSharedQuery”,selections:t},params:{id:”e04bcb743a2af95309967488bc0303c0″,metadata:{},name:”useViewerSafeViewerSharedQuery”,operationKind:”query”,text:null}};n.hash=”ec14349f609753fe2f861f8c75dc87f5″;var t,i=a(30721),s=a(71315),r=a(43755),o=a(96540),d=a(18312);function u(){let e=(0,d.useRelayEnvironment)(),{currentUser:l}=(0,r.J)(),[a,t]=(0,o.useState)(l);return s.X3||a||(0,i.SD)({environment:e,query:n,variables:{}}).subscribe({next:e=>{e.safeViewer&&t(e.safeViewer)}}),a}a(69487)},72690:(e,l,a)=>{a.d(l,{CZ:()=>F});var n,t,i,s,r=a(74848);let o={kind:”InlineDataFragment”,name:”IssueSingleSelectFieldPickerOption”};o.hash=”d8bcb73a6758269a0f127f7a03e396bc”;let d={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:”LocalArgument”,name:”id”}],kind:”Fragment”,metadata:null,name:”IssueSingleSelectFieldPickerFieldQuery”,selections:[{alias:null,args:t=[{kind:”Variable”,name:”id”,variableName:”id”}],concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:”IssueFieldSingleSelectOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[{kind:”InlineDataFragmentSpread”,name:”IssueSingleSelectFieldPickerOption”,selections:s=[i={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:”IssueFieldSingleSelect”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”IssueSingleSelectFieldPickerFieldQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”node”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:”IssueFieldSingleSelectOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:s,storageKey:null}],type:”IssueFieldSingleSelect”,abstractKey:null},i],storageKey:null}]},params:{id:”c64e6ba36203e1baee1d8517134d7d4c”,metadata:{},name:”IssueSingleSelectFieldPickerFieldQuery”,operationKind:”query”,text:null}};d.hash=”0979e35fc8348ec832d8c8f2a2b59fec”;var u=a(69599),c=a(19918),m=a(86391),p=a(81289),g=a(81709),y=a(30721),h=a(71315),k=a(96540),f=a(18312),b=a(14709);function F({anchorElement:e,isLazy:l,shouldOpen:a=!1,…n}){return l&&!a?(0,r.jsx)(p.y,{anchorElement:(l,a)=>e(l,a),createChild:()=>(0,r.jsx)(I,{anchorElement:(l,a)=>e(l,a),…n})}):(0,r.jsx)(I,{anchorElement:(l,a)=>e(l,a),…n})}function I({fieldId:e,anchorElement:l,…a}){let n=(0,f.useRelayEnvironment)(),[t,i]=(0,k.useState)(!0),[s,o]=(0,k.useState)(0),[u,m]=(0,k.useState)(!1),[p,b]=(0,k.useState)([]);(0,k.useEffect)(()=>{h.X3||(0,y.SD)({environment:n,query:d,variables:{id:e}}).subscribe({next:e=>{b(e.node?.options??[]),i(!1),m(!1)},error:()=>{m(!0),i(!1)}})},[n,s,e]);let{createFallbackComponent:F}=(0,g.j)({errorMessage:c.k.cantEditItems(“fields”),anchorElement:l,open:!0});return u?F(()=>o(e=>e+1)):(0,r.jsx)(S,{fieldId:e,values:p,isLoading:t,anchorElement:l,…a})}function S({title:e=c.k.fieldSingleSelectHeader,width:l=”medium”,values:a,fieldName:n,selectedOption:t,onSelectionChange:i,onClose:s,insidePortal:d,anchorElement:p,isLoading:g}){let[y,h]=(0,k.useState)(“”),F=n?c.k.fieldSingleSelectHeaderWithName(n):e,I=a.flatMap(e=>e?[(0,f.readInlineData)(o,e)]:[]),S=(0,k.useMemo)(()=>y?I.filter(e=>e.name&&e.name.toLowerCase().indexOf(y.toLowerCase())>=0):I,[I,y]),v=(0,k.useCallback)(e=>{h(e)},[]),x=(0,k.useCallback)(e=>e.id||””,[]),C=(0,k.useCallback)(e=>({id:e.id,text:e.name,description:e.description||””,descriptionVariant:”block”,leadingVisual:(0,b.z)(e.color),source:e}),[]),j=(0,k.useMemo)(()=>{if(t){let e=I.find(e=>e.name===t);if(e)return[e]}return[]},[I,t]),T=(0,k.useRef)(null),_=(0,k.useMemo)(()=>0===S.length,[S]),N=(0,u.G7)(“issues_react_select_panel_fullscreen_on_narrow”);return(0,r.jsx)(m.O,{loading:g,items:S,initialSelectedItems:j,filterItems:v,title:F,getItemKey:x,convertToItemProps:C,placeholderText:”Filter option”,selectionVariant:”single”,onSelectionChange:e=>i(e&&e.length>0&&e[0]?e[0]:null),onClose:s,renderAnchor:e=>p(e,T),insidePortal:d,height:”large”,width:l,resultListAriaLabel:”Issue field option results”,triggerOpen:!0,selectPanelRef:T,improvedNoMatchAccessibility:_,noMatchMessage:_?{title:”No option found”,variant:”empty”,body:”Try searching with a different query for results.”}:void 0,responsiveOnNarrow:N})}try{F.displayName||(F.displayName=”IssueSingleSelectFieldPicker”)}catch{}try{I.displayName||(I.displayName=”IssueSingleSelectFieldPickerFetcher”)}catch{}try{S.displayName||(S.displayName=”ItemPickerWrapper”)}catch{}},73049:(e,l,a)=>{a.d(l,{A:()=>n});function n(e){if(“data”in e)return e;if(“errors”in e&&Array.isArray(e.errors)&&e.errors.length>0&&e.errors[0]?.message)throw Error(e.errors[0].message);throw Error(“Error in request”)}},73454:(e,l,a)=>{a.d(l,{h:()=>u});var n=a(74848),t=a(38621),i=a(84268),s=a(12683),r=a(10095);let o=”ErrorWithRetry-module__retryActionLink–Xys2Y”;var d=a(34164);function u({message:e,retry:l,sx:a}){return(0,n.jsxs)(s.az,{sx:a,className:”ErrorWithRetry-module__ErrorWithRetryContainer–eDhIy”,children:[(0,n.jsxs)(“div”,{children:[(0,n.jsx)(r.A,{icon:t.AlertFillIcon,className:(0,d.$)(“mr-1″,”ErrorWithRetry-module__errorAlertIcon–Iiexz”)}),(0,n.jsx)(“span”,{className:”ErrorWithRetry-module__errorMessage–DNJUZ”,children:e})]}),(0,n.jsx)(i.A,{as:”button”,inline:!0,onClick:l,className:o,children:(0,n.jsx)(“span”,{className:o,children:”Try again”})})]})}try{u.displayName||(u.displayName=”ErrorWithRetry”)}catch{}},73867:(e,l,a)=>{a.d(l,{R:()=>c});var n=a(74848),t=a(19918),i=a(81945),s=a(71315),r=a(62935);let o=({closed:e,givenDate:l,currentDate:a})=>{let i=e?”short”:”long”,s=e&&!d(l,a)?void 0:”numeric”,o=e&&u(a,l)?”auto”:”past”,c=e?”auto”:”elapsed”,m=e?”second”:u(l,a)?”month”:”day”;return(0,n.jsx)(r.A,{date:l,day:”numeric”,month:i,tense:d(l,a)?void 0:o,year:s,format:c,precision:m,”data-testid”:t.k.testIds.relativeTimeDescription})},d=(e,l)=>{let a=l.getFullYear();return e.getFullYear()12*(e.getFullYear()-l.getFullYear())+(e.getMonth()-l.getMonth())>=1;try{o.displayName||(o.displayName=”RelativeTimeDescription”)}catch{}let c=({closed:e,closedAt:l,dueOn:a,progressPercentage:r,showProgressPercentage:d=!1})=>{let u=e?l:a;if(!u||!g(u))return t.k.milestones.noDueDate;let c=new Date(u),h=new Date,k=!!a&&new Date(u)l?t.k.milestones.milestoneClosed:e?t.k.milestones.pastDue:t.k.milestones.milestoneDue,p=e=>new Date(e).toLocaleDateString(“en-us”,{month:”long”,year:”numeric”,day:”numeric”}),g=e=>!isNaN(new Date(e).getTime()),y=(e,l)=>e.getFullYear()===l.getFullYear()&&e.getMonth()===l.getMonth()&&e.getUTCDate()===l.getUTCDate();try{c.displayName||(c.displayName=”MilestoneDescription”)}catch{}},74731:(e,l,a)=>{a.d(l,{d:()=>t,t:()=>n});let n={queryParams:{org:”org”,repo:”repo”,template:”template”,title:”title”,body:”body”,assignees:”assignees”,labels:”labels”,milestone:”milestone”,projects:”projects”,type:”type”,discussion:”discussion”,permalink:”permalink”},maxQueryLengthLimits:{title:256,body:65536,assignees:10,labels:20,projects:20}},t=Object.values(n.queryParams)},75908:(e,l,a)=>{function n(e,l){switch(l){case 403:return`${e}: Please check that you have permission to assign issues in the target repository.`;case 404:return`${e}: The repository or branch may not exist or may not be accessible.`;case 422:return`${e}: Request could not be processed. Please try again or contact support if the issue persists.`;case 429:return`${e}: Rate limit exceeded. Please wait a few moments and try again.`;case 0:return`${e}. Please check your network connection and try again.`;default:if(l>=500)return`${e}: There was a server error. Please try again in a few moments.`;return`${e}. Please try again or contact support if the issue persists.`}}function t(e,l){return e.errorMessage?`${l}: ${e.errorMessage}`:n(l,e.status)}function i(e,l){if(!e||0===e.length)return”Assignment failed”;let a=new Set((l||[]).map(e=>e.issue_number)),n=[];for(let l of e)”number”!=typeof l||isNaN(l)||a.has(l)||n.push(l);if(n.sort((e,l)=>e-l),0===n.length||n.length===e.length)return”Assignment failed”;if(1===n.length)return`Assignment failed for #${n[0]}`;if(2===n.length)return`Assignment failed for #${n[0]} and #${n[1]}`;let[t,i,…s]=n,r=s.length;return`Assignment failed for #${t}, #${i} and ${r} other${1===r?””:”s”}`}function s(e,l){return e instanceof Error?`${l} failed: ${e.message}`:n(`${l} failed`,500)}a.d(l,{Ah:()=>i,VJ:()=>s,v0:()=>t})},78137:(e,l,a)=>{a.d(l,{j:()=>k});let n=(t=[{defaultValue:null,kind:”LocalArgument”,name:”input”}],i=[{kind:”Variable”,name:”input”,variableName:”input”}],r=[{kind:”Literal”,name:”first”,value:20}],o={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},d={alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},u={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},c={alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},m={alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”},p={kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isCopilot”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isAgent”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”displayName”,storageKey:null}],type:”Bot”,abstractKey:null},g=[{kind:”Literal”,name:”first”,value:10}],y={kind:”InlineFragment”,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],type:”Node”,abstractKey:”__isNode”},{fragment:{argumentDefinitions:t,kind:”Fragment”,metadata:null,name:”replaceActorsForAssignableRelayMutation”,selections:[{alias:null,args:i,concreteType:”ReplaceActorsForAssignablePayload”,kind:”LinkedField”,name:”replaceActorsForAssignable”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”assignable”,plural:!1,selections:[{kind:”InlineFragment”,selections:[s,{alias:null,args:r,concreteType:”AssigneeConnection”,kind:”LinkedField”,name:”assignedActors”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[o,s,d,u,c,m,p],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:”assignedActors(first:20)”},{alias:null,args:g,concreteType:”UserConnection”,kind:”LinkedField”,name:”participants”,plural:!1,selections:[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[o,s,d,u,c,m],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:”participants(first:10)”}],type:”Issue”,abstractKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:t,kind:”Operation”,name:”replaceActorsForAssignableRelayMutation”,selections:[{alias:null,args:i,concreteType:”ReplaceActorsForAssignablePayload”,kind:”LinkedField”,name:”replaceActorsForAssignable”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”assignable”,plural:!1,selections:[o,{kind:”InlineFragment”,selections:[s,{alias:null,args:r,concreteType:”AssigneeConnection”,kind:”LinkedField”,name:”assignedActors”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[o,{kind:”InlineFragment”,selections:[s,d,u,c,m,p],type:”Actor”,abstractKey:”__isActor”},y],storageKey:null}],storageKey:”assignedActors(first:20)”},{alias:null,args:g,concreteType:”UserConnection”,kind:”LinkedField”,name:”participants”,plural:!1,selections:[{alias:null,args:null,concreteType:”User”,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[s,{kind:”InlineFragment”,selections:[o,d,u,c,m],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:”participants(first:10)”}],type:”Issue”,abstractKey:null},y],storageKey:null}],storageKey:null}]},params:{id:”fb7a04569f1a9d0b0907155360a4873d”,metadata:{},name:”replaceActorsForAssignableRelayMutation”,operationKind:”mutation”,text:null}});n.hash=”a98a85de19e967f8dc90e05dc5cd27a0″;var t,i,s,r,o,d,u,c,m,p,g,y,h=a(18312);function k({environment:e,input:{issueId:l,assignedActors:a,participants:t},clientMutationId:i,onError:s,onCompleted:r}){let o=[…new Map([…a,…t].filter(e=>!e.isCopilot).map(e=>[e.login,e])).values()].slice(0,5);return(0,h.commitMutation)(e,{mutation:n,variables:{input:{assignableId:l,actorIds:a.map(e=>e.id),clientMutationId:i}},optimisticResponse:{replaceActorsForAssignable:{assignable:{__typename:”Issue”,__isNode:”Issue”,id:l,assignedActors:{nodes:a.map(e=>”Bot”===e.__typename?{__typename:”Bot”,__isActor:”Bot”,__isNode:”Bot”,id:e.id,login:e.login,name:e.name??null,avatarUrl:e.avatarUrl,profileResourcePath:e.profileResourcePath,displayName:e.displayName??””,isCopilot:e.isCopilot||!1,isAgent:e.isAgent||!1}:{__typename:”User”,__isActor:”User”,__isNode:”User”,id:e.id,login:e.login,name:e.name??null,avatarUrl:e.avatarUrl,profileResourcePath:e.profileResourcePath})},participants:{nodes:o.map(e=>”Bot”===e.__typename?{__typename:”Bot”,__isActor:”Bot”,id:e.id,login:e.login,name:e.name??null,avatarUrl:e.avatarUrl,profileResourcePath:e.profileResourcePath,displayName:e.displayName??””,isCopilot:e.isCopilot||!1,isAgent:e.isAgent||!1}:{__typename:”User”,__isActor:”User”,id:e.id,login:e.login,name:e.name??null,avatarUrl:e.avatarUrl,profileResourcePath:e.profileResourcePath})}}}},onError:e=>s&&s(e),onCompleted:e=>r&&r(e)})}},78211:(e,l,a)=>{a.d(l,{e:()=>r});var n=a(96540),t=a(10231),i=a(38621),s=a(85962);function r({state:e,stateReason:l,options:a}){let r=(0,n.useMemo)(()=>{switch(`${e}${a?.longText?” long”:””}`){case”OPEN”:case”OPEN long”:return”Open”;case”CLOSED long”:let n=”Closed”;return”NOT_PLANNED”===l?`${n} as not planned`:”DUPLICATE”===l?`${n} as duplicate`:n;case”CLOSED”:return”NOT_PLANNED”===l?”Not planned”:”DUPLICATE”===l?”Duplicate”:”Closed”;default:return””}},[e,a?.longText,l]),o=(0,n.useMemo)(()=>{switch(e){case”OPEN”:return”issueOpened”;case”CLOSED”:return”NOT_PLANNED”===l||”DUPLICATE”===l?”issueClosedNotPlanned”:”issueClosed”;default:return”issueClosed”}},[e,l]),d=(0,n.useCallback)(()=>{let e={stateChangeQuery:””,stateReasonString:””};if(l){if(l in t.Pu)e.stateChangeQuery=t.Pu[l];else throw Error(`Invalid state change: ${l}`);if(l in t.d6)e.stateReasonString=t.d6[l];else throw Error(`Invalid state change: ${l}`)}return e},[l]),u=(0,n.useMemo)(()=>l===t.DD.NOT_PLANNED||l===t.DD.DUPLICATE?”var(–fgColor-muted)”:”var(–fgColor-done)”,[l]);return{stateString:r,stateStatus:o,getStateQuery:d,issueStateColor:u,issueStateTimelineIcon:(0,n.useMemo)(()=>l===t.DD.NOT_PLANNED||l===t.DD.DUPLICATE?i.CircleSlashIcon:i.CheckCircleIcon,[l]),sourceIcon:(0,n.useCallback)((a,n,t)=>”Issue”===a?null==l||”REOPENED”===l?s.r.OPEN:l in s.r?s.r[l]:i.SkipIcon:n&&”OPEN”===e?s.I.DRAFT:t?s.I.IN_MERGE_QUEUE:null==e?s.I.OPEN:e in s.I?s.I[e]:i.SkipIcon,[e,l])}}},79403:(e,l,a)=>{a.d(l,{Zf:()=>i,bV:()=>s,m5:()=>o,tT:()=>n,wK:()=>t});let n={repositoriesPreloadCount:5,localStorageMetadataKeys:{issueLabels:e=>`${e}.create-issue-labels`,issueAssignees:e=>`${e}.create-issue-assignees`,issueMilestone:e=>`${e}.create-issue-milestone`,issueProjects:e=>`${e}.create-issue-projects`,issueIssueType:e=>`${e}.create-issue-type`,issueIssueFields:e=>`${e}.create-issue-fields`},localStorageKeys:{issueCreateMore:e=>`${e}.create-issue-create-more`,issueRepoId:e=>`${e}.create-issue-repo-id`,issueTemplateId:e=>`${e}.create-issue-template-id`},localTitleAndBodyStorageKeys:{issueTitle:e=>`${e}.create-issue-title`,issueBody:e=>`${e}.create-issue-body`},storageKeyPrefixes:{defaultFallback:”hyperlist”,globalAdd:”issue-global-add”}};function t(e){return Object.values({…n.localStorageKeys,…n.localStorageMetadataKeys,…n.localTitleAndBodyStorageKeys}).map(l=>l(e))}function i(e){return Object.values(n.localStorageMetadataKeys).map(l=>l(e))}function s(e){return Object.values(n.localTitleAndBodyStorageKeys).map(l=>l(e))}let r={title:n.localTitleAndBodyStorageKeys.issueTitle,body:n.localTitleAndBodyStorageKeys.issueBody};function o(e){return Object.values(r).map(l=>l(e))}},81156:(e,l,a)=>{a.d(l,{t:()=>n});let n={ghostUser:{displayName:”Ghost”,login:”ghost”,avatarUrl:”https://avatars.githubusercontent.com/ghost”,path:”/ghost”,url:”/ghost”},localStorageKeys:{issueComment:(e,l,a)=>`${e}-i${l}-c${a}.view-issue-comment`,issueNewComment:(e,l)=>`${e}-i${l}.view-issue-comment-new`}}},81289:(e,l,a)=>{a.d(l,{y:()=>r});var n=a(74848),t=a(83494),i=a(96540);let s=({anchorElement:e,anchorProps:l,anchorRef:a})=>e(l,a);function r({anchorElement:e,createChild:l,keybindingCommandId:a}){let[r,o]=(0,i.useState)(!1),d=(0,i.useRef)(null),u=(0,i.useCallback)(()=>{r||o(!0)},[r,o]);return r?l():(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(t.ak,{commands:{[a]:u}}),(0,n.jsx)(s,{anchorElement:e,anchorProps:{onClick:()=>o(!0),onKeyPress:e=>{(“Enter”===e.key||” “===e.key)&&(e.preventDefault(),o(!0))}},anchorRef:d})]})}try{s.displayName||(s.displayName=”AnchorRenderer”)}catch{}try{r.displayName||(r.displayName=”LazyItemPicker”)}catch{}},81688:(e,l,a)=>{a.d(l,{Z:()=>I});let n=(t=[{defaultValue:null,kind:”LocalArgument”,name:”connections”},{defaultValue:null,kind:”LocalArgument”,name:”input”}],i=[{kind:”Variable”,name:”input”,variableName:”input”}],r={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”closed”,storageKey:null},d={alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},u={alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},c={alias:null,args:null,kind:”ScalarField”,name:”viewerCanUpdate”,storageKey:null},m={alias:null,args:null,kind:”ScalarField”,name:”hasReachedItemsLimit”,storageKey:null},p=[{kind:”Literal”,name:”name”,value:”Status”}],g={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},y={alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},h={alias:null,args:null,kind:”ScalarField”,name:”optionId”,storageKey:null},k={alias:null,args:null,kind:”ScalarField”,name:”nameHTML”,storageKey:null},f={alias:null,args:null,kind:”ScalarField”,name:”color”,storageKey:null},b={kind:”InlineFragment”,selections:[s={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null}],type:”Node”,abstractKey:”__isNode”},{fragment:{argumentDefinitions:t,kind:”Fragment”,metadata:null,name:”updateIssueProjectsRelayMutation”,selections:[{alias:null,args:i,concreteType:”AddProjectV2ItemByIdPayload”,kind:”LinkedField”,name:”addProjectV2ItemById”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemEdge”,kind:”LinkedField”,name:”projectEdge”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”node”,plural:!1,selections:[{args:null,kind:”FragmentSpread”,name:”ProjectItemSection”},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[s,r,o,d,u,c,m],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:”Mutation”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:t,kind:”Operation”,name:”updateIssueProjectsRelayMutation”,selections:[{alias:null,args:i,concreteType:”AddProjectV2ItemByIdPayload”,kind:”LinkedField”,name:”addProjectV2ItemById”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2ItemEdge”,kind:”LinkedField”,name:”projectEdge”,plural:!1,selections:[{alias:null,args:null,concreteType:”ProjectV2Item”,kind:”LinkedField”,name:”node”,plural:!1,selections:[s,{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:null,concreteType:”ProjectV2″,kind:”LinkedField”,name:”project”,plural:!1,selections:[s,r,{alias:null,args:null,kind:”ScalarField”,name:”template”,storageKey:null},c,u,{alias:null,args:p,concreteType:null,kind:”LinkedField”,name:”field”,plural:!1,selections:[g,{kind:”InlineFragment”,selections:[s,y,{alias:null,args:null,concreteType:”ProjectV2SingleSelectFieldOption”,kind:”LinkedField”,name:”options”,plural:!0,selections:[s,h,y,k,f,{alias:null,args:null,kind:”ScalarField”,name:”descriptionHTML”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”description”,storageKey:null}],storageKey:null}],type:”ProjectV2SingleSelectField”,abstractKey:null},b],storageKey:’field(name:”Status”)’},o,d,m],storageKey:null},{alias:null,args:p,concreteType:null,kind:”LinkedField”,name:”fieldValueByName”,plural:!1,selections:[g,{kind:”InlineFragment”,selections:[s,h,y,k,f],type:”ProjectV2ItemFieldSingleSelectValue”,abstractKey:null},b],storageKey:’fieldValueByName(name:”Status”)’}],storageKey:null}],storageKey:null},{alias:null,args:null,filters:null,handle:”appendEdge”,key:””,kind:”LinkedHandle”,name:”projectEdge”,handleArgs:[{kind:”Variable”,name:”connections”,variableName:”connections”}]}],storageKey:null}]},params:{id:”b9a688cdfd72ea1627e9e0c19b9b67f1″,metadata:{},name:”updateIssueProjectsRelayMutation”,operationKind:”mutation”,text:null}});n.hash=”dbe2b16a81c1878c83467c6e3a8a0a7c”;var t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F=a(18312);function I({environment:e,connectionId:l,projectId:a,issueId:t,clientMutationId:i,onError:s,onCompleted:r}){if(a)return(0,F.commitMutation)(e,{mutation:n,variables:{input:{contentId:t,projectId:a,clientMutationId:i},connections:l?[l]:[]},onError:e=>s&&s(e),onCompleted:e=>r&&r(e)})}},81709:(e,l,a)=>{a.d(l,{j:()=>r});var n=a(74848),t=a(73454),i=a(31604),s=a(96540);function r({errorMessage:e,anchorElement:l,open:a=!1}){let[r,o]=(0,s.useState)(a);return{createFallbackComponent:(0,s.useCallback)(a=>l?(0,n.jsx)(i.T,{width:”medium”,height:”small”,open:r,onOpen:()=>o(!0),onClose:()=>o(!1),renderAnchor:l,children:(0,n.jsx)(“div”,{className:”useItemPickerErrorFallback-module__errorOverlayContainer–Z5I2C”,children:(0,n.jsx)(t.h,{message:e,retry:a,className:”useItemPickerErrorFallback-module__errorWithRetry–kl8Hn”})})}):null,[l,e,r])}}},81724:(e,l,a)=>{a.d(l,{$K:()=>t,AI:()=>u,Al:()=>s,GQ:()=>i,rp:()=>n,t7:()=>o,yJ:()=>r});let n=”Blank issue”,t=”BLANK_ISSUE”;function i(e){return”IssueForm”===e.__typename}function s(e){return”IssueTemplate”===e.__typename}function r(e){return”BlankIssue”===e.__typename}let o={IssueForm:”IssueForm”,IssueTemplate:”IssueTemplate”,ContactLink:”ContactLink”,BlankIssue:”BlankIssue”},d={name:n,fileName:t,kind:o.BlankIssue,data:{__typename:”BlankIssue”,__id:t,title:””,body:””,assignees:{edges:[]},labels:{edges:[]}}};function u(){return d}},82550:(e,l,a)=>{a.d(l,{B:()=>s});var n=a(74848),t=a(96540),i=a(25556);function s({includeAriaAttributes:e=!0,…l}){let a=(0,t.useId)(),[s,r]=(0,t.useState)(!1),o=l.open??s,d=l.id??a,u=e?{“aria-describedby”:d}:{},c=(0,t.useCallback)(()=>r(!0),[]),m=(0,t.useCallback)(()=>r(!1),[]);return[{…u,onPointerEnter:c,onPointerLeave:m,onFocus:c,onBlur:m},(0,n.jsx)(i.m,{…l,open:o,id:d},”portal-tooltip”),()=>r(!s)]}},83116:(e,l,a)=>{a.d(l,{D:()=>es});var n,t,i,s,r,o,d,u,c,m,p,g,y,h,k,f,b,F,I,S,v,x,C,j,T,_,N,K,L,A,w=a(74848),P=a(34267),E=a(38621),R=a(26108),D=a(96540),V=a(18312);let M=(n=[{defaultValue:null,kind:”LocalArgument”,name:”ids”}],t=[{kind:”Variable”,name:”ids”,variableName:”ids”}],s={alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},r={alias:null,args:null,kind:”ScalarField”,name:”state”,storageKey:null},o={alias:null,args:null,kind:”ScalarField”,name:”stateReason”,storageKey:null},d={alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[i={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null}],storageKey:null},{fragment:{argumentDefinitions:n,kind:”Fragment”,metadata:null,name:”IssuePickerSelectedIssuesQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[i,s,r,o,d,u={alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},c={alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},m={alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},p={alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],type:”Issue”,abstractKey:null}],storageKey:null}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:n,kind:”Operation”,name:”IssuePickerSelectedIssuesQuery”,selections:[{alias:null,args:t,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[p,i,{kind:”InlineFragment”,selections:[s,r,o,d,u,c,m],type:”Issue”,abstractKey:null}],storageKey:null}]},params:{id:”ab7e8eddc2f0411413899568c6f97ae4″,metadata:{},name:”IssuePickerSelectedIssuesQuery”,operationKind:”query”,text:null}});M.hash=”c4d195f7754769a3937a686385b27e39″,({argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”IssuePickerIssue”,selections:[g={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”state”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”stateReason”,storageKey:null},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[g,{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],type:”Issue”,abstractKey:null}).hash=”196c5dfa10bac249c09a7e5a825a3eb9″;var O=a(19918),B=a(86391),$=a(81709),U=a(30721),H=a(10436);let q={fragment:{argumentDefinitions:[y={defaultValue:null,kind:”LocalArgument”,name:”assignee”},h={defaultValue:null,kind:”LocalArgument”,name:”author”},k={defaultValue:null,kind:”LocalArgument”,name:”commenters”},f={defaultValue:10,kind:”LocalArgument”,name:”first”},b={defaultValue:null,kind:”LocalArgument”,name:”mentions”},F={defaultValue:null,kind:”LocalArgument”,name:”other”},I={defaultValue:null,kind:”LocalArgument”,name:”queryIsUrl”},S={defaultValue:null,kind:”LocalArgument”,name:”resource”}],kind:”Fragment”,metadata:null,name:”useIssueFilteringQuery”,selections:[{args:null,kind:”FragmentSpread”,name:”useIssueFilteringFragment”}],type:”Query”,abstractKey:null},kind:”Request”,operation:{argumentDefinitions:[k,b,y,h,F,f,S,I],kind:”Operation”,name:”useIssueFilteringQuery”,selections:[{alias:”commenters”,args:[v={kind:”Variable”,name:”first”,variableName:”first”},{kind:”Variable”,name:”query”,variableName:”commenters”},x={kind:”Literal”,name:”type”,value:”ISSUE”}],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:T=[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:j=[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{kind:”InlineFragment”,selections:[C={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”state”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”stateReason”,storageKey:null},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[C,{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null}],type:”Issue”,abstractKey:null},{kind:”InlineFragment”,selections:[C],type:”Node”,abstractKey:”__isNode”}],storageKey:null}],storageKey:null},{alias:”mentions”,args:[v,{kind:”Variable”,name:”query”,variableName:”mentions”},x],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:T,storageKey:null},{alias:”assignee”,args:[v,{kind:”Variable”,name:”query”,variableName:”assignee”},x],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:T,storageKey:null},{alias:”author”,args:[v,{kind:”Variable”,name:”query”,variableName:”author”},x],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:T,storageKey:null},{alias:”other”,args:[v,{kind:”Variable”,name:”query”,variableName:”other”},x],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:T,storageKey:null},{condition:”queryIsUrl”,kind:”Condition”,passingValue:!0,selections:[{alias:null,args:[{kind:”Variable”,name:”url”,variableName:”resource”}],concreteType:null,kind:”LinkedField”,name:”resource”,plural:!1,selections:j,storageKey:null}]}]},params:{id:”fd3a643214580202448e306c6dc70a42″,metadata:{},name:”useIssueFilteringQuery”,operationKind:”query”,text:null}};q.hash=”7805f5acc9dd7dba8b26177327542d38″;let G={argumentDefinitions:[{kind:”RootArgument”,name:”assignee”},{kind:”RootArgument”,name:”author”},{kind:”RootArgument”,name:”commenters”},{kind:”RootArgument”,name:”first”},{kind:”RootArgument”,name:”mentions”},{kind:”RootArgument”,name:”other”},{kind:”RootArgument”,name:”queryIsUrl”},{kind:”RootArgument”,name:”resource”}],kind:”Fragment”,metadata:null,name:”useIssueFilteringFragment”,selections:[{alias:”commenters”,args:[_={kind:”Variable”,name:”first”,variableName:”first”},{kind:”Variable”,name:”query”,variableName:”commenters”},N={kind:”Literal”,name:”type”,value:”ISSUE”}],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:A=[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:L=[{kind:”InlineFragment”,selections:[K={alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”title”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”state”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”stateReason”,storageKey:null},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[K,{alias:null,args:null,kind:”ScalarField”,name:”nameWithOwner”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”databaseId”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”url”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null}],type:”Issue”,abstractKey:null}],storageKey:null}],storageKey:null},{alias:”mentions”,args:[_,{kind:”Variable”,name:”query”,variableName:”mentions”},N],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:A,storageKey:null},{alias:”assignee”,args:[_,{kind:”Variable”,name:”query”,variableName:”assignee”},N],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:A,storageKey:null},{alias:”author”,args:[_,{kind:”Variable”,name:”query”,variableName:”author”},N],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:A,storageKey:null},{alias:”other”,args:[_,{kind:”Variable”,name:”query”,variableName:”other”},N],concreteType:”SearchResultItemConnection”,kind:”LinkedField”,name:”search”,plural:!1,selections:A,storageKey:null},{condition:”queryIsUrl”,kind:”Condition”,passingValue:!0,selections:[{alias:null,args:[{kind:”Variable”,name:”url”,variableName:”resource”}],concreteType:null,kind:”LinkedField”,name:”resource”,plural:!1,selections:L,storageKey:null}]}],type:”Query”,abstractKey:null};G.hash=”c49d3e50365f7955d0d96fe3eaaa3d66″;var W=a(38143),z=a(89850),Q=a(46747);let Y=e=>e.id,X={groupId:”selected”,header:{title:”Selected”}},Z={groupId:”suggestions”,header:{title:”Suggestions”,variant:”filled”}},J=[X,Z],ee=new Map;function el({onIssueSelection:e,selectedIssueIds:l,hiddenIssueIds:a,owner:n,repositoryNameWithOwner:t,pickerId:i,isLoading:s=!1,…r}){let[o,d]=(0,D.useState)(“”),{isLoading:u,isError:c,items:m}=((e,l=””,a,n)=>{let t=(0,V.useRelayEnvironment)(),[i,s]=(0,D.useState)(!0),[r,o]=(0,D.useState)(!1),[d,u]=(0,D.useState)(null),c=(0,D.useRef)(null),m=(0,D.useCallback)(e=>{s(!0),c.current?.unsubscribe(),c.current=(0,U.SD)({environment:t,query:q,variables:(0,z.A2)(l,e,a)}).subscribe({next:e=>{u(e??null),s(!1),o(!1)},error:()=>{o(!0),s(!1)}})},[t,l,a]),p=(0,Q.d)(e=>m(e),W.t.pickerDebounceTime);(0,D.useEffect)(()=>{p(e)},[p,e]),(0,D.useEffect)(()=>()=>{c.current?.unsubscribe()},[]);let g=(0,V.useFragment)(G,d);return{isLoading:i,isError:r,items:(0,D.useMemo)(()=>{if(!g)return new Map;{if(g.resource?.__typename===”Issue”)return new Map([[g.resource?.id,g.resource]]);let e=[…g.commenters?.nodes||[],…g.mentions?.nodes||[],…g.assignee?.nodes||[],…g.author?.nodes||[],…g.other?.nodes||[]].filter(e=>e?.__typename===”Issue”),l=new Map;for(let a of e)n?.some(e=>e===a.id)||l.set(a.id,a);return l}},[n,g])}})(o,n,t,a),{createFallbackComponent:p}=(0,$.j)({errorMessage:O.k.cantEditItems(“issues”),anchorElement:r.anchorElement,open:!0});return c?p(()=>{}):(0,w.jsx)(ea,{items:s?ee:m,isLoading:u||s,…r,selectedIssueIds:l,hiddenIssueIds:a,filter:o,setFilter:d,onIssueSelection:e,repositoryNameWithOwner:t,pickerId:i})}function ea({items:e,onIssueSelection:l,anchorElement:a,setFilter:n,isLoading:t,title:i,onClose:s,triggerOpen:r,selectedIssueIds:o,filter:d,pickerId:u,selectionVariant:c=”single”,subtitle:m,className:p,notice:g,insidePortal:y,responsiveOnNarrow:h}){let k=(0,V.useRelayEnvironment)(),[f,b]=(0,D.useState)({}),F=(0,D.useCallback)(e=>new Promise((l,a)=>{(0,U.SD)({environment:k,query:M,variables:{ids:e}}).subscribe({next:e=>{null!==e&&l(e)},error:e=>{a(e)}})}),[k]);for(let[l,a]of((0,D.useEffect)(()=>{if(!t&&o){let a=[];for(let l of o){let n=e.get(l);n?b(e=>({…e,[l]:n})):f?.[l]||a.push(l)}a.length>0&&l(a)}async function l(e){let{nodes:l=[]}=await F(e);for(let e of l)e&&”Issue”===e.__typename&&b(l=>({…l,[e.id]:e}))}},[t,e]),Object.entries(f)))e.set(l,a);let I=Array.from(e.values()),S=I.findIndex(e=>e.number===Number(d));if(S>0){let[e]=I.splice(S,1);e&&I.unshift(e)}let v=(0,D.useCallback)(e=>{var l,a;let n,t,{icon:i,fill:s}=(l=e.state,a=e.stateReason,n=E.IssueOpenedIcon,t=”open.fg”,”CLOSED”===l&&(n=”COMPLETED”===a?E.IssueClosedIcon:E.SkipIcon,t=”COMPLETED”===a?”done.fg”:”muted.fg”),{icon:n,fill:t}),r=o?.includes(e.id);return{id:e.id,text:e.title,sx:{wordBreak:”break-word”},source:e,groupId:r?X.groupId:Z.groupId,leadingVisual:()=>(0,w.jsx)(H.m4,{icon:i,sx:{path:{fill:s}}}),trailingVisual:()=>(0,w.jsx)(“span”,{className:”IssuePicker-module__issueNumberText–eQZT6″,children:`#${e.number}`}),description:r?e.repository.nameWithOwner:void 0,descriptionVariant:”block”}},[o]),x=(0,D.useRef)(null),C=(0,D.useMemo)(()=>o?.length?J:J.filter(e=>e.groupId!==X.groupId),[o]),j=(0,D.useMemo)(()=>0===I.length,[I.length]);return(0,w.jsx)(B.O,{loading:t,items:I,initialSelectedItems:o||[],filterItems:n,title:i||O.k.issueHeader,getItemKey:Y,convertToItemProps:v,placeholderText:”Search issues”,selectionVariant:c,onSelectionChange:l,renderAnchor:a,height:”large”,width:”medium”,maxVisibleItems:-1,resultListAriaLabel:”issue results”,selectPanelRef:x,triggerOpen:r,groups:C,onClose:s,pickerId:u,subtitle:m,className:p,notice:g,suppressNoMatchItem:!0,improvedNoMatchAccessibility:j,noMatchMessage:j?{title:”No issues found”,body:”Try changing your search term or selecting a different repository.”,variant:”empty”}:void 0,insidePortal:y,responsiveOnNarrow:h})}try{el.displayName||(el.displayName=”IssuePicker”)}catch{}try{ea.displayName||(ea.displayName=”IssuePickerInternal”)}catch{}var en=a(81171);let et=”repository-picker”,ei=”issue-picker”;function es({pickerType:e=null,anchorElement:l,onPickerTypeChange:a,selectedIssueIds:n,hiddenIssueIds:t,…i}){let[s,r]=(0,D.useState)(e);return((0,D.useEffect)(()=>{r(e)},[e]),(0,D.useEffect)(()=>{e!==s&&a?.(s)},[a,s]),null===s)?l({onClick:()=>r(“Issue”)}):(0,w.jsx)(er,{anchorElement:l,selectedIssueIds:n,hiddenIssueIds:t,…i,setPickerType:r,pickerType:s})}function er({anchorElement:e,onIssueSelection:l,organization:a,defaultRepositoryNameWithOwner:n,pickerType:t,setPickerType:i,selectedIssueIds:s,hiddenIssueIds:r,issuePickerProps:o,repositoryPickerProps:d}){let[u,c]=(0,D.useState)(n),[m,p]=(0,D.useState)(void 0),[g,y]=(0,D.useState)(null),{updateOpenState:h}=(0,P.t)(),k=(0,V.useRelayEnvironment)(),f=(0,D.useCallback)(()=>{i(“Repository”)},[i]),b=(0,D.useCallback)(()=>{i(e=>”Issue”===e?”Issue”:null),h(et,!1)},[i,h]),F=(0,D.useCallback)(()=>{i(e=>”Repository”===e?”Repository”:null),h(ei,!1)},[i,h]),I=(0,D.useCallback)(e=>{e?.nameWithOwner&&c(e?.nameWithOwner),(u||e?.nameWithOwner)&&i(“Issue”)},[i,u]);switch((0,D.useEffect)(()=>{(async()=>{y(await (0,en.St)(k,{first:5,hasIssuesEnabled:!0}))})()},[]),(0,D.useEffect)(()=>{!async function(){let[e,l]=u.split(“/”);if(e&&l){let a=await (0,en.tZ)(k,e,l);null!=a&&p(a)}}()},[u,k]),t){case”Repository”:if(!g)return null;return(0,w.jsx)(en.f0,{initialRepository:m,preventDefault:!0,onSelect:I,organization:a,topRepositories:g,anchorElement:e,onClose:b,triggerOpen:!0,title:”Select a repository”,pickerId:et,…d});case”Issue”:return(0,w.jsx)(el,{selectedIssueIds:s,hiddenIssueIds:r,onIssueSelection:e=>{l(e),i(null)},anchorElement:e,repositoryNameWithOwner:u,onClose:F,title:(0,w.jsxs)(“div”,{className:”RepositoryAndIssuePicker-module__BackToRepositorySelectionButton–bl2wm”,children:[(0,w.jsx)(R.K,{icon:E.ArrowLeftIcon,variant:”invisible”,”data-testid”:”back-to-repo-selection-button”,”aria-label”:”Back to repository selection”,tooltipDirection:”n”,onClick:f}),(0,w.jsx)(“span”,{children:u})]}),triggerOpen:!0,pickerId:ei,…o})}}try{es.displayName||(es.displayName=”RepositoryAndIssuePicker”)}catch{}try{er.displayName||(er.displayName=”RepositoryAndIssuePickerInternal”)}catch{}},85346:(e,l,a)=>{a.d(l,{u:()=>I,R:()=>b});var n=a(74848),t=a(19918),i=a(81289),s=a(81709),r=a(51928),o=a(97665),d=a(71315),u=a(96540),c=a(96379),m=a(47544);async function p({owner:e,query:l,count:a}){let n={owner:e};l&&(n.query=l),a&&(n.count=a);let t=(0,m.JF)(“issue_types”,n),i=await (0,c.lS)(t);return await i.json()}var g=a(73049),y=a(30459),h=a(27849);function k(e){return”object”==typeof e&&null!==e&&”string”==typeof e.id&&”string”==typeof e.name&&(“string”==typeof e.description||null===e.description||void 0===e.description)&&”string”==typeof e.color&&(“boolean”==typeof e.isEnabled||void 0===e.isEnabled)}let f={Check:e=>”object”==typeof e&&null!==e&&Array.isArray(e.issueTypes)&&e.issueTypes.every(k),Code:()=>”manual-validator”,*Errors(){}};async function b(e,{owner:l,query:a,count:n,persister:t}){return await e.fetchQuery({queryKey:[“item_picker”,”issue_types”,{owner:l,query:a,count:n}],queryFn:async()=>{let e=await p({owner:l,query:a,count:n});return{issueTypes:(0,g.A)(e).data.organization.issueTypes.edges.map(e=>e.node)}},persister:t})}function F({owner:e,…l}){let[a,i]=(0,u.useState)(!1),[c,m]=(0,u.useState)(0),[p,g]=(0,u.useState)(!1),[k,F]=(0,u.useState)(null),[I,S]=(0,u.useState)(1),v=(0,o.jE)(),{sendAnalyticsEvent:x}=(0,y.s)();(0,u.useEffect)(()=>{performance.mark(“issue-type-picker-opened”)},[]),(0,u.useEffect)(()=>{d.X3||(async()=>{try{i(!0);let l=async(e,l,a)=>(0,h.y)({validator:f,sendAnalyticsEvent:x,alwaysRefetch:!0,enabled:!0})(e,l,a),a=await b(v,{owner:e,query:””,persister:l});F(a),i(!1),g(!1)}catch{g(!0),i(!1)}})()},[c,e,v,x]),(0,u.useEffect)(()=>{if(!a&&k&&I>0)try{performance.mark(“issue-type-picker-rendered”);let e=performance.measure(“issue-type-picker-duration”,”issue-type-picker-opened”,”issue-type-picker-rendered”);x(“issue_type_picker.render_duration”,void 0,{duration:e.duration,caching_enabled:!0}),performance.clearMarks(“issue-type-picker-opened”),performance.clearMarks(“issue-type-picker-rendered”),performance.clearMeasures(“issue-type-picker-duration”)}catch{}},[a,k,x,I]);let C=(0,u.useRef)(null),j=(0,u.useCallback)(()=>{performance.mark(“issue-type-picker-opened”),S(e=>e+1)},[]),{createFallbackComponent:T}=(0,s.j)({errorMessage:t.k.cantEditItems(“types”),anchorElement:e=>l.anchorElement(e,C),open:!0});return p?T(()=>m(e=>e+1)):(0,n.jsx)(r.f,{issueTypes:k?.issueTypes??[],isLoading:a,…l,onOpen:j})}function I({owner:e,anchorElement:l,readonly:a,activeIssueType:t,…s}){return(0,n.jsx)(i.y,{keybindingCommandId:”item-pickers:open-issue-type”,anchorElement:(e,a)=>l(e,a),createChild:()=>(0,n.jsx)(F,{owner:e,readonly:a,activeIssueType:t,triggerOpen:!0,anchorElement:l,…s}),insidePortal:s.insidePortal})}try{F.displayName||(F.displayName=”ItemPickerFetcher”)}catch{}try{I.displayName||(I.displayName=”IssueTypePicker”)}catch{}},85757:(e,l,a)=>{a.d(l,{b:()=>r});var n=a(74848),t=a(96901),i=a(46173),s=a(40846);let r=()=>(0,n.jsx)(s.C,{variant:”danger”,ariaLabel:t.k.spammyBadgeTooltip,label:t.k.spammyBadge,testId:i.Y.spammyLabel});try{r.displayName||(r.displayName=”SpammyBadge”)}catch{}},85962:(e,l,a)=>{a.d(l,{I:()=>s,r:()=>i});var n=a(74848),t=a(38621);let i={OPEN:({className:e=””,…l})=>(0,n.jsx)(t.IssueOpenedIcon,{“aria-label”:”Open”,…l,className:`fgColor-open ${e}`}),COMPLETED:({className:e=””,…l})=>(0,n.jsx)(t.IssueClosedIcon,{“aria-label”:”Completed”,…l,className:`fgColor-done ${e}`}),NOT_PLANNED:({className:e=””,…l})=>(0,n.jsx)(t.SkipIcon,{“aria-label”:”Not planned”,…l,className:`fgColor-muted ${e}`}),DUPLICATE:({className:e=””,…l})=>(0,n.jsx)(t.SkipIcon,{“aria-label”:”Duplicate”,…l,className:`fgColor-muted ${e}`})},s={MERGED:({className:e=””,…l})=>(0,n.jsx)(t.GitMergeIcon,{“aria-label”:”Merged”,…l,className:`fgColor-done ${e}`}),IN_MERGE_QUEUE:({className:e=””,…l})=>(0,n.jsx)(t.GitMergeQueueIcon,{“aria-label”:”In merge queue”,…l,className:`fgColor-attention ${e}`}),OPEN:({className:e=””,…l})=>(0,n.jsx)(t.GitPullRequestIcon,{“aria-label”:”Open”,…l,className:`fgColor-open ${e}`}),CLOSED:({className:e=””,…l})=>(0,n.jsx)(t.GitPullRequestClosedIcon,{“aria-label”:”Closed”,…l,className:`fgColor-closed ${e}`}),DRAFT:({className:e=””,…l})=>(0,n.jsx)(t.GitPullRequestDraftIcon,{“aria-label”:”Draft”,…l,className:`fgColor-draft ${e}`})}},89064:(e,l,a)=>{a.d(l,{l:()=>n});let n={createMore:”Create more”,createMoreSubIssues:”Create more sub-issues”,createFullscreen:”Open issue creation in fullscreen”,copyUrl:”Copy link”,create:”Create”,cancel:”Cancel”}},89946:(e,l,a)=>{a.d(l,{A:()=>n});let n={skeletonContainer:”TemplateList-module__skeletonContainer–fU4Ip”,templateHeader:”TemplateList-module__templateHeader–_jTSZ”}},90651:(e,l,a)=>{a.d(l,{S:()=>s});var n=a(79403),t=a(50167);let i={showFullScreenButton:!1,navigateToFullScreenOnTemplateChoice:!1,insidePortal:!0,showRepositoryPicker:!0,storageKeyPrefix:””,canBypassTemplateSelection:!1,emojiSkinTonePreference:0,copilotShowFunctionality:!1,disableCopilotAssignmentModal:!1},s=e=>{let l={…i,…e},a={storageKeyPrefix:(l.issueCreateArguments?.repository?`${l.issueCreateArguments?.repository.owner}-${l.issueCreateArguments?.repository.name}`:void 0)??l.storageKeyPrefix??n.tT.storageKeyPrefixes.defaultFallback};return{…l,…a,getDefaultDisplayMode:e=>l.defaultDisplayMode??e??t.q.TemplatePicker}}},90921:(e,l,a)=>{a.d(l,{D:()=>L,U:()=>N});var n=a(74848),t=a(19918),i=a(81289),s=a(81709),r=a(69599),o=a(49275),d=a(38143),u=a(86391),c=a(43258),m=a(46747),p=a(96540),g=a(38621),y=a(73867),h=a(67126),k=a(24453);let f={groupId:”open”,header:{title:”Open”,variant:”filled”}},b={groupId:”closed”,header:{title:”Closed”,variant:”filled”}};function F({repo:e,owner:l,milestones:a,repositoryId:i,activeMilestone:s,onSelectionChange:F,insidePortal:I,anchorElement:S,nested:v,triggerOpen:x,initialFilter:C,isLoading:j,setIsLoading:T,noMilestoneItem:_,showMilestoneDescription:N,title:K,canCreateMilestone:L,fetchMilestones:A,onCreate:w,showNoMatchItem:P=!1}){let[E,R]=(0,p.useState)(“”),D=(0,p.useDeferredValue)(E),[V,M]=(0,p.useState)(!1),[O,B]=(0,p.useState)(),[$,U]=(0,p.useState)([]),{addToast:H}=(0,c.Y6)(),q=(0,p.useMemo)(()=>{if(void 0!==O&&O.length>0)return O;let e=a.slice().sort((e,l)=>e.title.localeCompare(l.title)).concat($);return(_&&e.unshift(o.v.noMilestoneData),D)?e.filter(e=>e.title.toLowerCase().indexOf(D.toLowerCase())>=0):e},[a,D,$,_,O]),G=_&&_.selected,W=(0,p.useMemo)(()=>_?q.filter(e=>!1===e.closed):[],[_,q]),z=(0,p.useCallback)(async a=>{M(!0),R(a);try{let n=await A({query:a,owner:l,repo:e,count:10});void 0!==n&&(_&&(0,k.O)(a,_.source?.title??””)&&n.unshift(o.v.noMilestoneData),B(n))}catch{H({type:”error”,message:h.S.couldNotSearchMilestones})}finally{M(!1)}},[H,A,_,l,e]),Q=(0,m.d)(e=>z(e),d.t.pickerDebounceTime),Y=(0,p.useCallback)(async e=>{let l=e.trim();if(E!==l){if(“”===l){B(void 0),R(l);return}Q(l)}},[Q,E]),X=(0,p.useCallback)(e=>e.id,[]),Z=(0,p.useCallback)((e,l,a)=>{a.preventDefault(),a.stopPropagation(),i&&(T(!0),w({repositoryId:i,title:l.title},{onError:()=>{H({type:”error”,message:h.S.couldNotCreateMilestone}),T(!1)},onSuccess:e=>{e&&U([{…e,__isNew__:!0},…$]),T(!1)}}))},[H,$,w,i,T]),J=(0,p.useCallback)(e=>{if(_&&e.id===o.v.noMilestoneData.id)return{…_};if(e.id===E)return{id:e.id,text:`Create new milestone: “${e.title}”`,source:e,trailingVisual:g.PlusIcon,className:”ItemPickerMilestone-module__MilestoneFilterItem–fSFTu”,onAction:(l,a)=>Z(l,e,a)};let{closed:l,closedAt:a,progressPercentage:t,dueOn:i}=e;return{id:e.id,text:e.title,description:N?(0,n.jsx)(y.R,{closed:l,closedAt:a,progressPercentage:t,dueOn:i,showProgressPercentage:!1}):void 0,descriptionVariant:”block”,className:”ItemPickerMilestone-module__MilestoneItem–J0_9F”,source:e,groupId:e.closed?b.groupId:f.groupId,leadingVisual:()=>(0,n.jsx)(g.MilestoneIcon,{size:16})}},[Z,E,_,N]),ee=(0,p.useMemo)(()=>{let e=[];return q.some(e=>!e.closed)&&e.push(f),q.some(e=>e.closed)&&e.push(b),e},[q]);_&&G&&(s=o.v.noMilestoneData);let el=(0,p.useRef)(null),ea=(0,p.useMemo)(()=>s?[s]:[],[s]),en=(0,p.useMemo)(()=>{let e=!V&&!E&&0===q.length,l=!P&&!!E&&0===q.length;return e||l},[E,V,q.length,P]),et=(0,r.G7)(“issues_react_select_panel_fullscreen_on_narrow”);return(0,n.jsx)(u.O,{loading:j||V,items:_?W:q,initialSelectedItems:ea,filterItems:Y,title:K??t.k.milestonesHeader,getItemKey:X,convertToItemProps:J,placeholderText:`Filter milestones ${a.length>=d.t.milestonesMaxPreloadCount?`(${d.t.milestonesMaxPreloadCount} milestones loaded)`:””}`,selectionVariant:”single”,onSelectionChange:F,groups:_?void 0:ee,renderAnchor:e=>S(e,el),insidePortal:I,height:”large”,width:”medium”,nested:v,resultListAriaLabel:”Milestone results”,triggerOpen:x,initialFilter:C,selectPanelRef:el,keybindingCommandId:”item-pickers:open-milestone”,customNoMatchItem:L&&P&&E?{id:E,closed:!1,progressPercentage:0,title:E,url:””}:void 0,improvedNoMatchAccessibility:en,noMatchMessage:en?{title:”No milestones were found”,body:”Try searching with a different query for results.”,variant:”empty”}:void 0,responsiveOnNarrow:et})}try{F.displayName||(F.displayName=”MilestonePickerBase”)}catch{}var I=a(97665),S=a(71315),v=a(96379),x=a(47544);async function C({owner:e,repo:l,query:a,count:n}){let t={owner:e,repo:l};a&&(t.query=a),n&&(t.count=n);let i=(0,x.JF)(“milestones”,t),s=await (0,v.lS)(i);return await s.json()}var j=a(73049),T=a(94747);async function _(e){let l=(0,x.kP)(“milestones”);return(await (0,v.lS)(l,{method:”POST”,body:e})).json()}async function N(e,{owner:l,repo:a,query:n,count:t}){return await e.fetchQuery({queryKey:[“item_picker”,”milestones”,{owner:l,repo:a,query:n,count:t}],queryFn:async()=>{var e;let i=await C({owner:l,repo:a,query:n,count:t});return{milestones:(e=(0,j.A)(i).data).repository.milestones.nodes,repositoryId:e.repository.id}}})}function K({repo:e,owner:l,…a}){let[i,r]=(0,p.useState)(!0),[o,d]=(0,p.useState)(0),[u,c]=(0,p.useState)(!1),[m,g]=(0,p.useState)(null),y=(0,I.jE)(),{mutate:h}=(0,T.n)({mutationFn:async e=>{let l=await _(e);return(0,j.A)(l).data.createMilestone.milestone}});(0,p.useEffect)(()=>{S.X3||(async()=>{try{let a=await N(y,{owner:l,repo:e,query:””});g(a),r(!1),c(!1)}catch{c(!0),r(!1)}})()},[o,l,y,e]);let k=(0,p.useRef)(null),{createFallbackComponent:f}=(0,s.j)({errorMessage:t.k.cantEditItems(“milestones”),anchorElement:e=>a.anchorElement(e,k),open:!0}),b=(0,p.useCallback)(async e=>(await N(y,e)).milestones,[y]),v=(0,p.useCallback)((e,{onSuccess:l,onError:a})=>{h(e,{onSuccess:l,onError:a})},[h]);return u?f(()=>d(e=>e+1)):(0,n.jsx)(F,{repo:e,owner:l,repositoryId:m?.repositoryId??””,milestones:m?.milestones??[],isLoading:i,setIsLoading:r,fetchMilestones:b,onCreate:v,…a})}function L({repo:e,owner:l,anchorElement:a,readonly:t,activeMilestone:s,noMilestoneItem:r,…o}){return(0,n.jsx)(i.y,{keybindingCommandId:”item-pickers:open-milestone”,anchorElement:(e,l)=>a(e,l),createChild:()=>(0,n.jsx)(K,{repo:e,owner:l,readonly:t,initialFilter:””,activeMilestone:s,triggerOpen:!0,anchorElement:a,noMilestoneItem:r,…o}),insidePortal:o.insidePortal})}try{K.displayName||(K.displayName=”ItemPickerFetcher”)}catch{}try{L.displayName||(L.displayName=”MilestonePicker”)}catch{}},91253:(e,l,a)=>{a.d(l,{l:()=>x,Y:()=>F});var n=a(74848),t=a(12360),i=a(77430),s=a(67126),r=a(19918),o=a(49275),d=a(38143),u=a(86391),c=a(43258),m=a(46747),p=a(26607),g=a(96540);function y(e,l,a){let n=a.toLowerCase().trim(),t=e.filter(e=>`${e.login.toLowerCase()}#${e.name?.toLowerCase()}`.includes(n)),i=l.filter(e=>!t.some(l=>l.id===e.id));return i.sort((e,l)=>e.isCopilot!==l.isCopilot?e.isCopilot?-1:1:e.login.localeCompare(l.login)),t.concat(i)}let h={groupId:”assignees”},k={groupId:”suggestions”,header:{title:”Suggestions”,variant:”filled”}};var f=a(69599);let b=”AssigneePickerBase-module__Item–n9KU9″,F=10,I={Copilot:”GitHub”,Codex:”OpenAI”,Claude:”Anthropic”},S=[],v=[];function x({assignees:e=S,suggestions:l=v,searchAssignees:a,onSelectionChange:x,insidePortal:j,anchorElement:T,nested:_,isLoading:N=!1,noAssigneeOption:K,triggerOpen:L,selectionVariant:A=”multiple”,title:w,maximumAssignees:P=F,name:E=”assignee”,showNoMatchItem:R=!1,viewer:D,responsiveOnNarrow:V=!1}){let[M,O]=(0,g.useState)(“”),[B,$]=(0,g.useState)(void 0),[U,H]=(0,g.useState)(e),q=(0,g.useRef)(M),{addToast:G}=(0,c.Y6)(),W=V||(0,f.G7)(“issues_react_select_panel_fullscreen_on_narrow”);(0,g.useEffect)(()=>{H(e)},[e]);let z=(0,g.useCallback)(e=>e.login,[]),Q=(0,g.useMemo)(()=>{let a=[];if(a=B?y(e,B,M):y(e,e.concat(l.filter(l=>!e.find(e=>e.login===l.login))),M),D){let e=a.findIndex(e=>e.login===D.login);if(-1!==e)a.splice(e,1);else if(B)return a;a.unshift(D)}return!K||K.selected||a.find(e=>e.id===o.v.noAssigneeData.id)||a.unshift(o.v.noAssigneeData),a},[B,D,K,e,M,l]),Y=(0,g.useCallback)(l=>0===e.length?k.groupId:e.find(e=>e.id===l.id)?h.groupId:k.groupId,[e]),X=(0,g.useMemo)(()=>!!(P&&U.length>=P),[U.length,P]),Z=(0,g.useCallback)(e=>{let l=U.some(l=>l.id===e.id),a=X&&!l;if(K&&e.id===o.v.noAssigneeData.id){let l={…K};return l.groupId=Y(e),l.disabled=a,l}if(R&&e.id===o.v.noMatchData.id)return{…o.v.noMatchData,groupId:Y(e),source:e,text:`${E}:${M}`,className:b,disabled:a};let s=e.isCopilot,d=”Bot”===e.__typename,u=s||e.isAgent,c=s?r.k.copilotDisplayName:d&&e.displayName?e.displayName:e.login,m=(s||e.isAgent)&&e.displayName?I[e.displayName]??””:e.name||””;return{id:e.id,text:c,description:m,source:e,groupId:Y(e),leadingVisual:()=>s?(0,n.jsx)(t.C,{}):0===e.avatarUrl.length?null:(0,n.jsx)(i.r,{alt:””,src:e.avatarUrl}),trailingVisual:()=>u?(0,n.jsx)(p.A,{children:”AI”}):d?(0,n.jsx)(p.A,{children:”bot”}):null,className:b,disabled:a}},[M,Y,E,K,R,X,U]),J=(0,g.useCallback)(()=>{$(void 0)},[]),ee=(0,g.useCallback)(async e=>{if(“”===e)return void $(void 0);try{let l=await a(e),n=q.current;e.trim()===n.trim()&&$(l)}catch{G({type:”error”,message:s.S.couldNotSearchAssignees})}},[G,a]),el=(0,m.d)(e=>ee(e),d.t.pickerDebounceTime,{leading:!0,trailing:!0,onChangeBehavior:”flush”}),ea=(0,g.useCallback)(e=>{let l=e.trim();M!==l&&(el(l),O(e),q.current=l)},[el,M]),en=(0,g.useCallback)(e=>{let l=new Set(Q.map(e=>e.id)),a=new Set(e.map(e=>e.id));H([…e,…U.filter(e=>!l.has(e.id)&&!a.has(e.id))])},[U,Q]),et=(0,g.useMemo)(()=>{let l=[],a=Q.filter(l=>e.find(e=>e.id===l.id)),n=Q.filter(l=>!e.find(e=>e.id===l.id));return a.length>0&&l.push(h),n.length>0&&l.push(k),l},[e,Q]),ei=(0,g.useRef)(null),es=(0,g.useMemo)(()=>!R&&0===Q.length,[R,Q.length]);return(0,n.jsx)(“div”,{children:(0,n.jsx)(u.O,{items:Q,initialSelectedItems:e,loading:N,filterItems:ea,title:w||r.k.assigneesHeader,getItemKey:z,triggerOpen:L,convertToItemProps:Z,placeholderText:r.k.filterUsers(E),selectionVariant:1===P?”single”:A||”multiple”,onSelectionChange:x,onLiveSelectionChange:en,onClose:J,renderAnchor:e=>T(e,ei),groups:et,insidePortal:j,height:”large”,width:”medium”,nested:_,resultListAriaLabel:”User results”,selectPanelRef:ei,notice:P&&X?{text:r.k.limitWarning(P),variant:”warning”}:void 0,customNoMatchItem:R?{id:o.v.noMatchData.id,avatarUrl:o.v.noMatchData.avatarUrl,login:M}:void 0,improvedNoMatchAccessibility:es,noMatchMessage:es?{title:”No assignees were found”,body:”Try searching for a different name for results.”,variant:”empty”}:void 0,keybindingCommandId:C(E),responsiveOnNarrow:W})})}let C=e=>”author”===e?”item-pickers:open-author”:”item-pickers:open-assignees”;try{x.displayName||(x.displayName=”AssigneePickerBase”)}catch{}},91835:(e,l,a)=>{a.d(l,{x:()=>n});let n=a(8403).n.ActionButton},92233:(e,l,a)=>{a.d(l,{A:()=>n});let n={container:”IssueFieldSingleSelectValueToken-module__container–lARRk”,tokenText:”IssueFieldSingleSelectValueToken-module__tokenText–U98W6″,token:”IssueFieldSingleSelectValueToken-module__token–TxIqq”,compactContainer:”IssueFieldSingleSelectValueToken-module__compactContainer–zLlQR”,fieldEditorContainer:”IssueFieldSingleSelectValueToken-module__fieldEditorContainer–Ya3I1″,noValueContainer:”IssueFieldSingleSelectValueToken-module__noValueContainer–FlWSG”}},92858:(e,l,a)=>{a.d(l,{Y:()=>n});let n={createIssueButton:”create-issue-button”,createMoreIssuesCheckbox:”create-more-check”,templateList:”template-list”,issueCreatedLink:”issue-created-link”,issueCreatedAnnouncement:”issue-created-announcement”,repositoryAndTemplateDialog:”repository-and-template-picker-dialog”,templatePickerButton:”template-picker-button”}},93513:(e,l,a)=>{a.d(l,{k:()=>n});let n={archivedDescription:”Archived in project:”,archivedError:”Issue could not be restored in project”,archivedSuccess:”Issue restored in project”,emptySections:{labels:”No labels”,assignees:e=>e?”No one – “:”No one assigned”,selfAssign:”Assign yourself”,milestones:”No milestone”,projects:”No projects”,status:”No status”,types:”No type”,relationships:”None yet”,noValue:e=>`No ${e.toLowerCase()}`,iterationPlaceholder:”Choose an iteration”,datePlaceholder:”Choose a date”,numberPlaceholder:”Enter number\u2026″,iterationFilterPlaceholder:”Choose an option”,singleSelectFilterPlaceholder:”Choose an option”},sectionTitles:{assignees:”Assignees”,labels:”Labels”,milestones:”Milestone”,projects:”Projects”,types:”Type”,relationships:”Relationships”},awaitingTriage:”Awaiting triage”,defaultProjectFieldName:”Status”,moveCardToColumn:”Move card to column”,selectProjects:”Select projects”,filterProjects:”Filter projects”,showClosedProjects:”Show closed projects”,showMoreProjectFields:”Show more project fields”,hideMoreProjectFields:”Hide project fields”,relationNames:{parentIssue:”Parent issue”,blockedByIssues:”Blocked by”,blockingIssues:”Is blocking”}}},93997:(e,l,a)=>{a.d(l,{EV:()=>m,wT:()=>p});let n={kind:”InlineDataFragment”,name:”useHandleTemplateChangeIssueTemplate”};n.hash=”f40f14b9fc5e68c991814566f1700581″;let t={kind:”InlineDataFragment”,name:”useHandleTemplateChangeIssueForm”};t.hash=”2b91a8d5f416e7948a2fa0b96775011d”;let i={kind:”InlineDataFragment”,name:”useHandleTemplateChange”};i.hash=”a08364bb21fe7bb90b32c5dd4a84a3c6″;var s=a(96540),r=a(69487),o=a(17831),d=a(50167),u=a(81724),c=a(94007);let m=e=>{let l,a=(0,r.readInlineData)(i,e);if(a.issueTemplate){let e=(0,r.readInlineData)(n,a.issueTemplate);l={name:e.name,fileName:e.filename,kind:u.t7.IssueTemplate,data:e}}else if(a.issueForm){let e=(0,r.readInlineData)(t,a.issueForm);l={name:e.name,fileName:e.filename,kind:u.t7.IssueForm,data:e}}return l},p=({optionConfig:e,repository:l,navigate:a,setDisplayMode:n})=>{let{setTemplate:t,reinitTitle:i,reinitBody:r,reinitAssignees:m,reinitLabels:p,reinitProjects:g,reinitMilestone:y,reinitIssueType:h}=(0,o.u)();return(0,s.useCallback)((s,o,k=!1)=>{t(s);let f=””;if(o?.discussion)f=o.discussion.title;else if(o?.title)f=o.title||””;else{let e=s?.data.title||””,l=””;o?.appendTitleToTemplate&&(l=` ${o.appendTitleToTemplate}`),f=[e,l].join(“”).trimStart()}i(f);let b=””;o?.discussion?b=o.discussion.formattedBody||””:o?.body?b=o.body||””:s&&((0,u.Al)(s.data)||(0,u.yJ)(s.data))&&(b=s.data.body||””),r(b);p(o?.discussion?o.discussion?.labels||[]:o?.labels?o.labels:s?.data.labels?.edges?.flatMap(e=>e?.node?[e?.node]:[])||[]),m(o?.assignees??((s?.data.assignees?.edges||[]).flatMap(e=>e?.node?[e?.node]:[])||[])),o?.projects?g(o.projects):s&&(0,u.GQ)(s?.data)&&g(s.data.projects?.edges?.flatMap(e=>e?.node?[e.node]:[])||[]),o?.milestone&&y(o?.milestone);let F=o?.type??null;s&&!F&&((0,u.GQ)(s.data)||(0,u.Al)(s.data))&&void 0!==s.data.type&&(F=s.data.type||null),h(F??null),(!o||k)&&(e.navigateToFullScreenOnTemplateChoice&&l&&s?a((0,c.Qy)(l.nameWithOwner,s.fileName)):n(d.q.IssueCreation))},[t,i,r,p,m,h,g,y,e.navigateToFullScreenOnTemplateChoice,l,a,n])}},94007:(e,l,a)=>{a.d(l,{E2:()=>p,Hx:()=>g,Qg:()=>m,Qy:()=>r,RG:()=>u,TV:()=>h,Zi:()=>c,jk:()=>o,pM:()=>y});var n=a(71315),t=a(74731);let i=”/issues/new”,s=`${i}/choose`,r=(e,l)=>{let a=new URLSearchParams(n.fV.search||””);return a.set(“template”,l),`/${e}/issues/new?${a.toString()}`},o=e=>d(e,s),d=(e,l)=>e.endsWith(“/”)?e.substring(0,e.length-1)+l:e+l,u=({repositoryAbsolutePath:e,fileName:l})=>{let a=new URL(d(e,i),n.cg?.location?.origin),s=new URLSearchParams(a.search);return s.set(t.t.queryParams.template,l),a.search=s.toString(),a.toString()},c=e=>{let l=e??new URLSearchParams(n.cg?.location?.search||””),a={};for(let[e,n]of l)if(t.d.includes(e))continue;else null===n?a[e]=””:a[e]=n.substring(0,t.t.maxQueryLengthLimits.body);return a},m=(e,l,a)=>{let n=e.get(l);if(null!==n)return n.substring(0,a)},p=(e,l,a,n)=>{void 0!==a&&e.set(l,a.substring(0,n))},g=(e,l,a,n)=>{a&&e.set(l,a.slice(0,n).join(“,”))};function y(){return`/login?return_to=${n.fV?.href}`}function h(e){return`/${e}/issues/new/choose`}},94252:(e,l,a)=>{a.d(l,{K:()=>r});var n=a(25407),t=a(96540),i=a(17831),s=a(81724);let r=({issueFormRef:e,callback:l,handleTemplateChange:a,navigate:r,template:o})=>{let{clearTitleAndBody:d,clearSessionData:u,clearSessionMetadata:c,clearSessionTitleAndBody:m,clearSessionCreateMore:p}=(0,i.u)(),g=(0,t.useCallback)(({issue:t,createMore:i})=>{l?.({issue:t,createMore:i}),i?(o&&o.kind!==s.t7.BlankIssue?o:void 0)?(m(),e.current?.resetInputs({textOnly:!0}),a(o)):d():(e.current?.clearSessionStorage(),u(),r?.((0,n.dRG)({owner:t.repository.owner.login,repo:t.repository.name,issueNumber:t.number})))},[l,e,o,m,a,d,u,r]);return(0,t.useEffect)(()=>()=>{c(),p()},[p,c]),g}},95104:(e,l,a)=>{a.d(l,{b2:()=>ei,rC:()=>eo,sC:()=>es,Qq:()=>er});var n,t=a(74848);let i={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”AssigneesSectionLazyFragment”,selections:[{alias:null,args:[{kind:”Literal”,name:”first”,value:10}],concreteType:”AssigneeConnection”,kind:”LinkedField”,name:”suggestedActors”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},{alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”},{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isCopilot”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isAgent”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”displayName”,storageKey:null}],type:”Bot”,abstractKey:null}],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:”suggestedActors(first:10)”},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,concreteType:”ViewerCopilotCodingAgentEligibility”,kind:”LinkedField”,name:”viewerCopilotCodingAgentEligibility”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”hasRequestedCca”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”canRequestCca”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”canGrantOrgCca”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”canGrantEnterpriseCca”,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,concreteType:”Enterprise”,kind:”LinkedField”,name:”enterprise”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”slug”,storageKey:null}],storageKey:null}],type:”Organization”,abstractKey:null}],storageKey:null}],storageKey:null}],type:”Issue”,abstractKey:null};i.hash=”0e1824db017a959a889c292e1487254a”;let s={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”AssigneesSectionAssignees”,selections:[{alias:null,args:[{kind:”Literal”,name:”first”,value:20}],concreteType:”AssigneeConnection”,kind:”LinkedField”,name:”assignedActors”,plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”nodes”,plural:!0,selections:[{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},{alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”},{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isCopilot”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isAgent”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”displayName”,storageKey:null}],type:”Bot”,abstractKey:null}],type:”Actor”,abstractKey:”__isActor”}],storageKey:null}],storageKey:”assignedActors(first:20)”}],type:”Issue”,abstractKey:null};s.hash=”7c02afe88adfc0a220653be81704a19f”;let r={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”AssigneesSectionCopilotRepositoryFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isCopilotAgentEnabled”,storageKey:null}],type:”Repository”,abstractKey:null};r.hash=”d0d5039c0af037561a9f4ee503f04833″;let o={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”AssigneesSectionFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”number”,storageKey:null},{alias:null,args:null,concreteType:”Repository”,kind:”LinkedField”,name:”repository”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,concreteType:null,kind:”LinkedField”,name:”owner”,plural:!1,selections:[{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null}],storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isArchived”,storageKey:null},{args:null,kind:”FragmentSpread”,name:”AssigneesSectionCopilotRepositoryFragment”}],storageKey:null},{args:null,kind:”FragmentSpread”,name:”AssigneesSectionAssignees”},{alias:null,args:null,kind:”ScalarField”,name:”viewerCanAssign”,storageKey:null}],type:”Issue”,abstractKey:null};o.hash=”d3c6b2757554e31ea145489e96bddf6e”;let d={argumentDefinitions:[],kind:”Fragment”,metadata:null,name:”AssigneesSectionViewer”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”__typename”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”id”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”login”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”name”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”profileResourcePath”,storageKey:null},{alias:null,args:[{kind:”Literal”,name:”size”,value:64}],kind:”ScalarField”,name:”avatarUrl”,storageKey:”avatarUrl(size:64)”},{kind:”InlineFragment”,selections:[{alias:null,args:null,kind:”ScalarField”,name:”isCopilot”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”isAgent”,storageKey:null},{alias:null,args:null,kind:”ScalarField”,name:”displayName”,storageKey:null}],type:”Bot”,abstractKey:null}],type:”Actor”,abstractKey:”__isActor”};d.hash=”46cd158d7367cb350d33a4333817d807″;var u=a(16522),c=a(38621),m=a(21373),p=a(30459);let g=e=>{let l,a,n=(0,u.c)(6),{ref:i,onClick:s}=e,{sendClickAnalyticsEvent:r}=(0,p.S)();n[0]!==s||n[1]!==r?(l=()=>{r({category:”copilot_assignment”,action:”click_assign_to_copilot_button”,label:”ref_cta:assign_to_copilot”}),s()},n[0]=s,n[1]=r,n[2]=l):l=n[2];let o=l;return n[3]!==o||n[4]!==i?(a=(0,t.jsx)(m.Q,{ref:i,leadingVisual:c.AgentIcon,size:”small”,block:!0,onClick:o,children:”Assign to Copilot”}),n[3]=o,n[4]=i,n[5]=a):a=n[5],a};g.displayName=”CopilotAssignmentButton”;var y=a(20538),h=a(96540),k=a(84268),f=a(11680),b=a(86877),F=a(46720),I=a(57387),S=a(12683),v=a(29731);function x({darkImagePath:e,lightImagePath:l,sx:a,…n}){let{colorScheme:i}=(0,S.DP)(),s=i&&/^dark/.test(i),r={display:”flex”,flexDirection:”column”,justifyContent:”flex-end”,backgroundSize:”cover”,backgroundPosition:”center”,height:200,borderTopLeftRadius:”6px”,borderTopRightRadius:”6px”,…a,backgroundImage:`url(${s?e:l})`};return(0,t.jsx)(S.az,{sx:r,…(0,v.G)(“splash-dialog-image”),…n,children:(0,t.jsx)(S.az,{sx:{height:”9px”,background:s?”linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(255, 255, 255, 0.04) 100%)”:”linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.04) 100%)”}})})}try{x.displayName||(x.displayName=”SplashDialogImage”)}catch{}try{(n=function({children:e,…l}){return(0,t.jsx)(S.az,{sx:{backgroundColor:”canvas.default”,borderBottomLeftRadius:”6px”,borderBottomRightRadius:”6px”,padding:”24px”},…(0,v.G)(“splash-dialog-body”),…l,children:e})}).displayName||(n.displayName=”SplashDialogBody”)}catch{}var C=a(58615),j=a(94011),T=a(47723);let _=”hideCopilotCodingAgentRequestDialog”;function N({onClose:e,eligibility:l,orgLogin:a,businessSlug:n,onEligibilityUpdate:i,onRequestSuccess:s}){let[r,o]=(0,C.M)(_,!1),{sendClickAnalyticsEvent:d}=(0,p.S)(),[u,c]=(0,h.useState)(!1),[g,y]=(0,h.useState)(null),S=(0,h.useCallback)(e=>{d({category:”member_feature_request”,action:`action.copilot_coding_agent.${e}`,label:`ref_cta:${e};ref_loc:issue_assignment_dialog;`})},[d]),v=(0,h.useCallback)(async()=>{if(a&&!u){c(!0),y(null);try{await (0,j.Rp)(a),await i(),S(“request”),s(“request”,a),e()}catch(e){y(e instanceof Error?e.message:”An error occurred”)}finally{c(!1)}}},[a,u,S,i,s,e]),N=(0,h.useCallback)(async()=>{if(a&&!u){c(!0),y(null);try{await (0,j.pf)(a),await i(),S(“org_enable”),s(“enable”,a),e()}catch(e){y(e instanceof Error?e.message:”An error occurred”)}finally{c(!1)}}},[a,u,S,i,s,e]),K=(0,h.useCallback)(async()=>{if(a&&!u){c(!0),y(null);try{await (0,j.Hy)(a),await i(),S(“request_removed”),e()}catch(e){y(e instanceof Error?e.message:”An error occurred”)}finally{c(!1)}}},[a,u,S,i,e]),L=(0,h.useCallback)(()=>{S(“enterprise_enable”);let e=n||a;window.location.href=(0,T.Wt)(e)},[n,a,S]),A=(0,h.useCallback)(async()=>{l.canGrantEnterpriseCca?L():l.canGrantOrgCca?await N():l.hasRequestedCca?await K():l.canRequestCca&&await v()},[l.canGrantEnterpriseCca,l.canGrantOrgCca,l.hasRequestedCca,l.canRequestCca,L,N,K,v]),w=”Request access”;l.canGrantEnterpriseCca?w=”See Copilot policies”:l.canGrantOrgCca?w=u?”Enabling…”:”Enable feature”:l.hasRequestedCca?w=u?”Removing…”:”Remove request”:l.canRequestCca&&(w=u?”Requesting…”:”Request access”);let P=”Request access from your admin, and let GitHub Copilot work independently in the background to complete tasks, with Copilot coding agent.”;return l.canGrantEnterpriseCca||l.canGrantOrgCca?P=”Enable Copilot coding agent to let GitHub Copilot work independently in the background to complete tasks.”:l.hasRequestedCca&&(P=”You have requested access to Copilot coding agent. Your admin will review your request.”),(0,t.jsx)(I.l,{onClose:e,width:”large”,renderHeader:({dialogLabelId:l})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(“div”,{className:”CopilotCodingAgentRequestAccessDialog-module__headerContainer–MzTC7″,children:[(0,t.jsx)(x,{darkImagePath:”/static/images/modules/swe_agent/agent-task-dark.png”,lightImagePath:”/static/images/modules/swe_agent/agent-task-light.png”,sx:{borderTopLeftRadius:”12px”,borderTopRightRadius:”12px”}}),(0,t.jsx)(“div”,{className:”CopilotCodingAgentRequestAccessDialog-module__closeButtonContainer–kCbr6″,children:(0,t.jsx)(I.l.CloseButton,{onClose:e})})]}),(0,t.jsx)(I.l.Header,{id:l,className:”CopilotCodingAgentRequestAccessDialog-module__visuallyHidden–Y3j6e”,children:(0,t.jsx)(I.l.Title,{children:”Copilot coding agent is disabled”})})]}),children:(0,t.jsxs)(“div”,{className:”CopilotCodingAgentRequestAccessDialog-module__body–CKyA7″,children:[(0,t.jsx)(“h2″,{className:”CopilotCodingAgentRequestAccessDialog-module__heading–qpyNv”,children:”Copilot coding agent is disabled”}),(0,t.jsxs)(“p”,{className:”CopilotCodingAgentRequestAccessDialog-module__description–gXmI5″,children:[P,” “,(0,t.jsx)(k.A,{href:T.a2,target:”_blank”,rel:”noreferrer”,children:”Learn more”}),”.”]}),g&&(0,t.jsx)(“div”,{“aria-live”:”assertive”,className:”CopilotCodingAgentRequestAccessDialog-module__errorContainer–WZEcP”,children:(0,t.jsx)(f.l,{variant:”critical”,title:”Error”,hideTitle:!0,description:g})}),(0,t.jsxs)(“div”,{className:”CopilotCodingAgentRequestAccessDialog-module__footer–TVZEO”,children:[(0,t.jsxs)(b.A,{children:[(0,t.jsx)(F.A,{checked:r,onChange:e=>{let l=e.currentTarget.checked;o(l),l&&S(“do_not_show”)}}),(0,t.jsx)(b.A.Label,{children:”Don’t show this again”})]}),(0,t.jsx)(m.Q,{onClick:A,disabled:u,children:w})]})]})})}try{N.displayName||(N.displayName=”CopilotCodingAgentRequestAccessDialog”)}catch{}var K=a(5524),L=a(12360),A=a(77430);function w(e){let l=(0,u.c)(5),{login:a,id:n,avatarUrl:i,isCopilot:s}=e;if(s){let e;return l[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,t.jsx)(L.C,{}),l[0]=e):e=l[0],e}{let e,s=`@${a}`;return l[1]!==i||l[2]!==n||l[3]!==s?(e=(0,t.jsx)(A.r,{src:i,size:20,alt:s},n),l[1]=i,l[2]=n,l[3]=s,l[4]=e):e=l[4],e}}try{w.displayName||(w.displayName=”AssigneeVisual”)}catch{}var P=a(20403),E=a(26052),R=a(69599);function D(e){let l,a,n,i=(0,u.c)(10),{assignees:s,testId:r}=e,{sendAnalyticsEvent:o}=(0,p.s)();i[0]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,R.G7)(“issues_report_sidebar_interactions”),i[0]=l):l=i[0];let d=l;if(i[1]!==s||i[2]!==o||i[3]!==r){let e;i[5]!==o||i[6]!==r?(e=e=>{let{login:l,name:a,avatarUrl:n,profileResourcePath:i,id:s,isCopilot:u,displayName:c,isAgent:m}=e;return(0,t.jsxs)(K.l.LinkItem,{href:i??void 0,target:”_blank”,onClick:()=>{d&&o(“analytics.click”,”ISSUE_SIDEBAR_ASSIGNEE_CLICK”)},onContextMenu:()=>{d&&o(“analytics.click”,”ISSUE_SIDEBAR_ASSIGNEE_RIGHT_CLICK”)},…(0,P.S)(l,{isCopilot:u,isAgent:m}),children:[(0,t.jsx)(K.l.LeadingVisual,{children:(0,t.jsx)(w,{login:l,id:s,avatarUrl:n,isCopilot:u})}),(0,t.jsx)(“div”,{“data-testid”:r,className:”Assignees-module__assigneeNameLabel–f9fCg”,children:(0,R.G7)(“render_user_display_name”)?(0,t.jsx)(E.v,{login:c,profileName:a,isAgent:m}):c})]},s)},i[5]=o,i[6]=r,i[7]=e):e=i[7],a=[…s].sort(V).map(e),i[1]=s,i[2]=o,i[3]=r,i[4]=a}else a=i[4];return i[8]!==a?(n=(0,t.jsx)(K.l,{variant:”full”,className:”Assignees-module__assigneesList–JFnuE”,children:a}),i[8]=a,i[9]=n):n=i[9],n}function V(e,l){return e.login===l.login?0:e.login>l.login?1:-1}try{D.displayName||(D.displayName=”Assignees”)}catch{}var M=a(17855),O=a(78137),B=a(91253),$=a(45750),U=a(72274),H=a(67126),q=a(73189),G=a(91747),W=a(43258),z=a(18312),Q=a(34784),Y=a(93513),X=a(20177),Z=a(2495),J=a(16810),ee=a(21798);let el=”AssigneesSection-module__selfAssignButton–U9FC1″,ea=(e,l)=>{let a=e.create(l.id,l.__typename);for(let[e,n]of Object.entries({id:l.id,login:l.login,name:l.name,avatarUrl:l.avatarUrl,isCopilot:l.isCopilot,profileResourcePath:l.profileResourcePath,__typename:l.__typename,displayName:l.displayName}))a.setValue(n,e);return a},en=()=>(0,t.jsx)(Z.h,{title:Y.k.sectionTitles.assignees}),et=({sectionHeader:e,onSelfAssignClick:l,assignees:a,readonly:n,copilotAssignmentButton:i,copilotEligibility:s,owner:r,businessSlug:o,onEligibilityUpdate:d,onRequestSuccess:u})=>{let{sendAnalyticsEvent:c}=(0,p.s)(),g=(0,G.u)(“cca_feature_request_issue_assignment”),y=(0,G.u)(“cca_feature_request_issue_assignment_remove_flow”),[k]=(0,C.M)(_,!1),[f,b]=(0,h.useState)(!1),F=(0,h.useCallback)(e=>{b(!0),u?.(e,r)},[u,r]),I=g&&!k&&s&&!f&&(s.canRequestOrGrantCopilotAgent||y&&s.copilotAgentEligibility.hasRequestedCca);(0,h.useEffect)(()=>{0===a.length&&I&&c(“request_coding_agent.show”,”ISSUE_SIDEBAR_ASSIGNEE_SECTION_REQUEST_CCA_LINK_SHOW”,{org_login:r,ref_loc:”issue_assignee_section”})},[a.length,I,c,r]);let S=n?Y.k.emptySections.assignees(!1):(0,t.jsxs)(t.Fragment,{children:[Y.k.emptySections.assignees(!0),(0,t.jsx)(m.Q,{variant:”link”,onClick:l,className:el,children:Y.k.emptySections.selfAssign}),I&&(0,t.jsxs)(t.Fragment,{children:[” or “,(0,t.jsx)(m.Q,{variant:”link”,onClick:s.openRequestAccessDialog,className:el,children:s.copilotAgentEligibility.canGrantOrgCca||s.copilotAgentEligibility.canGrantEnterpriseCca?”enable coding agent”:”request coding agent”})]})]}),v=i?(0,t.jsx)(“div”,{className:”width-full d-flex flex-column flex-items-stretch pt-2 px-2″,children:(0,t.jsx)(“div”,{children:i})}):void 0,x=a.map(e=>({…e,displayName:e.displayName||e.login,isCopilot:e.isCopilot??!1,isAgent:e.isAgent??!1}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(J.w,{id:”sidebar-assignees-section”,sectionHeader:e,sectionFooter:v,emptyText:a.length>0?void 0:S,children:(0,t.jsx)(D,{assignees:x,testId:X.Y.assignees})}),s?.requestAccessDialogOpen&&d&&u&&(0,t.jsx)(N,{onClose:s.closeRequestAccessDialog,eligibility:s.copilotAgentEligibility,orgLogin:r||””,businessSlug:o??void 0,onEligibilityUpdate:d,onRequestSuccess:F})]})};function ei({repo:e,owner:l,readonly:a,assignees:n,onSelectionChange:i,className:s,sx:r,repository:o,issueNumber:d,onIssueUpdate:u,…c}){let m=(0,U.u)(),p={repo:e,owner:l,readonly:a,includeAuthorableBots:!1,includeAssignableBots:!0,assigneeTokens:[],assignees:n,onSelectionChange:i,anchorElement:(e,l)=>(0,t.jsx)(ee.X,{title:Y.k.sectionTitles.assignees,buttonProps:{…e,id:”assignees-select-menu”},ref:l}),…c},g=a?(0,t.jsx)(en,{}):(0,t.jsx)($._,{…p});return(0,t.jsx)(et,{sectionHeader:g,onSelfAssignClick:()=>i(m?[m]:[]),assignees:n,readonly:a,sx:r,className:s})}let es=s,er=o;function eo({issue:e,viewer:l,lazyKey:a,onIssueUpdate:n,insideSidePanel:s,readonly:o,onRequestSuccess:c}){let{sendAnalyticsEvent:m}=(0,p.s)(),k=(0,R.G7)(“issues_report_sidebar_interactions”),f=(0,Q.useFragment)(er,e),{repository:b,repository:{owner:{login:F},name:I,isArchived:S},number:v}=f,x=(0,Q.useFragment)(r,f.repository),C=(0,Q.useFragment)(es,f),j=(0,Q.useFragment)(d,l),{id:T,viewerCanAssign:_}=f,N=(0,Q.useFragment)(i,a),K=(0,h.useMemo)(()=>(N?.suggestedActors?.nodes||[]).flatMap(e=>e?[e]:[]),[N?.suggestedActors?.nodes]),L=(0,h.useMemo)(()=>(C.assignedActors?.nodes||[]).flatMap(e=>e?[e]:[]),[C.assignedActors?.nodes]),{addToast:A}=(0,W.Y6)(),w=(0,z.useRelayEnvironment)(),P=(0,h.useRef)(null),E={hasRequestedCca:N?.repository?.viewerCopilotCodingAgentEligibility?.hasRequestedCca??!1,canRequestCca:N?.repository?.viewerCopilotCodingAgentEligibility?.canRequestCca??!1,canGrantOrgCca:N?.repository?.viewerCopilotCodingAgentEligibility?.canGrantOrgCca??!1,canGrantEnterpriseCca:N?.repository?.viewerCopilotCodingAgentEligibility?.canGrantEnterpriseCca??!1,businessSlug:N?.repository?.owner?.enterprise?.slug??null},D=function(e){let l,a,n,t=(0,u.c)(6),[i,s]=(0,h.useState)(!1),r=!!(e.canRequestCca||e.canGrantOrgCca||e.canGrantEnterpriseCca);t[0]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>s(!0),t[0]=l):l=t[0];let o=l;t[1]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>s(!1),t[1]=a):a=t[1];let d=a;return t[2]!==r||t[3]!==e||t[4]!==i?(n={copilotAgentEligibility:e,canRequestOrGrantCopilotAgent:r,requestAccessDialogOpen:i,openRequestAccessDialog:o,closeRequestAccessDialog:d},t[2]=r,t[3]=e,t[4]=i,t[5]=n):n=t[5],n}(E),V=(0,R.G7)(“issues_cca_assign_actor_with_agent”),U=o||!_||S,G=(0,h.useMemo)(()=>{let e=L.some(e=>(0,M.v)(e.login));return!U&&x.isCopilotAgentEnabled&&!e},[L,U,x.isCopilotAgentEnabled]),[X,Z]=(0,h.useState)(!1),[J,el]=(0,h.useState)(0),ei=(0,h.useCallback)(()=>{Z(!0),el(e=>e+1)},[Z]),eo=(0,h.useCallback)(()=>{Z(!1)},[Z]),ed=(0,h.useCallback)(e=>{(0,O.j)({environment:w,input:{issueId:T,assignedActors:e,participants:K},onError:()=>A({type:”error”,message:H.S.couldNotUpdateAssignees}),onCompleted:n})},[A,w,T,n,K]),eu=(0,h.useCallback)(e=>{let l=L.some(e=>(0,M.v)(e.login)),a=e.some(e=>e.isCopilot),n=e.filter(e=>!e.isCopilot),t=G?n:e;if(V&&j){let l=new Set(L.filter(e=>e.isAgent&&!(0,M.v)(e.login)).map(e=>e.login));if(e.some(e=>e.isAgent&&!(0,M.v)(e.login)&&!l.has(e.login))){let l=L.some(e=>e.login===j.login),a=e.some(e=>e.login===j.login);l||a||!(e.length{if(e.length!==l.length)return!1;let a=new Set(e.map(e=>e.id));return l.every(e=>a.has(e.id))})(t,L.filter(e=>!(0,M.v)(e.login)))||ed(t),a&&G&&!l&&ei()},[L,G,ed,ei,V,j]),ec=(0,h.useCallback)(e=>{e&&(0,Q.commitLocalUpdate)(w,l=>{let a=[{…e,isCopilot:!0,__typename:”Bot”}],n=L.some(e=>e.login===j?.login),t=V&&!n&&L.length+1{let n=e.get(l);if(n){let l=n.getLinkedRecord(“assignedActors(first:20)”);if(l){let n=l.getLinkedRecords(“nodes”)||[];for(let l of a)if(!n.some(e=>e&&e.getValue(“id”)===l.id)){let a=e.get(l.id);a||(a=ea(e,l)),n=[…n,a]}let t=n.sort((e,l)=>{let a=e?.getValue(“login”)||””,n=l?.getValue(“login”)||””;return a.toLowerCase().localeCompare(n.toLowerCase())});l.setLinkedRecords(t,”nodes”)}}})(l,T,a)}),n?.()},[V,L,w,T,n,j]),em=G?(0,t.jsx)(g,{onClick:ei,ref:P}):void 0,ep=G?(0,t.jsx)(y.B,{isOpen:X,onClose:eo,repository:{name:b.name,owner:{login:b.owner.login}},issueNumbers:[v],onAssignmentComplete:ec,returnFocusRef:P}):void 0,eg=(0,h.useMemo)(()=>U?(0,t.jsx)(en,{}):(0,t.jsx)($.I,{repo:I,owner:F,number:v,anchorElement:(e,l)=>(0,t.jsx)(ee.X,{title:Y.k.sectionTitles.assignees,buttonProps:{…e,onClick:l=>{k&&m(“analytics.click”,”ISSUE_SIDEBAR_ASSIGNEE_SECTION_EDIT_CLICK”),e.onClick?.(l)}},ref:l}),readonly:U,assignees:L,onSelectionChange:e=>eu(e),insidePortal:s,suggestions:K},`assignee-picker-${J}`),[U,I,F,v,L,s,K,J,k,m,eu]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(et,{sectionHeader:eg,assignees:L,onSelfAssignClick:()=>j?ed([j]):q.l,readonly:U,copilotAssignmentButton:em,copilotEligibility:D,owner:F,businessSlug:E.businessSlug,onEligibilityUpdate:async()=>{n&&n()},onRequestSuccess:c}),ep]})}try{en.displayName||(en.displayName=”ReadonlyAssigneesSectionHeader”)}catch{}try{et.displayName||(et.displayName=”AssigneesSection”)}catch{}try{ei.displayName||(ei.displayName=”CreateIssueAssigneesSection”)}catch{}try{eo.displayName||(eo.displayName=”EditIssueAssigneesSection”)}catch{}},96480:(e,l,a)=>{a.d(l,{a:()=>d,o:()=>o});var n=a(74848),t=a(40104),i=a(96540),s=a(79403);let r=(0,i.createContext)(null);function o({optionConfig:e,overrideFallbackDisplaymode:l,children:a}){let{issueCreateMore:o}=s.tT.localStorageKeys,[d,u]=(0,i.useState)(!1),[c,m]=(0,i.useState)(!1),[p,g]=(0,t.Fo)(`config.${o(e.storageKeyPrefix)}`,!1),[y,h]=(0,i.useState)({owner:””,repo:””,number:void 0}),k=e.getDefaultDisplayMode(l),[f,b]=(0,i.useState)(k),F=(0,i.useRef)(null),I=(0,i.useMemo)(()=>({optionConfig:e,createMore:p,setCreateMore:g,createMoreCreatedPath:y,setCreateMoreCreatedPath:h,displayMode:f,setDisplayMode:b,initialDefaultDisplayMode:k,isSubmitting:d,isFileUploading:c,setIsFileUploading:m,setIsSubmitting:u,onCreateAction:F,isSubIssue:!!e.issueCreateArguments?.parentIssue?.id}),[e,p,g,y,h,f,k,d,c]);return(0,n.jsx)(r.Provider,{value:I,children:a})}let d=()=>{let e=(0,i.useContext)(r);if(!e)throw Error(“useIssueCreateConfigContext must be used within a IssueCreateConfigContextProvider.”);return e};try{r.displayName||(r.displayName=”IssueCreateContext”)}catch{}try{o.displayName||(o.displayName=”IssueCreateConfigContextProvider”)}catch{}},96760:(e,l,a)=>{a.d(l,{Bq:()=>t,Sp:()=>s,mU:()=>n,tD:()=>i});let n={issueComment:”react-issue-comment”,commentsContainer:”react-comments-container”,markdownBody:”markdown-body”,issueBody:”react-issue-body”},t={issueCommentComposer:”react-issue-comment-composer”};function i(){var e,l;let a=document.querySelector(`${s(n.commentsContainer)} ${(e=t.issueCommentComposer,`#${e}`)}[data-inside-side-panel=true]`);return a?a:document.querySelector((l=t.issueCommentComposer,`#${l}`))}function s(e){return`.${e}`}},96901:(e,l,a)=>{a.d(l,{k:()=>n});let n={canNotComment:e=>e?`You do not have permissions to comment on this ${e}.`:”You do not have permissions to comment.”,confirmations:{deleteCommentTitle:”Delete comment”,deleteCommentContent:”Are you sure you’d like to delete this comment?”,deleteCommentConfirmButtonContent:”Delete”},hiddenComment:”Hidden comment”,hiddenCommentWithReason:”Hidden as”,issueLockedToCollaborators:”This conversation has been locked and limited to collaborators.”,repoArchived:”This repository has been archived.”,sentViaEmail:”via email”,commentAuthor:”Author”,spammyBadge:”Spammy”,spammyBadgeTooltip:”This user is marked as spammy. Their comments will only show in staff mode.”,sponsorBadge:”Sponsor”,newComment:”new Comment”,newCommentPlaceholder:”Use Markdown to format your comment”,commentSubjectAuthor:(e,l)=>`${e?”You are the”:”This user is the”} author${l?` of this ${l}`:””}`,sponsor:(e,l)=>`${e}’s sponsor since ${l}`,noDescriptionProvided:”No description provided.”,staleCommentErrorPrefix:”GraphQL error: STALE_DATA”,issueConvertedToDiscussion:”Commenting has been disabled because this issue was converted to a”,authorLabel:(e,l)=>`${e?l?”AI”:”bot”:”mannequin”}`}},98338:(e,l,a)=>{a.d(l,{k:()=>n});let n={issueCreateDialogTitleTemplatePane:”Create new issue”,issueCreateChooseDiffTemplate:”Choose a different template”,issueCreateDialogTitleCreationPane:(e,l,a=”issue”)=>`Create new ${a} in ${e}${l?`: ${l}`:””}`,issueCreateDialogTitleDuplicationPane:(e,l=”issue”)=>`Duplicate current ${l} in ${e}`,issueCreateTitleLabel:”Add a title”,issueCreateTitlePlaceholder:”Title”,issueCreateBodyLabel:”Add a description”,issueCreatedPrefix:”Issue created “,lastIssueCreated:e=>`Issue #${e} created`,issuesDisabledForRepo:”Issues are disabled for the selected repository. Please select a different repository.”,issueBodyPlaceholder:”Type your description here\u2026″,issueNumber:e=>`#${e}`,blankIssueName:”Blank issue”,blankIssueDescription:”Create a new issue from scratch”,securityPolicyName:”Report a security vulnerability”,securityPolicyDescription:”Please review our security policy for more details”,editTemplates:”Edit templates”,viewTemplates:”View templates”,templatesFormsTitle:”Templates and forms”,noTemplates:”No templates available for the current repository”,discardConfirmation:{title:”Discard changes?”,content:”You have unsaved changes. Are you sure you want to discard them?”,confirm:”Close and discard”,cancel:”Keep editing”},loadingTooltip:”Loading…”,templateId:e=>`template-item-${e}`,templateLabelId:e=>`template-item-${e}-label`,templateDescriptionId:e=>`template-item-${e}-description`,typePickerLabel:”Type”,selectIssueTypeLabel:”create-issue-issue-type-label”,fileUploadWarning:”Issue will be created once your upload has completed”,issueTypeReadOnly:”You do not have permission to change the type”,issueTypeReadOnlyReason:”You need the triage role or higher in this repository to change the issue type.”,viewProfile:e=>`View ${e}’s profile`,copilotCTAButton:”Write with Copilot”,copilotCTADialogTitle:”Navigate to Copilot Chat”,copilotCTADialogDescription:”You have unsaved changes. Are you sure you want to discard them?”,copilotCTADialogCancelButton:”Keep editing”,copilotCTADialogContinueButton:”Go to Copilot”,copilotGenerateDialogTitle:”Generate issue content with Copilot”,copilotGenerateDialogTextareaLabel:”Additional context (optional)”,copilotGenerateDialogTextareaPlaceholder:”Add any additional context to help Copilot generate a better issue…”,copilotGenerateDialogGenerateButton:”Generate content”,copilotGenerateError:”Failed to generate content with Copilot. Please try again.”,copilotGenerateValidationWarning:”Please provide a title, existing description, or additional context to generate content.”,copilotPanelInitialMessage:”How can I help you write your issue?”,copilotPanelInputPlaceholder:”Type your message here…”,copilotPanelSendButton:”Send”,copilotPanelUpdatedMessage:”I’ve updated the issue title and description above.”,copilotPanelLoadingMessage:”Writing\u2026″,copilotPanelAcceptButton:”Accept”,copilotPanelDiscardButton:”Discard”,copilotPanelTryAgainButton:”Try again”,copilotDiscardConfirmDialog:{title:”Discard changes?”,content:”You have made edits to the generated content. Discarding will lose your changes.”,confirm:”Discard”,cancel:”Cancel”},copilotTryAgainConfirmDialog:{title:”Try again?”,content:”You have made edits to the generated content. Trying again will replace your changes with new generated content.”,confirm:”Try again”,cancel:”Cancel”},backToAllIssues:”Back to all issues”,crossRepoIssueDuplicationWarning:e=>`This issue is being duplicated across repositories. The following metadata might not be copied: ${e.join(“, “)}.`,crossRepoIssueDuplicationDefaultWarning:”Changing the repository may remove Milestone, Labels, Type, and Assignees from the duplicate issue.”,setAdditionalFields:”Set additional issue fields”,addIssueField:”Add issue field”}},98646:(e,l,a)=>{a.d(l,{Ft:()=>s,HZ:()=>o,IR:()=>y,KO:()=>d,MR:()=>i,YQ:()=>r,d6:()=>t,fk:()=>c,fy:()=>p,mQ:()=>g,qH:()=>u,qg:()=>m});var n=a(38621);let t={text:{type:”text”,displayName:”Text”,icon:n.TypographyIcon,valueField:”textValue”},single_select:{type:”single_select”,displayName:”Single Select”,icon:n.SingleSelectIcon,valueField:”singleSelectOptionId”},date:{type:”date”,displayName:”Date”,icon:n.CalendarIcon,valueField:”dateValue”},number:{type:”number”,displayName:”Number”,icon:n.NumberIcon,valueField:”numberValue”}},i=Object.values(t);function s(e,l){switch(e){case”text”:return{textValue:l};case”single_select”:return{singleSelectOptionId:l};case”date”:return{dateValue:l};case”number”:{let e=Number(l);return isNaN(e)?{}:{numberValue:e}}}}function r(e){return{…e,dataType:o(e.dataType)}}function o(e){switch(e){case”TEXT”:case”text”:return”text”;case”SINGLE_SELECT”:case”single_select”:return”single_select”;case”DATE”:case”date”:return”date”;case”number”:case”NUMBER”:return”number”;default:throw Error(`Unsupported field type: ${e}`)}}let d=”IssueFieldSingleSelectValue”,u=”IssueFieldTextValue”,c=”IssueFieldDateValue”,m=”IssueFieldNumberValue”;function p(e,l){if(e)switch(l){case d:e.setValue(null,”name”),e.setValue(null,”color”),e.setValue(null,”description”);break;case c:case u:case m:e.setValue(null,”value”);break;default:return l}}function g(e){return t[e].icon}function y(e){if(!e||0===e.length)return null;let l=[];for(let a of e)a&&a.id&&a.name&&a.dataType&&l.push(r(a));return l.length>0?l:null}}}]); //# sourceMappingURL=92260-70c38075dd9c.js.map