PageSourceSearch

https://app.jungleai.com/assets/AdminVerifyGoogleSubscription-Co9_CWsJ.js

js jungleai.com collected 2026-09-24 12:17:52 UTC 2,884 bytes, 2 lines download raw bytes

1import{r as i,j as r,V as A,B as C,d as L,J as k}from"./MarketingSiteLoadingFallback-DF4Bevx8.js";import{ah as b,ax as B,ao as S}from"./renderJungleWebApp-Bj6DEPtG.js";import{J as o}from"./JsonViewerComponent-Z02g1MZm.js";import{u as G}from"./use-toast-CNa_0lX8.js";import{C as P}from"./container-Cn3zB5hy.js";import{e as v,I as J}from"./landingHandoffUploadClaim-ZWzmhSYt.js";import{T as w,a as I,b as n,c as V,d as c}from"./tab-panels-Ph__MtRH.js";import"./frontend-release-DHVEZwfg.js";import"./hub-CmyV34zS.js";import"./index-rQLcFmgX.js";import"./track-error-fzCnz4fY.js";import"./legacy-referrer-id-B23nat6c.js";import"./main-CR0pPclt.js";import"./stripe-price-details-Q-KLtuJy.js";import"./document-upload-sentry-CwY_2GoS.js";import"./jungle_river-fkLKo0Re.js";import"./sentry-init-DYpmux4V.js";import"./client-environment-BMTHOZAb.js";import"./code-By7Q2fVH.js";function tr(){const[l,E]=i.useState(""),[t,d]=i.useState(null),[T,u]=i.useState(!1),p=G(),_=async a=>{var m,h,x,f,j,g;a.preventDefault(),u(!0),d(null);try{const e=await S.post(`${k}/users/search_google_play_by_purchase_token`,{purchase_token:l.trim()});if(((m=e==null?void 0:e.data)==null?void 0:m.status)==="success"){d(e.data.data);return}p({title:"Error",description:((h=e==null?void 0:e.data)==null?void 0:h.message)||((f=(x=e==null?void 0:e.data)==null?void 0:x.data)==null?void 0:f.errorMessage)||"An error occurred while fetching Google Subscription.",status:"error",duration:5e3,isClosable:!0})}catch(e){const s=S.isAxiosError(e)&&((j=e.response)!=null&&j.data)?e.response.data:void 0,y=(s==null?void 0:s.message)||((g=s==null?void 0:s.data)==null?void 0:g.errorMessage)||(e instanceof Error?e.message:null)||"An error occurred while fetching Google Subscription.";p({title:"Error",description:y,status:"error",duration:5e3,isClosable:!0})}finally{u(!1)}};return r.jsx(P,{maxW:"container.md",py:10,children:r.jsxs(b,{spacing:6,align:"stretch",children:[r.jsx(A,{as:"h2",size:"xl",textAlign:"center",children:"Search Google Subscription"}),r.jsx(C,{as:"form",onSubmit:_,children:r.jsxs(b,{spacing:4,align:"stretch",children:[r.jsxs(v,{isRequired:!0,children:[r.jsx(B,{children:"Purchase Token"}),r.jsx(J,{value:l,onChange:a=>E(a.target.value),placeholder:"Input Purchase Token"})]}),r.jsx(L,{type:"submit",colorScheme:"green",isLoading:T,loadingText:"Searching...",children:"Search"})]})}),r.jsxs(w,{children:[r.jsxs(I,{children:[r.jsx(n,{children:"Plan info"}),r.jsx(n,{children:"Subscription info"}),r.jsx(n,{children:"All JSON"})]}),r.jsxs(V,{children:[r.jsx(c,{children:r.jsx(o,{data:t==null?void 0:t.active_plan,isExpandedByDefault:!0})}),r.jsx(c,{children:r.jsx(o,{data:t==null?void 0:t.subscription_info_result,isExpandedByDefault:!0})}),r.jsx(c,{children:r.jsx(o,{data:t,isExpandedByDefault:!0})})]})]})]})})}export{tr as default};
2//# sourceMappingURL=AdminVerifyGoogleSubscription-Co9_CWsJ.js.map

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.