performance.mark("js-parse-end:premium-support-7d051b40379d2662.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["15461"],{21744(e,t,n){function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>C,on:()=>S});var i,o=window.document.documentElement,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return s.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var u=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(u))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);else if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var a=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(a))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function p(e,t){var n,r,i,o,s,u,l=(e=e.slice(0).concat(e.default)).length,a=t,p=[];do if(c.exec(""),(i=c.exec(a))&&(a=i[3],i[2]||!a)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,s=o?h:d,u=s[e];u||(u=new r,s[e]=u,document.addEventListener(e,k,o)),u.add(t,n)}function C(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},55787(e,t,n){var r=n(21403),i=n(21744);let o="premium",s={ghes:[[">=2000",null,"premium-plus"],[">=6000",null,"premium-plus"],["<6000",null,"premium-plus"],["<1000",null,"enterprise"],[null,"high","premium-plus"],[null,"standard","premium"]],"ghec-ghes":[[null,null,"premium-plus"]],ghec:[[">=6000",null,"premium-plus"],["<1000",null,"enterprise"],[null,"high","premium-plus"],[null,"standard","premium"]]};function u(e){for(let t of document.querySelectorAll(".js-compare-features-item"))t.getAttribute("data-plan")===e?t.style.display="block":t.style.display="none"}(0,r.lB)(".js-compare-features-selected",e=>{u(e.getAttribute("data-default-plan"))}),(0,i.on)("click",".js-compare-features-nav",function(e){e.preventDefault();let t=e.currentTarget.getAttribute("data-plan"),n=document.querySelector(".js-compare-features-selected");n&&null!==t&&(u(t),n.textContent=e.currentTarget.textContent)}),(0,i.on)("click",".js-plans-dropdown-item",function(e){e.preventDefault();let t=e.currentTarget.getAttribute("data-value"),n=e.currentTarget.closest(".js-plans-dropdown");if(!n)return;n.removeAttribute("open"),t&&n.setAttribute("data-value",t);let r=n.querySelector(".js-plans-dropdown-title");r&&(r.textContent=e.currentTarget.textContent),function(){let e=document.querySelectorAll(".js-plans-dropdown"),t={};for(let n of e){let e=n.getAttribute("data-type");if(!e)continue;let r=n.getAttribute("data-value");t[e]=r}let n=function(e,t,n){if(!e)return;let r=s[e];if(r){for(let e of r)if((t===e[0]||null===e[0])&&(n===e[1]||null===e[1])){if(e[2])return e[2];return}}}(t.product,t.seats,t.complexity);var r=n||o;for(let e of document.querySelectorAll(".js-plan"))e.getAttribute("data-plan")===r?e.setAttribute("data-recommended-plan","true"):e.setAttribute("data-recommended-plan","false");!function(e){let t=document.querySelector(`.js-compare-features-nav[data-plan="${e}"]`);if(!t)return;let n=document.querySelector(".js-compare-features-selected");n&&(n.textContent=t.textContent,n.setAttribute("data-default-plan",e)),u(e)}(n||o)}()})}},function(e){e.O(0,["96232"],function(){return e(e.s=55787)}),e.O()}]); //# sourceMappingURL=premium-support-7d051b40379d2662-5a2742c68ede49fd.js.map