1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91824],{734:(e,s,t)=>{function r(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s)return"/plan-icons/ultra.svg";let t=null==e?void 0:e.toLowerCase();return(null==t?void 0:t.includes("free"))||(null==t?void 0:t.includes("basic"))?
1"/plan-icons/basic.svg":(null==t?void 0:t.includes("ultra"))?
1"/plan-icons/ultra.svg":(null==t?void 0:t.includes("pro"))||(null==t?void 0:t.includes("business"))||(null==t?void 0:t.includes("enterprise"))||(null==t?void 0:t.includes("scale"))||(null==t?void 0:t.includes("max"))?
1"/plan-icons/pro.svg":(null==t?void 0:t.includes("plus"))
1?"/plan-icons/plus.svg":null}t.d(s,{Z:()=>r}),t(29071)},12543:(e,s,t)=>{t.d(s,{p:()=>x});var r=t(95155),a=t(86948),l=t(3998),n=t(29502),i=t(52987),c=t(14122),o=t(16485),d=t(78807),m=t(88491),u=t(29071);function x(e){let{scheduledChange:s,onCancel:t,variant:x="default"}=e,p=(0,d.xG)(),h=new Date(s.effective_date),g=e=>{let s=u.C.cloudPricingItems.find(s=>s.tierKey===e);return(null==s?void 0:s.name)||e||"Basic"},f=g(s.current_tier.name),b=g(s.target_tier.name),y=e=>e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),j=Math.max(0,Math.ceil((h.getTime()-Date.now())/864e5)),v=()=>{p.mutate(void 0,{onSuccess:()=>{t&&t()}})};return"compact"===x?(0,r.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-xl border border-amber-500/20 bg-amber-500/5",children:[(0,r.jsx)(n.default,{className:"h-4 w-4 text-amber-500 shrink-0"}),(0,r.jsx)("div",{className:"flex-1 min-w-0",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,r.jsx)(m.y,{planName:f,size:"sm",variant:"default"}),(0,r.jsx)(i.default,{className:"h-3 w-3 text-muted-foreground"}),(0,r.jsx)("span",{className:"opacity-60",children:(0,r.jsx)(m.y,{planName:b,size:"sm",variant:"default"})}),(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:["on ",y(h)]})]})}),(0,r.jsxs)(l.$,{variant:"ghost",size:"sm",onClick:v,disabled:p.isPending,className:"h-7 px-2 text-xs text-amber-600 dark:text-amber-400 hover:bg-amber-500/10",children:[(0,r.jsx)(c.default,{className:"h-3 w-3 mr-1"}),p.isPending?"Cancelling...":"Undo"]})]}):(0,r.jsx)(a.Zp,{className:"border-amber-500/20 bg-amber-500/5",children:(0,r.jsx)(a.Wu,{className:"p-4",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(n.default,{className:"h-5 w-5 text-amber-500"}),(0,r.jsx)("span",{className:"font-medium text-sm",children:"Scheduled Plan Change"})]}),(0,r.jsx)("div",{className:"flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-amber-500/10 text-amber-600 dark:text-amber-400",children:(0,r.jsx)("span",{className:"text-xs font-medium",children:0===j?"Today":"".concat(j," day").concat(1===j?"":"s")})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(m.y,{planName:f,size:"md",variant:"default"}),(0,r.jsx)(i.default,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)("div",{className:"opacity-60",children:(0,r.jsx)(m.y,{planName:b,size:"md",variant:"default"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,r.jsx)(o.default,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)("span",{className:"text-muted-foreground",children:y(h)})]}),(0,r.jsxs)(l.$,{variant:"outline",size:"sm",onClick:v,disabled:p.isPending,className:"h-8 border-amber-500/30 text-amber-600 dark:text-amber-400 hover:bg-amber-500/10 hover:text-amber-700 dark:hover:text-amber-300",children:[(0,r.jsx)(c.default,{className:"h-3.5 w-3.5 mr-1.5"}),p.isPending?"Cancelling...":"Keep Current Plan"]})]})]})})})}},33694:(e,s,t)=>{t.d(s,{g:()=>h});var r=t(95155),a=t(12115),l=t(51834),n=t(3998),i=t(86948),c=t(18332),o=t(6132),d=t(35299),m=t(81820),u=t(18720),x=t(71916);let p=[{amount:10,price:10},{amount:25,price:25},{amount:50,price:50},{amount:100,price:100,popular:!0},{amount:250,price:250},{amount:500,price:500}];function h(e){let{open:s,onOpenChange:t,currentBalance:h=0,canPurchase:g,onPurchaseComplete:f}=e,[b,y]=(0,a.useState)(null),[j,v]=(0,a.useState)(""),[N,w]=(0,a.useState)(!1),[k,_]=(0,a.useState)(null),C=async e=>{if(e<10)return void _("Minimum purchase amount is $10");if(e>5e3)return void _("Maximum purchase amount is $5000");w(!0),_(null);try{let s=await m.cp.purchaseCredits({amount:e,success_url:"".concat(window.location.origin,"/dashboard?credit_purchase=success"),cancel_url:"".concat(window.location.origin,"/dashboard?credit_purchase=cancelled")});if(s.checkout_url)window.location.href=s.checkout_url;else throw Error("No checkout URL received")}catch(t){var s;let e=(null==(s=t.details)?void 0:s.detail)||t.message||"Failed to create checkout session";_(e),u.toast.error(e)}finally{w(!1)}};return g?(0,r.jsx)(l.lG,{open:s,onOpenChange:t,children:(0,r.jsxs)(l.Cf,{className:"sm:max-w-2xl",children:[(0,r.jsxs)(l.c7,{children:[(0,r.jsx)(l.L3,{children:"Get additional credits"}),(0,r.jsx)(l.rr,{children:"Add credits to your account for usage beyond your subscription limit."})]}),h>0&&(0,r.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Current balance: ",(0,x.Ql)(h,{showDecimals:!0})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:p.map(e=>(0,r.jsx)(i.Zp,{className:"cursor-pointer transition-all ".concat((null==b?void 0:b.amount)===e.amount?"ring-2 ring-border":"hover:border-border/80"),onClick:()=>{y(e),v(""),_(null)},children:(0,r.jsxs)(i.Wu,{className:"p-4 text-center",children:[(0,r.jsxs)("div",{className:"text-xl font-medium",children:["$",e.amount]}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Credits"})]})},e.amount))})}),k&&(0,r.jsxs)(c.Fc,{variant:"destructive",children:[(0,r.jsx)(o.default,{className:"h-4 w-4"}),(0,r.jsx)(c.TN,{children:k})]})]}),(0,r.jsx)("div",{className:"flex justify-center mt-6",children:(0,r.jsx)(n.$,{onClick:()=>{let e=b?b.amount:parseFloat(j);isNaN(e)?_("Please select a package or enter a valid amount"):C(e)},disabled:N||!b&&!j,className:"w-full sm:w-auto min-w-[120px]",children:N?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.default,{className:"h-4 w-4 animate-spin mr-2"}),"Processing..."]}):"Continue"})})]})}):(0,r.jsx)(l.lG,{open:s,onOpenChange:t,children:(0,r.jsxs)(l.Cf,{className:"sm:max-w-md",children:[(0,r.jsxs)(l.c7,{children:[(0,r.jsx)(l.L3,{children:"Credits Not Available"}),(0,r.jsx)(l.rr,{children:"Credit purchases are only available for users on the $200/month subscription tier."})]}),(0,r.jsxs)(c.Fc,{children:[(0,r.jsx)(o.default,{className:"h-4 w-4"}),(0,r.jsx)(c.TN,{children:"Please upgrade your subscription to the $200/month tier to unlock credit purchases for unlimited usage."})]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(n.$,{variant:"outline",onClick:()=>t(!1),children:"Close"})})]})})}},36986:(e,s,t)=>{t.d(s,{c:()=>U});var r=t(95155),a=t(29071),l=t(64269),n=t(26210),i=t(12115),c=t(5917),o=t(48314),d=t(65229),m=t(10512),u=t(17666),x=t(3998),p=t(11647),h=t(81820),g=t(18720),f=t(78807),b=t(19016),y=t(99776),j=t(12543),v=t(26614),N=t(40248),w=t(88491),k=t(76237),_=t(33694),C=t(93028),P=t(18955),z=t(52619),S=t.n(z),$=t(51834),F=t(50909),T=t
1(31120),A=t(80344);let D=["tooExpensive","notUsingOften","foundAlternative","technicalIssues","resultsNotGood","other"];function M(e){let{open:s,onOpenChange:t,onConfirm:a,targetPlanName:l,isPending:n=!1}=e,c=(0,P.c)("billing.downgradeDialog"),[o,d]=(0,i.useState)(1),[m,u]=(0,i.useState)(null),[p,h]=(0,i.useState)(""),[f,b]=(0,i.useState)(!1),y=()=>{d(1),u(null),h(""),t(!1)},j=async()=>{if(!m)return void g.toast.error(c("pleaseSelectReason"));b(!0);try{let e=c("reasons.".concat(m)),s="Downgrade reason: ".concat(e);p.trim()&&(s+="\n\nAdditional feedback: ".concat(p.trim())),await A.H.post("/feedback",{rating:2,feedback_text:s,help_improve:!0,context:{type:"downgrade",reason:m,target_plan:l,additional_feedback:p.trim()||null}})}catch(e){}finally{b(!1),y(),a()}};return(0,r.jsx)($.lG,{open:s,onOpenChange:e=>{e?t(e):y()},children:(0,r.jsx)($.Cf,{className:"sm:max-w-lg p-0 gap-0 overflow-hidden max-h-[90vh] sm:max-h-[85vh]",children:1===o?(0,r.jsxs)("div",{className:"p-4 sm:p-8",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center text-center mb-4 sm:mb-6",children:[(0,r.jsxs)("div",{className:"mb-2 sm:mb-4 p-2 sm:p-3 rounded-xl sm:rounded-2xl bg-muted/50",children:[(0,r.jsx)(k.i,{size:24,variant:"symbol",className:"sm:hidden"}),(0,r.jsx)(k.i,{size:32,variant:"symbol",className:"hidden sm:block"})]}),(0,r.jsx)($.L3,{className:"text-lg sm:text-xl font-semibold text-foreground",children:c("confirmTitle")}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground mt-1 sm:mt-2",children:c("confirmSubtitle")})]}),(0,r.jsx)("div",{className:"bg-muted/30 rounded-lg sm:rounded-xl p-3 sm:p-4 mb-4 sm:mb-6",children:(0,r.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground",children:c("confirmDescription",{planName:l})})}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:gap-3",children:[(0,r.jsx)(x.$,{onClick:()=>{d(2)},className:"w-full h-9 sm:h-10 text-sm",children:c("continue")}),(0,r.jsx)(x.$,{variant:"ghost",onClick:y,className:"w-full h-9 sm:h-10 text-sm text-muted-foreground",children:c("keepCurrentPlan")})]})]}):(0,r.jsxs)("div",{className:"p-4 sm:p-8 overflow-y-auto max-h-[85vh] sm:max-h-none",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center text-center mb-3 sm:mb-6",children:[(0,r.jsxs)("div",{className:"mb-2 sm:mb-4 p-2 sm:p-3 rounded-xl sm:rounded-2xl bg-muted/50",children:[(0,r.jsx)(k.i,{size:24,variant:"symbol",className:"sm:hidden"}),(0,r.jsx)(k.i,{size:32,variant:"symbol",className:"hidden sm:block"})]}),(0,r.jsx)($.L3,{className:"text-lg sm:text-xl font-semibold text-foreground",children:c("feedbackTitle")}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground mt-1 sm:mt-2",children:c("feedbackSubtitle")})]}),(0,r.jsx)("div",{className:"mb-3 sm:mb-6",children:(0,r.jsx)(F.z,{value:m||"",onValueChange:e=>u(e),className:"space-y-1.5 sm:space-y-2",children:D.map(e=>(0,r.jsxs)("label",{htmlFor:e,className:"flex items-center gap-2 sm:gap-3 p-2 sm:p-3 rounded-lg sm:rounded-xl border cursor-pointer transition-colors ".concat(m===e?"border-primary bg-primary/5":"border-border hover:border-muted-foreground/30 hover:bg-muted/30"),children:[(0,r.jsx)(F.C,{value:e,id:e,className:"size-4"}),(0,r.jsx)("span",{className:"text-xs sm:text-sm",children:c("reasons.".concat(e))})]},e))})}),(0,r.jsxs)("div",{className:"mb-3 sm:mb-6",children:[(0,r.jsx)("label",{className:"block text-xs sm:text-sm font-medium text-foreground mb-1.5 sm:mb-2",children:c("whatWouldMakeYouStay")}),(0,r.jsx)(T.T,{placeholder:c("feedbackPlaceholder"),value:p,onChange:e=>
1h(e.target.value),className:"min-h-[60px] sm:min-h-[100px] resize-none text-sm",rows:2}),(0,r.jsx)("p",{className:"text-[10px] sm:text-xs text-muted-foreground mt-1.5 sm:mt-2",children:c("feedbackFooter")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:gap-3",children:[(0,r.jsx)(x.$,{onClick:j,disabled:!m||f||n,className:"w-full h-9 sm:h-10 text-sm",children:f?c("processing"):c("confirmDowngrade")}),(0,r.jsx)(x.$,{variant:"ghost",onClick:y,disabled:f,className:"w-full h-9 sm:h-10 text-sm text-muted-foreground",children:c("keepCurrentPlan")})]})]})})})}let B=()=>(0,r.jsx)(c.default,{className:"size-3.5 sm:size-4 text-primary"});function E(e){let{price:s,isCompact:t}=e;return(0,r.jsx)(n.P.span,{className:t?"text-lg font-medium":"text-[32px] font-medium leading-none",initial:{opacity:0,x:10,filter:"blur(5px)"},animate:{opacity:1,x:0,filter:"blur(0px)"},transition:{duration:.25,ease:[.4,0,.2,1]},children:s},s)}function L(e){var s;let{tier:t,isCompact:n=!1,currentSubscription:c,isLoading:m,isFetchingPlan:u,selectedPlan:b,onPlanSelect:j,onSubscriptionUpdate:_,isAuthenticated:z=!1,returnUrl:S,insideDialog:$=!1,billingPeriod:F="monthly",currentBillingPeriod:T=null}=e,A=(0,P.c)("billing"),D=(0,P.c)("common");(0,y.jE)();let L="$0"===t.price,U=L?"monthly":F,I=(()=>{if("$0"===t.price)return"$0";if("yearly_commitment"===U){let e=Math.round(.85*parseFloat(t.price.slice(1)));return"$".concat(e)}if("yearly"===U&&t.yearlyPrice){let e=Math.round(parseFloat(t.yearlyPrice.slice(1))/12);return"$".concat(e)}return t.price})(),O=(0,f.KM)(),[K,W]=(0,i.useState)(!1),[R,G]=(0,i.useState)(null),Y=async function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!z){window.location.href="/auth?mode=signup";return}if(!m[e])try{null==j||j(e);let t="yearly_commitment"===U?"yearly_commitment":"yearly"===U?"yearly":"monthly";if(s)return void O.mutate({target_tier_key:e,commitment_type:t},{onSuccess:()=>{v.Ay.capture("plan_downgrade_scheduled")},onSettled:()=>{_&&_()}});let a=await (0,h.fw)({tier_key:e,success_url:"".concat(window.location.origin,"/dashboard?subscription=success"),cancel_url:S,commitment_type:t}),l=a.checkout_url||a.url;switch(a.status){case"new":case"checkout_created":case"commitment_created":l?(v.Ay.capture("plan_purchase_attempted"),window.location.href=l):g.toast.error(A("failedToInitiateSubscription"));break;case"upgraded":case"updated":v.Ay.capture("plan_upgraded"),_&&_(),setTimeout(()=>{window.location.href="/dashboard?subscription=success"},500);break;case"commitment_blocks_downgrade":g.toast.warning(a.message||A("cannotDowngradeDuringCommitment"));break;case"downgrade_scheduled":case"scheduled":let n=a.effective_date||a.scheduled_date,i=null;if(n)try{let e=new Date(n);i=isNaN(e.getTime())?"end of billing period":e.toLocaleDateString()}catch(e){i="end of billing period"}let c=A("subscriptionChangeScheduled"),o=i?A("planWillChangeOn",{date:i}):A("planWillChangeOn",{date:"the end of your billing period"});g.toast.success((0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:c}),(0,r.jsx)("p",{className:"text-sm mt-1",children:o})]})),v.Ay.capture("plan_downgraded"),_&&_();break;case"no_change":g.toast.info(a.message||A("alreadyOnThisPlan"));break;default:g.toast.error("An unexpected error occurred. Please try again.")}}catch(s){var t,a;let e=(null==s||null==(a=s.response)||null==(t=a.data)?void 0:t.detail)||(null==s?void 0:s.message)||"Failed to process subscription. Please try again.";g.toast.error(e)}},Z=a.C.cloudPricingItems.find(e=>{var s;return e.tierKey===(null==c?void 0:c.subscription.tier_key)||e.tierKey===(null==c||null==(s=c.tier)?void 0:s.name)}),q=(null==c?void 0:c.subscription.tier_display_name)||"none",Q=(null==c?void 0:c.subscription.tier_key)===t.tierKey||(null==c||null==(s=c.tier)?void 0:s.name)===t.tierKey||(null==c?void 0:c.subscription.tier_display_name)===t.tierKey,V=T===F,H=(null==c?void 0:c.subscription.provider)==="revenuecat",X=null==c?void 0:c.subscription.status,J=z&&Q&&(V||H)&&("active"===X||"trialing"===X),ee=z&&(null==c?void 0:c.has_schedule),es=ee&&((null==c?void 0:c.scheduled_tier_key)===t.tierKey||(null==c?void 0:c.scheduled_plan_name)===t.tierKey||(null==c?void 0:c.scheduled_plan_name)===t.name),et=m[t.tierKey],er=z?A("selectPlan"):t.buttonText,ea=et,el=null,en="",ei=null,ec="",eo=!1,ed={allowed:!0};if(z){let e="$0"===t.price||"free"===t.tierKey,s=Q&&(V||e);if(s)er=A("currentPlan"),ea=!0,ei=null,en="";else if(H&&!s)er="Manage in Mobile App",ea=!0,el="outline",ec="opacity-70 cursor-not-allowed bg-muted text-muted-foreground";else if(J)"trial"===q?(er=A("trialActive"),ei=(0,r.jsx)("span",{className:"bg-green-500/10 text-green-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:A("trialBadge")})):(er=A("currentPlan"),ei=null),ea=!0,el="secondary",en=n?"ring-1 ring-primary":"ring-2 ring-primary",ec="bg-primary/5 hover:bg-primary/10 text-primary";else if(es)er=A("scheduled"),ea=!0,el="outline",en=n?"ring-1 ring-yellow-500":"ring-2 ring-yellow-500",ec="bg-yellow-500/5 hover:bg-yellow-500/10 text-yellow-600 border-yellow-500/20",ei=(0,r.jsx)("span",{className:"bg-yellow-500/10 text-yellow-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:A("scheduledBadge")});else if(ee&&(null==c?void 0:c.subscription.tier_key)===t.tierKey)er=A("changeScheduled"),el="secondary",en=n?"ring-1 ring-primary":"ring-2 ring-primary",ec="bg-primary/5 hover:bg-primary/10 text-primary",ei=(0,r.jsx)("span",{className:"bg-yellow-500/10 text-yellow-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:A("downgradePending")});else{let e=c&&(null==Z?void 0:Z.price)||"$0",s="$0"===e?0:100*parseFloat(e.replace(/[^\d.]/g,"")||"0"),r="$0"===I?0:100*parseFloat(I.replace(/[^\d.]/g,"")||"0"),a=Z&&Z.tierKey===t.tierKey,l=a&&T!==F,n=l&&("monthly"===T&&("yearly"===U||"yearly_commitment"===U)||"yearly"===T&&"yearly_commitment"===U);0===s&&0===r&&(null==c?void 0:c.subscription.status)!=="no_subscription"?(er=A("selectPlan"),ea=!0,el="secondary",ec="bg-primary/5 hover:bg-primary/10 text-primary"):ed.allowed?r>s||n||l?l&&a?(er=n?"yearly_commitment"===U?D("upgrade"):"Switch to Yearly":"Switch to Monthly",el="default",ec="bg-primary hover:bg-primary/90 text-primary-foreground"):n&&r<=s?(er="yearly_commitment"===U?D("upgrade"):A("switchToLegacyYearly"),el="yearly_commitment"===U?t.buttonColor:"default",ec="yearly_commitment"===U?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-green-600 hover:bg-green-700 text-white"):(er=D("upgrade"),el=t.buttonColor,ec="bg-primary hover:bg-primary/90 text-primary-foreground"):r<s?(er=A("downgrade"),el="outline",ec="",eo=!0):(er=A("selectPlan"),el=t.buttonColor,ec="bg-primary hover:bg-primary/90 text-primary-foreground"):(er=A("notAvailable"),ea=!0,el="secondary",ec="opacity-50 cursor-not-allowed bg-muted text-muted-foreground")}et&&(er=A("loading"),ec="opacity-70 cursor-not-allowed")}else el=t.buttonColor,t.buttonColor,ec="bg-primary hover:bg-primary/90 text-primary-foreground";let em="Ultra"===t.name,eu=(()=>
1{if(L)return null;if("yearly"===U||"yearly_commitment"===U){var e;let s=parseFloat(t.price.slice(1)),r=parseFloat((null==(e=t.yearlyPrice)?void 0:e.slice(1))||"0");if(0===r)return null;let a=12*s-r;return a>0?Math.round(a):null}return null})();return(0,r.jsxs)("div",{className:(0,l.cn)("rounded-[14px] sm:rounded-[18px] flex flex-col relative overflow-hidden h-full",L?"bg-muted/30 border border-border/50":"bg-card border border-border",!$&&en),children:[em&&(0,r.jsx)(N._,{variant:"header",opacity:.3}),(0,r.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5 sm:gap-2 relative z-10",$?"p-2 sm:p-2.5":"p-2.5 sm:p-3"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,r.jsx)(w.y,{planName:t.name,size:"lg",variant:"default"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1.5 sm:hidden",children:[(0,r.jsx)("span",{className:"text-2xl font-medium",children:I}),("yearly"===U||"yearly_commitment"===U)&&"$0"!==I&&(0,r.jsxs)("span",{className:"text-[10px] line-through text-muted-foreground",children:["$",t.price.slice(1)]}),"$0"!==I&&(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"/mo"})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[eu?(0,r.jsxs)(p.E,{className:"bg-green-500/15 text-green-600 dark:text-green-400 border border-green-500/30 sm:border-2 text-[10px] sm:text-sm font-bold px-1.5 sm:px-3 py-0.5 sm:py-1.5 shadow-sm",children:["SAVE $",eu]}):null,z&&ei]})]}),(0,r.jsx)("div",{className:"hidden sm:flex items-center justify-between min-h-[40px]",children:(0,r.jsxs)("div",{className:"flex flex-col min-h-[36px] justify-center min-w-[100px]",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)(E,{price:I,isCompact:$}),("yearly"===U||"yearly_commitment"===U)&&"$0"!==I&&(0,r.jsxs)("span",{className:"text-xs line-through text-muted-foreground",children:["$",t.price.slice(1)]})]}),(0,r.jsx)("div",{className:"h-[18px] flex items-center mt-1",children:"yearly_commitment"===U&&"$0"!==I?(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:A("perMonth")}),(0,r.jsx)(p.E,{variant:"secondary",className:"text-[10px] px-1.5 py-0",children:"12mo"})]}):"yearly"===U&&t.yearlyPrice&&"$0"!==I?(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.yearlyPrice," billed annually"]}):"$0"!==I?(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:A("perMonth")}):null})]})})]}),(0,r.jsxs)("div",{className:(0,l.cn)("flex-grow relative z-10",$?"px-2 sm:px-2.5 pb-1 sm:pb-1.5":"px-2.5 sm:px-3 pb-1.5 sm:pb-2"),children:[t.features&&t.features.length>0&&(0,r.jsx)("ul",{className:"space-y-1.5 sm:space-y-2",children:t.features.map(e=>{if(e.includes("daily credits")){let s=e.match(/(\d+)\s*daily credits/),t=e.split(" - ")[1];return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(o.default,{className:"size-3.5 sm:size-4 text-muted-foreground"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("div",{className:"flex items-center gap-1.5",children:(0,r.jsxs)("span",{className:"text-xs sm:text-sm font-medium",children:[(null==s?void 0:s[1])||"200"," Daily Credits"]})}),t&&(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden sm:block",children:t})]})]},e)}if(e.startsWith("CREDITS_BONUS:")){let s=e.split(":"),t=parseInt(s[1]).toLocaleString(),a=parseInt(s[2]).toLocaleString();return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(B,{})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"text-xs sm:text-sm text-muted-foreground line-through",children:t}),(0,r.jsx)("span",{className:"text-xs sm:text-sm font-bold text-primary",children:a}),(0,r.jsx)("span",{className:"text-xs sm:text-sm font-medium",children:"Monthly Credits"}),(0,r.jsx)(p.E,{className:"text-[9px] sm:text-[10px] px-1.5 sm:px-2 py-0.5 bg-gradient-to-r from-amber-500/20 to-orange-500/20 text-amber-600 dar
1k:text-amber-400 border-amber-500/30",children:"2x BONUS"})]}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground hidden sm:block",children:"Refreshes each billing cycle"})]})]},e)}if(e.includes("custom AI Workers")){let s=e.match(/(\d+)\s*custom AI Workers/),t=e.split(" - ")[1];if(s)return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(B,{})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5",children:[(0,r.jsxs)("span",{className:"text-xs sm:text-sm font-medium",children:[s[1]," custom"]}),(0,r.jsx)(k.i,{size:12,variant:"symbol",className:"hidden sm:block"}),(0,r.jsx)("span",{className:"text-xs sm:text-sm font-medium",children:"AI Workers"})]}),t&&(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden sm:block",children:t})]})]},e)}if(e.includes("Power mode")||e.includes("POWER Mode")){let s=e.split(" - ")[1];return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(B,{})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground/60 line-through",children:"Basic"}),(0,r.jsx)("span",{className:"text-muted-foreground/40 text-xs",children:"â"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 sm:gap-1.5 px-1.5 sm:px-2 py-0.5 bg-primary/10 dark:bg-primary/15 rounded-md",children:[(0,r.jsx)(k.i,{size:10,variant:"symbol",className:"sm:hidden"}),(0,r.jsx)(k.i,{size:12,variant:"symbol",className:"hidden sm:block"}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs font-semibold text-primary",children:"Advanced"})]})]}),s&&(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden sm:block",children:s})]})]},e)}if(e.includes("credits/month")){let s=e.match(/(\d+[,\d]*)\s*credits\/month/);if(s){let t=s[1];return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(B,{})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("span",{className:"text-xs sm:text-sm font-medium",children:[t," Monthly Credits"]}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden sm:block",children:"Refreshes each billing cycle"})]})]},e)}}let s=e;if(e.includes("private project")){let t=e.match(/(\d+)\s*private\s+project/);if(t){let e=parseInt(t[1]);s=1===e?A("features.privateProject",{count:e}):A("features.privateProjects")}}else if("Private projects"===e)s=A("features.privateProjects");else if(e.includes("custom trigger")){let t=e.match(/(\d+)\s*custom\s+trigger/);t&&(s=A("features.customTrigger",{count:parseInt(t[1])}))}else e.includes("100+ integrations")||"100+ integrations"===e||e.includes("100+ App Integrations")?s=A("features.integrations"):e.includes("Power mode")||e.includes("POWER Mode")?s="WorkAlly Power mode":(e.includes("Priority Support")||"Priority Support"===e)&&(s=A("features.prioritySupport"));let t=s.split(" - "),a=t[0],l=t[1];return(0,r.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"size-4 sm:size-5 min-w-4 sm:min-w-5 flex items-center justify-center mt-0.5",children:(0,r.jsx)(B,{})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("span",{className:"text-xs sm:text-sm font-medium",children:a}),l&&(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden sm:block",children:l})]})]},e)})}),t.disabledFeatures&&t.disabledFeatures.length>0&&(0,r.jsx)("ul",{className:"space-y-1.5 sm:space-y-2 mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-border/50",children:t.disabledFeatures.map(e=>(0,r.jsxs)("li",{className:"flex items-center gap-2 sm:gap-3 opacity-50",children:[(0,r.jsx)(d.default,{className:"size-3.5 sm:size-4 text-muted-foreground"}),(0,r.jsx)("span",{className:"text-xs sm:text-sm text-muted-foreground line-through",children:e})]},e))})]}),(0,r.jsx)("div",{className:(0,l.cn)("mt-auto relative z-10",$?"px-2 sm:px-2.5 pt-1 pb-2 sm:pb-2.5":"px-2.5 sm:px-3 pt-1 sm:pt-1.5 pb-2.5 sm:pb-3"),children:(0,r.jsx)(x.$,{onClick:()=>{var e;return e=t.tierKey,void(eo?(G(e),W(!0)):Y(e,!1))},disabled:ea,variant:el||"default",className:(0,l.cn)("w-full font-medium transition-all duration-200",n||$?"h-7 text-xs":"h-8 sm:h-9 text-xs sm:text-sm",ec,et&&"animate-pulse"),title:ed.allowed?void 0:ed.reason,children:er})}),(0,r.jsx)(M,{open:K,onOpenChange:e=>{W(e),e||G(null)},onConfirm:()=>{R&&(W(!1),Y(R,!0),G(null))},targetPlanName:t.name,isPending:O.isPending}),em&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C.BorderBeam,{size:200,duration:12,delay:0,borderWidth:1.5,colorFrom:"#23D3FF",colorTo:"#FF1B07"}),(0,r.jsx)(C.BorderBeam,{size:200,duration:12,delay:0,borderWidth:1.5,colorFrom:"#FFC78C",colorTo:"#FDF5E0",initialOffset:50})]})]})}function U(e){let{returnUrl:s=window.location.href,showTitleAndTabs:t=!0,hideFree:n=!1,insideDialog:c=!1,noPadding:o=!1,onSubscriptionUpdate:d,customTitle:h,isAlert:g=!1,alertTitle:v,alertSubtitle:N}=e,w=(0,P.c)("billing"),{user:k}=(0,b.A)(),C=!!k;(0,y.jE)();let{data:z,isLoading:$,error:F,refetch:T}=(0,f.u4)({enabled:C}),A=C&&!!z&&null===F,D=(null==z?void 0:z.subscription.has_scheduled_change)&&(null==z?void 0:z.subscription.scheduled_change),M=null==z?void 0:z.subscription.scheduled_change,B=null==z?void 0:z.subscription.commitment,E=z||null,U=(()=>{var e;if(!A||!E)return null;if(E.subscription.billing_period)return E.subscription.billing_period;if(E.plan_type)return E.plan_type;if((null==B?void 0:B.has_commitment)&&(null==B?void 0:B.commitment_type)==="yearly_commitment")return"yearly_commitment";if(null==(e=E.subscription)?void 0:e.current_period_end){"number"==typeof E.subscription.current_period_end?E.subscription.current_period_end:new Date(E.subscription.current_period_end).getTime();Date.now()}return"yearly"})(),I=(0,i.useCallback)(()=>A&&E&&U||"yearly_commitment",[A,E,U]),[O,K]=(0,i.useState)({}),[W,R]=(0,i.useState)(!1),[G,Y]=(0,i.useState)(()=>U||I()),Z=a.C.cloudPricingItems.filter(e=>!e.hidden&&"$0"!==e.price&&["Plus","Pro","Ultra"].includes(e.name)),q=a.C.cloudPricingItems.find(e=>"$0"===e.price),Q=e=>{K(s=>({...s,[e]:!0}))},V=()=>{setTimeout(()=>{K({})},1e3),d&&d()};return A&&(null==E||E.subscription.provider),(0,r.jsxs)("section",{id:"pricing",className:(0,l.cn)("scale-90 flex flex-col items-center justify-center w-full relative",o?"pb-0":"pb-12"),children:[(0,r.jsxs)("div",{className:"w-full mx-auto px-2 sm:px-3 flex flex-col",children:[(0,r.jsxs)("div",{className:"w-full max-w-none mx-auto mb-4 sm:mb-8",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 sm:gap-4 mb-3 sm:mb-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:g?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-2xl lg:text-3xl font-medium tracking-tight text-foreground",children:v||w("pickPlan")}),N&&(0,r.jsx)("p",{className:"text-sm sm:text-base text-muted-foreground",children:N})]}):t?(0,r.jsx)("h2",{className:"text-lg sm:text-2xl lg:text-3xl font-medium tracking-tight",children:h||w("pickPlan")}):null}),(0,r.jsxs)("div",{className:"flex items-center gap-3 bg-muted/50 rounded-full px-4 py-2",children:[(0,r.jsx)("span",{className:(0,l.cn)("text-sm font-medium transition-colors","monthly"===G?"text-foreground":"text-muted-foreground"),children:"Monthly"}),(0,r.jsx)("button",{onClick:()=>Y("monthly"===G?"yearly":"monthly"),className:(0,l.cn)("relative w-14 h-7 rounded-full transition-colors duration-200","monthly"!==G?"bg-primary":"bg-zinc-300 dark:bg-zinc-600"),children:(0,r.jsx)("span",{className:(0,l.cn)("absolute top-1 left-1 w-5 h-5 rounded-full bg-white shadow-md transition-transform duration-200","monthly"!==G&&"translate-x-7")})}),(0,r.jsx)("span",{className:(0,l.cn)("text-sm font-medium transition-colors","monthly"!==G?"text-foreground":"text-muted-foreground"),children:"Annual"}),"monthly"!==G&&(0,r.jsx)(p.E,{className:"bg-green-500/15 text-green-600 dark:text-green-400 border border-green-500/30 text-xs font-semibold px-2 py-0.5",children:"Save 15%"})]})]}),t&&!g&&(0,r.jsxs)("p",{className:"text-xs sm:text-sm text-muted-foreground",children:[(0,r.jsx)("span",{className:"font-semibold text-primary",children:"LIMITED TIME"}),(0,r.jsx)("span",{className:"mx-1 sm:mx-1.5",children:"\xb7"}),"Subscribe now & get ",(0,r.jsx)("span",{className:"font-medium text-foreground",children:"2X credits"})]})]}),A&&D&&M&&(0,r.jsx)("div",{className:"w-full max-w-none mx-auto mb-3 sm:mb-6",children:(0,r.jsx)(j.p,{scheduledChange:M,variant:"compact",onCancel:V})}),(0,r.jsxs)("div",{className:"w-full max-w-none mx-auto grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5 lg:gap-6",children:[q&&!n&&(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col",c&&"hidden sm:flex"),children:(0,r.jsx)(L,{tier:q,currentSubscription:E,isLoading:O,isFetchingPlan:$,onPlanSelect:Q,onSubscriptionUpdate:V,isAuthenticated:A,returnUrl:s,insideDialog:c,billingPeriod:G,currentBillingPeriod:U},q.name)}),Z.map(e=>(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(L,{tier:e,currentSubscription:E,isLoading:O,isFetchingPlan:$,onPlanSelect:Q,onSubscriptionUpdate:V,isAuthenticated:A,returnUrl:s,insideDialog:c,billingPeriod:G,currentBillingPeriod:U})},e.name))]}),A&&(null==E?void 0:E.subscription.can_purchase_credits)&&(0,r.jsxs)("div",{className:"w-full max-w-none mt-12 flex flex-col items-center gap-4",children:[(0,r.jsxs)(x.$,{onClick:()=>R(!0),variant:"outline",size:"lg",className:"gap-2",children:[(0,r.jsx)(m.default,{className:"h-5 w-5"}),w("getAdditionalCredits")]}),(0,r.jsx)(x.$,{variant:"link",asChild:!0,className:"text-muted-foreground hover:text-foreground h-auto p-0",children:(0,r.jsxs)(S(),{href:"/credits-explained",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.default,{className:"h-3.5 w-3.5 mr-2"}),(0,r.jsx)("span",{className:"text-sm",children:w("creditsExplained")})]})})]}),(!A||!(null==E?void 0:E.subscription.can_purchase_credits))&&(0,r.jsx)("div",{className:"w-full max-w-none mt-8 flex justify-center",children:(0,r.jsx)(x.$,{variant:"link",asChild:!0,className:"text-muted-foreground hover:text-foreground h-auto p-0",children:(0,r.jsxs)(S(),{href:"/credits-explained",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.default,{className:"h-3.5 w-3.5 mr-2"}),(0,r.jsx)("span",{className:"text-sm",children:w("creditsExplained")})]})})})]}),(0,r.jsx)(_.g,{open:W,onOpenChange:R,currentBalance:(null==E?void 0:E.
1credits.total)||0,canPurchase:(null==E?void 0:E.subscription.can_purchase_credits)||!1,onPurchaseComplete:V})]})}},40248:(e,s,t)=>{t.d(s,{_:()=>l});var r=t(95155),a=t(15239);function l(e){let{variant:s="hero",opacity:t=.4}=e,l="hero"===s;return(0,r.jsxs)("div",{className:"".concat(l?"zoom-viewport-cover":"absolute inset-0"," -z-10 overflow-hidden"),children:[(0,r.jsx)(a.default,{src:"/backgrounds/main.webp",alt:"",fill:!0,priority:l,quality:75,className:"object-cover",sizes:"100vw"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/50 via-black/30 to-black/50",style:{opacity:t}})]})}},50909:(e,s,t)=>{t.d(s,{C:()=>c,z:()=>i});var r=t(95155);t(12115);var a=t(24058),l=t(99051),n=t(64269);function i(e){let{className:s,...t}=e;return(0,r.jsx)(a.bL,{"data-slot":"radio-group",className:(0,n.cn)("grid gap-3",s),...t})}function c(e){let{className:s,...t}=e;return(0,r.jsx)(a.q7,{"data-slot":"radio-group-item",className:(0,n.cn)("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,r.jsx)(a.C1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,r.jsx)(l.default,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}},71916:(e,s,t)=>{function r(e){return Math.round(100*e)}function a(e,s){let t=Math.round(e);return(null==s?void 0:s.showDecimals)?e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):t.toLocaleString("en-US")}function l(e,s){let t=a(Math.abs(e),s);return e>=0?"+".concat(t):"-".concat(t)}t.d(s,{Bk:()=>l,Ql:()=>a,Rc:()=>r})},88491:(e,s,t)=>{t.d(s,{y:()=>i});var r=t(95155);t(12115);var a=t(64269),l=t(734);let n={xxs:{height:14,padding:"px-1.5 py-0.5",circleSize:"size-[14px]"},xs:{height:18,padding:"px-2 py-0.5",circleSize:"size-[18px]"},sm:{height:22,padding:"px-2 py-0.5",circleSize:"size-[24px]"},md:{height:26,padding:"px-2 py-1",circleSize:"size-[28px]"},lg:{height:32,padding:"px-2.5 py-1",circleSize:"size-[40px]"}};function i(e){let{planName:s,size:t="sm",variant:i="default",className:c,iconOnly:o=!1,isLocal:d=!1}=e,m=(0,l.Z)(s,d),u=n[t];if(!m)return o||"circle"===i?null:(0,r.jsx)("span",{className:(0,a.cn)("text-[13px] font-medium text-muted-foreground leading-tight",c),children:s||"Basic"});if("circle"===i){let e=Math.round(.6*u.height);return(0,r.jsx)("div",{className:(0,a.cn)("flex items-center justify-center bg-white rounded-full flex-shrink-0",u.circleSize,c),children:(0,r.jsx)("img",{src:m,alt:s,className:"object-contain",style:{width:"".concat(e,"px"),height:"".concat(e,"px")}})})}return(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)("img",{src:m,alt:s,className:(0,a.cn)("object-contain",c),style:{height:"".concat(u.height,"px"),width:"auto"}})})}},91824:(e,s,t)=>{t.r(s),t.d(s,{PlanSelectionModal:()=>m});var r=t(95155);t(12115);var a=t(51834),l=t(65229),n=t(3998),i=t(36986),c=t(76237),o=t(64269),d=t(40255);function m(e){let{open:s,onOpenChange:t,returnUrl:m,creditsExhausted:u=!1,upgradeReason:x}=e,p="".concat(window.location.origin,"/dashboard?subscription=success"),{isOpen:h,customTitle:g,returnUrl:f,closePricingModal:b,isAlert:y,alertTitle:j,alertSubtitle:v}=(0,d.s)(),N=t||(e=>!e&&b()),w=m||f||p,k=x||g;return(0,r.jsx)(a.lG,{open:void 0!==s?s:h,onOpenChange:N,children:(0,r.jsxs)(a.Cf,{className:(0,o.cn)("max-w-[100vw] w-full h-full max-h-[100vh] p-0 gap-0 overflow-hidden","rounded-none border-0","!top-0 !left-0 !translate-x-0 !translate-y-0 !max-w-none"),hideCloseButton:!0,children:[(0,r.jsx)(a.L3,{className:"sr-only",children:k||(u?"You're out of credits":"Select a Plan")}),(0,r.jsx)(a.rr,{className:"sr-only",children:k||(u?"Choose a plan to continue using WorkAlly":"Choose the plan that best fits your needs")}),(0,r.jsxs)("div",{className:"absolute top-0 left-0 right-0 z-50 flex items-center justify-between px-6 py-5 pointer-events-none bg-background/80 backdrop-blur-md lg:bg-transparent lg:backdrop-blur-none",children:[(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)("div",{className:"absolute -translate-y-1/2 top-1/2 left-1/2 -translate-x-1/2 pointer-events-none",children:(0,r.jsx)(c.i,{size:20,variant:"logomark"})}),(0,r.jsx)("div",{className:"flex-1 flex justify-end pointer-events-auto",children:(0,r.jsxs)(n.$,{variant:"ghost",size:"icon",onClick:()=>N(!1),className:"h-9 w-9 rounded-full bg-background/80 backdrop-blur-sm hover:bg-background/90 border border-border/50 transition-all",children:[(0,r.jsx)(l.default,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})})]}),(0,r.jsx)("div",{className:"w-full h-full overflow-y-auto lg:overflow-hidden overflow-x-hidden bg-background pt-[67px] lg:flex lg:items-center lg:justify-center",children:(0,r.jsx)("div",{className:"w-full px-2 sm:px-4 lg:px-6 pt-8 lg:pt-0 pb-8 lg:pb-0 min-h-full lg:min-h-0 flex items-center justify-center",children:(0,r.jsx)(i.c,{returnUrl:w||p,showTitleAndTabs:!0,insideDialog:!1,noPadding:!0,customTitle:k||(u?"You ran out of credits. Upgrade now.":void 0),isAlert:y,alertTitle:j,alertSubtitle:v,onSubscriptionUpdate:()=>{setTimeout(()=>{N(!1)},500)}})})})]})})}},93028:(e,s,t)=>{t.d(s,{BorderBeam:()=>n});var r=t(95155),a=t(26210),l=t(64269);let n=e=>{let{className:s,size:t=50,delay:n=0,duration:i=6,colorFrom:c="#ffaa40",colorTo:o="#9c40ff",transition:d,style:m,reverse:u=!1,initialOffset:x=0,borderWidth:p=1}=e;return(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-(length:--border-beam-width) border-transparent [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] [mask-composite:intersect] [mask-clip:padding-box,border-box]",style:{"--border-beam-width":"".concat(p,"px")},children:(0,r.jsx)(a.P.div,{className:(0,l.cn)("absolute aspect-square will-change-transform","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",s),style:{width:t,offsetPath:"rect(0 auto auto 0 round ".concat(t,"px)"),"--color-from":c,"--color-to":o,transform:"translateZ(0)",...m},initial:{offsetDistance:"".concat(x,"%")}
1,animate:{offsetDistance:u?["".concat(100-x,"%"),"".concat(-x,"%")]:["".concat(x,"%"),"".concat(100+x,"%")]},transition:{repeat:1/0,ease:"linear",duration:i,delay:-n,repeatType:"loop",...d}})})}}}]);
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.