PageSourceSearch

https://git.patchli.fr/assets/webpack/commons-pages.search.show-super_sidebar.6acb116e.chunk.js

js patchli.fr collected 2026-10-06 05:03:25 UTC 28,839 bytes, 2 lines download raw bytes

1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.search.show-super_sidebar","d50df462"],{"78vh":function(t,e,n){"use strict";var i=n("Q0Js"),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+i(e)+" of "+i(t))}},"86Lb":function(t,e,n){"use strict";var i=n("ZfjD"),r=n("/EoU"),s=n("ejl/"),o=n("sPwa"),a=n("78vh"),l=n("ocV/");i({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=r(this),n=s(e),i=arguments.length;if(i){l(n+i);for(var c=n;c--;){var u=c+i;c in e?e[u]=e[c]:a(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return o(e,n+i)}})},"8Igx":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=function(t="",...e){console.error("[gitlab]",t+"\n",...e)}},I4EJ:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"M",(function(){return s})),n.d(e,"A",(function(){return o})),n.d(e,"k",(function(){return a})),n.d(e,"x",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"H",(function(){return u})),n.d(e,"I",(function(){return d})),n.d(e,"J",(function(){return h})),n.d(e,"c",(function(){return m})),n.d(e,"F",(function(){return p})),n.d(e,"E",(function(){return f})),n.d(e,"f",(function(){return g})),n.d(e,"K",(function(){return v})),n.d(e,"v",(function(){return b})),n.d(e,"z",(function(){return y})),n.d(e,"h",(function(){return S})),n.d(e,"j",(function(){return O})),n.d(e,"w",(function(){return _})),n.d(e,"G",(function(){return j})),n.d(e,"n",(function(){return w})),n.d(e,"m",(function(){return C})),n.d(e,"o",(function(){return I})),n.d(e,"B",(function(){return k})),n.d(e,"C",(function(){return G})),n.d(e,"D",(function(){return x})),n.d(e,"i",(function(){return E})),n.d(e,"l",(function(){return P})),n.d(e,"p",(function(){return A})),n.d(e,"u",(function(){return T})),n.d(e,"s",(function(){return L})),n.d(e,"t",(function(){return M})),n.d(e,"q",(function(){return q})),n.d(e,"r",(function(){return R})),n.d(e,"e",(function(){return N})),n.d(e,"d",(function(){return B})),n.d(e,"g",(function(){return F})),n.d(e,"y",(function(){return $})),n.d(e,"L",(function(){return D}));var i=n("/lV4");const r=">",s="@",o=":",a="#",l="~",c="mod+k",u="activate_command_palette",d="click_command_palette_item",h={[r]:"command",[s]:"user",[o]:"project",[l]:"path"},m=[r,s,o,l],p={[r]:Object(i.i)("CommandPalette|Search for a page or action"),[s]:Object(i.i)("CommandPalette|Search by username (minimum 3 characters)"),[o]:Object(i.i)("CommandPalette|Search by project (minimum 3 characters)"),[a]:Object(i.i)("CommandPalette|issue (enter at least 3 chars)"),[l]:Object(i.i)("CommandPalette|Search by filename")},f={[s]:"users",[o]:"projects",[a]:"issues"},g=Object(i.i)("CommandPalette|Global Commands"),v=Object(i.i)("GlobalSearch|Users"),b=Object(i.i)("CommandPalette|Pages"),y=Object(i.i)("GlobalSearch|Projects I'm a member of"),S=Object(i.i)("GlobalSearch|Groups I'm a member of"),O=Object(i.i)("GlobalSearch|Issues"),_=Object(i.i)("CommandPalette|Project files"),j=Object(i.i)("CommandPalette|Settings"),w="esc",C="backdrop",I="headerclose",k="scoped-in-all",G="scoped-in-group",x="scoped-in-project",E={[s]:v,[o]:y,[a]:O,[l]:_},P=20,A=Object(i.i)("GlobalSearch|Change context %{kbdStart}↵%{kbdEnd}"),T=Object(i.i)("GlobalSearch|Search %{kbdStart}↵%{kbdEnd}"),L=Object(i.i)("GlobalSearch|Go to profile %{kbdStart}↵%{kbdEnd}"),M=Object(i.i)("GlobalSearch|Go to project %{kbdStart}↵%{kbdEnd}"),q=Object(i.i)("GlobalSearch|Go to file %{kbdStart}↵%{kbdEnd}"),R=Object(i.i)("GlobalSearch|Go to %{kbdStart}↵%{kbdEnd}"),N="FREQUENTLY_VISITED_PROJECTS_HANDLE",B="FREQUENTLY_VISITED_GROUPS_HANDLE",F="Groups",$="Projects",D="Users"},Lcz3:function(t,e,n){"use strict";var i=n("HTBS"),r=n("CbCZ"),s=n("d85j"),o=n("9/Bc"),a=n("zIFf"),l=n("/lV4"),c=n("3cHC"),u=n("QvGs"),d={props:{item:{type:Object,required:!0}},computed:{isActive(){return this.item.is_active},linkProps(){return{href:this.item.link,"aria-current":Object(u.a)(this.isActive)}},computedLinkClasses(){return{[c.j]:this.isActive}}}},h=n("tBpV"),m=Object(h.a)(d,(function(){var t=this;return(0,t._self._c)("a",t._b({class:t.computedLinkClasses,on:{click:function(e){return t.$emit("nav-link-click")}}},"a",t.linkProps,!1),[t._t("default",null,{isActive:t.isActive})],2)}),[],!1,null,null,null).exports,p={NAV_ITEM_LINK_ACTIVE_CLASS:c.j,props:{item:{type:Object,required:!0}},computed:{linkProps(){return{to:this.item.to}}},methods:{ariaCurrent:u.a}},f=Object(h.a)(p,(function(){var t=this,e=t._self._c;return e("router-link",t._b({attrs:{"active-class":t.$options.NAV_ITEM_LINK_ACTIVE_CLASS,custom:""},scopedSlots:t._u([{key:"default",fn:function({href:n,navigate:i,isActive:r}){return[e("a",{attrs:{href:n,"aria-current":t.ariaCurrent(r)},on:{click:i}},[t._t("default",null,{isActive:r})],2)]}}],null,!0)},"router-link",t.linkProps,!1))}),[],!1,null,null,null).exports,g={i18n:{pin:Object(l.i)("Navigation|Pin %{title}"),pinItem:Object(l.i)("Navigation|Pin item"),unpin:Object(l.i)("Navigation|Unpin %{title}"),unpinItem:Object(l.i)("Navigation|Unpin item")},name:"NavItem",components:{GlAvatar:i.a,GlButton:r.a,GlIcon:s.a,GlBadge:o.a,NavItemLink:m,NavItemRouterLink:f},directives:{GlTooltip:a.a},inject:{pinnedItemIds:{default:{ids:[]}},panelSupportsPins:{default:!1},panelType:{default:""},isIconOnly:{default:!1}},props:{isInPinnedSection:{type:Boolean,required:!1,default:!1},isStatic:{type:Boolean,required:!1,default:!1},item:{type:Object,required:!0},linkClasses:{type:Object,required:!1,default:function(){return{}}},isSubitem:{type:Boolean,required:!1,default:!1},isFlyout:{type:Boolean,required:!1,default:!1},asyncCount:{type:Object,required:!1,default:function(){return{}}}},data:()=>({isMouseIn:!1,canClickPinButton:!1}
1),computed:{pillData(){return this.item.pill_count_field?this.asyncCount[this.item.pill_count_field]:this.item.pill_count},hasPill(){return Number.isFinite(this.pillData)||"string"==typeof this.pillData&&""!==this.pillData},isPinnable(){return this.panelSupportsPins&&!this.isStatic},isPinned(){return this.pinnedItemIds.ids.includes(this.item.id)},trackingProps(){var t;const e=this.item.id&&this.panelType?{}:{"data-track-extra":JSON.stringify({title:this.item.title})};return{"data-track-action":this.isInPinnedSection?c.b:c.a,"data-track-label":null!==(t=this.item.id)&&void 0!==t?t:c.w,"data-track-property":this.panelType?"nav_panel_"+this.panelType:c.x,...e}},qaSubMenuItem(){const{id:t}=this.item;return"project_overview"===t||"group_overview"===t?t.replace(/_/g,"-"):this.item.title},linkProps(){var t;return{...this.$attrs,...this.trackingProps,item:this.item,"data-qa-submenu-item":this.qaSubMenuItem,"data-method":null!==(t=this.item.data_method)&&void 0!==t?t:null}},computedLinkClasses(){return{"gl-px-2 gl-mx-2 gl-leading-normal":this.isSubitem,"gl-px-2":!this.isSubitem,"!gl-pl-5 gl-rounded-small":this.isFlyout,"gl-rounded-base":!this.isFlyout,[this.item.link_classes]:this.item.link_classes,...this.linkClasses}},navItemLinkComponent(){return this.item.to?f:m},hasAvatar(){return Boolean(this.item.entity_id)},hasEndSpace(){return this.hasPill||this.isPinnable||this.isFlyout},avatarShape(){return this.item.avatar_shape||"rect"},pinAriaLabel(){return Object(l.j)(this.$options.i18n.pin,{title:this.item.title})},unpinAriaLabel(){return Object(l.j)(this.$options.i18n.unpin,{title:this.item.title})}},mounted(){this.item.is_active&&!this.isFlyout&&this.$el.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},methods:{pinAdd(){this.$emit("pin-add",this.item.id,this.item.title)},pinRemove(){this.$emit("pin-remove",this.item.id,this.item.title)},togglePointerEvents(){this.canClickPinButton=this.isMouseIn}}},v=Object(h.a)(g,(function(){var t=this,e=t._self._c;return e("li",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.right.viewport",value:t.isIconOnly&&!t.isFlyout?t.item.title:"",expression:"isIconOnly && !isFlyout ? item.title : ''",modifiers:{right:!0,viewport:!0}}],staticClass:"show-on-focus-or-hover--context hide-on-focus-or-hover--context transition-opacity-on-hover--context gl-relative",attrs:{"data-testid":"nav-item"},on:{mouseenter:function(e){t.isMouseIn=!0},mouseleave:function(e){t.isMouseIn=!1}}},[e(t.navItemLinkComponent,t._b({tag:"component",staticClass:"super-sidebar-nav-item show-on-focus-or-hover--control hide-on-focus-or-hover--control gl-relative gl-mb-1 gl-flex gl-items-center gl-gap-3 gl-py-1 !gl-text-default !gl-no-underline focus:gl-focus-inset",class:t.computedLinkClasses,attrs:{"data-testid":"nav-item-link","aria-label":t.item.title},on:{"nav-link-click":function(e){return t.$emit("nav-link-click")}}},"component",t.linkProps,!1),[t.isFlyout?t._e():e("div",{staticClass:"gl-flex gl-h-6 gl-w-6 gl-shrink-0",class:{"gl-w-6 gl-self-start":t.hasAvatar,"gl-rounded-base gl-bg-default":t.hasAvatar&&"rect"===t.avatarShape,"-gl-mr-2":t.hasAvatar&&t.isIconOnly}},[t._t("icon",(function(){return[t.item.icon?e("gl-icon",{staticClass:"super-sidebar-nav-item-icon gl-m-auto",attrs:{name:t.item.icon}}):t.isInPinnedSection?e("gl-icon",{staticClass:"js-draggable-icon show-on-focus-or-hover--target super-sidebar-mix-blend-mode gl-m-auto gl-cursor-grab",attrs:{name:"grip",variant:"subtle"}}):t.hasAvatar?e("gl-avatar",{attrs:{size:24,shape:t.avatarShape,"entity-name":t.item.title,"entity-id":t.item.entity_id,src:t.item.avatar}}):t._e()]}))],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isIconOnly,expression:"!isIconOnly"}],staticClass:"gl-grow gl-text-default gl-break-anywhere",class:{"gl-w-max":t.isFlyout,"nav-item-link-label":!t.isFlyout},attrs:{"data-testid":"nav-item-link-label"}},[t._v("\n      "+t._s(t.item.title)+"\n      "),t.item.subtitle?e("div",{staticClass:"gl-truncate-end gl-text-sm gl-text-subtle"},[t._v("\n        "+t._s(t.item.subtitle)+"\n      ")]):t._e()]),t._v(" "),t._t("actions"),t._v(" "),t.hasEndSpace&&!t.isIconOnly?e("span",{staticClass:"nav-item-link-badge gl-flex gl-min-w-6 gl-items-start gl-justify-end"},[t.hasPill?e("gl-badge",{staticClass:"gl-mr-1",class:{"hide-on-focus-or-hover--target transition-opacity-on-hover--target":t.isPinnable},attrs:{variant:"neutral"}},[t._v("\n        "+t._s(t.pillData)+"\n      ")]):t._e()],1):t._e()],2),t._v(" "),t.isPinnable?[t.isPinned?e("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.noninteractive.right.viewport",value:t.$options.i18n.unpinItem,expression:"$options.i18n.unpinItem",modifiers:{noninteractive:!0,right:!0,viewport:!0}}],staticClass:"show-on-focus-or-hover--target transition-opacity-on-hover--target always-animate gl-absolute gl-right-3 gl-top-1/2 -gl-translate-y-1/2",class:{"gl-pointer-events-none":!t.canClickPinButton},attrs:{"aria-label":t.unpinAriaLabel,category:"tertiary","data-testid":"nav-item-unpin",icon:"thumbtack-solid",size:"small"},on:{click:t.pinRemove,transitionend:t.togglePointerEvents}}):e("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.noninteractive.right.viewport",value:t.$options.i18n.pinItem,expression:"$options.i18n.pinItem",modifiers:{noninteractive:!0,right:!0,viewport:!0}}],staticClass:"show-on-focus-or-hover--target transition-opacity-on-hover--target always-animate gl-absolute gl-right-3 gl-top-1/2 -gl-translate-y-1/2",class:{"gl-pointer-events-none":!t.canClickPinButton},attrs:{"aria-label":t.pinAriaLabel,category:"tertiary","data-testid":"nav-item-pin",icon:"thumbtack",size:"small"},on:{click:t.pinAdd,transitionend:t.togglePointerEvents}})]:t._e()],2)}),[],!1,null,null,null);e.a=v.exports},Mnq8:function(t,e,n){"use strict";var i={name:"GlAnimatedChevronRightDownIcon",extends:n("Vkrm").a},r=n("tBpV"),s=Object(r.a)(i,(function(){var t=this._self._c;return t("svg",{class:[this.iconStateClass,this.iconVariantClass],attrs:{"aria-label":this.ariaLabel,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{staticClass:"gl-animated-chevron-right-down-arrow",attrs:{d:"M6.75 4.75L10 8L6.75 11.25",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])}),[],!1,null,null,null);e.a=s.exports},QvGs:function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return m}));n("UezY"),n("z6RN"),n("hG7+"),n("byxs"),n("v2fZ");var i=n("7F3p"),r=n("n7CP"),s=n("3cHC"),o=n("2ibD"),a=n("SNRI");const l=function(t){return t.sort((function(t,e){return t.frequency!==e.frequency?e.frequency-t.frequency:t.lastAccessedOn!==e.lastAccessedOn?e.lastAccessedOn-t.lastAccessedOn:0}))},c=function(t,e){if(!Array.isArray(t))return[];const n=t.filter((function(t){return t.frequency>=s.f.ELIGIBLE_FREQUENCY}));return l(n),n.slice(0,e)},u=function(t,{lastAccessedOn:e,frequency:n=0}={},r,a){const l=Date.now(),c=!e||Math.abs(l-e)/s.e>1;return c&&Object(o.a)({url:a,method:"POST",data:{type:r,id:t.id}}).catch((function(t){i.b(t)})),{...t,frequency:c?n+1:n,lastAccessedOn:c?l:e}},d=function(t,e,n){if(!r.a.canUseLocalStorage())return!1;const i=`${t}/frequent-${e.namespace}`,o=localStorage.getItem(i),a=o?JSON.parse(o):[],c=a.findIndex((function(t){return t.id===e.item.id}));if(c>-1)a[c]=u(e.item,a[c],e.namespace,n);else{const t=u(e.item,a[c],e.namespace,n);a.length===s.f.MAX_COUNT&&(l(a),a.pop()),a.push(t)}return localStorage.setItem(i,JSON.stringify(a))},h=function(t){return t?"page":null},m=function(t){return function(t){return"number"==typeof t}(t)?Object(a.h)(t):null}},Vkrm:function(t,e,n){"use strict";var i=n("q3oM"),r={name:"GlBaseAnimatedIcon",props:{ariaLabel:{type:String,required:!1,default:void 0},variant:{type:String,required:!1,default:"current",validator:function(t){return Object.keys(i.g).includes(t)}},isOn:{type:Boolean,required:!1,default:!1}},computed:{iconStateClass(){return this.isOn?"gl-animated-icon gl-animated-icon-on":"gl-animated-icon gl-animated-icon-off"},iconVariantClass(){return this.variant?i.g[this.variant]:""}}},s=n("tBpV"),o=Object(s.a)(r,(function(){return(0,this._self._c)("svg",{class:[this.iconStateClass,this.iconVariantClass],attrs:{"aria-label":this.ariaLabel,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}})}),[],!1,null,null,null);e.a=o.exports},gr1G:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"z",(function(){return s})),n.d(e,"a",(function(){return o}
1)),n.d(e,"A",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"D",(function(){return d})),n.d(e,"F",(function(){return h})),n.d(e,"E",(function(){return m})),n.d(e,"G",(function(){return p})),n.d(e,"u",(function(){return f})),n.d(e,"w",(function(){return g})),n.d(e,"x",(function(){return v})),n.d(e,"y",(function(){return b})),n.d(e,"v",(function(){return y})),n.d(e,"q",(function(){return S})),n.d(e,"B",(function(){return O})),n.d(e,"s",(function(){return j})),n.d(e,"t",(function(){return w})),n.d(e,"C",(function(){return C})),n.d(e,"H",(function(){return x})),n.d(e,"k",(function(){return L})),n.d(e,"m",(function(){return M})),n.d(e,"l",(function(){return q})),n.d(e,"j",(function(){return R})),n.d(e,"g",(function(){return N})),n.d(e,"o",(function(){return B})),n.d(e,"i",(function(){return F})),n.d(e,"e",(function(){return $})),n.d(e,"f",(function(){return D})),n.d(e,"n",(function(){return V})),n.d(e,"h",(function(){return H})),n.d(e,"d",(function(){return U})),n.d(e,"r",(function(){return z})),n.d(e,"p",(function(){return Y}));var i=n("/lV4");const r=Object(i.i)("GlobalSearch|There was an error fetching search autocomplete suggestions."),s=Object(i.i)("GlobalSearch|No results found. Edit your search and try again."),o=Object(i.a)("All GitLab"),a=Object(i.i)("GlobalSearch|Places"),l=Object(i.i)("GlobalSearch|Command palette"),c=Object(i.i)("GlobalSearch|List of filtered labels."),u=Object(i.i)("GlobalSearch|Type to filter labels."),d=Object(i.i)("GlobalSearch|%{count} default results provided. Use the up and down arrow keys to navigate search results list."),h=Object(i.i)("GlobalSearch|Type for new suggestions to appear below."),m=Object(i.i)("GlobalSearch|Results updated. %{count} results available. Use the up and down arrow keys to navigate search results list, or ENTER to submit."),p=Object(i.i)("GlobalSearch|Search results are loading"),f=(Object(i.i)("GlobalSearch|in %{scope}"),Object(i.i)("GlobalSearch|The search term must be at least 3 characters long.")),g=Object(i.i)("GlobalSearch|Issues assigned to me"),v=Object(i.i)("GlobalSearch|Issues I've created"),b=(Object(i.i)("GlobalSearch|Merge requests assigned to me"),Object(i.i)("GlobalSearch|Merge requests that I'm a reviewer"),Object(i.i)("GlobalSearch|Merge requests I've created"),Object(i.i)("GlobalSearch|Merge requests I'm working on")),y=Object(i.i)("GlobalSearch|all GitLab"),S=Object(i.i)("GlobalSearch|Groups"),O=Object(i.i)("GlobalSearch|Projects"),_=Object(i.i)("GlobalSearch|Users"),j=Object(i.i)("GlobalSearch|Recent issues"),w=Object(i.i)("GlobalSearch|Recent merge requests"),C=Object(i.i)("GlobalSearch|Recent epics"),I=Object(i.i)("GlobalSearch|In this project"),k=Object(i.i)("GlobalSearch|Settings"),G=Object(i.i)("GlobalSearch|Help"),x=[w,j,C,S,O,_,I,k,G],E=Object(i.i)("GlobalSearch|Search labels"),P=Object(i.i)("GlobalSearch|Labels"),A=Object(i.i)("GlobalSearch|Fetching aggregations error."),T=Object(i.i)("GlobalSearch|No labels found"),L=Object(i.i)("GlobalSearch|Tip:"),M=Object(i.i)("GlobalSearch|Pages or actions"),q=Object(i.i)("GlobalSearch|Files"),R=Object(i.i)("GlobalSearch|Search for `%{searchTerm}` in…"),N=Object(i.i)("GlobalSearch|Search for `%{searchTerm}` pages in…"),B=Object(i.i)("GlobalSearch|Search for `%{searchTerm}` users in…"),F=Object(i.i)("GlobalSearch|Search for `%{searchTerm}` projects in…"),$=Object(i.i)("GlobalSearch|Search for `%{searchTerm}` files in…"),D=">",V="@",H=":",U="~",z={SEARCH_DESCRIBED_BY_DEFAULT:d,SEARCH_RESULTS_LOADING:p,SEARCH_DESCRIBED_BY_UPDATED:m,SEARCH_LABELS:E,DROPDOWN_HEADER:P,AGGREGATIONS_ERROR_MESSAGE:A,NO_LABELS_FOUND:T,DESCRIBE_LABEL_FILTER:c,DESCRIBE_LABEL_FILTER_INPUT:u},Y="globalSearch:open"},h5I1:function(t,e,n){"use strict";var i=n("wCL9"),r=n.n(i),s=(n("UezY"),n("z6RN"),n("hG7+"),n("kIRW")),o=n("d85j"),a=n("Mnq8"),l=n("XGVf"),c=n("3cHC"),u=n("Lcz3"),d=n("h7kv"),h=n.n(d),m=n("WrwP");var p={name:"FlyoutMenu",components:{NavItem:u.a},inject:["isIconOnly"],provide:{isIconOnly:!1},props:{targetId:{type:String,required:!0},title:{type:String,required:!1,default:null},items:{type:Array,required:!0},asyncCount:{type:Object,required:!1,default:function(){return{}}}},data:()=>({currentMouseX:0,flyoutX:0,flyoutY:0,flyoutHeight:0,hoverTimeoutId:null,showSVG:!0,targetRect:null,cleanup:null}),computed:{topSVGPoints(){const t=this.currentMouseX/this.targetRect.width*100;let e=(this.targetRect.top-this.flyoutY)/this.flyoutHeight*100;return e+=1,`${t}, ${e} 100, 0 100, ${e}`},bottomSVGPoints(){const t=this.currentMouseX/this.targetRect.width*100;let e=(this.targetRect.bottom-this.flyoutY)/this.flyoutHeight*100;return e-=1,`${t}, ${e} 100, ${e} 100, 100`},flyoutStyle:()=>({padding:"12px","padding-left":"24px"})},created(){const t=document.querySelector("#"+this.targetId);this.onMouseMove=h()(this.onMouseMove,50),t.addEventListener("mousemove",this.onMouseMove,{passive:!0})},mounted(){var t=this;const e=document.querySelector("#"+this.targetId),n=document.querySelector(`#${this.targetId}-flyout`),i=document.querySelector("#super-sidebar");this.cleanup=Object(m.autoUpdate)(e,n,(function(){return Object(m.computePosition)(e,n,{middleware:[Object(m.offset)({mainAxis:-12,alignmentAxis:-12}),Object(m.flip)(),Object(m.shift)()],placement:"right-start",strategy:"fixed"}).then((function({x:r,y:s}
1){Object.assign(n.style,{left:r+"px",top:s+"px"}),t.flyoutX=r,t.flyoutY=s,t.flyoutHeight=n.clientHeight;const o=e.getBoundingClientRect(),a=i.getBoundingClientRect();t.targetRect={top:o.top-a.top,bottom:o.bottom-a.top,width:o.width}}))}))},beforeDestroy(){this.cleanup&&this.cleanup(),clearTimeout(this.hoverTimeoutId),this.onMouseMove&&this.onMouseMove.cancel&&this.onMouseMove.cancel();document.querySelector("#"+this.targetId).removeEventListener("mousemove",this.onMouseMove)},methods:{startHoverTimeout(){var t=this;this.hoverTimeoutId=setTimeout((function(){t.showSVG=!1,t.$emit("mouseleave")}),1e3)},stopHoverTimeout(){clearTimeout(this.hoverTimeoutId)},onMouseMove(t){this.currentMouseX=Math.max(0,t.clientX-5)}}},f=n("LPAU"),g=n.n(f),v=n("nA5c"),b=n.n(v),y={insert:"head",singleton:!1},S=(g()(b.a,y),b.a.locals,n("tBpV")),O=Object(S.a)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"nav-flyout-menu gl-fixed gl-z-9999 -gl-mx-1",style:t.flyoutStyle,attrs:{id:t.targetId+"-flyout"},on:{mouseover:function(e){return t.$emit("mouseover")},mouseleave:function(e){return t.$emit("mouseleave")}}},[e("div",{staticClass:"gl-rounded-lg gl-border-1 gl-border-solid gl-border-default gl-bg-subtle gl-p-2 gl-pb-1 gl-shadow-md dark:gl-bg-strong"},[t.isIconOnly&&t.title?e("header",{staticClass:"gl-px-5 gl-py-2 gl-text-sm gl-font-bold gl-text-heading"},[t._v("\n      "+t._s(t.title)+"\n    ")]):t._e(),t._v(" "),t.isIconOnly&&t.title?e("hr",{staticClass:"-gl-mx-2 gl-my-2"}):t._e(),t._v(" "),e("ul",{staticClass:"gl-m-0 gl-max-h-[70vh] gl-min-w-20 gl-max-w-34 gl-list-none gl-overflow-y-auto gl-p-0",on:{mouseenter:function(e){t.showSVG=!1}}},t._l(t.items,(function(n){return e("nav-item",{key:n.id,attrs:{item:n,"is-flyout":!0,"async-count":t.asyncCount},on:{"pin-add":function(e,n){return t.$emit("pin-add",e,n)},"pin-remove":function(e,n){return t.$emit("pin-remove",e,n)},"nav-link-click":function(e){return t.$emit("nav-link-click")}}})})),1)]),t._v(" "),t.targetRect&&t.showSVG?e("svg",{style:{top:t.flyoutY+"px"},attrs:{width:t.flyoutX,height:t.flyoutHeight,viewBox:"0 0 100 100",preserveAspectRatio:"none"}},[e("polygon",{ref:"topSVG",attrs:{points:t.topSVGPoints,fill:"transparent"},on:{mouseenter:t.startHoverTimeout,mouseleave:t.stopHoverTimeout}}),t._v(" "),e("polygon",{ref:"bottomSVG",attrs:{points:t.bottomSVGPoints,fill:"transparent"},on:{mouseenter:t.startHoverTimeout,mouseleave:t.stopHoverTimeout}})]):t._e()])}),[],!1,null,"28c1a3bf",null).exports,_={name:"MenuSection",components:{GlCollapse:s.a,GlIcon:o.a,GlAnimatedChevronRightDownIcon:a.a,NavItem:u.a,FlyoutMenu:O},directives:{Outside:l.a},inject:{isIconOnly:{default:!1}},props:{item:{type:Object,required:!0},expanded:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"},hasFlyout:{type:Boolean,required:!1,default:!1},asyncCount:{type:Object,required:!1,default:function(){return{}}}},data(){return{isExpanded:Boolean(this.expanded||this.item.is_active),isMouseOverSection:!1,isMouseOverFlyout:!1,keepFlyoutClosed:!1}},computed:{navItems(){return this.item.items.filter((function(t){return!t.link_classes||!t.link_classes.includes("js-super-sidebar-nav-item-hidden")}))},buttonProps(){return{"aria-controls":this.itemId,"aria-expanded":String(this.isExpanded),"data-qa-menu-item":this.item.title}},computedLinkClasses(){return{[c.j]:this.isActive,"with-mouse-over-flyout":this.isMouseOverFlyout}},isActive(){return(!this.isExpanded||this.isIconOnly)&&this.item.is_active},itemId(){return r()(this.item.title)},isMouseOver(){return this.isMouseOverSection||this.isMouseOverFlyout},showExpanded(){return!this.isIconOnly&&this.isExpanded}},watch:{isExpanded(t){this.$emit("collapse-toggle",t),this.keepFlyoutClosed=!this.newIsExpanded,t||(this.isMouseOverFlyout=!1)}},methods:{handleClick(){this.isIconOnly?this.isMouseOverSection=!0:this.isExpanded=!this.isExpanded},handleClickOutside(){this.isMouseOverSection=!1},handlePointerover(t){this.hasFlyout&&(this.isMouseOverSection="mouse"===t.pointerType||"pen"===t.pointerType)},handlePointerleave(t){var e=this;this.hasFlyout&&(this.keepFlyoutClosed=!1,"mouse"!==t.pointerType&&"pen"!==t.pointerType||setTimeout((function(){e.isMouseOverSection=!1}),5))}}},j=Object(S.a)(_,(function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component"},[e("button",t._b({directives:[{name:"outside",rawName:"v-outside",value:t.handleClickOutside,expression:"handleClickOutside"}],staticClass:"super-sidebar-nav-item gl-relative gl-mb-1 gl-flex gl-w-full gl-appearance-none gl-items-center gl-gap-3 gl-rounded-base gl-border-0 gl-bg-transparent gl-px-2 gl-py-1 gl-text-left !gl-text-default !gl-no-underline focus:gl-focus",class:t.computedLinkClasses,attrs:{id:"menu-section-button-"+t.itemId,"data-testid":"menu-section-button","data-qa-section-name":t.item.title,"aria-label":t.item.title},on:{click:t.handleClick,pointerover:t.handlePointerover,pointerleave:t.handlePointerleave}},"button",t.buttonProps,!1),[e("span",{staticClass:"gl-flex gl-h-6 gl-w-6 gl-shrink-0"},[t._t("icon",(function(){return[t.item.icon?e("gl-icon",{staticClass:"super-sidebar-nav-item-icon gl-m-auto",attrs:{name:t.item.icon}}):t._e()]}))],2),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.isIconOnly,expression:"!isIconOnly"}],staticClass:"gl-truncate-end menu-section-button-label gl-grow"},[t._v("\n      "+t._s(t.item.title)+"\n    ")]),t._v(" "),t.isIconOnly?t._e():e("span",{staticClass:"gl-mr-2 gl-text-right gl-text-subtle"},[e("gl-animated-chevron-right-down-icon",{attrs:{"is-on":t.showExpanded}})],1)]),t._v(" "),t.hasFlyout&&t.isMouseOver&&!t.showExpanded&&!t.keepFlyoutClosed&&t.navItems.length>0?e("flyout-menu",{attrs:{"target-id":"menu-section-button-"+t.itemId,title:t.item.title,items:t.navItems,"async-count":t.asyncCount},on:{mouseover:function(e){t.isMouseOverFlyout=!0},mouseleave:function(e){t.isMouseOverFlyout=!1},"pin-add":function(e,n){return t.$emit("pin-add",e,n)},"pin-remove":function(e,n){return t.$emit("pin-remove",e,n)},"nav-link-click":function(e){return t.$emit("nav-link-click")}}}):t._e(),t._v(" "),e("gl-collapse",{staticClass:"gl-m-0 gl-list-none gl-p-0 gl-transition-[height] gl-duration-medium gl-ease-ease",class:{"gl-invisible gl-absolute":t.isIconOnly},attrs:{id:t.itemId,"data-testid":"menu-section","data-qa-section-name":t.item.title},model:{value:t.isExpanded,callback:function(e){t.isExpanded=e},expression:"isExpanded"}},[t._t("default",(function(){return[e("ul",{staticClass:"gl-m-0 gl-list-none gl-p-0",attrs:{"aria-label":t.item.title}}
1,t._l(t.navItems,(function(n){return e("nav-item",{key:`${t.item.title}-${n.title}`,attrs:{item:n,"async-count":t.asyncCount},on:{"pin-add":function(e,n){return t.$emit("pin-add",e,n)},"pin-remove":function(e,n){return t.$emit("pin-remove",e,n)}}})})),1)]}))],2)],1)}),[],!1,null,null,null);e.a=j.exports},kIRW:function(t,e,n){"use strict";var i={name:"GlCollapse",model:{prop:"visible",event:"input"},props:{visible:{type:Boolean,default:!1,required:!1},tag:{type:String,required:!1,default:"div"}},data(){return{show:this.visible,transitioning:!1}},computed:{classObject(){const{transitioning:t}=this;return{collapse:!t,show:this.show&&!t}},slotScope(){var t=this;return{visible:this.show,close:function(){t.show=!1}}},transitionProps(){return{...this.$attrs,css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"}}},watch:{visible(t){t!==this.show&&(this.show=t)},show(t,e){t!==e&&this.emitState()}},mounted(){var t=this;this.$nextTick((function(){t.emitState()}))},beforeDestroy(){this.show=!1},methods:{reflow:t=>Boolean(t&&t.nodeType===Node.ELEMENT_NODE)&&t.offsetHeight,emitState(){const{show:t}=this;this.$emit("input",t)},enter(t){var e=this;this.transitioning=!0,t.style.height=0,window.requestAnimationFrame((function(){e.reflow(t),t.style.height=t.scrollHeight+"px"}))},afterEnter(t){this.transitioning=!1,this.$emit("shown"),t.style.height=""},leave(t){this.transitioning=!0,t.style.height="auto",t.style.display="block",t.style.height=t.getBoundingClientRect().height+"px",this.reflow(t),t.style.height=0},afterLeave(t){this.transitioning=!1,this.$emit("hidden"),t.style.height=""}}},r=n("tBpV"),s=Object(r.a)(i,(function(){var t=this,e=t._self._c;return e("transition",t._g(t._b({attrs:{visible:t.visible},on:{enter:t.enter,"after-enter":t.afterEnter,leave:t.leave,afterLeave:t.afterLeave}},"transition",t.transitionProps,!1),t.$listeners),[e(t.tag,{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],tag:"component",class:t.classObject},[t._t("default",null,null,t.slotScope)],2)],1)}),[],!1,null,null,null);e.a=s.exports},nA5c:function(t,e,n){(t.exports=n("VNgF")(!1)).push([t.i,"\nsvg[data-v-28c1a3bf] {\n  pointer-events: none;\n\n  position: fixed;\n  right: 0;\n}\nsvg polygon[data-v-28c1a3bf],\nsvg rect[data-v-28c1a3bf] {\n  pointer-events: auto;\n}\n",""])}}]);
2//# sourceMappingURL=commons-pages.search.show-super_sidebar.6acb116e.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.