PageSourceSearch

https://assets.recargajogo.com.br/gop/mshop/www/live/assets/CheckInButton-361f5e19.js

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

1import{r as d}from"./react-0e2a0c96.js";import{q as u,h as _,H as m,I as f,c as x,o as y,p as g,j as c}from"./index-878ce38c.js";import{u as h}from"./usePost-5fbe5765.js";import{aV as C}from"./images-0c2231a1.js";function I(s){var t;return(t=s==null?void 0:s.status)!=null?t:!1}const R={TOPUP:0,PROFILE:1};function j(){var i;const{region:s}=u(),{role:t}=_(),{post:e,isLoading:n,error:o}=h(),a=(i=t==null?void 0:t.packed_role_id)!=null?i:0;return{checkIn:d.useCallback(async(l,p)=>{await m.post("/preflight");const r=await e("/shop/loyalty/checkin",{activity_id:l,packed_role_id:a,region:s,source:p},{headers:{"x-csrf-token":f("__csrf__")}});if(r.code!==0||!r.data)throw new Error("error_server");return r.data},[a,e,s]),isLoading:n,error:o}}const v=({ticketAmount:s,disabled:t=!1,checkedIn:e=!1,onClick:n})=>{const{t:o}=x(),a=t||e;return y("button",{disabled:a,onClick:()=>{a||n()},className:g("flex h-8 items-center rounded-md text-xs/none font-medium transition-all disabled:pointer-events-none md:text-sm/none",e?"justify-center bg-line px-3 text-text-primary":"gap-1 bg-text-content2 px-2.5 text-white md:px-3",{"cursor-not-allowed opacity-70":t}),children:[!e&&c(C,{className:"text-lg"}),c("span",{children:e?o("btn__loyalty_checked_in"):o("btn__loyalty_check_in",{coin_amount:s})})]})};export{v as C,R as L,I as i,j 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.