1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7708],{7752:(e,t,r)=>{r.d(t,{$:()=>y});var n=r(37876),l=r(14232);let i={listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",span:"span"},s={[i.listItem]:"listItem",[i.oListItem]:"oListItem",[i.list]:"list",[i.oList]:"oList"},o=e=>(t,r,n,l,i)=>{let o=e[s[t]||t];if(o)return o({type:t,node:r,text:n,children:l,key:i})},a=()=>(++a.i).toString();a.i=0;let d=(e,t=[])=>({key:a(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),u=e=>d({type:i.span,text:e,spans:[]}),c=e=>{if("text"in e)return d(e,p(e.spans,e));if("items"in e){let t=[];for(let r=0;r<e.items.length;r++)t.push(c(e.items[r]));return d(e,t)}return d(e)},p=(e,t,r)=>{if(!e.length)return[u(t.text)];let n=e.slice(0);n.sort((e,t)=>e.start-t.start||t.end-e.end);let l=[];for(let e=0;e<n.length;e++){let i=n[e],s=r&&r.start||0,o=i.start-s,a=i.end-s,c=t.text.slice(o,a),h=[];for(let t=e;t<n.length;t++){let e=n[t];e!==i&&(e.start>=i.start&&e.end<=i.end?(h.push(e),n.splice(t,1),t--):e.start<i.end&&e.end>i.start&&(h.push({...e,end:i.end}),n[t]={...e,start:i.end}))}0===e&&o>0&&l.push(u(t.text.slice(0,o)));let m={...i,text:c};l.push(d(m,p(h,{...t,text:c},i))),a<t.text.length&&l.push(u(t.text.slice(a,n[e+1]?n[e+1].start-s:void 0)))}return l},h=(e,t)=>{let r=[];for(let n=0;n<e.length;n++){let l=e[n],i=t(l.type,l.node,l.text,h(l.children,t),l.key);null!=i&&r.push(i)}return r};var m=r(50967);function f(e){return`https://prismic.dev/msg/react/v3.2.2/${e}`}let g={Any:"Any",Document:"Document",Media:"Media",Web:"Web"},x=(0,l.forwardRef)(function(e,t){let{field:r,document:l,linkResolver:i,internalComponent:s,externalComponent:o,children:a,...d}=e;if(m.A)if(r)if(r.link_type)("text"in r?Object.keys(r).length>2:Object.keys(r).length>1)&&!("url"in r||"uid"in r||"id"in r)&&console.warn(`[PrismicLink] The provided field is missing required properties to properly render a link. The link may not render correctly. For more details, see ${f("missing-link-properties")}`,r);else throw console.error(`[PrismicLink] This "field" prop value caused an error to be thrown. 2`,r),Error(`[PrismicLink] The provided field is missing required properties to properly render a link. The link will not render. For more details, see ${f("missing-link-properties")}`);else l&&!("url"in l||"id"in l)&&console.warn(`[PrismicLink] The provided document is missing required properties to properly render a link. The link may not render correctly. For more details, see ${f("missing-link-properties")}`,l);let{href:u,rel:c,...p}=((e,t={})=>{let r;if(e&&("link_type"in e?null!=(r=e)&&("id"in r||"url"in r):e)){let r="target"in e?e.target:void 0,n=((e,...t)=>{let r,n;if(!e)return null;let l="link_type"in e?e:(n=e,{link_type:g.Document,id:n.id,uid:n.uid||void 0,type:n.type,tags:n.tags,lang:n.lang,url:null==n.url?void 0:n.url,slug:n.slugs?.[0],...n.data&&Object.keys(n.data).length>0?{data:n.data}:{}}),[i]=t;switch(r="function"==typeof i||null==i?{linkResolver:i}:{...i},l.link_type){case g.Media:case g.Web:return"url"in l?l.url:null;case g.Document:if("id"in l&&r.linkResolver){let e=r.linkResolver(l);if(null!=e)return e}if("url"in l&&l.url)return l.url;return null;case g.Any:default:return null}})(e,t.linkResolver),l=null==n?void 0:n,i="string"==typeof l&&!(e=>{let t=/^(\/(?!\/)|#)/.test(e),r=!t&&!/^https?:\/\//.test(e);return t&&!r})(l),s=t.rel?t.rel({href:l,isExternal:i,target:r}):i?"noreferrer":void 0;return{href:l,target:r,rel:null==s?void 0:s}}return{}})(r??l,{linkResolver:i,rel:"function"==typeof d.rel?d.rel:void 0}),h=c;"rel"in d&&"function"!=typeof d.rel&&(h=d.rel);let x=("href"in d?d.href:u)||"",v=s||"a",y=x&&!function(e){let t=/^(\/(?!\/)|#)/.test(e),r=!t&&!/^https?:\/\//.test(e);return t&&!r}(x)?o||"a":v;return(0,n.jsx)(y,{ref:t,...p,...d,href:x,rel:h,children:"children"in e?a:null==r?void 0:r.text})}),v=e=>{if("direction"in e&&"rtl"===e.direction)return"rtl"},y=e=>{let t,{linkResolver:r,field:s,fallback:d,components:u,externalLinkComponent:p,internalLinkComponent:g,...y}=e;if(m.A&&"className"in y&&console.warn(`[PrismicRichText] className cannot be passed to <PrismicRichText> since it renders an array without a wrapping component. For more details, see ${f("
2classname-is-not-a-valid-prop")}.`,s),!(e=>null!=e&&(1===e.length&&"text"in e[0]?!!e[0].text:!!e.length))(s))return null!=d?(0,n.jsx)(n.Fragment,{children:d}):null;let k=((...e)=>(...t)=>{for(let r=0;r<e.length;r++){let n=e[r];if(n){let e=n(...t);if(null!=e)return e}}})("object"==typeof u?o(u):u,(e=>o({heading1:({node:e,children:t,key:r})=>(0,n.jsx)("h1",{dir:v(e),children:t},r),heading2:({node:e,children:t,key:r})=>(0,n.jsx)("h2",{dir:v(e),children:t},r),heading3:({node:e,children:t,key:r})=>(0,n.jsx)("h3",{dir:v(e),children:t},r),heading4:({node:e,children:t,key:r})=>(0,n.jsx)("h4",{dir:v(e),children:t},r),heading5:({node:e,children:t,key:r})=>(0,n.jsx)("h5",{dir:v(e),children:t},r),heading6:({node:e,children:t,key:r})=>(0,n.jsx)("h6",{dir:v(e),children:t},r),paragraph:({node:e,children:t,key:r})=>(0,n.jsx)("p",{dir:v(e),children:t},r),preformatted:({node:e,key:t})=>(0,n.jsx)("pre",{children:e.text},t),strong:({children:e,key:t})=>(0,n.jsx)("strong",{children:e},t),em:({children:e,key:t})=>(0,n.jsx)("em",{children:e},t),listItem:({node:e,children:t,key:r})=>(0,n.jsx)("li",{dir:v(e),children:t},r),oListItem:({node:e,children:t,key:r})=>(0,n.jsx)("li",{dir:v(e),children:t},r),list:({children:e,key:t})=>(0,n.jsx)("ul",{children:e},t),oList:({children:e,key:t})=>(0,n.jsx)("ol",{children:e},t),image:({node:t,key:r})=>{let l=(0,n.jsx)("img",{src:t.url,alt:t.alt??void 0,"data-copyright":t.copyright?t.copyright:void 0});return(0,n.jsx)("p",{className:"block-img",children:t.linkTo?(0,n.jsx)(x,{linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,field:t.linkTo,children:l}):l},r)},embed:({node:e,key:t})=>(0,n.jsx)("div",{"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name,dangerouslySetInnerHTML:{__html:e.oembed.html??""}},t),hyperlink:({node:t,children:r,key:l})=>(0,n.jsx)(x,{field:t.data,linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,children:r},l),label:({node:e,children:t,key:r})=>(0,n.jsx)("span",{className:e.data.label,children:t},r),span:({text:e,key:t})=>{let r=[],i=0;for(let t of e.split("\n"))i>0&&r.push((0,n.jsx)("br",{},`${i}__break`)),r.push((0,n.jsx)(l.Fragment,{children:t},`${i}__line`)),i++;return(0,n.jsx)(l.Fragment,{children:r},t)}}))({linkResolver:r,internalLinkComponent:g,externalLinkComponent:p})),j=(t=(e,t,r,n,i)=>{let s=k(e,t,r,n,i);return(0,l.isValidElement)(s)&&null==s.key?(0,l.cloneElement)(s,{key:i}):s},h((e=>{let t=(e=>{let t=e.slice(0);for(let e=0;e<t.length;e++){let r=t[e];if(r.type===i.listItem||r.type===i.oListItem){let n=[r];for(;t[e+1]&&t[e+1].type===r.type;)n.push(t[e+1]),t.splice(e,1);r.type===i.listItem?t[e]={type:i.list,items:n}:t[e]={type:i.oList,items:n}}}return t})(e),r=[];for(let e=0;e<t.length;e++)r.push(c(t[e]));return{key:a(),children:r}})(s).children,t));return j?(0,n.jsx)(n.Fragment,{children:j}):null!=d?(0,n.jsx)(n.Fragment,{children:d}):null}},10143:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(37876),l=r(47030),i=r(5893),s=r(26015),o=r(89099),a=r(24474);let d=e=>{let{children:t,pageProps:r}=e,d=(0,o.useRouter)(),{slug:u}=d.query,c=d.pathname.split("/").filter(Boolean);if("courses-i-teach"===c[1]&&c[2]){var p;c[2]=u&&null!=(p=u[0])?p:""}return"auth"===c[0]&&(c=[]),"courses-i-teach"===c[1]&&c[2]&&c.pop(),c=c.map(e=>("order"===e&&(e="orders"),e)),(0,n.jsx)(i.Ay,{pageProps:r,children:(0,n.jsx)(s.A,{isInverse:!0,hideFixedMenu:!0,children:(0,n.jsxs)(a.az,{csx:{m:"auto",mt:"90px",paddingTop:"36px",minHeight:"calc(100vh - 90px)",maxWidth:"calc(100vw / 12 * 10)"},children:[(null==c?void 0:c.length)>1&&(0,n.jsxs)(a.BI,{csx:{mb:"54px"},children:["orders"===c[0]&&(0,n.jsx)(l.A,{href:"/profile",children:"My Account"}),c.map((e,t)=>{let r=[...c];return r.splice(t+1,c.length-t),"profile"===e&&(e="My Account"),"courses-i-teach"===e&&(e="Courses I Teach"),(0,n.jsx)(l.A,{href:"/".concat(r.join("/")),disabled:t===c.length-1,csx:{textTransform:"capitalize",pointerEvents:"all"},children:e.replace("-"," ")},e)})]}),(0,n.jsx)(a.az,{csx:{gridColumnStart:1,gridColumnEnd:13,desktop:{gridColumnStart:4}},children:t})]})})})}},15873:(e,t,r)=>{r.d(t,{L:()=>l});var n=r(79698);let l=e=>{var t;if(!e||!(null==e?void 0:e.length))return null;let r=e[0].id,l=e[0].next_charge_scheduled_at;return{membershipId:r,membershipExpireDate:null!=(t=(0,n.Y)(l,!0))?t:"Please contact Silvercore for support"}}},26015:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(37876),l=r(14232),i=r(71752),s=r(27567),o=r(29730),a=r(24474);let d=e=>{let{children:t,setAnimation:r,animation:d,isInverse:u,hideFixedMenu:c}=e,{setHeroView:p,setHeroStart:h,setMenuVisualInverse:m}=(0,i.mL)(),f=(0,l.useRef)(null),[g]=(0,o.l)(),x=g&&g<(0,s.b)("xTablet");(0,l.useEffect)(()=>{var e;return window.addEventListener("scroll",v),u&&m(!0),window.pageYOffset>
20&&v(),f.current&&window.pageYOffset<(null==(e=f.current)?void 0:e.clientHeight)&&p(!0),()=>{m(!1),window.removeEventListener("scroll",v)}},[]),(0,l.useEffect)(()=>{x&&v()},[x]);let v=()=>{var e;let t=null==(e=f.current)?void 0:e.clientHeight;c||p(!(t&&window.pageYOffset>t)),r&&!1===d&&(r(!0),h())};return(0,n.jsx)(a.az,{ref:f,children:t})}},27567:(e,t,r)=>{r.d(t,{b:()=>l});var n=r(28613);let l=e=>parseInt("".concat(n.fi[e]))},29730:(e,t,r)=>{r.d(t,{l:()=>l});var n=r(14232);function l(){let[e,t]=(0,n.useState)([0,0]);return(0,n.useEffect)(()=>{var e;function n(){var e,n;t([null==(e=r.g.window)?void 0:e.innerWidth,null==(n=r.g.window)?void 0:n.innerHeight])}return null==(e=r.g.window)||e.addEventListener("resize",n),n(),()=>{var e;return null==(e=r.g.window)?void 0:e.removeEventListener("resize",n)}},[]),e}},31240:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(37876),l=r(24474);let i=e=>{let{text:t,additionalMessage:r,breakLineAfterDots:i}=e,s=i?t.replace(". ",".\n"):t;return(0,n.jsxs)(l.az,{csx:{bgColor:"red01",color:"white",fontSize:"body",p:"lg",my:"lg"},children:[String(s),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),r]})]})}},44737:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(14232);let l=e=>{let[t,r]=(0,n.useState)(null),[l,i]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{if(!e){r(null),i(!1);return}fetch("/api/recharge/membership?email=".concat(encodeURIComponent(e))).then(async e=>{let t=await e.json();if(200!==e.status){r(null),i(!1);return}r(t),i(!1)})},[e]),{subscriptions:t,isLoading:l}}},50967:(e,t,r)=>{r.d(t,{A:()=>n});let n=!1},61806:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(37876),l=r(14232),i=r(89099),s=r(31021);let o=function(e){let{Component:t,isPrivate:r=!0}=e;return e=>{let o=(0,i.useRouter)(),{data:a}=(0,s.useCustomer)();return(0,l.useEffect)(()=>{!r&&a&&o.push("/profile"),r&&null===a&&o.push("/auth")},[a,o]),(0,n.jsx)(t,{...e})}}}}]);
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.