1import{_ as T}from"./AhR5DynG.js";import{c as V}from"./C08upVq_.js";import{g}from"./kRKFtHFE.js";import{g as L,a as W,b as E,c as F}from"./B8h3k30f.js";import{q as G}from"./DSa2ezTl.js";import{q as O}from"./wyaSrrck.js";import{ae as R,b as z,y as M,ah as $,ai as a,aj as l,ak as t,an as s,ap as e,ar as d,as as w,ao as H,aL as C,ay as I,aq as v,al as b,at as J}from"./CxC4gaFI.js";import{u as K}from"./Wriiob-l.js";import"./GGwSX_u9.js";import"./mLoQmcMy.js";import"./Du23tuC5.js";import"./H3zpTEXo.js";import"./6fm-2eCi.js";import"./CZSWjShp.js";import"./D69vObb0.js";import"./CudfqeQM.js";import"./C9UmscqL.js";import"./ppl-bDxV.js";import"./DqlnbiH_.js";import"./BbTjbxP3.js";import"./DqMSGto8.js";import"./DkniNI96.js";const Q={class:"unlock-dialog flex flex-col px-4 pt-6"},X=["title"],Y={class:"m-0 mb-4 text-4 font-700 text-ink text-center"},Z={key:0,class:"flex flex-col gap-3 mb-4"},ee={key:1,class:"flex flex-col gap-3 mb-4"},te=["aria-pressed","onClick"],oe=["src"],se={class:"text-4 font-500 text-ink leading-none min-w-0"},ne={class:"flex items-center gap-2 flex-const"},re={key:0,class:"px-1.5 h-4.5 center rounded-full bg-danger text-2.5 font-600 text-white leading-none"},ae={class:"flex items-center gap-1"},le=["src"],ce={class:"flex items-baseline gap-0.5"},ie={class:"text-4 font-700 text-ink leading-none"},pe={class:"text-2.5 font-400 text-fg-weak"},de=["disabled"],ue=["src"],me={class:"flex items-center gap-2"},he={class:"flex items-center justify-center gap-1.5 text-3.5 mb-4"},ke={class:"text-fg-weak font-400"},ge={class:"flex items-center gap-1"},be=["src"],fe={class:"text-fg-weak font-400"},_e={class:"flex items-center justify-between gap-3 -mx-4 px-4 py-4 rounded-b-4 bg-fill-2"},xe={class:"flex flex-col gap-2 min-w-0"},ye={class:"m-0 text-3.5 font-700 text-ink"},we={class:"m-0 text-3 font-400 text-fg-weak"},Ce={class:"flex items-center gap-2 mt-1"},Ie=["href","aria-label"],ve=["href","aria-label"],Ne=R({__name:"UnlockDialogPc",props:{bookId:{},bookName:{},chapterId:{},chapterIndex:{},chapterName:{},trackParent:{},initialSelectedChapterCount:{},onSelectedChapterCountChange:{type:Function},onUnlocked:{type:Function}},setup(N){const n=N,{t:o}=z(),{urlLinks:f}=J(),{track:P}=M(),{loading:D,optionViews:S,selectedIndex:u,selectedOption:m,unlocking:h,myGems:U,unlockRange:B,select:j,unlock:_,topUp:x}=K(n);function y(){P("reader.unlockDownloadClick",{bookId:n.bookId,bookTitle:n.bookName,chapterIndex:n.chapterName},{parent:n.trackParent})}function A(p){return p.kind==="single"?o("reader.unlock.optionSingle"):p.kind==="all"?o("reader.unlock.optionAll"):o("reader.unlock.optionMulti",{count:p.chapterCount})}return(p,c)=>{const k=T,q=$("track-exposure");return a(),l("div",Q,[t("p",{class:"m-0 mb-1 text-3.5 font-400 text-fg-weak text-center truncate",title:n.bookName},s(n.bookName),9,X),t("h2",Y,s(e(B)),1),e(D)?(a(),l("div",Z,[(a(),l(d,null,w(3,r=>t("div",{key:r,class:"h-16 rounded-3 bg-fill-3 animate-pulse"})),64))])):(a(),l("div",ee,[(a(!0),l(d,null,w(e(S),(r,i)=>H((a(),l("button",{key:i,type:"button",class:C(["unlock-option relative flex items-center justify-between h-16 px-4 rounded-3 border-1 border-style-solid cursor-pointer transition-colors",i===e(u)?"border-primary bg-primary-pale":"border-line-1 bg-white hover:border-primary"]),"aria-pressed":i===e(u),onClick:Pe=>e(j)(i)},[i===e(u)?(a(),l("img",{key:0,src:e(V),alt:"","aria-hidden":"true",class:"absolute top-0 right-0 w-3.5 h-3.5",width:"14",height:"14"},null,8,oe)):I("",!0),t("span",se,s(A(r)),1),t("span",ne,[r.kind==="all"?(a(),l("span",re,s(e(o)("reader.unlock.popular")),1)):I("",!0),t("span",ae,[t("img",{src:e(g),alt:"","aria-hidden":"true",class:"w-4 h-4 flex-const",width:"16",height:"16"},null,8,le),t("span",ce,[t("span",ie,s(r.pricePerCh),1),t("span",pe,s(e(o)("reader.unlock.perChUnit")),1)])])])],10,te)),[[q,{name:"reader.unlockOptionExposure",tracks:{bookId:n.bookId,bookTitle:n.bookName,chapterIndex:n.chapterName,unlockChapterAmount:r.chapterCount},parent:n.trackParent}]])),128))])),t("button",{type:"button",class:C(["flex items-center justify-center gap-1.5 h-12 rounded-2 border-0 text-4 font-700 transition-colors mb-3",e(m)&&!e(h)?"bg-primary text-ink cursor-pointer hover:bg-primary-hover":"bg-fill-2 text-fg-disabled cursor-not-allowed"]),disabled:!e(m)||e(h),onClick:c[0]||(c[0]=(...r)=>e(_)&&e(_)(...r))},[e(h)?(a(),l(d,{key:0},[v("...")],64)):(a(),l(d,{key:1},[t("img",{src:e(g),alt:"","aria-hidden":"true",class:"w-5 h-5 flex-const",width:"20",height:"20"},null,8,ue),t("span",me,[t("span",null,s(e(m)?.totalGems??0),1),t("span",null,s(e(o)("reader.unlock.unlockNow")),1)])],64))],10,de),t("div",he,[t("span",ke,s(e(o)("reader.unlock.myGems")),1),t("span",ge,[t("img",{src:e(g),alt:"","aria-hidden":"true",class:"w-4 h-4 flex-const",width:"16",height:"16"},null,8,be),t("span",fe,s(e(U)),1)]),c[3]||(c[3]=t("span",{class:"text-line-2","aria-hidden":"true"},"|",-1)),t("button",{type:"button",class:"flex items-center gap-0.5 bg-transparent border-0 p-0 cursor-pointer text-3.5 font-400 text-fg-regular",onClick:c[1]||(c[1]=(...r)=>e(x)&&e(x)(...r))},[v(s(e(o)("reader.unlock.topUp"))+" ",1),c[2]||(c[2]=t("span",{class:"i-icons-ic-arrow-right w-3 h-3","aria-hidden":"true"},null,-1))])]),t("div",_e,[t("div",xe,[t("p",ye,s(e(o)("reader.unlock.drainTitle")),1),t("p",we,s(e(o)("reader.unlock.drainDesc")),1
1),t("div",Ce,[t("a",{href:e(f).googlePlay,target:"_blank",rel:"noopener noreferrer","aria-label":e(o)("earlyAccess.googlePlay"),onClick:y},[b(k,{src:e(W),"webp-src":e(L),alt:e(o)("earlyAccess.googlePlay"),width:"105",height:"36",class:"h-9 w-auto block"},null,8,["src","webp-src","alt"])],8,Ie),t("a",{href:e(f).appStore,target:"_blank",rel:"noopener noreferrer","aria-label":e(o)("earlyAccess.appStore"),onClick:y},[b(k,{src:e(F),"webp-src":e(E),alt:e(o)("earlyAccess.appStore"),width:"105",height:"36",class:"h-9 w-auto block"},null,8,["src","webp-src","alt"])],8,ve)])]),b(k,{src:e(G),"webp-src":e(O),alt:"Scan to download WebComics",class:"w-20 h-20 flex-const rounded-2 border border-line-7 border-style-solid",width:"80",height:"80"},null,8,["src","webp-src"])])])}}}),Qe=Object.assign(Ne,{__name:"ReaderUnlockDialogPc"});export{Qe 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.