(this.webpackJsonp=this.webpackJsonp||[]).push([[166,26,33],{"3A1J":function(t,e,n){"use strict";var o=n("z1xw"),i=n("4lAS"),s=n("EldY"),l=n("Pyw5"),r=n.n(l);const a={name:"ClearIconButton",components:{GlButton:i.a},directives:{GlTooltip:o.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=r()({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 o=n("6+df"),i=n("3ftC");t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==e&&(e=(e=i(e))==e?e:0),o(i(t),e,n)}},"3fen":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return d}));var o=n("6npM"),i=n.n(o),s=n("lx39"),l=n.n(s);const r=t=>Boolean(t)&&(l()(t.value)||i()(t.value)),a=function(){let{options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(t)&&t.every(r)},c=t=>t.length===new Set(t).size,u=t=>t.flatMap(t=>r(t)?t:t.options),d=t=>(t=>t.every(r)||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}},KnFb:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const o=new Map,i=new Set;let s=null;const l=t=>{o.forEach((e,n)=>{let{callback:o,eventTypes:i}=e;const l="click"===t.type&&s||t;if(!n.contains(l.target)&&i.includes(t.type))try{o(t)}catch(t){0}}),"click"===t.type&&(s=null)},r=t=>{s=t};const a={bind:(t,e)=>{const{callback:n,eventTypes:a}=function(t){let{arg:e,value:n,modifiers:o}=t;const i=Object.keys(o);return{callback:n,eventTypes:i.length>0?i:["click"]}}(e);o.has(t)||(o.set(t,{callback:n,eventTypes:a}),(t=>{t.forEach(t=>{i.has(t)||("click"===t&&document.addEventListener("mousedown",r),document.addEventListener(t,l,{capture:!0}),i.add(t))}),s=null})(a))},unbind:t=>{const e=o.get(t);var n;e&&(o.delete(t),(n=e.eventTypes).forEach(t=>{i.has(t)&&[...o.values()].every(e=>{let{eventTypes:n}=e;return!n.includes(t)})&&(document.removeEventListener(t,l),i.delete(t))}),n.includes("click")&&!i.has("click")&&document.removeEventListener("mousedown",r))}}},"V5u/":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),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 l})),n.d(e,"h",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return f}));const o="shown",i="hidden",s="beforeClose",l="focusContent",r="ArrowDown",a="ArrowUp",c="End",u="Enter",d="Home",f="Space",g="absolute",h="fixed",p="gl-new-dropdown-contents"},WrwP:function(t,e,n){"use strict";n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return P}));var o=n("Xz+w"),i=n("tlyx");function s(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function l(t){return s(t).getComputedStyle(t)}function r(t){return t instanceof s(t).Node}function a(t){return r(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 f(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=l(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function g(t){return["table","td","th"].includes(a(t))}function h(t){const e=p(),n=l(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 b(t){return["html","body","#document"].includes(a(t))}const m=Math.min,v=Math.max,y=Math.round,x=Math.floor,w=t=>({x:t,y:t});function O(t){const e=l(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=c(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,a=y(n)!==s||y(o)!==r;return a&&(n=s,o=r),{width:n,height:o,$: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:o,height:i,$:s}=O(e);let l=(s?y(n.width):n.width)/o,r=(s?y(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),r&&Number.isFinite(r)||(r=1),{x:l,y:r}}const C=w(0);function T(t,e,n){var o,i;if(void 0===e&&(e=!0),!p())return C;const l=t?s(t):window;return!n||e&&n!==l?C:{x:(null==(o=l.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=l.visualViewport)?void 0:i.offsetTop)||0}}function B(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const l=t.getBoundingClientRect(),r=S(t);let a=w(1);e&&(i?u(i)&&(a=_(i)):a=_(t));const c=T(r,n,i);let d=(l.left+c.x)/a.x,f=(l.top+c.y)/a.y,g=l.width/a.x,h=l.height/a.y;if(r){const t=s(r),e=i&&u(i)?s(i):i;let n=t.frameElement;for(;n&&i&&e!==t;){const t=_(n),e=n.getBoundingClientRect(),o=getComputedStyle(n),i=e.left+(n.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(n.clientTop+parseFloat(o.paddingTop))*t.y;d*=t.x,f*=t.y,g*=t.x,h*=t.y,d+=i,f+=l,n=s(n).frameElement}}return Object(o.r)({width:g,height:h,x:d,y:f})}function k(t){return((r(t)?t.ownerDocument:t.document)||window.document).documentElement}function L(t){return u(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(t){return B(k(t)).left+L(t).scrollLeft}function E(t){if("html"===a(t))return t;const e=t.assignedSlot||t.parentNode||d(t)&&t.host||k(t);return d(e)?e.host:e}function j(t,e){var n;void 0===e&&(e=[]);const o=function t(e){const n=E(e);return b(n)?e.ownerDocument?e.ownerDocument.body:e.body:c(n)&&f(n)?n:t(n)}(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),l=s(o);return i?e.concat(l,l.visualViewport||[],f(o)?o:[]):e.concat(o,j(o))}function A(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=s(t),o=k(t),i=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,a=0,c=0;if(i){l=i.width,r=i.height;const t=p();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:l,height:r,x:a,y:c}}(t,n);else if("document"===e)i=function(t){const e=k(t),n=L(t),o=t.ownerDocument.body,i=v(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=v(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+I(t);const a=-n.scrollTop;return"rtl"===l(o).direction&&(r+=v(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:a}}(k(t));else if(u(e))i=function(t,e){const n=B(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=c(t)?_(t):w(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:i*s.x,y:o*s.y}}(e,n);else{const n=T(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Object(o.r)(i)}function $(t,e){const n=E(t);return!(n===e||!u(n)||b(n))&&("fixed"===l(n).position||$(n,e))}function R(t,e){return c(t)&&"fixed"!==l(t).position?e?e(t):t.offsetParent:null}function q(t,e){const n=s(t);if(!c(t))return n;let o=R(t,e);for(;o&&g(o)&&"static"===l(o).position;)o=R(o,e);return o&&("html"===a(o)||"body"===a(o)&&"static"===l(o).position&&!h(o))?n:o||function(t){let e=E(t);for(;c(e)&&!b(e);){if(h(e))return e;e=E(e)}return null}(t)||n}function D(t,e,n){const o=c(e),i=k(e),s="fixed"===n,l=B(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const u=w(0);if(o||!o&&!s)if(("body"!==a(e)||f(i))&&(r=L(e)),c(e)){const t=B(e,!0,s,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else i&&(u.x=I(i));return{x:l.left+r.scrollLeft-u.x,y:l.top+r.scrollTop-u.y,width:l.width,height:l.height}}const F={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=j(t).filter(t=>u(t)&&"body"!==a(t)),i=null;const s="fixed"===l(t).position;let r=s?E(t):t;for(;u(r)&&!b(r);){const e=l(r),n=h(r);n||"fixed"!==e.position||(i=null);(s?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||f(r)&&!n&&$(t,r))?o=o.filter(t=>t!==r):i=e,r=E(r)}return e.set(t,o),o}(e,this._c):[].concat(n),o],r=s[0],c=s.reduce((t,n)=>{const o=A(e,n,i);return t.top=v(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=v(o.left,t.left),t},A(e,r,i));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:o}=t;const i=c(n),s=k(n);if(n===s)return e;let l={scrollLeft:0,scrollTop:0},r=w(1);const u=w(0);if((i||!i&&"fixed"!==o)&&(("body"!==a(n)||f(s))&&(l=L(n)),c(n))){const t=B(n);r=_(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-l.scrollLeft*r.x+u.x,y:e.y*r.y-l.scrollTop*r.y+u.y}},isElement:u,getDimensions:function(t){return O(t)},getOffsetParent:q,getDocumentElement:k,getScale:_,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||q,s=this.getDimensions;return{reference:D(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===l(t).direction};function H(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,c=S(t),u=i||s?[...c?j(c):[],...j(e)]:[];u.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});const d=c&&r?function(t,e){let n,o=null;const i=k(t);function s(){clearTimeout(n),o&&o.disconnect(),o=null}return function l(r,a){void 0===r&&(r=!1),void 0===a&&(a=1),s();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(r||e(),!d||!f)return;const g={rootMargin:-x(u)+"px "+-x(i.clientWidth-(c+d))+"px "+-x(i.clientHeight-(u+f))+"px "+-x(c)+"px",threshold:v(0,m(1,a))||1};let h=!0;function p(t){const e=t[0].intersectionRatio;if(e!==a){if(!h)return l();e?l(!1,e):n=setTimeout(()=>{l(!1,1e-7)},100)}h=!1}try{o=new IntersectionObserver(p,{...g,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(p,g)}o.observe(t)}(!0),s}(c,n):null;let f,g=-1,h=null;l&&(h=new ResizeObserver(t=>{let[o]=t;o&&o.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),c&&!a&&h.observe(c),h.observe(e));let p=a?B(t):null;return a&&function e(){const o=B(t);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n();p=o,f=requestAnimationFrame(e)}(),n(),()=>{u.forEach(t=>{i&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),d&&d(),h&&h.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const P=(t,e,n)=>{const o=new Map,s={platform:F,...n},l={...s.platform,_c:o};return Object(i.b)(t,e,{...s,platform:l})}},"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 g})),n.d(e,"d",(function(){return m})),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 h})),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 f})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return r})),n.d(e,"p",(function(){return l})),n.d(e,"q",(function(){return s})),n.d(e,"r",(function(){return _})),n.d(e,"s",(function(){return o}));const o=["top","right","bottom","left"],i=["start","end"],s=o.reduce((t,e)=>t.concat(e,e+"-"+i[0],e+"-"+i[1]),[]),l=Math.min,r=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 r(t,l(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function p(t){return"y"===t?"height":"width"}function b(t){return["top","bottom"].includes(f(t))?"y":"x"}function m(t){return h(b(t))}function v(t,e,n){void 0===n&&(n=!1);const o=g(t),i=m(t),s=p(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(l=O(l)),[l,O(l)]}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,o){const i=g(t);let s=function(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:l;default:return[]}}(f(t),"start"===n,o);return i&&(s=s.map(t=>t+"-"+i),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 o=n("3CjL"),i=n.n(o),s=n("o4PY"),l=n.n(s),r=n("59DU"),a=n.n(r),c=n("Qog8"),u=n("V5u/"),d=n("XBTk"),f=n("4lAS"),g=n("FkSe"),h=n("ehHk"),p=n("iN9h"),b=n("qaCH"),m=n("EldY"),v=n("zjrD"),y=n("3A1J"),x=n("s1D3"),w=n("Pyw5"),O=n.n(w);const S={name:"GlListboxSearchInput",components:{GlClearIconButton:y.a,GlIcon:x.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 _=O()({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=l()("gl-listbox-group-")}};var T=O()({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 gl-text-strong",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),B=n("3fen");const k=["gl-border-t","gl-border-t-dropdown","gl-pt-1","gl-mt-2"];const L={name:"GlCollapsibleListbox",HEADER_ITEMS_BORDER_CLASSES:["gl-border-b-1","gl-border-b-solid","gl-border-b-dropdown"],events:{GL_DROPDOWN_SHOWN:u.i,GL_DROPDOWN_HIDDEN:u.h},components:{GlBaseDropdown:b.b,GlListboxItem:v.a,GlListboxGroup:T,GlButton:f.a,GlSearchBoxByType:p.a,GlListboxSearchInput:_,GlLoadingIcon:g.a,GlIntersectionObserver:h.a},model:{prop:"selected",event:"select"},props:{items:{type:Array,required:!1,default:()=>[],validator:B.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(m.c)("GlCollapsibleListbox.srOnlyResultsLabel","%d result","%d results")}},data:()=>({selectedValues:[],toggleId:l()("dropdown-toggle-btn-"),listboxId:l()("listbox-"),nextFocusedItemIndex:null,searchStr:"",topBoundaryVisible:!0,bottomBoundaryVisible:!0}),computed:{listboxTag(){return!this.hasItems||Object(B.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(B.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&&l()("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-subtle"),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:k,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,o=this.getFocusableListItemElements();if(o.length<1)return;let i=!0;const s=n.matches(".gl-listbox-search-input");if(e===u.j){if(s)return;this.focusItem(0,o)}else if(e===u.c){if(s)return;this.focusItem(o.length-1,o)}else if(e===u.b){if(s)return;this.searchable&&0===o.indexOf(n)?this.focusSearchInput():this.focusNextItem(t,o,-1)}else e===u.a?s?this.focusItem(0,o):this.focusNextItem(t,o,1):i=!1;i&&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:o}=t,s=e.indexOf(o),l=i()(s+n,0,e.length-1);this.focusItem(l,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),o=this.$refs["top-boundary"],i=this.$refs["bottom-boundary"];o&&(o.$__visibilityProp="topBoundaryVisible",n.observe(o)),i&&(i.$__visibilityProp="bottomBoundaryVisible",n.observe(i)),this.scrollObserver=n},isOption:B.b}};const I=O()({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 gl-text-strong",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-flex-shrink-0 gl-text-ellipsis !gl-px-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400",attrs:{category:"tertiary",size:"small","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-flex-shrink-0 gl-text-ellipsis !gl-px-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400",attrs:{category:"tertiary",size:"small","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,o){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(o),!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(o),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-subtle",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,L,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=I},ehHk:function(t,e,n){"use strict";var o=n("htNe"),i=n.n(o),s=n("Pyw5"),l=n.n(s);const r=i()(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=r(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:r};const c=l()({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 o=n("3A1J"),i=n("PrLL"),s=n("s1D3"),l=n("FkSe"),r=n("EldY"),a=n("Pyw5"),c=n.n(a);const u={name:"GlSearchboxByType",components:{GlClearIconButton:o.a,GlIcon:s.a,GlFormInput:i.a,GlLoadingIcon:l.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(r.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(r.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",variant:"subtle"}}),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},lOo6:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));n("byxs"),n("B++/"),n("z6RN"),n("47t/");var o=n("ewH8"),i=n("NmEs"),s=n("crTv"),l=n("MV2A"),r=n("/lV4"),a=n("qLpH");const c=Object(r.__)("Help translate to your language"),u=Object(a.a)("/development/i18n/translation.md");var d={components:{GlCollapsibleListbox:s.a,GlLink:l.a},inject:{locales:{default:[]},preferredLocale:{default:{value:"en",text:"English"}}},data(){return{selected:this.preferredLocale.value}},methods:{onLanguageSelected(t){Object(i.Q)("preferred_language",t),window.location.reload()},itemTestSelector:t=>"language_switcher_lang_"+t},HELP_TRANSLATE_MSG:c,HELP_TRANSLATE_HREF:u},f=n("tBpV"),g=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("gl-collapsible-listbox",{attrs:{"toggle-text":t.preferredLocale.text,items:t.locales,category:"tertiary",placement:"bottom-end",icon:"earth",size:"small","toggle-class":"py-0 gl-h-6"},on:{select:t.onLanguageSelected},scopedSlots:t._u([{key:"list-item",fn:function({item:n}){return[e("span",{attrs:{"data-testid":t.itemTestSelector(n.value)}},[t._v("\n      "+t._s(n.text)+"\n    ")])]}},{key:"footer",fn:function(){return[e("div",{staticClass:"gl-flex gl-justify-center gl-border-t-1 gl-border-t-gray-100 gl-p-3 gl-border-t-solid",attrs:{"data-testid":"footer"}},[e("gl-link",{attrs:{href:t.$options.HELP_TRANSLATE_HREF}},[t._v(t._s(t.$options.HELP_TRANSLATE_MSG))])],1)]},proxy:!0}]),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})}),[],!1,null,null,null).exports;const h=function(){const t=document.querySelector(".js-language-switcher");if(!t)return!1;const e=JSON.parse(t.dataset.locales),n=Object(i.l)("preferred_language"),s=e.find((function(t){return t.value===n})),l={locales:e};return s&&(l.preferredLocale=s),new o.default({el:t,provide:l,render:t=>t(g)})}},qaCH:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n("o4PY"),i=n.n(o),s=n("tlyx"),l=n("WrwP"),r=n("XBTk"),a=n("V5u/"),c=n("Qog8"),u=n("KnFb"),d=n("4lAS"),f=n("s1D3");var g=n("Pyw5"),h=n.n(g);const p="gl-new-dropdown";const b={name:"BaseDropdown",BASE_DROPDOWN_CLASS:p,components:{GlButton:d.a,GlIcon:f.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:r.m.primary,validator:t=>Object.keys(r.m).includes(t)},variant:{type:String,required:!1,default:r.w.default,validator:t=>Object.keys(r.w).includes(t)},size:{type:String,required:!1,default:"medium",validator:t=>Object.keys(r.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 ${r.v[t]} instead.`),Object.keys(r.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:i()("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)},isEllipsisButton(){return this.isIconOnly&&"ellipsis_h"===this.icon},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,"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}]},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=r.v[this.placement],[,e]=t.split("-");return{placement:t,strategy:this.positioningStrategy,middleware:[Object(s.d)(this.offset),Object(s.a)({alignment:e,allowedPlacements:r.u[this.placement]}),Object(s.e)(),Object(s.f)({apply:t=>{var e;let{availableHeight:n,elements:o}=t;const i=o.floating.querySelector("."+a.f);if(!i)return;const s=n-(null!==(e=this.nonScrollableContentHeight)&&void 0!==e?e:0)-4;Object.assign(i.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(l.a)(this.toggleElement,this.$refs.content,async()=>{const{x:t,y:e}=await Object(l.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 o=!0,i=!0;"BUTTON"===n?(o=!1,i=!1):"A"===n&&(o=!1),(e===a.d&&o||e===a.m&&i)&&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(),o=e.getBoundingClientRect();this.nonScrollableContentHeight=n.height-o.height}}};const m=h()({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,b,void 0,!1,void 0,!1,void 0,void 0,void 0);e.b=m},tlyx:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),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 o=n("Xz+w");function i(t,e,n){let{reference:i,floating:s}=t;const l=Object(o.n)(e),r=Object(o.d)(e),a=Object(o.f)(r),c=Object(o.m)(e),u="y"===l,d=i.x+i.width/2-s.width/2,f=i.y+i.height/2-s.height/2,g=i[a]/2-s[a]/2;let h;switch(c){case"top":h={x:d,y:i.y-s.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-s.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Object(o.c)(e)){case"start":h[r]-=g*(n&&u?-1:1);break;case"end":h[r]+=g*(n&&u?-1:1)}return h}const s=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,a=l.filter(Boolean),c=await(null==r.isRTL?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:f}=i(u,o,c),g=o,h={},p=0;for(let n=0;n<a.length;n++){const{name:l,fn:b}=a[n],{x:m,y:v,data:y,reset:x}=await b({x:d,y:f,initialPlacement:o,placement:g,strategy:s,middlewareData:h,rects:u,platform:r,elements:{reference:t,floating:e}});d=null!=m?m:d,f=null!=v?v:f,h={...h,[l]:{...h[l],...y}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(g=x.placement),x.rects&&(u=!0===x.rects?await r.getElementRects({reference:t,floating:e,strategy:s}):x.rects),({x:d,y:f}=i(u,g,c))),n=-1)}return{x:d,y:f,placement:g,strategy:s,middlewareData:h}};async function l(t,e){var n;void 0===e&&(e={});const{x:i,y:s,platform:l,rects:r,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=Object(o.b)(e,t),p=Object(o.l)(h),b=a[g?"floating"===f?"reference":"floating":f],m=Object(o.r)(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(b)))||n?b:b.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),v="floating"===f?{...r.floating,x:i,y:s}:r.reference,y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),x=await(null==l.isElement?void 0:l.isElement(y))&&await(null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},w=Object(o.r)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-w.top+p.top)/x.y,bottom:(w.bottom-m.bottom+p.bottom)/x.y,left:(m.left-w.left+p.left)/x.x,right:(w.right-m.right+p.right)/x.x}}const r=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,s;const{rects:r,middlewareData:a,placement:c,platform:u,elements:d}=e,{crossAxis:f=!1,alignment:g,allowedPlacements:h=o.q,autoAlignment:p=!0,...b}=Object(o.b)(t,e),m=void 0!==g||h===o.q?function(t,e,n){return(t?[...n.filter(e=>Object(o.c)(e)===t),...n.filter(e=>Object(o.c)(e)!==t)]:n.filter(t=>Object(o.m)(t)===t)).filter(n=>!t||(Object(o.c)(n)===t||!!e&&Object(o.h)(n)!==n))}(g||null,p,h):h,v=await l(e,b),y=(null==(n=a.autoPlacement)?void 0:n.index)||0,x=m[y];if(null==x)return{};const w=Object(o.e)(x,r,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==x)return{reset:{placement:m[0]}};const O=[v[Object(o.m)(x)],v[w[0]],v[w[1]]],S=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:x,overflows:O}],_=m[y+1];if(_)return{data:{index:y+1,overflows:S},reset:{placement:_}};const C=S.map(t=>{const e=Object(o.c)(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),T=(null==(s=C.filter(t=>t[2].slice(0,Object(o.c)(t[0])?2:3).every(t=>t<=0))[0])?void 0:s[0])||C[0][0];return T!==c?{data:{index:y+1,overflows:S},reset:{placement:T}}:{}}}},a=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:r,rects:a,initialPlacement:c,platform:u,elements:d}=e,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...v}=Object(o.b)(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=Object(o.m)(s),x=Object(o.m)(c)===c,w=await(null==u.isRTL?void 0:u.isRTL(d.floating)),O=h||(x||!m?[Object(o.k)(c)]:Object(o.g)(c));h||"none"===b||O.push(...Object(o.j)(c,m,b,w));const S=[c,...O],_=await l(e,v),C=[];let T=(null==(i=r.flip)?void 0:i.overflows)||[];if(f&&C.push(_[y]),g){const t=Object(o.e)(s,a,w);C.push(_[t[0]],_[t[1]])}if(T=[...T,{placement:s,overflows:C}],!C.every(t=>t<=0)){var B,k;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n=null==(k=T.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var L;const t=null==(L=T.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:L[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,i;const{x:s,y:l,placement:r,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:i,elements:s}=t,l=await(null==i.isRTL?void 0:i.isRTL(s.floating)),r=Object(o.m)(n),a=Object(o.c)(n),c="y"===Object(o.n)(n),u=["left","top"].includes(r)?-1:1,d=l&&c?-1:1,f=Object(o.b)(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),c?{x:h*d,y:g*u}:{x:g*u,y:h*d}}(e,t);return r===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},u=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=Object(o.b)(t,e),d={x:n,y:i},f=await l(e,u),g=Object(o.n)(Object(o.m)(s)),h=Object(o.i)(g);let p=d[h],b=d[g];if(r){const t="y"===h?"bottom":"right",e=p+f["y"===h?"top":"left"],n=p-f[t];p=Object(o.a)(e,p,n)}if(a){const t="y"===g?"bottom":"right",e=b+f["y"===g?"top":"left"],n=b-f[t];b=Object(o.a)(e,b,n)}const m=c.fn({...e,[h]:p,[g]:b});return{...m,data:{x:m.x-n,y:m.y-i}}}}},d=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:s,elements:r}=e,{apply:a=(()=>{}),...c}=Object(o.b)(t,e),u=await l(e,c),d=Object(o.m)(n),f=Object(o.c)(n),g="y"===Object(o.n)(n),{width:h,height:p}=i.floating;let b,m;"top"===d||"bottom"===d?(b=d,m=f===(await(null==s.isRTL?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(m=d,b="end"===f?"top":"bottom");const v=p-u[b],y=h-u[m],x=!e.middlewareData.shift;let w=v,O=y;if(g){const t=h-u.left-u.right;O=f||x?Object(o.p)(y,t):t}else{const t=p-u.top-u.bottom;w=f||x?Object(o.p)(v,t):t}if(x&&!f){const t=Object(o.o)(u.left,0),e=Object(o.o)(u.right,0),n=Object(o.o)(u.top,0),i=Object(o.o)(u.bottom,0);g?O=h-2*(0!==t||0!==e?t+e:Object(o.o)(u.left,u.right)):w=p-2*(0!==n||0!==i?n+i:Object(o.o)(u.top,u.bottom))}await a({...e,availableWidth:O,availableHeight:w});const S=await s.getDimensions(r.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}}},zjrD:function(t,e,n){"use strict";var o=n("s1D3"),i=n("V5u/"),s=n("Qog8"),l=n("Pyw5"),r=n.n(l);const a={name:"GlListboxItem",components:{GlIcon:o.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!==i.d&&e!==i.m||(Object(s.k)(t),this.toggleSelection())}}};const c=r()({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,a,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=c}}]);
//# sourceMappingURL=commons-pages.groups.sso-pages.registrations.new-pages.sessions.new-pages.trial_registrations.new.2bbabc1f.chunk.js.map