1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pziy9be5.js","./DQ8Q0yk1.js","./entry.C1z6vq29.css","./w3xes-_v.js","./C99-hGBY.js","./BaseButton.BDZicky1.css","./f2TGjSA9.js","./DdNQrVM3.js","./HoyrK8Zy.js","./D27ooooZ.js","./BFWgwSiG.js","./B0IXu9hW.js","./CWg3Qx-q.js","./DX1dkQgi.js","./Bvy6WvaZ.js","./CVps6rSh.js","./wyxEBlEf.js","./DiamondPackModal.SJjO_01v.css","./fHIAvHHE.js","./GooglePlayDiamondPackModal.Do6aPdsz.css","./DamIADqq.js","./B0Ib5zJM.js","./GradientCycleButton.CtUg5lS3.css","./BrHPScqm.js","./TabNav.CqxyPPrA.css","./ew476gcV.js","./L_vmJ7co.js","./chargeContent.BvYyWznX.css"])))=>i.map(i=>d[i]); 2import{a as e,Y as o,by as t,ax as a,x as n,bk as r,N as i,a7 as s,D as l}from"./DQ8Q0yk1.js";import{n as c,b as d,a as p,d as m}from"./B0IXu9hW.js";import{M as u}from"./DHJDDJB5.js";import{d as y,j as b,k as f}from"./HoyrK8Zy.js";import"./CWg3Qx-q.js";import"./DX1dkQgi.js";import"./Bvy6WvaZ.js";import"./CVps6rSh.js";import"./D27ooooZ.js";async function h(h){if(!h||"object"!=typeof h||Array.isArray(h)||!h.context)throw new Error("[openCharge] request.context is required");if(void 0!==h.behavior&&(!h.behavior||"object"!=typeof h.behavior||Array.isArray(h.behavior)))throw new Error("[openCharge] request.behavior must be an object");if(void 0!==h.behavior?.isRetention&&"boolean"!=typeof h.behavior.isRetention)throw new Error("[openCharge] behavior.isRetention must be a boolean");if(void 0!==h.onPay&&"function"!=typeof h.onPay)throw new Error("[openCharge] request.onPay must be a function");const E=e(),v=c({context:h.context,routePath:E.path}),_=o(),g=_.checkAuth(),w=g&&_.isVip(),T=t(),A=T.isAvailable.value&&"android"===T.environment.value?.platform,{brandKey:O}=a(),R="openlover"===String(O.value).toLowerCase()&&!A,C=w?y.DIAMOND_PACK:y.STANDARD,I=C===y.STANDARD&&(h.behavior?.isRetention??!1),P=d({context:v,isRetention:I,variant:C});P.requested();const N=n(),j=N.getSingletonId(u.charge);if(j)return P.blocked(b.DUPLICATE),j;if(!g)return void P.blocked(b.AUTH_REQUIRED);const S=async()=>(await i(async()=>{const{default:e}=await import("./pziy9be5.js");return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)).default,x=async()=>(await i(async()=>{const{default:e}=await import("./fHIAvHHE.js");return{default:e}},__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,19]),import.meta.url)).default,L=l("openMembershipRetentionOffer"),D=async(e,o)=>{P.modalClosed(f.CHECKOUT),N.closeById(e),h.onPay&&await h.onPay(o)};if(w){const e=A?x:S;return await N.openLazy(e,e=>({chargeFlow:r(P),...A?{}:{telegramPaymentEnabled:R},onClose:()=>{P.modalClosed(f.CLOSE_BUTTON),N.closeById(e)},onPay:o=>D(e,o)}),{position:"center",anchor:"center",closeOnClickOverlay:!1,overlayStyle:{backdropFilter:"blur(5px)",WebkitBackdropFilter:"blur(5px)"},containerStyle:{width:A?"min(480px, calc(100vw - 24px))":"min(400px, calc(100vw - 32px))",margin:"auto",padding:"0",border:"0",background:"transparent"},singleton:!0,singletonKey:u.charge})}return await N.openLazy(async()=>(await i(async()=>{const{default:e}=await import("./DamIADqq.js");return{default:e}},__vite__mapDeps([20,6,11,12,13,14,1,2,8,9,15,7,4,5,21,22,23,24,25,26,10,16,27]),import.meta.url)).default,e=>{const o=s({isRetention:I,telegramPaymentEnabled:R,chargeFlow:r(P),onClose:()=>{const t=sessionStorage.getItem(p.RETENTION_PROMPT_SHOWN)===m.SET;if(!o.isRetention&&!t)return sessionStorage.setItem(p.RETENTION_PROMPT_SHOWN,m.SET),void L({onView:()=>{P.retentionShown()},onAccept:()=>{P.retentionAccepted(),o.isRetention=!0}
2,onLeave:()=>{P.retentionLeft(),P.modalClosed(f.RETENTION_LEAVE),N.closeById(e)},onUnavailable:()=>{P.modalClosed(f.RETENTION_UNAVAILABLE),N.closeById(e)}});P.modalClosed(f.CLOSE_BUTTON),N.closeById(e)},onPay:o=>D(e,o)});return o},{position:"bottom",anchor:"fullscreen",closeOnClickOverlay:!1,singleton:!0,singletonKey:u.charge})}export{h as openCharge};
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.