(this.webpackJsonp=this.webpackJsonp||[]).push([[153,62,126],{"3A1J":function(t,e,n){"use strict";var i=n("z1xw"),o=n("4lAS"),s=n("EldY"),r=n("Pyw5"),l=n.n(r);const a={name:"ClearIconButton",components:{GlButton:o.a},directives:{GlTooltip:i.a},props:{title:{type:String,required:!1,default:()=>Object(s.b)("ClearIconButton.title","Clear")},tooltipContainer:{required:!1,default:!1,validator:t=>!1===t||"string"==typeof t||t instanceof HTMLElement}}};const c=l()({render:function(){var t=this.$createElement;return(this._self._c||t)("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))},staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=c},"3CjL":function(t,e,n){var i=n("6+df"),o=n("3ftC");t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==e&&(e=(e=o(e))==e?e:0),i(o(t),e,n)}},"3fen":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return d}));var i=n("6npM"),o=n.n(i),s=n("lx39"),r=n.n(s);const l=t=>Boolean(t)&&(r()(t.value)||o()(t.value)),a=function(){let{options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(t)&&t.every(l)},c=t=>t.length===new Set(t).size,u=t=>t.flatMap(t=>l(t)?t:t.options),d=t=>(t=>t.every(l)||t.every(a))(t)&&(t=>c(u(t).map(t=>{let{value:e}=t;return e})))(t)&&(t=>c(t.filter(a).map(t=>{let{text:e}=t;return e})))(t)},"59DU":function(t,e){t.exports=function(t){return null==t}},"6+df":function(t,e){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},KXtm:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{constructor(){this.inputDomElement={},this.inputErrorMessage={},this.errorMessage=null,this.invalidInput=null}setValidationStateAndMessage(){this.setValidationMessage();const t=!this.inputDomElement.checkValidity();this.inputDomElement.classList.toggle("gl-field-error-outline",t),this.inputErrorMessage.classList.toggle("hide",!t)}setValidationMessage(){this.invalidInput?(this.inputDomElement.setCustomValidity(this.errorMessage),this.inputErrorMessage.innerHTML=this.errorMessage):this.resetValidationMessage()}resetValidationMessage(){this.inputDomElement.validationMessage===this.errorMessage&&(this.inputDomElement.setCustomValidity(""),this.inputErrorMessage.innerHTML=this.inputDomElement.title)}}},KnFb:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const i=new Map,o=new Set;let s=null;const r=t=>{i.forEach((e,n)=>{let{callback:i,eventTypes:o}=e;const r="click"===t.type&&s||t;if(!n.contains(r.target)&&o.includes(t.type))try{i(t)}catch(t){0}}),"click"===t.type&&(s=null)},l=t=>{s=t};const a={bind:(t,e)=>{const{callback:n,eventTypes:a}=function(t){let{arg:e,value:n,modifiers:i}=t;const o=Object.keys(i);return{callback:n,eventTypes:o.length>0?o:["click"]}}(e);i.has(t)||(i.set(t,{callback:n,eventTypes:a}),(t=>{t.forEach(t=>{o.has(t)||("click"===t&&document.addEventListener("mousedown",l),document.addEventListener(t,r,{capture:!0}),o.add(t))}),s=null})(a))},unbind:t=>{const e=i.get(t);var n;e&&(i.delete(t),(n=e.eventTypes).forEach(t=>{o.has(t)&&[...i.values()].every(e=>{let{eventTypes:n}=e;return!n.includes(t)})&&(document.removeEventListener(t,r),o.delete(t))}),n.includes("click")&&!o.has("click")&&document.removeEventListener("mousedown",l))}}},SZIZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("ZzK0"),n("z6RN"),n("BzOf");var i=n("KXtm");class o extends i.a{constructor(t={}){var e;super(),e=this;const n=t.container||"";document.querySelectorAll(n+" .js-validate-length").forEach((function(t){return t.addEventListener("input",e.eventHandler.bind(e))}))}eventHandler(t){this.inputDomElement=t.target,this.inputErrorMessage=this.inputDomElement.parentElement.querySelector(".gl-field-error");const{value:e}=this.inputDomElement,{minLength:n,minLengthMessage:i,maxLengthMessage:o,maxLength:s,allowEmpty:r}=this.inputDomElement.dataset;this.invalidInput=!1,function(t,e){return t.length>parseInt(e,10)}(e,s)&&(this.invalidInput=!0,this.errorMessage=o),function(t,e,n){const i="true"!==n||0!==t.length;return t.length<parseInt(e,10)&&i}(e,n,r)&&(this.invalidInput=!0,this.errorMessage=i),this.setValidationStateAndMessage()}}},"V5u/":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return h}));const i="shown",o="hidden",s="beforeClose",r="focusContent",l="ArrowDown",a="ArrowUp",c="End",u="Enter",d="Home",h="Space",f="absolute",g="fixed",p="gl-new-dropdown-contents"},WrwP:function(t,e,n){"use strict";n.d(e,"a",(function(){return M})),n.d(e,"b",(function(){return H}));var i=n("Xz+w"),o=n("tlyx");function s(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function r(t){return s(t).getComputedStyle(t)}function l(t){return t instanceof s(t).Node}function a(t){return l(t)?(t.nodeName||"").toLowerCase():"#document"}function c(t){return t instanceof s(t).HTMLElement}function u(t){return t instanceof s(t).Element}function d(t){return"undefined"!=typeof ShadowRoot&&(t instanceof s(t).ShadowRoot||t instanceof ShadowRoot)}function h(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=r(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function f(t){return["table","td","th"].includes(a(t))}function g(t){const e=p(),n=r(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(t){return["html","body","#document"].includes(a(t))}const b=Math.min,v=Math.max,y=Math.round,x=Math.floor,w=t=>({x:t,y:t});function O(t){const e=r(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=c(t),s=o?t.offsetWidth:n,l=o?t.offsetHeight:i,a=y(n)!==s||y(i)!==l;return a&&(n=s,i=l),{width:n,height:i,$:a}}function S(t){return u(t)?t:t.contextElement}function _(t){const e=S(t);if(!c(e))return w(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:s}=O(e);let r=(s?y(n.width):n.width)/i,l=(s?y(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const C=w(0);function B(t,e,n){var i,o;if(void 0===e&&(e=!0),!p())return C;const r=t?s(t):window;return!n||e&&n!==r?C:{x:(null==(i=r.visualViewport)?void 0:i.offsetLeft)||0,y:(null==(o=r.visualViewport)?void 0:o.offsetTop)||0}}function k(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),l=S(t);let a=w(1);e&&(o?u(o)&&(a=_(o)):a=_(t));const c=B(l,n,o);let d=(r.left+c.x)/a.x,h=(r.top+c.y)/a.y,f=r.width/a.x,g=r.height/a.y;if(l){const t=s(l),e=o&&u(o)?s(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=_(n),e=n.getBoundingClientRect(),i=getComputedStyle(n),o=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,r=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;d*=t.x,h*=t.y,f*=t.x,g*=t.y,d+=o,h+=r,n=s(n).frameElement}}return Object(i.r)({width:f,height:g,x:d,y:h})}function I(t){return((l(t)?t.ownerDocument:t.document)||window.document).documentElement}function T(t){return u(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L(t){return k(I(t)).left+T(t).scrollLeft}function E(t){if("html"===a(t))return t;const e=t.assignedSlot||t.parentNode||d(t)&&t.host||I(t);return d(e)?e.host:e}function $(t,e){var n;void 0===e&&(e=[]);const i=function t(e){const n=E(e);return m(n)?e.ownerDocument?e.ownerDocument.body:e.body:c(n)&&h(n)?n:t(n)}(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=s(i);return o?e.concat(r,r.visualViewport||[],h(i)?i:[]):e.concat(i,$(i))}function A(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=s(t),i=I(t),o=n.visualViewport;let r=i.clientWidth,l=i.clientHeight,a=0,c=0;if(o){r=o.width,l=o.height;const t=p();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:l,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=I(t),n=T(t),i=t.ownerDocument.body,o=v(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=v(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+L(t);const a=-n.scrollTop;return"rtl"===r(i).direction&&(l+=v(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:l,y:a}}(I(t));else if(u(e))o=function(t,e){const n=k(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=c(t)?_(t):w(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:i*s.y}}(e,n);else{const n=B(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return Object(i.r)(o)}function j(t,e){const n=E(t);return!(n===e||!u(n)||m(n))&&("fixed"===r(n).position||j(n,e))}function R(t,e){return c(t)&&"fixed"!==r(t).position?e?e(t):t.offsetParent:null}function D(t,e){const n=s(t);if(!c(t))return n;let i=R(t,e);for(;i&&f(i)&&"static"===r(i).position;)i=R(i,e);return i&&("html"===a(i)||"body"===a(i)&&"static"===r(i).position&&!g(i))?n:i||function(t){let e=E(t);for(;c(e)&&!m(e);){if(g(e))return e;e=E(e)}return null}(t)||n}function q(t,e,n){const i=c(e),o=I(e),s="fixed"===n,r=k(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const u=w(0);if(i||!i&&!s)if(("body"!==a(e)||h(o))&&(l=T(e)),c(e)){const t=k(e,!0,s,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else o&&(u.x=L(o));return{x:r.left+l.scrollLeft-u.x,y:r.top+l.scrollTop-u.y,width:r.width,height:r.height}}const F={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=$(t).filter(t=>u(t)&&"body"!==a(t)),o=null;const s="fixed"===r(t).position;let l=s?E(t):t;for(;u(l)&&!m(l);){const e=r(l),n=g(l);n||"fixed"!==e.position||(o=null);(s?!n&&!o:!n&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||h(l)&&!n&&j(t,l))?i=i.filter(t=>t!==l):o=e,l=E(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],l=s[0],c=s.reduce((t,n)=>{const i=A(e,n,o);return t.top=v(i.top,t.top),t.right=b(i.right,t.right),t.bottom=b(i.bottom,t.bottom),t.left=v(i.left,t.left),t},A(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:i}=t;const o=c(n),s=I(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},l=w(1);const u=w(0);if((o||!o&&"fixed"!==i)&&(("body"!==a(n)||h(s))&&(r=T(n)),c(n))){const t=k(n);l=_(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+u.x,y:e.y*l.y-r.scrollTop*l.y+u.y}},isElement:u,getDimensions:function(t){return O(t)},getOffsetParent:D,getDocumentElement:I,getScale:_,async getElementRects(t){let{reference:e,floating:n,strategy:i}=t;const o=this.getOffsetParent||D,s=this.getDimensions;return{reference:q(e,await o(n),i),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===r(t).direction};function M(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=S(t),u=o||s?[...c?$(c):[],...$(e)]:[];u.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});const d=c&&l?function(t,e){let n,i=null;const o=I(t);function s(){clearTimeout(n),i&&i.disconnect(),i=null}return function r(l,a){void 0===l&&(l=!1),void 0===a&&(a=1),s();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(l||e(),!d||!h)return;const f={rootMargin:-x(u)+"px "+-x(o.clientWidth-(c+d))+"px "+-x(o.clientHeight-(u+h))+"px "+-x(c)+"px",threshold:v(0,b(1,a))||1};let g=!0;function p(t){const e=t[0].intersectionRatio;if(e!==a){if(!g)return r();e?r(!1,e):n=setTimeout(()=>{r(!1,1e-7)},100)}g=!1}try{i=new IntersectionObserver(p,{...f,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(p,f)}i.observe(t)}(!0),s}(c,n):null;let h,f=-1,g=null;r&&(g=new ResizeObserver(t=>{let[i]=t;i&&i.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{g&&g.observe(e)})),n()}),c&&!a&&g.observe(c),g.observe(e));let p=a?k(t):null;return a&&function e(){const i=k(t);!p||i.x===p.x&&i.y===p.y&&i.width===p.width&&i.height===p.height||n();p=i,h=requestAnimationFrame(e)}(),n(),()=>{u.forEach(t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(h)}}const H=(t,e,n)=>{const i=new Map,s={platform:F,...n},r={...s.platform,_c:i};return Object(o.b)(t,e,{...s,platform:r})}},"Xz+w":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return x})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return w})),n.d(e,"k",(function(){return O})),n.d(e,"l",(function(){return S})),n.d(e,"m",(function(){return h})),n.d(e,"n",(function(){return m})),n.d(e,"o",(function(){return l})),n.d(e,"p",(function(){return r})),n.d(e,"q",(function(){return s})),n.d(e,"r",(function(){return _})),n.d(e,"s",(function(){return i}));const i=["top","right","bottom","left"],o=["start","end"],s=i.reduce((t,e)=>t.concat(e,e+"-"+o[0],e+"-"+o[1]),[]),r=Math.min,l=Math.max,a=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),c={start:"end",end:"start"};function u(t,e,n){return l(t,r(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function h(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function p(t){return"y"===t?"height":"width"}function m(t){return["top","bottom"].includes(h(t))?"y":"x"}function b(t){return g(m(t))}function v(t,e,n){void 0===n&&(n=!1);const i=f(t),o=b(t),s=p(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=O(r)),[r,O(r)]}function y(t){const e=O(t);return[x(t),e,x(e)]}function x(t){return t.replace(/start|end/g,t=>c[t])}function w(t,e,n,i){const o=f(t);let s=function(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:r;default:return[]}}(h(t),"start"===n,i);return o&&(s=s.map(t=>t+"-"+o),e&&(s=s.concat(s.map(x)))),s}function O(t){return t.replace(/left|right|bottom|top/g,t=>a[t])}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function _(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}},crTv:function(t,e,n){"use strict";var i=n("3CjL"),o=n.n(i),s=n("o4PY"),r=n.n(s),l=n("59DU"),a=n.n(l),c=n("Qog8"),u=n("V5u/"),d=n("XBTk"),h=n("4lAS"),f=n("FkSe"),g=n("ehHk"),p=n("iN9h"),m=n("qaCH"),b=n("EldY"),v=n("s1D3"),y=n("Pyw5"),x=n.n(y);const w={name:"GlListboxItem",components:{GlIcon:v.a},props:{isSelected:{type:Boolean,default:!1,required:!1},isFocused:{type:Boolean,default:!1,required:!1},isCheckCentered:{type:Boolean,required:!1,default:!1}},computed:{checkedClasses(){return this.isCheckCentered?"":"gl-mt-3 gl-self-start"}},methods:{toggleSelection(){this.$emit("select",!this.isSelected)},onKeydown(t){const{code:e}=t;e!==u.d&&e!==u.m||(Object(c.k)(t),this.toggleSelection())}}};var O=x()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"gl-new-dropdown-item",attrs:{role:"option",tabindex:t.isFocused?0:-1,"aria-selected":t.isSelected},on:{click:t.toggleSelection,keydown:t.onKeydown}},[n("span",{staticClass:"gl-new-dropdown-item-content"},[n("gl-icon",{class:["gl-new-dropdown-item-check-icon",{"gl-invisible":!t.isSelected},t.checkedClasses],attrs:{name:"mobile-issue-close","data-testid":"dropdown-item-checkbox"}}),t._v(" "),n("span",{staticClass:"gl-new-dropdown-item-text-wrapper"},[t._t("default")],2)],1)])},staticRenderFns:[]},void 0,w,void 0,!1,void 0,!1,void 0,void 0,void 0);const S={name:"GlListboxSearchInput",components:{GlClearIconButton:n("3A1J").a,GlIcon:v.a},model:{prop:"value",event:"input"},props:{value:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:"Search"}},computed:{hasValue(){return Boolean(this.value.length)},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t.target.value)}}}},methods:{clearInput(){this.$emit("input",""),this.focusInput()},focusInput(){this.$refs.input.focus()}}};var _=x()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gl-listbox-search"},[n("gl-icon",{staticClass:"gl-listbox-search-icon",attrs:{name:"search-sm",size:12}}),t._v(" "),n("input",t._g({ref:"input",staticClass:"gl-listbox-search-input",attrs:{type:"search","aria-label":t.placeholder,placeholder:t.placeholder},domProps:{value:t.value}},t.inputListeners)),t._v(" "),t.hasValue?n("gl-clear-icon-button",{staticClass:"gl-listbox-search-clear-button",on:{click:function(e){return e.stopPropagation(),t.clearInput.apply(null,arguments)}}}):t._e()],1)},staticRenderFns:[]},void 0,S,void 0,!1,void 0,!1,void 0,void 0,void 0);const C={name:"GlListboxGroup",props:{name:{type:String,required:!0},textSrOnly:{type:Boolean,required:!1,default:!1}},created(){this.nameId=r()("gl-listbox-group-")}};var B=x()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"gl-mb-0 gl-pl-0",attrs:{role:"group","aria-labelledby":t.nameId}},[n("li",{staticClass:"gl-pb-2 gl-pl-4 gl-pt-3 gl-text-sm gl-font-bold",class:{"gl-sr-only":t.textSrOnly},attrs:{id:t.nameId,role:"presentation"}},[t._t("group-label",(function(){return[t._v(t._s(t.name))]}))],2),t._v(" "),t._t("default")],2)},staticRenderFns:[]},void 0,C,void 0,!1,void 0,!1,void 0,void 0,void 0),k=n("3fen");const I=["gl-border-t","gl-border-t-gray-200","gl-pt-1","gl-mt-2"];const T={name:"GlCollapsibleListbox",HEADER_ITEMS_BORDER_CLASSES:["gl-border-b-1","gl-border-b-solid","gl-border-b-gray-200"],events:{GL_DROPDOWN_SHOWN:u.i,GL_DROPDOWN_HIDDEN:u.h},components:{GlBaseDropdown:m.b,GlListboxItem:O,GlListboxGroup:B,GlButton:h.a,GlSearchBoxByType:p.a,GlListboxSearchInput:_,GlLoadingIcon:f.a,GlIntersectionObserver:g.a},model:{prop:"selected",event:"select"},props:{items:{type:Array,required:!1,default:()=>[],validator:k.c},selected:{type:[Array,String,Number],required:!1,default:()=>[]},multiple:{type:Boolean,required:!1,default:!1},toggleText:{type:String,required:!1,default:""},textSrOnly:{type:Boolean,required:!1,default:!1},headerText:{type:String,required:!1,default:""},category:{type:String,required:!1,default:d.m.primary,validator:t=>t in d.m},variant:{type:String,required:!1,default:d.w.default,validator:t=>t in d.w},size:{type:String,required:!1,default:"medium",validator:t=>t in d.n},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},placement:{type:String,required:!1,default:"bottom-start",validator:t=>Object.keys(d.v).includes(t)},isCheckCentered:{type:Boolean,required:!1,default:!1},toggleAriaLabelledBy:{type:String,required:!1,default:null},listAriaLabelledBy:{type:String,required:!1,default:null},searchable:{type:Boolean,required:!1,default:!1},searching:{type:Boolean,required:!1,default:!1},infiniteScroll:{type:Boolean,required:!1,default:!1},totalItems:{type:Number,required:!1,default:null},infiniteScrollLoading:{type:Boolean,required:!1,default:!1},noResultsText:{type:String,required:!1,default:"No results found"},searchPlaceholder:{type:String,required:!1,default:"Search"},resetButtonLabel:{type:String,required:!1,default:""},showSelectAllButtonLabel:{type:String,required:!1,default:""},block:{type:Boolean,required:!1,default:!1},dropdownOffset:{type:[Number,Object],required:!1,default:void 0},fluidWidth:{type:Boolean,required:!1,default:!1},positioningStrategy:{type:String,required:!1,default:u.k,validator:t=>[u.k,u.l].includes(t)},startOpened:{type:Boolean,required:!1,default:!1},srOnlyResultsLabel:{type:Function,required:!1,default:Object(b.c)("GlCollapsibleListbox.srOnlyResultsLabel","%d result","%d results")}},data:()=>({selectedValues:[],toggleId:r()("dropdown-toggle-btn-"),listboxId:r()("listbox-"),nextFocusedItemIndex:null,searchStr:"",topBoundaryVisible:!0,bottomBoundaryVisible:!0}),computed:{listboxTag(){return!this.hasItems||Object(k.b)(this.items[0])?"ul":"div"},listboxClasses(){return{"top-scrim-visible":!this.topBoundaryVisible,"bottom-scrim-visible":!this.bottomBoundaryVisible,[u.f]:!0}},itemTag(){return"ul"===this.listboxTag?"li":"div"},flattenedOptions(){return Object(k.a)(this.items)},hasItems(){return this.items.length>0},listboxToggleText(){var t;return this.toggleText?this.toggleText:!this.multiple&&this.selectedValues.length?null===(t=this.flattenedOptions.find(t=>{let{value:e}=t;return e===this.selectedValues[0]}))||void 0===t?void 0:t.text:""},selectedIndices(){return this.selectedValues.map(t=>this.flattenedOptions.findIndex(e=>{let{value:n}=e;return n===t})).sort()},showList(){return this.flattenedOptions.length&&!this.searching},showNoResultsText(){return!this.flattenedOptions.length&&!this.searching},announceSRSearchResults(){return this.searchable&&!this.showNoResultsText},headerId(){return this.headerText&&r()("listbox-header-")},showResetButton(){return!!this.resetButtonLabel&&(!!this.hasItems&&(!(!this.selected||0===this.selected.length)&&!this.showSelectAllButton))},showSelectAllButton(){return!!this.showSelectAllButtonLabel&&(!!this.multiple&&(!!this.hasItems&&this.selected.length!==this.flattenedOptions.length))},showIntersectionObserver(){return this.infiniteScroll&&!this.infiniteScrollLoading&&!this.loading&&!this.searching},hasCustomToggle(){return Boolean(this.$scopedSlots.toggle)},hasSelection(){return Boolean(this.selectedValues.length)},toggleButtonClasses(){const t=[this.toggleClass];return this.hasSelection||t.push("!gl-text-gray-500"),t},hasHeader(){return this.headerText||this.searchable},hasFooter(){return Boolean(this.$scopedSlots.footer)}},watch:{selected:{immediate:!0,handler(t){Array.isArray(t)?this.selectedValues=[...t]:this.selectedValues=a()(t)?[]:[t]}},items:{handler(){this.$nextTick(()=>{this.observeScroll()})}}},mounted(){this.startOpened&&this.open(),this.observeScroll()},beforeDestroy(){var t;null===(t=this.scrollObserver)||void 0===t||t.disconnect()},methods:{open(){this.$refs.baseDropdown.open()},close(){this.$refs.baseDropdown.close()},groupClasses:t=>0===t?null:I,onShow(){var t;this.searchable?this.focusSearchInput():this.focusItem(null!==(t=this.selectedIndices[0])&&void 0!==t?t:0,this.getFocusableListItemElements());this.$emit(u.i)},onHide(){this.$emit(u.h),this.nextFocusedItemIndex=null},onKeydown(t){const{code:e,target:n}=t,i=this.getFocusableListItemElements();if(i.length<1)return;let o=!0;const s=n.matches(".gl-listbox-search-input");if(e===u.j){if(s)return;this.focusItem(0,i)}else if(e===u.c){if(s)return;this.focusItem(i.length-1,i)}else if(e===u.b){if(s)return;this.searchable&&0===i.indexOf(n)?this.focusSearchInput():this.focusNextItem(t,i,-1)}else e===u.a?s?this.focusItem(0,i):this.focusNextItem(t,i,1):o=!1;o&&Object(c.k)(t)},getFocusableListItemElements(){var t;const e=null===(t=this.$refs.list)||void 0===t?void 0:t.querySelectorAll('[role="option"]');return Array.from(e||[])},focusNextItem(t,e,n){const{target:i}=t,s=e.indexOf(i),r=o()(s+n,0,e.length-1);this.focusItem(r,e)},focusItem(t,e){var n;this.nextFocusedItemIndex=t,null===(n=e[t])||void 0===n||n.focus()},focusSearchInput(){this.$refs.searchBox.focusInput()},onSelect(t,e){this.multiple?this.onMultiSelect(t.value,e):this.onSingleSelect(t.value,e)},isSelected(t){return this.selectedValues.some(e=>e===t.value)},isFocused(t){return this.nextFocusedItemIndex===this.flattenedOptions.indexOf(t)},onSingleSelect(t,e){e&&this.$emit("select",t),this.closeAndFocus()},onMultiSelect(t,e){e?this.$emit("select",[...this.selectedValues,t]):this.$emit("select",this.selectedValues.filter(e=>e!==t))},search(t){this.$emit("search",t)},onResetButtonClicked(){this.$emit("reset")},onSelectAllButtonClicked(){this.$emit("select-all")},closeAndFocus(){this.$refs.baseDropdown.closeAndFocus()},onIntersectionObserverAppear(){this.$emit("bottom-reached")},listboxItemMoreItemsAriaAttributes(t){return null===this.totalItems?{}:{"aria-setsize":this.totalItems,"aria-posinset":t+1}},observeScroll(){var t;const e={rootMargin:"8px",root:this.$refs.list,threshold:1};null===(t=this.scrollObserver)||void 0===t||t.disconnect();const n=new IntersectionObserver(t=>{t.forEach(t=>{var e;this[null===(e=t.target)||void 0===e?void 0:e.$__visibilityProp]=t.isIntersecting})},e),i=this.$refs["top-boundary"],o=this.$refs["bottom-boundary"];i&&(i.$__visibilityProp="topBoundaryVisible",n.observe(i)),o&&(o.$__visibilityProp="bottomBoundaryVisible",n.observe(o)),this.scrollObserver=n},isOption:k.b}};const L=x()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("gl-base-dropdown",{ref:"baseDropdown",attrs:{"aria-haspopup":"listbox","aria-labelledby":t.toggleAriaLabelledBy,block:t.block,"toggle-id":t.toggleId,"toggle-text":t.listboxToggleText,"toggle-class":t.toggleButtonClasses,"text-sr-only":t.textSrOnly,category:t.category,variant:t.variant,size:t.size,icon:t.icon,disabled:t.disabled,loading:t.loading,"no-caret":t.noCaret,placement:t.placement,offset:t.dropdownOffset,"fluid-width":t.fluidWidth,"positioning-strategy":t.positioningStrategy},on:t._d({},[t.$options.events.GL_DROPDOWN_SHOWN,t.onShow,t.$options.events.GL_DROPDOWN_HIDDEN,t.onHide]),scopedSlots:t._u([t.hasCustomToggle?{key:"toggle",fn:function(){return[t._t("toggle")]},proxy:!0}:null],null,!0)},[t._v(" "),t.headerText?n("div",{staticClass:"gl-flex gl-min-h-8 gl-items-center !gl-p-4",class:t.$options.HEADER_ITEMS_BORDER_CLASSES},[n("div",{staticClass:"gl-grow gl-pr-2 gl-text-sm gl-font-bold",attrs:{id:t.headerId,"data-testid":"listbox-header-text"}},[t._v("\n      "+t._s(t.headerText)+"\n    ")]),t._v(" "),t.showResetButton?n("gl-button",{staticClass:"!gl-m-0 !gl-w-auto gl-max-w-1/2 gl-shrink-0 gl-text-ellipsis !gl-px-2 !gl-py-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400",attrs:{category:"tertiary","data-testid":"listbox-reset-button"},on:{click:t.onResetButtonClicked}},[t._v("\n      "+t._s(t.resetButtonLabel)+"\n    ")]):t._e(),t._v(" "),t.showSelectAllButton?n("gl-button",{staticClass:"!gl-m-0 !gl-w-auto gl-max-w-1/2 gl-shrink-0 gl-text-ellipsis !gl-px-2 !gl-py-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400",attrs:{category:"tertiary","data-testid":"listbox-select-all-button"},on:{click:t.onSelectAllButtonClicked}},[t._v("\n      "+t._s(t.showSelectAllButtonLabel)+"\n    ")]):t._e()],1):t._e(),t._v(" "),t.searchable?n("div",{class:t.$options.HEADER_ITEMS_BORDER_CLASSES},[n("gl-listbox-search-input",{ref:"searchBox",class:{"gl-listbox-topmost":!t.headerText},attrs:{"data-testid":"listbox-search-input",placeholder:t.searchPlaceholder},on:{input:t.search,keydown:[function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},t.onKeydown]},model:{value:t.searchStr,callback:function(e){t.searchStr=e},expression:"searchStr"}}),t._v(" "),t.searching?n("gl-loading-icon",{staticClass:"gl-my-3",attrs:{"data-testid":"listbox-search-loader",size:"md"}}):t._e()],1):t._e(),t._v(" "),t.showList?n(t.listboxTag,{ref:"list",tag:"component",staticClass:"gl-new-dropdown-contents gl-new-dropdown-contents-with-scrim-overlay",class:t.listboxClasses,attrs:{id:t.listboxId,"aria-labelledby":t.listAriaLabelledBy||t.headerId||t.toggleId,role:"listbox",tabindex:"0"},on:{keydown:t.onKeydown}},[n(t.itemTag,{tag:"component",staticClass:"top-scrim-wrapper",attrs:{"aria-hidden":"true","data-testid":"top-scrim"}},[n("div",{staticClass:"top-scrim",class:{"top-scrim-light":!t.hasHeader,"top-scrim-dark":t.hasHeader}})]),t._v(" "),n(t.itemTag,{ref:"top-boundary",tag:"component",attrs:{"aria-hidden":"true"}}),t._v(" "),t._l(t.items,(function(e,i){return[t.isOption(e)?[n("gl-listbox-item",t._b({key:e.value,attrs:{"data-testid":"listbox-item-"+e.value,"is-selected":t.isSelected(e),"is-focused":t.isFocused(e),"is-check-centered":t.isCheckCentered},on:{select:function(n){return t.onSelect(e,n)}}},"gl-listbox-item",t.listboxItemMoreItemsAriaAttributes(i),!1),[t._t("list-item",(function(){return[t._v("\n            "+t._s(e.text)+"\n          ")]}),{item:e})],2)]:[n("gl-listbox-group",{key:e.text,class:t.groupClasses(i),attrs:{name:e.text,"text-sr-only":e.textSrOnly},scopedSlots:t._u([t.$scopedSlots["group-label"]?{key:"group-label",fn:function(){return[t._t("group-label",null,{group:e})]},proxy:!0}:null],null,!0)},[t._v(" "),t._l(e.options,(function(e){return n("gl-listbox-item",{key:e.value,attrs:{"data-testid":"listbox-item-"+e.value,"is-selected":t.isSelected(e),"is-focused":t.isFocused(e),"is-check-centered":t.isCheckCentered},on:{select:function(n){return t.onSelect(e,n)}}},[t._t("list-item",(function(){return[t._v("\n              "+t._s(e.text)+"\n            ")]}),{item:e})],2)}))],2)]]})),t._v(" "),t.infiniteScrollLoading?n(t.itemTag,{tag:"component"},[n("gl-loading-icon",{staticClass:"gl-my-3",attrs:{"data-testid":"listbox-infinite-scroll-loader",size:"md"}})],1):t._e(),t._v(" "),t.showIntersectionObserver?n("gl-intersection-observer",{on:{appear:t.onIntersectionObserverAppear}}):t._e(),t._v(" "),n(t.itemTag,{ref:"bottom-boundary",tag:"component",attrs:{"aria-hidden":"true"}}),t._v(" "),n(t.itemTag,{tag:"component",staticClass:"bottom-scrim-wrapper",attrs:{"aria-hidden":"true","data-testid":"bottom-scrim"}},[n("div",{staticClass:"bottom-scrim",class:{"!gl-rounded-none":t.hasFooter}})])],2):t._e(),t._v(" "),t.announceSRSearchResults?n("span",{staticClass:"gl-sr-only",attrs:{"data-testid":"listbox-number-of-results","aria-live":"assertive"}},[t._t("search-summary-sr-only",(function(){return[t._v("\n      "+t._s(t.srOnlyResultsLabel(t.flattenedOptions.length))+"\n    ")]}))],2):t.showNoResultsText?n("div",{staticClass:"gl-py-3 gl-pl-7 gl-pr-5 gl-text-base gl-text-gray-600",attrs:{"aria-live":"assertive","data-testid":"listbox-no-results-text"}},[t._v("\n    "+t._s(t.noResultsText)+"\n  ")]):t._e(),t._v(" "),t._t("footer")],2)},staticRenderFns:[]},void 0,T,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=L},ehHk:function(t,e,n){"use strict";var i=n("htNe"),o=n.n(i),s=n("Pyw5"),r=n.n(s);const l=o()(t=>new IntersectionObserver(t=>{t.forEach(t=>{t.target.$_gl_intersectionHandler(t)})},t||{}));const a={name:"GlIntersectionObserver",props:{options:{type:Object,required:!1,default:null}},mounted(){const t=l(this.options);this.$el.$_gl_intersectionHandler=t=>{this.$emit("update",t),t.isIntersecting?this.$emit("appear"):this.$emit("disappear")},this.$el.$_gl_intersectionObserver=t,t.observe(this.$el)},destroyed(){this.$el.$_gl_intersectionObserver.unobserve(this.$el),delete this.$el.$_gl_intersectionHandler,delete this.$el.$_gl_intersectionObserver},getObserver:l};const c=r()({render:function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,a,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=c},iN9h:function(t,e,n){"use strict";var i=n("3A1J"),o=n("PrLL"),s=n("s1D3"),r=n("FkSe"),l=n("EldY"),a=n("Pyw5"),c=n.n(a);const u={name:"GlSearchboxByType",components:{GlClearIconButton:i.a,GlIcon:s.a,GlFormInput:o.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:()=>Object(l.b)("GlSearchBoxByType.clearButtonTitle","Clear")},disabled:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},tooltipContainer:{required:!1,default:!1,validator:t=>!1===t||"string"==typeof t||t instanceof HTMLElement}},computed:{inputAttributes(){const t={type:"search",placeholder:Object(l.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,n;return t===(null===(e=this.$refs.input)||void 0===e?void 0:e.$el)||t===(null===(n=this.$refs.clearButton)||void 0===n?void 0:n.$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)}}};const d=c()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gl-search-box-by-type"},[n("gl-icon",{staticClass:"gl-search-box-by-type-search-icon",attrs:{name:"search"}}),t._v(" "),n("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?n("div",{staticClass:"gl-search-box-by-type-right-icons"},[t.isLoading?n("gl-loading-icon",{staticClass:"gl-search-box-by-type-loading-icon"}):t._e(),t._v(" "),t.showClearButton?n("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)},staticRenderFns:[]},void 0,u,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=d},qaCH:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("o4PY"),o=n.n(i),s=n("tlyx"),r=n("WrwP"),l=n("XBTk"),a=n("V5u/"),c=n("Qog8"),u=n("KnFb"),d=n("4lAS"),h=n("s1D3");var f=n("Pyw5"),g=n.n(f);const p="gl-new-dropdown";const m={name:"BaseDropdown",BASE_DROPDOWN_CLASS:p,components:{GlButton:d.a,GlIcon:h.a},directives:{Outside:u.a},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:l.m.primary,validator:t=>Object.keys(l.m).includes(t)},variant:{type:String,required:!1,default:l.w.default,validator:t=>Object.keys(l.w).includes(t)},size:{type:String,required:!1,default:"medium",validator:t=>Object.keys(l.n).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},placement:{type:String,required:!1,default:"bottom-start",validator:t=>(["left","center","right"].includes(t)&&Object(c.i)(`GlDisclosureDropdown/GlCollapsibleListbox: "${t}" placement is deprecated.\n            Use ${l.v[t]} instead.`),Object.keys(l.v).includes(t))},ariaHaspopup:{type:[String,Boolean],required:!1,default:!1,validator:t=>["menu","listbox","tree","grid","dialog",!0,!1].includes(t)},toggleId:{type:String,required:!0},ariaLabelledby:{type:String,required:!1,default:null},offset:{type:[Number,Object],required:!1,default:()=>({mainAxis:4})},fluidWidth:{type:Boolean,required:!1,default:!1},positioningStrategy:{type:String,required:!1,default:a.k,validator:t=>[a.k,a.l].includes(t)}},data:()=>({openedYet:!1,visible:!1,baseDropdownId:o()("base-dropdown-")}),computed:{hasNoVisibleToggleText(){var t;return!(null!==(t=this.toggleText)&&void 0!==t&&t.length)||this.textSrOnly},isIconOnly(){return Boolean(this.icon&&this.hasNoVisibleToggleText)},isCaretOnly(){return!this.noCaret&&!this.icon&&this.hasNoVisibleToggleText},ariaAttributes(){return{"aria-haspopup":this.ariaHaspopup,"aria-expanded":String(this.visible),"aria-controls":this.baseDropdownId,"aria-labelledby":this.toggleLabelledBy}},toggleButtonClasses(){return[this.toggleClass,{"gl-new-dropdown-toggle":!0,"gl-new-dropdown-icon-only btn-icon":this.isIconOnly,"gl-new-dropdown-toggle-no-caret":this.noCaret,"gl-new-dropdown-caret-only":this.isCaretOnly}]},toggleButtonTextClasses(){return this.block?"gl-w-full":""},toggleLabelledBy(){return this.ariaLabelledby?`${this.ariaLabelledby} ${this.toggleId}`:this.toggleId},isDefaultToggle(){return!this.$scopedSlots.toggle},toggleOptions(){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,...this.ariaAttributes,listeners:{keydown:t=>this.onKeydown(t),click:t=>this.toggle(t)}}:{is:"div",class:"gl-new-dropdown-custom-toggle",listeners:{keydown:t=>this.onKeydown(t),click:t=>this.toggle(t)}}},toggleListeners(){return this.toggleOptions.listeners},toggleAttributes(){const{listeners:t,is:e,...n}=this.toggleOptions;return n},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,"!gl-w-31":!this.fluidWidth,"gl-fixed":this.openedYet&&this.isFixed,"gl-absolute":this.openedYet&&!this.isFixed}},isFixed(){return this.positioningStrategy===a.l},floatingUIConfig(){const t=l.v[this.placement],[,e]=t.split("-");return{placement:t,strategy:this.positioningStrategy,middleware:[Object(s.d)(this.offset),Object(s.a)({alignment:e,allowedPlacements:l.u[this.placement]}),Object(s.e)(),Object(s.f)({apply:t=>{var e;let{availableHeight:n,elements:i}=t;const o=i.floating.querySelector("."+a.f);if(!o)return;const s=n-(null!==(e=this.nonScrollableContentHeight)&&void 0!==e?e:0)-4;Object.assign(o.style,{maxHeight:Math.max(s,0)+"px"})}})]}}},watch:{ariaAttributes:{deep:!0,handler(t){this.$scopedSlots.toggle&&Object.keys(t).forEach(e=>{this.toggleElement.setAttribute(e,t[e])})}}},mounted(){this.checkToggleFocusable()},beforeDestroy(){this.stopFloating()},methods:{checkToggleFocusable(){Object(c.g)(this.toggleElement)||Object(c.h)(this.toggleElement)||Object(c.i)("GlDisclosureDropdown/GlCollapsibleListbox: 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.",this.$el)},async startFloating(){this.calculateNonScrollableAreaHeight(),this.observer=new MutationObserver(this.calculateNonScrollableAreaHeight),this.observer.observe(this.$refs.content,{attributes:!1,childList:!0,subtree:!0}),this.stopAutoUpdate=Object(r.a)(this.toggleElement,this.$refs.content,async()=>{const{x:t,y:e}=await Object(r.b)(this.toggleElement,this.$refs.content,this.floatingUIConfig);this.$refs.content&&Object.assign(this.$refs.content.style,{left:t+"px",top:e+"px"})})},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)),!0},open(){this.visible||this.toggle()},close(t){this.visible&&this.toggle(t)},async closeAndFocus(t){if(!this.visible)return;const e=this.$el.contains(document.activeElement),n=await this.toggle(t);e&&n&&this.focusToggle()},focusToggle(){this.toggleElement.focus()},onKeydown(t){const{code:e,target:{tagName:n}}=t;let i=!0,o=!0;"BUTTON"===n?(i=!1,o=!1):"A"===n&&(i=!1),(e===a.d&&i||e===a.m&&o)&&this.toggle(t),e===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 n=this.$refs.content.getBoundingClientRect(),i=e.getBoundingClientRect();this.nonScrollableContentHeight=n.height-i.height}}};const b=g()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"outside",rawName:"v-outside.click.focusin",value:t.close,expression:"close",modifiers:{click:!0,focusin:!0}}],class:[t.$options.BASE_DROPDOWN_CLASS,{"!gl-block":t.block}]},[n(t.toggleComponent,t._g(t._b({ref:"toggle",tag:"component",attrs:{id:t.toggleId,"data-testid":"base-dropdown-toggle"},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.close.apply(null,arguments))}}},"component",t.toggleAttributes,!1),t.toggleListeners),[t._t("toggle",(function(){return[n("span",{staticClass:"gl-new-dropdown-button-text",class:{"gl-sr-only":t.textSrOnly}},[t._v("\n        "+t._s(t.toggleText)+"\n      ")]),t._v(" "),t.noCaret?t._e():n("gl-icon",{staticClass:"gl-button-icon gl-new-dropdown-chevron",attrs:{name:"chevron-down"}})]}))],2),t._v(" "),n("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))}}},[n("div",{staticClass:"gl-new-dropdown-inner"},[t._t("default")],2)])],1)},staticRenderFns:[]},void 0,m,void 0,!1,void 0,!1,void 0,void 0,void 0);e.b=b},tlyx:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return d}));var i=n("Xz+w");function o(t,e,n){let{reference:o,floating:s}=t;const r=Object(i.n)(e),l=Object(i.d)(e),a=Object(i.f)(l),c=Object(i.m)(e),u="y"===r,d=o.x+o.width/2-s.width/2,h=o.y+o.height/2-s.height/2,f=o[a]/2-s[a]/2;let g;switch(c){case"top":g={x:d,y:o.y-s.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-s.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Object(i.c)(e)){case"start":g[l]-=f*(n&&u?-1:1);break;case"end":g[l]+=f*(n&&u?-1:1)}return g}const s=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:l}=n,a=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:h}=o(u,i,c),f=i,g={},p=0;for(let n=0;n<a.length;n++){const{name:r,fn:m}=a[n],{x:b,y:v,data:y,reset:x}=await m({x:d,y:h,initialPlacement:i,placement:f,strategy:s,middlewareData:g,rects:u,platform:l,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=v?v:h,g={...g,[r]:{...g[r],...y}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:s}):x.rects),({x:d,y:h}=o(u,f,c))),n=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:g}};async function r(t,e){var n;void 0===e&&(e={});const{x:o,y:s,platform:r,rects:l,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=Object(i.b)(e,t),p=Object(i.l)(g),m=a[f?"floating"===h?"reference":"floating":h],b=Object(i.r)(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),v="floating"===h?{...l.floating,x:o,y:s}:l.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),x=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=Object(i.r)(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:c}):v);return{top:(b.top-w.top+p.top)/x.y,bottom:(w.bottom-b.bottom+p.bottom)/x.y,left:(b.left-w.left+p.left)/x.x,right:(w.right-b.right+p.right)/x.x}}const l=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,s;const{rects:l,middlewareData:a,placement:c,platform:u,elements:d}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:g=i.q,autoAlignment:p=!0,...m}=Object(i.b)(t,e),b=void 0!==f||g===i.q?function(t,e,n){return(t?[...n.filter(e=>Object(i.c)(e)===t),...n.filter(e=>Object(i.c)(e)!==t)]:n.filter(t=>Object(i.m)(t)===t)).filter(n=>!t||(Object(i.c)(n)===t||!!e&&Object(i.h)(n)!==n))}(f||null,p,g):g,v=await r(e,m),y=(null==(n=a.autoPlacement)?void 0:n.index)||0,x=b[y];if(null==x)return{};const w=Object(i.e)(x,l,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==x)return{reset:{placement:b[0]}};const O=[v[Object(i.m)(x)],v[w[0]],v[w[1]]],S=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:x,overflows:O}],_=b[y+1];if(_)return{data:{index:y+1,overflows:S},reset:{placement:_}};const C=S.map(t=>{const e=Object(i.c)(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),B=(null==(s=C.filter(t=>t[2].slice(0,Object(i.c)(t[0])?2:3).every(t=>t<=0))[0])?void 0:s[0])||C[0][0];return B!==c?{data:{index:y+1,overflows:S},reset:{placement:B}}:{}}}},a=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:s,middlewareData:l,rects:a,initialPlacement:c,platform:u,elements:d}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...v}=Object(i.b)(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const y=Object(i.m)(s),x=Object(i.m)(c)===c,w=await(null==u.isRTL?void 0:u.isRTL(d.floating)),O=g||(x||!b?[Object(i.k)(c)]:Object(i.g)(c));g||"none"===m||O.push(...Object(i.j)(c,b,m,w));const S=[c,...O],_=await r(e,v),C=[];let B=(null==(o=l.flip)?void 0:o.overflows)||[];if(h&&C.push(_[y]),f){const t=Object(i.e)(s,a,w);C.push(_[t[0]],_[t[1]])}if(B=[...B,{placement:s,overflows:C}],!C.every(t=>t<=0)){var k,I;const t=((null==(k=l.flip)?void 0:k.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(I=B.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var T;const t=null==(T=B.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}};const c=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:s,y:r,placement:l,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:s}=t,r=await(null==o.isRTL?void 0:o.isRTL(s.floating)),l=Object(i.m)(n),a=Object(i.c)(n),c="y"===Object(i.n)(n),u=["left","top"].includes(l)?-1:1,d=r&&c?-1:1,h=Object(i.b)(e,t);let{mainAxis:f,crossAxis:g,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof p&&(g="end"===a?-1*p:p),c?{x:g*d,y:f*u}:{x:f*u,y:g*d}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:s+c.x,y:r+c.y,data:{...c,placement:l}}}}},u=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:s}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=Object(i.b)(t,e),d={x:n,y:o},h=await r(e,u),f=Object(i.n)(Object(i.m)(s)),g=Object(i.i)(f);let p=d[g],m=d[f];if(l){const t="y"===g?"bottom":"right",e=p+h["y"===g?"top":"left"],n=p-h[t];p=Object(i.a)(e,p,n)}if(a){const t="y"===f?"bottom":"right",e=m+h["y"===f?"top":"left"],n=m-h[t];m=Object(i.a)(e,m,n)}const b=c.fn({...e,[g]:p,[f]:m});return{...b,data:{x:b.x-n,y:b.y-o}}}}},d=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:s,elements:l}=e,{apply:a=(()=>{}),...c}=Object(i.b)(t,e),u=await r(e,c),d=Object(i.m)(n),h=Object(i.c)(n),f="y"===Object(i.n)(n),{width:g,height:p}=o.floating;let m,b;"top"===d||"bottom"===d?(m=d,b=h===(await(null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=d,m="end"===h?"top":"bottom");const v=p-u[m],y=g-u[b],x=!e.middlewareData.shift;let w=v,O=y;if(f){const t=g-u.left-u.right;O=h||x?Object(i.p)(y,t):t}else{const t=p-u.top-u.bottom;w=h||x?Object(i.p)(v,t):t}if(x&&!h){const t=Object(i.o)(u.left,0),e=Object(i.o)(u.right,0),n=Object(i.o)(u.top,0),o=Object(i.o)(u.bottom,0);f?O=g-2*(0!==t||0!==e?t+e:Object(i.o)(u.left,u.right)):w=p-2*(0!==n||0!==o?n+o:Object(i.o)(u.top,u.bottom))}await a({...e,availableWidth:O,availableHeight:w});const S=await s.getDimensions(l.floating);return g!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}}}}]);
//# sourceMappingURL=commons-pages.registrations.new-pages.sessions.new-pages.user_settings.profiles.show.2ecb2c1b.chunk.js.map