1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cd0867cb-e366-4564-a985-7b6bbf80d50e",e._sentryDebugIdIdentifier="sentry-dbid-cd0867cb-e366-4564-a985-7b6bbf80d50e")}catch(n){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9202],{28527:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-settings/subscriptions",function(){return n(91077)}])},91077:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return X}});var o=n(85893),r=n(67294),i=n(9008),s=n.n(i),l=n(11163),a=n(80822),c=n(98456),d=n(30202),p=n(33934),x=n(6450);let u=e=>{let{active:t,children:n,onClick:r}=e;return(0,o.jsx)(a.Z,{component:"button",onClick:r,sx:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"9px 20px",borderRadius:"9px",border:"none",background:t?"#ffffff":"transparent",color:t?"#000000":"#ffffff",fontSize:15,fontWeight:600,cursor:"pointer",fontFamily:"inherit",whiteSpace:"nowrap",transition:"background .2s, color .2s"},children:n})},h=e=>{let{value:t,onChange:n}=e;return(0,o.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center"},children:(0,o.jsxs)(a.Z,{sx:{display:"inline-flex",background:x.TV.toggleBg,borderRadius:"12px",padding:"4px",gap:"2px"},children:[(0,o.jsx)(u,{active:"monthly"===t,onClick:()=>n("monthly"),children:"Monthly"}),(0,o.jsxs)(u,{active:"annual"===t,onClick:()=>n("annual"),children:["Annually",(0,o.jsx)(a.Z,{component:"span",sx:{background:x.TV.green,color:"#fff",fontSize:11,fontWeight:800,padding:"2px 8px",borderRadius:"20px"},children:"Save 20%"})]})]})})};var f=n(90948);let b=(0,f.ZP)(a.Z,{shouldForwardProp:e=>"popular"!==e&&"edge"!==e})(e=>{let{popular:t,edge:n}=e;return{display:"grid",gridRow:"span 5",gridTemplateRows:"subgrid",border:"1px solid ".concat(x.TV.border),background:"#fff",transition:"box-shadow .2s",position:"relative",..."first"===n&&{borderRadius:"12px 0 0 12px"},..."last"===n&&{borderRadius:"0 12px 12px 0"},"&:hover":{boxShadow:"0 4px 24px rgba(0,0,0,.1)"},...t&&{border:"2px solid ".concat(x.TV.purple),boxShadow:"0 4px 28px rgba(74,21,75,.18)",zIndex:1,"&::before":{content:"'MOST POPULAR'",position:"absolute",top:-44,left:-2,right:-2,height:44,background:x.TV.purple,color:"#fff",fontSize:12,fontWeight:800,letterSpacing:".08em",textTransform:"uppercase",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px 12px 0 0"},"&::after":{content:'""',position:"absolute",bottom:-16,height:16,left:-2,right:-2,background:"#fff",border:"2px solid ".concat(x.TV.purple),borderTop:"none",borderRadius:"0 0 12px 12px"}}}}),g=e=>{let{off:t}=e;return(0,o.jsx)(a.Z,{component:"span",sx:{flex:"0 0 16px",width:16,height:16,mt:"1px",mr:"10px",display:"inline-block",opacity:t?.4:1},children:(0,o.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",width:"16",height:"16",style:{display:"block"},children:[(0,o.jsx)("circle",{cx:"8",cy:"8",r:"8",fill:x.TV.purple}),(0,o.jsx)("polyline",{points:"4,8 7,11 12,5",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})},m=e=>{let{plan:t,billing:n,edge:r,isCurrent:i}=e,s=(0,l.useRouter)(),c="annual"===n?t.annualPerMonth:t.monthlyPrice,d=t.billingNote?t.billingNote[n]:t.contactNote,p=()=>{if(!i){if(t.contactSales){window.location.href="mailto:[email protected]?subject=Enterprise%2B%20pricing%20inquiry";return}if(t.freeForever){s.push("/account-settings/subscriptions?activate=free");return}s.push("/account-settings/subscriptions/checkout?plan=".concat(t.key,"&billing=").concat(n))}};return(0,o.jsxs)(b,{popular:t.popular,edge:r,children:[(0,o.jsxs)(a.Z,{sx:{p:"0 24px 16px",pt:t.popular?"10px":0},children:[(0,o.jsx)(a.Z,{sx:{minHeight:26,mb:"10px"},children:i&&(0,o.jsx)(a.Z,{component:"span",sx:{display:"inline-block",background:x.TV.purple,color:"#fff",fontSize:11,fontWeight:800,letterSpacing:".06em",textTransform:"uppercase",padding:"3px 10px",borderRadius:"20px"},children:"Your Current Plan"})}),(0,o.jsx)(a.Z,{sx:{fontSize:18,fontWeight:800,color:x.TV.text,mb:"8px"},children:t.title}),(0,o.jsx)(a.Z,{sx:{fontSize:13,color:x.TV.textMuted,lineHeight:1.5},children:t.description})]}),(0,o.jsx)(a.Z,{sx:{p:"0 24px",display:"flex",alignItems:"flex-start"},children:(0,o.jsx)(a.Z,{sx:{display:"flex",alignItems:"baseline",gap:"2px"},children:t.contactSales?(0,o.jsx)(a.Z,{sx:{fontSize:32,fontWeight:600,lineHeight:1.25,color:x.TV.text},children:"Contact Us"}):t.freeForever?(0,o.jsx)(a.Z,{sx:{fontSize:46,fontWeight:600,letterSpacing:"-.03em",lineHeight:1,color:x.TV.text},children:"$0"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Z,{sx:{fontSize:18,fontWeight:700,alignSelf:"flex-start",mt:"8px",color:x.TV.text},children:"$"}),(0,o.jsx)(a.Z,{sx:{fontSize:46,fontWeight:600,letterSpacing:"-.03em",lineHeight:1,color:x.TV.text},children:null==c?void 0:c.toFixed(2)}),(0,o.jsx)(a.Z,{sx:{fontSize:13,fontWeight:600,color:x.TV.textMuted,ml:"4px",alignSelf:"flex-end",mb:"5px"},children:"USD/mo"})]})})}),(0,o.jsx)(a.Z,{sx:{p:"6px 24px 0"},children:(0,o.jsx)(a.Z,{sx:{fontSize:12,color:x.TV.textMuted,lineHeight:1.55,whiteSpace:"pre-line",minHeight:t.freeForever?"auto":36},children:t.freeForever?"Free forever":d})}),(0,o.jsx)(a.Z,{sx:{p:"16px 24px 20px"},children:(0,o.jsx)(a.Z,{component:"button",type:"button",onClick:p,disabled:i,sx:{display:"block",width:"100%",padding:"11px",borderRadius:"30px",fontSize:14,fontWeight:700,textAlign:"center",cursor:i?"default":"pointer",fontFamily:"inherit",transition:"background .15s, border-color .15s",...i?{background:x.TV.commonHighlight,color:x.TV.purple,border:"2px s
1olid ".concat(x.TV.purple)}:"primary"===t.ctaVariant?{background:x.TV.purple,color:"#fff",border:"none","&:hover":{background:x.TV.purpleHover}}:{background:"#fff",color:x.TV.purple,border:"2px solid ".concat(x.TV.purple),"&:hover":{background:"#f9f3fa"}}},children:i?"Your Current Plan":t.ctaLabel})}),(0,o.jsx)(a.Z,{sx:{borderTop:"1px solid ".concat(x.TV.border),background:"#fff"},children:(0,o.jsx)(a.Z,{component:"ul",sx:{display:"flex",flexDirection:"column",listStyle:"none",m:0,p:0},children:t.features.map(e=>{let t="off"===e.state,n="common"===e.state,r="bold"===e.state;return(0,o.jsxs)(a.Z,{component:"li",sx:{display:"flex",alignItems:"flex-start",fontSize:13,color:t?"#aaaaaa":x.TV.textMid,fontWeight:r?600:400,lineHeight:1.45,p:"7px 20px",background:n?"#f9f0ff":"transparent"},children:[(0,o.jsx)(g,{off:t}),e.label]},e.label)})})})]})};var y=n(34386);let j=()=>(0,o.jsx)(a.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,background:x.TV.purple,borderRadius:"50%"},children:(0,o.jsx)("svg",{viewBox:"0 0 12 12",width:"12",height:"12",style:{fill:"none",stroke:"#fff",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"},children:(0,o.jsx)("polyline",{points:"2,6 5,9 10,3"})})}),w=e=>"boolean"==typeof e?e?(0,o.jsx)(j,{}):(0,o.jsx)(a.Z,{component:"span",sx:{color:"#9c9c9c",fontSize:18,lineHeight:1},children:"â"}):(0,o.jsx)(a.Z,{component:"span",sx:{fontWeight:600,fontSize:13,color:x.TV.textMid},children:e}),T={new:{bg:"#e6efff",color:"#1d4eb1",label:"New"},"coming-soon":{bg:"#dff5e3",color:"#1d6a3a",label:"Coming Soon"}},S=e=>{let{kind:t}=e,n=T[t];return(0,o.jsx)(a.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",background:n.bg,color:n.color,fontSize:11,fontWeight:700,padding:"3px 8px",borderRadius:"999px",whiteSpace:"nowrap"},children:n.label})},Z=e=>{let{tip:t}=e;return(0,o.jsx)(y.Z,{title:t,arrow:!0,placement:"top",enterTouchDelay:0,children:(0,o.jsx)(a.Z,{component:"span",role:"button",tabIndex:0,"aria-label":"More information",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,ml:"auto",color:"#9c9c9c",cursor:"help",flexShrink:0,"&:hover":{color:x.TV.purple}},children:(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,o.jsx)("path",{fill:"currentColor",d:"M6.5 0.3C9.65 0.3 12.2 2.85 12.2 6S9.65 11.7 6.5 11.7 0.8 9.15 0.8 6 3.35 0.3 6.5 0.3Zm0 1.5A4.2 4.2 0 1 0 10.7 6 4.2 4.2 0 0 0 6.5 1.8Zm0 3a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 .75-.75Zm0-1.8a.6.6 0 1 1 0 1.2.6.6 0 0 1 0-1.2Z"})})})})},k=e=>{let{row:t}=e;return(0,o.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",gap:"8px",width:"100%"},children:[(0,o.jsx)(a.Z,{component:"span",children:t.feature}),t.badge&&(0,o.jsx)(S,{kind:t.badge}),(0,o.jsx)(Z,{tip:t.tooltip||t.feature})]})},v=()=>(0,o.jsx)(a.Z,{sx:{background:x.TV.bg,py:{xs:8,md:10},px:3},children:(0,o.jsxs)(a.Z,{sx:{maxWidth:1280,mx:"auto"},children:[(0,o.jsx)(a.Z,{component:"h2",sx:{textAlign:"center",fontSize:32,fontWeight:600,letterSpacing:"-.02em",color:x.TV.text,m:0,mb:1},children:"Compare all plans"}),(0,o.jsx)(a.Z,{component:"p",sx:{textAlign:"center",fontSize:16,color:x.TV.textMuted,m:0,mb:6},children:"Choose the plan that has the features your team needs."}),(0,o.jsx)(a.Z,{sx:{border:"1px solid ".concat(x.TV.border),borderRadius:"8px",overflow:"visible",background:"#fff"},children:(0,o.jsxs)(a.Z,{component:"table",sx:{width:"100%",borderCollapse:"collapse","& thead th":{position:"sticky",top:64,zIndex:10,background:"#fff",padding:"20px 20px 16px",textAlign:"center",verticalAlign:"top",boxShadow:"0 1px 0 0 #eee"},"& thead th:first-of-type":{textAlign:"left"},"& tbody tr":{borderBottom:"1px solid ".concat(x.TV.rowBorder)},"& tbody tr:last-child":{borderBottom:"none"},"& tbody tr:not(.cat-row):hover td, & tbody tr:not(.cat-row):hover th":{background:x.TV.hoverRow},"& tbody th":{fontSize:14,fontWeight:500,padding:"14px 20px",textAlign:"left",width:"32%",verticalAlign:"middle",borderRight:"1px solid ".concat(x.TV.rowBorder),color:x.TV.text},"& tbody td":{fontSize:13,color:x.TV.textMid,padding:"14px 20px",textAlign:"center",verticalAlign:"middle"},"& tr.cat-row td":{color:x.TV.purpleDark,fontSize:18,fontWeight:600,letterSpacing:".08em",padding:"30px 20px 10px",textAlign:"left"},"& tr.cat-row:hover td":{background:"transparent !important"}},children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{}),x.z5.map(e=>(0,o.jsxs)("th",{children:[(0,o.jsx)(a.Z,{sx:{fontSize:16,fontWeight:800,mb:"4px",color:x.TV.text},children:e.title}
1),(0,o.jsx)(a.Z,{component:"a",href:"#",sx:{display:"inline-block",padding:"7px 16px",borderRadius:"4px",fontSize:12,fontWeight:700,border:"1.5px solid ".concat(x.TV.purple),background:x.TV.purple,color:"#fff",whiteSpace:"nowrap",textDecoration:"none",transition:"background .15s","&:hover":{background:x.TV.purpleHover}},children:e.contactSales?"Contact Sales":e.ctaLabel})]},e.key))]})}),(0,o.jsx)("tbody",{children:x.lc.map(e=>(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("tr",{className:"cat-row",children:(0,o.jsx)("td",{colSpan:5,children:e.category})}),e.rows.map(t=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{children:(0,o.jsx)(k,{row:t})}),(0,o.jsx)("td",{children:w(t.free)}),(0,o.jsx)("td",{children:w(t.pro)}),(0,o.jsx)("td",{children:w(t.business)}),(0,o.jsx)("td",{children:w(t.enterprise)})]},"".concat(e.category,"-").concat(t.feature)))]},e.category))})]})})]})});var V=n(57922);let z=e=>{let{id:t,question:n,answer:i}=e,[s,l]=(0,r.useState)(!1);return(0,o.jsxs)(a.Z,{sx:{borderBottom:"1px solid ".concat(x.TV.border),px:{xs:2,md:5}},children:[(0,o.jsxs)(a.Z,{component:"button",onClick:()=>l(e=>!e),sx:{width:"100%",textAlign:"left",background:"none",border:"none",padding:"20px 0",fontSize:15,fontWeight:700,color:x.TV.text,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"16px",fontFamily:"inherit",transition:"color .15s","&:hover":{color:x.TV.purple}},children:[n,(0,o.jsx)(a.Z,{component:"span",sx:{flex:"0 0 20px",width:20,height:20,color:x.TV.textMuted,transition:"transform .25s",transform:s?"rotate(180deg)":"rotate(0deg)"},children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",width:"20",height:"20",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]}),(0,o.jsx)(V.Z,{in:s,timeout:300,children:(0,o.jsx)(a.Z,{sx:{fontSize:15,color:x.TV.textMuted,lineHeight:1.7,pb:"20px"},children:i})})]},t)},W=()=>(0,o.jsxs)(a.Z,{sx:{py:{xs:8,md:10},px:3},children:[(0,o.jsx)(a.Z,{component:"h2",sx:{fontSize:32,fontWeight:600,letterSpacing:"-.02em",textAlign:"center",color:x.TV.text,m:0,mb:1.5},children:"Frequently asked questions"}),(0,o.jsxs)(a.Z,{component:"p",sx:{textAlign:"center",color:x.TV.textMuted,fontSize:16,m:0,mb:6,"& a":{color:x.TV.purple,fontWeight:600,textDecoration:"none"}},children:["Have another question? Contact our ",(0,o.jsx)("a",{href:"#",children:"sales team"}),"."]}),(0,o.jsx)(a.Z,{sx:{maxWidth:720,mx:"auto"},children:x.sb.map(e=>(0,o.jsx)(z,{...e},e.id))})]});var C=n(86886),R=n(25601),A=n(51897);let F=e=>{var t;let{subscription:n,onChangePlan:i,onChanged:c}=e;(0,l.useRouter)();let[d,p]=(0,r.useState)(!1),[u,h]=(0,r.useState)(!1),[f,b]=(0,r.useState)(null),[g,m]=(0,r.useState)(!1),[y,j]=(0,r.useState)(null),w=async()=>{if(T){m(!0),j(null);try{await (0,R.oz)(n,T)}catch(e){j("We couldn't generate your receipt. Please try again.")}finally{m(!1)}}},T=x.z5.find(e=>e.key===n.tier);if(!T)return null;let S=new Date(n.startDate),Z=new Date(n.endDate),k=n.billingInterval,v=null!==(t=n.renewalAmount)&&void 0!==t?t:n.amount,V=!1===n.autoRenew,z=(n.status,e=>e.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})),W=async()=>{h(!0),b(null);try{await (0,R.EO)(n.id),p(!1),c()}catch(e){b("We couldn't cancel your subscription. Please try again.")}finally{h(!1)}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsx)(s(),{children:(0,o.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Outfit:wght@500&display=swap",rel:"stylesheet"})}),(0,o.jsx)(a.Z,{sx:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",color:x.TV.text,background:"#fff",mx:{xs:-4,md:-6},mt:{xs:-4,md:-6},mb:{xs:-4,md:-6},minHeight:"calc(100vh - 64px)"},children:(0,o.jsxs)(a.Z,{sx:{maxWidth:980,mx:"auto",px:{xs:3,md:6},py:{xs:6,md:8}},children:[(0,o.jsx)(a.Z,{component:"h1",sx:{fontFamily:"'Outfit', sans-serif",fontSize:{xs:28,md:36},fontWeight:500,letterSpacing:"-.02em",m:0,mb:1},children:"Your subscription"}),(0,o.jsx)(a.Z,{component:"p",sx:{fontSize:16,color:x.TV.textMuted,m:0,mb:5},children:"Manage your active plan, payment method, and billing cycle."}),!1,(0,o.jsxs)(C.ZP,{container:!0,spacing:4,children:[(0,o.jsx)(C.ZP,{item:!0,xs:12,md:7,children:(0,o.jsxs)(a.Z,{sx:{border:"2px s
1olid ".concat(x.TV.purple),borderRadius:"12px",p:{xs:3,md:4},background:"#fff",position:"relative"},children:[(0,o.jsx)(a.Z,{sx:{display:"inline-block",background:x.TV.purple,color:"#fff",fontSize:11,fontWeight:800,letterSpacing:".08em",textTransform:"uppercase",padding:"3px 10px",borderRadius:"20px",mb:2},children:"Active plan"}),(0,o.jsx)(a.Z,{sx:{fontSize:26,fontWeight:800,color:x.TV.text,mb:1},children:T.title}),(0,o.jsx)(a.Z,{sx:{fontSize:14,color:x.TV.textMuted,mb:3},children:T.description}),(0,o.jsxs)(a.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},rowGap:2,columnGap:4,pt:2,borderTop:"1px solid ".concat(x.TV.border)},children:[(0,o.jsx)(M,{label:"Status",value:n.status.replace(/_/g," ").toUpperCase()}),(0,o.jsx)(M,{label:"Billing cycle",value:"annual"===k?"Annual":"Monthly"}),(0,o.jsx)(M,{label:"Per company / month",value:"$".concat(("annual"===k?v/12:v).toFixed(2)," USD")}),(0,o.jsx)(M,{label:"annual"===k?"Annual total":"Monthly total",value:"$".concat(v.toFixed(2)," USD")}),(0,o.jsx)(M,{label:"Started",value:z(S)}),(0,o.jsx)(M,{label:V?"Ends on":"Renews on",value:z(Z)}),(0,o.jsx)(M,{label:"Auto-renew",value:V?"Off":"annual"===k?"On \xb7 Annual":"On \xb7 Monthly"}),(0,o.jsx)(M,{label:"Receipt email",value:n.receiptEmail})]})]})}),(0,o.jsx)(C.ZP,{item:!0,xs:12,md:5,children:(0,o.jsxs)(a.Z,{sx:{border:"1px solid ".concat(x.TV.border),borderRadius:"12px",p:{xs:3,md:4},background:x.TV.bg},children:[(0,o.jsx)(a.Z,{sx:{fontSize:18,fontWeight:800,color:x.TV.text,mb:2},children:"Manage"}),(0,o.jsx)(a.Z,{sx:{fontSize:14,color:x.TV.textMuted,mb:3,lineHeight:1.5},children:"Switch to a different plan or cancel your subscription. Cancellations stay active until the end of the current billing period."}),(0,o.jsx)(a.Z,{component:"button",onClick:i,sx:{display:"block",width:"100%",padding:"11px",borderRadius:"30px",fontSize:14,fontWeight:700,textAlign:"center",cursor:"pointer",fontFamily:"inherit",transition:"background .15s",background:x.TV.purple,color:"#fff",border:"none",mb:2,"&:hover":{background:x.TV.purpleHover}},children:"Change plan"}),V?(0,o.jsxs)(a.Z,{sx:{p:2,borderRadius:"10px",background:x.TV.bg,border:"1px solid ".concat(x.TV.border),fontSize:13,color:x.TV.textMuted,lineHeight:1.5},children:["Auto-renew is off. Your plan stays active until"," ",(0,o.jsx)("strong",{children:z(Z)})," and won't renew."]}):d?(0,o.jsxs)(a.Z,{sx:{mt:1,p:2.5,borderRadius:"10px",background:"#fdecef",border:"1px solid #f4c2cc"},children:[(0,o.jsx)(a.Z,{sx:{fontSize:13,color:"#7a1224",fontWeight:700,mb:1.5},children:"Are you sure you want to cancel?"}),f&&(0,o.jsx)(a.Z,{sx:{fontSize:12,color:"#a8182f",fontWeight:600,mb:1.5},children:f}),(0,o.jsxs)(a.Z,{sx:{display:"flex",gap:1.5},children:[(0,o.jsx)(a.Z,{component:"button",onClick:W,disabled:u,sx:{flex:1,padding:"9px",borderRadius:"30px",background:"#d3203c",color:"#fff",border:"none",fontSize:13,fontWeight:700,cursor:u?"default":"pointer",opacity:u?.6:1,fontFamily:"inherit","&:hover":{background:u?"#d3203c":"#a8182f"}},children:u?"Cancellingâ¦":"Yes, cancel"}),(0,o.jsx)(a.Z,{component:"button",onClick:()=>{p(!1),b(null)},disabled:u,sx:{flex:1,padding:"9px",borderRadius:"30px",background:"#fff",color:x.TV.text,border:"1px solid ".concat(x.TV.border),fontSize:13,fontWeight:700,cursor:u?"default":"pointer",opacity:u?.6:1,fontFamily:"inherit"},children:"Keep plan"})]})]}):(0,o.jsx)(a.Z,{component:"button",onClick:()=>p(!0),sx:{display:"block",width:"100%",padding:"11px",borderRadius:"30px",fontSize:14,fontWeight:700,textAlign:"center",cursor:"pointer",fontFamily:"inherit",background:"#fff",color:"#d3203c",border:"2px solid #d3203c",transition:"background .15s","&:hover":{background:"#fdecef"}},children:"Cancel subscription"}),(0,o.jsxs)(a.Z,{sx:{mt:3,pt:3,borderTop:"1px solid ".concat(x.TV.border)},children:[(0,o.jsxs)(a.Z,{component:"button",onClick:w,disabled:g,sx:{display:"inline-flex",alignItems:"center",gap:"8px",background:"none",border:"none",p:0,color:x.TV.purple,fontSize:13,fontWeight:600,cursor:g?"default":"pointer",opacity:g?.6:1,fontFamily:"inherit","&:hover":{textDecoration:g?"none":"underline"}},children:[(0,o.jsx)(a.Z,{component:"span","aria-hidden":!0,sx:{display:"inline-flex"},children:(0,o.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,o.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,o.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),g?"Preparing receiptâ¦":"Download receipt"]}),y&&(0,o.jsx)(a.Z,{sx:{mt:1,fontSize:12,color:"#a8182f",fontWeight:500},children:y})]})]})})]})]})})]})},M=e=>{let{label:t,value:n}=e;return(0,o.jsxs)(a.Z,{children:[(0,o.jsx)(a.Z,{sx:{fontSize:12,fontWeight:700,color:x.TV.textMuted,textTransform:"uppercase",letterSpacing:".06em",mb:.5},children:t}),(0,o.jsx)(a.Z,{sx:{fontSize:14,fontWeight:600,color:x.TV.text},children:n})]})};var I=n(64666),E=n(78268);let _={fontFamily:"'Outfit', sans-serif",fontWeight:700,fontSize:{xs:26,md:30},color:x.TV.text,textAlign:"center",letterSpacing:"-.01em",m:0},H={fontSize:17,lineHeight:1.5,color:x.TV.textMid,textAlign:"center"},P={display:"block",mx:"auto",minWidth:180,px:5,py:"13px",borderRadius:"30px",border:"none",cursor:"pointer",fontFamily:"inherit",fontSize:15,fontWeight:700,letterSpacing:".04em",textTransform:"uppercase",background:x.TV.purple,color:"#fff",transition:"background .15s, opacity .15s","&:hover":{background:x.TV.purpleHover},"&:disabled":{opacity:.6,cursor:"not-allowed"}},B=()=>(0,o.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center",my:4},children:(0,o.jsx)(a.Z,{component:"img",src:"/jebbee-verified.png",alt:"Jebbee Verified badge",sx:{width:150,height:"auto",display:"block"}})}),D=()=>(0,o.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center",my:3},children:(0,o.jsx)(a.Z,{component:"img",src:"/badge-jebbee-mentor.png",alt:"Jebbee Mentor
1Company badge",sx:{width:180,height:"auto",display:"block"}})}),L=e=>{let{on:t,onChange:n,disabled:r}=e;return(0,o.jsx)(a.Z,{role:"switch","aria-checked":t,onClick:()=>!r&&n(!t),sx:{width:52,height:30,flexShrink:0,borderRadius:"15px",background:t?x.TV.purple:"#cfcfcf",position:"relative",cursor:r?"not-allowed":"pointer",opacity:r?.5:1,transition:"background .15s"},children:(0,o.jsx)(a.Z,{sx:{position:"absolute",top:"3px",left:t?"25px":"3px",width:24,height:24,borderRadius:"50%",background:"#fff",transition:"left .15s",boxShadow:"0 1px 3px rgba(0,0,0,0.25)"}})})},O=e=>{let{open:t,organizationId:n,onClose:i}=e,[s,l]=(0,r.useState)(1),[c,d]=(0,r.useState)(!0),[p,u]=(0,r.useState)(!1),h=()=>{i(),l(1),d(!0)},f=async()=>{if(n){u(!0);try{await (0,R.yW)(n,c)}catch(e){}u(!1)}h()};return(0,o.jsxs)(I.Z,{open:t,onClose:h,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"20px",p:{xs:3,md:5},position:"relative",overflow:"visible"}},children:[(0,o.jsx)(a.Z,{component:"button","aria-label":"Close",onClick:h,sx:{position:"absolute",top:16,right:16,width:40,height:40,borderRadius:"50%",border:"none",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(E.Z,{size:22,color:x.TV.text})}),1===s?(0,o.jsxs)(a.Z,{sx:{pt:2},children:[(0,o.jsx)(a.Z,{component:"h2",sx:_,children:"Subscription Activated"}),(0,o.jsx)(B,{}),(0,o.jsx)(a.Z,{sx:{...H,mb:4,px:{xs:0,md:3}},children:"Your subscription has been activated and your verified badge has been added to your Company profile."}),(0,o.jsx)(a.Z,{component:"button",onClick:()=>l(2),sx:P,children:"Next"})]}):(0,o.jsxs)(a.Z,{sx:{pt:2},children:[(0,o.jsx)(a.Z,{component:"h2",sx:_,children:"You've been awarded a new badge"}),(0,o.jsx)(D,{}),(0,o.jsx)(a.Z,{sx:{...H,fontSize:15,mb:3,px:{xs:0,md:2}},children:"The Jebbee Mentor Company badge is awarded to companies who are committed to supporting students through exploration, workforce readiness and educational partnerships. Schools and students can identify your company as a trusted partner, dedicated to helping students prepare for future educational, and career success."}),(0,o.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,p:2.5,mb:4,borderRadius:"12px",border:"1px solid ".concat(x.TV.border),background:x.TV.bg},children:[(0,o.jsx)(a.Z,{sx:{fontSize:16,fontWeight:700,color:x.TV.text},children:"Activate Mentor Badge"}),(0,o.jsx)(L,{on:c,onChange:d,disabled:!n})]}),(0,o.jsx)(a.Z,{component:"button",onClick:f,disabled:p,sx:P,children:p?"Savingâ¦":"Done"})]})]})};var U=n(68719);let N=e=>["subscription","org",e],q=()=>{var e,t,n;let i=(0,l.useRouter)(),u=(0,d.NL)(),{selectedOrgId:f}=(0,U.h)(),[b,g]=(0,r.useState)("annual"),[y,j]=(0,r.useState)(!1),[w,T]=(0,r.useState)(!1),{data:S,isLoading:Z,isError:k,refetch:V}=(0,p.a)({queryKey:N(f),queryFn:()=>(0,R.XB)(f),enabled:Boolean(f),retry:1,staleTime:3e4});if((0,r.useEffect)(()=>{"success"===i.query.status&&(j(!0),u.invalidateQueries({queryKey:N(f)}),i.replace(i.pathname,void 0,{shallow:!0}))},[i.query.status,i,u,f]),!f)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsxs)(a.Z,{sx:{textAlign:"center",py:10},children:[(0,o.jsx)(a.Z,{sx:{fontSize:16,fontWeight:600,color:x.TV.text,mb:1},children:"Select an organization to manage its subscription."}),(0,o.jsx)(a.Z,{sx:{fontSize:14,color:x.TV.textMuted},children:"Use the organization switcher in the left sidebar. You need to be an owner of an organization to subscribe."})]})]});if(Z)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60vh"},children:(0,o.jsx)(c.Z,{sx:{color:x.TV.purple}})})]});if(k)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsxs)(a.Z,{sx:{textAlign:"center",py:10},children:[(0,o.jsx)(a.Z,{sx:{fontSize:16,fontWeight:600,color:x.TV.text,mb:1},children:"We couldn't load your subscription."}),(0,o.jsx)(a.Z,{component:"button",onClick:()=>V(),sx:{mt:2,background:x.TV.purple,color:"#fff",border:"none",borderRadius:"30px",padding:"10px 20px",fontWeight:700,cursor:"pointer"},children:"Try again"})]})]});let z=null!==(t=null==S?void 0:null===(e=S.subscription)||void 0===e?void 0:e.tier)&&void 0!==t?t:null;return(null==S?void 0:S.hasActiveSubscription)&&S.subscription&&!w?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsx)(O,{open:y,organizationId:null!==(n=S.subscription.organizationId)&&void 0!==n?n:f,onClose:()=>j(!1)}),(0,o.jsx)(F,{subscription:S.subscription,onChangePlan:()=>{var e,t;
1g(null!==(t=null===(e=S.subscription)||void 0===e?void 0:e.billingInterval)&&void 0!==t?t:"annual"),T(!0)},onChanged:()=>{j(!1),u.invalidateQueries({queryKey:N(f)})}})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.Z,{}),(0,o.jsx)(s(),{children:(0,o.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Outfit:wght@500&display=swap",rel:"stylesheet"})}),(0,o.jsxs)(a.Z,{sx:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",color:x.TV.text,background:"#f8f8f8",mx:{xs:-4,md:-6},mt:{xs:-4,md:-6},mb:{xs:-4,md:-6},"& *":{boxSizing:"border-box"}},children:[(0,o.jsxs)(a.Z,{sx:{textAlign:"center",padding:{xs:"60px 24px 40px",md:"80px 24px 52px"}},children:[w&&(0,o.jsx)(a.Z,{component:"button",onClick:()=>T(!1),sx:{display:"inline-flex",alignItems:"center",gap:"6px",background:"none",border:"none",color:x.TV.purple,fontSize:14,fontWeight:600,cursor:"pointer",mb:3,fontFamily:"inherit","&:hover":{textDecoration:"underline"}},children:"â Back to my subscription"}),(0,o.jsx)(a.Z,{component:"h1",sx:{fontFamily:"'Outfit', sans-serif",fontSize:{xs:32,md:46},fontWeight:500,color:x.TV.text,letterSpacing:"-.03em",lineHeight:1.1,m:0,mb:"14px"}
1,children:w?"Change your plan":"Choose a paid plan built for businesses"}),(0,o.jsx)(a.Z,{component:"p",sx:{fontSize:18,color:x.TV.textMuted,m:0,mb:"36px"},children:w?"Your current plan is highlighted below. Select a different plan to switch.":"Or start with the basics for free, and upgrade at any time."}),(0,o.jsx)(h,{value:b,onChange:g})]}),(0,o.jsx)(a.Z,{sx:{padding:{xs:"60px 16px 40px",md:"60px 24px 80px"}},children:(0,o.jsx)(a.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"repeat(2, 1fr)",lg:"repeat(4, 1fr)"},maxWidth:1280,mx:"auto",rowGap:{xs:6,lg:0}},children:x.z5.map((e,t)=>(0,o.jsx)(m,{plan:e,billing:b,edge:0===t?"first":t===x.z5.length-1?"last":"middle",isCurrent:e.key===z},e.key))})}),(0,o.jsx)(v,{}),(0,o.jsx)(W,{})]})]})},Y=()=>(0,o.jsx)(q,{});var X=Y},51897:function(e,t,n){"use strict";var o=n(85893),r=n(66294);let i=()=>(0,o.jsx)(r.Z,{styles:{".layout-footer":{display:"none !important"}}});t.Z=i},25601:function(e,t,n){"use strict";n.d(t,{EO:function(){return c},Eg:function(){return h},Qz:function(){return m},TV:function(){return d},XB:function(){return l},XW:function(){return a},Xe:function(){return f},YE:function(){return g},dr:function(){return x},oz:function(){return u},pT:function(){return p},rg:function(){return b},yW:function(){return y}});var o=n(97218),r=n.n(o),i=n(18763);let s=()=>{let e=window.localStorage.getItem("accessToken");return e?{Authorization:"Bearer ".concat(e)}:{}},l=async e=>{try{return await i._i.get(i.ET.subscriptions.organization(e),{headers:s()})}catch(n){var t;if(r().isAxiosError(n)&&(null===(t=n.response)||void 0===t?void 0:t.status)===404)return{hasActiveSubscription:!1,subscription:null};throw n}},a=async e=>await i._i.post(i.ET.subscriptions.create,e,{headers:s()}),c=async e=>await i._i.post(i.ET.subscriptions.cancel(e),{},{headers:s()}),d=async(e,t)=>await i._i.post(i.ET.subscriptions.paymentMethod(e),{paymentToken:t},{headers:s()}),p=async()=>await i._i.post(i.ET.subscriptions.payrocSession,{},{headers:s()}),x=async e=>await i._i.post(i.ET.subscriptions.validatePromo,{code:e},{headers:s()}),u=async(e,t)=>{let{renderReceiptHtml:o}=await Promise.all([n.e(6450),n.e(7287)]).then(n.bind(n,77287)),r=o(e,t),i=document.createElement("iframe");i.setAttribute("aria-hidden","true"),i.style.position="fixed",i.style.right="0",i.style.bottom="0",i.style.width="0",i.style.height="0",i.style.border="0",document.body.appendChild(i);let s=i.contentDocument,l=i.contentWindow;if(!s||!l)throw i.remove(),Error("Unable to prepare receipt for printing");s.open(),s.write(r),s.close(),await new Promise(e=>{let t=()=>e();"complete"===s.readyState?setTimeout(t,100):(l.addEventListener("load",t,{once:!0}),setTimeout(t,800))});try{l.focus(),l.print()}finally{setTimeout(()=>i.remove(),1e3)}},h=async e=>await i._i.get(i.ET.subscriptions.list,{params:e,headers:s()}),f=async e=>await i._i.get(i.ET.subscriptions.billingHistory(e),{headers:s()}),b=async e=>await i._i.get(i.ET.subscriptions.transactionReceipt(e),{headers:s(),responseType:"text"}),g=e=>{let t=new Blob([e],{type:"text/html"}),n=URL.createObjectURL(t);window.open(n,"_blank","noopener"),setTimeout(()=>URL.revokeObjectURL(n),6e4)},m=async e=>{let t=document.createElement("iframe");t.setAttribute("aria-hidden","true"),t.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;",document.body.appendChild(t);let n=t.contentDocument,o=t.contentWindow;if(!n||!o)throw t.remove(),Error("Unable to prepare receipt for printing");n.open(),n.write(e),n.close(),await new Promise(e=>{"complete"===n.readyState?setTimeout(e,100):(o.addEventListener("load",()=>e(),{once:!0}),setTimeout(e,800))});try{o.focus(),o.print()}finally{setTimeout(()=>t.remove(),1e3)}},y=async(e,t)=>{await i._i.patch(i.ET.organizations.mentorBadge(e),{active:t},{headers:s()})}}},function(e){e.O(0,[6886,7136,8739,4386,7805,6450,9774,2888,179],function(){return e(e.s=28527)}),_N_E=e.O()}]); 2//# sourceMappingURL=subscriptions-b44bff803d1925e1.js.map
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.