1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.admin.groups.index-pages.admin.projects.index-pages.dashboard.groups.index-pages.dashb-5d8e349a","d60a47a6","c7f0f466"],{"+wZC":function(e,t,i){"use strict";var a=i("yzEV"),n=i("zNqO"),s=i("n64d"),r=i("pTIT"),o=i("/2q6"),l=i("eOJu"),u=i("tslw"),c=i("slyf"),d=i("Ccns");const h=r.P+"active",p=Object(l.m)({...u.b,active:{type:Boolean,required:!1,default:!1},buttonId:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},noBody:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"},title:{type:String,required:!1,default:void 0},titleItemClass:{type:[Array,Object,String],required:!1,default:void 0},titleLinkAttributes:{type:Object,required:!1,default:void 0},titleLinkClass:{type:[Array,Object,String],required:!1,default:void 0}}),g=Object(n.c)({name:s.z,mixins:[u.a,c.a],inject:{getBvTabs:{default:function(){return function(){return{}}}}},props:p,data(){return{localActive:this.active&&!this.disabled}},computed:{bvTabs(){return this.getBvTabs()},_isTab:()=>!0,tabClasses(){const{localActive:e,disabled:t}=this;return[{active:e,disabled:t,"card-body":this.bvTabs.card&&!this.noBody},e?this.bvTabs.activeTabClass:null]},controlledBy(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade(){return!this.bvTabs.fade},computedLazy(){return this.bvTabs.lazy||this.lazy}},watch:{active(e,t){e!==t&&(e?this.activate():this.deactivate()||this.$emit(h,this.localActive))},disabled(e,t){if(e!==t){const{firstTab:t}=this.bvTabs;e&&this.localActive&&t&&(this.localActive=!1,t())}},localActive(e){this.$emit(h,e)}},mounted(){this.registerTab()},updated(){const{updateButton:e}=this.bvTabs;e&&this.hasNormalizedSlot(o.y)&&e(this)},beforeDestroy(){this.unregisterTab()},methods:{registerTab(){const{registerTab:e}=this.bvTabs;e&&e(this)},unregisterTab(){const{unregisterTab:e}=this.bvTabs;e&&e(this)},activate(){const{activateTab:e}=this.bvTabs;return!(!e||this.disabled)&&e(this)},deactivate(){const{deactivateTab:e}=this.bvTabs;return!(!e||!this.localActive)&&e(this)}},render(e){const{localActive:t}=this,i=e(this.tag,{staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",value:t}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":t?"false":"true","aria-labelledby":this.controlledBy||null},ref:"panel"},[t||!this.computedLazy?this.normalizeSlot():e()]);return e(d.a,{props:{mode:"out-in",noFade:this.computedNoFade}},[i])}});var v=i("9/Bc"),f=i("mpVB"),b=i("OJiF"),m={name:"GlTab",components:{BTab:g,GlBadge:v.a},inheritAttrs:!1,props:{titleLinkClass:{type:[String,Array,Object],required:!1,default:""},queryParamValue:{type:String,required:!1,default:null},tabCount:{type:Number,required:!1,default:null},tabCountSrText:{type:String,required:!1,default:null}},computed:{linkClass(){const{titleLinkClass:e}=this;return Array.isArray(e)?[...e,b.a]:Object(a.a)(e)?{...e,[b.a]:!0}:`${e} ${b.a}`.trim()},hasTabCount(){return null!=this.tabCount&&this.tabCount>=0}},created(){this.hasTabCount&&!this.tabCountSrText&&Object(f.i)('When using "tab-count", you should also provide "tab-count-sr-text" for screen reader accessibility. Example: :tab-count-sr-text="n__(\'%d item\', \'%d items\', count)"',{name:"GlTab"})}},y=i("tBpV"),T=Object(y.a)(m,(function(){var e=this,t=e._self._c;return t("b-tab",e._g(e._b({attrs:{title:e.hasTabCount?null:e.$attrs.title,"title-link-class":e.linkClass,"query-param-value":e.queryParamValue},scopedSlots:e._u([e.hasTabCount?{key:"title",fn:function(){return[e._t("title",(function(){return[e._v(e._s(e.$attrs.title))]})),e._v(" "),t("gl-badge",{staticClass:"gl-ml-2",attrs:{variant:"neutral","aria-hidden":"true","data-testid":"tab-counter-badge"}},[e._v("\n "+e._s(e.tabCount)+"\n ")]),e._v(" "),e.tabCountSrText?t("span",{staticClass:"gl-sr-only"},[e._v(e._s(e.tabCountSrText))]):e._e()]},proxy:!0}:null,e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}}))],null,!0)},"b-tab",e.$attrs,!1),e.$listeners))}),[],!1,null,null,null);t.a=T.exports},"/mxG":function(e,t,i){"use strict";i.d(t,"a",(function(){return n.a}));var a=i("l85A"),n=i("wkJj"),s=i("IAmF"),r={name:"ResourceListsEmptyState",components:{GlEmptyState:a.a,EmptyResult:n.b},mixins:[s.a],props:{search:{type:String,required:!1,default:""},searchMinimumLength:{type:Number,required:!1,default:0},type:{type:String,required:!1,default:n.a.search,validator:function(e){return Object.values(n.a).includes(e)}},title:{type:String,required:!0},description:{type:String,required:!1,default:null},svgPath:{type:String,required:!0}},computed:{hasSearch(){return Boolean(this.search)}}},o=i("tBpV"),l=Object(o.a)(r,(function(){var e=this,t=e._self._c;return e.hasSearch?t("empty-result",{attrs:{search:e.search,"search-minimum-length":e.searchMinimumLength,type:e.type}}):t("gl-empty-state",{attrs:{"content-class":"gl-max-w-75",title:e.title,de
1scription:e.description,"svg-path":e.svgPath},scopedSlots:e._u([e.glSlots().description?{key:"description",fn:function(){return[e._t("description")]},proxy:!0}:null,e.glSlots().actions?{key:"actions",fn:function(){return[e._t("actions")]},proxy:!0}:null],null,!0)})}),[],!1,null,null,null);t.b=l.exports},"35gi":function(e,t,i){"use strict";i("3UXl"),i("iyoE"),i("UezY"),i("z6RN"),i("hG7+"),i("B++/"),i("47t/");var a=i("9MU8"),n=i("dLPT"),s=i("yxLa"),r=i("mpVB"),o=i("47Nv"),l=i("6IH5");const u=[{value:"=",description:"is",default:!0},{value:"!=",description:"is not"}];var c={name:"GlFilteredSearchToken",__v_skip:!0,components:{GlToken:s.a,GlFilteredSearchTokenSegment:o.a},inheritAttrs:!1,props:{availableTokens:{type:Array,required:!1,default:function(){return[]}},config:{type:Object,required:!1,default:function(){return{}}},active:{type:Boolean,required:!1,default:!1},multiSelectValues:{type:Array,required:!1,default:function(){return[]}},value:{type:Object,required:!1,default:function(){return{operator:"",data:""}}},showFriendlyText:{type:Boolean,required:!1,default:!1},cursorPosition:{type:String,required:!1,default:"end",validator:function(e){return["start","end"].includes(e)}},viewOnly:{type:Boolean,required:!1,default:!1},dataSegmentInputAttributes:{type:Object,required:!1,default:function(){return{}}}},data(){return{activeSegment:null,tokenValue:Object(a.a)(this.value),intendedCursorPosition:this.cursorPosition}},computed:{operators(){return this.config.operators||u},tokenEmpty(){var e;return 0===(null===(e=this.tokenValue.data)||void 0===e?void 0:e.length)},hasDataOrDataSegmentIsCurrentlyActive(){return!this.tokenEmpty||this.isSegmentActive("DATA")},availableTokensWithSelf(){var e=this;return[this.config,...this.availableTokens.filter((function(t){return t!==e.config}))].map(l.o)},operatorDescription(){var e=this;const t=this.operators.find((function(t){return t.value===e.tokenValue.operator}));return this.showFriendlyText?null==t?void 0:t.description:null==t?void 0:t.value},eventListeners(){return this.viewOnly?{}:{mousedown:this.stopMousedownOnCloseButton,close:this.destroyByClose}}},segments:{SEGMENT_TITLE:"TYPE",SEGMENT_DATA:"DATA",SEGMENT_OPERATOR:"OPERATOR"},watch:{tokenValue:{deep:!0,handler(e){this.$emit("input",e)}},value:{handler(e,t){Object(n.a)(null==e?void 0:e.data,null==t?void 0:t.data)&&(null==e?void 0:e.operator)===(null==t?void 0:t.operator)||(this.tokenValue=Object(a.a)(e))}},active:{immediate:!0,handler(e){e?(this.intendedCursorPosition=this.cursorPosition,this.activeSegment||this.activateSegment(this.tokenEmpty?"OPERATOR":"DATA")):(this.activeSegment=null,this.config.multiSelect&&this.$emit("input",{...this.tokenValue,data:this.multiSelectValues||""}),this.tokenEmpty&&0===this.multiSelectValues.length&&this.$emit("destroy"))}}},created(){if(!("operator"in this.tokenValue))if(1===this.operators.length){const e=this.operators[0].value;this.$emit("input",{...this.tokenValue,operator:e}),this.activeSegment="DATA"}else this.$emit("input",{...this.tokenValue,operator:""})},methods:{activateSegment(e){this.viewOnly||(this.activeSegment=e,this.active||this.$emit("activate"))},getAdditionalSegmentClasses(e){return this.viewOnly?"gl-cursor-text":{"gl-cursor-pointer":!this.isSegmentActive(e)}},isSegmentActive(e){return this.active&&this.activeSegment===e},replaceWithTermIfEmpty(){""===this.tokenValue.operator&&this.tokenEmpty&&this.$emit("replace",Object(l.e)(this.config.title))},async replaceToken(e){const t=this.availableTokens.find((function({type:t}){return t===e}));if(t===this.config)return await this.$nextTick(),void this.$emit("deactivate");if(t){const e=this.config.dataType&&this.config.dataType===t.dataType;this.$emit("replace",{type:t.type,value:e?this.tokenValue:{data:""}})}},handleOperatorKeydown(e,{inputValue:t,suggestedValue:i,applySuggestion:a}){const{key:n}=e;if(" "===n||"Spacebar"===n)return void a(i);const s=`${t}${n}`;1!==n.length||this.operators.find((function({value:e}){return e.startsWith(s)}))||(this.tokenEmpty?a(i):e.preventDefault())},activateDataSegment(){this.config.multiSelect&&this.$emit("input",{...this.tokenValue,data:""}),this.activateSegment(this.$options.segments.SEGMENT_DATA)},activatePreviousOperatorSegment(){this.activateSegment(this.$options.segments.SEGMENT_OPERATOR),this.intendedCursorPosition="end"},activatePreviousTitleSegment(){this.activateSegment(this.$options.segments.SEGMENT_TITLE),this.intendedCursorPosition="end"},activateNextDataSegment(){this.activateDataSegment(),this.intendedCursorPosition="start"},activateNextOperatorSegment(){this.activateSegment(this.$options.segments.SEGMENT_OPERATOR),this.intendedCursorPosition="start"},handleComplete(e){this.$emit("complete",e)},stopMousedownOnCloseButton(e){e.target.closest(l.d)&&Object(r.k)(e)},destroyByClose(){this.$emit("destroy")}}},d=i("tBpV"),h=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-filtered-search-token",class:{"gl-filtered-search-token-active":e.active,"gl-filtered-search-token-hover":!e.viewOnly,"gl-cursor-default":e.viewOnly},attrs:{"data-testid":"filtered-search-token"}},[t("gl-filtered-search-token-segment",{key:"title-segment",attrs:{value:e.config.segmentTitle||e.config.title,active:e.isSegmentActive(e.$options.segments.SEGMENT_TITLE),"curs
1or-position":e.intendedCursorPosition,options:e.availableTokensWithSelf,"view-only":e.viewOnly},on:{activate:function(t){return e.activateSegment(e.$options.segments.SEGMENT_TITLE)},deactivate:function(t){return e.$emit("deactivate")},complete:e.replaceToken,backspace:function(t){return e.$emit("destroy")},submit:function(t){return e.$emit("submit")},previous:function(t){return e.$emit("previous")},next:e.activateNextOperatorSegment},scopedSlots:e._u([{key:"view",fn:function({inputValue:i}){return[t("gl-token",{staticClass:"gl-filtered-search-token-type",class:e.getAdditionalSegmentClasses(e.$options.segments.SEGMENT_TITLE),attrs:{"view-only":""}},[e._v("\n "+e._s(i)+"\n ")])]}}])}),e._v(" "),t("gl-filtered-search-token-segment",{key:"operator-segment",attrs:{active:e.isSegmentActive(e.$options.segments.SEGMENT_OPERATOR),"cursor-position":e.intendedCursorPosition,options:e.operators,"option-text-field":"value","custom-input-keydown-handler":e.handleOperatorKeydown,"view-only":e.viewOnly},on:{activate:function(t){return e.activateSegment(e.$options.segments.SEGMENT_OPERATOR)},backspace:e.replaceWithTermIfEmpty,complete:function(t){return e.activateSegment(e.$options.segments.SEGMENT_DATA)},deactivate:function(t){return e.$emit("deactivate")},previous:e.activatePreviousTitleSegment,next:e.activateNextDataSegment},scopedSlots:e._u([{key:"view",fn:function(){return[t("gl-token",{staticClass:"gl-filtered-search-token-operator",class:e.getAdditionalSegmentClasses(e.$options.segments.SEGMENT_OPERATOR),attrs:{variant:"search-value","view-only":""}},[e._v("\n "+e._s(e.operatorDescription)+"\n ")])]},proxy:!0},{key:"option",fn:function({option:i}){return[t("div",{staticClass:"gl-flex"},[e._v("\n "+e._s(e.showFriendlyText?i.description:i.value)+"\n "),i.description?t("span",{staticClass:"gl-filtered-search-token-operator-description"},[e._v("\n "+e._s(e.showFriendlyText?i.value:i.description)+"\n ")]):e._e()])]}}]),model:{value:e.tokenValue.operator,callback:function(t){e.$set(e.tokenValue,"operator",t)},expression:"tokenValue.operator"}}),e._v(" "),e.hasDataOrDataSegmentIsCurrentlyActive?t("gl-filtered-search-token-segment",{key:"data-segment",attrs:{active:e.isSegmentActive(e.$options.segments.SEGMENT_DATA),"cursor-position":e.intendedCursorPosition,"multi-select":e.config.multiSelect,options:e.config.options,"view-only":e.viewOnly,"search-input-attributes":e.dataSegmentInputAttributes},on:{activate:e.activateDataSegment,backspace:function(t){return e.activateSegment(e.$options.segments.SEGMENT_OPERATOR)},complete:e.handleComplete,select:function(t){return e.$emit("select",t)},submit:function(t){return e.$emit("submit")},deactivate:function(t){return e.$emit("deactivate")},split:function(t){return e.$emit("split",t)},previous:e.activatePreviousOperatorSegment,next:function(t){return e.$emit("next")}},scopedSlots:e._u([{key:"before-input",fn:function(t){return[e._t("before-data-segment-input",null,null,t)]}},{key:"input",fn:function(t){return[e._t("data-segment-input",null,null,t)]}},{key:"suggestions",fn:function(){return[e._t("suggestions")]},proxy:!0},{key:"view",fn:function({inputValue:i}){return[e._t("view-token",(function(){return[t("gl-token",e._g({staticClass:"gl-filtered-search-token-data",class:e.getAdditionalSegmentClasses(e.$options.segments.SEGMENT_DATA),attrs:{variant:"search-value","view-only":e.viewOnly}},e.eventListeners),[t("span",{staticClass:"gl-filtered-search-token-data-content"},[e._t("view",(function(){return[e._v(e._s(i))]}),null,{inputValue:i})],2)])]}
1),null,{inputValue:i,listeners:e.eventListeners,cssClasses:{"gl-filtered-search-token-data":!0,...e.getAdditionalSegmentClasses(e.$options.segments.SEGMENT_DATA)}})]}}],null,!0),model:{value:e.tokenValue.data,callback:function(t){e.$set(e.tokenValue,"data",t)},expression:"tokenValue.data"}}):e._e()],1)}),[],!1,null,null,null);t.a=h.exports},"9WdR":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return s}));const a="group",n="project",s="NestedGroupsProjectsList"},COl3:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return o}));i("byxs");var a=i("v1ID");const n=function(e,t=!1){return t?e:JSON.parse(e)},s=function(e,t=!1){const i=localStorage.getItem(e);if(null===i)return{exists:!1};try{return{exists:!0,value:n(i,t)}}catch{return console.warn(`[gitlab] Failed to deserialize value from localStorage (key=${e})`,i),{exists:!1}}},r=function(e,t,i=!1){localStorage.setItem(e,function(e,t=!1){return!Object(a.a)(e)&&t&&console.warn("[gitlab] LocalStorageSync is saving",e,"but it is not a string and the 'asString' param is true. This will save and restore the stringified value rather than the original value."),t?e:JSON.stringify(e)}(t,i))},o=function(e){localStorage.removeItem(e)}},CqNk:function(e,t,i){"use strict";i("UezY"),i("z6RN"),i("hG7+"),i("3UXl"),i("iyoE");var a=i("GVrV"),n=i("OjPt"),s=i("QJEF"),r=i("LB5R"),o=i("q3oM"),l=i("4qOP"),u=i("d85j"),c=i("Jx7q");var d={name:"GlPagination",components:{GlLink:c.a,GlIcon:u.a},model:{prop:"value",event:"input"},props:{value:{type:Number,required:!1,default:1,validator:function(e){return e>0}},perPage:{type:Number,required:!1,default:20,validator:function(e){return e>0}},totalItems:{type:Number,required:!1,default:0},limits:{type:Object,required:!1,default:function(){return{xs:0,sm:3,md:9,default:9}},validator:function(e){return 0===Object.keys(r.b).filter((function(t){return!e[t]})).length||e.default}},linkGen:{type:Function,required:!1,default:null},prevPage:{type:Number,required:!1,default:null},nextPage:{type:Number,required:!1,default:null},ellipsisText:{type:String,required:!1,default:"â¦"},labelNav:{type:String,required:!1,default:Object(l.b)("GlPagination.nav","Pagination")},labelFirstPage:{type:String,required:!1,default:Object(l.b)("GlPagination.labelFirstPage","Go to first page")},labelPrevPage:{type:String,required:!1,default:Object(l.b)("GlPagination.labelPrevPage","Go to previous page")},labelNextPage:{type:String,required:!1,default:Object(l.b)("GlPagination.labelNextPage","Go to next page")},labelLastPage:{type:String,required:!1,default:Object(l.b)("GlPagination.labelLastPage","Go to last page")},labelPage:{type:[Function,String],required:!1,default:Object(l.b)("GlPagination.labelPage","Go to page %{page}")},align:{type:String,required:!1,default:o.f.left,validator:function(e){return Object.keys(o.f).includes(e)}}},data:()=>({breakpoint:r.a.getBreakpointSize(),minTotalPagesToCollapse:4}),computed:{isVisible(){return this.totalPages>1||this.isCompactPagination},isLinkBased(){return Object(n.a)(this.linkGen)},paginationLimit(){return void 0!==this.limits[this.breakpoint]?this.limits[this.breakpoint]:this.limits.default},maxAdjacentPages(){return Math.max(Math.ceil((this.paginationLimit-1)/2),0)},totalPages(){return Math.ceil(this.totalItems/this.perPage)},isFillAlign(){return this.align===o.f.fill},wrapperClasses(){const e=[];return this.align===o.f.center&&e.push("gl-justify-center"),this.align===o.f.right&&e.push("gl-justify-end"),this.isFillAlign&&e.push("gl-text-center"),e},shouldCollapseLeftSide(){const e=this.value-this.maxAdjacentPages;return e>=this.maxAdjacentPages&&e>3&&this.totalPages>this.minTotalPagesToCollapse},shouldCollapseRightSide(){return this.totalPages-2-this.value>this.maxAdjacentPages&&this.totalPages>this.minTotalPagesToCollapse},visibleItems(){var e=this;let t=[];if(!this.isCompactPagination){let s=this.shouldCollapseLeftSide?this.value-this.maxAdjacentPages:1;s=Math.min(s,this.totalPages-1);let r=this.shouldCollapseRightSide?this.value+this.maxAdjacentPages:this.totalPages;
1r=Math.max(r,2),t=(i=s,n=r,Object(a.a)(i,n+1,1)).map((function(t){return e.getPageItem(t)})),this.shouldCollapseLeftSide&&t.splice(0,0,this.getPageItem(1,this.labelFirstPage),this.getEllipsisItem("left")),this.shouldCollapseRightSide&&t.push(this.getEllipsisItem("right"),this.getPageItem(this.totalPages,this.labelLastPage))}var i,n;return t},isCompactPagination(){return Boolean(!this.totalItems&&(this.prevPage||this.nextPage))},prevPageIsDisabled(){return this.pageIsDisabled(this.value-1)},nextPageIsDisabled(){return this.pageIsDisabled(this.value+1)},prevPageAriaLabel(){return!this.prevPageIsDisabled&&(this.labelPrevPage||this.labelForPage(this.value-1))},nextPageAriaLabel(){return!this.nextPageIsDisabled&&(this.labelNextPage||this.labelForPage(this.value+1))},prevPageHref(){return!this.prevPageIsDisabled&&(this.isLinkBased?this.linkGen(this.value-1):"#")},nextPageHref(){return!this.nextPageIsDisabled&&(this.isLinkBased?this.linkGen(this.value+1):"#")}},created(){this.resizeDebounced=Object(s.a)(this.setBreakpoint,o.P),window.addEventListener("resize",this.resizeDebounced)},beforeDestroy(){window.removeEventListener("resize",this.resizeDebounced)},methods:{labelForPage(e){return Object(n.a)(this.labelPage)?this.labelPage(e):Object(l.a)(this.labelPage,{page:e})},setBreakpoint(){this.breakpoint=r.a.getBreakpointSize()},pageIsDisabled(e){return e<1||this.isCompactPagination&&e>this.value&&!this.nextPage||!this.isCompactPagination&&e>this.totalPages},getPageItem(e,t=null){var i=this;const a={"aria-label":t||this.labelForPage(e),href:"#",class:[]},n=e===this.value,s=this.pageIsDisabled(e),r={...a},o={};return n&&(r.class.push("active"),r["aria-current"]="page"),this.isLinkBased&&(r.href=this.linkGen(e)),o.click=function(t){return i.handleClick(t,e)},{content:e,component:s?"span":c.a,disabled:s,key:"page_"+e,slot:"page-number",slotData:{page:e,active:n,disabled:s},attrs:r,listeners:o}},getEllipsisItem(e){return{content:this.ellipsisText,key:"ellipsis_"+e,slot:"ellipsis-"+e,component:"span",disabled:!0,slotData:{},listeners:{}}},handleClick(e,t){this.isLinkBased||(e.preventDefault(),this.$emit("input",t))},handlePrevious(e,t){this.handleClick(e,t),this.$emit("previous")},handleNext(e,t){this.handleClick(e,t),this.$emit("next")}}},h=i("tBpV"),p=Object(h.a)(d,(function(){var e=this,t=e._self._c;return e.isVisible?t("nav",{staticClass:"gl-pagination",attrs:{"aria-label":e.labelNav}},[t("ul",{class:e.wrapperClasses},[t("li",{class:{disabled:e.prevPageIsDisabled,"gl-flex-auto":e.isFillAlign},attrs:{"aria-hidden":e.prevPageIsDisabled,"data-testid":"gl-pagination-li"}},[t(e.prevPageIsDisabled?"span":"a",{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-prev","aria-label":e.prevPageAriaLabel,href:e.prevPageHref},on:{click:function(t){!e.prevPageIsDisabled&&e.handlePrevious(t,e.value-1)}}},[e._t("previous",(function(){return[t("gl-icon",{attrs:{name:"chevron-lg-left"}})]}),null,{page:e.value-1,disabled:e.prevPageIsDisabled})],2)],1),e._v(" "),e._l(e.visibleItems,(function(i){return t("li",{key:i.key,class:{disabled:i.disabled,"gl-flex-auto":e.isFillAlign},attrs:{"data-testid":"gl-pagination-li"}},[t(i.component,e._g(e._b({tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-item",size:"md","aria-disabled":i.disabled}},"component",i.attrs,!1),i.listeners),[e._t(i.slot,(function(){return[e._v(e._s(i.content))]}),null,i.slotData)],2)],1)})),e._v(" "),t("li",{class:{disabled:e.nextPageIsDisabled,"gl-flex-auto":e.isFillAlign},attrs:{"aria-hidden":e.nextPageIsDisabled,"data-testid":"gl-pagination-li"}},[t(e.nextPageIsDisabled?"span":"a",{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-next","aria-label":e.nextPageAriaLabel,href:e.nextPageHref},on:{click:function(t){!e.nextPageIsDisabled&&e.handleNext(t,e.value+1)}}},[e._t("next",(function(){return[t("gl-icon",{attrs:{name:"chevron-lg-right"}})]}),null,{page:e.value+1,disabled:e.nextPageIsDisabled})],2)],1)],2)]):e._e()}),[],!1,null,null,null);t.a=p.exports},"D9S+":function(e,t,i){"use strict";i("B++/"),i("z6RN"),i("47t/"),i("3UXl"),i("iyoE"),i("UezY"),i("hG7+"),i("ZzK0"),i("BzOf");var a=i("35gi"),n=i("spe0"),s=i("pDO9"),r=i("F2z7"),o=i("mSGG"),l=i("NnjE"),u=i("ybl4"),c=i("QJEF"),d=i("0AwG"),h=i("CGBp"),p=i("IAmF"),g=i("W4cT"),v=i("RXYC"),f={name:"BaseToken",components:{GlFilteredSearchToken:a.a,GlFilteredSearchSuggestion:n.a,GlDropdownDivider:s.a,GlDropdownSectionHeader:r.a,GlDropdownText:o.a,GlLoadingIcon:l.a},mixins:[h.a,p.a],props:{config:{type:Object,required:!0},value:{type:Object,required:!0},active:{type:Boolean,required:!0},suggestionsLoading:{type:Boolean,required:!1,default:!1},suggestions:{type:Array,required:!1,default:function(){return[]}},getActiveTokenValue:{type:Function,required:!1,default:function(e,t){return e.find((function({value:e}){return e===t}))}},defaultSuggestions:{type:Array,required:!1,default:function(){return[]}},preloadedSuggestions:{type:Array,required:!1,default:function(){return[]}},valueIdentifier:{type:Function,required:!1,default:function(e){return e.id}},searchBy:{type:String,required:!1,default:void 0},appliedTokens:{type:Array,required:!1,default:function(){return[]}}},emits:["fetch-suggestions","input"],data(){var e;return{hasFetched:!1,searchKey:"",selectedTokens:[],recentSuggestions:this.config.recentSuggestionsStorageKey&&null!==(e=Object(v.c)(this.config.recentSuggestionsStorageKey,this.appliedTokens,this.valueIdentifier))&&void 0!==e?e:[]}},computed:{isRecentSuggestionsEnabled(){return Boolean(this.config.recentSuggestionsStorageKey)},suggestionsEnabled(){return!this.config.suggestionsDisabled},recentTokenIds(){return this.recentSuggestions.map(this.valueIdentifier)},preloadedTokenIds(){return this.preloadedSuggestions.map(this.valueIdentifier)},activeTokenValue(){const e=this.multiSelectEnabled&&Array.isArray(this.value.data)?Object(u.a)(this.value.data):this.value.data;return this.getActiveTokenValue(this.suggestions,e)},availableDefaultSuggestions(){return[g.y,g.z].includes(this.value.operator)?this.defaultSuggestions.filter((function(e){return!g.e.includes(e.value)})):this.defaultSuggestions},availableSuggestions(){var e=this;const t=this.searchKey?this.suggestions:this.suggestions.filter((function(t){return!e.recentTokenIds.includes(e.valueIdentifier(t))&&!e.preloadedTokenIds.includes(e.valueIdentifier(t))}));return this.applyMaxSuggestions(t)},showDefaultSuggestions(){return this.availableDefaultSuggestions.length>0&&!this.searchKey},showNoMatchesText(){return this.searchKey&&!this.availableSuggestions.length},showRecentSuggestions(){return this.isRecentSuggestionsEnabled&&this.recentSuggestions.length>0&&!this.searchKey},showPreloadedSuggestions(){return this.preloadedSuggestions.length>0&&!this.searchKey},showAvailableSuggestions(){return this.availableSuggestions.length>0},searchTerm(){return this.searchBy&&this.activeTokenValue?this.activeTokenValue[this.searchBy]:void 0},multiSelectEnabled(){return this.config.multiSelect&&g.u.includes(this.value.operator)}
1,validatedConfig(){return this.config.multiSelect&&!this.multiSelectEnabled?{...this.config,multiSelect:!1}:this.config}},watch:{active:{immediate:!0,handler(e){var t=this;if(!e&&!this.suggestions.length){[this.value.data].flat().forEach((function(e){const i=t.searchTerm?t.searchTerm:e;t.$emit("fetch-suggestions",i)}))}}},suggestionsLoading:{handler(e){e&&(this.hasFetched=!0)}},value:{deep:!0,immediate:!0,handler(e){const{data:t}=e;this.multiSelectEnabled&&t&&(Array.isArray(t)?this.selectedTokens=t:this.active||this.selectedTokens.includes(t)||(this.selectedTokens=this.selectedTokens.concat(t)))}}},methods:{handleInput:Object(c.a)((function({data:e,operator:t}){if(!Array.isArray(e)&&(e||t)&&(this.searchKey=e,!this.activeTokenValue)){let t=this.searchTerm?this.searchTerm:e;t.startsWith('"')&&t.endsWith('"')?t=Object(d.C)(t):t.startsWith('"')&&(t=t.slice(1,t.length)),this.$emit("fetch-suggestions",t)}}),g.a),handleTokenValueSelected(e){if(this.multiSelectEnabled){const t=this.selectedTokens.indexOf(e);t>-1?this.selectedTokens.splice(t,1):this.selectedTokens.push(e),this.$emit("input",{...this.value,data:""})}const t=this.getActiveTokenValue(this.suggestions,e);this.isRecentSuggestionsEnabled&&t&&!this.preloadedTokenIds.includes(this.valueIdentifier(t))&&Object(v.f)(this.config.recentSuggestionsStorageKey,t)},applyMaxSuggestions(e){const{maxSuggestions:t}=this.config;return!t||t<=0?e:e.slice(0,t)}}},b=i("tBpV"),m=Object(b.a)(f,(function(){var e=this,t=e._self._c;return t("gl-filtered-search-token",e._g(e._b({attrs:{config:e.validatedConfig,value:e.value,active:e.active,"multi-select-values":e.selectedTokens},on:{input:e.handleInput,select:e.handleTokenValueSelected},scopedSlots:e._u([e.glSlots()["view-token"]?{key:"view-token",fn:function(t){return[e._t("view-token",null,{viewTokenProps:{...t,activeTokenValue:e.activeTokenValue,selectedTokens:e.selectedTokens}})]}}:null,e.glSlots().view?{key:"view",fn:function(t){return[e._t("view",null,{viewTokenProps:{...t,activeTokenValue:e.activeTokenValue,selectedTokens:e.selectedTokens}})]}}:null,e.suggestionsEnabled?{key:"suggestions",fn:function(){return[e.showDefaultSuggestions?[e._l(e.availableDefaultSuggestions,(function(i){return t("gl-filtered-search-suggestion",{key:i.value,attrs:{value:i.value}},[e._v("\n "+e._s(i.text)+"\n ")])}
1)),e._v(" "),t("gl-dropdown-divider")]:e._e(),e._v(" "),e.showRecentSuggestions?[t("gl-dropdown-section-header",[e._v(e._s(e.__("Recently used")))]),e._v(" "),e._t("suggestions-list",null,{suggestions:e.recentSuggestions,selections:e.selectedTokens}),e._v(" "),t("gl-dropdown-divider")]:e._e(),e._v(" "),e.showPreloadedSuggestions?e._t("suggestions-list",null,{suggestions:e.preloadedSuggestions,selections:e.selectedTokens}):e._e(),e._v(" "),e.suggestionsLoading?t("gl-loading-icon",{attrs:{size:"sm"}}):e.showAvailableSuggestions?[e._t("suggestions-list",null,{suggestions:e.availableSuggestions,selections:e.selectedTokens})]:e.showNoMatchesText?t("gl-dropdown-text",[e._v("\n "+e._s(e.__("No matches found"))+"\n ")]):e.hasFetched?t("gl-dropdown-text",[e._v(e._s(e.__("No suggestions found")))]):e._e(),e._v(" "),e._t("footer")]},proxy:!0}:null],null,!0)},"gl-filtered-search-token",e.$attrs,!1),e.glListeners()))}),[],!1,null,null,null);t.a=m.exports},LB5R:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return n}));i("B++/"),i("z6RN"),i("47t/");const a={xl:1200,lg:992,md:768,sm:576,xs:0},n={windowWidth:function(){return window.innerWidth},getBreakpointSize(){const e=this.windowWidth();return Object.keys(a).find((function(t){return e>a[t]}))},isDesktop(){return["xl","lg"].includes(this.getBreakpointSize())}}},NHYh:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));i("3UXl"),i("iyoE");const a=function(e,t){return e.map((function(e,t){return[t,e]})).sort(function(e,t){return this(e[1],t[1])||e[0]-t[0]}.bind(t)).map((function(e){return e[1]}))}},OJiF:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));const a="gl-tab-nav-item"},ZhcO:function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"userPreferencesUpdateMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserPreferencesUpdateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPreferencesUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPreferences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectsSort"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:172}};i.loc.source={body:"mutation userPreferencesUpdateMutation($input: UserPreferencesUpdateInput!) {\n userPreferencesUpdate(input: $input) {\n userPreferences {\n projectsSort\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function n(e,t){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==t)return a}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var a=t.type;"NamedType"===a.kind&&i.add(a.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),a[e.name.value]=t}})),e.exports=i,e.exports.userPreferencesUpdateMutation=function(e,t){var i={kind:e.kind,definitions:[n(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=a[t]||new Set,r=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(t){var a=n(e,t);a&&i.definitions.push(a)})),i}(i,"userPreferencesUpdateMutation")},Zq5U:function(e,t,i){"use strict";var a=i("vyQ9"),n=i("LTx3"),s=Object(n.a)((function(e,t,i){return t=t.toLowerCase(),e+(i?Object(a.a)(t):t)}));t.a=s},eLCI:function(e,t,i){"use strict";var a=i("d4wX"),n=i("Kp+0"),s=i("u0qm"),r=i("WQmb");var o=function(e){return function(t){t=Object(r.a)(t);var i=Object(n.a)(t)?Object(s.a)(t):void 0,o=i?i[0]:t.charAt(0),l=i?Object(a.a)(i,1).join(""):t.slice(1);return o[e]()+l}}("toUpperCase");t.a=o},hxHM:function(e,t,i){"use strict";i("LdIe"),i("z6RN"),i("PTOk"),i("aFm2"),i("R9qC"),i("ZzK0"),i("BzOf"),i("3UXl"),i("iyoE"),i("UezY"),i("hG7+"),i("B++/"),i("47t/");var a=i("zNqO"),n=i("n64d"),s=i("1nO5"),r=i("pTIT"),o=i("Ld9G"),l=i("/2q6"),u=i("Zwln"),c=i("MGi3"),d=i("LTP3"),h=i("MHCW"),p=i("dJQL"),g=i("7I1/"),v=i("nf9o"),f=i("W1rz"),b=i("eOJu"),m=i("+tAD"),y=i("NHYh"),T=i("tslw"),S=i("slyf"),k=i("+18S");const O=r.s,_=function(e){return!e.disabled},P=Object(a.c)({name:n.E,inject:{getBvTabs:{default:function(){return function(){return{}}}}},props:{controls:{type:String,required:!1,default:void 0},id:{type:String,required:!1,default:void 0},noKeyNav:{type:Boolean,required:!1,default:!1},posInSet:{type:Number,required:!1,default:void 0},setSize:{type:Number,required:!1,default:void 0},tab:{required:!1,default:void 0},tabIndex:{type:Number,required:!1,default:void 0}},computed:{bvTabs(){return this.getBvTabs()}},methods:{focus(){Object(c.d)(this.$refs.link)},handleEvent(e){if(this.tab.disabled)return;const{type:t,keyCode:i,shiftKey:a}=e;"click"===t||"keydown"===t&&i===o.h?(Object(d.f)(e),this.$emit(r.e,e)):"keydown"!==t||this.noKeyNav||(-1!==[o.i,o.f,o.e].indexOf(i)?(Object(d.f)(e),a||i===o.e?this.$emit(r.m,e):this.$emit(r.z,e)):-1!==[o.a,o.g,o.b].indexOf(i)&&(Object(d.f)(e),a||i===o.b?this.$emit(r.t,e):this.$emit(r.w,e)))}},render(e){const{id:t,tabIndex:i,setSize:a,posInSet:n,controls:s,handleEvent:r}=this,{title:o,localActive:u,disabled:c,titleItemClass:d,titleLinkClass:h,titleLinkAttributes:p}=this.tab,g=e(k.a,{staticClass:"nav-link",class:[{active:u&&!c,disabled:c},h,u?this.bvTabs.activeNavItemClass:null],props:{disabled:c},attrs:{...p,id:t,role:"tab",tabindex:i,"aria-selected":u&&!c?"true":"false","aria-setsize":a,"aria-posinset":n,"aria-controls":s},on:{click:r,keydown:r},ref:"link"},[this.tab.normalizeSlot(l.y)||o]);return e("li",{staticClass:"nav-item",class:[d],attrs:{role:"presentation"}},[g])}}),C={align:{type:String,required:!1,default:void 0},fill:{type:Boolean,required:!1,default:!1},justified:{type:Boolean,required:!1,default:!1},pills:{type:Boolean,required:!1,default:!1},small:{type:Boolean,required:!1,default:!1}},x=Object(b.m)({...T.b,value:{type:Number},...C,activeNavItemClass:{type:[Array,Object,String],required:!1,default:void 0},activeTabClass:{type:[Array,Object,String],required:!1,default:void 0},contentClass:{type:[Array,Object,String],required:!1,default:void 0},end:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},navClass:{type:[Array,Object,String],required:!1,default:void 0},navWrapperClass:{type:[Array,Object,String],required:!1,default:void 0},noFade:{type:Boolean,required:!1,default:!1},noKeyNav:{type:Boolean,required:!1,default:!1},noNavStyle:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}}),q=Object(a.c)({name:n.D,mixins:[T.a,S.a],model:{prop:"value",event:O},provide(){var e=this;return{getBvTabs:function(){return e}}},props:x,data(){return{currentTab:Object(f.b)(this.value,-1),tabs:[],registeredTabs:[]}},computed:{fade(){return!this.noFade}},watch:{value(e,t){if(e!==t){e=Object(f.b)(e,-1),t=Object(f.b)(t,0);const i=this.tabs[e];i&&!i.disabled?this.activateTab(i):e<t?this.previousTab():this.nextTab()}},currentTab(e){let t=-1;
1this.tabs.forEach((function(i,a){a!==e||i.disabled?i.localActive=!1:(i.localActive=!0,t=a)})),this.$emit(O,t)},tabs(e,t){var i=this;Object(g.a)(e.map((function(e){return e[a.a]})),t.map((function(e){return e[a.a]})))||this.$nextTick((function(){i.$emit(r.d,e.slice(),t.slice())}))},registeredTabs(){this.updateTabs()}},created(){this.$_observer=null},mounted(){this.setObserver(!0)},beforeDestroy(){this.setObserver(!1),this.tabs=[]},methods:{registerTab(e){this.registeredTabs.includes(e)||this.registeredTabs.push(e)},unregisterTab(e){this.registeredTabs=this.registeredTabs.slice().filter((function(t){return t!==e}))},setObserver(e=!0){var t=this;if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e){const e=function(){t.$nextTick((function(){Object(c.A)((function(){t.updateTabs()}))}))};this.$_observer=Object(m.a)(this.$refs.content,e,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs(){const e=this.registeredTabs;let t=[];if(s.e&&e.length>0){const i=e.map((function(e){return"#"+e.safeId()})).join(", ");t=Object(c.C)(i,this.$el).map((function(e){return e.id})).filter(h.a)}return Object(y.a)(e,(function(e,i){return t.indexOf(e.safeId())-t.indexOf(i.safeId())}))},updateTabs(){const e=this.getTabs();let t=e.indexOf(e.slice().reverse().find((function(e){return e.localActive&&!e.disabled})));if(t<0){const{currentTab:i}=this;i>=e.length?t=e.indexOf(e.slice().reverse().find(_)):e[i]&&!e[i].disabled&&(t=i)}t<0&&(t=e.indexOf(e.find(_))),e.forEach((function(e,i){e.localActive=i===t})),this.tabs=e,this.currentTab=t},getButtonForTab(e){return(this.$refs.buttons||[]).find((function(t){return t.tab===e}))},updateButton(e){const t=this.getButtonForTab(e);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab(e){const{currentTab:t,tabs:i}=this;let a=!1;if(e){const n=i.indexOf(e);if(n!==t&&n>-1&&!e.disabled){const e=new u.a(r.a,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(e.type,n,t,e),e.defaultPrevented||(this.currentTab=n,a=!0)}}return a||this.value===t||this.$emit(O,t),a},deactivateTab(e){return!!e&&this.activateTab(this.tabs.filter((function(t){return t!==e})).find(_))},focusButton(e){var t=this;this.$nextTick((function(){Object(c.d)(t.getButtonForTab(e))}))},emitTabClick(e,t){Object(p.d)(t)&&e&&e.$emit&&!e.disabled&&e.$emit(r.e,t)},clickTab(e,t){this.activateTab(e),this.emitTabClick(e,t)},firstTab(e){const t=this.tabs.find(_);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))},previousTab(e){const t=Object(v.a)(this.currentTab,0),i=this.tabs.slice(0,t).reverse().find(_);this.activateTab(i)&&e&&(this.focusButton(i),this.emitTabClick(i,e))},nextTab(e){const t=Object(v.a)(this.currentTab,-1),i=this.tabs.slice(t+1).find(_);this.activateTab(i)&&e&&(this.focusButton(i),this.emitTabClick(i,e))},lastTab(e){const t=this.tabs.slice().reverse().find(_);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))}},render(e){var t=this;const{align:i,end:n,fill:s,firstTab:o,justified:u,lastTab:c,nextTab:d,noKeyNav:h,noNavStyle:p,pills:g,previousTab:v,small:f,tabs:b}=this,m=b.find((function(e){return e.localActive&&!e.disabled})),y=b.find((function(e){return!e.disabled})),T=b.map((function(i,n){const{safeId:s}=i;let l=null;return h||(l=-1,(i===m||!m&&i===y)&&(l=null)),e(P,{props:{controls:s?s():null,id:i.controlledBy||(s?s("_BV_tab_button_"):null),noKeyNav:h,posInSet:n+1,setSize:b.length,tab:i,tabIndex:l},on:{[r.e]:function(e){t.clickTab(i,e)},[r.m]:o,[r.z]:v,[r.w]:d,[r.t]:c},key:i[a.a]||n,ref:"buttons",[a.b]:!0})}));let S=e("ul",{staticClass:"nav",class:[this.navClass,{"nav-tabs":!p&&!g,"nav-pills":!p&&g,"nav-fill":s,"nav-justified":u,[(k=i,"justify-content-"+(k="left"===k?"start":"right"===k?"end":k))]:i,small:f}],attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},ref:"nav"},[this.normalizeSlot(l.w)||e(),T,this.normalizeSlot(l.v)||e()]);var k;S=e("div",{class:this.navWrapperClass,key:"bv-tabs-nav"},[this.normalizeSlot(l.A)||e(),S,this.normalizeSlot(l.z)||e()]);const O=this.normalizeSlot()||[];let _=e();0===O.length&&(_=e("div",{class:["tab-pane","active"],key:"bv-empty-tab"},this.normalizeSlot(l.f)));const C=e("div",{staticClass:"tab-content",class:this.contentClass,attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[O,_]);return e(this.tag,{staticClass:"tabs",attrs:{id:this.safeId()}},[n?C:e(),S,n?e():C])}});var j=i("q3oM"),A=i("CbCZ");const I=function(e){return Object.keys(e).every((function(e){return"text"===e||"attributes"===e}))};var w={name:"GlTabs",components:{BTabs:q,GlButton:A.a},inheritAttrs:!1,props:{actionPrimary:{type:Object,required:!1,default:null,validator:function(e){return I(e)}},actionSecondary:{type:Object,required:!1,default:null,validator:function(e){return I(e)}},actionTertiary:{type:Object,required:!1,default:null,validator:function(e){return I(e)}},contentClass:{type:[String,Array,Object],required:!1,default:null},navClass:{type:[String,Array,Object],required:!1,default:null},justified:{type:Boolean,required:!1,default:!1},syncActiveTabWithQueryParams:{type:Boolean,required:!1,default:!1},queryParamName:{type:String,required:!1,default:"tab"},value:{type:Number,required:!1,default:0}},data:()=>({activeTabIndex:0}),computed:{hasActions(){return[this.actionPrimary,this.actionSecondary,this.actionTertiary].some(Boolean)}
1,listeners(){return{...this.$listeners,input:this.handleInput}}},watch:{value:{handler(e){this.activeTabIndex!==e&&(this.activeTabIndex=e)},immediate:!0}},mounted(){this.syncActiveTabWithQueryParams&&(this.syncActiveTabFromQueryParams(),window.addEventListener("popstate",this.syncActiveTabFromQueryParams)),this.$emit("input",this.activeTabIndex)},destroyed(){window.removeEventListener("popstate",this.syncActiveTabFromQueryParams)},methods:{buttonBinding:(e,t)=>e.attributes?e.attributes:j.R[t],primary(){this.$emit("primary")},secondary(){this.$emit("secondary")},tertiary(){this.$emit("tertiary")},async syncActiveTabFromQueryParams(){var e=this;await this.$nextTick();const t=this.getQueryParamValue(),i=this.getTabs().findIndex((function(i,a){return e.getTabQueryParamValue(a)===t}));this.activeTabIndex=-1!==i?i:0},getTabs(){return this.$refs.bTabs.getTabs()},getQueryParamValue(){return new URLSearchParams(window.location.search).get(this.queryParamName)},setQueryParamValueIfNecessary(e){const t=this.getQueryParamValue(),i=this.getTabQueryParamValue(e);if(0===e&&!t||0!==e&&t===i)return;const a=new URLSearchParams(window.location.search);a.set(this.queryParamName,i),window.history.pushState({},"",`${window.location.pathname}?${a.toString()}`)},getTabQueryParamValue(e){const t=this.getTabs()[e];return(null==t?void 0:t.$attrs["query-param-value"])||e.toString()},handleInput(e){this.$emit("input",e),this.activeTabIndex=e,this.syncActiveTabWithQueryParams&&this.setQueryParamValueIfNecessary(e)}}},$=i("tBpV"),E=Object($.a)(w,(function(){var e=this,t=e._self._c;return t("b-tabs",e._g(e._b({ref:"bTabs",staticClass:"gl-tabs",attrs:{"no-nav-style":!0,"no-fade":!0,"active-nav-item-class":"gl-tab-nav-item-active","content-class":[e.contentClass,"gl-tab-content"],"nav-wrapper-class":"gl-tabs-wrapper","nav-class":[e.navClass,"gl-tabs-nav"],justified:e.justified,value:e.activeTabIndex},scopedSlots:e._u([e._l(Object.keys(e.$slots),(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}})),e.hasActions?{key:"toolbar-start",fn:function(){return[t("div",{staticClass:"gl-actions-tabs-start",attrs:{role:"toolbar","data-testid":"actions-tabs-start"}},[e.actionPrimary?t("gl-button",e._b({attrs:{"data-testid":"action-primary"},on:{click:e.primary}},"gl-button",e.buttonBinding(e.actionPrimary,"actionPrimary"),!1),[e._v("\n "+e._s(e.actionPrimary.text)+"\n ")]):e._e(),e._v(" "),e.actionSecondary?t("gl-button",e._b({attrs:{"data-testid":"action-secondary"},on:{click:e.secondary}},"gl-button",e.buttonBinding(e.actionSecondary,"actionSecondary"),!1),[e._v("\n "+e._s(e.actionSecondary.text)+"\n ")]):e._e(),e._v(" "),e.actionTertiary?t("gl-button",e._b({attrs:{"data-testid":"action-tertiary"},on:{click:e.tertiary}},"gl-button",e.buttonBinding(e.actionTertiary,"actionTertiary"),!1),[e._v("\n "+e._s(e.actionTertiary.text)+"\n ")]):e._e()],1)]},proxy:!0}:null,e.hasActions?{key:"toolbar-end",fn:function(){return[t("div",{staticClass:"gl-actions-tabs-end",attrs:{role:"toolbar","data-testid":"actions-tabs-end"}},[e.actionPrimary?t("gl-button",e._b({attrs:{"data-testid":"action-primary"},on:{click:e.primary}},"gl-button",e.buttonBinding(e.actionPrimary,"actionPrimary"),!1),[e._v("\n "+e._s(e.actionPrimary.text)+"\n ")]):e._e(),e._v(" "),e.actionSecondary?t("gl-button",e._b({attrs:{"data-testid":"action-secondary"},on:{click:e.secondary}},"gl-button",e.buttonBinding(e.actionSecondary,"actionSecondary"),!1),[e._v("\n "+e._s(e.actionSecondary.text)+"\n ")]):e._e(),e._v(" "),e.actionTertiary?t("gl-button",e._b({attrs:{"data-testid":"action-tertiary"},on:{click:e.tertiary}},"gl-button",e.buttonBinding(e.actionTertiary,"actionTertiary"),!1),[e._v("\n "+e._s(e.actionTertiary.text)+"\n ")]):e._e()],1)]},proxy:!0}:null],null,!0)},"b-tabs",e.$attrs,!1),e.listeners))}),[],!1,null,null,null);t.a=E.exports},mB9M:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));i("3UXl"),i("iyoE");var a=i("Zq5U");function n(e){return function(e,t){return Object.fromEntries(Object.entries(e).map((function([e,i]){return[t(e),i]})))}(e,a.a)}},mSGG:function(e,t,i){"use strict";var a=i("zNqO"),n=i("n64d"),s=i("eOJu");const r={tag:{type:String,required:!1,default:"p"},textClass:{type:[Array,Object,String],required:!1,default:void 0},variant:{type:String,required:!1,default:void 0}};var o={name:"GlDropdownText",components:{BDropdownText:Object(a.c)({name:n.j,functional:!0,props:r,render(e,{props:t,data:i,children:n}){const{tag:r,textClass:o,variant:l}=t;return e("li",Object(a.e)(Object(s.j)(i,["attrs"]),{attrs:{role:"presentation"}}),[e(r,{staticClass:"b-dropdown-text",class:[o,{["text-"+l]:l}],props:t,attrs:i.attrs||{},ref:"text"},n)])}})},inheritAttrs:!1},l=i("tBpV"),u=Object(l.a)(o,(function(){return(0,this._self._c)("b-dropdown-text",this._g(this._b({staticClass:"gl-dropdown-text"},"b-dropdown-text",this.$attrs,!1),this.$listeners),[this._t("default")],2)}),[],!1,null,null,null);t.a=u.exports},vyQ9:function(e,t,i){"use strict";var a=i("WQmb"),n=i("eLCI");t.a=function(e){return Object(n.a)(Object(a.a)(e).toLowerCase())}},wkJj:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var a=i("UfBS"),n=i("l85A"),s=i("/lV4");const r={search:"search",filter:"filter"};var o={name:"EmptyResult",i18n:{titleSearch:Object(s.a)("No results found"),descriptionSearch:Object(s.a)("Edit your search and try again."),descriptionSearchMinLength:Object(s.a)("Search must be at least %{searchMinimumLength} characters."),titleFilter:Object(s.a)("No results found"),descriptionFilter:Object(s.a)("To widen your search, change or remove filters above.")},components:{GlEmptyState:n.a},props:{type:{type:String,required:!1,default:r.search,validator:function(e){return Object.values(r).includes(e)}},search:{type:String,required:!1,default:""},searchMinimumLength:{type:Number,required:!1,default:0}},computed:{title(){return this.type===r.search?this.$options.i18n.titleSearch:this.$options.i18n.titleFilter},description(){return this.search.length<this.searchMinimumLength?Object(s.j)(this.$options.i18n.descriptionSearchMinLength,{searchMinimumLength:this.searchMinimumLength}):this.type===r.search?this.$options.i18n.descriptionSearch:this.$options.i18n.descriptionFilter}},emptyStateSvgPath:a.a},l=i("tBpV"),u=Object(l.a)(o,(function(){return(0,this._self._c)("gl-empty-state",{attrs:{"svg-path":this.$options.emptyStateSvgPath,title:this.title,de
1scription:this.description}})}),[],!1,null,null,null);t.b=u.exports},zfua:function(e,t,i){"use strict";i("RFHG"),i("z6RN"),i("xuo1"),i("UezY"),i("hG7+"),i("3UXl"),i("iyoE"),i("YSE1"),i("b+iX"),i("B++/"),i("47t/"),i("ZzK0"),i("BzOf");var a=i("hxHM"),n=i("+wZC"),s=i("9/Bc"),r=i("35gi"),o=i("+S2o"),l=i("dLPT"),u=i("DC3q"),c=i("/lV4"),d=i("4wgn"),h=i("SNRI"),p=i("0AwG"),g=i("jlnU"),v=i("xYWK"),f=i("FxFN"),b=i("W4cT"),m=i("COl3"),y=i("l0QG"),T=i("HqXx"),S=i("7F3p"),k=i("ygVz"),O=i("spe0"),_=i("qPgm"),P=i("mB9M"),C=i("CGBp"),x={name:"NamespaceToken",components:{BaseToken:i("D9S+").a,GlFilteredSearchSuggestion:O.a},mixins:[C.a],props:{config:{type:Object,required:!0},value:{type:Object,required:!0},active:{type:Boolean,required:!0}},data:()=>({namespaces:[],loading:!0}),methods:{getActiveNamespace:(e,t)=>e.find((function(e){return e.fullPath===t})),setNamespaces(e){this.namespaces=e.map(P.a)},fetchNamespaces(e){var t=this;this.loading=!0,_.b.namespaces(e,{full_path_search:!0},this.setNamespaces).catch((function(){return Object(g.createAlert)({message:Object(c.a)("There was a problem fetching namespaces.")})})).finally((function(){t.loading=!1}))}}},q=i("tBpV"),j=Object(q.a)(x,(function(){var e=this,t=e._self._c;return t("base-token",e._g(e._b({attrs:{config:e.config,value:e.value,active:e.active,"suggestions-loading":e.loading,suggestions:e.namespaces,"get-active-token-value":e.getActiveNamespace},on:{"fetch-suggestions":e.fetchNamespaces},scopedSlots:e._u([{key:"suggestions-list",fn:function({suggestions:i}){return e._l(i,(function(i){return t("gl-filtered-search-suggestion",{key:i.id,attrs:{value:i.fullPath}},[e._v("\n "+e._s(i.fullPath)+"\n ")])}))}}])},"base-token",e.$attrs,!1),e.glListeners()))}),[],!1,null,null,null).exports,A=i("NmEs"),I=i("EF/t"),w=i("ZhcO"),$=i.n(w),E=i("NnjE"),N=i("JqFC"),B=i("CqNk"),L=i("QmxP"),V=i("9WdR");const G=k.a.mixin();var F={PAGINATION_TYPE_KEYSET:I.f,PAGINATION_TYPE_OFFSET:I.g,name:"TabView",components:{GlLoadingIcon:E.a,GlKeysetPagination:N.a,GlPagination:B.a},mixins:[G],props:{tab:{required:!0,type:Object},startCursor:{type:String,required:!1,default:null},endCursor:{type:String,required:!1,default:null},page:{type:Number,required:!1,default:1},sort:{type:String,required:!0},filters:{type:Object,required:!0},filtersAsQueryVariables:{type:Object,required:!0},filteredSearchTermKey:{type:String,required:!0},search:{type:String,required:!1,default:""},timestampType:{type:String,required:!1,default:void 0,validator:e=>L.a.includes(e)},eventTracking:{type:Object,required:!1,default:()=>({})}},emits:["keyset-page-change","offset-page-change","query-complete","refetch","update-count"],data:()=>({items:{}}),apollo:{items(){return{query:this.tab.query,variables(){const{transformVariables:e}=this.tab,t={...this.paginationType===I.f?this.keysetPagination:{},...this.paginationType===I.g?this.offsetPagination:{},...this.tab.variables,...this.filtersAsQueryVariables,sort:this.sort,search:this.search};return e?e(t):t},update(e){const{nodes:t,pageInfo:i,count:a}=Object(u.a)(e,this.tab.queryPath);return{nodes:this.tab.formatter(t),pageInfo:i,count:a}},result(){this.$emit("query-complete")},error(e){Object(g.createAlert)({message:this.queryErrorMessage,error:e,captureError:!0})}}}},computed:{nodes(){return this.items.nodes||[]},pageInfo(){return this.items.pageInfo||{}},paginationType(){return this.tab.paginationType},keysetPagination(){return this.startCursor||this.endCursor?{first:this.endCursor&&_.a,after:this.endCursor,last:this.startCursor&&_.a,before:this.startCursor}:{first:_.a,after:null,last:null,before:null}},offsetPagination(){return{page:this.page}},isLoading(){return this.$apollo.queries.items.loading},apolloClient(){return this.$apollo.provider.defaultClient},emptyStateComponentProps(){return{search:this.search,...this.tab.emptyStateComponentProps}},listComponentProps(){const e={items:this.nodes,timestampType:this.timestampType,...this.tab.listComponentProps};return this.tab.listComponent.name===V.a?{...e,expandedOverride:Boolean(this.search)}:e},queryErrorMessage(){return this.tab.queryErrorMessage||Object(c.a)("An error occurred. Refresh the page to try again.")}},watch:{"items.count":function(e){this.$emit("update-count",this.tab,e)}},methods:{async onRefetch(){await this.apolloClient.clearStore(),this.$apollo.queries.items.refetch(),this.$emit("refetch")},onKeysetNext(e){this.$emit("keyset-page-change",{endCursor:e,startCursor:null})},onKeysetPrev(e){this.$emit("keyset-page-change",{endCursor:null,startCursor:e})},findItemById(e,t){if(null==e||!e.length)return null;for(let a=0;a<e.length;a+=1){var i;const n=e[a];if(n.id===t)return n;if(null!==(i=n.children)&&void 0!==i&&i.length){const e=this.findItemById(n.children,t);
1if(null!==e)return e}}return null},async onLoadChildren(e){const t=this.findItemById(this.nodes,e);if(t){t.childrenLoading=!0;try{const i=await this.$apollo.query({query:this.tab.query,variables:{parentId:e,...this.tab.variables}}),{nodes:a}=Object(u.a)(i.data,this.tab.queryPath);t.children=this.tab.formatter(a)}catch(e){Object(g.createAlert)({message:this.queryErrorMessage,error:e,captureError:!0})}finally{t.childrenLoading=!1}}},onHoverVisibility(e){var t;null!==(t=this.eventTracking)&&void 0!==t&&t.hoverVisibility&&this.trackEvent(this.eventTracking.hoverVisibility,{label:e})},onHoverStat(e){var t;null!==(t=this.eventTracking)&&void 0!==t&&t.hoverStat&&this.trackEvent(this.eventTracking.hoverStat,{label:e})},onClickStat(e){var t;null!==(t=this.eventTracking)&&void 0!==t&&t.clickStat&&this.trackEvent(this.eventTracking.clickStat,{label:e})},onClickTopic(){var e;null!==(e=this.eventTracking)&&void 0!==e&&e.clickTopic&&this.trackEvent(this.eventTracking.clickTopic)},onOffsetInput(e){this.$emit("offset-page-change",e)},onClickAvatar(){var e,t,i=this;if(null!==(e=this.eventTracking)&&void 0!==e&&e.clickItem&&this.trackEvent(this.eventTracking.clickItem,{label:this.tab.value}),null===(t=this.eventTracking)||void 0===t||!t.clickItemAfterFilter)return;const a=Object.entries(this.filters).reduce((function(e,[t,a]){return a?t===i.filteredSearchTermKey?{...e,search:"user provided value"}:{...e,[t]:a}:e}),{});Object.keys(a).length&&this.trackEvent(this.eventTracking.clickItemAfterFilter,{label:this.tab.value,property:JSON.stringify(a)})}}},D=Object(q.a)(F,(function(){var e=this,t=e._self._c;return e.isLoading?t("gl-loading-icon",{staticClass:"gl-mt-5",attrs:{size:"md"}}):e.nodes.length?t("div",[t(e.tab.listComponent,e._b({tag:"component",on:{refetch:e.onRefetch,"load-children":e.onLoadChildren,"hover-visibility":e.onHoverVisibility,"hover-stat":e.onHoverStat,"click-stat":e.onClickStat,"click-avatar":e.onClickAvatar,"click-topic":e.onClickTopic}},"component",e.listComponentProps,!1)),e._v(" "),e.paginationType===e.$options.PAGINATION_TYPE_OFFSET?[e.pageInfo.nextPage||e.pageInfo.previousPage?t("div",{staticClass:"gl-mt-5"},[t("gl-pagination",{attrs:{value:e.page,"per-page":e.pageInfo.perPage,"total-items":e.pageInfo.total,align:"center"},on:{input:e.onOffsetInput}})],1):e._e()]:e.paginationType===e.$options.PAGINATION_TYPE_KEYSET?[e.pageInfo.hasNextPage||e.pageInfo.hasPreviousPage?t("div",{staticClass:"gl-mt-5 gl-text-center"},[t("gl-keyset-pagination",e._b({on:{prev:e.onKeysetPrev,next:e.onKeysetNext}},"gl-keyset-pagination",e.pageInfo,!1))],1):e._e()]:e._e()],2):t(e.tab.emptyStateComponent,e._b({tag:"component"},"component",e.emptyStateComponentProps,!1))}),[],!1,null,null,null).exports;const z=k.a.mixin();var M={name:"TabsWithList",components:{GlTabs:a.a,GlTab:n.a,GlBadge:s.a,TabView:D,FilteredSearchAndSort:v.a},mixins:[z],props:{tabs:{type:Array,required:!0},filteredSearchSupportedTokens:{type:Array,required:!1,default:()=>[]},filteredSearchTermKey:{type:String,required:!0},filteredSearchNamespace:{type:String,required:!0},filteredSearchRecentSearchesStorageKey:{type:String,required:!0},filteredSearchInputPlaceholder:{type:String,required:!1,default:Object(c.a)("Filter or search (3 character minimum)")},filteredSearchTestid:{type:String,required:!1,default:null},timestampTypeMap:{type:Object,required:!0},firstTabRouteNames:{type:Array,required:!1,default:()=>[]},initialSort:{type:String,required:!0},programmingLanguages:{type:Array,required:!1,default:()=>[]},eventTracking:{type:Object,required:!1,default:()=>({})},tabCountsQuery:{type:Object,required:!1,default:()=>({})},tabCountsQueryErrorMessage:{type:String,required:!1,default:Object(c.a)("An error occurred loading the tab counts.")},shouldUpdateActiveTabCountFromTabQuery:{type:Boolean,required:!1,default:!0},userPreferencesSortKey:{type:String,required:!1,default:null},sortStorageKey:{type:String,required:!1,default:null}},data(){return{activeTabIndex:this.initActiveTabIndex(),tabCounts:this.tabs.reduce((function(e,t){return{...e,[t.value]:void 0}}),{}),initialLoad:!0}},computed:{activeTab(){return this.tabs[this.activeTabIndex]},filteredSearchTokens(){var e=this;return[{type:I.a,icon:"code",title:Object(c.a)("Language"),token:r.a,unique:!0,operators:b.q,options:this.programmingLanguages.map((function({name:e}){return{value:e,title:e}}))},{type:I.b,icon:"user",title:Object(c.a)("Role"),token:r.a,unique:!0,operators:b.q,options:[{value:y.g.toString(),title:Object(c.a)("Owner")}]},{type:I.e,icon:"eye",title:Object(c.a)("Visibility"),token:r.a,unique:!0,operators:b.q,options:[T.m,T.j,T.o].map((function(e){return{value:e,title:T.k[e]}}))},{type:I.c,icon:"namespace",title:Object(c.a)("Namespace"),token:j,unique:!0,operators:b.q,recentSuggestionsStorageKey:"tabs-with-list-namespace"},{type:I.d,icon:"check-circle",title:Object(c.a)("Repository check"),token:r.a,unique:!0,operators:b.q,options:[{value:"true",title:Object(c.a)("Failed")},{value:"false",title:Object(c.a)("No issues")}]}].filter((function(t){return e.filteredSearchSupportedTokens.includes(t.type)}))},sortOptions(){var e;return(null===(e=this.activeTab)||void 0===e?void 0:e.sortOptions)||[]},defaultSortOption(){var e;return null===(e=this.activeTab)||void 0===e?void 0:e.defaultSortOption},sortQuery(){return this.$route.query.sort},sortOptionValues(){return this.sortOptions.flatMap((function({value:e}){return[`${e}_${I.j}`,`${e}_${I.k}`]}))},storedSort(){if(!this.sortStorageKey)return null;const{exists:e,value:t}=Object(m.a)("tabs-with-list-sort:"+this.sortStorageKey,!0);return e&&"string"==typeof t&&this.sortOptionValues.includes(t)?t:null},sort(){var e;return this.sortQuery&&this.sortOptionValues.includes(this.sortQuery)?this.sortQuery:this.storedSort?this.storedSort:this.sortOptionValues.includes(this.initialSort)?this.initialSort:null!==(e=this.defaultSortOption)&&void 0!==e&&e.value?`${this.defaultSortOption.value}_${I.k}`:""},activeSortOption(){var e=this;return this.sortOptions.find((function(t){return e.sort.includes(t.value)}))||{}},isAscending(){return this.sort.endsWith(I.j)},startCursor(){return this.$route.query[d.d]},endCursor(){return this.$route.query[d.c]}
1,page(){return parseInt(this.$route.query[I.h],10)||1},routeQueryWithoutPagination(){const{[d.d]:e,[d.c]:t,[I.h]:i,...a}=this.$route.query;return a},filters(){const e=Object(o.a)(this.routeQueryWithoutPagination,[this.filteredSearchTermKey,...this.filteredSearchSupportedTokens]);return e[I.b]=Number(e[I.b]),e},search(){return this.filters[this.filteredSearchTermKey]},minAccessLevel(){const{[I.b]:e}=this.filters;return e&&y.a[e]},programmingLanguageName(){const e=this.filters[I.a];return Array.isArray(e)?e[0]:e},namespacePath(){const e=this.filters[I.c];return Array.isArray(e)?e[0]:e},visibilityLevel(){const e=this.filters[I.e];return Array.isArray(e)?e[0]:e},lastRepositoryCheckFailed(){const e=this.filters[I.d],t=Array.isArray(e)?e[0]:e;return"1"===t||Object(A.G)(t)},filtersAsQueryVariables(){return{programmingLanguageName:this.programmingLanguageName,minAccessLevel:this.minAccessLevel,visibilityLevel:this.visibilityLevel,namespacePath:this.namespacePath,lastRepositoryCheckFailed:this.lastRepositoryCheckFailed}},timestampType(){if(this.activeSortOption.value)return this.timestampTypeMap[this.activeSortOption.value]},hasTabCountsQuery(){return Boolean(Object.keys(this.tabCountsQuery).length)}},async created(){this.getTabCounts()},methods:{createSortQuery:({sortBy:e,isAscending:t})=>`${e}_${t?I.j:I.k}`,pushQuery(e){return Object(l.a)(this.$route.query,e)?Promise.resolve():this.$router.push({query:e})},initActiveTabIndex(){var e=this;return this.firstTabRouteNames.includes(this.$route.name)?0:this.tabs.findIndex((function(t){return t.value===e.$route.name}))},onTabUpdate(e){var t;if(e===this.activeTabIndex)return;this.activeTabIndex=e;const i=this.tabs[e]||this.tabs[0],a=this.$router.resolve({name:i.value,params:this.$route.params}),n=a.route?a.route.path:a.path;this.$router.push(decodeURIComponent(n)),null!==(t=this.eventTracking)&&void 0!==t&&t.tabs&&this.trackEvent(this.eventTracking.tabs,{label:i.value})},tabCount(e){const t=this.tabCounts[e.value];return void 0===t?"-":Object(h.h)(t)},onSortDirectionChange(e){if(!this.activeSortOption.value)return;const t=this.createSortQuery({sortBy:this.activeSortOption.value,isAscending:e});this.updateSort(t)},onSortByChange(e){const t=this.createSortQuery({sortBy:e,isAscending:this.isAscending});this.updateSort(t)},async updateSort(e){var t;await this.pushQuery({...this.routeQueryWithoutPagination,sort:e}),this.persistSort(e),null!==(t=this.eventTracking)&&void 0!==t&&t.sort&&this.trackEvent(this.eventTracking.sort,{label:this.activeTab.value,property:e})},persistSort(e){this.sortStorageKey?Object(m.c)("tabs-with-list-sort:"+this.sortStorageKey,e,!0):this.userPreferencesUpdateMutate(e)},async onFilter(e){var t,i=this;const{sort:a}=this.$route.query;await this.pushQuery({sort:a,...e}),this.shouldUpdateActiveTabCountFromTabQuery||this.getTabCounts({fromFilter:!0}),null!==(t=this.eventTracking)&&void 0!==t&&t.filteredSearch&&Object.entries(this.eventTracking.filteredSearch).forEach((function([t,a]){const n=e[t];n&&(t!==i.filteredSearchTermKey?i.trackEvent(a,{label:i.activeTab.value,property:n.join(",")}):i.trackEvent(a,{label:i.activeTab.value}))}))},async onKeysetPageChange(e){var t;await this.pushQuery(Object(f.a)({...e,routeQuery:this.$route.query})),null!==(t=this.eventTracking)&&void 0!==t&&t.pagination&&this.trackEvent(this.eventTracking.pagination,{label:this.activeTab.value,property:null===e.startCursor?"next":"previous"})},async onOffsetPageChange(e){var t;const i=this.$route.query[I.h];await this.pushQuery({...this.$route.query,[I.h]:e}),null!==(t=this.eventTracking)&&void 0!==t&&t.pagination&&this.trackEvent(this.eventTracking.pagination,{label:this.activeTab.value,property:e>i?"next":"previous"})},onRefetch(){this.getTabCounts()},async userPreferencesUpdateMutate(e){if(null!==this.userPreferencesSortKey)try{await this.$apollo.mutate({mutation:$.a,variables:{input:{[this.userPreferencesSortKey]:e.toUpperCase()}}})}catch(e){S.b(e)}},skipVariableName:e=>e&&void 0!==e.value?Object(p.h)("skip_"+e.value):null,skipVariables({fromFilter:e}){var t=this;return this.shouldUpdateActiveTabCountFromTabQuery?{[this.skipVariableName(this.activeTab)]:!0}:e?this.tabs.reduce((function(e,i){return i.value===t.activeTab.value?e:{...e,[t.skipVariableName(i)]:!0}}),{}):{}},async getTabCounts({fromFilter:e=!1}={}){var t=this;if(this.hasTabCountsQuery)try{const{data:i}=await this.$apollo.query({query:this.tabCountsQuery,variables:{...this.filtersAsQueryVariables,search:this.search,...this.skipVariables({fromFilter:e})}});this.tabCounts=this.tabs.reduce((function(e,a){const n=Object(u.a)(i,a.countsQueryPath),s=void 0===n?t.tabCounts[a.value]:n.count;return{...e,[a.value]:s}}),{})}catch(e){Object(g.createAlert)({message:this.tabCountsQueryErrorMessage,error:e,captureError:!0})}},onQueryComplete(){var e;this.initialLoad&&(this.initialLoad=!1,null!==(e=this.eventTracking)&&void 0!==e&&e.initialLoad&&this.trackEvent(this.eventTracking.initialLoad,{label:this.activeTab.value}))},onUpdateCount(e,t){this.shouldUpdateActiveTabCountFromTabQuery&&(this.tabCounts[e.value]=t)}}},R=Object(q.a)(M,(function(){var e=this,t=e._self._c;return t("gl-tabs",{attrs:{value:e.activeTabIndex},on:{input:e.onTabUpdate},scopedSlots:e._u([{key:"toolbar-end",fn:function(){return[t("filtered-search-and-sort",{staticClass:"gl-w-full gl-border-b-0",attrs:{"data-testid":e.filteredSearchTestid,"filtered-search-namespace":e.filteredSearchNamespace,"filtered-search-tokens":e.filteredSearchTokens,"filtered-search-term-key":e.filteredSearchTermKey,"f
1iltered-search-recent-searches-storage-key":e.filteredSearchRecentSearchesStorageKey,"filtered-search-query":e.$route.query,"search-input-placeholder":e.filteredSearchInputPlaceholder,"is-ascending":e.isAscending,"sort-options":e.sortOptions,"active-sort-option":e.activeSortOption},on:{filter:e.onFilter,"sort-direction-change":e.onSortDirectionChange,"sort-by-change":e.onSortByChange}})]},proxy:!0}])},e._l(e.tabs,(function(i){return t("gl-tab",{key:i.text,attrs:{lazy:""},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"gl-flex gl-items-center gl-gap-2",attrs:{"data-testid":"projects-dashboard-tab-title"}},[t("span",[e._v(e._s(i.text))]),e._v(" "),e.hasTabCountsQuery?t("gl-badge",{staticClass:"gl-tab-counter-badge",attrs:{size:"sm","data-testid":"tab-counter-badge"}},[e._v("\n "+e._s(e.tabCount(i))+"\n ")]):e._e()],1)]},proxy:!0}],null,!0)},[e._v(" "),i.query?t("tab-view",{attrs:{tab:i,"start-cursor":e.startCursor,"end-cursor":e.endCursor,page:e.page,sort:e.sort,filters:e.filters,"filters-as-query-variables":e.filtersAsQueryVariables,search:e.search,"timestamp-type":e.timestampType,"filtered-search-term-key":e.filteredSearchTermKey,"event-tracking":e.eventTracking},on:{"keyset-page-change":e.onKeysetPageChange,"offset-page-change":e.onOffsetPageChange,refetch:e.onRefetch,"query-complete":e.onQueryComplete,"update-count":e.onUpdateCount}}):[e._v(e._s(i.text))]],2)})),1)}),[],!1,null,null,null);t.a=R.exports}}]); 2//# sourceMappingURL=commons-pages.admin.groups.index-pages.admin.projects.index-pages.dashboard.groups.index-pages.dashb-5d8e349a.96336590.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.