PageSourceSearch

https://assets.recargajogo.com.br/gop/mshop/www/live/assets/ViewEvent-d85f3108.js

js recargajogo.com.br collected 2026-10-04 18:33:36 UTC 8,816 bytes, 1 lines download raw bytes

1import{aE as A,bN as B,V as S,c4 as M,a as H,d as V,q as R,aV as G,H as W,c as j,C as Y,o,z as q,j as n,E as F,a0 as D,p as z,c5 as K,c6 as J,u as Q,s as X,h as Z}from"./index-878ce38c.js";import{r as h,R as ee}from"./react-0e2a0c96.js";import{E as b,u as te}from"./useEvents-870acbc1.js";import{d0 as se,d1 as ne,d2 as P,d3 as re,d4 as ae,d5 as ie,d6 as ce,d7 as oe}from"./images-0c2231a1.js";import{u as me}from"./useCountdown-35bb8e48.js";import{B as de}from"./BotBar-de7c9f4c.js";import{A as le}from"./AutoLogin-eeecd585.js";import"./BonusDisplayList-c7325f4c.js";import"./useBuyNow-6ec2c793.js";import"./BuyNowLoginModal-660c55d8.js";import"./assets-c9ac44d9.js";import"./LoginIdAuthForm-a21f198c.js";const ue=a=>{const m=h.useMemo(()=>{const r=a.filter(s=>s.visible).map(s=>({...s,items:s.items.filter(l=>{var p,c;return A(l)||((p=l.rebate_card)==null?void 0:p.show_on_shop)||((c=l.app_item)==null?void 0:c.show_on_shop)})})).filter(s=>s.items.length);return B(r,["priority"])},[a]),i=h.useMemo(()=>S(m,"channel"),[m]),t=h.useMemo(()=>m.reduce((r,s)=>r.concat(s.items),[]),[m]),u=h.useMemo(()=>{const r=t.filter(A);return B(r,["app_point_amount","promo.total_promo_amount"],["asc","desc"])},[t]),e=h.useMemo(()=>{const r=S(t,"id");for(const s of u){const l=M(s.channel_id);l in r||(r[l]=s)}for(const s of t)r[M(s.channel_id,s)]=s;return r},[t,u]),g=h.useMemo(()=>S(t,r=>"".concat(r.channel_id,"-").concat(r.item_id)),[t]),[d,v]=H(),x=Number(d.get("channel")),_=i[x]||m[0];return{data:m,selected:_,itemsById:e,itemsByChannelItemId:g,select:r=>{!r||r.channel===(_==null?void 0:_.channel)||v(s=>{const l=new URLSearchParams(s);return l.set("channel","".concat(r.channel)),l})}}},_e=(a,m,i)=>{const{idauth:t,oauth:u}=V(),e=!!(t||u),{region:g,lang:d}=R(),v=()=>e&&a&&m&&(i==null?void 0:i.event_type)===b.LESS_IS_MORE?"/shop/apps/event_pricing?".concat(new URLSearchParams({app_id:"".concat(a.app_id),packed_role_id:"".concat(m.packed_role_id),region:g,language:d,event_type:"".concat(i.event_type),event_region:m.event_region||g})):null,{data:x,isLoading:_}=G(v(),async p=>(await W.get(p)).data),{event_info:f,channels:r=[]}=x||{},s=h.useMemo(()=>f&&{...f,configs:B(f.configs,["price_tier"])},[f]),l=h.useMemo(()=>r.filter(p=>{var c;return(c=i==null?void 0:i.eligible_channels)==null?void 0:c.includes(p.channel)}),[r,i]);return{eventInfo:s,eligibleChannels:l,isLoading:_}},pe=({value:a})=>{const{t:m}=j(),i=me(a/1e3),t=Math.floor(i/(60*60*24)),{HH:u,mm:e,ss:g}=J(i%(60*60*24)),d="".concat(u,":").concat(e,":").concat(g);return n("div",{className:"font-bold",children:t<1?d:"".concat(t," ").concat(m("lbl__countdown_days")," ").concat(d)})},ge=({app:a,role:m,event:i})=>{var l,p;const{t}=j(),u=_e(a,m,i),{eventInfo:e,eligibleChannels:g}=u,d=ue(g),v=d.selected,x=e&&v?d.itemsByChannelItemId["".concat(v.channel,"-").concat(e.eligible_item)]:void 0,_=(()=>{if(e)switch(e.status){case 1:return"msg__event_pending_payment";case 2:return"msg__event_sold_out";case 0:return"msg__event_your_tier";default:return}})(),f=()=>{const c=document.scrollingElement||document.body;window.scrollTo({behavior:"smooth",top:c.scrollHeight})},r=Y("md"),{region:s}=R();return o(q,{children:[o("div",{className:"mx-auto w-full max-w-5xl grow px-4 pb-[22px] md:pt-4 lg:px-10 lg:pb-9 lg:pt-8",children:[n("div",{className:"mb-2 text-xl/none font-bold max-md:hidden",children:t("title__event_lsm")}),n("div",{className:"mb-4 text-sm/[22px] text-text-secondary max-md:hidden",children:t("msg__event_lsm_desc2")}),e&&o("div",{className:"relative -mx-4 bg-cover bg-top px-4 py-[30px] text-light-text-title md:mx-0 md:rounded-lg md:bg-center md:px-8 md:py-6 lg:px-12 lg:py-10",style:{backgroundImage:"url(".concat(r?se:ne,")")},children:[n("div",{className:"mb-5 text-center text-3xl/none font-bold uppercase md:hidden",children:t("lbl__event_lsm_title")}),o("div",{className:"mb-4 flex items-center justify-between md:mb-8",children:[o("div",{className:"text-sm md:text-base lg:text-lg",children:[e.show_countdown_timer&&n(pe,{value:e.end_time*1e3}),n("div",{className:"me-2 max-w-72 font-semibold text-[#804B00] md:max-w-80 lg:max-w-96",children:t("msg__event_lsm_msg")})]}),o("div",{className:"me-4 shrink-0 skew-x-[-30deg] rounded bg-[#FFECBA]/[0.4576] px-4 py-2 font-bold text-[#804B00] md:px-6 md:py-3",children:[o("div",{className:"flex skew-x-[30deg] items-center justify-center md:text-lg lg:text-xl",children:[t("msg__event_lsm_get")," ",F(((l=e.configs[0])==null?void 0:l.diamond_num)||0,s),n(P,{className:"ms-1"})]}),o("div",{className:"skew-x-[30deg] ps-1 text-center text-xs",children:[e.total_times," ",t("msg__event_lsm_times")]})]})]}),n("div",{className:"grid items-center justify-items-center max-md:flex-col max-md:gap-y-[5px] md:grid-cols-4 md:gap-x-1.5 lg:gap-x-2.5",children:e.configs.map((c,C,$)=>{var T;const U=c.tier_diamond_min,L=(T=$[C+1])==null?void 0:T.tier_diamond_min,y=c.item_id===e.eligible_item,N=d.selected,I=N?d.itemsByChannelItemId["".concat(N.channel,"-").concat(c.item_id)]:void 0;let k="US$ %.2f",w=Number(e.original_price),E=c.price;N&&e.currency_dict[N.currency]&&I&&(w=e.currency_dict[N.currency],E=I.currency_amount,k=I.currency_symbol);const O=Math.floor((w-E)/w*100);return o(ee.Fragment,{children:[o("div",{className:"group relative w-full overflow-hidden rounded-md bg-[#FFE9AD] aria-checked:cursor-pointer aria-checked:bg-[#FFFAEC] md:h-52 md:aria-checked:h-56 lg:h-60 lg:aria-checked:h-64","aria-checked":y,onClick:y?f:void 0,children:[o("div",{className:"flex justify-between bg-[#FFC51F]/[0.388393] px-4 py-1.5 text-xs text-[#873E05] group-aria-checked:bg-[#FFEEC0]/60 md:order-1 md:p-1.5",children:[n("span",{className:"font-medium",children:t(y?"lbl__event_lsm_player_balance":"lbl__event_lsm_balance")}),o("span",{className:"inline-flex items-center font-bold",children:[F(U,s),L?"-".concat(F(L-1,s)):"+",n(re,{className:"ms-0.5"})]})]}),o("div",{className:"relative flex grow items-center justify-between p-4 md:flex-col md:justify-center md:p-2 md:pt-10",children:[o("div",{className:"relative flex items-center justify-center",children:[n("img",{className:"pointer-events-none w-24 group-aria-checked:w-28 lg:w-28 lg:group-aria-checked:w-32",src:y?ae:ie}),o("div",{className:"flex items-center justify-center rounded-sm p-1 text-sm font-bold text-[#873E05] md:absolute md:-end-4 md:-top-3 md:bg-white md:text-xs md:group-aria-checked:-end-2 md:group-aria-checked:bg-[#FFD86D]/[0.763904] lg:text-sm",children:[F(c.diamond_num,s),n(P,{}),n("div",{className:"top-full border-x-4 border-y-2 border-transparent md:absolute md:start-1.5 md:border-s-white md:border-t-white md:group-aria-checked:border-s-[#FFD86D]/[0.763904] md:group-aria-checked:border-t-[#FFD86D]/[0.763904]"})]})]}),o("div",{className:"flex flex-col items-end",children:[o("div",{className:"flex items-end md:mt-4 md:group-aria-checked:mt-2 lg:mt-6 lg:group-aria-checked:mt-3",children:[n("span",{className:"text-xs/6 text-[#80523B] line-through",children:w>E&&n(D,{currencyAmount:w,currencyFormat:k,inlineFlex:!0})}),n("span",{className:"ms-1 text-xl font-bold",children:n(D,{currencyAmount:E,currencyFormat:k,inlineFlex:!0})})]}
1),y&&_&&n("div",{className:"my-1 w-full border-t border-[#E5E5E5] pt-1 text-end font-semibold text-[#AA1B00] md:pt-0.5 md:text-center",children:t(_)}),o("div",{className:z("rounded bg-gradient-to-r p-1 text-2xs font-semibold text-white","rtl:bg-gradient-to-l","md:absolute md:start-1.5 md:top-1.5",{"from-[#FF624D] to-[#FF3726]":c.price_tier===1,"from-[#FF8C19] to-[#FF7900]":c.price_tier===2,"from-[#FFC508_-74.63%] to-[#FF9E0B]":c.price_tier===3,"from-[#FFE02E_-146.49%] to-[#FFC423_97.38%]":c.price_tier===4}),children:[O,"% ",t("lbl__event_lsm_off")]})]})]})]}),C+1<$.length&&n(ce,{className:"md:hidden"})]},c.price_tier)})}),o("div",{className:"mt-2.5 flex items-center text-sm font-bold max-md:hidden",children:["0",n("img",{className:"mx-1 shrink overflow-hidden rtl:-scale-x-100",src:oe}),F(((p=e.configs[e.configs.length-1])==null?void 0:p.tier_diamond_min)||0,s),"+"]})]}),n("div",{className:"mt-9 [&_div[data-marker]]:hidden",children:n(K,{app:a,channels:d.data,itemsById:d.itemsById,denom:x,isLoading:u.isLoading,selected:d.selected,onSelect:d.select})})]}),x&&n(de,{app:a,channel:d.selected,item:x,event:i.event_type})]})},he=a=>{switch(a.event_type){case b.THREE_IN_ONE:return a.three_in_one_site;case b.MYSTERY_TOPUP:return a.mystery_topup_site;case b.NEW_USER_ATTAINMENT:return a.new_user_attainment_site;case b.CUMULATIVE_TOPUP_SITE:return a.cumulative_topup_site;case b.GACHA:return a.gacha_site;default:return}},Be=()=>{const a=Q(),m=Number(a.eventType),[i]=X(),t=Z(),e=te(i).byType[m];return i&&t.role&&(e==null?void 0:e.event_type)===b.LESS_IS_MORE?n(ge,{app:i,role:t.role,event:e}):n(le,{redirectUrl:e?he(e):void 0,eventId:e?e.event_id:void 0})};export{Be 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.