티스토리 수익 글 보기
performance.mark(“js-parse-end:pricing-4eaf8b23ea2b1979.js”);
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“18156″],{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:()=>w,on:()=>q});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 c=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:”ID”,selector:function(e){var t;if(t=e.match(c))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 u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|[‘”][^'”]*[‘”]|[^\[\]'”]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function p(e,t){var n,r,i,o,s,c,l=(e=e.slice(0).concat(e.default)).length,a=t,p=[];do if(u.exec(“”),(i=u.exec(a))&&(a=i[3],i[2]||!a)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,s=o?h:f,c=s[e];c||(c=new r,s[e]=c,document.addEventListener(e,k,o)),c.add(t,n)}function w(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},14866(e,t,n){var r=n(21403),i=n(21744);(0,r.lB)(“.js-pricing-testimonial-logo”,()=>{for(let e of document.querySelectorAll(“.js-pricing-testimonial-logo”))e.addEventListener(“mouseenter”,u)}),(0,i.on)(“click”,”.js-pricing-testimonial-logo”,e=>{u(e)});let o={free:{cost:0},business:{cost:0},business_plus:{cost:0}};function s(){for(let e of document.querySelectorAll(“.js-computed-value”)){let t=o[e.getAttribute(“data-plan”).toString()],n=Number(t?.price||0);e.textContent=Number.isInteger(n)?n.toString():n.toFixed(2)}}function c(){let e=document.querySelector(‘input[type=”radio”][name=”billing_cycle”]:checked’);return e?e.value.trim():”monthly”}function l(){for(let e of document.querySelectorAll(“.js-pricing-cost-suffix”))if(“monthly”===c()||e.classList.contains(“js-monthly-suffix”))e.textContent=”per user/month”;else if(“yearly”===c()){let t=e.getAttribute(“data-plan”);t?.toLowerCase()===”free”?e.textContent=”per month forever”:e.textContent=”per user/month”}}function a(){let e=”yearly”===c()?”year”:”month”;for(let t of document.querySelectorAll(“a.js-pricing-upgrade-path”)){let n=t.getAttribute(“href”);n.includes(“plan_duration=month”)?t.setAttribute(“href”,n.replace(“plan_duration=month”,`plan_duration=${e}`)):n.includes(“plan_duration=year”)?t.setAttribute(“href”,n.replace(“plan_duration=year”,`plan_duration=${e}`)):t.setAttribute(“href”,n.concat(“&”,`plan_duration=${e}`))}}function u(e){let t,n,r=e.currentTarget;if(!(r instanceof HTMLElement)||r.classList.contains(“pricing-testimonial-logo-active”))return;let i=(t=p(r),Array.from(document.querySelectorAll(“.js-pricing-testimonial-quote”))[t]),o=(n=p(r),Array.from(document.querySelectorAll(“.js-pricing-testimonial-img”))[n]),s=document.querySelector(“.pricing-testimonial-logo-active”);for(let e of(s&&(s.classList.remove(“pricing-testimonial-logo-active”),s.setAttribute(“aria-selected”,”false”)),r.classList.add(“pricing-testimonial-logo-active”),r.setAttribute(“aria-selected”,”true”),document.querySelectorAll(“.pricing-testimonial-content-active”)))e.classList.remove(“pricing-testimonial-content-active”);i.classList.add(“pricing-testimonial-content-active”),o.classList.add(“pricing-testimonial-content-active”)}function p(e){return Array.from(document.querySelectorAll(“.js-pricing-testimonial-logo”)).indexOf(e)}function d(e){for(let t of document.querySelectorAll(“.js-compare-features-item”))t.getAttribute(“data-plan”)===e?t.style.display=”block”:t.style.display=”none”}function f(){for(let e of document.querySelectorAll(“.js-monthly-cost”))e.hidden=”yearly”===c();for(let e of document.querySelectorAll(“.js-yearly-cost”))e.hidden=”monthly”===c()}(0,r.lB)(“#plan-costs-json”,e=>{let t=JSON.parse(e.getAttribute(“data-plan-costs”)||”{}”);for(let e of Object.keys(t))o[e]=t[e];f(),s(),l(),document.querySelector(“.js-pricing-plan.js-forced-recommended-plan”)||function(e){let t=[“pricing-recommended-plan”];for(let e of document.querySelectorAll(“.js-pricing-plan”)){e.classList.remove(…t);let n=Number(e.getAttribute(“data-min-seats”)),r=Number(e.getAttribute(“data-max-seats”));n<=5&&5<=r&&(e.querySelectorAll(".js-recommended-plan-caption")[0].hidden=!1,e.classList.add(...t))}}(5),a()}),(0,i.on)("click",'input[type="radio"][name="billing_cycle"]',()=>{let e,t;f(),s(),a(),l(),e=document.querySelector(‘input[type=”radio”][name=”billing_cycle”]:checked’),t=document.querySelector(‘input[type=”radio”][name=”billing_cycle”]:not(:checked)’),e.setAttribute(“aria-checked”,”true”),e.setAttribute(“checked”,””),t.setAttribute(“aria-checked”,”false”),t.removeAttribute(“checked”)}),(0,r.lB)(“.js-compare-features-selected”,e=>{d(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&&(d(t),n.textContent=t)})}},function(e){e.O(0,[“96232”],function(){return e(e.s=14866)}),e.O()}]);
//# sourceMappingURL=pricing-4eaf8b23ea2b1979-bc33f6096225c995.js.map