PageSourceSearch

https://one-vv2311.com/resources/v1/app/assets/index-Y8DsNV9j.js

js one-vv2311.com collected 2026-10-08 19:47:47 UTC 5,548 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/giveaway-8T8ddbr_.js","assets/logger-B4OCWT-4.js","assets/control-DnbWcEGV.js","assets/test-manager-DesYLJOQ.js","assets/hint-C-pjU_97.js","assets/custom-html-CSF7RBTT.js","assets/use-modal-C-MxU-rM.js","assets/plugin-feature-flags-D9VJsscs.js","assets/modal-info-xrKkKMln.js","assets/modal.vue_vue_type_script_setup_true_lang-ShCaOmXC.js","assets/use-body-scroll-lock-iwIC3Zn4.js","assets/modal-header-DWNHMXrj.js","assets/arrow-back-BwjDU6vO.js","assets/modal-footer-DirCazFh.js","assets/buttons-group-BuclJAcr.js","assets/button-RNidVG78.js","assets/variant-1-DQXzj0Ow.js","assets/modal-header-DSQ429XI.js","assets/index-vSUUMbpI.js","assets/use-giveaway-win-modal-view-model-C85_JslU.js","assets/picture-v2-E1-v2O99.js","assets/create-mask-image-value-BQDVFb7C.js","assets/plugin-server-updates-DhdiVNAl.js","assets/socket-io-adapter-Cz7Hnc3D.js","assets/define-widget-dVgL_Ppo.js","assets/variant-2-LfaT4H5C.js","assets/variant-2-Df2Lbvg8.js","assets/user-Cq45NfRH.js"])))=>i.map(i=>d[i]);
2import{d as P}from"./plugin-server-updates-DhdiVNAl.js";import{markRaw as N,ref as c,shallowRef as A,readonly as m,defineAsyncComponent as h,computed as C,toValue as p,watch as E,toRef as R}from"vue";import{Y as v,ag as M,bk as b,n as w,B as g,aZ as G,c8 as L,c6 as I,aw as D,bc as W,aS as V,K as q,w as H,af as F,cA as Y}from"./logger-B4OCWT-4.js";import{d as K}from"./define-widget-dVgL_Ppo.js";import{u as U}from"./use-modal-C-MxU-rM.js";const{init:k,useModule:$,implement:z}=P("streamers"),Q={Streamers_GiveawayWidget:N(K(()=>v(()=>__retry_dynamic_loader__(()=>import("./giveaway-8T8ddbr_.js")).then(e=>e.g),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))))},T=M("streamers-app",()=>{const e=c(void 0),o=A(void 0),a=c({isGiveawayWidgetVisible:!1}),s=(r,u)=>{e.value=r,o.value=u},t=r=>a.value.isGiveawayWidgetVisible=r;return{data:m(e),actions:m(o),state:m(a),setGiveawayWidgetVisibility:t,init:s}}),j=()=>{const e=T(),o=e.data.config.variant===1?()=>v(()=>__retry_dynamic_loader__(()=>import("./variant-1-DQXzj0Ow.js")),__vite__mapDeps([16,1,17,18,3,7,19,9,10,5,20,21,13,15,22,23,24,6])):()=>v(()=>__retry_dynamic_loader__(()=>import("./variant-2-LfaT4H5C.js")),__vite__mapDeps([25,1,26,3,27,20,17,18,7,19,9,10,5,15,22,23,24,6])),a=U(h(o));return{open:t=>{a.open({...t,participant:{...t.participant,userId:String(e.data.user?.id),clientName:String(e.data.user?.name),winningPlace:Number(t.participant.winningPlace),amount:Number(t.participant.amount)}})}}},{useTranslations:le}=b({scope:"streamers",owner:w}),S={ACTIVE:"ACTIVE",CANCELED:"CANCELED",PROCESSING:"PROCESSING",WAITING_PAYMENT:"WAITING_PAYMENT",PAYMENT_PROCESSING:"PAYMENT_PROCESSING",COMPLETED:"COMPLETED"},x={PERIOD_UNSPECIFIED:"PERIOD_UNSPECIFIED",ONE_DAY:"ONE_DAY",ONE_WEEK:"ONE_WEEK",ONE_MONTH:"ONE_MONTH",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS",TWELVE_MONTHS:"TWELVE_MONTHS"},de={totalPrizeAmount:0,timeToStartSeconds:"180",isAutoDistribution:!0,isSplitEqually:!0,isSinglePrize:!0,numberOfWinners:"",quantity:"1",depositSum:10,period:x.TWELVE_MONTHS},me=["timeToStartSeconds","totalPrizeAmount","numberOfWinners","depositSum","quantity"],ye="last-giveaway-winners-shown",B="streamers/streamer",_={authorization:"required",tailoring:"mandatory"},X=async(e,o,a,s)=>
2await g.fetch(e,f,"POST",{headers:g.headers(),body:o},a,s,G),Z="streamers/get-giveaway-info",f="/PROXY-SERVICE-CDP/v1-streamer-giveaway-GetGiveawayInfo",J=q.for(_,B,Z),ee={},ae=(e,o,a)=>{const s=D(_,{...ee,...o},f);return W({...s.options,queryKey:[...J,{giveawayId:e.giveawayId}],queryFn:t=>X(s.resolveEntrypoint(a),s.resolveArguments(t.queryKey[4]),s.resolveFetchOptions(a,t),s.resolveFetchFn(a)),placeholderData:V})},te=(e,o,a)=>{const s=L(_,o);return I(ae(e,s.options,a))},se=H.extend({stream:w}),y=1e3,oe=se.extend({}),ve=F(({streamerId:e,giveawayListDomain:o})=>{const a=c(),s=c(y),t=c(0),r=$("@shared"),u=()=>{const n=new URL(`https://${p(o)}`),i=new URLSearchParams;return i.set("origin",location.origin),n.pathname="/api/cdp/streamer/giveaway.json",n.search=i.toString(),n},{data:l}=I({queryKey:["giveawayIdsList"],queryFn:async()=>{try{const n=await fetch(u().href,{method:"GET",headers:{origin:location.origin}});if(n.status===200)return n.json();oe.error({category:"component",name:"giveaway_query_error",message:`Response status code: ${n.status}; Origin: ${location.origin}; Redirected ${n.redirected}; UA: ${navigator.userAgent}; Country: ${r.client.country.value};`,component:"modules/streamers/src/hooks/use-participant-giveaway-info.ts"})}catch{return{}}},refetchInterval:s}),{data:d}=te({giveawayId:()=>a.value},{refetchInterval:t,enabled:()=>!!a.value}),O=C(()=>d.value?.status===S.ACTIVE);return Y(l,n=>{if(l.value?.public)a.value=l.value.public;else{const i=p(e);a.value=i?n?.[i]:void 0}}),E(a,n=>{s.value=n?0:y}),E(d,n=>{n?.status===S.ACTIVE?setTimeout(()=>{t.value=y},n.timeToStart-Date.now()):(a.value=void 0,t.value=0)}),{giveawayInfo:d,isGiveawayActive:O}});z(e=>{const o=T();o.init(e,e);const{open:a}=j();return{data:{cdpPopupCallbacks:{"giveaway-win":t=>{if(e.isBillingOpened.value||!t.content.data)return;const r=()=>{e.readCdpPopup?.(t.id)};a({participant:t.content.data,buttonUrl:e.casinoUrl.value??"",onClose:r})}},isGiveawayWidgetVisible:R(()=>o.state.isGiveawayWidgetVisible)},features:Q}});const _e=Object.freeze(Object.defineProperty({__proto__:null,init:k},Symbol.toStringTag,{value:"Module"}));export{B as S,de as a,te as b,$ as c,x as d,ve as e,le as f,S as g,_e as i,ye as l,me as m,T 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.