1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.registrations.new-pages.sessions.new","9f42c377"],{"1I5c":function(e,t,s){"use strict";var i=s("7e18"),n=s("hvGG"),l=s("d85j"),r=s("NnjE"),a=s("4qOP"),o={name:"GlSearchBoxByType",components:{GlClearIconButton:i.a,GlIcon:l.a,GlFormInput:n.a,GlLoadingIcon:r.a},inheritAttrs:!1,model:{prop:"value",event:"input"},props:{value:{type:String,required:!1,default:""},borderless:{type:Boolean,required:!1,default:!1},clearButtonTitle:{type:String,required:!1,default:function(){return Object(a.b)("GlSearchBoxByType.clearButtonTitle","Clear")}},disabled:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},tooltipContainer:{required:!1,default:!1,validator:function(e){return!1===e||"string"==typeof e||e instanceof HTMLElement}}},computed:{inputAttributes(){const e={type:"search",placeholder:Object(a.b)("GlSearchBoxByType.input.placeholder","Search"),...this.$attrs};return e["aria-label"]||(e["aria-label"]=e.placeholder),e},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(e){var t,s;return e===(null===(t=this.$refs.input)||void 0===t?void 0:t.$el)||e===(null===(s=this.$refs.clearButton)||void 0===s?void 0:s.$el)},clearInput(){this.onInput(""),this.focusInput()},focusInput(){this.$refs.input.$el.focus()},onInput(e){this.$emit("input",e)},onFocusout(e){const{relatedTarget:t}=e;this.isInputOrClearButton(t)||this.$emit("focusout",e)},onFocusin(e){const{relatedTarget:t}=e;this.isInputOrClearButton(t)||this.$emit("focusin",e)}}},u=s("tBpV"),c=Object(u.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-search-box-by-type"},[t("gl-icon",{staticClass:"gl-search-box-by-type-search-icon",attrs:{name:"search",variant:"subtle"}}),e._v(" "),t("gl-form-input",e._g(e._b({ref:"input",class:{"gl-search-box-by-type-input":!e.borderless,"gl-search-box-by-type-input-borderless":e.borderless},attrs:{value:e.value,disabled:e.disabled}},"gl-form-input",e.inputAttributes,!1),e.inputListeners)),e._v(" "),e.isLoading||e.showClearButton?t("div",{staticClass:"gl-search-box-by-type-right-icons"},[e.isLoading?t("gl-loading-icon",{staticClass:"gl-search-box-by-type-loading-icon"}):e._e(),e._v(" "),e.showClearButton?t("gl-clear-icon-button",{ref:"clearButton",staticClass:"gl-search-box-by-type-clear gl-clear-icon-button",attrs:{title:e.clearButtonTitle,"tooltip-container":e.tooltipContainer},on:{click:function(t){return t.stopPropagation(),e.clearInput.apply(null,arguments)},focusin:e.onFocusin,focusout:e.onFocusout}}):e._e()],1):e._e()],1)}),[],!1,null,null,null);t.a=c.exports},"1TR3":function(e,t,s){"use strict";var i=s("ho4C"),n={name:"GlListboxGroup",props:{name:{type:String,required:!0},textSrOnly:{type:Boolean,required:!1,default:!1}},created(){this.nameId=Object(i.a)("gl-listbox-group-")}},l=s("tBpV"),r=Object(l.a)(n,(function(){var e=this,t=e._self._c;return t("ul",{staticClass:"gl-mb-0 gl-pl-0",attrs:{role:"group","aria-labelledby":e.nameId}},[t("li",{staticClass:"gl-pb-2 gl-pl-4 gl-pt-3 gl-text-sm gl-font-bold gl-text-strong",class:{"gl-sr-only":e.textSrOnly},attrs:{id:e.nameId,role:"presentation"}},[e._t("group-label",(function(){return[e._v(e._s(e.name))]}))],2),e._v(" "),e._t("default")],2)}),[],!1,null,null,null);t.a=r.exports},"7e18":function(e,t,s){"use strict";var i=s("zIFf"),n=s("CbCZ"),l=s("4qOP"),r={name:"ClearIconButton",components:{GlButton:n.a},directives:{GlTooltip:i.a},props:{title:{type:String,required:!1,default:function(){return Object(l.b)("ClearIconButton.title","Clear")}},tooltipContainer:{required:!1,default:!1,validator:function(e){return!1===e||"string"==typeof e||e instanceof HTMLElement}}}},a=s("tBpV"),o=Object(a.a)(r,(function(){return(0,this._self._c)("gl-button",this._g({directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",value:{container:this.tooltipContainer},expression:"{ container: tooltipContainer }",modifiers:{hover:!0}}],staticClass:"gl-clear-icon-button",attrs:{variant:"default",category:"tertiary",size:"small",name:"clear",icon:"clear",title:this.title,"aria-label":this.title}},this.$listeners))}),[],!1,null,null,null);t.a=o.exports},"93nq":function(e,t,s){"use strict";s("Tznw"),s("IYH6"),s("6yen"),s("OeRx"),s("l/dT"),s("RqS2"),s("Zy7a"),s("cjZU"),s("OAhk"),s("X42P"),s("mHhP"),s("fn0I"),s("UB/6"),s("imhG"),s("B++/"),s("z6RN"),s("47t/"),s("UezY"),s("hG7+"),s("3UXl"),s("iyoE"),s("aFm2"),s("R9qC"),s("ZzK0"),s("BzOf");var i=s("ho4C"),n=s("dLPT"),l=s("RqKJ"),r=s("mpVB"),a=s("RK7s"),o=s("q3oM"),u=s("CbCZ"),c=s("NnjE"),d=s("gFTu"),h=s("1I5c"),p=s("b1NL"),g=s("4qOP"),b=s("vx36"),m=s("7e18"),f=s("d85j"),v={name:"GlListboxSearchInput",components:{GlClearIconButton:m.a,GlIcon:f.a},inheritAttrs:!1,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(){var e=this;
1return{...this.$listeners,input:function(t){e.$emit("input",t.target.value)}}}},methods:{clearInput(){this.$emit("input",""),this.focusInput()},focusInput(){this.$refs.input.focus()}}},y=s("tBpV"),x=Object(y.a)(v,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-listbox-search"},[t("gl-icon",{staticClass:"gl-listbox-search-icon",attrs:{name:"search-sm",size:12}}),e._v(" "),t("input",e._g(e._b({ref:"input",staticClass:"gl-listbox-search-input",attrs:{type:"search","aria-label":e.placeholder,placeholder:e.placeholder},domProps:{value:e.value}},"input",e.$attrs,!1),e.inputListeners)),e._v(" "),e.hasValue?t("gl-clear-icon-button",{staticClass:"gl-listbox-search-clear-button",on:{click:function(t){return t.stopPropagation(),e.clearInput.apply(null,arguments)}}}):e._e()],1)}),[],!1,null,null,null).exports,I=s("1TR3"),_=s("Mb0h");const S=Symbol("null-key"),O=["gl-border-t-1","gl-border-t-solid","gl-border-t-dropdown-divider","gl-pt-1","gl-mt-2"];var B={name:"GlCollapsibleListbox",HEADER_ITEMS_BORDER_CLASSES:["gl-border-b-1","gl-border-b-solid","gl-border-b-dropdown-divider"],events:{GL_DROPDOWN_SHOWN:a.i,GL_DROPDOWN_HIDDEN:a.h,GL_DROPDOWN_FOCUS_CONTENT:a.g},components:{GlBaseDropdown:p.a,GlListboxItem:b.a,GlListboxGroup:I.a,GlButton:u.a,GlSearchBoxByType:h.a,GlListboxSearchInput:x,GlLoadingIcon:c.a,GlIntersectionObserver:d.a},inject:{getFormGroupInstance:{default:function(){return function(){}}}},model:{prop:"selected",event:"select"},props:{items:{type:Array,required:!1,default:function(){return[]},validator:_.c},selected:{type:[Array,String,Number,null],required:!1,default:function(){return[]}},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:o.q.primary,validator:function(e){return e in o.q}},variant:{type:String,required:!1,default:o.z.default,validator:function(e){return e in o.z}},size:{type:String,required:!1,default:"medium",validator:function(e){return e in o.r}},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},state:{type:Boolean,required:!1,default:null},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:function(e){return Object.keys(o.y).includes(e)}},isCheckCentered:{type:Boolean,required:!1,default:!1},toggleId:{type:String,required:!1,default:null},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},panelMatchTriggerWidth:{type:Boolean,required:!1,default:!1},positioningStrategy:{type:String,required:!1,default:a.l,validator:function(e){return[a.l,a.m].includes(e)}},startOpened:{type:Boolean,required:!1,default:!1},srOnlyResultsLabel:{type:Function,required:!1,default:Object(g.c)("GlCollapsibleListbox.srOnlyResultsLabel","%d result","%d results")}},data:()=>({selectedValues:[],listboxId:Object(i.a)("listbox-"),searchInputId:Object(i.a)("listbox-search-input-"),nextFocusedItemIndex:null,searchStr:"",topBoundaryVisible:!0,bottomBoundaryVisible:!0,activeItemId:null,itemIds:new Map}),computed:{listboxAriaLabelledByID(){return this.headerId&&this.searchable?""+this.headerId:this.searchable?this.searchInputId:this.isInFormGroup?this.listboxIdComputed:this.listAriaLabelledBy||this.headerId||this.toggleIdComputed},isInFormGroup(){return Boolean(this.getFormGroupInstance())},toggleIdComputed(){return this.toggleId||Object(i.a)("dropdown-toggle-btn-")},listboxIdComputed(){if(this.isInFormGroup)return this.listAriaLabelledBy?this.listAriaLabelledBy:this.toggleId?this.toggleId+"-span":Object(i.a)("dropdown-toggle-span-")},listboxTag(){return!this.hasItems||Object(_.b)(this.items[0])?"ul":"div"},listboxClasses(){return{"top-scrim-visible":!this.topBoundaryVisible,"bottom-scrim-visible":!this.bottomBoundaryVisible,[a.f]:!0}},itemTag(){return"ul"===this.listboxTag?"li":"div"},flattenedOptions(){return Object(_.a)(this.items)},searchHasOptions(){return this.flattenedOptions.length>0&&this.searchStr},hasItems(){return this.items.length>0},listboxToggleText(){var e,t=this;return this.toggleText?this.toggleText:!this.multiple&&this.selectedValues.length?null===(e=this.flattenedOptions.find((function({value:e}){return e===t.selectedValues[0]})))||void 0===e?void 0:e.text:""},selectedIndices(){var e=this;return this.selectedValues.map((function(t){return e.flattenedOptions.findIndex((function({value:e}){return e===t}))})).filter((function(e){return-1!==e})).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&&Object(i.a)("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},isBusy(){return this.infiniteScrollLoading||this.loading||this.searching},hasCustomToggle(){return Boolean(this.$scopedSlots.toggle)},hasSelection(){return Boolean(this.selectedValues.length)}
1,toggleButtonClasses(){const e=[this.toggleClass];return this.hasSelection||e.push("!gl-text-subtle"),e},hasHeader(){return this.headerText||this.searchable},hasFooter(){return Boolean(this.$scopedSlots.footer)},loadingAnnouncementText(){return this.infiniteScrollLoading?Object(g.b)("GlCollapsibleListbox.loadingAnnouncementText.loadingMoreItems","Loading more items"):this.searching?Object(g.b)("GlCollapsibleListbox.loadingAnnouncementText.searching","Searching"):this.loading?Object(g.b)("GlCollapsibleListbox.loadingAnnouncementText.loadingItems","Loading items"):""}},watch:{selected:{immediate:!0,handler(e,t){Array.isArray(e)?this.selectedValues=[...e]:this.selectedValues=[e],void 0===t||Object(n.a)(e,t)||this.$emit("change")}},items:{async handler(){await this.$nextTick(),this.observeScroll(),this.searchHasOptions?this.nextFocusedItemIndex=this.getFirstEnabledIndex():this.nextFocusedItemIndex=null}}},mounted(){this.startOpened&&this.open(),this.observeScroll()},beforeDestroy(){var e;null===(e=this.scrollObserver)||void 0===e||e.disconnect()},methods:{onFocusContent(e){e.preventDefault(),this.open()},open(){this.$refs.baseDropdown.open()},close(){this.$refs.baseDropdown.close()},groupClasses:e=>0===e?null:O,onShow(){if(this.searchable){if(this.focusSearchInput(),this.searchHasOptions){const e=this.getFirstEnabledIndex();this.nextFocusedItemIndex=e;const t=this.flattenedOptions[e];this.activeItemId=this.generateItemId(t)}}else{var e;const t=this.selectedIndices[0],s=void 0===t||null!==(e=this.flattenedOptions[t])&&void 0!==e&&e.disabled?this.getFirstEnabledIndex():t;this.focusItem(s,this.getFocusableListItemElements())}this.$emit(a.i)},onHide(e){this.$emit(a.h),this.nextFocusedItemIndex=null,this.$emit("blur",e)},getNextIndex(e,t,s){const i=t===a.b?-1:1;let n=e;for(let e=0;e<s;e+=1){var l;if(n+=i,n<0&&(n=s-1),n>=s&&(n=0),null===(l=this.flattenedOptions[n])||void 0===l||!l.disabled)return n}return e},getFirstEnabledIndex(){return this.flattenedOptions.findIndex((function(e){return!e.disabled}))},getLastEnabledIndex(){return this.flattenedOptions.findLastIndex((function(e){return!e.disabled}))},handleListNavigation(e,t){var s;const i=null!==(s=this.nextFocusedItemIndex)&&void 0!==s?s:-1,n=this.getNextIndex(i,e,t.length);this.focusItem(n,t,this.searchable)},onKeydown(e){const{code:t,target:s}=e,i=this.getFocusableListItemElements();if(i.length<1)return;const n=s.matches(".gl-listbox-search-input");let l=!0;switch(t){case a.j:!this.searchable&&n||this.focusItem(this.getFirstEnabledIndex(),i,this.searchable);break;case a.c:!this.searchable&&n||this.focusItem(this.getLastEnabledIndex(),i,this.searchable);break;case a.b:if(n&&!this.searchable)return;this.handleListNavigation(a.b,i);break;case a.a:n&&!this.searchable?this.focusItem(this.getFirstEnabledIndex(),i):this.handleListNavigation(a.a,i);break;case a.d:if(n){if(i.length>0&&null!==this.nextFocusedItemIndex){const e=this.flattenedOptions[this.nextFocusedItemIndex];null!=e&&e.disabled||this.onSelect(e,!this.isSelected(e))}}else l=!1;break;default:l=!1}l&&Object(r.k)(e)},getFocusableListItemElements(){var e;const t=null===(e=this.$refs.list)||void 0===e?void 0:e.querySelectorAll('[role="option"]');return Array.from(t||[])},focusNextItem(e,t,s){const{target:i}=e,n=t.indexOf(i),r=Object(l.a)(n+s,0,t.length-1);this.focusItem(r,t)},async focusItem(e,t,s=!1){this.nextFocusedItemIndex=e;const i=this.flattenedOptions[e];var n;(this.activeItemId=i?this.generateItemId(i):null,s)||(null===(n=t[e])||void 0===n||n.focus());await this.$nextTick(),this.scrollActiveItemIntoView()},focusSearchInput(){this.$refs.searchBox.focusInput()},onSelect(e,t){this.multiple?this.onMultiSelect(e.value,t):this.onSingleSelect(e.value,t)},isHighlighted(e){return this.nextFocusedItemIndex===this.flattenedOptions.indexOf(e)},isSelected(e){return this.selectedValues.some((function(t){return t===e.value}))},isFocused(e){return this.nextFocusedItemIndex===this.flattenedOptions.indexOf(e)},isDisabled:e=>e.disabled,onSingleSelect(e,t){t&&this.$emit("select",e),this.closeAndFocus()},onMultiSelect(e,t){t?this.$emit("select",[...this.selectedValues,e]):this.$emit("select",this.selectedValues.filter((function(t){return t!==e})))},search(e){this.$emit("search",e)},onResetButtonClicked(){this.$emit("reset")},onSelectAllButtonClicked(){this.$emit("select-all")},closeAndFocus(){this.$refs.baseDropdown.closeAndFocus()},onIntersectionObserverAppear(){this.$emit("bottom-reached")},listboxItemKey:e=>null===e.value?S:e.value,listboxItemMoreItemsAriaAttributes(e){return null===this.totalItems?{}:{"aria-setsize":this.totalItems,"aria-posinset":e+1}},observeScroll(){var e,t=this;const s={rootMargin:"8px",root:this.$refs.list,threshold:1};null===(e=this.scrollObserver)||void 0===e||e.disconnect();const i=new IntersectionObserver((function(e){e.forEach((function(e){var s;t[null===(s=e.target)||void 0===s?void 0:s.$__visibilityProp]=e.isIntersecting}))}),s),n=this.$refs["top-boundary"],l=this.$refs["bottom-boundary"];n&&(n.$__visibilityProp="topBoundaryVisible",i.observe(n)),l&&(l.$__visibilityProp="bottomBoundaryVisible",i.observe(l)),this.scrollObserver=i},isOption:_.b,generateItemId(e){const t=null===e.value?S:e.value;return this.itemIds.has(t)||this.itemIds.set(t,Object(i.a)("listbox-item-")),this.itemIds.get(t)},scrollActiveItemIntoView(){const e=this.$refs.list;if(!this.activeItemId||!this.searchable||!e)return;const t=document.getElementById(this.activeItemId);if(!t)return;const s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),n=t.offsetTop;i.top<s.top?e.scrollTo({top:n-30,behavior:"smooth"}):i.bottom>s.bottom&&e.scrollTo({top:n-s.height+t.offsetHeight+30,behavior:"smooth"})}}},w=Object(y.a)(B,(function(){var e=this,t=e._self._c;return t("gl-base-dropdown",{ref:"baseDropdown",attrs:{"aria-haspopup":"listbox","active-item-id":e.activeItemId,"aria-labelledby":e.toggleAriaLabelledBy,block:e.block,"has-searchable-listbox":e.searchable,"has-external-label":e.isInFormGroup,"listbox-id":e.listboxIdComputed,state:e.state,"toggle-id":e.toggleIdComputed,"toggle-text":e.listboxToggleText,"toggle-class":e.toggleButtonClasse
1s,"text-sr-only":e.textSrOnly,category:e.category,variant:e.variant,size:e.size,icon:e.icon,disabled:e.disabled,loading:e.loading,"no-caret":e.noCaret,placement:e.placement,offset:e.dropdownOffset,"fluid-width":e.fluidWidth,"panel-match-trigger-width":e.panelMatchTriggerWidth,"positioning-strategy":e.positioningStrategy},on:e._d({},[e.$options.events.GL_DROPDOWN_FOCUS_CONTENT,e.onFocusContent,e.$options.events.GL_DROPDOWN_SHOWN,e.onShow,e.$options.events.GL_DROPDOWN_HIDDEN,e.onHide]),scopedSlots:e._u([e.hasCustomToggle?{key:"toggle",fn:function(t){return[e._t("toggle",null,null,t)]}}:null,{key:"default",fn:function({visible:s}){return[e.headerText?t("div",{staticClass:"gl-flex gl-min-h-8 gl-shrink-0 gl-items-center gl-px-4 gl-py-3",class:e.$options.HEADER_ITEMS_BORDER_CLASSES},[t("div",{staticClass:"gl-grow gl-pr-2 gl-text-sm gl-font-bold gl-text-strong",attrs:{id:e.headerId,"data-testid":"listbox-header-text"}},[e._v("\n "+e._s(e.headerText)+"\n ")]),e._v(" "),e.showResetButton?t("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-visible:!gl-focus-inset",attrs:{category:"tertiary",size:"small","data-testid":"listbox-reset-button"},on:{click:e.onResetButtonClicked}},[e._v("\n "+e._s(e.resetButtonLabel)+"\n ")]):e._e(),e._v(" "),e.showSelectAllButton?t("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-visible:!gl-focus-inset",attrs:{category:"tertiary",size:"small","data-testid":"listbox-select-all-button"},on:{click:e.onSelectAllButtonClicked}},[e._v("\n "+e._s(e.showSelectAllButtonLabel)+"\n ")]):e._e()],1):e._e(),e._v(" "),e.searchable?t("div",{staticClass:"gl-shrink-0",class:e.$options.HEADER_ITEMS_BORDER_CLASSES},[t("gl-listbox-search-input",{ref:"searchBox",class:{"gl-listbox-topmost":!e.headerText},attrs:{id:e.searchInputId,"data-testid":"listbox-search-input",role:"combobox","aria-expanded":String(s),"aria-controls":e.listboxId,"aria-activedescendant":e.activeItemId,"aria-haspopup":"listbox",placeholder:e.searchPlaceholder},on:{input:e.search,keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()},e.onKeydown]},model:{value:e.searchStr,callback:function(t){e.searchStr=t},expression:"searchStr"}}),e._v(" "),e.searching?t("gl-loading-icon",{staticClass:"gl-my-3",attrs:{"data-testid":"listbox-search-loader",size:"md"}}):e._e()],1):e._e(),e._v(" "),e.showList?t(e.listboxTag,{ref:"list",tag:"component",staticClass:"gl-new-dropdown-contents gl-new-dropdown-contents-with-scrim-overlay",class:e.listboxClasses,attrs:{id:e.listboxId,"aria-busy":e.isBusy,"aria-labelledby":e.listboxAriaLabelledByID,"aria-multiselectable":e.multiple?"true":void 0,role:"listbox",tabindex:"0"},on:{keydown:e.onKeydown}},[t(e.itemTag,{tag:"component",staticClass:"top-scrim-wrapper",attrs:{"aria-hidden":"true","data-testid":"top-scrim"}},[t("div",{staticClass:"top-scrim",class:{"top-scrim-light":!e.hasHeader,"top-scrim-dark":e.hasHeader}})]),e._v(" "),t(e.itemTag,{ref:"top-boundary",tag:"component",attrs:{"aria-hidden":"true"}}),e._v(" "),e._l(e.items,(function(s,i){return[e.isOption(s)?[t("gl-listbox-item",e._b({key:e.listboxItemKey(s),attrs:{id:e.generateItemId(s),"data-testid":"listbox-item-"+s.value,"is-highlighted":e.isHighlighted(s),"is-selected":e.isSelected(s),"is-focused":e.isFocused(s),"is-check-centered":e.isCheckCentered,"is-disabled":e.isDisabled(s)},on:{select:function(t){return e.onSelect(s,t)}}},"gl-listbox-item",e.listboxItemMoreItemsAriaAttributes(i),!1),[e._t("list-item",(function(){return[e._v("\n "+e._s(s.text)+"\n ")]}),{item:s})],2)]:[t("gl-listbox-group",{key:s.text,class:e.groupClasses(i),attrs:{name:s.text,"text-sr-only":s.textSrOnly},scopedSlots:e._u([e.$scopedSlots["group-label"]?{key:"group-label",fn:function(){return[e._t("group-label",null,{group:s})]},proxy:!0}:null],null,!0)}
1,[e._v(" "),e._l(s.options,(function(s){return t("gl-listbox-item",{key:e.listboxItemKey(s),attrs:{id:e.generateItemId(s),"data-testid":"listbox-item-"+s.value,"is-highlighted":e.isHighlighted(s),"is-selected":e.isSelected(s),"is-focused":e.isFocused(s),"is-check-centered":e.isCheckCentered,"is-disabled":e.isDisabled(s)},on:{select:function(t){return e.onSelect(s,t)}}},[e._t("list-item",(function(){return[e._v("\n "+e._s(s.text)+"\n ")]}),{item:s})],2)}))],2)]]})),e._v(" "),e.infiniteScrollLoading?t(e.itemTag,{tag:"component"},[t("gl-loading-icon",{staticClass:"gl-my-3",attrs:{"data-testid":"listbox-infinite-scroll-loader",size:"md"}})],1):e._e(),e._v(" "),e.showIntersectionObserver?t("gl-intersection-observer",{on:{appear:e.onIntersectionObserverAppear}}):e._e(),e._v(" "),t(e.itemTag,{ref:"bottom-boundary",tag:"component",attrs:{"aria-hidden":"true"}}),e._v(" "),t(e.itemTag,{tag:"component",staticClass:"bottom-scrim-wrapper",attrs:{"aria-hidden":"true","data-testid":"bottom-scrim"}},[t("div",{staticClass:"bottom-scrim",class:{"!gl-rounded-none":e.hasFooter}})])],2):e._e(),e._v(" "),e.announceSRSearchResults?t("span",{staticClass:"gl-sr-only",attrs:{"data-testid":"listbox-number-of-results","aria-live":"assertive"}},[e._t("search-summary-sr-only",(function(){return[e._v("\n "+e._s(e.srOnlyResultsLabel(e.flattenedOptions.length))+"\n ")]}))],2):e._e(),e._v(" "),e.isBusy?t("span",{staticClass:"gl-sr-only",attrs:{"aria-live":"polite","data-testid":"listbox-loading-announcement"}},[e._v("\n "+e._s(e.loadingAnnouncementText)+"\n ")]):e.showNoResultsText?t("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"}},[e._v("\n "+e._s(e.noResultsText)+"\n ")]):e._e(),e._v(" "),e._t("footer")]}}],null,!0)})}),[],!1,null,null,null);t.a=w.exports},BQcc:function(e,t,s){"use strict";s.d(t,"a",(function(){return p}));s("ZzK0"),s("z6RN"),s("BzOf");var i=s("QJEF"),n=s("jlnU"),l=s("2ibD"),r=s("/lV4"),a=s("KXtm"),o=s("ygVz"),u=s("GuZl"),c=s("0AwG");class d{constructor(){var e=this;this.elements=document.querySelectorAll(".js-track-error"),this.trackErrorOnEmptyField=d.trackErrorOnEmptyField.bind(this),this.trackErrorOnChange=Object(i.a)(d.trackErrorOnChange.bind(this),u.h),this.elements.forEach((function(t){t.addEventListener("input",e.trackErrorOnChange),t.addEventListener("invalid",e.trackErrorOnEmptyField)}))}destroy(){var e=this;this.elements.forEach((function(t){t.removeEventListener("input",e.trackErrorOnChange),t.removeEventListener("invalid",e.trackErrorOnEmptyField)}))}static trackErrorOnChange(e){const t=e.target;if(t.value&&!t.checkValidity()){const e=d.errorMessage(t);o.b.event(void 0,d.action(t),{label:d.label(t,e)})}}static trackErrorOnEmptyField(e){const t=e.target,s=!t.checked&&d.isRadio(t.type);(""===t.value||s)&&o.b.event(void 0,d.action(t),{label:d.label(t,"is_required")})}static errorMessage(e){return["first_name","last_name","username","email","password","company_name"].some((function(t){return e.id.includes(t)}
1))?"is_invalid":d.inputErrorMessage(e)}static formattedLabel(e){return e+"_is_invalid"}static inputErrorMessage(e){return Object(c.j)(e.validationMessage)}static action(e){return d.formattedAction(e.dataset.trackActionForErrors)}static formattedAction(e){return`track_${e}_error`}static label(e,t){if(d.isRadio(e.type)){const t=e.closest(".form-group").querySelector("label").getAttribute("for");return"missing_"+Object(c.j)(t)}return`${e.id}_${t}`}static isRadio(e){return"radio"===e}}var h=s("BDaF");class p extends a.a{constructor(e={}){var t;super(),t=this;const s=e.container||"",n=document.querySelectorAll(s+" .js-validate-username");this.debounceValidateInput=Object(i.a)((function(e){p.validateUsernameInput(e)}),1e3),n.forEach((function(e){return e.addEventListener("input",t.eventHandler.bind(t))}))}eventHandler(e){const t=e.target;p.resetInputState(t),this.debounceValidateInput(t)}static validateUsernameInput(e){const t=e.value;t.length>1&&e.checkValidity()&&(p.setMessageVisibility(e,".validation-pending"),p.fetchUsernameAvailability(t).then((function(t){if(p.setInputState(e,!t),p.setMessageVisibility(e,".validation-pending",!1),p.setMessageVisibility(e,t?".validation-error":".validation-success"),t){const t=d.action(e),s=d.label(e,"is_taken");o.b.event(void 0,t,{label:s})}})).catch((function(){return Object(n.createAlert)({message:Object(r.a)("An error occurred while validating username")})})))}static fetchUsernameAvailability(e){return l.a.get(Object(h.e)(e)).then((function({data:e}){return e.exists}))}static setMessageVisibility(e,t,s=!0){e.parentElement.querySelector(t).classList.toggle("hide",!s)}static setInputState(e,t=!0){e.classList.toggle("gl-field-success-outline",t),e.classList.toggle("gl-field-error-outline",!t)}static resetInputState(e){p.setMessageVisibility(e,".validation-success",!1),p.setMessageVisibility(e,".validation-error",!1),e.checkValidity()&&e.classList.remove("gl-field-success-outline","gl-field-error-outline")}}},ECY7:function(e,t,s){(e.exports=s("VNgF")(!1)).push([e.i,"\n/*\n * Hiding the browser's native password reveal control when showing our own toggle.\n * Avoids duplicate eye icons in Microsoft Edge (and IE), which only show their\n * reveal button when the field is focused and has content.\n */\n[data-v-30fc2c36] input[type='password']::-ms-reveal {\n display: none;\n}\n",""])},KXtm:function(e,t,s){"use strict";s.d(t,"a",(function(){return i}));class i{constructor(){this.inputDomElement={},this.inputErrorMessage={},this.errorMessage=null,this.invalidInput=null}setValidationStateAndMessage(){this.setValidationMessage();const e=!this.inputDomElement.checkValidity();this.inputDomElement.classList.toggle("gl-field-error-outline",e),this.inputErrorMessage.classList.toggle("hide",!e)}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)}}},Mb0h:function(e,t,s){"use strict";s.d(t,"b",(function(){return l})),s.d(t,"c",(function(){return u})),s.d(t,"a",(function(){return o}));s("LdIe"),s("z6RN"),s("PTOk"),s("dHQd"),s("yoDG"),s("KeS/"),s("tWNI"),s("8d6S"),s("VwWG"),s("IYHS"),s("rIA9"),s("MViX"),s("zglm"),s("GDOA"),s("hlbI"),s("a0mT"),s("u3H1"),s("ta8/"),s("IKCR"),s("nmTw"),s("W2kU"),s("58fc"),s("7dtT"),s("Rhav"),s("uhEP"),s("eppl"),s("YSE1"),s("b+iX"),s("3UXl"),s("iyoE"),s("UezY"),s("hG7+");var i=s("v1ID"),n=s("Kq5r");const l=function(e){return Boolean(e)&&(Object(i.a)(e.value)||Object(n.a)(e.value)||null===e.value)},r=function({options:e}={}){return Array.isArray(e)&&e.every(l)},a=function(e){return e.length===new Set(e).size},o=function(e){return e.flatMap((function(e){return l(e)?e:e.options}))},u=function(e){return function(e){return e.every(l)||e.every(r)}(e)&&function(e){return a(o(e).map((function({value:e}){return e})))}(e)&&function(e){return a(e.filter(r).map((function({text:e}){return e})))}(e)}},SZIZ:function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));s("ZzK0"),s("z6RN"),s("BzOf");var i=s("KXtm");class n extends i.a{constructor(e={}){var t;super(),t=this;const s=e.container||"";document.querySelectorAll(s+" .js-validate-length").forEach((function(e){return e.addEventListener("input",t.eventHandler.bind(t))}))}eventHandler(e){this.inputDomElement=e.target,this.inputErrorMessage=this.inputDomElement.parentElement.querySelector(".gl-field-error");const{value:t}=this.inputDomElement,{minLength:s,minLengthMessage:i,maxLengthMessage:n,maxLength:l,allowEmpty:r}=this.inputDomElement.dataset;
1this.invalidInput=!1,function(e,t){return e.length>parseInt(t,10)}(t,l)&&(this.invalidInput=!0,this.errorMessage=n),function(e,t,s){const i="true"!==s||0!==e.length;return e.length<parseInt(t,10)&&i}(t,s,r)&&(this.invalidInput=!0,this.errorMessage=i),this.setValidationStateAndMessage()}}},gFTu:function(e,t,s){"use strict";s("ZzK0"),s("z6RN"),s("BzOf");var i=s("RTFG");const n=Object(i.a)((function(e){return new IntersectionObserver((function(e){e.forEach((function(e){e.target.$_gl_intersectionHandler(e)}))}),e||{})}));var l={name:"GlIntersectionObserver",props:{options:{type:Object,required:!1,default:null}},mounted(){var e=this;const t=n(this.options);this.$el.$_gl_intersectionHandler=function(t){e.$emit("update",t),t.isIntersecting?e.$emit("appear"):e.$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:n},r=s("tBpV"),a=Object(r.a)(l,(function(){return(0,this._self._c)("div",[this._t("default")],2)}),[],!1,null,null,null);t.a=a.exports},lOo6:function(e,t,s){"use strict";s.d(t,"a",(function(){return g}));s("byxs"),s("B++/"),s("z6RN"),s("47t/");var i=s("hcsH"),n=s("NmEs"),l=s("93nq"),r=s("Jx7q"),a=s("/lV4"),o=s("qLpH");const u=Object(a.a)("Help translate to your language"),c=Object(o.a)("/development/i18n/translation.md");var d={name:"LanguageSwitcherApp",components:{GlCollapsibleListbox:l.a,GlLink:r.a},inject:{locales:{default:[]},preferredLocale:{default:{value:"en",text:"English"}}},data(){return{selected:this.preferredLocale.value}},methods:{onLanguageSelected(e){Object(n.M)("preferred_language",e),window.location.reload()},itemTestSelector:e=>"language_switcher_lang_"+e,itemLangAttribute:e=>e.replace(/_/g,"-")},HELP_TRANSLATE_MSG:u,HELP_TRANSLATE_HREF:c},h=s("tBpV"),p=Object(h.a)(d,(function(){var e=this,t=e._self._c;return t("gl-collapsible-listbox",{attrs:{"toggle-text":e.preferredLocale.text,items:e.locales,category:"tertiary",placement:"bottom-end",icon:"earth",size:"small","toggle-class":"!gl-py-0 gl-h-6"},on:{select:e.onLanguageSelected},scopedSlots:e._u([{key:"list-item",fn:function({item:s}){return[t("span",{attrs:{lang:e.itemLangAttribute(s.value),"data-testid":e.itemTestSelector(s.value)}},[e._v("\n "+e._s(s.text)+"\n ")])]}},{key:"footer",fn:function(){return[t("div",{staticClass:"gl-flex gl-justify-center gl-border-t-1 gl-border-t-default gl-p-3 gl-border-t-solid",attrs:{"data-testid":"footer"}},[t("gl-link",{attrs:{href:e.$options.HELP_TRANSLATE_HREF}},[e._v(e._s(e.$options.HELP_TRANSLATE_MSG))])],1)]},proxy:!0}]),model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})}),[],!1,null,null,null).exports;const g=function(){const e=document.querySelector(".js-language-switcher");if(!e)return!1;const t=JSON.parse(e.dataset.locales),s=Object(n.j)("preferred_language"),l=t.find((function(e){return e.value===s})),r={locales:t};return l&&(r.preferredLocale=l),Object(i.a)({el:e,name:"LanguageSwitcherRoot",provide:r,component:p})}},pqEc:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));s("ZzK0"),s("z6RN"),s("BzOf");var i=s("N6Fp"),n=s("/lV4"),l=s("KXtm");class r extends l.a{constructor(e={}){var t;super(),t=this;const s=e.container||"";this.noEmojiEmelents=document.querySelectorAll(s+" .js-block-emoji"),this.noEmojiEmelents.forEach((function(e){return e.addEventListener("input",t.eventHandler.bind(t))}))}eventHandler(e){this.inputDomElement=e.target,this.inputErrorMessage=this.inputDomElement.nextSibling;const{value:t}=this.inputDomElement;this.errorMessage=Object(n.a)("Invalid input, please avoid emoji"),this.validatePattern(t),this.setValidationStateAndMessage()}validatePattern(e){const t=Object(i.a)();this.invalidInput=new RegExp(t).test(e)}}},vx36:function(e,t,s){"use strict";var i=s("d85j"),n=s("RK7s"),l=s("mpVB"),r={name:"GlListboxItem",components:{GlIcon:i.a},props:{isSelected:{type:Boolean,default:!1,required:!1},isFocused:{type:Boolean,default:!1,required:!1},isCheckCentered:{type:Boolean,required:!1,default:!1},isHighlighted:{type:Boolean,default:!1,required:!1},isDisabled:{type:Boolean,default:!1,required:!1}}
1,computed:{checkedClasses(){return this.isCheckCentered?"":"gl-mt-3 gl-self-start"}},methods:{onMousedown(e){this.isDisabled&&Object(l.k)(e)},toggleSelection(){this.isDisabled||this.$emit("select",!this.isSelected)},onKeydown(e){const{code:t}=e;t!==n.d&&t!==n.n||(Object(l.k)(e),this.toggleSelection())}}},a=s("tBpV"),o=Object(a.a)(r,(function(){var e=this,t=e._self._c;return t("li",{class:["gl-new-dropdown-item",{"gl-new-dropdown-item-highlighted":e.isHighlighted,disabled:e.isDisabled}],attrs:{role:"option",tabindex:e.isFocused?0:-1,"aria-selected":e.isSelected,"aria-disabled":e.isDisabled},on:{mousedown:e.onMousedown,click:e.toggleSelection,keydown:e.onKeydown}},[t("span",{staticClass:"gl-new-dropdown-item-content"},[t("gl-icon",{class:["gl-new-dropdown-item-check-icon",{"gl-invisible":!e.isSelected},e.checkedClasses],attrs:{name:"check","data-testid":"dropdown-item-checkbox"}}),e._v(" "),t("span",{staticClass:"gl-new-dropdown-item-text-wrapper"},[e._t("default")],2)],1)])}),[],!1,null,null,null);t.a=o.exports},wDRK:function(e,t,s){"use strict";s.d(t,"a",(function(){return a}));s("ZzK0"),s("z6RN"),s("BzOf");var i=s("ewH8"),n=s("NmEs"),l=s("59b1"),r=s("zt6T");const a=function(){document.querySelectorAll(".js-password").forEach((function(e){if(!e)return null;const{form:t}=e,{title:s,id:a,minimumPasswordLength:o,testid:u,trackActionForErrors:c,required:d,autocomplete:h,name:p,disabled:g}=e.dataset,b=!d||Object(n.G)(d),m=!!g&&Object(n.G)(g);return new i.default({el:e,name:"PasswordInputRoot",render:e=>e(r.a,{props:{title:s,id:a,minimumPasswordLength:o,testid:u,trackActionForErrors:c,autocomplete:h,name:p,required:b,disabled:m}})}),new l.a(t)}))}},zt6T:function(e,t,s){"use strict";var i=s("hvGG"),n=s("CbCZ"),l=s("zIFf"),r=s("CGBp"),a=s("/lV4");const o=Object(a.a)("Reveal password"),u=Object(a.a)("Hide password");var c={name:"PasswordInput",components:{GlFormInput:i.a,GlButton:n.a},directives:{GlTooltip:l.a},mixins:[r.a],props:{title:{type:String,required:!1,default:null},id:{type:String,required:!1,default:null},minimumPasswordLength:{type:String,required:!1,default:null},testid:{type:String,required:!1,default:null},trackActionForErrors:{type:String,required:!1,default:null},autocomplete:{type:String,required:!1,default:"current-password"},autofocus:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!0},name:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},state:{type:Boolean,required:!1,default:null},value:{type:String,required:!1,default:null}},data:()=>({isMasked:!0}),computed:{type(){return this.isMasked?"password":"text"},toggleVisibilityLabel(){return this.isMasked?o:u},toggleVisibilityIcon(){return this.isMasked?"eye":"eye-slash"}},methods:{handleToggleVisibilityButtonClick(){this.isMasked=!this.isMasked}}},d=s("LPAU"),h=s.n(d),p=s("ECY7"),g=s.n(p),b={insert:"head",singleton:!1},m=(h()(g.a,b),g.a.locals,s("tBpV")),f=Object(m.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-field-error-anchor gl-relative"},[t("gl-form-input",e._g({staticClass:"js-password-complexity-validation js-track-error !gl-pr-8",attrs:{id:e.id,value:e.value,required:e.required,autocomplete:e.autocomplete,autofocus:e.autofocus,name:e.name,minlength:e.minimumPasswordLength,"data-testid":e.testid,"data-track-action-for-errors":e.trackActionForErrors,title:e.title,type:e.type,disabled:e.disabled,state:e.state}},e.glListeners())),e._v(" "),t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:e.toggleVisibilityLabel,expression:"toggleVisibilityLabel"}],staticClass:"gl-absolute gl-right-0 gl-top-0",attrs:{category:"tertiary","aria-label":e.toggleVisibilityLabel,icon:e.toggleVisibilityIcon,disabled:e.disabled},on:{click:e.handleToggleVisibilityButtonClick}})],1)}),[],!1,null,"30fc2c36",null);t.a=f.exports}}]); 2//# sourceMappingURL=commons-pages.registrations.new-pages.sessions.new.bd757b99.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.