1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,870387,e=>{"use strict";var t=e.i(456420);let r={name:"credit-card",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]};r.node;let a=(0,t.default)(r);e.s(["CreditCard",0,a],870387)},785183,e=>{"use strict";var t=e.i(271645),r=e.i(207670),a=e.i(909928),i=e.i(127241),n=e.i(929194),s=e.i(661764),o=e.i(541088),l=e.i(375337),c=e.i(800494),u=e.i(51883),d=e.i(22766),m=e.i(846710),p=e.i(706393),x=["type"],f=["dangerouslySetInnerHTML","ticks","scale"],b=["id","scale"];function g(){return(g=Object.assign.bind()).apply(null,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){var a,i,n;a=e,i=t,n=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in a?Object.defineProperty(a,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function v(e){var r=(0,i.useAppDispatch)(),a=(0,t.useRef)(null),s=(0,m.useCartesianChartLayout)(),o=e.type,l=k(e,x),c=(0,p.getAxisTypeBasedOnLayout)(s,"xAxis",o),u=(0,t.useMemo)(()=>{if(null!=c)return y(y({},l),{},{type:c})},[l,c]);return(0,t.useLayoutEffect)(()=>{null!=u&&(null===a.current?r((0,n.addXAxis)(u)):a.current!==u&&r((0,n.replaceXAxis)({prev:a.current,next:u})),a.current=u)},[u,r]),(0,t.useLayoutEffect)(()=>()=>{a.current&&(r((0,n.removeXAxis)(a.current)),a.current=null)},[r]),null}var w=e=>{var u=e.xAxisId,d=e.className,m=e.height,p=e.label,x=(0,t.useRef)(null),h=(0,t.useRef)(null),y=(0,i.useAppSelector)(o.selectAxisViewBox),v=(0,l.useIsPanorama)(),w=(0,i.useAppDispatch)(),j="xAxis",N=(0,i.useAppSelector)(e=>(0,s.selectTicksOfAxis)(e,j,u,v)),S=(0,i.useAppSelector)(e=>(0,s.selectXAxisSize)(e,u)),C=(0,i.useAppSelector)(e=>(0,s.selectXAxisPosition)(e,u)),D=(0,i.useAppSelector)(e=>(0,s.selectXAxisSettingsNoDefaults)(e,u));if((0,t.useLayoutEffect)(()=>{if(!("auto"!==m||!S||(0,c.isLabelContentAFunction)(p)||(0,t.isValidElement)(p))&&null!=D){var e=x.current;if(e){var r=e.getCalculatedHeight();Math.round(S.height)!==Math.round(r)&&w((0,n.updateXAxisHeight)({id:u,height:r}))}}},[N,S,w,p,u,m,D]),null==S||null==C||null==D)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var A=k(e,f);D.id,D.scale;var _=k(D,b);return t.createElement(a.CartesianAxis,g({},A,_,{ref:x,labelRef:h,x:C.x,y:C.y,width:S.width,height:S.height,className:(0,r.clsx)("recharts-".concat(j," ").concat(j),d),viewBox:y,ticks:N,axisType:j,axisId:u}))},j={allowDataOverflow:s.implicitXAxis.allowDataOverflow,allowDecimals:s.implicitXAxis.allowDecimals,allowDuplicatedCategory:s.implicitXAxis.allowDuplicatedCategory,angle:s.implicitXAxis.angle,axisLine:a.defaultCartesianAxisProps.axisLine,height:s.implicitXAxis.height,hide:!1,includeHidden:s.implicitXAxis.includeHidden,interval:s.implicitXAxis.interval,label:!1,minTickGap:s.implicitXAxis.minTickGap,mirror:s.implicitXAxis.mirror,orientation:s.implicitXAxis.orientation,padding:s.implicitXAxis.padding,reversed:s.impl
1icitXAxis.reversed,scale:s.implicitXAxis.scale,tick:s.implicitXAxis.tick,tickCount:s.implicitXAxis.tickCount,tickLine:a.defaultCartesianAxisProps.tickLine,tickSize:a.defaultCartesianAxisProps.tickSize,type:s.implicitXAxis.type,niceTicks:s.implicitXAxis.niceTicks,xAxisId:0},N=t.memo(e=>{var r=(0,u.resolveDefaultProps)(e,j);return t.createElement(t.Fragment,null,t.createElement(v,{allowDataOverflow:r.allowDataOverflow,allowDecimals:r.allowDecimals,allowDuplicatedCategory:r.allowDuplicatedCategory,angle:r.angle,dataKey:r.dataKey,domain:r.domain,height:r.height,hide:r.hide,id:r.xAxisId,includeHidden:r.includeHidden,interval:r.interval,minTickGap:r.minTickGap,mirror:r.mirror,name:r.name,orientation:r.orientation,padding:r.padding,reversed:r.reversed,scale:r.scale,tick:r.tick,tickCount:r.tickCount,tickFormatter:r.tickFormatter,ticks:r.ticks,type:r.type,unit:r.unit,niceTicks:r.niceTicks}),t.createElement(w,r))},d.axisPropsAreEqual);N.displayName="XAxis",e.s(["XAxis",0,N])},129228,e=>{"use strict";var t=e.i(271645),r=e.i(925949),a=e.i(433369),i=["axis"],n=(0,t.forwardRef)((e,n)=>t.createElement(a.CartesianChart,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:i,tooltipPayloadSearcher:r.arrayTooltipSearcher,categoricalChartProps:e,ref:n}));e.s(["LineChart",0,n])},755838,(e,t,r)=>{"use strict";var a=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=a.useState,s=a.useEffect,o=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=n({inst:{value:r,getSnapshot:t}}),i=a[0].inst,u=a[1];return o(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),s(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},802239,(e,t,r)=>{"use strict";e.i(247167),t.exports=e.r(755838)},752822,(e,t,r)=>{"use strict";var a=e.r(271645),i=e.r(802239),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=a.useRef,l=a.useEffect,c=a.useMemo,u=a.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,a,i){var d=o(null);if(null===d.current){var m={hasValue:!1,value:null};d.current=m}else m=d.current;var p=s(e,(d=c(function(){function e(e){if(!l){if(l=!0,s=e,e=a(e),void 0!==i&&m.hasValue){var t=m.value;if(i(t,e))return o=t}return o=e}if(t=o,n(s,e))return t;var r=a(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,o=r)}var s,o,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,a,i]))[0],d[1]);return l(function(){m.hasValue=!0,m.value=p},[p]),u(p),p}},430224,(e,t,r)=>{"use strict";e.i(247167),t.exports=e.r(752822)},618273,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),i=e.i(526732),n=e.i(716327),s=e.i(522016),o=e.i(975157);function l({tier:e,descriptor:a,price:i,period:n,priceAsideSlot:c,bullets:u,cta:d,ctaVariant:m,ctaHref:p,onCtaClick:x,ctaDisabled:f,mostPopular:b,animationDelay:g}){let[h,y]=(0,r.useState)({x:0,y:0}),[k,v]=(0,r.useState)(!1),w=(0,r.useRef)(0),j=(0,r.useCallback)(e=>{let t=Date.now();if(t-w.current<40)return;w.current=t;let r=e.currentTarget.getBoundingClientRect(),a=e.clientX-r.left,i=e.clientY-r.top,n=r.width/2;y({x:(i-r.height/2)/50,y:(n-a)/50})},[]),N=b?-8:0,S=`translateY(${N+(k?-8:0)}px) rotateY(${h.y}deg) rotateX(${h.x}deg)`,C=(0,o.cn)("block w-full rounded-full px-6 py-3 text-center text-sm font-bold transition-colors duration-200 cursor-pointer","filled"===m?"bg-black text-white hover:bg-gray-800":"border border-black bg-white dark:bg-neutral-950 text-black dark:text-gray-100 hover:bg-gray-50 hover:dark:bg-neutral-900");return(0,t.jsx)("div",{className:"h-full",style:{perspective:"1000px"},children:(0,t.jsxs)("div",{onMouseMove:j,onMouseEnter:()=>v(!0),onMouseLeave:()=>{v(!1),y({x:0,y:0})},className:(0,o.cn)("animate-fade-in relative flex h-full flex-col rounded-2xl p-5 sm:p-6 lg:p-7",b?"border border-black bg-gray-50 dark:bg-neutral-900 shadow-[0_14px_42px_-14px_rgba(0,0,0,0.16),inset_0_1px_0_rgba(255,255,255,0.5)]":"border border-gray-200 dark:border-neutral-800 bg-white dark:bg-neutral-950"),style:{transform:S,transition:"all 0.15s ease-out",animationDelay:g,animationFillMode:"both"},children:[b&&(0,t.jsx)("span",{className:"absolute -top-3 left-1/2 inline-flex -translate-x-1/2 items-center rounded-full bg-black px-3 py-1 text-[10px] font-bold tracking-[0.2em] text-white uppercase shadow-md",children:"Best Value"}),(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-black dark:text-gray-100",children:e}),(0,t.jsx)("p",{className:"mt-1 text-sm text-black dark:text-gray-100",children:a}),(0,t.jsxs)("p",{className:"mt-4 flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-4xl font-extrabold tracking-tighter text-black dark:text-gray-100",children:i}),n&&(0,t.jsx)("span",{className:"text-sm text-black dark:text-gray-100",children:n}),c]}),(0,t.jsx)("ul",{className:"mt-6 flex-1 space-y-3",children:u.map((e,r)=>{let a="object"==typeof e&&e.emphasis,i="string"==typeof e?e:e.text,n="string"==typeof e?null:e.sub,s="string"==typeof e?e:r;return(0,t.jsxs)("li",{className:(0,o.cn)("flex items-start gap-3 leading-relaxed",a?"text-base font-semibold text-black dark:text-gray-100":"text-sm text-black dark:text-gray-100"),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,o.cn)("mt-px font-semibold",a?"text-black dark:text-gray-100":"text-gray-400"),children:"âº"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block",children:i}),n?(0,t.jsx)("span",{className:"mt-0.5 block text-xs leading-relaxed font-normal text-gray-500 dark:text-gray-400 italic",children:n}):null]})]},s)})}),(0,t.jsx)("div",{className:"mt-7",children:p?(0,t.jsx)(s.default,{href:p,className:C,children:d}):(0,t.jsx)("button",{type:"button",className:C,onClick:x,disabled:f,children:d})})]})})}var c=e.i(870387),u=e.i(907907),d=e.i(671188);let m={premium:{eyebrow:"Premium Plan",price:"$45/month"},business:{eyebrow:"Business Plan",price:"$90/month"}},p="flex w-full items-center justify-center gap-3 rounded-full border border-black bg-white dark:bg-neutral-950 px-6 py-3.5 text-base font-semibold whitespace-nowrap text-black dark:text-gray-100 transition-colors hover:bg-gray-50 hover:dark:bg-neutral-900 disabled:cursor-not-allowed disabled:opacity-60";function x(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex items-center justify-center rounded border border-black px-1.5 py-0.5 font-mono text-[10px] font-bold tracking-wider text-black dark:text-gray-100",children:"AMEX"})}function f({open:e,onOpenChange:a,tier:i,quantity:n,onSelect:s}){let o=m[i],[l,b]=(0,r.useState)(!1),g=async e=>{b(!0);try{await s(e)}catch{b(!1)}};return(0,t.jsx)(u.default,{open:e,onOpenChange:e=>{(!l||e)&&a(e)},title:"Select your payment method",size:"wide",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-400",children:o.eyebrow}),(0,t.jsx)("h2",{className:"mt-2 text-2xl leading-tight font-bold tracking-tight text-balance whitespace-nowrap text-black dark:text-gray-100 sm:text-3xl",children:"Select your payment method"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-gray-500 dark:text-gray-400",children:n>1?`${(0,d.formatMoney)((0,d.monthlyTotalFor)(i,n))}/month \xb7 ${n} accounts`:o.price}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-3",children:[(0,t.jsxs)("button",{type:"button",disabled:l,onClick:()=>g("uae"),className:p,children:[(0,t.jsx)(c.CreditCard,{"aria-hidden":"true",className:"h-5 w-5 text-black dark:text-gray-100"}),(0,t.jsx)("span",{children:"Visa, Mastercard & other cards"})]}),(0,t.jsxs)("button",{type:"button",disabled:l,onClick:()=>g("ro"),className:p,children:[(0,t.jsx)(x,{}),(0,t.jsx)("span",{children:"American Express"})]})]}),(0,t.jsx)("p",{className:"mt-5 text-xs text-gray-400",children:l?"Redirectingâ¦":"Please select to continue."})]})})}var b=e.i(734254);
1function g({open:e,onOpenChange:a,plan:i,initialMembers:n,onConfirm:s}){let[o,l]=(0,r.useState)(n),[c,m]=(0,r.useState)(e);e!==c&&(m(e),e&&l(n));let p=o+1,x=0===o,f=(0,d.discountFor)(p),h=(0,d.unitPriceFor)(i,p),y=(0,d.monthlyTotalFor)(i,p),k=(0,d.monthlyTotalFor)(i,1)*p;return(0,t.jsxs)(u.default,{open:e,onOpenChange:a,title:`Bring your team to ${d.PLAN_NAMES[i]}`,preventInitialFocus:!0,children:[(0,t.jsxs)("h3",{className:"text-lg font-extrabold tracking-tight text-black dark:text-gray-100",children:["Bring your team to ",d.PLAN_NAMES[i]]}),(0,t.jsx)("p",{className:"mt-1 text-[13px] text-gray-500 dark:text-gray-400",children:"Every member gets their own full account."}),(0,t.jsxs)("div",{className:"mt-7 flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-black dark:text-gray-100",children:"Team members"}),(0,t.jsx)(b.default,{value:o,min:0,onChange:l,label:"team members"})]}),(0,t.jsxs)("div",{className:"mt-6 border-t border-dashed border-gray-200 dark:border-neutral-800 pt-6",children:[(0,t.jsx)("p",{className:"text-sm text-black dark:text-gray-100",children:x?(0,t.jsxs)(t.Fragment,{children:["Just you = ",(0,t.jsx)("b",{className:"text-blue-600",children:"1"})," account"]}):(0,t.jsxs)(t.Fragment,{children:["You + ",(0,t.jsx)("b",{className:"text-blue-600",children:o})," team member",1===o?"":"s"," ="," ",(0,t.jsx)("b",{className:"text-blue-600",children:p})," accounts"]})}),(0,t.jsxs)("p",{className:"mt-3 flex items-center gap-2 text-sm text-black dark:text-gray-100",children:[(0,t.jsxs)("span",{children:[(0,d.formatMoney)(h),"Â /account /month"]}),!x&&(0,t.jsxs)("span",{className:"inline-flex rounded-full bg-blue-50 dark:bg-blue-950 px-2 py-0.5 text-[11px] font-bold text-blue-600",children:[Math.round(100*f),"% team discount"]})]}),(0,t.jsxs)("p",{className:"mt-4 flex items-baseline gap-2",children:[(0,t.jsx)("span",{className:"text-[13px] text-gray-500 dark:text-gray-400",children:"Total:"}),(0,t.jsxs)("span",{className:"text-2xl font-extrabold tracking-tight text-black dark:text-gray-100",children:[(0,d.formatMoney)(y),"/mo"]}),!x&&(0,t.jsxs)("span",{className:"text-sm text-gray-400 line-through",children:[(0,d.formatMoney)(k),"/mo"]})]})]}),(0,t.jsx)("p",{className:"mt-4 text-[11px] leading-relaxed text-gray-500 dark:text-gray-400 italic",children:"You'll invite members by email after subscribing. Remove members anytime â your next invoice adjusts automatically."}),(0,t.jsx)("div",{className:"mt-7",children:(0,t.jsx)("button",{type:"button",className:"block w-full cursor-pointer rounded-full bg-black px-6 py-3 text-center text-sm font-bold text-white transition-colors hover:bg-gray-800",onClick:()=>s(o),children:x?`Continue â just me, ${(0,d.formatMoney)(y)}/mo`:`Continue â ${p} accounts, ${(0,d.formatMoney)(y)}/mo`})})]})}var h=e.i(776639),y=e.i(976155),k=e.i(301444),v=e.i(359677),w=e.i(594919);let j={free:0,premium:1,business:2,manager:3};e.s(["default",0,function(){let{data:e,status:s}=(0,i.useSession)(),o=(0,a.useRouter)(),[c,u]=(0,r.useState)(!1),[m,p]=(0,r.useState)("premium"),[x,b]=(0,r.useState)(!1),[N,S]=(0,r.useState)(null),[C,D]=(0,r.useState)({premium:0,business:0}),[A,_]=(0,r.useState)(null),P=async(e,t=!1)=>{b(!0);try{let{portal_url:r}=await (0,y.createPortalSession)({return_url:`${window.location.origin}/subscription?from=portal`,flow:"subscription_update_confirm",target_tier:e,...t?{acknowledge_pending_cancellation:!0}:{}});window.location.href=r}catch(t){if(t?.response?.status===409&&t.response.data?.error==="pending_reduction_would_be_cancelled"){_({tier:e,pending:{pending_seat_limit:t.response.data.pending_seat_limit??0,effective_date:t.response.data.effective_date??""}}),b(!1);return}v.notify.error({title:"Could not open the upgrade page. Please try again."}),b(!1)}},T=!!e?.subscription?.has_active_subscription,O=e?.subscription?.status==="past_due"||e?.subscription?.status==="unpaid",E=async()=>{if(!x){b(!0);try{let{portal_url:e}=await (0,y.createPortalSession)({return_url:`${window.location.origin}/subscription?from=portal`});window.location.href=e}catch{v.notify.error({title:"Could not open the billing page. Please try again."}),b(!1)}}},F=e=>(0,d.formatMoney)((0,d.monthlyTotalFor)(e,C[e]+1)),M=r=>{if(!T||e?.subscription?.can_manage_seats)return(0,t.jsxs)("button",{type:"button",onClick:()=>T?o.push("/subscription?tab=team"):S(r),className:"group ml-auto inline-flex cursor-pointer items-baseline gap-1.5 self-baseline text-sm text-black dark:text-gray-100",children:[(0,t.jsx)(n.ChevronDown,{"aria-hidden":"true",strokeWidth:2.5,className:"h-3 w-3 self-center"}),(0,t.jsxs)("span",{className:"border-b border-gray-400 transition-colors group-hover:border-black",children:[C[r]+1," user",0===C[r]?"":"s"]})]})},$="unknown";"authenticated"===s&&(e?.subscription?.has_active_subscription?("premium"===e.subscription.tier||"business"===e.subscription.tier)&&($=e.subscription.tier):$="free");let L=async t=>{if(!x&&"loading"!==s){if("unauthenticated"===s)return void o.push("/login?callbackUrl=/pricing");if(e?.subscription?.has_active_subscription){let r=e.subscription.tier,a=null!=r?j[r]:void 0;return void 0!==a&&j[t]!==a?void await P(t):void o.push("/subscription")}p(t),u(!0)}},X=()=>o.push("/subscription"),B="authenticated"===s&&"unknown"!==$?"free"===$?{cta:"Current plan",onCtaClick:X}:{cta:"Switch to Free",onCtaClick:X}:{cta:"Start free",ctaHref:"/signup"},R={cta:"Update payment method",onCtaClick:E},U=O?R:"premium"===$?{cta:"Current plan",onCtaClick:X}:"business"===$?{cta:"Switch to Premium",onCtaClick:()=>L("premium")}:{cta:"Get Premium",onCtaClick:()=>L("premium")},I=O?R:"premium"===$?{cta:"Upgrade to Business",onCtaClick:()=>L("business")}:"business"===$?{cta:"Current plan",onCtaClick:X}:{cta:"Scale with Business",onCtaClick:()=>L("business")},V=async e=>{try{let t=window.location.origin,r=C[m]>0,a=r?`${t}/subscription?tab=team&subscription=success&session_id={CHECKOUT_SESSION_ID}&stripe_account=${e}`:`${t}/pricing?subscription=success&session_id={CHECKOUT_SESSION_ID}&stripe_account=${e}`,i=`${t}/pricing`,n=(0,w.getReferralCode)(),{checkout_url:s}=await (0,y.createSubscriptionSession)({stripe_account:e,tier:m,quantity:C[m]+1,success_url:a,cancel_url:i,...n&&!r?{code:n}:{}});window.location.href=s}catch(t){let e=t?.response?.status??t?.status;if(409===e&&t?.response?.data?.error==="payment_past_due"){v.notify.info({title:"Your last payment failed. Update your payment method to continue."}),u(!1),await E();return}throw 409===e?(v.notify.info({title:"You're already subscribed."}),o.push("/subscription")):v.notify.error({title:"Could not start checkout. Please try again."}),u(!1),t}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 items-stretch gap-8 md:grid-cols-3 md:gap-5",children:[(0,t.jsx)(l,{tier:"Free",descriptor:"Explore everything first.",price:"$0",bullets:["Explore core music data.","Access charts, filters, and DSP + TikTok/Instagram signals.","First page of every list.",{text:(0,t.jsxs)(t.Fragment,{children:["Track up to ",(0,t.jsx)("span",{className:"font-bold text-blue-600",children:"10"})," items on your dashboard."]})},"Limited free browsing â enough to explore everything."],...B,ctaVariant:"outlined",animationDelay:"0.2s"}),(0,t.jsx)(l,{tier:"Premium",descriptor:"Unlock more.",price:F("premium"),period:"/month",priceAsideSlot:M("premium"),mostPopular:!0,bullets:[{emphasis:!0,text:(0,t.jsxs)(t.Fragment,{children:["Unlock"," ",(0,t.jsx)("span",{className:"underline decoration-blue-600 decoration-2 underline-offset-4",children:"full access"})," ","across the app."]})},"Unlimited browsing.",{text:(0,t.jsxs)(t.Fragment,{children:["Add up to ",(0,t.jsx)("span",{className:"font-bold text-blue-600",children:"500"})," items on your dashboard."]}),sub:"Daily TikTok video stats + Instagram data pulls, for more granular signals."},"Export data as CSV.","Priority support."],...U,ctaVariant:"filled",ctaDisabled:x,animationDelay:"0.4s"}),(0,t.jsx)(l,{tier:"Business",descriptor:"Scale your catalog.",price:F("business"),period:"/month",priceAsideSlot:M("business"),bullets:["Everything in Premium.","Built for larger catalogs and high-volume tracking.",{text:(0,t.jsxs)("span",{className:"whitespace-nowrap",children:["Track ",(0,t.jsx)("span",{className:"font-bold text-blue-600",children:"unlimited"})," items on your dashboard."]}),sub:"Daily TikTok video stats + Instagram data pulls, for more granular signals."},"Priority support for larger data needs."],...I,ctaVariant:"outlined",ctaDisabled:x,animationDelay:"0.6s"})]}),(0,t.jsx)(h.Dialog,{open:null!==A,onOpenChange:e=>!e&&_(null),children:(0,t.jsxs)(h.DialogContent,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)(h.DialogTitle,{children:"Cancel your scheduled reduction?"}),(0,t.jsxs)(h.DialogDescription,{children:["Switching plans cancels your scheduled reduction to ",A?.pending.pending_seat_limit," seats",A?.pending.effective_date?` (from ${(0,k.formatLongDateUTC)(A.pending.effective_date)})`:"",". Your team keeps its current capacity on the new plan."]})]}),(0,t.jsxs)(h.DialogFooter,{children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer items-center justify-center rounded-full border border-black bg-white dark:bg-neutral-950 px-6 py-3 text-sm font-medium text-black dark:text-gray-100 transition-colors hover:bg-gray-50 hover:dark:bg-neutral-900",onClick:()=>_(null),children:"Keep my reduction"}),(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer items-center justify-center rounded-full bg-black px-6 py-3 text-sm font-bold text-white transition-colors hover:bg-gray-800",onClick:()=>{let e=A?.tier;_(null),e&&P(e,!0)},children:"Continue"})]})]})}),(0,t.jsx)(g,{open:null!==N,onOpenChange:e=>!e&&S(null),plan:N??"premium",initialMembers:N?C[N]:0,onConfirm:e=>{N&&(D(t=>({...t,[N]:e})),L(N)),S(null)}}),(0,t.jsx)(f,{open:c,onOpenChange:u,tier:m,quantity:C[m]+1,onSelect:V})]})}],618273)},643207,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(731195),i=e.i(129228),n=e.i(555706),s=e.i(234239),o=e.i(785183),l=e.i(93230),c=e.i(858697),u=e.i(483792);let d=[{offset:-89,creates:4220},{offset:-82,creates:4680},{offset:-75,creates:5240},{offset:-68,creates:5890},{offset:-61,creates:6920},{offset:-54,creates:7610},{offset:-47,creates:8540},{offset:-40,creates:10120},{offset:-33,creates:12480},{offset:-26,creates:15940},{offset:-19,creates:19720},{offset:-12,creates:24800},{offset:-5,creates:30150},{offset:0,creates:34251}],m=(e,t)=>
1{let r=null==e?NaN:Number(e);return[Number.isFinite(r)?(0,u.formatWithPeriods)(r):"",t??""]},p=e=>(0,c.formatDate)(String(e),"DD MMM");e.s(["default",0,function(){let e=(0,r.useMemo)(()=>{let e=new Date;return d.map(({offset:t,creates:r})=>{let a=new Date(e);return a.setDate(a.getDate()+t),{date:a.toISOString().split("T")[0],creates:r}})},[]);return(0,t.jsx)("span",{className:"inline-block h-[1.6em] w-[3em] overflow-visible align-baseline",style:{fontFamily:"inherit",fontWeight:400,letterSpacing:"normal",fontStyle:"normal"},children:(0,t.jsx)(a.ResponsiveContainer,{width:"100%",height:"100%",children:(0,t.jsxs)(i.LineChart,{data:e,margin:{top:4,right:4,bottom:4,left:4},children:[(0,t.jsx)(o.XAxis,{dataKey:"date",hide:!0}),(0,t.jsx)(l.YAxis,{hide:!0,domain:["dataMin","dataMax"]}),(0,t.jsx)(s.Tooltip,{formatter:m,labelFormatter:p,wrapperStyle:{fontFamily:"inherit",fontWeight:400,letterSpacing:"normal",fontStyle:"normal"},contentStyle:{borderRadius:12,opacity:.95,fontSize:13,padding:"8px 12px",border:"1px solid #e5e7eb",boxShadow:"0 8px 24px -8px rgba(0,0,0,0.15)"},labelStyle:{color:"#111827",fontWeight:600,marginBottom:4,fontSize:13},itemStyle:{color:"#2563EB",padding:0,fontSize:13,fontWeight:500},cursor:{stroke:"#9ca3af",strokeDasharray:"3 3"}}),(0,t.jsx)(n.Line,{type:"monotone",dataKey:"creates",name:"TikTok Creates",stroke:"#2563EB",strokeWidth:3,dot:r=>{let a=r.index===e.length-1,i=r.key??void 0;if(!a||null==r.cx||null==r.cy)return(0,t.jsx)("g",{},i);let n=r.cx,s=r.cy;return(0,t.jsx)("g",{style:{opacity:0,animation:"fadeIn 0.3s ease-out 1.6s forwards"},children:(0,t.jsx)("path",{d:`M ${n-7} ${s+1} L ${n} ${s} L ${n-1} ${s+7}`,stroke:"#2563EB",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})},i)},animationDuration:1400,activeDot:{r:4,fill:"#2563EB",stroke:"#fff",strokeWidth:2}})]})})})}])},631694,e=>{"use strict";var t=e.i(271645),r=e.i(912598),a=e.i(526732),i=e.i(976155),n=e.i(359677),s=e.i(594919),o=e.i(17178);let l={premium:"Premium is now active.",business:"Business is now active."};e.s(["default",0,function(){let{update:e}=(0,a.useSession)(),c=(0,r.useQueryClient)(),u=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(u.current)return;let t=new URLSearchParams(window.location.search);if("success"!==t.get("subscription"))return;let r=t.get("session_id"),a=t.get("stripe_account"),d="uae"===a||"ro"===a;u.current=!0,(0,s.clearReferralCode)(),(async()=>{if(r&&d){let t=await (0,i.resolveCheckoutSubscription)({checkout_session_id:r,stripe_account:a});if(t&&await e({subscription:t}),t?.has_active_subscription){c.invalidateQueries({queryKey:["user-permissions"]});let e=t.tier;if("premium"===e||"business"===e)n.notify.default({title:l[e],description:"You now have full access across the app."},{icon:!1,autoClose:5e3,hideProgressBar:!0,className:"toast-blue-progress"});else n.notify.success({title:"Welcome! Your subscription is active."})}else n.notify.info({title:"Subscription received",description:"It may take a moment to become active."})}else n.notify.info({title:"Subscription received",description:"It may take a moment to become active."});(0,o.stripSearchParams)("subscription","session_id","stripe_account")})()},[e,c]),null}])},776639,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(326999),i=e.i(263676),n=e.i(975157);let s=a.Root,o=a.Trigger,l=a.Portal,c=a.Close,u=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(a.Overlay,{ref:i,className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...r}));u.displayName=a.Overlay.displayName;let d=r.forwardRef(({className:e,children:r,overlayClassName:s,...o},c)=>(0,t.jsxs)(l,{children:[(0,t.jsx)(u,{className:s}),(0,t.jsxs)(a.Content,{ref:c,className:(0,n.cn)("bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg sm:rounded-lg","origin-center","data-[state=open]:animate-in data-[state=closed]:animate-out duration-200","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0","data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",e),...o,children:[r,(0,t.jsxs)(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(i.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));d.displayName=a.Content.displayName;let m=({className:e,...r})=>(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});m.displayName="DialogHeader";let p=({className:e,...r})=>(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});p.displayName="DialogFooter";let x=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(a.Title,{ref:i,className:(0,n.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));x.displayName=a.Title.displayName;let f=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(a.Description,{ref:i,className:(0,n.cn)("text-muted-foreground text-sm",e),...r}));f.displayName=a.Description.displayName,e.s(["Dialog",0,s,"DialogClose",0,c,"DialogContent",0,d,"DialogDescription",0,f,"DialogFooter",0,p,"DialogHeader",0,m,"DialogTitle",0,x,"DialogTrigger",0,o])},671188,734254,e=>{"use strict";var t=e.i(483792);let r={premium:45,business:90};function a(e){return e<=1?0:e<=5?.1:e<=10?.15:e<=14?.2:.25}function i(e,t){return r[e]*(1-a(t))}function n(e,r="USD"){let a=(0,t.currencySymbol)(r.toUpperCase());return Number.isInteger(e)?`${a}${e}`:`${a}${e.toFixed(2)}`}
1e.s(["ACCOUNT_BRAND",0,{uae:"Visa / Mastercard",ro:"American Express"},"PLAN_NAMES",0,{premium:"Premium",business:"Business"},"discountFor",0,a,"formatMinorUnits",0,function(e,t){return n(e/100,t??"USD")},"formatMoney",0,n,"monthlyTotalFor",0,function(e,t){return i(e,t)*t},"unitPriceFor",0,i],671188);var s=e.i(843476),o=e.i(271645);let l="inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-black bg-white dark:bg-neutral-950 text-lg leading-none font-bold text-black dark:text-gray-100 transition-colors hover:bg-gray-100 hover:dark:bg-neutral-800 disabled:cursor-default disabled:border-gray-300 disabled:dark:border-neutral-700 disabled:text-gray-300 disabled:hover:bg-white disabled:hover:dark:bg-neutral-950";e.s(["default",0,function({value:e,min:t,onChange:r,label:a}){let[i,n]=(0,o.useState)(String(e)),[c,u]=(0,o.useState)(e);return e!==c&&(u(e),n(String(e))),(0,s.jsxs)("span",{className:"inline-flex items-center gap-2.5",children:[(0,s.jsx)("button",{type:"button","aria-label":`Decrease ${a}`,className:l,disabled:e<=t,onClick:()=>r(e-1),children:"â"}),(0,s.jsx)("input",{type:"number",inputMode:"numeric",min:t,step:1,value:i,onChange:e=>{n(e.target.value);let a=parseInt(e.target.value,10);!Number.isNaN(a)&&a>=t&&r(a)},onBlur:()=>n(String(e)),"aria-label":a,className:"w-12 [appearance:textfield] border-b border-dashed border-transparent bg-transparent text-center text-lg font-extrabold text-black dark:text-gray-100 hover:border-gray-300 hover:dark:border-neutral-700 focus:border-black focus:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"}),(0,s.jsx)("button",{type:"button","aria-label":`Increase ${a}`,className:l,onClick:()=>r(e+1),children:"+"})]})}],734254)},17178,e=>{"use strict";e.s(["stripSearchParams",0,function(...e){let t=new URL(window.location.href);e.forEach(e=>t.searchParams.delete(e)),window.history.replaceState({},"",t.toString())}])},858697,e=>{"use strict";var t=e.i(822315);e.s(["formatDate",0,(e,r)=>(0,t.default)(e).format(r)])},483792,e=>{"use strict";let t=e=>"EUR"===e?"â¬":"GBP"===e?"£":"$";e.s(["currencySymbol",0,t,"formatCostPerView",0,(e,r="USD")=>{if(null==e)return null;let a="number"==typeof e?e:parseFloat(e);if(Number.isNaN(a))return null;if(0!==a&&5e-7>Math.abs(a))return`<${t(r)}0.000001`;let i=0!==a&&1>Math.abs(a)?{minimumFractionDigits:2,maximumFractionDigits:6}:{minimumFractionDigits:2,maximumFractionDigits:2};return`${t(r)}${a.toLocaleString("en-US",i)}`},"formatCurrency",0,(e,r="USD",a="â")=>{if(null==e)return a;let i="number"==typeof e?e:parseFloat(e);return Number.isNaN(i)?a:`${t(r)}${i.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2})}`},"formatNumber",0,(e,t=1)=>{let r;if(0===e)return"0";let a=Math.abs(e),i="";switch(!0){case a>=1e9:r=(a/1e9).toFixed(t),i="B";break;case a>=1e6:Number(r=(a/1e6).toFixed(t))>=1e3?(r=(a/1e9).toFixed(t),i="B"):i="M";break;case a>=1e3:Number(r=(a/1e3).toFixed(t))>=1e3?(r=(a/1e6).toFixed(t),i="M"):i="K";break;default:r=a.toFixed(t)}return e<0&&(r="-"+r),(r=r.replace(/\.0+$/,""))+i},"formatWithPeriods",0,e=>new Intl.NumberFormat("en-US").format(e),"roundToNiceNumber",0,function(e,t=5e7){if(e<=0)return t;let r=Math.pow(10,Math.floor(Math.log10(e)))/10;return Math.ceil(e/r)*r},"truncateText",0,(e,t)=>e.length>t?`${e.slice(0,t).trimEnd()}â¦`:e])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.