PageSourceSearch

https://10608.win/assets/theme-0/store.Du-4K9Tr.js

js 10608.win collected 2026-10-09 04:35:10 UTC 4,357 bytes, 1 lines download raw bytes

1import{hw as _,bw as $,ce as F,a as W,b as ee,rN as te,rO as re,aN as ne,i4 as oe,dI as se}from"./commonChunk.BIjOjUCX.js";import{a as i}from"./enum.BEBvq45N.js";import{dc as ie}from"./0_EntryLoginRegisterChunk.DEYBGXQ-.js";import{w as J,d as ae,r as E,c as B,l as H,n as ce}from"../vendors/vendor-stable.BZTOV27i.js";import{useComplianceCheck as le}from"./index.CtoUliKG.js";import{t as K}from"./vendorChunk.B6ure_9S.js";const x=["mousemove","click","keydown","scroll","touchstart"],ue=1e3;function me(A,u){let m,a,f=!1;const L=()=>{m&&(clearTimeout(m),m=void 0)},d=()=>{L();const n=A.timeout.value;n<=0||(m=setTimeout(()=>{u(),d()},n))},h=()=>{a||(a=setTimeout(()=>{a=void 0},ue),d())},N=()=>{x.forEach(n=>{document.addEventListener(n,h,{passive:!0})})},p=()=>{x.forEach(n=>{document.removeEventListener(n,h)}),a&&(clearTimeout(a),a=void 0)},g=()=>{f||(f=!0,N(),d())},s=()=>{f&&(f=!1,L(),p())};return J(A.enabled,n=>{n?g():s()},{immediate:!0}),{start:g,stop:s,reset:d}}const Se=ae("intelligent-recharge",()=>{const A=[_.Normal,_.Demo,_.Promote,_.NormalMember],u=E(),m=E(),a=$(),f=le(),L=F(),d=E(),h=E(),N=E(""),p=W(),g=ee();let s;const n=B(()=>{var T,y,I;const t=((T=p.systemInfos)==null?void 0:T.rechargeSmartPopupScenes)||"",e=Number(((y=p.systemInfos)==null?void 0:y.rechargeSmartHallStayTime)||0),r=(I=p.systemInfos)==null?void 0:I.rechargeSmartPopupConditions;if(!t)return;let o=t.split(",").map(l=>l.trim()).filter(Boolean);e||(o=o.filter(l=>l!==i.STAY));let c=[];try{typeof r=="string"?c=JSON.parse(r):Array.isArray(r)&&(c=r)}catch(l){console.error("SmartRecharge parse config error:",l)}const R=c.filter(Boolean).map(l=>({currency:l.currencyCode,amount:Number(l.term)}));return{enable:{value:!!o.length,[i.LOGIN]:o.includes(i.LOGIN),[i.BACK_TO_LOBBY]:o.includes(i.BACK_TO_LOBBY),[i.STAY]:o.includes(i.STAY)},options:{scenes:o,stayTime:e,thresholds:R}}}),j=()=>{var o;if(!((o=n.value)!=null&&o.options.thresholds)||!g.userInfos||!se().isGameScoreSettled)return!1;const t=g.userInfos.currency,e=Number(g.userInfos.game_gold||0),r=n.value.options.thresholds.find(c=>c.currency===t);return!!(r&&e<=r.amount)},b=()=>{var t,e;return!(!g.hasLoginedComponent||!A.includes((t=g.userInfos)==null?void 0:t.account_type)||!((e=n.value)!=null&&e.enable.value))},O=async t=>{var e,r,o,c;
1if(b()&&(e=n.value)!=null&&e.enable[t]&&j()&&!((r=a.stateMap.intelligentRecharge)!=null&&r.visible)&&!((o=a.stateMap.recharge)!=null&&o.visible)&&(c=u.value)!=null&&c.showDlg&&L.route.name!==ne.LOGIN_REGISTER_UPGRADE_GUIDE){if(oe()){a.close("intelligentRecharge");return}f.getIsInComplianceFlow()||(m.value=t,await a.open("intelligentRecharge",{openType:"insert"}))}};let S;const G=()=>b()?S||(S=K(te()).then(([t,e])=>{if(!t&&e){let r={};try{r=e!=null&&e.activeList?JSON.parse(e.activeList):{}}catch(o){}u.value={...e,registerSuccessInfo:r},q()}else u.value=void 0}).finally(()=>{S=void 0}),S):Promise.resolve(),q=async()=>{var R,T,y,I,l,D,M,P,Y,k,U;let t=[],e="0";const r=(T=(R=u.value)==null?void 0:R.registerSuccessInfo)==null?void 0:T.activeList;if(r!=null&&r.length){let v=r[0];for(const V of r)((y=V.rule)==null?void 0:y.condVal)<((I=v.rule)==null?void 0:I.condVal)&&(v=V);h.value=v;const w=(D=(l=v.rule)==null?void 0:l.pay_type)!=null?D:[];t=w.length===1&&w[0]===0?[]:w,e=String((P=(M=v.rule)==null?void 0:M.condVal)!=null?P:"")}const[o,c]=await K(ie({payTypeIds:t,rechargeScore:e,calMode:re.RECOMMEND}));if(!o&&c){d.value=c.data.data;const v=(U=(k=(Y=d.value)==null?void 0:Y.recommendMoneyGiftList)==null?void 0:k[0])==null?void 0:U.amount;v&&(N.value=v)}},z={enabled:B(()=>{var t,e;return!!((t=n.value)!=null&&t.enable[i.STAY])&&!!((e=u.value)!=null&&e.showDlg)}),timeout:B(()=>{var t,e;return((e=(t=n.value)==null?void 0:t.options.stayTime)!=null?e:0)*60*1e3})},C=me(z,()=>O(i.STAY)),Q=()=>{C.reset(),O(i.BACK_TO_LOBBY)},X=async()=>{if(C.reset(),await G(),await ce(),s==null||s(),s=void 0,!f.getIsInComplianceFlow()){await O(i.LOGIN);return}s=f.watchComplianceFlow((t,e)=>{!t&&e&&(s==null||s(),s=void 0,O(i.LOGIN))})},Z=()=>{const t=m.value===i.LOGIN;return m.value=void 0,t};return J(()=>b(),t=>{t?G():u.value=void 0},{immediate:!0}),H(()=>{s==null||s()}),H(C.stop),{idle:C,value:u,config:n,fetch:G,gameLogout:Q,loginSuccess:X,consumeLoginDownloadFollowup:Z,payChannelInfo:d,minActiveItem:h,selectedRecommendAmount:N}});export{Se as useIntelligentRechargeStore};

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.