PageSourceSearch

https://cdn.pi.inc/web/74e1df8e51ad7e408f30b1b75b5f977481ad87ba/assets/charge-DFKB-U3V.js

js pi.inc collected 2026-10-03 21:01:57 UTC 2,533 bytes, 1 lines download raw bytes

1import{o as e,t}from"./react-COZjIs5k.js";import{t as n}from"./jsx-runtime-BcoINA9M.js";import{t as r}from"./useTranslation-jRmlomh4.js";import{i}from"./render-DthXvZMn.js";import{t as a}from"./ManageAccountModal-j6AFV5yX.js";import{t as o}from"./PlusOutlined-CfVVllfL.js";import{Cn as s,Gn as c,Hn as l,Ki as u,Mn as d,Un as f,Yn as p,_n as m,er as h,tr as g,wn as _}from"./index-DHugf5H0.js";import{n as v,t as y}from"./ModalCard-D98s_xr5.js";var b=e(t(),1),x={navbar:`_navbar_11kl3_1`,headerLeft:`_headerLeft_11kl3_16`,navBtn:`_navBtn_11kl3_21`,pageTitle:`_pageTitle_11kl3_45`,headerActions:`_headerActions_11kl3_51`,creditsEntry:`_creditsEntry_11kl3_56`,topUpEntry:`_topUpEntry_11kl3_76`,topUpIcon:`_topUpIcon_11kl3_92`,creditBolt:`_creditBolt_11kl3_106`,page:`_page_11kl3_45`},S=n(),C={token:{colorPrimary:`#2563EB`,borderRadiusLG:12}};function w(){let{t:e}=r(),t=u(),[n,i]=(0,b.useState)(!1),{userProfile:f,updateProfile:C}=c(),{data:w,run:T}=_(()=>p(),{refreshOnWindowFocus:!0,pollingInterval:6e4,pollingWhenHidden:!1});(0,b.useEffect)(()=>{C(!0)},[C]),(0,b.useEffect)(()=>{let e=()=>T();return window.addEventListener(h,e),()=>{window.removeEventListener(h,e)}},[T]);let E=Number(w?.data?.credits)||0,D=d(w?.data)||d(f);return(0,S.jsxs)(l,{children:[(0,S.jsxs)(`header`,{className:x.navbar,children:[(0,S.jsxs)(`div`,{className:x.headerLeft,children:[(0,S.jsx)(`button`,{type:`button`,className:x.navBtn,onClick:()=>t(`/ppt`),"aria-label":e(`common.back`),children:(0,S.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,S.jsx)(`path`,{d:`M19 12H5M12 19l-7-7 7-7`})})}),(0,S.jsx)(`h1`,{className:x.pageTitle,children:e(`membership.pageTitle`)})]}),(0,S.jsxs)(`div`,{className:x.headerActions,children:[(0,S.jsxs)(`button`,{type:`button`,className:x.creditsEntry,onClick:()=>i(!0),children:[(0,S.jsx)(v,{"aria-hidden":`true`}),(0,S.jsx)(`span`,{children:new Intl.NumberFormat(`en-US`).format(E)}),(0,S.jsx)(`span`,{children:e(`membership.creditsLowercase`)})]}),D&&(0,S.jsxs)(`button`,{type:`button`,className:x.topUpEntry,onClick:g,children:[(0,S.jsx)(o,{className:x.topUpIcon,"aria-hidden":`true`}),(0,S.jsx)(`span`,{children:e(`membership.topUpShort`)})]})]})]}),(0,S.jsxs)(`div`,{className:x.page,children:[(0,S.jsx)(y,{}),(0,S.jsx)(m,{}),(0,S.jsx)(s,{})]}),(0,S.jsx)(a,{open:n,onClose:()=>i(!1),canTopUp:D})]})}function T(){return(0,S.jsx)(i,{theme:C,children:(0,S.jsx)(f,{children:(0,S.jsx)(w,{})})})}var E=()=>(0,S.jsx)(T,{});export{E 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.