PageSourceSearch

https://fictionme.net/n_assets/Cc7_Awqg.js

js fictionme.net collected 2026-10-02 05:32:00 UTC 6,297 bytes, 1 lines download raw bytes

1import O from"./DFygfSMa.js";import{_ as W}from"./sX5IReoc.js";import{_ as J}from"./jiNKUcgx.js";import{_ as K}from"./D_Yl9mz2.js";import{u as Q,_ as X}from"./CT-3_uVN.js";import{v as D,c as Z,$ as Y,P as F,S as ee,d as te,f as c,o as l,k as r,p as _,h as p,i as e,g as s,m as se,G as o,H as n,E as v,F as q}from"#entry";import{u as G}from"./Cf_5U1TM.js";import{u as oe}from"./B9ooX_qY.js";import{u as ne}from"./XCZz6P64.js";import"./B-xwh3dY.js";import"./DLNpcykF.js";import"./DY3Yz_TZ.js";import"./Duh1Sd2G.js";import"./CgFWkk1q.js";import"./FC47SwYL.js";import"./BR-Dffm0.js";import"./CNNG57e1.js";import"./Dwb3cLGQ.js";import"./BWtEfKRp.js";import"./DhbthPdZ.js";function ae(){const{user:w,totalBalance:i,refreshUser:d}=D(),{products:C}=oe(),{packageName:P}=Q(),{skippedRange:h,hasEnoughCoins:B,bulkUnlock:A,rememberPending:y,forgetPending:$,closePopup:j,trackButtonClicked:b}=G(),a=[...C].sort((x,m)=>x.coins-m.coins),S=a[a.length-1],u=Z(()=>{const x=h.value?.final_price??0;return a.find(m=>i.value+m.coins+m.bonus>=x)??S}),g=ne({placement:Y.AntiSkipPopup,keepFormOnFailure:!0,getSelected:()=>u.value,formatPackage:P,onSuccess:async()=>{if(await d(),B.value){await A({track:!1});return}$()}}),f=async()=>{j(),await ee({path:"/profile/balance",query:{from:Y.AntiSkipPopup,package:u.value?.key}})};return{selected:u,checkout:g,buy:async()=>{if(b(F.BuyPackage),!w.value?.email){await f();return}y(),g.startCheckout(w.value.email)},chooseAnother:async()=>{b(F.ChooseAnotherPackage),await f()}}}const re={key:0,class:"text-center"},ie={class:"flex m-auto h-[64px] w-[64px] items-center justify-center rounded-full bg-ds-orange-500/20"},le={class:"mt-6 space-y-2 text-left text-lg max-md:text-base"},de={key:0,class:"flex items-center justify-between gap-4"},ce={class:"flex items-center gap-4 font-medium"},me={class:"flex items-center gap-1"},pe={class:"flex items-center gap-1"},ue={class:"flex items-center justify-between gap-4"},ge={class:"font-medium"},fe={key:0,class:"mr-1 text-ds-gray-400 font-light"},xe={key:1,class:"flex justify-end"},ke={class:"flex items-center gap-1.5 rounded-full bg-ds-pink-100 dark:bg-ds-red-950 px-2 py-1 text-sm font-medium text-ds-red-600 dark:text-ds-red-400"},he={class:"mt-4 max-w-[300px] h-[40px] mx-auto flex items-center justify-center gap-2 py-3 px-4 rounded-xl border border-ds-red-600 bg-ds-red-50 dark:border-ds-red-900 dark:bg-ds-red-950 font-medium text-ds-red-600 dark:text-ds-red-400"},ye={class:"absolute top-0 right-0 px-2 py-1 bg-coral-gradient text-xs font-semibold leading-none rounded-bl-lg"},De=te({__name:"AntiSkipPopup",setup(w){const{user:i}=D(),{skippedRange:d,isVisible:C,unlocking:P,hasDiscount:h,hasEnoughCoins:B,lockedChaptersLabel:A,goBack:y,bulkUnlock:$,requestAuth:j,forgetPending:b}=G(),{selected:a,checkout:S,buy:u,chooseAnother:g}=ae(),{loading:f,showPayment:N,formInitialing:V,paymentError:x,closePayment:m,startCheckout:I}=S,z=()=>I(i.value?.email??""),H=R=>{b(),m(R)};return(R,t)=>{const T=O,U=W,E=J,L=K,M=X;return l(),c(q,null,[r(L,{"is-visible":e(C),onClose:t[4]||(t[4]=k=>e(y)(e(F).Closed)),"overlay-classes":"z-[35]","additional-classes":"!p-6 !max-w-[480px] border !bg-ds-slate-50 !border-ds-slate-200 dark:!bg-ds-gray-900 dark:!border-ds-gray-700"},{default:_(()=>[e(d)?(l(),c("div",re,[s("div",ie,[r(T,{name:"fm:warning",class:"text-3xl text-ds-orange-600"})]),t[9]||(t[9]=s("h3",{class:"mt-5 text-3xl max-md:text-2xl font-bold"},"You're jumping ahead!",-1)),t[10]||(t[10]=s("p",{class:"mt-2 text-lg max-md:text-base text-ds-gray-700 dark:text-gray-400"}," What you're skipping is where the story shifts. You don't want to miss this. ",-1)),s("div",le,[e(i)?(l(),c("div",de,[t[5]||(t[5]=s("span",{class:"font-light"},"Your Balance:",-1)),s("span",ce,[s("span",me,[o(n(e(i).balance.coins)+" ",1),r(U,{src:"/img/coin.svg",width:"24",height:"24",alt:""})]),s("span",pe,[o(n(e(i).balance.bonus)+" ",1),r(U,{src:"/img/ticket.svg",width:"24",height:"24",alt:""})])])])):p("",!0),s("div",ue,[t[6]||(t[6]=s("span",{class:"font-light"},"Chapters Price:",-1)),s("span",ge,[e(h)?(l(),c("s",fe,n(e(d).original_price),1)):p("",!0),o(" "+n(e(d).final_price)+" Coins ",1)])]),e(h)?(l(),c("div",xe,[s("span",ke,[r(T,{name:"fm:fire-filled",class:"text-base flex-shrink-0"}),o(" "+n(e(d).discount_percent)+"% off for bulk unlock ",1)])])):p("",!0)]),s("p",he,[r(U,{src:"/icons/unlock-with-key.webp",width:"20",height:"20",alt:"",class:"flex-shrink-0"}),o(" "+n(e(A)),1)]),r(E,{onClick:t[0]||(t[0]=v(k=>e(y)(),["prevent"])),class:"mt-4 w-full py-4 px-8 border-2 border-primary text-center justify-center rounded-xl text-xl max-md:text-lg text-violet-800 dark:text-violet-500 dark:hover:text-violet-600"},{default:_(()=>[o(" Go back to Chapter "+n(e(d).start_chapter),1)]),_:1}),e(B)?(l(),se(E,{key:0,onClick:t[1]||(t[1]=v(k=>e($)(),["prevent"])),loading:e(P),class:"mt-3 w-full py-4 px-8 bg-fm-gradient hover:bg-fm-gradient-active text-center justify-center rounded-xl !text-white text-xl max-md:text-lg font-semibold"},{default:_(()=>[...t[7]||(t[7]=[o(" Unlock all skipped chapters ",-1)])]),_:1},8,["loading"])):e(a)?(l(),c(q,{key:1},[r(E,{onClick:t[2]||(t[2]=v(k=>e(i)?e(u)():e(j)(),["prevent"])),loading:e(f),class:"relative mt-3 w-full py-4 px-8 bg-fm-gradient hover:bg-fm-gradient-active text-center justify-center rounded-xl !text-white text-xl max-md:text-lg font-semibold overflow-hidden"},{default:_(()=>[o(" Buy "+n(e(a).coins)+" coins for $"+n(e(a).price.toFixed(2))+" ",1),s("span",ye," +"+n(e(a).bonus)+" Bonu
1s ",1)]),_:1},8,["loading"]),e(i)?(l(),c("button",{key:0,onClick:t[3]||(t[3]=v((...k)=>e(g)&&e(g)(...k),["prevent"])),class:"mt-4 text-lg max-md:text-base font-medium text-primary dark:text-ds-violet-300 underline"}," Choose another package ")):p("",!0),t[8]||(t[8]=s("p",{class:"mt-4 text-sm text-gray-400 dark:text-gray-500"},[o(" By purchasing you agree to "),s("a",{href:"/public/web-terms-of-use.html",target:"_blank",class:"underline"},"Terms of Use"),o(". Coins are virtual items with no real-world value and are non-refundable. ")],-1))],64)):p("",!0)])):p("",!0)]),_:1},8,["is-visible"]),r(M,{show:e(N),selected:e(a),"form-initialing":e(V),loading:e(f),"payment-error":e(x),onClose:H,onRetry:z},null,8,["show","selected","form-initialing","loading","payment-error"])],64)}}});export{De as default};

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.