1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`v75.5`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f3d61853-1140-429e-9843-682cf24c810f`,e._sentryDebugIdIdentifier=`sentry-dbid-f3d61853-1140-429e-9843-682cf24c810f`)}catch{}})();import{a as e}from"./C4UQDtLj.js";import{C as t}from"./DA6F6Qgk.js";import{Ht as n,g as r}from"./BXtcRTsd.js";import{a as i,n as a}from"./CCR4TEi7.js";import{n as o,r as s}from"./Dz8c2IcZ2.js";import{t as c}from"./BwE_Dgta2.js";import{t as l}from"./b-PbhlSF2.js";import{n as u}from"./ZzQyGUi2.js";import{t as d}from"./BTLCvUdq.js";function f(e){return{id:`fortuneWheel${e.id}`,type:`fortuneWheel`,status:`waitingForAccrual`,availableSpinsTotal:e.data.availableSpinsTotal,isVip:!0}}function p(e){return{id:`freemoneyFortuneWheel${e.id}`,type:`freemoneyFortuneWheel`,status:`readyToClaim`,amount:e.amount,currencyId:e.currencyId,bonusId:e.id,expiredAt:e.expiredAt,isVip:!0}}function m(e){return!!e&&`availableSpinsTotal`in e.data}var h=a(`fortuneWheel`,()=>{let a=l(`ST-13298_FortuneWheel`),{isAuthenticated:h}=u(),{locale:g}=e().$i18n,_=o(),v=c(),{t:y}=e().$i18n,{freeMoneyFortuneWheelBonuses:b}=i(d()),x=t(!1);async function S(e){let{error:t}=await _(`/carrot/fortune-wheel/spin`,{method:`post`,body:e});t&&(v.open({label:y(`bonuses.errorSomethingWentWrong`),type:`negative`}),x.value=!0)}let{data:C,refresh:w,status:T}=s(`/carrot/bonus-programs/fortune-wheel/personal/find`,{method:`post`,body:{status:[`ACTIVE`]},immediate:!1,default:()=>[],watch:!1}),{data:E,refresh:D}=s(`/carrot/bonus-programs/fortune-wheel/find`,{method:`post`,immediate:!1,watch:!1,body:{status:[`ACTIVE`]},default:()=>[]});function O(){h.value?w():D()}n(()=>h.value,()=>{a.value&&O()},{immediate:!0});let k=r(()=>h.value?C.value:E.value),A=r(()=>k.value?.find(e=>e.status===`ACTIVE`)),j=r(()=>A.value?.data.levels?.map(e=>({...e,title:e.title[g.value]}))??[]),M=r(()=>m(A.value)?A.value.data.levels.find(e=>e.status===`ACTIVE`):A.value?.data.levels[0]),N=r(()=>A.value?.data.dropAmount??`0`),P=r(()=>A.value?.data.dropAmountCurrency??`MXN`),F=r(()=>M.value?.dropAmountThresholdSpins||0),I=r(()=>m(A.value)?A.value.data.availableSpinsTotal:0),L=r(()=>T.value===`pending`),R=r(()=>!a.value||!A.value||!I.value?[]:[f(A.value)]),z=r(()=>b.value.filter(({externalBonusProgramId:e})=>!!e).map(e=>p(e)));return{fortuneWheelData:k,levels:j,dropAmount:N,dropAmountCurrency:P,dropAmountThreshold:F,loading:L,availableFortuneWheelSpinsCount:I,fortuneWheel:A,isSpinError:x,fetchFortuneWheel:O,fetchFortuneWheelSpin:S,fortuneWheelBonus:R,freeMoneyFortuneWheelBonuses:z,fortuneBonuses:r(()=>[...R.value,...z.value])}});export{h as t};
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.