1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5782],{31537:(e,t,n)=>{n.d(t,{Zb:()=>r,i9:()=>s,x5:()=>a});let a=40;function r(e){if(!e.priceAnnual||e.priceMonthly<=0)return null;let t=12*e.priceMonthly;return Math.round((t-e.priceAnnual)/t*100)}let s={free:{id:"free",name:"Free",description:"40 messages/day + 40\uD83D\uDC8E welcome gift to try premium features",priceMonthly:0,companionLimit:1,features:["boost_companion"],displayOrder:0,isActive:!0,monthlyDiamonds:0},spark:{id:"spark",name:"Spark",description:"Start your uncensored journey",priceMonthly:7.99,priceAnnual:76.99,companionLimit:5,features:["unlimited_chat","nsfw","images","video_call","audio_call","boost_companion"],displayOrder:1,isActive:!0,monthlyDiamonds:50},blaze:{id:"blaze",name:"Blaze",description:"Go all in â the premium experience",priceMonthly:14.99,priceAnnual:143.99,companionLimit:10,features:["unlimited_chat","nsfw","images","video_call","audio_call","priority_support","early_access","boost_companion"],displayOrder:2,isActive:!0,highlighted:!0,badge:"Most Popular",monthlyDiamonds:150},plus:{id:"plus",name:"Uncensy+",description:"Legacy plan â grandfathered",priceMonthly:9.99,companionLimit:5,features:["unlimited_chat","nsfw","images","video_call","audio_call"],displayOrder:99,isActive:!1,monthlyDiamonds:50},starter:{id:"starter",name:"Starter",description:"Legacy plan â grandfathered",priceMonthly:4.99,companionLimit:1,features:["unlimited_chat"],displayOrder:99,isActive:!1,monthlyDiamonds:5},pro:{id:"pro",name:"Uncensy Pro",description:"Legacy plan â grandfathered",priceMonthly:16.99,companionLimit:10,features:["unlimited_chat","nsfw","images","video_call","audio_call"],displayOrder:99,isActive:!1,monthlyDiamonds:150},ultimate:{id:"ultimate",name:"Ultimate",description:"Legacy plan â grandfathered",priceMonthly:19.99,companionLimit:10,features:["unlimited_chat","nsfw","images","video_call","audio_call","priority_support","early_access"],displayOrder:99,isActive:!1,monthlyDiamonds:20},unlimited:{id:"unlimited",name:"Unlimited",description:"Legacy plan â grandfathered",priceMonthly:129.99,companionLimit:999,features:["unlimited_chat","nsfw","images","video_call","audio_call","priority_support","early_access"],displayOrder:99,isActive:!1,monthlyDiamonds:500}};s.unlimited.priceMonthly,s.unlimited.companionLimit,s.ultimate.priceMonthly,s.ultimate.companionLimit,s.pro.priceMonthly,s.pro.companionLimit,s.starter.priceMonthly,s.starter.companionLimit},45782:(e,t,n)=>{n.d(t,{p:()=>E});var a=n(1526),r=n(26230),s=n(84984),i=n(61769),l=n(47854),o=n(54227),c=n(38563),d=n(77520),m=n(41471),p=n(88755),u=n(94605),x=n(99617),h=n(17190),f=n(15121),g=n(77227),b=n(54998),y=n(52472),j=n.n(y),v=n(77782),N=n(95036);function k({saveLabel:e,priceLockedLabel:t,minUnit:n,secUnit:r,countdown:s,accentColor:i="#f59e0b",className:l}){let o=24*s.days*60+60*s.hours+s.minutes,c=s.totalMs>0&&s.totalMs<6e4;return(0,a.jsxs)("div",{style:{background:`linear-gradient(120deg, ${i}, ${i}55, ${i})`,backgroundSize:"200% 100%",animation:"sale-border-flow 3s linear infinite"},className:"jsx-35cf3636a314c2c4 "+((0,N.cn)("relative mt-4 overflow-hidden rounded-2xl p-[1.5px] animate-in fade-in slide-in-from-top-2 duration-500",l)||""),children:[(0,a.jsxs)("div",{style:{background:`linear-gradient(90deg, ${i}22, ${i}0d 60%)`},className:"jsx-35cf3636a314c2c4 flex items-center justify-between gap-3 rounded-[15px] px-4 py-3 sm:px-5",children:[(0,a.jsxs)("div",{className:"jsx-35cf3636a314c2c4 flex items-center gap-3 min-w-0",children:[(0,a.jsxs)("span",{style:{backgroundColor:`${i}26`},className:"jsx-35cf3636a314c2c4 relative flex h-9 w-9 shrink-0 items-center justify-center rounded-full",children:[(0,a.jsx)("span",{style:{backgroundColor:`${i}33`},className:"jsx-35cf3636a314c2c4 absolute inset-0 rounded-full animate-ping"}),(0,a.jsx)(v.A,{className:"relative h-4.5 w-4.5",style:{color:i},"aria-hidden":!0})]}),(0,a.jsxs)("div",{className:"jsx-35cf3636a314c2c4 flex flex-col leading-tight min-w-0",children:[(0,a.jsx)("span",{style:{color:i},className:"jsx-35cf3636a314c2c4 text-sm sm:text-base font-extrabold uppercase tracking-tight truncate",children:e}),(0,a.jsx)("span",{className:"jsx-35cf3636a314c2c4 text-[11px] sm:text-xs font-medium text-muted-foreground truncate",children:t})]})]}),(0,a.jsxs)("div",{role:"timer","aria-live":"polite",className:"jsx-35cf3636a314c2c4 flex items-center gap-1 shrink-0",children:[(0,a.jsx)(w,{value:o,unit:n,accentColor:i,critical:c}),(0,a.jsx)("span",{style:{color:i}
1,"aria-hidden":!0,className:"jsx-35cf3636a314c2c4 "+((0,N.cn)("pb-3.5 text-lg font-bold",c&&"animate-pulse")||""),children:":"}),(0,a.jsx)(w,{value:s.seconds,unit:r,accentColor:i,critical:c})]})]}),(0,a.jsx)(j(),{id:"35cf3636a314c2c4",children:"@keyframes sale-border-flow{from{background-position:0%0%}to{background-position:200%0%}}"})]})}function w({value:e,unit:t,accentColor:n,critical:r}){return(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:(0,N.cn)("min-w-[2.4rem] rounded-lg px-1.5 py-1 text-center text-lg font-bold tabular-nums text-white shadow-sm sm:text-xl",r&&"animate-pulse"),style:{backgroundColor:r?"#dc2626":"#18181b",boxShadow:`0 0 0 1px ${n}40`},children:String(e).padStart(2,"0")}),(0,a.jsx)("span",{className:"mt-0.5 text-[9px] font-semibold uppercase tracking-wide text-muted-foreground",children:t})]})}var _=n(31537),S=n(41644),M=n(17162),L=n(24128),A=n(81965);let C=["image","hardcore_image","video","pose_video","video_reply","voice_msg","voice_call_min","voice_change","boost_companion","slot_unlock","delete_companion"],D=({onSelect:e,currentTierId:t,initialPeriod:n="12_months",activeEvent:i,className:l})=>{let o=(0,s.c)("Landing.pricing.comparison"),[c,d]=(0,r.useState)(n),m=_.i9.spark,p=_.i9.blaze,u=(e,t)=>{if(!i||!i.applies_to_tiers.includes(t))return null;let n=i.accent_color||"#ec4899";if("1_month"===c){let t=Math.round(e.priceMonthly*(100-i.discount_percent))/100;return t<=0||t>=e.priceMonthly?null:{intro:t,regular:e.priceMonthly,percent:i.discount_percent,accent:n}}if(!e.priceAnnual)return null;let a=e.priceAnnual/12,r=Math.round(a/(1-i.discount_percent/100)*100)/100;return{intro:a,regular:r,percent:i.discount_percent,accent:n}},x=u(m,"spark"),h=u(p,"blaze"),f=A.RL.slot_unlock.spark,g=A.RL.slot_unlock.blaze,b="12_months"===c,y=b?o("spark.diamondsAnnual",{diamonds:(12*m.monthlyDiamonds).toLocaleString("en-US")}):o("spark.diamondsMonthly",{diamonds:String(m.monthlyDiamonds)}),j=b?o("blaze.diamondsAnnual",{diamonds:(12*p.monthlyDiamonds).toLocaleString("en-US")}):o("blaze.diamondsMonthly",{diamonds:String(p.monthlyDiamonds)}),k=Math.min((0,_.Zb)(m)??20,(0,_.Zb)(p)??20),w=e=>"12_months"===c&&e.priceAnnual?{amount:e.priceAnnual,suffix:o("perYearShort"),perMonth:e.priceAnnual/12}:{amount:e.priceMonthly,suffix:o("perMonthShort"),perMonth:null};return(0,a.jsxs)("div",{className:(0,N.cn)("w-full",l),children:[(0,a.jsx)("div",{className:"flex justify-center mb-8",children:(0,a.jsxs)("div",{role:"tablist","aria-label":o("billingPeriodAria"),className:"inline-flex items-center gap-1 rounded-full border border-border bg-muted/40 p-1",children:[(0,a.jsx)("button",{role:"tab","aria-selected":"1_month"===c,onClick:()=>d("1_month"),className:(0,N.cn)("px-4 py-2 text-sm font-medium rounded-full transition-colors","1_month"===c?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:o("monthly")}),(0,a.jsxs)("button",{role:"tab","aria-selected":"12_months"===c,onClick:()=>d("12_months"),className:(0,N.cn)("relative px-4 py-2 text-sm font-medium rounded-full transition-colors","12_months"===c?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[o("annual"),(0,a.jsx)("span",{className:"ms-2 inline-flex items-center rounded-full bg-emerald-500/15 px-2 py-0.5 text-xs font-semibold text-emerald-700 dark:text-emerald-400",children:o("save",{percent:String(k)})})]})]})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6",children:[(0,a.jsx)($,{title:o("freeName"),icon:(0,a.jsx)(S.A,{className:"h-5 w-5"}),priceDisplay:"$0",priceCaption:o("forever"),ctaLabel:"free"===t?o("cta.currentPlan"):o("cta.getStarted"),ctaDisabled:"free"===t,onCtaClick:()=>e("free",c),isCurrent:"free"===t,perMonthLabel:o("perMonthShort"),highlights:[o("free.messages"),o("free.welcomeGift",{diamonds:String(_.x5)}),o("free.companionSlot",{count:String(_.i9.free.companionLimit)}),o("free.browse"),o("extraSlot",{diamonds:String(A.RL.slot_unlock.free)}),o("free.voiceFrom",{diamonds:String(A.RL.voice_msg.free)}),o("free.videosFrom",{diamonds:String(A.RL.video.free)}),o("free.noCard")],featureCostLabel:null}),(0,a.jsx)($,{title:m.name,icon:(0,a.jsx)(M.A,{className:"h-5 w-5"}),priceDisplay:z(w(m),x,o("perMonthShort")),priceCaption:"12_months"===c?o("caption.billedAnnually",{price:m.priceAnnual?.toFixed(2)??""}):x?o("caption.firstMonthThen",{price:m.priceMonthly.toFixed(2)}):o("caption.billedMonthly"),ctaLabel:"spark"===t?o("cta.currentPlan"):o("cta.get",{name:m.name}),ctaDisabled:"spark"===t,onCtaClick:()=>e("spark",c),isCurrent:"spark"===t,perMonthLabel:o("perMonthShort"),saveLabel:x?o("save",{percent:String(x.percent)}
1):void 0,highlights:[y,o("slots",{count:String(m.companionLimit)}),o("spark.textChat"),o("spark.nsfw"),o("spark.generation"),o("spark.voices",{diamonds:String(A.RL.voice_change.spark)}),o("extraSlot",{diamonds:String(f)}),o("cancelAnytime")],featureCostLabel:"spark",discount:x,eventName:x?i?.name:void 0}),(0,a.jsx)($,{title:p.name,icon:(0,a.jsx)(v.A,{className:"h-5 w-5"}),priceDisplay:z(w(p),h,o("perMonthShort")),priceCaption:"12_months"===c?o("caption.billedAnnually",{price:p.priceAnnual?.toFixed(2)??""}):h?o("caption.firstMonthThen",{price:p.priceMonthly.toFixed(2)}):o("caption.billedMonthly"),ctaLabel:"blaze"===t?o("cta.currentPlan"):o("cta.get",{name:p.name}),ctaDisabled:"blaze"===t,onCtaClick:()=>e("blaze",c),isCurrent:"blaze"===t,perMonthLabel:o("perMonthShort"),saveLabel:h?o("save",{percent:String(h.percent)}):void 0,highlights:[j,o("slots",{count:String(p.companionLimit)}),o("blaze.lowestRates"),o("blaze.extraSlot",{diamonds:String(g)}),o("blaze.nsfwChat"),o("blaze.voices",{diamonds:String(A.RL.voice_change.blaze)}),o("blaze.prioritySupport"),o("cancelAnytime")],featureCostLabel:"blaze",featured:!0,badge:o("mostPopular"),discount:h,eventName:h?i?.name:void 0})]}),(0,a.jsxs)("div",{className:"hidden md:block mt-10",children:[(0,a.jsx)("p",{className:"text-center text-sm text-muted-foreground mb-4",children:o("matrix.caption")}),(0,a.jsxs)("div",{className:"rounded-xl border border-border overflow-hidden",children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 text-xs font-semibold text-muted-foreground bg-muted/40 px-4 py-3",children:[(0,a.jsx)("div",{children:o("matrix.feature")}),(0,a.jsx)("div",{className:"text-center",children:o("matrix.free")}),(0,a.jsx)("div",{className:"text-center",children:m.name}),(0,a.jsx)("div",{className:"text-center",children:p.name})]}),C.map((e,t)=>{let n=A.RL[e].free,r=A.RL[e].spark,s=A.RL[e].blaze;return(0,a.jsxs)("div",{className:(0,N.cn)("grid grid-cols-4 text-sm px-4 py-3",t%2==0?"bg-background":"bg-muted/20"),children:[(0,a.jsx)("div",{className:"text-foreground",children:o(`matrix.rows.${e}`)}),(0,a.jsx)("div",{className:"text-center text-muted-foreground/70",children:null===n?(0,a.jsx)("span",{className:"text-xs text-rose-500/80 dark:text-rose-400/80",children:o("matrix.notAvailable")}):(0,a.jsxs)(a.Fragment,{children:[n," \uD83D\uDC8E",(0,a.jsxs)("span",{className:"ms-2 text-xs text-rose-500/80 dark:text-rose-400/80",children:["+",n-r]})]})}),(0,a.jsxs)("div",{className:"text-center text-muted-foreground",children:[r," \uD83D\uDC8E"]}),(0,a.jsxs)("div",{className:"text-center font-semibold text-foreground",children:[s," \uD83D\uDC8E",s<r&&(0,a.jsxs)("span",{className:"ms-2 text-xs text-emerald-600 dark:text-emerald-400",children:["â",r-s]})]})]},e)})]})]})]})},$=({title:e,icon:t,priceDisplay:n,priceCaption:r,ctaLabel:s,ctaDisabled:i,onCtaClick:l,isCurrent:o,featured:c,badge:d,highlights:m,discount:p,eventName:x,perMonthLabel:h,saveLabel:f})=>(0,a.jsxs)("div",{className:(0,N.cn)("relative flex flex-col rounded-2xl border p-6 transition-shadow",c?"border-pink-500/60 shadow-lg shadow-pink-500/10 bg-gradient-to-b from-pink-500/5 to-transparent":"border-border bg-card",o&&"ring-2 ring-emerald-500/60"),style:p?{borderColor:`${p.accent}80`}:void 0,children:[d&&(0,a.jsx)("div",{className:"absolute -top-3 start-1/2 -translate-x-1/2",children:(0,a.jsx)("span",{className:"inline-flex items-center rounded-full bg-gradient-to-r from-pink-500 to-purple-600 px-3 py-1 text-xs font-bold text-white shadow",children:d})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-muted-foreground",children:[t,e,p&&(0,a.jsx)("span",{className:"ms-auto inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white",style:{backgroundColor:p.accent},children:f})]}),(0,a.jsxs)("div",{className:"mt-4",children:[p&&(0,a.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-lg font-semibold text-muted-foreground/70 line-through decoration-2",children:["$",p.regular.toFixed(2),h]}),(0,a.jsxs)("span",{className:"inline-flex items-center rounded-md px-1.5 py-0.5 text-[11px] font-extrabold text-white",style:{backgroundColor:p.accent},children:["-",p.percent,"%"]})]}),(0,a.jsx)("div",{className:"text-4xl font-bold",style:p?{color:p.accent}:void 0,children:(0,a.jsx)("span",{className:p?"":"text-foreground",children:n})}),p&&x&&(0,a.jsx)("div",{className:"mt-1 text-sm font-semibold",style:{color:p.accent},children:x}),(0,a.jsx)("div",{className:"mt-1 text-xs text-muted-foreground",children:r})]}),(0,a.jsx)("ul",{className:"mt-6 space-y-2 text-sm text-foreground",children:m.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)(u.A,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-500"}),(0,a.jsx)("span",{children:e})]},t))}),(0,a.jsx)("div",{className:"mt-auto pt-6",children:(0,a.jsx)(L.$,{onClick:l,disabled:i,className:(0,N.cn)("w-full",c?"bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white":""),variant:c?"default":"outline",children:s})})]});function z({amount:e,suffix:t,perMonth:n},r,s){return r?(0,a.jsxs)("span",{className:"inline-flex items-baseline",children:[(0,a.jsxs)("span",{children:["$",r.intro.toFixed(2)]}),(0,a.jsx)("span",{className:"ms-1 text-base font-normal text-muted-foreground",children:s})]}):null!==n?(0,a.jsxs)("span",{className:"inline-flex items-baseline",children:[(0,a.jsxs)("span",{children:["$",n.toFixed(2)]}),(0,a.jsx)("span",{className:"ms-1 text-base font-normal text-muted-foreground",children:s})]}):(0,a.jsxs)("span",{className:"inline-flex items-baseline",children:[(0,a.jsxs)("span",{children:["$",e.toFixed(2)]}),(0,a.jsx)("span",{className:"ms-1 text-base font-normal text-muted-foreground",children:t})]})}var F=n(26779),P=n(32427);let R=({open:e,onOpenChange:t,tierId:n,tierName:s,priceMonthly:i,priceAnnual:l,period:o="1_month",eventSlug:c,introPriceMonthly:d,eventName:m})=>{let p="12_months"===o&&"number"==typeof l&&l>0,u=p?l:i,x=!p&&!!c&&"number"==typeof d&&d>0&&d<i,[h,f]=(0,r.useState)(!1),[g,b]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&fetch("/api/payments/config").then(e=>e.json()).then(e=>b(e?.crypto??null)).catch(()=>b(null))},[e]);let y=!!g?.enabled&&g.subscriptionDiscountPercent>0,j=y?Math.round(u*(100-g.subscriptionDiscountPercent))/100:u,v=(0,r.useCallback)(async()=>{f(!0);try{let e=await fetch("/api/crypto/subscription-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tierId:n,period:o})}
1),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to create crypto checkout");if(!t.url)throw Error("No checkout URL received");window.location.href=t.url}catch(e){f(!1),F.oR.error("Crypto checkout failed",{description:e instanceof Error?e.message:"Checkout failed"})}},[n,o]);return(0,a.jsx)(P.t,{open:e,onOpenChange:t,request:{tierId:n,period:o,...c&&{eventSlug:c}},item:{kicker:x&&m?m:"Membership",title:`${s} ${p?"Annual":"Monthly"}`,note:x?`First month at $${d.toFixed(2)}, then $${i.toFixed(2)}/mo. Cancel anytime.`:p?`$${(u/12).toFixed(2)}/mo, billed yearly. Cancel anytime.`:"Renews monthly. Cancel anytime.",price:`$${(x?d:u).toFixed(2)}`,priceNote:x?"first month":p?"per year":"per month"},footer:y&&(0,a.jsxs)("button",{type:"button",onClick:v,disabled:h,className:"rounded-xl border border-amber-400/30 px-4 py-2.5 text-sm font-medium text-amber-300 transition hover:bg-amber-400/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300 disabled:opacity-50",children:["Pay with crypto instead: $",j.toFixed(2),p?"/yr":"/mo",(0,a.jsxs)("span",{className:"ms-1 font-semibold",children:["(",g.subscriptionDiscountPercent,"% off, no auto-renew)"]})]})})},O={free:0,spark:1,blaze:2,starter:1,plus:1,pro:2,ultimate:3,unlimited:4};function E({open:e,onOpenChange:t,title:n,description:y}){var j;let v=(0,s.c)("Subscription.dialog"),N=(0,s.c)("Subscription.common"),w=n??v("defaultTitle"),S=y??v("defaultDescription"),{availableTiers:M,subscription:L,fetchAvailableTiers:A}=(0,i.useSubscriptionStore)(),{isAuthenticated:C,openLoginDialog:$}=(0,l.n)(),[z,P]=(0,r.useState)(null),[I,U]=(0,r.useState)("1_month"),[T,H]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&A()},[e,A]);let J=(j=L?.tierId||"",L&&L.tierId===j&&!L.needsResubscribe&&("active"===L.status||"canceled"===L.status&&L.currentPeriodEnd&&new Date(L.currentPeriodEnd)>new Date))?L?.tierId:null,{event:Z}=(0,o.H)(),G=(0,b.s)(Z?.slug),B=!!Z&&!G.done&&G.totalMs>0,q=(0,r.useMemo)(()=>{if(!z||!Z||"12_months"===I||!Z.applies_to_tiers.includes(z.id)||!z.priceMonthly||z.priceMonthly<=0)return null;let e=Math.round(z.priceMonthly*(100-Z.discount_percent))/100;return e<=0||e>=z.priceMonthly?null:{eventSlug:Z.slug,eventName:Z.name,introPrice:e}},[Z,z,I]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.lG,{open:e,onOpenChange:t,children:(0,a.jsxs)(c.ZL,{children:[(0,a.jsx)(c.hJ,{className:"fixed inset-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",style:{zIndex:100}}),(0,a.jsxs)(c.UC,{className:"fixed start-[50%] top-[50%] grid w-full max-w-5xl max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-start-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-start-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",style:{zIndex:101},children:[(0,a.jsxs)(c.bm,{className:"absolute end-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground z-10",children:[(0,a.jsx)(m.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:v("close")})]}),(0,a.jsxs)(d.c7,{children:[(0,a.jsx)(d.L3,{className:"text-2xl",children:w}),(0,a.jsx)(d.rr,{children:S})]}),B&&Z&&(0,a.jsx)(k,{saveLabel:v("urgency.save",{percent:String(Z.discount_percent)}),priceLockedLabel:v("urgency.priceLockedFor"),minUnit:v("urgency.min"),secUnit:v("urgency.sec"),countdown:G,accentColor:Z.accent_color||"#f59e0b"}),0===M.length?(0,a.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,a.jsx)(p.A,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(D,{onSelect:(e,n)=>{if("free"===e)return;if(!C){t(!1),$("/rooms/me?tab=subscription");return}let a=(e=>{let t=M.find(t=>t.id===e);if(t)return t;let n=_.i9[e];return n?{id:n.id,name:n.name,description:n.description,priceMonthly:n.priceMonthly,companionLimit:n.companionLimit,monthlyDiamonds:n.monthlyDiamonds,features:n.features,featureDetails:[],badge:n.badge,highlighted:n.highlighted}:null})(e);if(a){if(L&&!L.needsResubscribe&&O[e]<O[L.tierId]&&"free"!==e)return void F.oR.error(N("downgradeError"));P(a),U(n),H(!0)}},currentTierId:J,activeEvent:Z})}),(0,a.jsxs)("div",{className:"mt-6 pt-4 border-t border-gray-200 dark:border-gray-800",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-4",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"flex -space-x-2",children:["\uD83D\uDE0A","\uD83E\uDD70","\uD83D\uDE0D","\uD83E\uDD17","\uD83D\uDC95"].map((e,t)=>(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-linear-to-br from-pink-400 to-purple-500 flex items-center justify-center text-sm border-2 border-white dark:border-gray-900",children:e},t))}),(0,a.jsx)("span",{className:"ms-3 text-sm text-gray-600 dark:text-gray-400",children:v("happyUsers",{count:"10,000+"})})]})}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 text-xs text-gray-500 dark:text-gray-400",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 text-green-500"}),v("securePayment")]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 text-green-500"}),v("cancelAnytime")]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 text-green-500"}),v("noHiddenFees")]})]}),(0,a.jsx)("div",{className:"flex justify-center mt-4",children:(0,a.jsxs)("a",{href:"/pricing",className:"text-sm text-pink-500 hover:text-pink-400 transition-colors flex items-center gap-1",children:[v("viewFullPricing"),(0,a.jsx)("span",{className:"ms-1",children:"â"})]})})]}),(0,a.jsx)("div",{className:"mt-6 pt-6 border-t border-gray-200 dark:border-gray-800",children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-xl bg-gradient-to-br from-purple-500/10 via-pink-500/10 to-orange-500/10 border border-purple-500/20 p-6",children:[(0,a.jsx)("div",{className:"absolute top-0 end-0 w-32 h-32 bg-gradient-to-br from-purple-500/20 to-pink-500/20 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),(0,a.jsx)("div",{className:"absolute bottom-0 start-0 w-24 h-24 bg-gradient-to-br from-pink-500/20 to-orange-500/20 rounded-full blur-2xl translate-y-1/2 -translate-x-1/2"}),(0,a.jsxs)("div",{className:"relative flex flex-col lg:flex-row items-center gap-6",children:[(0,a.jsxs)("div",{className:"flex-1 text-center lg:text-start",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-gradient-to-r from-purple-500/20 to-pink-500/20 border border-purple-500/30 mb-3",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-purple-400"}),(0,a.jsx)("span",{className:"text-xs font-semibold text-purple-300 uppercase tracking-wider",children:v("affiliateBadge")})]}),(0,a.jsx)("h3",{className:"text-xl font-bold text-white mb-2",children:v.rich("affiliateHeading",{percent:40,commission:e=>(0,a.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-purple-400 via-pink-400 to-orange-400",children:e})})}),(0,a.jsx)("p",{className:"text-sm text-gray-400 mb-4",children:v("affiliateDescription")}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[(0,a.jsx)("div",{className:"p-1.5 rounded-lg bg-purple-500/20",children:(0,a.jsx)(x.A,{className:"h-4 w-4 text-purple-400"})}),(0,a.jsx)("span",{children:v("recurringPercent",{percent:40})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[(0,a.jsx)("div",{className:"p-1.5 rounded-lg bg-pink-500/20",children:(0,a.jsx)(h.A,{className:"h-4 w-4 text-pink-400"})}),(0,a.jsx)("span",{children:v("realTimeStats")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[(0,a.jsx)("div",{className:"p-1.5 rounded-lg bg-orange-500/20",children:(0,a.jsx)(f.A,{className:"h-4 w-4 text-orange-400"})}),(0,a.jsx)("span",{children:v("monthlyPayouts")})]})]})]}),(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsxs)("a",{href:"https://askrah.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white font-semibold shadow-lg shadow-purple-500/25 transition-all duration-200 hover:shadow-
1purple-500/40 hover:scale-105",children:[(0,a.jsx)("span",{children:v("joinAffiliateProgram")}),(0,a.jsx)(g.A,{className:"h-4 w-4"})]})})]})]})})]})]})}),z&&(0,a.jsx)(R,{open:T,onOpenChange:e=>{e||(H(!1),P(null))},tierId:z.id,tierName:z.name,priceMonthly:z.priceMonthly,priceAnnual:_.i9[z.id]?.priceAnnual,period:I,eventSlug:q?.eventSlug,introPriceMonthly:q?.introPrice,eventName:q?.eventName,onSuccess:()=>{H(!1),P(null),t(!1),F.oR.success(N("subscriptionActivated")),i.useSubscriptionStore.getState().fetchSubscriptionStatus()}})]})}},54227:(e,t,n)=>{n.d(t,{H:()=>l});var a=n(26230);let r=new Map;async function s(e){let t=e?`/api/promotions/active?tier=${e}`:"/api/promotions/active",n=await fetch(t,{cache:"no-store"});return n.ok?(await n.json()).event??null:null}async function i(e){let t=e??"__any__",n=Date.now(),a=r.get(t);if(a&&a.expiresAt>n)return a.value;if(a?.inflight)return a.inflight;let i=s(e).then(e=>(r.set(t,{value:e,expiresAt:Date.now()+6e4}),e));return r.set(t,{value:a?.value??null,expiresAt:0,inflight:i}),i}function l(e){let[t,n]=(0,a.useState)(null),[r,s]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let t=!1;return s(!0),i(e).then(e=>{t||(n(e),s(!1))}).catch(()=>{t||(n(null),s(!1))}),()=>{t=!0}},[e]),{event:t,loading:r}}},54998:(e,t,n)=>{n.d(t,{V:()=>i,s:()=>s});var a=n(26230),r=n(63516);function s(e){let[t,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{e?n(function(e){let t=Date.now(),n=`sale_urgency_${e}`;try{let e=localStorage.getItem(n);if(e){let n=JSON.parse(e);if(t<n.startedAt+864e5)return new Date(n.expiresAt).toISOString()}}catch{}let a=t+9e5;return localStorage.setItem(n,JSON.stringify({startedAt:t,expiresAt:a})),new Date(a).toISOString()}(e)):n(null)},[e]),(0,r.L)(t)}function i(e){let t=String(24*e.days*60+60*e.hours+e.minutes).padStart(2,"0"),n=String(e.seconds).padStart(2,"0");return`${t}:${n}`}},63516:(e,t,n)=>{n.d(t,{L:()=>s});var a=n(26230);function r(e){return e?Math.max(0,Date.parse(e)-Date.now()):0}function s(e){let[t,n]=(0,a.useState)(0);(0,a.useEffect)(()=>{n(r(e));let t=setInterval(()=>n(r(e)),1e3);return()=>clearInterval(t)},[e]);let s=Math.floor(t/1e3);return{days:Math.floor(s/86400),hours:Math.floor(s%86400/3600),minutes:Math.floor(s%3600/60),seconds:s%60,totalMs:t,done:t<=0}}}}]);
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.