PageSourceSearch

https://gitlab.rk86.com/assets/webpack/commons-pages.search.show-super_sidebar.ba891895.chunk.js

js rk86.com collected 2026-09-24 23:37:58 UTC 46,008 bytes, 12 lines download raw bytes

1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.search.show-super_sidebar"],{"0Q6N":function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("ewH8"),s=i("lnrx"),o=(i("B++/"),i("z6RN"),i("47t/"),i("onSc")),r=i("qYtX");const a="undefined"!=typeof Element&&Boolean(Element.prototype.animate);var l={name:"GlToast",components:{CloseButton:r.a},props:{toastId:{type:String,required:!0},message:{type:String,required:!0},action:{type:Object,required:!1,default:null},autoHideDelay:{type:Number,required:!1,default:5e3}},data:()=>({visible:!0}),computed:{effectiveDelay(){return Math.max(this.autoHideDelay,1e3)}},created(){this.useCssTransition=a,this.dismissTimer=null,this.deadline=0,this.timeRemaining=this.effectiveDelay,this.isHiding=!1},beforeDestroy(){clearTimeout(this.dismissTimer)},methods:{startDismissTimer(){var t=this;clearTimeout(this.dismissTimer),this.deadline=Date.now()+this.timeRemaining,this.dismissTimer=setTimeout((function(){return t.hide()}),this.timeRemaining)},onPause(){this.dismissTimer&&(clearTimeout(this.dismissTimer),this.dismissTimer=null,this.timeRemaining=Math.max(this.deadline-Date.now(),1e3))},onResume(){this.timeRemaining&&!this.dismissTimer&&this.startDismissTimer()},hide(){this.isHiding||(this.isHiding=!0,clearTimeout(this.dismissTimer),this.dismissTimer=null,this.visible=!1)},onAfterLeave(){this.$emit("hidden",this.toastId)},onActionClick(t){var e=this;this.action&&this.action.onClick&&this.action.onClick(t,{id:this.toastId,hide:function(){return e.hide()}})}}},u=i("tBpV"),d=Object(u.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"b-toast b-toast-append",attrs:{id:t.toastId+"_toast_outer",role:"status","aria-live":"polite","aria-atomic":"true"}},[e("transition",{attrs:{"enter-active-class":"fade","enter-to-class":"show","leave-class":"show","leave-active-class":"fade",appear:"","appear-active-class":"fade","appear-to-class":"show",css:t.useCssTransition},on:{"after-appear":t.startDismissTimer,"after-leave":t.onAfterLeave}},[t.visible?e("div",{staticClass:"toast gl-toast",attrs:{id:t.toastId,tabindex:"0"},on:{mouseenter:t.onPause,mouseleave:t.onResume}},[e("div",{staticClass:"toast-body"},[t._v(t._s(t.message))]),t._v(" "),e("header",{staticClass:"toast-header"},[t.action?e("a",{staticClass:"gl-toast-action",attrs:{role:t.action.href?void 0:"button",href:t.action.href},on:{click:t.onActionClick}},[t._v(t._s(t.action.text))]):t._e(),t._v(" "),e("close-button",{staticClass:"gl-toast-close-button",on:{click:t.hide}})],1)]):t._e()])],1)}),[],!1,null,null,null).exports;const c="undefined"!=typeof document&&"function"==typeof document.startViewTransition;var h={name:"GlToaster",components:{MountingPortal:o.MountingPortal,GlToast:d},expose:["addToast","hideToast","removeToast"],data:()=>({toasts:[]}),methods:{addToast(t){var e=this;const i=function(){return e.toasts.push(t)};c&&this.toasts.length>0?document.startViewTransition(i):i()},hideToast(t){const e=this.$refs.toastRefs;if(!e)return;const i=(Array.isArray(e)?e:[e]).find((function(e){return e.toastId===t}));i&&i.hide()},removeToast(t){const e=this.toasts.findIndex((function(e){return e.id===t}));if(-1!==e){const i=this.toasts[e];this.toasts.splice(e,1),i.onComplete&&i.onComplete({componentId:t})}}}},p=Object(u.a)(h,(function(){var t=this,e=t._self._c;return e("mounting-portal",{attrs:{"mount-to":"body",append:""}},[e("div",{staticClass:"b-toaster b-toaster-bottom-left",attrs:{id:"gl-toaster"}},[e("div",{staticClass:"b-toaster-slot"},t._l(t.toasts,(function(i){return e("gl-toast",{key:i.id,ref:"toastRefs",refInFor:!0,attrs:{"toast-id":i.id,message:i.message,action:i.action,"auto-hide-delay":i.autoHideDelay},on:{hidden:t.removeToast}})})),1)])])}),[],!1,null,null,null).exports;let g=0,m=null;function f(t){if(m){const t=document.getElementById("gl-toaster");if(t&&document.body.contains(t))return m;m.$destroy(),m=null}const e=n.default.extend(p);return m=Object(s.a)(t,e),m.$mount(document.createElement("div")),m}function v(t,e={}){const i=f(this),n="gl-toast-"+g;g+=1;const s={id:n,hide:function(){return i.hideToast(n)}},o=Number.isNaN(null==e?void 0:e.autoHideDelay)?void 0:e.autoHideDelay;return i.addToast({id:n,message:t,action:e.action||null,autoHideDelay:o,onComplete:e.onComplete||null}),s}const b={beforeCreate(){this.$toast||(this.$toast={show:v.bind(this)})}},y={install(t){t.mixin(b)}};e.b=y}
1,"1I5c":function(t,e,i){"use strict";var n=i("7e18"),s=i("hvGG"),o=i("d85j"),r=i("NnjE"),a=i("4qOP"),l={name:"GlSearchBoxByType",components:{GlClearIconButton:n.a,GlIcon:o.a,GlFormInput:s.a,GlLoadingIcon:r.a},inheritAttrs:!1,model:{prop:"value",event:"input"},props:{value:{type:String,required:!1,default:""},borderless:{type:Boolean,required:!1,default:!1},clearButtonTitle:{type:String,required:!1,default:function(){return Object(a.b)("GlSearchBoxByType.clearButtonTitle","Clear")}},disabled:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},tooltipContainer:{required:!1,default:!1,validator:function(t){return!1===t||"string"==typeof t||t instanceof HTMLElement}}},computed:{inputAttributes(){const t={type:"search",placeholder:Object(a.b)("GlSearchBoxByType.input.placeholder","Search"),...this.$attrs};return t["aria-label"]||(t["aria-label"]=t.placeholder),t},hasValue(){return Boolean(this.value.length)},inputListeners(){return{...this.$listeners,input:this.onInput,focusin:this.onFocusin,focusout:this.onFocusout}},showClearButton(){return this.hasValue&&!this.disabled}},methods:{isInputOrClearButton(t){var e,i;return t===(null===(e=this.$refs.input)||void 0===e?void 0:e.$el)||t===(null===(i=this.$refs.clearButton)||void 0===i?void 0:i.$el)},clearInput(){this.onInput(""),this.focusInput()},focusInput(){this.$refs.input.$el.focus()},onInput(t){this.$emit("input",t)},onFocusout(t){const{relatedTarget:e}=t;this.isInputOrClearButton(e)||this.$emit("focusout",t)},onFocusin(t){const{relatedTarget:e}=t;this.isInputOrClearButton(e)||this.$emit("focusin",t)}}},u=i("tBpV"),d=Object(u.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"gl-search-box-by-type"},[e("gl-icon",{staticClass:"gl-search-box-by-type-search-icon",attrs:{name:"search",variant:"subtle"}}),t._v(" "),e("gl-form-input",t._g(t._b({ref:"input",class:{"gl-search-box-by-type-input":!t.borderless,"gl-search-box-by-type-input-borderless":t.borderless},attrs:{value:t.value,disabled:t.disabled}},"gl-form-input",t.inputAttributes,!1),t.inputListeners)),t._v(" "),t.isLoading||t.showClearButton?e("div",{staticClass:"gl-search-box-by-type-right-icons"},[t.isLoading?e("gl-loading-icon",{staticClass:"gl-search-box-by-type-loading-icon"}):t._e(),t._v(" "),t.showClearButton?e("gl-clear-icon-button",{ref:"clearButton",staticClass:"gl-search-box-by-type-clear gl-clear-icon-button",attrs:{title:t.clearButtonTitle,"tooltip-container":t.tooltipContainer},on:{click:function(e){return e.stopPropagation(),t.clearInput.apply(null,arguments)},focusin:t.onFocusin,focusout:t.onFocusout}}):t._e()],1):t._e()],1)}),[],!1,null,null,null);e.a=d.exports},"7e18":function(t,e,i){"use strict";var n=i("zIFf"),s=i("CbCZ"),o=i("4qOP"),r={name:"ClearIconButton",components:{GlButton:s.a},directives:{GlTooltip:n.a},props:{title:{type:String,required:!1,default:function(){return Object(o.b)("ClearIconButton.title","Clear")}},tooltipContainer:{required:!1,default:!1,validator:function(t){return!1===t||"string"==typeof t||t instanceof HTMLElement}}}},a=i("tBpV"),l=Object(a.a)(r,(function(){return(0,this._self._c)("gl-button",this._g({directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",value:{container:this.tooltipContainer},expression:"{ container: tooltipContainer }",modifiers:{hover:!0}}],staticClass:"gl-clear-icon-button",attrs:{variant:"default",category:"tertiary",size:"small",name:"clear",icon:"clear",title:this.title,"aria-label":this.title}},this.$listeners))}),[],!1,null,null,null);e.a=l.exports},Lcz3:function(t,e,i){"use strict";var n=i("HTBS"),s=i("9/Bc"),o=i("CbCZ"),r=i("d85j"),a=i("r/bI"),l=i("zIFf"),u=i("sHIo"),d=i("/lV4"),c=i("3cHC"),h=i("QvGs"),p={i18n:{pin:Object(d.i)("Navigation|Pin %{title}"),pinItem:Object(d.i)("Navigation|Pin item"),unpin:Object(d.i)("Navigation|Unpin %{title}"),unpinItem:Object(d.i)("Navigation|Unpin item")},name:"NavItem",components:{GlAvatar:n.a,GlBadge:s.a,GlButton:o.a,GlIcon:r.a,GlNavItem:a.a},directives:{GlTooltip:l.a},mixins:[Object(u.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},hideIcon:{type:Boolean,required:!1,default:!1},isFlyout:{type:Boolean,required:!1,default:!1},asyncCount:{type:Object,required:!1,default:function(){return{}}}},emits:["nav-item-keydown-esc","nav-link-click","nav-pin-keydown-esc","pin-add","pin-remove"],data:()=>({isMouseIn:!1,canClickPinButton:!1}
1),computed:{pillData(){if(this.item.pill_count_field){const t=this.item.pill_count_field;return Object.prototype.hasOwnProperty.call(this.asyncCount,t)?this.asyncCount[t]:"-"}return 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)},showPinButton(){return this.isPinnable&&(!this.isIconOnly||this.isFlyout)},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.c:c.b,"data-track-label":null!==(t=this.item.id)&&void 0!==t?t:c.v,"data-track-property":this.panelType?"nav_panel_"+this.panelType:c.w,...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,"aria-current":Object(h.a)(this.isActive),selected:this.isActive,href:this.item.link,to:this.item.to,"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-default":this.isFlyout,[this.item.link_classes]:this.item.link_classes,...this.linkClasses}},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(d.j)(this.$options.i18n.pin,{title:this.item.title})},unpinAriaLabel(){return Object(d.j)(this.$options.i18n.unpin,{title:this.item.title})},isActive(){return this.item.is_active},hasBadge(){return Boolean(this.item.badge)},itemIcon(){return this.glFeatures.hideUnpinnedSidebarItems&&this.item.library_icon||this.item.icon}},mounted(){this.isActive&&!this.isFlyout&&this.$el.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},methods:{pinAdd(){this.isMouseIn=!1,this.$emit("pin-add",this.item.id,this.item.title)},pinRemove(){this.isMouseIn=!1,this.$emit("pin-remove",this.item.id,this.item.title)},togglePointerEvents(){this.canClickPinButton=this.isMouseIn}}},g=i("tBpV"),m=Object(g.a)(p,(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("gl-nav-item",t._b({staticClass:"super-sidebar-nav-item show-on-focus-or-hover--control hide-on-focus-or-hover--control gl-mb-1",class:t.computedLinkClasses,attrs:{"data-testid":"nav-item-link","aria-label":t.item.title,"is-icon-only":!t.isFlyout&&t.isIconOnly},on:{click:function(e){return t.$emit("nav-link-click")},escape:function(e){return t.$emit("nav-item-keydown-esc")}},scopedSlots:t._u([t.isFlyout?null:{key:"icon",fn:function(){return[e("span",{staticClass:"gl-relative gl-flex gl-h-6 gl-w-6 gl-items-center gl-justify-center",class:{"gl-self-start":t.hasAvatar,"gl-rounded-base gl-bg-default":t.hasAvatar&&"rect"===t.avatarShape}},[t.hideIcon?t._e():t._t("icon",(function(){return[t.isInPinnedSection&&t.glFeatures.hideUnpinnedSidebarItems&&t.itemIcon&&!t.isIconOnly?[e("gl-icon",{staticClass:"hide-on-focus-or-hover--target",attrs:{name:t.itemIcon}}),t._v(" "),e("gl-icon",{staticClass:"js-draggable-icon show-on-focus-or-hover--target gl-absolute gl-cursor-grab",attrs:{name:"grip",variant:"subtle"}})]:t.itemIcon?e("gl-icon",{attrs:{name:t.itemIcon}}):t.isInPinnedSection?e("gl-icon",{staticClass:"js-draggable-icon show-on-focus-or-hover--target super-sidebar-mix-blend-mode 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,alt:t.item.title}}
1):t._e()]}))],2)]},proxy:!0},t.hasEndSpace&&!t.isIconOnly?{key:"end",fn:function(){return[t.hasPill?e("span",{staticClass:"nav-item-link-badge gl-mr-3 gl-text-sm",class:{"hide-on-focus-or-hover--target transition-opacity-on-hover--target":t.isPinnable},attrs:{"data-testid":"pill-badge"}},[t._v("\n        "+t._s(t.pillData)+"\n      ")]):t._e()]},proxy:!0}:null],null,!0)},"gl-nav-item",t.linkProps,!1),[t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.isIconOnly,expression:"!isIconOnly"}],staticClass:"gl-inline-block gl-grow gl-py-2 gl-leading-16 gl-break-anywhere",class:{"nav-item-link-label":!t.isFlyout},attrs:{"data-testid":"nav-item-link-label"}},[t._v("\n      "+t._s(t.item.title)+"\n      "),t.hasBadge?e("gl-badge",{attrs:{variant:"info",size:"sm","data-testid":"nav-item-feature-announcement-badge"}},[t._v("\n        "+t._s(t.item.badge.label)+"\n      ")]):t._e(),t._v(" "),t.item.subtitle?e("span",{staticClass:"gl-truncate-end gl-text-sm gl-text-subtle"},[t._v("\n        "+t._s(t.item.subtitle)+"\n      ")]):t._e()],1),t._v(" "),t._t("actions")],2),t._v(" "),t.showPinButton?e("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.noninteractive.right.viewport",value:t.isPinned?t.$options.i18n.unpinItem:t.$options.i18n.pinItem,expression:"\n      isPinned ? $options.i18n.unpinItem : $options.i18n.pinItem\n    ",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.isPinned?t.unpinAriaLabel:t.pinAriaLabel,category:"tertiary","data-testid":t.isPinned?"nav-item-unpin":"nav-item-pin",icon:t.isPinned?"thumbtack-solid":"thumbtack",size:"small"},on:{click:function(e){t.isPinned?t.pinRemove():t.pinAdd()},keydown:[function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.stopPropagation(),e.preventDefault(),t.isPinned?t.pinRemove():t.pinAdd()},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.isPinned?t.pinRemove():t.pinAdd()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"escape",void 0,e.key,void 0)?null:t.$emit("nav-pin-keydown-esc")}],transitionend:t.togglePointerEvents}}):t._e()],1)}),[],!1,null,null,null);e.a=m.exports},ZUW3:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return o}));var n=i("ewH8");function s(t){return n.default.version.startsWith("2")?t:{...t,render(...e){const i=t.render.call(this,...e);return Array.isArray(i)&&1===i.length?i[0]:i}}}function o(t,e="default"){var i,n,s;return null!==(i=null===(n=t.$scopedSlots)||void 0===n?void 0:n[e])&&void 0!==i?i:null===(s=t.$slots)||void 0===s?void 0:s[e]}},b1NL:function(t,e,i){"use strict";var n=i("ho4C"),s=i("MlQp"),o=i("WrwP"),r=i("q3oM"),a=i("RK7s"),l=i("mpVB"),u=i("XGVf"),d=i("CbCZ"),c=i("d85j"),h=i("onSc"),p={props:{positioningStrategy:{type:String,required:!1,default:a.l,validator:function(t){return[a.l,a.m].includes(t)}}},render(t){return this.positioningStrategy===a.m?t(h.MountingPortal,{props:{mountTo:"body",append:!0}},[this.$scopedSlots.default()]):this.$scopedSlots.default()}},g=i("7Q0w");var m={name:"BaseDropdown",expose:["open","close","closeAndFocus","containsElement"],BASE_DROPDOWN_CLASS:"gl-new-dropdown",DROPDOWN_CONTAINER_CLASS:"gl-new-dropdown-container",components:{DropdownContainer:p,GlButton:d.a,GlIcon:c.a},directives:{Outside:u.a},inject:{getFormGroupInstance:{default:function(){return function(){}}}},props:{toggleText:{type:String,required:!1,default:""},textSrOnly:{type:Boolean,required:!1,default:!1},block:{type:Boolean,required:!1,default:!1},category:{type:String,required:!1,default:r.q.primary,validator:function(t){return Object.keys(r.q).includes(t)}},variant:{type:String,required:!1,default:r.z.default,validator:function(t){return Object.keys(r.z).includes(t)}},size:{type:String,required:!1,default:"medium",validator:function(t){return Object.keys(r.r).includes(t)}},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},toggleClass:{type:[String,Array,Object],required:!1,default:null},noCaret:{type:Boolean,required:!1,default:!1},state:{type:Boolean,required:!1,default:null},placement:{type:String,required:!1,default:"bottom-start",validator:function(t){return["left","center","right"].includes(t)&&Object(l.i)(`"${t}" placement is deprecated. Use ${r.y[t]} instead.`,{name:"GlDisclosureDropdown/GlCollapsibleListbox"}),Object.keys(r.y).includes(t)}},ariaHaspopup:{type:[String,Boolean],required:!1,default:!1,validator:function(t){return["menu","listbox","tree","grid","dialog",!0,!1].includes(t)}},activeItemId:{type:String,required:!1,default:void 0},hasExternalLabel:{type:Boolean,required:!1,default:!1},hasSearchableListbox:{type:Boolean,required:!1,default:!1},isDisclosure:{type:Boolean,required:!1,default:!1},toggleId:{type:String,required:!0},listboxId:{type:String,required:!1,default:void 0},ariaLabelledby:{type:String,required:!1,default:null},ariaLabel:{type:String,required:!1,default:null},offset:{type:[Number,Object],required:!1,default:function(){return{mainAxis:g.b}}},fluidWidth:{type:Boolean,required:!1,default:!1},panelMatchTriggerWidth:{type:Boolean,required:!1,default:!1},positioningStrategy:{type:String,required:!1,default:a.l,validator:function(t){return[a.l,a.m].includes(t)}}},data:()=>({openedYet:!1,visible:!1,baseDropdownId:Object(n.a)("base-dropdown-")}),computed:{ariaActiveDescendant(){if(!this.isDisclosure&&this.visible)return this.activeItemId},hasNoVisibleToggleText(){var t;return!(null!==(t=this.toggleText)&&void 0!==t&&t.length)||this.textSrOnly},isIconOnly(){return Boolean(this.icon&&this.hasNoVisibleToggleText)},isEllipsisButton(){return this.isIconOnly&&"ellipsis_h"===this.icon},isCaretOnly(){return!this.noCaret&&!this.icon&&this.hasNoVisibleToggleText},computedState(){return Object(s.a)(this.state)?this.state:null},stateClass(){return!0===this.computedState?"is-valid":!1===this.computedState?"is-invalid":null},isDefaultToggle(){return!this.$scopedSlots.toggle},isToggleCombobox(){return!this.hasSearchableListbox&&!this.isDisclosure},isToggleLabelledExternally(){return!(!this.hasExternalLabel||!this.toggleId)},computedToggleId(){return this.isDisclosure||this.isToggleLabelledExternally?this.isDefaultToggle?this.toggleId:void 0:this.hasSearchableListbox?this.toggleId:void 0},computedToggleInnerId(){return this.isToggleCombobox&&!this.isToggleLabelledExternally?this.toggleId:this.isToggleCombobox&&this.isToggleLabelledExternally?this.listboxId:void 0},toggleAriaAttributes(){return{"aria-controls":this.baseDropdownId,"aria-expanded":String(this.visible),"aria-haspopup":this.ariaHaspopup,"aria-labelledby":this.toggleLabelledBy,"aria-label":this.ariaLabel||void 0,"aria-activedescendant":this.ariaActiveDescendant}}
1,toggleButtonClasses(){return[this.toggleClass,{"gl-new-dropdown-toggle":!0,"button-ellipsis-horizontal":this.isEllipsisButton,"gl-new-dropdown-icon-only btn-icon":this.isIconOnly&&!this.isEllipsisButton,"gl-new-dropdown-toggle-no-caret":this.noCaret,"gl-new-dropdown-caret-only btn-icon":this.isCaretOnly},this.stateClass]},toggleButtonTextClasses(){return this.block?"gl-w-full":""},toggleLabelledBy(){var t;const e=null===(t=this.getFormGroupInstance())||void 0===t?void 0:t.labelId;return this.isToggleCombobox?this.ariaLabelledby?""+this.ariaLabelledby:e?`${e} ${this.toggleId}`:this.toggleId:this.isToggleCombobox?void 0:this.ariaLabelledby?`${this.ariaLabelledby} ${this.toggleId}`:e?`${e} ${this.toggleId}`:void 0},toggleRole(){if(this.isToggleCombobox)return"combobox"},toggleAccessibilityAttributes(){return{...this.toggleAriaAttributes,id:this.toggleId,role:this.toggleRole}},toggleOptions(){var t=this;return this.isDefaultToggle?{is:d.a,icon:this.icon,block:this.block,buttonTextClasses:this.toggleButtonTextClasses,category:this.category,variant:this.variant,size:this.size,disabled:this.disabled,loading:this.loading,class:this.toggleButtonClasses,role:this.toggleRole,...this.toggleAriaAttributes,listeners:{keydown:function(e){return t.onKeydown(e)},click:function(e){return t.toggle(e)}}}:{is:"div",class:"gl-new-dropdown-custom-toggle",listeners:{keydown:function(e){return t.onKeydown(e)},click:function(e){return t.toggle(e)}}}},toggleListeners(){return this.toggleOptions.listeners},toggleAttributes(){const{listeners:t,is:e,...i}=this.toggleOptions;return i},toggleComponent(){return this.toggleOptions.is},toggleElement(){var t;return this.$refs.toggle.$el||(null===(t=this.$refs.toggle)||void 0===t?void 0:t.firstElementChild)},panelClasses(){return{"!gl-block":this.visible,[g.c]:!this.fluidWidth&&!this.panelMatchTriggerWidth,"gl-new-dropdown-panel-fluid-width":this.fluidWidth&&!this.panelMatchTriggerWidth,"gl-fixed":this.openedYet&&this.isFixed,"gl-absolute":this.openedYet&&!this.isFixed}},isFixed(){return this.positioningStrategy===a.m},floatingUIConfig(){var t=this;const e=r.y[this.placement],[,i]=e.split("-");return{placement:e,strategy:this.positioningStrategy,middleware:[Object(o.offset)(this.offset),Object(o.autoPlacement)({alignment:i,allowedPlacements:r.w[this.placement]}),Object(o.shift)(),Object(o.arrow)({element:this.$refs.dropdownArrow}),Object(o.size)({apply:function({availableWidth:e,availableHeight:i,elements:n}){var s;const o=n.floating.querySelector("."+a.f);if(!o)return;const r=i-(null!==(s=t.nonScrollableContentHeight)&&void 0!==s?s:0)-g.b,l=t.fluidWidth?{maxWidth:Math.max(0,e)+"px"}:{},u=t.panelMatchTriggerWidth?{minWidth:t.toggleElement.getBoundingClientRect().width+"px"}:{};Object.assign(o.style,{maxHeight:Math.max(r,0)+"px"},l,u)}})]}}},mounted(){this.checkToggleFocusable()},beforeDestroy(){this.stopFloating()},methods:{checkToggleFocusable(){Object(l.g)(this.toggleElement)||Object(l.h)(this.toggleElement)||Object(l.i)("Toggle is missing a 'tabindex' and cannot be focused.\n          Use 'a' or 'button' element instead or make sure to add 'role=\"button\"' along with 'tabindex' otherwise.",{name:"GlDisclosureDropdown/GlCollapsibleListbox",element:this.$el})},getArrowOffsets(t){const e={top:{staticSide:"bottom",rotation:"225deg"},bottom:{staticSide:"top",rotation:"45deg"},left:{staticSide:"right",rotation:"135deg"},right:{staticSide:"left",rotation:"315deg"}};return e[null==t?void 0:t.split("-")[0]]||e.bottom},async startFloating(){var t=this;this.calculateNonScrollableAreaHeight(),this.observer=new MutationObserver(this.calculateNonScrollableAreaHeight),this.observer.observe(this.$refs.content,{childList:!0,subtree:!0}),this.stopAutoUpdate=Object(o.autoUpdate)(this.toggleElement,this.$refs.content,(async function(){const e=await Object(o.computePosition)(t.toggleElement,t.$refs.content,t.floatingUIConfig);if(!t.$refs.content)return;const{x:i,y:n,middlewareData:s,placement:r}=e,{rotation:a,staticSide:l}=t.getArrowOffsets(r);if(Object.assign(t.$refs.content.style,{left:i+"px",top:n+"px"}),s&&s.arrow){const{x:e,y:i}=s.arrow,n=t.toggleElement.getBoundingClientRect(),o=t.$refs.content.getBoundingClientRect(),r=n.width>o.width?Math.min(Math.max(e,g.a),o.width-g.a):e;Object.assign(t.$refs.dropdownArrow.style,{left:null!=e?r+"px":"",top:null!=i?i+"px":"",right:"",bottom:"",[l]:"-4px",transform:`rotate(${a})`})}}))},stopFloating(){var t,e;null===(t=this.observer)||void 0===t||t.disconnect(),null===(e=this.stopAutoUpdate)||void 0===e||e.call(this)},async toggle(t){if(t&&this.visible){let e=!1;if(this.$emit(a.e,{originalEvent:t,preventDefault(){e=!0}}),e)return!1}return this.visible=!this.visible,this.visible?(await this.$nextTick(),this.openedYet=!0,this.startFloating(),this.$emit(a.i)):(this.stopFloating(),this.$emit(a.h,t)),!0},open(){this.visible||this.toggle()},close(t){this.visible&&this.toggle(t)},clickedToggle(t){var e,i,n,s;return(null===(e=(i=this.$refs.toggle).contains)||void 0===e?void 0:e.call(i,t.target))||(null===(n=this.$refs.toggle.$el)||void 0===n||null===(s=n.contains)||void 0===s?void 0:s.call(n,t.target))},handleClickOutside(t){this.clickedToggle(t)||this.close(t)},async closeAndFocus(t){if(!this.visible)return;const e=this.$el.contains(document.activeElement),i=await this.toggle(t);e&&i&&this.focusToggle()},focusToggle(){this.toggleElement.focus()},onKeydown(t){const{keyCode:e,code:i,target:{tagName:n}}=t;if(e===a.k&&this.visible)return Object(l.k)(t),void this.close();let s=!0,o=!0;"BUTTON"===n?(s=!1,o=!1):"A"===n&&(s=!1),(i===a.d&&s||i===a.n&&o)&&this.toggle(t),i===a.a&&this.$emit(a.g,t)},calculateNonScrollableAreaHeight(){var t;const e=null===(t=this.$refs.content)||void 0===t?void 0:t.querySelector("."+a.f);if(!e)return;const i=this.$refs.content.getBoundingClientRect(),n=e.getBoundingClientRect();this.nonScrollableContentHeight=i.height-n.height},containsElement(t){return t.closest(".gl-new-dropdown")===this.$el||t.closest(".gl-new-dropdown-container")===this.$refs.dropdownContainer}}
1},f=i("tBpV"),v=Object(f.a)(m,(function(){var t=this,e=t._self._c;return e("div",{class:[t.$options.BASE_DROPDOWN_CLASS,{"!gl-block":t.block}]},[e(t.toggleComponent,t._g(t._b({ref:"toggle",tag:"component",attrs:{id:t.computedToggleId,"data-testid":"base-dropdown-toggle"}},"component",t.toggleAttributes,!1),t.toggleListeners),[t._t("toggle",(function(){return[e("span",{staticClass:"gl-new-dropdown-button-text",class:{"gl-sr-only":t.textSrOnly},attrs:{id:t.computedToggleInnerId,"data-testid":"base-dropdown-span"}},[t._v("\n        "+t._s(t.toggleText)+"\n      ")]),t._v(" "),t.noCaret?t._e():e("gl-icon",{staticClass:"gl-button-icon gl-new-dropdown-chevron",attrs:{name:"chevron-down"}})]}),{accessibilityAttributes:t.toggleAccessibilityAttributes})],2),t._v(" "),e("dropdown-container",{attrs:{"positioning-strategy":t.positioningStrategy}},[e("div",{directives:[{name:"outside",rawName:"v-outside.click.focusin",value:t.handleClickOutside,expression:"handleClickOutside",modifiers:{click:!0,focusin:!0}}],ref:"dropdownContainer",class:t.$options.DROPDOWN_CONTAINER_CLASS},[e("div",{ref:"content",staticClass:"gl-new-dropdown-panel",class:t.panelClasses,attrs:{id:t.baseDropdownId,"data-testid":"base-dropdown-menu"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),t.closeAndFocus.apply(null,arguments))}}},[e("div",{ref:"dropdownArrow",staticClass:"gl-new-dropdown-arrow"}),t._v(" "),e("div",{staticClass:"gl-new-dropdown-inner"},[t._t("default",null,{visible:t.visible})],2)])])])],1)}),[],!1,null,null,null);e.a=v.exports},hvGG:function(t,e,i){"use strict";i("LdIe"),i("z6RN"),i("PTOk"),i("3UXl"),i("iyoE");var n=i("1s/W"),s=i("WQmb"),o=i("MlQp"),r=i("CzCp"),a=i("ho4C"),l=i("oIb9"),u=i("mpVB"),d=i("MGi3"),c=i("q3oM");const h=["text","password","email","number","url","tel","search","range","color","date","time","datetime","datetime-local","month","week"];var p={name:"GlFormInput",model:{prop:"value",event:"input"},props:{value:{type:[Number,String],required:!1,default:""},type:{type:String,required:!1,default:"text",validator:function(t){return h.includes(t)}},width:{type:[String,Object],required:!1,default:null,validator:function(t){return(Object(n.a)(t)?Object.values(t):[t]).every((function(t){return Object.values(c.B).includes(t)}))}},id:{type:String,required:!1,default:void 0},autofocus:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},form:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},state:{type:Boolean,required:!1,default:null},placeholder:{type:String,required:!1,default:void 0},ariaInvalid:{type:[Boolean,String],required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},debounce:{type:[Number,String],required:!1,default:void 0},formatter:{type:Function,required:!1,default:void 0},lazy:{type:Boolean,required:!1,default:!1},lazyFormatter:{type:Boolean,required:!1,default:!1},number:{type:Boolean,required:!1,default:!1},plaintext:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},trim:{type:Boolean,required:!1,default:!1},list:{type:String,required:!1,default:void 0},max:{type:[Number,String],required:!1,default:void 0},min:{type:[Number,String],required:!1,default:void 0},step:{type:[Number,String],required:!1,default:void 0}},data(){return{localValue:Object(s.a)(this.value),vModelValue:this.modifyValue(this.value),localId:null}},computed:{computedId(){return this.id||this.localId},localType(){const{type:t}=this;return h.includes(t)?t:"text"},computedAriaInvalid(){const{ariaInvalid:t}=this;return!0===t||"true"===t||""===t||!1===this.computedState?"true":t},computedAttrs(){const{localType:t,name:e,form:i,disabled:n,placeholder:s,required:o,min:r,max:a,step:l}=this;return{id:this.computedId,name:e,form:i,type:t,disabled:n,placeholder:s,required:o,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,min:r,max:a,step:l,list:"password"!==t?this.list:null,"aria-required":o?"true":null,"aria-invalid":this.computedAriaInvalid}},computedState(){return Object(o.a)(this.state)?this.state:null},stateClass(){return!0===this.computedState?"is-valid":!1===this.computedState?"is-invalid":null}
1,widthClasses(){if(null===this.width)return[];if(Object(n.a)(this.width)){const{default:t,...e}=this.width;return[...t?["gl-form-input-"+t]:[],...Object.entries(e).map((function([t,e]){return`gl-${t}-form-input-${e}`}))]}return["gl-form-input-"+this.width]},computedClass(){const{plaintext:t,type:e}=this,i="range"===e,n="color"===e;return[...this.widthClasses,{"custom-range":i,"form-control-plaintext":t&&!i&&!n,"form-control":n||!t&&!i},this.stateClass]},computedListeners(){return{...this.$listeners,input:this.onInput,change:this.onChange,blur:this.onBlur}},computedDebounce(){return Math.max(Object(r.a)(this.debounce),0)},hasFormatter(){return"function"==typeof this.formatter},noWheel(){return"number"===this.type}},watch:{value(t){const e=Object(s.a)(t),i=this.modifyValue(t);e===this.localValue&&i===this.vModelValue||(this.clearDebounce(),this.localValue=e,this.vModelValue=i)},noWheel(t){this.setWheelStopper(t)}},created(){this.$_inputDebounceTimer=null},mounted(){var t=this;this.setWheelStopper(this.noWheel),this.handleAutofocus(),this.$nextTick((function(){t.localId=Object(a.a)("gl-form-input-")}))},deactivated(){this.setWheelStopper(!1)},activated(){this.setWheelStopper(this.noWheel),this.handleAutofocus()},beforeDestroy(){this.setWheelStopper(!1),this.clearDebounce()},methods:{focus(){var t;this.disabled||(null===(t=this.$refs.input)||void 0===t||t.focus())},blur(){var t;this.disabled||(null===(t=this.$refs.input)||void 0===t||t.blur())},clearDebounce(){clearTimeout(this.$_inputDebounceTimer),this.$_inputDebounceTimer=null},formatValue(t,e,i=!1){let n=Object(s.a)(t);return!this.hasFormatter||this.lazyFormatter&&!i||(n=this.formatter(t,e)),n},modifyValue(t){let e=Object(s.a)(t);return this.trim&&(e=e.trim()),this.number&&(e=Object(l.e)(e,e)),e},updateValue(t,e=!1){var i=this;const{lazy:n}=this;if(n&&!e)return;this.clearDebounce();const s=function(){const e=i.modifyValue(t);if(e!==i.vModelValue)i.vModelValue=e,i.$emit("input",e);else if(i.hasFormatter){const t=i.$refs.input;t&&e!==t.value&&(t.value=e)}};this.computedDebounce>0&&!n&&!e?this.$_inputDebounceTimer=setTimeout(s,this.computedDebounce):s()},onInput(t){const{value:e}=t.target,i=this.formatValue(e,t);!1===i||t.defaultPrevented?Object(u.k)(t,{propagation:!1}):(this.localValue=i,this.updateValue(i),this.$emit("update",i))},onChange(t){const{value:e}=t.target,i=this.formatValue(e,t);!1===i||t.defaultPrevented?Object(u.k)(t,{propagation:!1}):(this.localValue=i,this.updateValue(i,!0),this.$emit("change",i))},onBlur(t){const{value:e}=t.target,i=this.formatValue(e,t,!0);!1!==i&&(this.localValue=Object(s.a)(this.modifyValue(i)),this.updateValue(i,!0)),this.$emit("blur",t)},setWheelStopper(t){const{input:e}=this.$refs;t?(e.addEventListener("focus",this.onWheelFocus),e.addEventListener("blur",this.onWheelBlur)):(e.removeEventListener("focus",this.onWheelFocus),e.removeEventListener("blur",this.onWheelBlur),document.removeEventListener("wheel",this.stopWheel))},onWheelFocus(){document.addEventListener("wheel",this.stopWheel)},onWheelBlur(){document.removeEventListener("wheel",this.stopWheel)},stopWheel(t){Object(u.k)(t,{propagation:!1}),this.blur()},handleAutofocus(){var t=this;this.$nextTick((function(){window.requestAnimationFrame((function(){t.autofocus&&Object(d.v)(t.$refs.input)&&t.focus()}))}))},select(...t){this.$refs.input.select(t)},setSelectionRange(...t){this.$refs.input.setSelectionRange(t)},setRangeText(...t){this.$refs.input.setRangeText(t)},setCustomValidity(...t){return this.$refs.input.setCustomValidity(t)},checkValidity(...t){return this.$refs.input.checkValidity(t)},reportValidity(...t){return this.$refs.input.reportValidity(t)}}},g=i("tBpV"),m=Object(g.a)(p,(function(){return(0,this._self._c)("input",this._g(this._b({ref:"input",staticClass:"gl-form-input",class:this.computedClass,domProps:{value:this.localValue}},"input",this.computedAttrs,!1),this.computedListeners))}),[],!1,null,null,null);e.a=m.exports},l85A:function(t,e,i){"use strict";var n=i("CbCZ"),s=i("fI8y"),o={name:"GlEmptyState",components:{GlButton:n.a,GlIllustration:s.a},props:{title:{type:String,required:!1,default:null},headerLevel:{type:Number,required:!1,default:2,validator:t=>t>0&&t<=6},illustrationName:{type:String,required:!1,default:null},svgPath:{type:String,required:!1,default:null},svgHeight:{type:Number,required:!1,default:144},description:{type:String,required:!1,default:null},primaryButtonLink:{type:String,required:!1,default:null},primaryButtonText:{type:String,required:!1,default:null},secondaryButtonLink:{type:String,required:!1,default:null},secondaryButtonText:{type:String,required:!1,default:null},compact:{type:Boolean,required:!1,default:!1},invertInDarkMode:{type:Boolean,required:!1,default:!0},contentClass:{type:[Array,String,Object],required:!1,default:function(){return[]}}},computed:{headerComponent(){return"h"+this.headerLevel},height(){return this.shouldPreventImageReflow?this.svgHeight:null},shouldPreventImageReflow(){return Boolean(this.svgHeight)&&!this.illustrationName},shouldRenderPrimaryButton(){return Boolean(this.primaryButtonLink&&this.primaryButtonText)},shouldRenderSecondaryButton(){return Boolean(this.secondaryButtonLink&&this.secondaryButtonText)},contentClasses(){return[this.compact?"gl-grow gl-basis-0 gl-px-4":"gl-m-auto gl-p-5",this.contentClass]}}},r=i("tBpV"),a=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"gl-flex",class:{"gl-empty-state gl-flex-col gl-text-center":!t.compact,"gl-flex-row":t.compact}},[e("div",{class:{"gl-hidden gl-px-4 @sm:gl-block":t.compact,"gl-max-w-full":!t.compact}},[t.illustrationName?e("gl-illustration",{attrs:{name:t.illustrationName}}):t.svgPath?e("img",{staticClass:"gl-max-w-full",class:{"gl-dark-invert-keep-hue":t.invertInDarkMode},attrs:{src:t.svgPath,alt:"",height:t.height}}):t._e()],1),t._v(" "),e("div",{staticClass:"gl-empty-state-content gl-mx-auto gl-my-0",class:t.contentClasses,attrs:{"data-testid":"gl-empty-state-content"}},[t._t("title",(function(){return[e(t.headerComponent,{tag:"component",staticClass:"gl-mb-0 gl-mt-0 gl-text-size-h-display gl-leading-36",class:t.compact?"h5":"h4"},[t._v("\n        "+t._s(t.title)+"\n      ")])]})),t._v(" "),t.description||t.$scopedSlots.description?e("p",{ref:"description",staticClass:"gl-mb-0 gl-mt-4 gl-text-subtle"},[t._t("description",(function(){return[t._v("\n        "+t._s(t.description)+"\n      ")]}))],2):t._e(),t._v(" "),e("div",{staticClass:"gl-mt-5 gl-flex gl-flex-wrap",class:{"gl-justify-center":!t.compact}},[t._t("actions",(function(){return[t.shouldRenderPrimaryButton?e("gl-button",{staticClass:"gl-mb-3",class:t.compact?"gl-mr-3":"gl-mx-2",attrs:{variant:"confirm",href:t.primaryButtonLink}},[t._v(t._s(t.primaryButtonText))]):t._e(),t._v(" "),t.shouldRenderSecondaryButton?e("gl-button",{staticClass:"gl-mb-3 gl-mr-3",class:{"!gl-mx-2":!t.compact},attrs:{href:t.secondaryButtonLink}},[t._v(t._s(t.secondaryButtonText)+"\n        ")]):t._e()]}
1))],2)],2)])}),[],!1,null,null,null);e.a=a.exports},onSc:function(t,e,i){"use strict";
2/*! 
3  * portal-vue © Thorsten Lünborg, 2019 
4  * 
5  * Version: 2.1.7
6  * 
7  * LICENCE: MIT 
8  * 
9  * https://github.com/linusborg/portal-vue
10  * 
11 */Object.defineProperty(e,"__esModule",{value:!0});var n,s=(n=i("ewH8"))&&"object"==typeof n&&"default"in n?n.default:n;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var a="undefined"!=typeof window;function l(t,e){return e.reduce((function(e,i){return t.hasOwnProperty(i)&&(e[i]=t[i]),e}),{})}var u={},d={},c={},h=new(s.extend({data:function(){return{transports:u,targets:d,sources:c,trackInstances:a}},methods:{open:function(t){if(a){var e=t.to,i=t.from,n=t.passengers,r=t.order,l=void 0===r?1/0:r;if(e&&i&&n){var u,d={to:e,from:i,passengers:(u=n,Array.isArray(u)||"object"===o(u)?Object.freeze(u):u),order:l};-1===Object.keys(this.transports).indexOf(e)&&s.set(this.transports,e,[]);var c,h=this.$_getTransportIndex(d),p=this.transports[e].slice(0);-1===h?p.push(d):p[h]=d,this.transports[e]=(c=function(t,e){return t.order-e.order},p.map((function(t,e){return[e,t]})).sort((function(t,e){return c(t[1],e[1])||t[0]-e[0]})).map((function(t){return t[1]})))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.to,n=t.from;if(i&&(n||!1!==e)&&this.transports[i])if(e)this.transports[i]=[];else{var s=this.$_getTransportIndex(t);if(s>=0){var o=this.transports[i].slice(0);o.splice(s,1),this.transports[i]=o}}},registerTarget:function(t,e,i){a&&(this.trackInstances&&!i&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,i){a&&(this.trackInstances&&!i&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,i=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===i)return+n;return-1}}}))(u),p=1,g=s.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(p++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){h.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){h.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};h.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:r(t),order:this.order};h.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],i=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(i,[this.normalizeOwnChildren(e)]):this.slim?t():t(i,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),m=s.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}}
vendor: 3,735 bytes, lines 11-12
11,data:function(){return{transports:h.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){h.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){h.unregisterTarget(e),h.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){h.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,i){var n=i.passengers[0],s="function"==typeof n?n(e):i.passengers;return t.concat(s)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),i=this.children(),n=this.transition||this.tag;return e?i[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},i)}}),f=0,v=["disabled","name","order","slim","slotProps","tag","to"],b=["multiple","transition"],y=s.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(f++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(h.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=h.targets[e.name];else{var i=e.append;if(i){var n="string"==typeof i?i:"DIV",s=document.createElement(n);t.appendChild(s),t=s}var o=l(this.$props,b);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new m({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=l(this.$props,v);return t(g,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var i=this.$scopedSlots.manual({to:this.to});return Array.isArray(i)&&(i=i[0]),i||t()}});var S={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",g),t.component(e.portalTargetName||"PortalTarget",m),t.component(e.MountingPortalName||"MountingPortal",y)}};e.default=S,e.Portal=g,e.PortalTarget=m,e.MountingPortal=y,e.Wormhole=h}}]);
12//# sourceMappingURL=commons-pages.search.show-super_sidebar.ba891895.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.