(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97362],{2581:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>a,Te:()=>i,cf:()=>s});var r=n(38434);let i=e=>r.Ay.success(e,{duration:4e3,position:"top-right"}),a=e=>r.Ay.error(e,{duration:5e3,position:"top-right"}),s=e=>(0,r.Ay)(e,{duration:4e3,position:"top-right",icon:"ℹ️"})},54555:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(95155),i=n(8267),a=n(86850),s=n(18150),o=n(76576);function c({children:e,featureLabel:t="This feature"}){let{premium:n,loading:c}=(0,a.i)(),l=(0,s.O)();return c?(0,r.jsx)("div",{className:"flex min-h-[40vh] items-center justify-center",children:(0,r.jsx)("div",{className:"h-10 w-10 animate-spin rounded-full border-2 border-primary-600 border-t-transparent"})}):n?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsxs)("div",{className:"mx-auto max-w-lg px-4 py-16 text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 inline-flex h-14 w-14 items-center justify-center rounded-full bg-violet-100 text-violet-700",children:(0,r.jsx)(i.PXj,{className:"h-7 w-7","aria-hidden":!0})}),(0,r.jsx)("h1",{className:"text-xl font-semibold text-slate-900",children:"Premium feature"}),(0,r.jsxs)("p",{className:"mt-3 text-sm text-slate-600",children:[t," is available on the Premium plan. Your academy is currently on the Starter plan (including the 15-day free trial)."]}),(0,r.jsx)(o.j,{href:l,className:"mt-6 inline-flex rounded-lg bg-primary-700 px-5 py-2.5 text-sm font-semibold text-white hover:bg-primary-800",children:"Back to academy home"})]})}},98904:(e,t,n)=>{Promise.resolve().then(n.bind(n,60585))},99462:(e,t,n)=>{"use strict";n.d(t,{Fb:()=>h,b:()=>s,sK:()=>x});var r=n(73321),i=n(12115);let a="academy-route-change";function s(){window.dispatchEvent(new Event(a))}let o=new Set,c=!1;function l(){c||(c=!0,setTimeout(()=>{c=!1,o.forEach(e=>{try{e()}catch{}})},0))}function d(e){o.add(e);let t=()=>l();return window.addEventListener("popstate",t),window.addEventListener(a,t),()=>{o.delete(e),window.removeEventListener("popstate",t),window.removeEventListener(a,t)}}function u(){return window.location.pathname||"/"}function m(){return window.location.search||""}function h(){return(0,i.useSyncExternalStore)(d,m,()=>"")}function x(){let e=(0,r.usePathname)()||"/",t=(0,i.useSyncExternalStore)(d,u,()=>e);return((0,i.useEffect)(()=>{l()},[]),t&&t!==e)?t:e}}},e=>{e.O(0,[24777,92619,59185,98500,140,76541,33206,60585,28441,93794,77358],()=>e(e.s=98904)),_N_E=e.O()}]);