1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{19912:(e,t,r)=>{r.d(t,{A:()=>a});var l=r(95155);r(12115);var s=r(52619),n=r.n(s);let a=e=>{let{label:t,type:r="solid",color:s="orange",icon:a,onClick:o,disabled:i=!1,className:c="",labelColor:d="positive",href:u,targetBlank:m=!1,centered:x=!1,...h}=e,f=i?"opacity-30 cursor-not-allowed":"",p="".concat("rounded text-sm font-medium transition-all duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-800 focus-visible:ring-offset-1 focus:ring-0"," ").concat((()=>{var e;let t=null==(e=({solid:{green:{base:"bg-green-600 text-white",active:"hover:bg-green-700 active:bg-green-800"},orange:{base:"bg-orange-600 text-white",active:"hover:bg-orange-700 active:bg-orange-800"}},outline:{green:{base:"border-2 border-green-600",active:"hover:bg-green-200 hover:text-green-600 active:bg-green-300"},orange:{base:"border-2 border-orange-600",active:"hover:bg-orange-50 hover:text-orange-600 active:bg-orange-100"}},text:{green:{base:"",active:"hover:text-green-700 active:underline active:decoration-inherit"},orange:{base:"",active:"hover:text-orange-700 active:underline active:decoration-inherit"}}})[r])?void 0:e["green"===s||"orange"===s?s:"orange"];if(!t)return"";let l="".concat(t.base," ").concat("solid"!==r?"positive"===d?"text-black":"text-white":"");return i?l:"".concat(l," ").concat(t.active)})()," ").concat(f," ").concat(c," ").concat("text"!==r?"py-2.5 px-4 hover:shadow-md active:shadow-inner":""," ").concat(x?"flex items-center justify-center":""),g=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:x?"flex-grow text-center":"",children:t}),(a||"text"===r)&&(0,l.jsx)("span",{className:"".concat("ml-2 inline-block"," ").concat(x?"ml-2":""),children:"text"===r?"â":a})]});return u?(0,l.jsx)(n(),{href:u,className:p,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,...h,children:g}):(0,l.jsx)("button",{className:p,onClick:o,disabled:i,"aria-disabled":i,...h,children:g})}},20497:(e,t,r)=>{r.d(t,{default:()=>o});var l=r(95155),s=r(52619),n=r.n(s);r(12115);let a=e=>{let{column:t,fontColor:r="text-neutral-300"}=e;return(0,l.jsx)("div",{children:t.map((e,t)=>(0,l.jsxs)("div",{className:t>0?"mt-8":"",children:[(0,l.jsx)("h3",{className:"text-xs font-semibold tracking-wide uppercase mb-2 ".concat(r),children:e.title}),(0,l.jsx)("ul",{className:"space-y-2",children:e.links.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(n(),{href:e.url,target:e.target?"_blank":"_self",className:"hover:underline",children:e.title})},t))})]},t))})},o=e=>{let{columns:t,currentSettings:r}=e,[s,o]=[t.filter(Array.isArray),t.find(e=>!Array.isArray(e))],i=r.footerBackgroundColor?"bg-".concat(r.footerBackgroundColor):"bg-black",c=r.footerFontColor?"text-".concat(r.footerFontColor):"text-white";return(0,l.jsxs)("footer",{className:"".concat(i," ").concat(c," pt-16 px-4 md:px-8 lg:px-16"),children:[(0,l.jsx)("div",{className:"mx-auto",children:(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8",children:[s&&(0,l.jsx)("div",{className:"lg:w-3/4",children:(0,l.jsx)("nav",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-8",children:s.map((e,t)=>(0,l.jsx)(a,{column:e,fontColor:r.footerFontColor},t))})}),o&&(0,l.jsx)("div",{className:"lg:w-1/4",children:(0,l.jsxs)("div",{className:"bg-gray-900 rounded-lg border border-gray-900 p-6",children:[(0,l.jsx)("h3",{className:"text-xl font-bold mb-3",children:o.headline}),(0,l.jsx)("p",{className:"text-sm font-semibold mb-4",children:o.description}),(0,l.jsxs)("form",{children:[(0,l.jsx)("label",{htmlFor:"email",className:"text-sm font-semibold block mb-2",children:"Your email"}),(0,l.jsx)("input",{type:"email",id:"email",name:"email",className:"w-full bg-white text-black-800 rounded border border-neutral-300 p-2 mb-4",required:!0}),(0,l.jsx)("button",{type:"submit",className:"bg-orange-600 text-white font-semibold py-2 px-4 rounded-lg border-2 border-orange-600 hover:bg-orange-700 transition-colors",children:o.buttonLabel})]})]})})]})}),(0,l.jsx)("hr",{className:"mt-8 mb-4 border-zinc-500"}),(0,l.jsxs)("div",{className:"mx-auto pb-4 flex flex-col md:flex-row justify-between items-center gap-4 text-xs font-semibold text-zinc-400",children:[(0,l.jsxs)("p",{children:["Copyright \xa9 ",new Date().getFullYear()," Initial Force AS. All rights reserved."]}),(0,l.jsxs)("nav",{className:"flex gap-4",children:[(0,l.jsx)(n(),{href:"https://online.swingcatalyst.com/privacy",target:"_blank",className:"hover:text-white transition-colors",children:"Privacy Policy"}),(0,l.jsx)(n(),{href:"https://online.swingcatalyst.com/terms",target:"_blank",className:"hover:text-white transition-colors",children:"Terms of Use"}),(0,l.jsx)(n(),{href:"/sales-and-refunds",className:"hover:text-white transition-colors",children:"Sales and refund"})]})]})]})}},52709:(e,t,r)=>{r.d(t,{default:()=>y});var l=r(95155),s=r(12115);let n=e=>{let{width:t,height:r,number:s,color:n="slate-950"}=e;return(0,l.jsxs)("div",{className:"gap-3 flex",children:[(0,l.jsxs)("svg",{width:t,height:r,viewBox:"0 0 ".concat(t," ").concat(r),fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"stroke-".concat(n),children:[(0,l.jsx)("path",{d:"M1.64062 1.54883H5.52891L6.91408 15.3209C6.97165 15.7005 7.16449 16.0466 7.45708 16.2953C7.74965 16.5439 8.12226 16.6785 8.50622 16.6742H18.5367C18.884 16.6923 19.2275 16.5963 19.5149 16.4008C19.8025 16.2053 20.018 15.9211 20.1289 15.5915L22.2464 9.22296C22.3254 8.98353 22.3464 8.72876 22.3075 8.47965C22.2689 8.23053 22.1714 7.99417 22.0235 7.79003C21.8694 7.57299 21.6632 7.39806 21.4241 7.28123C21.1849 7.16441 20.9202 7.10943 20.6543 7.12133H6.08616",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M18.2658 22.2464C17.8262 22.2464 17.4697 21.89 17.4697 21.4504C17.4697 21.0108 17.8262 20.6543 18.2658 20.6543C18.7054 20.6543 19.0619 21.0108 19.0619 21.4504C19.0619 21.89 18.7054 22.2464 18.2658 22.2464Z",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"}
1),(0,l.jsx)("path",{d:"M7.91717 22.2464C7.4775 22.2464 7.12109 21.89 7.12109 21.4504C7.12109 21.0108 7.4775 20.6543 7.91717 20.6543C8.35682 20.6543 8.71324 21.0108 8.71324 21.4504C8.71324 21.89 8.35682 22.2464 7.91717 22.2464Z",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"})]}),s&&s>0?(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"absolute -top-2 -right-2 bg-orange-700 rounded-full w-5 h-5 flex items-center justify-center",children:(0,l.jsx)("span",{style:{color:"white",fontSize:"12px"},children:s})})}):null]})};var a=r(64889),o=r(52619),i=r.n(o),c=r(51460),d=r(69326);let u=e=>{let{width:t,height:r,color:s="slate-950"}=e;return(0,l.jsxs)("svg",{width:t,height:r,viewBox:"0 0 ".concat(t," ").concat(r),className:"stroke-".concat(s),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M11.9999 13.5925C14.1982 13.5925 15.9802 11.8105 15.9802 9.61219C15.9802 7.41391 14.1982 5.63184 11.9999 5.63184C9.8016 5.63184 8.01953 7.41391 8.01953 9.61219C8.01953 11.8105 9.8016 13.5925 11.9999 13.5925Z",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M5.20215 19.8014C5.91263 18.6352 6.91117 17.6713 8.10178 17.0026C9.29238 16.3337 10.635 15.9824 12.0006 15.9824C13.3662 15.9824 14.7088 16.3337 15.8994 17.0026C17.0901 17.6713 18.0885 18.6352 18.7991 19.8014",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M12.0003 22.3492C17.7159 22.3492 22.3492 17.7159 22.3492 12.0003C22.3492 6.28474 17.7159 1.65137 12.0003 1.65137C6.28474 1.65137 1.65137 6.28474 1.65137 12.0003C1.65137 17.7159 6.28474 22.3492 12.0003 22.3492Z",strokeWidth:"1.71",strokeLinecap:"round",strokeLinejoin:"round"})]})};var m=r(96199);let x={GolfIconSVG:()=>(0,l.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 71 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M20.7082 34.3462C31.299 34.3462 39.8782 38.2512 39.8782 43.0437C39.8782 47.8362 31.2398 51.7708 20.7082 51.7708C10.1765 51.7708 1.479 47.8658
11.479 43.0437C1.479 40.9433 3.13567 38.9908 5.9165 37.482",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M26.1217 11.3008C26.3707 11.1788 26.5803 10.9893 26.7268 10.7539C26.8732 10.5185 26.9506 10.2467 26.95 9.9695C26.9516 9.6883 26.8713 9.41273 26.719 9.17636C26.5666 8.93999 26.3488 8.75302 26.0921 8.63825L13.4009 2.95825V17.3653L26.1217 11.3008Z",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M13.4009 41.2982V17.3652",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M28.104 64.3437C28.104 65.3244 28.4936 66.265 29.1871 66.9585C29.8806 67.652 30.8212 68.0416 31.8019 68.0416C32.7827 68.0416 33.7232 67.652 34.4167 66.9585C35.1102 66.265 35.4998 65.3244 35.4998 64.3437C35.4998 63.3629 35.1102 62.4223 34.4167 61.7288C33.7232 61.0353 32.7827 60.6458 31.8019 60.6458C30.8212 60.6458 29.8806 61.0353 29.1871 61.7288C28.4936 62.4223 28.104 63.3629 28.104 64.3437Z",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M69.5205 11.8333L53.6638 66.0891C53.4511 66.6404 53.0782 67.1154 52.5931 67.4528C52.1081 67.7903 51.533 67.9747 50.9422 67.9824H45.0255C43.9271 67.5548 43.0435 66.7084 42.5691 65.6293C42.0948 64.5502 42.0685 63.3269 42.4961 62.2285C42.9237 61.13 43.7702 60.2464 44.8492 59.7721C45.9283 59.2977 47.1516 59.2715 48.2501 59.6991L54.8767 62.1249",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),BaseballIconSVG:()=>(0,l.jsxs)("svg",{width:"56",height:"56",viewBox:"0 0 71 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M46.5938 52.8653C46.5938 54.8268 47.373 56.708 48.7599 58.095C50.1469 59.4819 52.0281 60.2612 53.9896 60.2612C55.9511 60.2612 57.8322 59.4819 59.2192 58.095C60.6062 56.708 61.3854 54.8268 61.3854 52.8653C61.3854 50.9038 60.6062 49.0227 59.2192 47.6357C57.8322 46.2487 55.9511 45.4695 53.9896 45.4695C52.0281 45.4695 50.1469 46.2487 48.7599 47.6357C47.373 49.0227 46.5938 50.9038 46.5938 52.8653Z",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M14.0315 63.3763L25.4418 51.9542L64.761 19.3741C65.8029 18.5438 66.6571 17.5024 67.2676 16.3183C67.8781 15.1343 68.231 13.8343 68.3031 12.5041C68.3751 11.1738 68.1647 9.8434 67.6856 8.6003C67.2066 7.35721 66.4698 6.22962 65.5237 5.29172C64.5776 4.35382 63.4437 3.62686 62.1964 3.15866C60.9492 2.69046 59.617 2.49163 58.2874 2.57525C56.9579 2.65887 55.661 3.02305 54.4823 3.64382C53.3036 4.2646 52.2697 5.12791 51.4485 6.17696L19.2619 45.5849L7.75098 57.0958",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M3.56783 57.0959C4.1226 56.5413 4.87493 56.2297 5.65938 56.2297C6.44382 56.2297 7.19615 56.5413 7.75092 57.0959L14.0315 63.3735C14.3061 63.6483 14.524 63.9746 14.6725 64.3337C14.8211 64.6927 14.8975 65.0775 14.8974 65.4661C14.8972 65.8546 14.8206 66.2394 14.6717 66.5983C14.5229 66.9573 14.3048 67.2834 14.03 67.558C13.7551 67.8327 13.4289 68.0505 13.0698 68.1991C12.7108 68.3477 12.326 68.4241 11.9374 68.424C11.5488 68.4238 11.1641 68.3471 10.8051 68.1983C10.4462 68.0495 10.1201 67.8314 9.84542 67.5566L3.56783 61.2819C3.29278 61.0072 3.07458 60.6809 2.9257 60.3218C2.77682 59.9626 2.7002 59.5777 2.7002 59.1889C2.7002 58.8001 2.77682 58.4152 2.9257 58.0561C3.07458 57.6969 3.29278 57.3706 3.56783 57.0959Z",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M18.2144 46.6382L24.4919 52.9128",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M12.9839 51.8655L19.2615 58.1431",stroke:"#FF5C00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},h=e=>{let{isOpen:t,showCaseSections:r,navigationsSection:n,onSubmenuClick:a}=e,{data:o}=(0,m.wV)(),[h,f]=(0,s.useState)([]),[p,g]=(0,s.useState)(!1),b=(0,s.useRef)(null),v=(0,s.useRef)([]),j=(0,s.useCallback)((e,t)=>{v.current[t]=e},[]),w=(0,s.useCallback)(e=>{f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]);(0,s.useEffect)(()=>{let e=e=>{a&&b.current&&!b.current.contains(e.target)&&t&&a()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,a]);let C=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full flex gap-x-2",children:[(0,l.jsx)(u,{width:24,height:24}),(0,l.jsx)("span",{className:"font-medium",children:o?"Account":"Sign In"})]}),(0,l.jsx)("div",{children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",className:"w-5 h-5 transition-transform duration-300 ",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})]});return(0,s.useEffect)(()=>
1{if(t&&!p){g(!0);let e=setTimeout(()=>{f(e=>!e.includes(0)&&n.length>0?[...e,0]:e)},200);return()=>clearTimeout(e)}t||(g(!1),f([]))},[t,p,n]),(0,s.useEffect)(()=>{h.forEach(e=>{let t=v.current[e];t&&(t.style.maxHeight="".concat(t.scrollHeight,"px"))})},[h]),(0,l.jsx)("div",{className:"text-gray-950 h-full overflow-scroll ".concat(t?"open":""),ref:b,children:(0,l.jsxs)("nav",{className:"p-4 pt-6 h-full bg-white border-b border-gray-200 ".concat(t?"block":"hidden"," overflow-auto -webkit-overflow-scrolling-touch"),style:{overscrollBehavior:"contain",WebkitOverflowScrolling:"touch"},children:[o?(0,l.jsx)(i(),{href:"/account",className:"border border-gray-200 rounded w-full flex items-center justify-between py-4 p-3 mb-6",onClick:a,children:(0,l.jsx)(C,{})}):(0,l.jsx)("button",{onClick:()=>{a&&a(),(0,m.Jv)("auth0")},className:"border border-gray-200 rounded w-full flex items-center justify-between py-4 p-3 mb-6",children:(0,l.jsx)(C,{})}),r&&r.title&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"font-serif font-semibold mb-4",children:r.title}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 mb-6",children:r.showCaseItems.map((e,t)=>{var r;return(0,l.jsxs)("div",{className:"flex flex-col gap-4 border border-gray-200 p-4 rounded ",children:[0==t?(0,l.jsx)(x.GolfIconSVG,{}):(0,l.jsx)(x.BaseballIconSVG,{}),(0,l.jsxs)(i(),{href:null!=(r=e.url)?r:"#",onClick:a,className:"text-sm font-medium flex flex-col gap-2",children:[(0,l.jsx)("span",{children:e.title}),(0,l.jsx)("span",{className:"",children:(0,l.jsx)(c.A,{className:"h-5 w-5","aria-hidden":"true"})})]})]},t)})})]}),n.map((e,t)=>(0,l.jsxs)("div",{className:"border-b border-gray-200",children:[(0,l.jsxs)("button",{className:"accordion-header w-full flex justify-between items-center py-4 focus:outline-none",onClick:()=>w(t),children:[(0,l.jsx)("span",{className:"font-serif font-semibold",children:e.title}),(0,l.jsx)(d.A,{className:"w-5 h-5 transition-transform duration-300 ".concat(h.includes(t)?"rotate-90":"")})]}),(0,l.jsx)("div",{ref:e=>j(e,t),className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:h.includes(t)?"1000px":"0",opacity:+!!h.includes(t),transform:"translateY(".concat(h.includes(t)?"0":"-10px",")")},children:(0,l.jsx)("div",{className:"space-y-2 pb-4",children:e.items.map((e,t)=>{var r;return(0,l.jsxs)(i(),{href:null!=(r=e.url)?r:"#",className:"flex justify-between items-center py-2",onClick:a,children:[(0,l.jsx)("span",{className:"text-sm font-medium",children:e.title}),(0,l.jsx)("span",{className:"opacity-0",children:(0,l.jsx)(d.A,{className:"w-5 h-5 opacity-0"})})]},t)})})})]},t))]})})};var f=r(94361),p=r(20704),g=r(69665);let b=()=>{let{isCartOpen:e,closeCart:t}=(0,f._)();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:t}),(0,l.jsx)("div",{className:"fixed top-0 right-0 w-full md:w-[33rem] h-full bg-white shadow-lg z-50 transform ".concat(e?"translate-x-0":"translate-x-full"," transition-transform duration-300 ease-in-out"),children:(0,l.jsxs)("div",{className:"flex flex-col h-full",children:[(0,l.jsx)("div",{className:"px-8 pt-8",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h2",{className:"text-2xl font-medium font-serif",children:"Cart"}),(0,l.jsx)("button",{onClick:t,children:(0,l.jsx)(p.A,{className:"w-8",onClick:t})})]})}),(0,l.jsx)("div",{className:"flex-grow overflow-y-auto",children:(0,l.jsx)("div",{className:"cart-container p-8 h-full",children:(0,l.jsx)(g.default,{isModal:!0})})})]})}),e&&(0,l.jsx)("div",{className:"fixed inset-0 bg-black-800 bg-opacity-50 z-40",onClick:t})]})};var v=r(96779),j=r(75550),w=r(19912);let C=e=>{let{topLevelItems:t,submenus:r,currentSettings:n}=e,[a,o]=(0,s.useState)(null),i=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&o(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let c=()=>{o(null)},d=(e,t,r)=>{if(r&&e>r&&(e=r),t)switch(e){case 1:return"grid-cols-1";case 2:return"grid-cols-2";case 3:default:return"grid-cols-3";case 4:return"grid-cols-4";case 5:return"grid-cols-5";case 6:return"grid-cols-6"}switch(e){case 1:return"grid-rows-1";case 2:return"grid-rows-2";case 3:default:return"grid-rows-3";case 4:return"grid-rows-4";case 5:return"grid-rows-5";case 6:return"grid-rows-6"}};return(0,l.jsxs)("div",{className:"hidden lg:block",ref:i,children:[(0,l.jsx)("div",{className:"flex justify-between items-center p-4 md:p-0",children:(0,l.jsx)("div",{className:"lg:flex hidden space-x-4",children:t&&t.map(e=>(0,l.jsx)("div",{onClick:()=>(e=>{o(t=>t===e?null:e)})(e.submenuId),className:"relative hidden md:block",children:(0,l.jsxs)("button",{className:"inline-flex items-center gap-x-1 font-medium ".concat(n.headerFontColor?"text-".concat(n.headerFontColor):"text-gray-900"),children:[(0,l.jsx)("span",{children:e.label}),a===e.submenuId?(0,l.jsx)(v.A,{className:"h-5 w-5","aria-hidden":"true"}):(0,l.jsx)(j.A,{className:"h-5 w-5","aria-hidden":"true"})]})},e.label))})}),r.map(e=>(0,l.jsx)("div",{className:"absolute left-0 right-0 z-50 mt-4 w-full ".concat(n.headerBackgroun
1dColor&&!n.absolutePosition?"bg-".concat(n.headerBackgroundColor):"bg-white"," shadow-lg transition ").concat(a===e.id?"block":"hidden"),children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-6 grid grid-cols-4 gap-8",children:[(0,l.jsx)("div",{className:e.submenu.adBanner?"col-span-3":"col-span-4",children:e.submenu.mainMenu.blocks.map((e,t)=>{var r,s,a,o;return(0,l.jsxs)("div",{className:"mb-4",children:[e.subtitle&&(0,l.jsx)("h3",{className:"".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-950"," font-serif font-semibold mb-2"),children:e.subtitle}),e.links&&(0,l.jsx)("div",{className:"grid gap-4 ".concat(d(null!=(a=null==e||null==(r=e.links)?void 0:r.length)?a:0,null!=(o=e.horizontal)&&o,e.maxColumns)),children:null==(s=e.links)?void 0:s.map((e,t)=>{var r;return(0,l.jsx)("a",{href:e.href,className:" text-lg font-semibold ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-950"),onClick:c,target:null!=(r=e.target)?r:"self",children:(0,l.jsxs)("div",{className:"group relative flex flex-col gap-y-2 p-4 hover:".concat(n.headerBackgroundColor&&!n.absolutePosition?"bg-".concat(n.headerBackgroundColor):"bg-gray-50"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2 font-serif font-medium border-b border-orange-500 cursor-pointer w-fit",children:[e.icon&&(0,l.jsx)(e.icon,{className:"h-6 w-6 ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-600"," group-hover:text-indigo-600"),"aria-hidden":"true"}),e.name]}),e.description&&(0,l.jsx)("p",{className:"text-sm ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-600"),children:e.description})]},t)},t)})}),e.blocks&&(0,l.jsx)("div",{className:"max-w-7xl mx-auto px-4 py-6 grid ".concat(d(e.blocks.length,!0)," gap-8"),children:e.blocks.map((e,t)=>{var r,s,a,o;return(0,l.jsxs)("div",{children:[e.subtitle&&(0,l.jsx)("h3",{className:"".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-700"," font-serif text-lg mb-2"),children:e.subt
1itle}),e.links&&(0,l.jsx)("div",{className:"grid gap-0 ".concat(d(null!=(a=null==e||null==(r=e.links)?void 0:r.length)?a:0,null!=(o=e.horizontal)&&o)),children:null==(s=e.links)?void 0:s.map((e,t)=>{var r;return(0,l.jsx)("a",{href:e.href,className:"font-semibold ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-900"),onClick:c,target:null!=(r=e.target)?r:"self",children:(0,l.jsxs)("div",{className:"group relative flex flex-col gap-y-2 p-1 pl-0 hover:".concat(n.headerBackgroundColor?"bg-".concat(n.headerBackgroundColor):"bg-gray-50"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2 w-fit font-medium border-b border-orange-500 cursor-pointer",children:[e.icon&&(0,l.jsx)(e.icon,{className:"h-6 w-6 ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-600"," group-hover:text-indigo-600"),"aria-hidden":"true"}),e.name]}),e.description&&(0,l.jsx)("p",{className:"text-sm ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-600"),children:e.description})]},t)},t)})})]},t)})})]},t)})}),e.submenu.adBanner&&(0,l.jsxs)("div",{className:"col-span-1 ".concat(n.headerBackgroundColor&&!n.absolutePosition?"bg-".concat(n.headerBackgroundColor):"bg-gray-50"," p-4 rounded-lg flex flex-col justify-between"),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-lg font-semibold ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-900"),children:e.submenu.adBanner.title}),(0,l.jsx)("p",{className:"mt-2 text-sm ".concat(n.headerFontColor&&!n.absolutePosition?"text-".concat(n.headerFontColor):"text-gray-600"),children:e.submenu.adBanner.description})]}),(0,l.jsx)(w.A,{label:e.submenu.adBanner.buttonLabel,href:e.submenu.adBanner.buttonHref,color:"green",centered:!0,onClick:c})]})]})},e.id))]})};var N=r(20063);let k=e=>{let{width:t,height:r,color:s}=e,{data:n}=(0,m.wV)();return n?(0,l.jsxs)(i(),{href:"/account",className:"hidden lg:flex",children:[(0,l.jsx)(u,{width:t,height:r,color:s}),(0,l.jsx)("span",{className:"ml-2 font-medium ".concat(s?"text-".concat(s):"text-black-800 font-medium"),children:"Account"})]}):(0,l.jsxs)("button",{onClick:()=>{(0,m.Jv)("auth0")},className:"hidden lg:flex",children:[(0,l.jsx)(u,{width:t,height:r,color:s}),(0,l.jsx)("span",{className:"ml-2 font-medium ".concat(s?"text-".concat(s):"text-black-800 font-medium"),children:"Sign In"})]})},y=e=>{var t;let{menuProps:r,mobileMenuProps:o,pageSettings:c}=e,d=(0,N.useSelectedLayoutSegments)(),{currentCart:u,openCart:m}
1=(0,f._)(),[x,p]=(0,s.useState)(!1),g=(0,s.useRef)(null),v=(0,s.useCallback)(e=>{null==e||e.stopPropagation(),p(e=>!e)},[]);return d&&(null==d?void 0:d.length)>1&&"checkout"===d[0]?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("header",{className:"w-full px-0 lg:px-12 xl:px-16 py-4 lg:py-6 sticky top-0 z-50 bg-white ".concat(c.headerBackgroundColor&&!c.absolutePosition?"bg-".concat(c.headerBackgroundColor):""," ").concat(c.absolutePosition?"absolute bg-gradient-to-t from-transparent to-black-800/50 lg:to-black-800/33":""),children:[(0,l.jsxs)("div",{className:"flex max-w-[1920px] items-center mx-auto justify-between px-4 lg:px-0",children:[(0,l.jsx)("div",{className:"lg:hidden flex",children:(0,l.jsx)("button",{className:"mobile-menu cursor-pointer",onMouseDown:v,children:(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"".concat(c.headerFontColor?"stroke-".concat(c.headerFontColor):"stroke-gray-900"),xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"1",y:"3",width:"14",height:"2",fill:"#151926"}),(0,l.jsx)("rect",{x:"1",y:"11",width:"22",height:"2",fill:"#151926"}),(0,l.jsx)("rect",{x:"1",y:"19",width:"18",height:"2",fill:"#151926"})]})})}),(0,l.jsx)("div",{className:"flex md:gap-16 items-center",children:(0,l.jsx)(i(),{className:"",href:"/",children:(0,l.jsx)(a.A,{color:"".concat(c.headerFontColor&&"white"===c.headerFontColor?"white":"black"),horizontal:!0,className:"w-full h-7 lg:h-9"})})}),(0,l.jsx)("nav",{className:"hidden lg:flex",children:(0,l.jsx)(C,{...r})}),(0,l.jsxs)("div",{className:"flex gap-6 items-center",children:[(0,l.jsxs)("div",{className:"flex gap-6",children:[(0,l.jsx)(k,{width:24,height:24,color:c.headerFontColor}),(0,l.jsx)("button",{onClick:()=>{window.innerWidth<768?window.location.replace("/cart"):m()},className:"relative",children:(0,l.jsx)(n,{width:24,height:24,number:null!=(t=null==u?void 0:u.totalQuantity)?t:0,color:c.headerFontColor})})]}),(0,l.jsx)(w.A,{label:"Free trial",type:"outline",color:"orange",centered:!0,className:"hidden xl:flex ".concat(c.headerFontColor?"text-".concat(c.headerFontColor," inline-flex justify-center rounded-lg text-sm font-semibold py-2.5 px-4 ml-3"):""),href:"/free-trial"})]})]}),(0,l.jsx)(b,{}),(0,l.jsx)("div",{id:"mobile-menu",className:"".concat(x?"w-full":""," lg:hidden h-[calc(100dvh-60px)] bottom-0 fixed z-50"),children:(0,l.jsx)("nav",{ref:g,className:"h-full overflow-auto ".concat(x?"open":""),children:(0,l.jsx)(h,{...o,onSubmenuClick:v,isOpen:x})})})]})}},69665:(e,t,r)=>{r.d(t,{default:()=>C});var l=r(95155),s=r(94361),n=r(20063),a=r(97761),o=r(59109),i=r(42218),c=r(12115);r(9333);var d=r(67138),u=r(85157),m=r(15239),x=r(52619),h=r.n(x),f=r(38452),p=r(78388);let g=e=>{var t,r,s,n,a,o,i,c,d,u,x;let{index:g,item:b,updatingItems:v,handleRemoveItem:j,handleUpdateItemQuantity:w,licenseIdentifier:C}=e,N=b.bundleId&&(null==(t=b.bundleInfo)?void 0:t.bundlePrice)!==void 0?b.bundleInfo.bundlePrice*b.quantity:C?b.unitPrice.value.withoutTax:b.totalPrice.value.withoutTax;return(0,l.jsx)("li",{children:(0,l.jsxs)("article",{className:"flex flex-col md:flex-row gap-4 lg:justify-items-center border-b-2 border-gray-100 pb-6",children:[(0,l.jsx)("figure",{className:"flex basis-36 ph-4 rounded-lg justify-center items-center bg-gray-100",children:(0,l.jsx)(m.default,{width:96,height:64,className:"h-16 w-24 md:h-12 md:w-16",src:null!=(u=null!=(d=null==(r=b.bundleInfo)?void 0:r.bundleImageUrl)?d:b.properties.cartImageUrl)?u:f.default,alt:b.bundleId&&(null==(s=b.bundleInfo)?void 0:s.bundleName)?null==(n=b.bundleInfo)?void 0:n.bundleName:b.name})}),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)("div",{className:"flex justify-between mb-3 flex-col md:flex-row",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(h(),{href:"Physical"==b.properties.productType||"productAddOn"===b.properties.contentType||"productBundle"===b.properties.contentType?null!=(x=null==(a=b.bundleInfo)?void 0:a.bundlePath)?x:"/products/".concat(b.name.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()):"/software",children:(0,l.jsx)("h3",{className:"font-medium hover:underline",children:b.bundleId&&(null==(o=b.bundleInfo)?void 0:o.bundleName)?null==(i=b.bundleInfo)?void 0:i.bundleName:b.name})}),!b.bundleId&&(0,l.jsxs)("div",{className:"text-sm text-black-500 font-medium",children:[C&&
1(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("span",{className:"text-gray-500 font-semibold",children:"License:"}),(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("span",{className:"inline-block max-w-[250px] truncate",children:C})})]}),null==b||null==(c=b.attributes)?void 0:c.map(e=>e.value.name).join("/")]})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-between font-medium mt-3 md:mt-0 lg:text-right",children:["$",N.toCurrencyFormat(),b.originalPrice&&(0,l.jsxs)("div",{className:"text-sm text-gray-500 line-through",children:["$",b.originalPrice.value.withoutTax.toCurrencyFormat()]}),(0,l.jsx)("span",{className:"text-xs md:text-right text-gray-500",children:"excl. tax"})]})]}),(0,l.jsxs)("footer",{className:"flex justify-between flex-row-reverse md:flex-row",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[v[b.id]?(0,l.jsx)(p.A,{size:8,color:"#6B7280"}):(0,l.jsx)("button",{className:"text-xs text-gray-500 underline font-medium",onClick:()=>(()=>{if(C){var e;b.properties={...b.properties,licenseIdentifier:((e,t)=>{var r;let l=null==t?void 0:t.split("|"),s=null==l?void 0:l.filter(t=>t!==e);return null!=(r=null==s?void 0:s.join("|"))?r:void 0})(C,null==(e=b.properties)?void 0:e.licenseIdentifier)},w(b.id,b.quantity-1,b.properties)}else j(b.id,C)})(),children:"Remove"}),!0===b.properties.isRecurring||"True"===b.properties.isRecurring||"true"===b.properties.isRecurring?(0,l.jsxs)("span",{className:"flex justify-center items-center gap-1 text-xs font-medium text-gray-500",children:[(0,l.jsx)("div",{className:"bg-blue-500 w-2 h-2 rounded-full"}),"Subscription"]}):("Physical"==b.properties.productType||"productAddOn"===b.properties.contentType||"productBundle"===b.properties.contentType)&&(0,l.jsxs)("span",{className:"flex justify-center items-center gap-1 text-xs font-medium text-gray-500",children:[(0,l.jsx)("div",{className:"bg-online-green w-2 h-2 rounded-full"}),"In stock"]})]}),!b.properties.licenseIdentifier&&(0,l.jsx)("div",{className:"flex items-center",children:!0==v[b.id]?(0,l.jsx)(p.A,{size:8,color:"#6B7280"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{className:"w-7 border rounded hover:bg-gray-100",onClick:()=>w(b.id,b.quantity-1),disabled:b.quantity<=1,children:"-"}),(0,l.jsx)("input",{type:"text",value:b.quantity,readOnly:!0,className:"w-7 font-medium text-sm text-center"}),(0,l.jsx)("button",{className:"w-7 border rounded hover:bg-gray-100",onClick:()=>w(b.id,b.quantity+1),children:"+"})]})})]})]})]})},g)},b=e=>{let{productReferenceId:t,image:r,name:s,price:n,showPlusButton:a,handleIsChecked:o,isCheckedCard:i=!1}=e,[d,u]=(0,c.useState)(i);return(0,l.jsxs)("div",{className:"flex flex-col items-start w-full max-md:mt-2",children:[(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsxs)("div",{className:"flex relative",children:[(0,l.jsx)("div",{className:"flex flex-col items-end w-full absolute right-[-14px]",children:(0,l.jsx)("input",{id:"checkbox-".concat(t),role:"button",type:"checkbox",checked:d,className:"flex shrink-0 bg-white rounded-md border border-black border-solid h-[30px] w-[30px]",onChange:()=>{u(!d),o(t,!d)}})}),(0,l.jsx)("div",{className:"flex overflow-hidden flex-col justify-center self-end mt-4 max-md:mr-0",children:(0,l.jsx)("figure",{className:"flex basis-36 rounded-lg justify-center items-center p-3 bg-gray-100",children:(0,l.jsx)(m.default,{className:"object-contain",width:130,height:130,src:null!=r?r:f.default,alt:s})})})]}),a&&(0,l.jsx)("div",{className:"flex flex-col my-auto px-4",children:(0,l.jsx)("div",{className:"text-4xl font-bold text-black mt-10",children:"+"})})]}),(0,l.jsx)("div",{className:"mt-4 text-lg font-bold text-black",children:s}),(0,l.jsx)("div",{className:"text-base font-medium text-black",children:n})]})},v=e=>{let{title:t,recommendedProducts:r,formatedTotalPrice:n,buttonTitle:a="Add to Cart"}=e,[i,d]=(0,c.useState)(n),[u,m]=(0,c.useState)(!1),[x,h]=(0,c.useState)(!0),[f,g]=(0,c.useState)(r),{setCurrentCart:v}=(0,s._)();(0,c.useEffect)(()=>{g(r),C(r)},[r]);let j=async()=>{m(!0);try{let e=[];for(let t of f)t.isChecked&&t.showInCart?(await w(t),e.push({...t,isChecked:!1,showInCart:!1})):e.push(t);g(e)}catch(e){console.error("Error adding item to cart",e)}finally{m(!1)}},w=async e=>{var t,r,l;let s={id:e.id,variantId:e.variantId,imageUrl:e.imageUrl,quantity:1,cost:{totalAmount:Number(e.price.replace("$","").replace(",","")),unitAmou
1nt:Number(e.price.replace("$","").replace(",",""))},merchandise:{id:e.id,title:e.productName,variantTitle:e.description},deliveryLocation:null==(t=e.deliveryLocation)?void 0:t.toLocaleUpperCase(),properties:{contentType:null!=(l=null==(r=e.properties)?void 0:r.productType)?l:"Physical"}},n=await (0,o.B5)({...s});if(s.deliveryLocation&&"world"!=s.deliveryLocation.toLowerCase()){let e={billingAddress:{country:s.deliveryLocation},shippingAddress:{sameAsBilling:!0}};await (0,o.JP)(n.id,e)}v({...n})},C=e=>{let t=e.filter(e=>e.isChecked&&e.showInCart).reduce((e,t)=>e+Number(t.price.replace("$","").replace(",","")),0);h(t>0),d(new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(t))},N=(e,t)=>{let r=f.map(r=>r.id===e?{...r,isChecked:t}:r);C(r),g(r)},k=r.length>3?"grid-cols-4 max-lg:grid-cols-2 max-md:grid-cols-1":"grid-cols-".concat(r.length);return f.some(e=>e.showInCart)?(0,l.jsxs)("div",{className:"flex flex-col mt-10 max-md:pr-5 text-black-800",children:[(0,l.jsx)("h2",{className:"self-start py-4 text-xl font-bold text-black bg-white",children:t}),(0,l.jsxs)("div",{className:"flex max-lg:flex-col w-full",children:[(0,l.jsx)("div",{className:"flex flex-col self-stretch max-md:ml-0 max-md:w-full",children:(0,l.jsx)("div",{className:"flex grow max-md:mt-10",children:(0,l.jsx)("div",{className:"flex flex-col grow shrink-0 basis-0 w-fit max-md:mr-0 max-md:max-w-full",children:(0,l.jsx)("div",{className:"max-md:max-w-full",children:(0,l.jsx)("div",{className:"flex max-md:flex-col",children:(0,l.jsx)("div",{className:"grid ".concat(k),children:f.map((e,t)=>e.showInCart&&(0,l.jsx)("div",{className:"min-w-[13rem] max-w-[13rem]",children:(0,l.jsx)(b,{productReferenceId:e.id,image:e.imageUrl,name:e.productName,price:e.price,showPlusButton:t!==f.length-1,handleIsChecked:N,isCheckedCard:e.isChecked})},t))})})})})})}),(0,l.jsxs)("div",{className:"flex flex-col ml-16 w-[20rem] max-md:ml-0 max-md:w-full my-auto self-start",children:[(0,l.jsxs)("div",{className:"flex mr-4 ml-4 text-lg text-black max-md:mx-2.5",children:[(0,l.jsx)("div",{className:"grow font-bold",children:"Total Price:"}),(0,l.jsx)("div",{className:"font-medium",children:i})]}),(0,l.jsx)("button",{onClick:j,className:"overflow-hidden px-16 py-4 mt-2 text-lg font-semibold text-white bg-orange-600 hover:bg-orange-800 rounded-lg max-md:px-5",disabled:u||!x,children:(0,l.jsx)("span",{className:"justify-center pr-1 pl-1.5",children:u?(0,l.jsx)(p.A,{size:10,color:"white"}):a})})]})]})]}):(0,l.jsx)(l.Fragment,{})},j=()=>{let{currentCart:e}=(0,s._)();if(!e||!e.orderLines)return null;let t=(e=>{var t;let r=[];return null==(t=e.orderLines)||t.forEach(t=>{var l,s;if(null==(l=t.properties)?void 0:l.recommendedProducts){let l=JSON.parse(null==(s=t.properties)?void 0:s.recommendedProducts);l.recommendedItems=l.recommendedItems.map(t=>{var r;return{...t,showInCart:!(null==(r=e.orderLines)?void 0:r.some(e=>e.productReference===t.id&&e.productVariantReference===t.variantId))}}),r.push({recommendedByOrderLine:t.id,recommendedTitle:l.recommendedTitle,recommendedItems:l.recommendedItems})}}),r})(e);return 0===t.length?null:(0,l.jsx)(l.Fragment,{children:t.map((e,t)=>{let r=e.recommendedItems.filter(e=>e.showInCart).reduce((e,t)=>e+Number(t.price.replace("$","").replace(",","")),0);return(0,l.jsx)(v,{title:e.recommendedTitle,recommendedProducts:e.recommendedItems,formatedTotalPrice:r.toCurrencyFormat()},t)})})};var w=r(863);let C=function(e){var t,r,m,x;let{isModal:h=!1}=e,f=(0,n.useRouter)(),{currentCart:p,setCurrentCart:b,closeCart:v}=(0,s._)(),[C,N]=(0,c.useState)(!0),[k,y]=(0,c.useState)({}),L=(0,c.useRef)(!1),F=(0,c.useCallback)(()=>{if(h)f.push("/cart");else{var e;w.U.trackInitiateCheckout(p.orderLines.map(e=>({id:e.id,variantId:e.productVariantReference,quantity:e.quantity,cost:{totalAmount:e.totalPrice.value.withTax,unitAmount:e.unitPrice.value.withTax},merchandise:{id:e.productReference,title:e.name},imageUrl:""})),p.totalPrice.value.withTax,(null==(e=p.currency)?void 0:e.code)||"USD"),f.push("/checkout/detail
1s")}},[f,h,p]),I=(0,c.useCallback)(async(e,t)=>{y(t=>({...t,[e]:!0}));try{let r=await (0,o.Ai)(e);t&&(r.orderLines=r.orderLines.map(r=>{if(r.id===e){var l;let e={...r.properties,licenseKey:((e,t)=>{var r;let l=null==t?void 0:t.split("|"),s=null==l?void 0:l.filter(t=>t!==e);return null!=(r=null==s?void 0:s.join("|"))?r:void 0})(t,null==(l=r.properties)?void 0:l.licenseIdentifier)};return{...r,properties:e}}return r})),b(r)}catch(e){console.error("Error removing item:",e)}y(t=>({...t,[e]:!1}))},[b]),P=(0,c.useMemo)(()=>(0,u.s)(async(e,t,r)=>{y(t=>({...t,[e]:!0}));try{let l=await (0,o._V)(e,t,r);b(l)}catch(e){console.error("Error updating item quantity:",e)}finally{y(t=>({...t,[e]:!1}))}},500),[b]),B=(0,c.useCallback)((e,t,r)=>{P(e,t,r)},[P]);(0,c.useEffect)(()=>{p&&!h&&v(),N(!1)},[p,v,h]),(0,c.useEffect)(()=>{!h&&(null==p?void 0:p.id)&&!L.current&&(L.current=!0,(0,i.jB)(p.id).then(e=>{e&&b(e)}))},[h,null==p?void 0:p.id,b]);let A=(0,c.useMemo)(()=>{var e,t;return C?(0,l.jsx)(d.A,{}):p&&(null==p||null==(e=p.orderLines)?void 0:e.length)!==0?(0,l.jsx)("ul",{className:"flex flex-col gap-y-4",children:null==p||null==(t=p.orderLines)?void 0:t.filter(e=>{var t;return!e.bundleId||(null==(t=e.orderLines)?void 0:t.length)>0}).map((e,t)=>{var r;return(null==(r=e.properties)?void 0:r.licenseIdentifier)?e.properties.licenseIdentifier.split("|").map((t,r)=>(0,l.jsx)(g,{index:r,item:e,updatingItems:k,handleRemoveItem:I,handleUpdateItemQuantity:B,licenseIdentifier:t},r)):(0,l.jsx)(g,{index:t,item:e,updatingItems:k,handleRemoveItem:I,handleUpdateItemQuantity:B},t)})}):(0,l.jsx)("p",{children:"Your cart is empty."})},[p,C,I,B,k]);return(0,l.jsx)("section",{className:"".concat(h?"h-full":"px-6 md:px-12 lg:px-16 pb-16 min-h-dvh"),children:(0,l.jsx)("div",{className:"".concat(h?"h-full":"max-w-[1920px] mx-auto mt-6"),children:(0,l.jsxs)("div",{className:"".concat(h?"h-full flex flex-col":"md:flex gap-5 md:gap-24 lg:gap-x-24 2xl:gap-x-40"),children:[(0,l.jsxs)("div",{className:"w-full mb-6 md:mb-0",children:[!h&&(0,l.jsx)("h2",{className:"font-serif lg:text-2xl text-xl font-medium md:mb-12 mb-4",children:"Cart"}),A,!h&&(0,l.jsx)(j,{})]}),p&&(null==p||null==(t=p.orderLines)?void 0:t.length)>0&&(0,l.jsx)("div",{className:"w-full ".concat(h?"mt-auto":"md:w-4/12 md:min-w-64"),children:(0,l.jsx)(a.A,{handleSubmit:F,nextStepTitle:"Checkout",showCourseWarning:p.orderLines.some(e=>"Course"===e.properties.productType),showWarning:p.orderLines.some(e=>"Physical"===e.properties.productType),showSubsWarning:p.orderLines.some(e=>"Physical"!==e.properties.productType),shippingCost:(null==(x=p.shippingInfo)||null==(m=x.totalPrice)||null==(r=m.value)?void 0:r.withoutTax)||void 0,isModal:h})})]})})})}}}]);
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.