1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.projects.snippets.edit-pages.projects.snippets.new-pages.projects.snippets.show-pages.-522a9882","6ecbbe1b"],{"2TqH":function(t,e,n){"use strict";var i=n("3CjL"),o=n.n(i),r=n("o4PY"),s=n.n(r),l=n("mpVB"),u=n("RK7s"),a=n("q3oM"),d=n("b1NL"),c=n("KOQf"),p=n("AxB5"),f=n("nuJP"),m=n("O/A7");const g="."+c.a;var h={name:"GlDisclosureDropdown",events:{GL_DROPDOWN_SHOWN:u.i,GL_DROPDOWN_HIDDEN:u.h,GL_DROPDOWN_BEFORE_CLOSE:u.e,GL_DROPDOWN_FOCUS_CONTENT:u.g},components:{GlBaseDropdown:d.a,GlDisclosureDropdownItem:p.a,GlDisclosureDropdownGroup:f.a},props:{items:{type:Array,required:!1,default:function(){return[]},validator:m.e},toggleText:{type:String,required:!1,default:""},textSrOnly:{type:Boolean,required:!1,default:!1},category:{type:String,required:!1,default:a.p.primary,validator:function(t){return t in a.p}},variant:{type:String,required:!1,default:a.z.default,validator:function(t){return t in a.z}},size:{type:String,required:!1,default:"medium",validator:function(t){return t in a.q}},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},toggleId:{type:String,required:!1,default:function(){return s()("dropdown-toggle-btn-")}},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(t){return Object.keys(a.y).includes(t)}},toggleAriaLabelledBy:{type:String,required:!1,default:null},listAriaLabelledBy:{type:String,required:!1,default:null},block:{type:Boolean,required:!1,default:!1},dropdownOffset:{type:[Number,Object],required:!1,default:void 0},fluidWidth:{type:Boolean,required:!1,default:!1},autoClose:{type:Boolean,required:!1,default:!0},positioningStrategy:{type:String,required:!1,default:u.l,validator:function(t){return[u.l,u.m].includes(t)}},startOpened:{type:Boolean,required:!1,default:!1}},data:()=>({disclosureId:s()("disclosure-"),nextFocusedItemIndex:null}),computed:{disclosureTag(){var t;return null!==(t=this.items)&&void 0!==t&&t.length||Object(m.b)(this.$scopedSlots.default||this.$slots.default)?"ul":"div"},hasCustomToggle(){return Boolean(this.$scopedSlots.toggle)},siblingsHaveIcons(){return Object(m.a)(this.items)}},mounted(){this.startOpened&&this.open()},methods:{doSomeItemsHaveIcon:m.a,open(){this.$refs.baseDropdown.open()},close(){this.$refs.baseDropdown.close()},onShow(){this.$emit(u.i)},onBeforeClose(t){this.$emit(u.e,t)},onHide(){this.$emit(u.h),this.nextFocusedItemIndex=null},onKeydown(t){const{code:e}=t,n=this.getFocusableListItemElements();if(n.length<1)return;let i=!0;e===u.j?this.focusItem(0,n):e===u.c?this.focusItem(n.length-1,n):e===u.b?this.focusNextItem(t,n,-1):e===u.a?this.focusNextItem(t,n,1):e===u.d||e===u.n?this.handleAutoClose(t):i=!1,i&&Object(l.k)(t)},getFocusableListItemElements(){var t;const e=null===(t=this.$refs.content)||void 0===t?void 0:t.querySelectorAll(g);return Object(l.c)(Array.from(e||[]))},focusNextItem(t,e,n){const{target:i}=t,r=e.indexOf(i),s=o()(r+n,0,e.length-1);this.focusItem(s,e)},focusItem(t,e){var n;this.nextFocusedItemIndex=t,null===(n=e[t])||void 0===n||n.focus()},closeAndFocus(){this.$refs.baseDropdown.closeAndFocus()},handleAction(t){var e=this;window.requestAnimationFrame((function(){e.$emit("action",t)}))},handleAutoClose(t){var e,n;this.autoClose&&t.target.closest(g)&&null!==(e=(n=this.$refs.baseDropdown).containsElement)&&void 0!==e&&e.call(n,t.target)&&this.closeAndFocus()},uniqueItemId:()=>s()("disclosure-item-"),isItem:m.d},GL_DROPDOWN_CONTENTS_CLASS:u.f},b=n("tBpV"),v=Object(b.a)(h,(function(){var t=this,e=t._self._c;return e("gl-base-dropdown",{ref:"baseDropdown",staticClass:"gl-disclosure-dropdown",attrs:{"aria-labelledby":t.toggleAriaLabelledBy,"arrow-element":t.$refs.disclosureArrow,"toggle-id":t.toggleId,"toggle-text":t.toggleText,"toggle-class":t.toggleClass,"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,block:t.block,offset:t.dropdownOffset,"fluid-width":t.fluidWidth,"positioning-strategy":t.positioningStrategy,"is-disclosure":""},on:t._d({},[t.$options.events.GL_DROPDOWN_SHOWN,t.onShow,t.$options.events.GL_DROPDOWN_HIDDEN,t.onHide,t.$options.events.GL_DROPDOWN_BEFORE_CLOSE,t.onBeforeClose,t.$options.events.GL_DROPDOWN_FOCUS_CONTENT,t.onKeydown]),scopedSlots:t._u([t.hasCu
1stomToggle?{key:"toggle",fn:function(e){return[t._t("toggle",null,null,e)]}}:null],null,!0)},[t._v(" "),t._t("header"),t._v(" "),e(t.disclosureTag,{ref:"content",tag:"component",class:t.$options.GL_DROPDOWN_CONTENTS_CLASS,attrs:{id:t.disclosureId,"aria-labelledby":t.listAriaLabelledBy||t.toggleId,"data-testid":"disclosure-content",tabindex:"-1"},on:{keydown:t.onKeydown,click:t.handleAutoClose}},[t._t("default",(function(){return[t._l(t.items,(function(n,i){return[t.isItem(n)?[e("gl-disclosure-dropdown-item",{key:t.uniqueItemId(),attrs:{"siblings-have-icons":t.siblingsHaveIcons,item:n},on:{action:t.handleAction},scopedSlots:t._u(["list-item"in t.$scopedSlots?{key:"list-item",fn:function(){return[t._t("list-item",null,{item:n})]},proxy:!0}:null],null,!0)})]:[e("gl-disclosure-dropdown-group",{key:n.name,attrs:{bordered:0!==i,group:n},on:{action:t.handleAction},scopedSlots:t._u([t.$scopedSlots["group-label"]?{key:"group-label",fn:function(){return[t._t("group-label",null,{group:n})]},proxy:!0}:null,t.$scopedSlots["list-item"]?{key:"default",fn:function(){return t._l(n.items,(function(i){return e("gl-disclosure-dropdown-item",{key:t.uniqueItemId(),attrs:{"siblings-have-icons":t.doSomeItemsHaveIcon(n.items),item:i},on:{action:t.handleAction},scopedSlots:t._u([{key:"list-item",fn:function(){return[t._t("list-item",null,{item:i})]},proxy:!0}],null,!0)})}))},proxy:!0}:null],null,!0)})]]}))]}))],2),t._v(" "),t._t("footer")],2)}),[],!1,null,null,null);e.a=v.exports},"6R0y":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return r}));const i="GlDisclosureDropdownItem",o="GlDisclosureDropdownGroup",r={top:"top",bottom:"bottom"}},AxB5:function(t,e,n){"use strict";var i=n("KOQf").b,o=n("tBpV"),r=Object(o.a)(i,(function(){var t=this,e=t._self._c;return e("li",t._g({class:t.classes,attrs:{tabindex:t.listIndex,"data-testid":"disclosure-dropdown-item"}},t.wrapperListeners),[t._t("default",(function(){return[e(t.itemComponent.is,t._g(t._b({ref:"item",tag:"component",staticClass:"gl-new-dropdown-item-content",attrs:{tabindex:t.componentIndex}},"component",t.itemComponent.attrs,!1),t.itemComponent.listeners),[e("span",{staticClass:"gl-new-dropdown-item-text-wrapper"},[t._t("list-item",(function(){return[t.iconName||t.siblingsHaveIcons?e("span",{staticClass:"gl-new-dropdown-item-icon"},[t.iconName?e("gl-icon",{attrs:{name:t.iconName,variant:"current"}}):t._e()],1):t._e(),t._v("\n "+t._s(t.item.text)+"\n ")]}))],2)])]}))],2)}),[],!1,null,null,null);e.a=r.exports},KOQf:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("Jx7q"),o=n("d85j"),r=n("RK7s"),s=n("mpVB"),l=n("q3oM"),u=n("O/A7"),a=n("6R0y");const d="gl-new-dropdown-item";e.b={name:a.c,ITEM_CLASS:d,components:{GlLink:i.a,GlIcon:o.a},props:{item:{type:Object,required:!1,default:null,validator:u.d},variant:{type:String,default:null,validator:t=>void 0!==l.x[t],required:!1},icon:{type:String,default:null,required:!1},siblingsHaveIcons:{type:Boolean,default:!1,required:!1}},computed:{isLink(){var t,e;return"string"==typeof(null===(t=this.item)||void 0===t?void 0:t.href)||void 0!==(null===(e=this.item)||void 0===e?void 0:e.to)},isCustomContent(){return Boolean(this.$scopedSlots.default)},itemComponent(){var t=this;const{item:e}=this;return this.isLink?{is:i.a,attrs:{href:e.href,to:e.to,variant:"unstyled",...e.extraAttrs},listeners:{click:this.action}}:{is:"button",attrs:{...null==e?void 0:e.extraAttrs,type:"button"},listeners:{click:function(){var n;null==e||null===(n=e.action)||void 0===n||n.call(void 0,e),t.action()}}}},listIndex(){var t;return null!==(t=this.item)&&void 0!==t&&null!==(t=t.extraAttrs)&&void 0!==t&&t.disabled?null:0},componentIndex(){var t;return null!==(t=this.item)&&void 0!==t&&null!==(t=t.extraAttrs)&&void 0!==t&&t.disabled?null:-1},itemVariant(){var t;return this.variant||(null===(t=this.item)||void 0===t?void 0:t.variant)},classes(){var t,e;return[this.$options.ITEM_CLASS,null!==(t=null===(e=this.item)||void 0===e?void 0:e.wrapperClass)&&void 0!==t?t:"",this.itemVariant&&"default"!==this.itemVariant?"gl-new-dropdown-item-"+this.itemVariant:""]},iconName(){var t;return this.icon||(null===(t=this.item)||void 0===t?void 0:t.icon)},wrapperListeners(){const t={keydown:this.onKeydown};
1return this.isCustomContent&&(t.click=this.action),t}},methods:{onKeydown(t){const{code:e}=t;if(e===r.d||e===r.n)if(this.isCustomContent)this.action();else{Object(s.k)(t);const e=new MouseEvent("click",{bubbles:!0,cancelable:!0});var n;if(this.isLink)this.$refs.item.$el.dispatchEvent(e);else null===(n=this.$refs.item)||void 0===n||n.dispatchEvent(e)}},action(){this.$emit("action",this.item)}}}},"O/A7":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d}));n("LdIe"),n("z6RN"),n("PTOk"),n("aFm2"),n("R9qC"),n("UezY"),n("hG7+"),n("B++/"),n("47t/");var i=n("ewH8"),o=n("KFC0"),r=n.n(o),s=n("6R0y");const l=function(t){return Boolean(t)&&function(t){var e;return(null==t||null===(e=t.text)||void 0===e?void 0:e.length)>0&&!Array.isArray(null==t?void 0:t.items)}(t)},u=function(t){return Boolean(t)&&Array.isArray(t.items)&&Boolean(t.items.length)&&t.items.every(l)},a=function(t){return t.every(l)||t.every(u)},d=function(t){return t.some((function(t){return t&&"object"==typeof t&&"icon"in t}))},c=function(t){const e=t();if(!Array.isArray(e))return!1;const n=e.filter((function(t){return!function(t){return!t||(!!t.isComment||!t.tag&&"string"==typeof t.text&&!t.text.trim())}(t)}));return 0===n.length||n.every((function(t){return function(t){var e,n;if(!t)return!1;if(function(t){return["gl-disclosure-dropdown-group","gl-disclosure-dropdown-item","li"].includes(t)}((null===(e=t.componentOptions)||void 0===e?void 0:e.tag)||t.tag))return!0;const i=null===(n=t.componentOptions)||void 0===n||null===(n=n.Ctor)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.name;return[s.c,s.b].includes(i)}(t)}))},p=function(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t.filter((function(t){return!function(t){var e;return!t||(t.type===i.default.Comment||(!(t.type!==i.default.Text||null!==(e=t.children)&&void 0!==e&&e.trim())||!(t.type!==i.default.Fragment||t.children&&0!==t.children.length)))}(t)}));return 0===e.length||e.every((function(t){return!!function(t){var e;return!!t&&([s.c,s.b].includes(null===(e=t.type)||void 0===e?void 0:e.name)||"li"===t.type)}(t)||!(t.type!==i.default.Fragment||!Array.isArray(t.children))&&p(t.children)}))},f=function(t){return!!r()(t)&&(i.default.version.startsWith("3")?function(t){const e=t(),n=e.find((function(t){return Array.isArray(t.children)&&t.children.length})),i=n?n.children:e;return p(i)}(t):c(t))}},hc6m:function(t,e,n){"use strict";n.d(e,"l",(function(){return r})),n.d(e,"f",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return d})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"i",(function(){return h}));var i=n("/lV4"),o=n("HqXx");const r={[o.m]:{label:Object(i.a)("Private"),icon:"lock",description:Object(i.a)("The snippet is visible only to me."),description_project:Object(i.a)("The snippet is visible only to project members.")},[o.j]:{label:Object(i.a)("Internal"),icon:"shield",description:Object(i.a)("The snippet is visible to any logged in user except external users.")},[o.o]:{label:Object(i.a)("Public"),icon:"earth",description:Object(i.a)("The snippet can be accessed without any authentication."),description_project:Object(i.a)("The snippet can be accessed without any authentication. To embed snippets, a project must be public.")}},s=Object(i.a)("Can't create snippet: %{err}"),l=Object(i.a)("Can't update snippet: %{err}"),u=Object(i.a)("Can't fetch content for the blob: %{err}"),a="create",d="update",c="move",p="delete",f=10,m=Object(i.a)("Other visibility settings have been disabled by the administrator."),g=Object(i.a)("Visibility settings have been disabled by the administrator."),h=Object(i.i)("Snippets|Snippets are limited to %{total} files.")},nuJP:function(t,e,n){"use strict";n("eJ0a");var i=n("o4PY"),o=n.n(i),r=n("AxB5"),s=n("O/A7"),l=n("6R0y");const u={[l.a.top]:"gl-border-t gl-border-t-dropdown-divider gl-pt-2 gl-mt-2",[l.a.bottom]:"gl-border-b gl-border-b-dropdown-divider gl-pb-2 gl-mb-2"};var a={name:l.b,components:{GlDisclosureDropdownItem:r.a},props:{group:{type:Object,required:!1,default:null,validator:s.c},bordered:{type:Boolean,required:!1,default:!1},borderPosition:{type:String,required:!1,default:l.a.top,validator:function(t){return Object.keys(l.a).includes(t)}}},computed:{borderClass(){return this.bordered?u[this.borderPosition]:null},showHeader(){var t;return this.$scopedSlots["group-label"]||(null===(t=this.group)||void 0===t?void 0:t.name)},groupLabeledBy(){return this.showHeader?this.nameId:null},siblingsHaveIcons(){return Object(s.a)(this.group.items)}},created(){this.nameId=o()("gl-disclosure-dropdown-group-")},methods:{handleAction(t){this.$emit("action",t)},uniqueItemId:()=>o()("disclosure-item-")}},d=n("tBpV"),c=Object(d.a)(a,(function(){var t=this,e=t._self._c;return e("li",{class:t.borderClass},[t.showHeader?e("div",{staticClass:"gl-py-2 gl-pl-4 gl-text-sm gl-font-bold gl-text-strong",attrs:{id:t.nameId}},[t._t("group-label",(function(){return[t._v(t._s(t.group.name))]}))],2):t._e(),t._v(" "),e("ul",{staticClass:"gl-new-dropdown-item-group gl-mb-0 gl-list-none gl-pl-0",attrs:{"aria-labelledby":t.groupLabeledBy}},[t._t("default",(function(){return t._l(t.group.items,(function(n){return e("gl-disclosure-dropdown-item",{key:t.uniqueItemId(),attrs:{"siblings-have-icons":t.siblingsHaveIcons,item:n},on:{action:t.handleAction},scopedSlots:t._u([{key:"list-item",fn:function(){return[t._t("list-item",null,{item:n})]},proxy:!0}],null,!0)})}))}))],2)])}),[],!1,null,null,null);e.a=c.exports}}]); 2//# sourceMappingURL=commons-pages.projects.snippets.edit-pages.projects.snippets.new-pages.projects.snippets.show-pages.-522a9882.ad37c30c.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.