1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1473],{18183:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/education/cart",function(){return s(45990)}])},12549:function(e,t,s){"use strict";var a=s(85893);s(67294);var l=s(64328);t.Z=e=>{let{type:t,className:s,disabled:n,disabledClassName:r="bg-gray-100",enabledClassName:i="bg-primary hover:bg-primary-hover",spinnerClassName:o="left-6",isLoading:c=!1,onClick:d,children:u}=e;return(0,a.jsxs)("button",{disabled:n||c,type:t,className:"relative ".concat(s," ").concat(n?r:i),onClick:d,children:[u,c&&(0,a.jsx)(l.Z,{className:"".concat(o," absolute animate-spin"),size:24})]})}},49764:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var a=s(85893),l=s(69692),n=s(19256);s(67294);var r=s(2962);function i(e){let{children:t}=e;return(0,a.jsxs)("section",{className:"flex h-screen flex-col justify-between",children:[(0,a.jsx)(r.PB,{title:"Level up with Stage 32 Education",description:"The worldwide leader in entertainment industry education. Choose from over 3,000 hours of webinars, classes and labs taught by the industry's top professionals.",openGraph:{title:"Level up with Stage 32 Education",description:"The worldwide leader in entertainment industry education. Choose from over 3,000 hours of webinars, classes and labs taught by the industry's top professionals.",images:[{url:"http://www.stage32.com/education/education-og-min.png",secureUrl:"https://www.stage32.com/education/education-og-min.png"}]}}),(0,a.jsx)(l.Z,{}),(0,a.jsx)("main",{className:"flex-1 bg-[#000000] pt-16 font-body text-black lg:pt-24",children:t}),(0,a.jsx)(n.Z,{})]})}},45990:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return $},default:function(){return G}});var a=s(85893),l=s(69446),n=s(8100),r=s(67294),i=s(9836),o=s(49764),c=s(48583),d=s(14952),u=s(39188),x=s(775),m=s(44166),h=s(25675),p=s.n(h),f=s(41664),g=s.n(f),v=s(81021),b=s(229),w=s(9687),j=s(51124),N=s(25852),y=s(95793),C=s(10969),k=s(55337),F=s(22431),S=s(42799),L=s(12549),D=s(81424),M=s(18212);let z="".concat("https://backend.stage32.com","/api/v2/legacy");function A(e){let{onSuccess:t,onForgotPassword:s}=e,[l,n]=(0,r.useState)(""),[i,o]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),[m,h]=(0,r.useState)(null),p=(0,r.useMemo)(()=>""!==l&&""!==i,[l,i]),f=async e=>{e.preventDefault(),h(null),x(!0);try{let e=await fetch("".concat(z,"/validate-login"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l,password:i})}),s=await e.json();if(!e.ok||!s.success)throw Error(s.message||"Login failed. Please check your credentials.");t()}catch(e){h(e.message||"Login failed. Please check your credentials."),x(!1)}};return(0,a.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:"Stage 32 Email Address"}),(0,a.jsx)("input",{type:"email",placeholder:"[email protected]",autoFocus:!0,className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:l,onChange:e=>n(e.target.value),autoComplete:"email",disabled:u})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:"Password"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:c?"text":"password",placeholder:"Your password",className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 pr-10 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:i,onChange:e=>o(e.target.value),autoComplete:"current-password",disabled:u}),(0,a.jsx)("button",{type:"button",onClick:()=>d(!c),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-400 hover:text-neutral-300",disabled:u,children:c?(0,a.jsx)(D.Z,{className:"h-5 w-5"}):(0,a.jsx)(M.Z,{className:"h-5 w-5"})})]})]}),!!m&&(0,a.jsx)("div",{className:"rounded-lg bg-red-900/30 px-4 py-2 text-sm text-red-400",children:m}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(L.Z,{type:"submit",disabled:!p,isLoading:u,className:"flex w-full items-center justify-center rounded-lg py-3 text-sm font-bold text-white",enabledClassName:"bg-[#BD001D] hover:bg-[#a30019]",disabledClassName:"bg-neutral-700 cursor-not-allowed",children:u?"Logging In...":"Login to Stage 32"})}),s&&(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{type:"button",onClick:s,className:"text-sm text-neutral-400 transition-colors hover:text-white",children:"Forgot password?"})})]})}let E="".concat("https://backend.stage32.com","/api/v2/legacy");function U(e){let{onSuccess:t}=e,[s,l]=(0,r.useState)(""),[n,i]=(0,r.useState)(""),[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(""),[x,m]=(0,r.useState)(!1),[h,p]=(0,r.useState)(!1),[f,g]=(0,r.useState)(null),v=(0,r.useMemo)(()=>""!==s&&""!==n&&""!==o&&""!==d,[s,n,o,d]),b=async e=>{e.preventDefault(),g(null),p(!0);try{let e=await fetch("".concat(E,"/create-account"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:d,first_name:s,last_name:n})}),a=await e.json();if(!e.ok||!a.success)throw Error(a.message||"Registration failed. Please try again.");t()}catch(e){g(e.message||"Registration failed. Please try again."),p(!1)}};return(0,a.jsxs)("form",{onSubmit:b,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:["First Name ",(0,a.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,a.jsx)("input",{type:"text",placeholder:"First name",autoFocus:!0,className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:s,onChange:e=>l(e.target.value),autoComplete:"given-name",disabled:h})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:["Last Name ",(0,a.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,a.jsx)("input",{type:"text",placeholder:"Last name",className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:n,onChange:e=>i(e.target.value),autoComplete:"family-name",disabled:h})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:["Email Address ",(0,a.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,a.jsx)("input",{type:"email",placeholder:"[email protected]",className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:o,onChange:e=>c(e.target.value),autoComplete:"email",disabled:h})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mb-1 block text-sm font-medium text-neutral-300",children:["Password ",(0,a.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:x?"text":"password",placeholder:"Create a secure password",className:"w-full rounded-lg border border-neutral-700 bg-neutral-800 px-4 py-2.5 pr-10 text-white placeholder-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-500",value:d,onChange:e=>u(e.target.value),autoComplete:"new-password",disabled:h}),(0,a.jsx)("button",{type:"button",onClick:()=>m(!x),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-400 hover:text-neutral-300",disabled:h,children:x?(0,a.jsx)(D.Z,{className:"h-5 w-5"}):(0,a.jsx)(M.Z,{className:"h-5 w-5"})})]})]}),!!f&&(0,a.jsx)("div",{className:"rounded-lg bg-red-900/30 px-4 py-2 text-sm text-red-400",children:f}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(L.Z,{type:"submit",disabled:!v,isLoading:h,className:"flex w-full items-center justify-center rounded-lg py-3 text-sm font-bold text-white",enabledClassName:"bg-[#BD001D] hover:bg-[#a30019]",disabledClassName:"bg-neutral-700 cursor-not-allowed",children:h?"Creating Account...":"Create Stage 32 Account"})}),(0,a.jsxs)("p",{className:"text-center text-xs text-neutral-500",children:["By signing up, you agree to our"," ",(0,a.jsx)("a",{href:"/terms",target:"_blank",className:"text-neutral-300 transition-colors hover:text-white",children:"Terms"})," ","and"," ",(0,a.jsx)("a",{href:"/privacy",target:"_blank",className:"text-neutral-300 transition-colors hover:text-white",children:"Privacy Policy"}),"."]})]})}function R(e){let{processingState:t,errorMessage:s,onRetry:l,onClose:n}=e,r="error"===t,i=r?s:function(e){switch(e){case"authenticating":return"Logging you in...";case"loading-cart":return"Preparing your cart...";case"redirecting":return"Redirecting to checkout...";default:return""}}(t);return(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center rounded-2xl bg-neutral-900/95 backdrop-blur-sm transition-opacity duration-300",children:r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.Z,{className:"mb-4 h-12 w-12 text-red-400",weight:"fill"}),(0,a.jsx)("p",{className:"mb-6 px-6 text-center text-neutral-300",children:i}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{onClick:l,className:"rounded-lg bg-[#BD001D] px-6 py-2 text-sm font-semibold text-white hover:bg-[#a30019]",children:"Try Again"}),(0,a.jsx)("button",{onClick:n,className:"rounded-lg bg-neutral-700 px-6 py-2 text-sm font-semibold text-white hover:bg-neutral-600",children:"Cancel"})]})]}):(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(k.Z,{className:"mb-4 h-10 w-10 animate-spin text-[#BD001D]",weight:"bold"}),(0,a.jsx)("p",{className:"text-neutral-300 transition-opacity duration-200",style:{animation:"fadeIn 200ms ease-out"},children:i},t)]})})}function P(e){let{isOpen:t,onClose:s,onSuccess:l,onGuestCheckout:n,onRetry:i,initialTab:o="login",processingState:c="idle",errorMessage:d}=e,[u,x]=(0,r.useState)(o),m="idle"!==c;(0,r.useEffect)(()=>{m&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()},[m]);let h=()=>{l()},p=()=>{m&&"error"!==c||s()};return(0,a.jsx)(N.u,{appear:!0,show:t,as:r.Fragment,children:(0,a.jsxs)(y.V,{as:"div",className:"relative z-50",onClose:p,children:[(0,a.jsx)(N.u.Child,{as:r.Fragment,...S.SM,children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm"})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,a.jsx)(N.u.Child,{as:r.Fragment,...S.Af,children:(0,a.jsxs)(y.V.Panel,{className:"relative w-full max-w-md overflow-hidden rounded-2xl bg-neutral-900 p-6 shadow-xl",children:[m&&(0,a.jsx)(R,{processingState:c,errorMessage:d,onRetry:i,onClose:s}),(0,a.jsx)("button",{onClick:p,className:"absolute right-4 top-4 text-neutral-400 hover:text-white ".concat(m&&"error"!==c?"pointer-events-none opacity-50":""),disabled:m&&"error"!==c,children:(0,a.jsx)(F.Z,{className:"h-5 w-5",weight:"bold"})}),(0,a.jsxs)("div",{className:"mb-6 text-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 608 182",className:"mx-auto mb-3 h-10 w-auto",children:(0,a.jsxs)("g",{children:[(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#FFFFFF",d:"M18.1,108.3c0.1,5,2.6,14.5,19.1,14.5c8.9,0,18.8-2.1,18.8-11.7c0-7-6.8-8.9-16.3-11.2L30,97.8 C15.4,94.4,1.4,91.1,1.4,71.3c0-10,5.4-27.7,34.6-27.7c27.6,0,35,18.1,35.1,29.1H53c-0.5-4-2-13.5-18.4-13.5 c-7.1,0-15.7,2.6-15.7,10.8c0,7,5.8,8.5,9.5,9.4l21.9,5.4c12.3,3,23.6,8,23.6,24.2c0,27.1-27.6,29.5-35.5,29.5 C5.6,138.4,0,119.5,0,108.3H18.1z"}),(0,a.jsx)("path",{fill:"#FFFFFF",d:"M124,136h-18.8V61.9H78V46h73.2v15.9H124V136z"}),(0,a.jsx)("path",{fill:"#FFFFFF",d:"M163.8,136H144l32.1-90h21.7l31.7,90h-20.4l-5.8-18.6h-33.2L163.8,136z M175.1,101.9h22.9l-11.2-35.6h-0.3 L175.1,101.9z"}
1),(0,a.jsx)("path",{fill:"#FFFFFF",d:"M277.6,87.5h37.6V136h-12.5l-1.9-11.3c-4.8,5.5-11.7,13.7-28.1,13.7c-21.7,0-41.4-15.5-41.4-47.1 c0-24.4,13.5-47.6,43.8-47.6h0.3c27.6,0,38.5,17.9,39.5,30.3H296c0-3.5-6.4-14.8-19.7-14.8c-13.4,0-25.8,9.3-25.8,32.3 c0,24.6,13.4,31,26.2,31c4.1,0,17.9-1.6,21.8-19.8h-20.9V87.5z"}),(0,a.jsx)("path",{fill:"#FFFFFF",d:"M399,61.9h-47.8v18.9h43.9v15.9h-43.9v23.3h49.9V136h-68.3V46H399V61.9z"})]}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#D13B52",d:"M425.4,30.4C425.4,13.6,439,0,455.7,0h121.9C594.4,0,608,13.6,608,30.4v121.3c0,16.8-13.6,30.4-30.4,30.4 H455.7c-16.8,0-30.4-13.6-30.4-30.4V30.4z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#FFFFFF",d:"M473.4,82.4h2.9c5.5,0,15.6-0.5,15.6-12.6c0-3.4-1.6-11.9-11.7-11.9c-12.6,0-12.6,11.9-12.6,15.2h-17 c0-17.4,9.8-29.9,30.8-29.9c12.5,0,28.8,6.3,28.8,26c0,9.4-5.9,15.3-11.1,17.7v0.3c3.3,0.9,14,5.8,14,21.6c0,17.6-13,30-31.7,30 c-8.8,0-32.4-2-32.4-31.1h18l-0.1,0.1c0,5,1.3,16.3,13.6,16.3c7.3,0,13.8-5,13.8-15.3c0-12.7-12.3-13.2-20.8-13.2V82.4z"}),(0,a.jsx)("path",{fill:"#FFFFFF",d:"M521.8,76.1c0-30.3,22.2-32.9,30.4-32.9c17.8,0,32,10.5,32,29.4c0,16-10.4,24.1-19.4,30.3 c-12.3,8.7-18.7,12.8-20.8,17.2h40.4v16.3h-63.6c0.7-10.9,1.4-22.3,21.6-37c16.8-12.2,23.5-16.9,23.5-27.4 c0-6.2-3.9-13.2-12.8-13.2c-12.8,0-13.2,10.6-13.4,17.4H521.8z"})]})]})]})}),(0,a.jsx)("p",{className:"text-neutral-400",children:"Finish your purchase"})]}),(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("button",{onClick:n,disabled:m||!n,className:"w-full rounded-lg border border-neutral-600 bg-transparent py-3 text-base font-semibold text-white transition-colors hover:border-neutral-500 hover:bg-neutral-800 ".concat(m?"pointer-events-none opacity-50":""),children:"Continue as Guest"}),(0,a.jsx)("p",{className:"mt-2 text-center text-sm text-neutral-500",children:"Check out instantly without creating an account."})]}),(0,a.jsxs)("div",{className:"mb-6 flex items-center gap-4",children:[(0,a.jsx)("div",{className:"h-px flex-1 bg-neutral-700"}),(0,a.jsx)("span",{className:"text-sm font-medium text-neutral-500",children:"OR"}),(0,a.jsx)("div",{className:"h-px flex-1 bg-neutral-700"})]}),(0,a.jsxs)("div",{className:"mb-6 flex rounded-lg bg-neutral-800 p-1",children:[(0,a.jsx)("button",{onClick:()=>x("login"),disabled:m,className:"flex-1 rounded-md py-2 px-3 text-sm font-medium transition-colors ".concat("login"===u?"bg-neutral-700 text-white shadow-sm":"text-neutral-400 hover:text-white"," ").concat(m?"pointer-events-none":""),children:"Login to Existing Account"}),(0,a.jsx)("button",{onClick:()=>x("register"),disabled:m,className:"flex-1 rounded-md py-2 px-3 text-sm font-medium transition-colors ".concat("register"===u?"bg-neutral-700 text-white shadow-sm":"text-neutral-400 hover:text-white"," ").concat(m?"pointer-events-none":""),children:"Create New Account"})]}),(0,a.jsx)("style",{children:"\n @keyframes modalFadeIn {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n }\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n "}),(0,a.jsx)("div",{style:{animation:"modalFadeIn 300ms ease-out"},children:"login"===u?(0,a.jsx)(A,{onSuccess:h,onForgotPassword:()=>{window.open("https://www.stage32.com/welcome/forgot-password","_blank")}}):(0,a.jsx)(U,{onSuccess:h})},u)]})})})})]})})}var _=s(70171),T=s(82530),B=s(61661);let I="America/Los_Angeles";function V(e){return(0,_.CV)(e,I,"yyyy-MM-dd")}function Z(e){let{startDateTime:t,className:s=""}=e,l=function(e){let[t,s]=(0,r.useState)(null),a=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if(!e)return s(null),null;let t=function(e){let t=new Date(e),s=new Date,a=Math.floor((t.getTime()-s.getTime())/6e4),l=(0,_.CV)(t,I,"h:mm a zzz");if(a<-60)return{text:"On Demand coming soon",state:"on-demand-soon",needsLiveUpdate:!1};if(a<0&&a>=-60)return{text:"LIVE NOW",state:"live",needsLiveUpdate:!0};if(a<=60){let e=Math.max(1,a);return{text:"Starting in ".concat(e," minute").concat(1===e?"":"s"),state:"countdown",needsLiveUpdate:!0}}let n=function(e,t){let s=V(e),a=V(t),l=new Date(s),n=new Date(a);return Math.floor((l.getTime()-n.getTime())/864e5)}(t,s);return 0===n?{text:"Today at ".concat(l),state:"today",needsLiveUpdate:!1}:1===n?{text:"Tomorrow at ".concat(l),state:"tomorrow",needsLiveUpdate:!1}:{text:(0,_.CV)(t,I,"MMM do 'â¢' h:mm a zzz"),state:"future",needsLiveUpdate:!1}}(e);return s(t),t},[e]);return(0,r.useEffect)(()=>{a.current&&clearInterval(a.current);let t=l();if(e&&(null==t?void 0:t.needsLiveUpdate))return a.current=setInterval(()=>{let e=l();(null==e?void 0:e.needsLiveUpdate)||!a.current||(clearInterval(a.current),a.current=null)},3e4),()=>{a.current&&clearInterval(a.current)}},[e,l]),t}(t);if(!l)return null;let n="live"===l.state||"countdown"===l.state;return(0,a.jsxs)("div",{className:"flex items-center gap-2 ".concat(s),children:[n?(0,a.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#7feaff] opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#7feaff]"})]}):(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-3.5 w-3.5",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:l.text})]})}function H(e){var t,s;let{product:l,scroll:i=!0,replaceUrl:o=!1,onRemoveItem:c}=e,{user:d}=(0,j.a)(),{data:u}=(0,n.ZP)("/api/v2/purchases/library",e=>T.Z.get(e).then(e=>e.data.data.map(e=>
1e.shopifyId)).catch(e=>{if(401===e.response.status)return[];throw e})),{data:x,addToWishlist:m,removeFromWishlist:h}=(0,B.e)(),[f,v]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),[N,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{w(Array.isArray(u)&&u.includes(l.shopifyId))},[u,l.shopifyId]),(0,r.useEffect)(()=>{y(Array.isArray(x)&&x.includes(l.shopifyId))},[x,l.shopifyId]);let C=async e=>{e.preventDefault(),v(!0);try{N?(await h(l.shopifyId),c&&await c(Number(l.shopifyId)),y(!1)):(await m(l.shopifyId),y(!0))}finally{v(!1)}},k=l.price&&!!l.discount_price,F=k?"$".concat(parseFloat(l.discount_price).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})):0===parseInt(l.price)?"Free":"$".concat(parseFloat(l.price).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),S=k?"$".concat(parseFloat(l.price).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})):null;return(0,a.jsxs)(g(),{href:b?"/education/my-library/".concat(l.shopifyId,"/learn"):"/education/products/".concat(l.meta.handle),passHref:!0,scroll:i,prefetch:!1,replace:o,className:"group relative flex flex-col w-full overflow-hidden rounded-xl bg-neutral-900 border border-neutral-800 transition-all duration-200 hover:border-neutral-600 hover:scale-[1.015]",children:[(0,a.jsxs)("div",{className:"relative aspect-video w-full overflow-hidden",children:[(0,a.jsx)(p(),{src:"https://cdn.shopify.com/s/files/1/0700/7728/4659/files/".concat(l.image),alt:l.title,fill:!0,className:"h-full w-full object-cover",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent opacity-60"}),d&&(0,a.jsx)("button",{onClick:C,className:"heart-btn absolute top-3 right-3 rounded-full p-2 backdrop-blur-md transition-all duration-200 bg-black/70 ".concat(f?"scale-125":""),children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"h-4 w-4 transition-all ".concat(N?"text-white fill-white":"text-neutral-400 fill-transparent [.heart-btn:hover_&]:fill-neutral-400"),children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})})})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between text-xs font-medium text-neutral-400",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:l.on_demand?(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[#ff7a8e]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-3.5 w-3.5",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1116 0 8 8 0 01-16 0zm6.39-2.908a.75.75 0 01.766.027l3.5 2.25a.75.75 0 010 1.262l-3.5 2.25A.75.75 0 018 12.25v-4.5a.75.75 0 01.39-.658z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:"On Demand"})]}):(0,a.jsx)(Z,{startDateTime:l.start_date_time,className:"text-[#7feaff]"})}),(0,a.jsx)("span",{className:"text-[9px] uppercase tracking-wide rounded-full px-2 py-0.5 ".concat("bg-neutral-700 text-neutral-300"),children:(e=>{switch(e){case"StageWebinar":return"Webinar";case"StageClass":return"Class";default:return e}})(l.type)})]}),(0,a.jsx)("h3",{className:"mb-1 text-xl font-bold leading-tight text-white",children:l.title}),!!(null===(t=l.executive)||void 0===t?void 0:t.name)&&(0,a.jsxs)("p",{className:"text-sm text-neutral-400",children:["Taught by ",l.executive.name]}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsxs)("div",{className:"mt-5 border-t border-neutral-800 pt-4 flex items-end justify-between",children:[(0,a.jsx)("div",{className:"flex flex-col",children:b?(0,a.jsx)("span",{className:"text-xl font-bold text-white",children:"Watch Now"}):(0,a.jsxs)(a.Fragment,{children:[k&&!!(null==l?void 0:null===(s=l.discount)||void 0===s?void 0:s.ends)&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-0.5",children:[(0,a.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#ff7a8e] opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#ff7a8e]"})]}),(0,a.jsxs)("span",{className:"text-[10px] font-bold uppercase tracking-wide text-[#ff7a8e]",children:["Sale ends ",(0,_.WU)(new Date(l.discount.ends),"M/d")]})]}),(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsx)("span",{className:"text-xl font-bold text-white",children:F}),S&&(0,a.jsx)("span",{className:"text-sm text-neutral-500 line-through decoration-neutral-500",children:S})]})]})}),(0,a.jsx)("div",{className:"rounded-full bg-neutral-800 p-1.5 text-neutral-400 transition-colors group-hover:bg-neutral-600 group-hover:text-neutral-200",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"h-4 w-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"})})})]})]})]})}function O(e){let{price:t,threshold:s=50,className:l=""}=e,[n,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),c=(0,r.useRef)(null);return((0,r.useEffect)(()=>{function e(e){o.current&&c.current&&!o.current.contains(e.target)&&!c.current.contains(e.target)&&i(!1)}if(n)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&i(!1)}if(n)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),t<s)?null:(0,a.jsxs)("div",{className:"relative inline-flex items-center gap-1.5 ".concat(l),children:[(0,a.jsx)("span",{className:"text-xs text-neutral-400",children:"Or pay in 4 interest-free payments"}),(0,a.jsx)("button",{ref:c,onClick:()=>i(!n),className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-neutral-700 hover:bg-neutral-600 transition-colors","aria-label":"Payment plan information","aria-expanded":n,children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-3 h-3 text-neutral-300",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.94 6.94a.75.75 0 11-1.061-1.061 3 3 0 112.871 5.026v.345a.75.75 0 01-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 108.94 6.94zM10 15a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})}),n&&(0,a.jsxs)("div",{ref:o,className:"absolute z-50 bottom-full left-0 mb-2 w-72 rounded-lg border border-neutral-700 bg-neutral-800 p-4 shadow-xl",role:"tooltip",children:[(0,a.jsx)("div",{className:"absolute -bottom-2 left-4 w-4 h-4 rotate-45 border-r border-b border-neutral-700 bg-neutral-800"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:"w-5 h-5 text-[#5A31F4]",children:[(0,a.jsx)("path",{d:"M4.5 3.75a3 3 0 00-3 3v.75h21v-.75a3 3 0 00-3-3h-15z"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M1.5 9.75v6.75a3 3 0 003 3h15a3 3 0 003-3V9.75h-21zM12 12.75a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25a.75.75 0 01.75-.75zm0-6a.75.75 0 01.75.75v.008a.75.75 0 01-1.5 0V7.5a.75.75 0 01.75-.75z",clipRule:"evenodd"})]}),(0,a.jsx)("span",{className:"font-semibold text-white text-sm",children:"Shop Pay Installments"})]}),(0,a.jsx)("p",{className:"text-xs text-neutral-300 mb-3",children:"Split your purchase into 4 interest-free payments. Pay over time with no hidden fees."}),(0,a.jsxs)("div",{className:"bg-neutral-900 rounded-md p-3 mb-3",children:[(0,a.jsx)("div",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wide mb-2",children:"Available in"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,a.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-neutral-700 text-neutral-200",children:"\uD83C\uDDFA\uD83C\uDDF8 United States"}),(0,a.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-neutral-700 text-neutral-200",children:"\uD83C\uDDE8\uD83C\uDDE6 Canada"}),(0,a.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-neutral-700 text-neutral-200",children:"\uD83C\uDDEC\uD83C\uDDE7 United Kingdom"})]})]}),(0,a.jsxs)("div",{className:"text-xs text-neutral-400 space-y-1",children:[(0,a.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5 mt-0.5 text-neutral-500 flex-shrink-0",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:"Orders between $50 - $30,000"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5 mt-0.5 text-neutral-500 flex-shrink-0",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:"Billing address in eligible country"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5 mt-0.5 text-neutral-500 flex-shrink-0",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:"Subject to eligibility check at checkout"})]})]}),(0,a.jsx)("button",{onClick:()=>i(!1),className:"absolute top-2 right-2 p-1 rounded-full hover:bg-neutral-700 transition-colors","aria-label":"Close",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-4 h-4 text-neutral-400",children:(0,a.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})]})}let W=()=>{var e,t,s,o,h,f,N,y;let C=(0,c.Dv)(d.cY),k=function(){let[e,t]=(0,c.KO)(d.cY);return async function(s){if(e.id){t({...e,isLoading:!0});try{let a=await (0,u.Q)({query:x.Wn,variables:{cartId:e.id,lineIds:[s]}});t({...a.cartLinesRemove.cart})}catch(s){m.uT("There was an error removing an item from a cart",{cart:e,error:s}),t({...e,isLoading:!1})}}}}(),F=(0,b.A)(),[S,L]=(0,r.useState)([]),D=(0,r.useRef)(C);D.current=C;let M=(0,r.useCallback)(()=>{let e=D.current;if(!(null==e?void 0:e.isUserCart)){console.error("[Cart] BLOCKED: Attempted to redirect to checkout with anonymous cart!");return}v.Z.track("begin_checkout",F()),(0,w.uf)(),window.location.href="".concat("https://api.stage32.com","/api/v2/purchases/redirect-to-checkout?redirect_url=").concat(encodeURIComponent(null==e?void 0:e.checkoutUrl))},[F]),{requireAuth:z,AuthGateModal:A}=function(){let{onAuthenticated:e,allowGuestCheckout:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{user:s,mutateUser:l}=(0,j.a)(),n=(0,c.Dv)(d.cY),[i,o]=(0,r.useState)(!1),[u,x]=(0,r.useState)(null),[m,h]=(0,r.useState)("idle"),[p,f]=(0,r.useState)(null),g=(0,r.useRef)(!1),v=(0,r.useRef)(!1),b=!!s,w=(0,r.useCallback)(()=>!!s||(x(()=>e||null),h("idle"),f(null),o(!0),!1),[s,e]);(0,r.useEffect)(()=>{g.current&&n.isLoading&&(v.current=!0),g.current&&s&&!n.isLoading&&n.id&&!0===n.isUserCart&&v.current?(console.log("[AuthGate] User cart ready for checkout, isUserCart:",n.isUserCart,"cartId:",n.id),g.current=!1,v.current=!1,h("redirecting"),setTimeout(()=>{u&&u()},800)):g.current&&s&&!n.isLoading&&n.id&&!0!==n.isUserCart&&v.current&&(console.error("[AuthGate] Cart loaded but isUserCart is not true! This is unexpected. cart.isUserCart:",n.isUserCart),g.current=!1,v.current=!1,h("error"),f("Unable to load your cart. Please refresh and try again."))},[s,n.isLoading,n.id,n.isUserCart,u]),(0,r.useEffect)(()=>{let e=null;return"loading-cart"===m&&(e=setTimeout(()=>{g.current&&(g.current=!1,h("error"),f("Cart loading timed out. Please try again."))},15e3)),()=>{e&&clearTimeout(e)}},[m]);let N=(0,r.useCallback)(async()=>{try{h("authenticating"),u&&(g.current=!0,v.current=!1),await (null==l?void 0:l()),u?h("loading-cart"):(o(!1),h("idle"))}catch(e){h("error"),f("An error occurred. Please try again.")}},[l,u]),y=(0,r.useCallback)(()=>{("idle"===m||"error"===m)&&(o(!1),x(null),h("idle"),f(null),g.current=!1)},[m]),C=(0,r.useCallback)(()=>{o(!1),x(null),h("idle"),f(null),g.current=!1,v.current=!1},[]),k=(0,r.useCallback)(()=>
1{if(!(null==n?void 0:n.checkoutUrl)){h("error"),f("Unable to proceed to checkout. Please try again.");return}h("redirecting"),setTimeout(()=>{window.location.href=n.checkoutUrl},500)},[null==n?void 0:n.checkoutUrl]);return{requireAuth:w,isAuthenticated:b,AuthGateModal:(0,r.useCallback)(()=>(0,a.jsx)(P,{isOpen:i,onClose:y,onSuccess:N,onGuestCheckout:t?k:void 0,onRetry:C,processingState:m,errorMessage:p}),[i,y,N,k,t,C,m,p])}}({onAuthenticated:M,allowGuestCheckout:!0});(0,r.useEffect)(()=>{var e,t;async function s(){let{data:e}=await (0,i.xR)("empty-cart");L(e.map(e=>e.product))}async function a(){let e=C.lines.edges[0].node.merchandise.product.id.match(/(\d+)/);if(null==e?void 0:e.length){let{data:t}=await (0,i.hd)(e[0]);L(t.map(e=>e.product))}else s()}C.isLoading||((null==C?void 0:null===(t=C.lines)||void 0===t?void 0:null===(e=t.edges)||void 0===e?void 0:e.length)?a():s())},[C]);let E=(null==C?void 0:null===(t=C.lines)||void 0===t?void 0:null===(e=t.edges)||void 0===e?void 0:e.length)||0,U=(null==C?void 0:null===(o=C.cost)||void 0===o?void 0:null===(s=o.totalAmount)||void 0===s?void 0:s.amount)?parseFloat(C.cost.totalAmount.amount):0,R=(null==C?void 0:null===(f=C.lines)||void 0===f?void 0:null===(h=f.edges)||void 0===h?void 0:h.reduce((e,t)=>{var s,a;
1let l=parseFloat(t.node.cost.totalAmount.amount),n=null===(a=t.node.merchandise)||void 0===a?void 0:null===(s=a.compareAtPrice)||void 0===s?void 0:s.amount;return e+(n?parseFloat(n):l)},0))||0,_=R-U;return(0,a.jsxs)(n.J$,{value:{fetcher:l._i},children:[(0,a.jsx)(d.EQ,{}),A(),(0,a.jsx)("div",{className:"min-h-screen bg-[#000000] text-white antialiased",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1200px] px-4 py-12 sm:px-6 lg:py-24",children:[(0,a.jsx)("h1",{className:"mb-8 font-heading text-3xl text-white lg:text-4xl",children:"Shopping Cart"}),C.mergeError&&(0,a.jsxs)("div",{className:"mb-6 rounded-lg border border-red-800 bg-red-900/30 px-4 py-3 text-red-400",children:[(0,a.jsx)("p",{className:"font-medium",children:"Cart Sync Error"}),(0,a.jsx)("p",{className:"mt-1 text-sm",children:C.mergeError})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-8 lg:flex-row lg:justify-between lg:gap-16",children:[(0,a.jsx)("div",{className:"w-full lg:max-w-[720px]",children:C.isLoading?(0,a.jsxs)("div",{className:"flex min-h-[300px] flex-col items-center justify-center rounded-xl border border-neutral-800 bg-neutral-900 p-8",children:[(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-neutral-700 border-t-primary"}),(0,a.jsx)("p",{className:"mt-4 text-neutral-400",children:"Loading your cart..."})]}):E>0?(0,a.jsx)("div",{className:"space-y-0",children:null==C?void 0:null===(y=C.lines)||void 0===y?void 0:null===(N=y.edges)||void 0===N?void 0:N.map((e,t)=>{var s,l,n,r,i;let o=null==e?void 0:null===(s=e.node)||void 0===s?void 0:s.merchandise,c=t===C.lines.edges.length-1;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-start gap-4 py-8 min-[500px]:items-stretch",children:[(0,a.jsx)(g(),{href:"/education/products/".concat(null==o?void 0:null===(l=o.product)||void 0===l?void 0:l.handle),className:"relative aspect-video w-24 flex-shrink-0 overflow-hidden rounded-lg min-[500px]:w-56",children:(0,a.jsx)(p(),{src:o.image.url,alt:null==o?void 0:null===(n=o.product)||void 0===n?void 0:n.title,fill:!0,className:"object-cover",sizes:"(max-width: 500px) 96px, 224px"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between gap-4 min-[500px]:gap-0",children:[(0,a.jsx)("div",{children:(0,a.jsx)(g(),{href:"/education/products/".concat(null==o?void 0:null===(r=o.product)||void 0===r?void 0:r.handle),className:"text-base font-bold text-white hover:text-neutral-300 min-[500px]:text-lg lg:text-xl",children:null==o?void 0:null===(i=o.product)||void 0===i?void 0:i.title})}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsxs)("span",{className:"text-sm text-white min-[500px]:text-base",children:["$",parseFloat(e.node.cost.totalAmount.amount).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(null==o?void 0:o.compareAtPrice)&&parseFloat(o.compareAtPrice.amount)>parseFloat(e.node.cost.totalAmount.amount)&&(0,a.jsxs)("span",{className:"text-xs text-neutral-500 line-through min-[500px]:text-sm",children:["$",parseFloat(o.compareAtPrice.amount).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,a.jsxs)("button",{onClick:()=>k(e.node.id),className:"flex items-center gap-1 text-xs text-neutral-400 transition-colors hover:text-red-400 min-[500px]:gap-1.5 min-[500px]:text-sm",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-3 w-3 min-[500px]:h-4 min-[500px]:w-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})}),"Remove"]})]})]})]}),!c&&(0,a.jsx)("div",{className:"h-px bg-neutral-800"})]},e.node.id)})}):(0,a.jsxs)("div",{className:"flex min-h-[300px] flex-col items-center justify-center rounded-xl border border-neutral-800 bg-neutral-900 p-8 text-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"mx-auto mb-4 h-12 w-12 text-neutral-600",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})}),(0,a.jsx)("h2",{className:"mb-2 text-xl font-bold text-white",children:"Your Cart Is Empty"}),(0,a.jsx)("p",{className:"mb-6 text-neutral-400",children:"Looks like you haven't added anything to your cart yet."}),(0,a.jsx)(g(),{href:"/education",className:"inline-flex items-center justify-center rounded-lg bg-[#BD001D] px-6 py-3 text-sm font-bold text-white transition-colors hover:bg-[#a30019]",children:"Browse Education"})]})}),(0,a.jsx)("div",{className:"w-full lg:w-[325px] lg:flex-shrink-0",children:(0,a.jsx)("div",{className:"sticky top-28",children:(0,a.jsxs)("div",{className:"rounded-2xl border border-neutral-800 bg-neutral-900 p-6 shadow-xl",children:[(0,a.jsx)("h2",{className:"mb-4 text-lg font-bold text-white",children:"Order Summary"}),(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between text-sm",children:[(0,a.jsxs)("span",{className:"text-neutral-400",children:[E," ",1===E?"item":"items"]}),(0,a.jsxs)("span",{className:"text-white",children:["$",R.toLocaleStr
1ing("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),_>0&&(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between text-sm",children:[(0,a.jsx)("span",{className:"text-neutral-400",children:"Discount"}),(0,a.jsxs)("span",{className:"text-[#ff7a8e]",children:["-$",_.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,a.jsx)("div",{className:"my-4 h-px bg-neutral-800"}),(0,a.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-lg font-bold text-white",children:"Total"}),(0,a.jsxs)("span",{className:"text-xl font-bold text-white",children:["$",U.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),U>=50&&(0,a.jsx)("div",{className:"mb-6 flex justify-center",children:(0,a.jsx)(O,{price:U})}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 min-[500px]:flex-row lg:flex-col",children:[E>0&&(0,a.jsx)("button",{onClick:()=>{z()&&M()},className:"flex h-12 w-full items-center justify-center gap-2 rounded-lg bg-[#BD001D] text-sm font-bold text-white transition-colors hover:bg-[#a30019]",children:"Checkout Now"}),(0,a.jsx)(g(),{href:"/education",className:"flex h-12 w-full items-center justify-center gap-2 rounded-lg border border-neutral-700 bg-black text-sm font-bold text-white transition-colors hover:bg-neutral-800",children:"Continue Shopping"})]}),(0,a.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-neutral-500",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-3.5 w-3.5",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z",clipRule:"evenodd"})}),"Secure checkout with Shopify"]})]})})})]}),S.length>0&&(0,a.jsxs)("div",{className:"mt-32",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold text-white",children:E>0?(0,a.jsxs)(a.Fragment,{children:["People who bought ",1===E?"this":"these"," also bought"]}):(0,a.jsx)(a.Fragment,{children:"We think you might like these"})}),(0,a.jsx)("div",{className:"grid gap-x-6 gap-y-8 sm:grid-cols-2 lg:grid-cols-3",children:S.slice(0,6).map(e=>(0,a.jsx)(H,{product:e},e.id))})]})]})})]})};var $=!0,G=W;W.getLayout=e=>(0,a.jsx)(o.Z,{children:e})}},function(e){e.O(0,[7827,5793,9294,6472,5609,2888,9774,179],function(){return e(e.s=18183)}),_N_E=e.O()}]);
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.