1import{G as V}from"./FC47SwYL.js";import{c as n,v as L,a7 as k,a8 as T,a1 as i,a5 as u,s as q,am as r,B as g,bp as Q}from"#entry";import{u as Y,F as $,B as A}from"./DrPVW_0W.js";import{F as j}from"./DY3Yz_TZ.js";var I=(a=>(a.Registration="registration",a.Login="login",a))(I||{});const x={OfferHash:"netqopbgx5lmjxl5",OfferDuration:900},R={Prompted:"prompted",Registered:"registered"};function X(){const{getValue:a}=Y(),t=a($.WebSoftRegiwall,A.WebSoftRegiwallControl);return{isTest:n(()=>t.value===A.WebSoftRegiwallTest)}}const z=2;function J(){const{user:a}=L(),{isTest:t}=X(),s=k(T.SoftRegiwallStage,{default:()=>null}),c=i(u.SoftRegiwallPopupOpen,()=>!1),p=i(u.SoftRegiwallFormOpen,()=>!1),o=i(u.SoftRegiwallFabEventChapters,()=>[]),S=n(()=>a.value===null),f=n(()=>S.value&&s.value===null&&t.value),m=n(()=>S.value&&s.value===R.Prompted&&t.value),y=n(()=>s.value===R.Registered&&t.value);return{isPopupOpen:c,isFormOpen:p,canShowPopup:f,canShowFab:m,hasRegisteredViaSoftRegiwall:y,getPromptChapterOrder:l=>{if(l===null)return null;const P=l-z;return P<j?null:P},openPopup:()=>{c.value=!0,s.value=R.Prompted},closePopup:()=>{c.value=!1},openForm:()=>{c.value=!1,p.value=!0},closeForm:()=>{p.value=!1},markRegistered:()=>{s.value=R.Registered},resetStage:()=>{s.value=null},hasSentFabEvent:l=>o.value.includes(l),markFabEventSent:l=>{o.value=[...o.value,l]}}}const _=g(I.Registration),D=g(""),O=g(!1),H=g(!1),Z=g(V.SUBSLAB_YUNO);function ie(){const a=q(),{user:t}=L(),{hasRegisteredViaSoftRegiwall:s}=J(),c=x.OfferHash,p=x.OfferDuration,o=k(T.FunnelStartTime,{default:()=>null}),S=k(T.WelcomeBonusStartAt),f=i(u.FunnelSubscription,()=>r.Monthly),m=[{key:r.Weekly,name:"1-WEEK",period:"1 week",price:{intro:0,base:9.99},presentationPrice:{dollars:1,cents:43},is_popular:!1},{key:r.Monthly,name:"1-MONTH",period:"1 month",price:{intro:0,base:19.99},presentationPrice:{dollars:0,cents:67},is_popular:!0},{key:r.Quarterly,name:"3-MONTH",period:"3 months",price:{intro:0,base:44.99},presentationPrice:{dollars:0,cents:50},is_popular:!1}],y=[{key:r.Intro3d,name:"3-DAY",period:"3 days",price:{intro:null,base:7.99},presentationPrice:{dollars:2,cents:66},is_popular:!1,intro:{days:3,label:"3-day"},cycle:{price:22.99,days:14}},{key:r.Intro14d,name:"2-WEEK",period:"14 days",price:{intro:null,base:15.99},presentationPrice:{dollars:1,cents:14},is_popular:!0,intro:{days:14,label:"2-week"},cycle:{price:29.99,days:14}},{key:r.Intro7d,name:"1-WEEK",period:"7 days",price:{intro:null,base:9.99},presentationPrice:{dollars:1,cents:43},is_popular:!1,intro:{days:7,label:"1-week"},cycle:{price:25.99,days:14}}],v=i(u.FunnelPricingContext,()=>null),h=n(()=>v.value?.eligible===!0&&v.value.group===A.WebFunnelPricingV2IntroofferTest),d=n(()=>h.value?y:m),C=e=>{v.value=e},B=()=>{const e=v.value;return e?{intro_eligible:e.eligible,...e.group?{web_funnel_pricing:e.group}:{}}:{}},b=()=>o.value!==null&&t.value!==null,N=()=>s.value&&!t.value?.is_paid&&Q(a.path),w=(e,E)=>b()===!1&&(t.value===null||N())&&e===!0&&E===!1,F=e=>b()&&t.value!==null&&!t.value.is_paid&&!S.value&&t.value.balance.coins===0&&e===!1,l=(e,E)=>w(e,E)||F(e),P=()=>{o.value=Math.floor(Date.now()/1e3)},M=()=>{o.value=null},G=e=>{f.value=e},U=n(()=>d.value.find(e=>e.is_popular)??d.value[0]),W=n(()=>d.value.find(e=>e.key===f.value)??U.value),K=n(()=>W.value?.key??f.value);return{authMode:_,prefillEmail:D,offerHash:c,startTime:o,offerDuration:p,subscriptions:d,standardSubscriptions:m,isIntroPricingActive:h,setPricingContext:C,pricingEventProps:B,selectedSubscription:K,gateway:Z,isPaymentShow:O,isPaymentSucceeded:H,selectSubscription:G,isStarted:b,firstStepAvailable:w,secondStepAvailable:F,funnelAvailable:l,startFunnel:P,stopFunnel:M,showPayment:()=>{H.value=!1,i(u.PaymentSuccessScreenVisible,"$G7tXlHQyqU").value=!1,i(u.LeavingPaymentSuccessScreen,"$hxtaMR-owf").value=!1,O.value=!0},hidePayment:()=>O.value=!1,changeAuthMode:e=>_.value=e,switchToLogin:e=>{D.value=e,_.value=I.Login},selectedSubscriptionItem:W}}export{J as a,ie as u};
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.