@alwith/module-auth 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunk-0gf7vwzk.js +2 -0
- package/dist/chunk-0x7ssxpn.js +2 -0
- package/dist/chunk-0ze5xzg5.js +2 -0
- package/dist/chunk-14dfwbk0.js +2 -0
- package/dist/chunk-1hxexf7n.js +6 -0
- package/dist/chunk-1mq984ah.js +2 -0
- package/dist/chunk-21abksd2.js +2 -0
- package/dist/chunk-2aq8zkwb.js +2 -0
- package/dist/chunk-2k8my1h9.js +2 -0
- package/dist/chunk-2skzpxsk.js +2 -0
- package/dist/chunk-2x5tzfgv.js +2 -0
- package/dist/chunk-37ctfsy1.js +1 -0
- package/dist/chunk-38y9615y.js +2 -0
- package/dist/chunk-3vpcfe38.js +2 -0
- package/dist/chunk-44at74bw.js +2 -0
- package/dist/chunk-4gegjx79.js +2 -0
- package/dist/chunk-4h2756zy.js +2 -0
- package/dist/chunk-4xk0z8t0.js +2 -0
- package/dist/chunk-5jz8vnk5.js +1 -0
- package/dist/chunk-5v4zm9s3.js +2 -0
- package/dist/chunk-5w675j2g.js +2 -0
- package/dist/chunk-70nb6x0r.js +2 -0
- package/dist/chunk-74hpp4me.js +2 -0
- package/dist/chunk-7xtvv8a7.js +2 -0
- package/dist/chunk-8kcmwm3k.js +2 -0
- package/dist/chunk-8w0zccsf.js +0 -0
- package/dist/chunk-8xd6kn1b.js +2 -0
- package/dist/chunk-96emfz6b.js +2 -0
- package/dist/chunk-9h4j75af.js +2 -0
- package/dist/chunk-9tramdds.js +2 -0
- package/dist/chunk-9wqfns8y.js +2 -0
- package/dist/chunk-9zhxpvxw.js +2 -0
- package/dist/chunk-afy09ajr.js +2 -0
- package/dist/chunk-b5zfgr86.js +2 -0
- package/dist/chunk-bgc7s9q5.js +2 -0
- package/dist/chunk-c9banqkx.js +2 -0
- package/dist/chunk-d13j3xks.js +2 -0
- package/dist/chunk-ezj6gpm0.js +2 -0
- package/dist/chunk-fkj53yw2.js +2 -0
- package/dist/chunk-g47n16v3.js +2 -0
- package/dist/chunk-hj17ea3j.js +2 -0
- package/dist/chunk-hk9j0kvg.js +2 -0
- package/dist/chunk-htw56xtp.js +2 -0
- package/dist/chunk-j03we9jz.js +2 -0
- package/dist/chunk-j3ez3fz2.js +2 -0
- package/dist/chunk-jf6z5rh7.js +1 -0
- package/dist/chunk-jf77909y.js +2 -0
- package/dist/chunk-jjb1befc.js +2 -0
- package/dist/chunk-khnyadsg.js +0 -0
- package/dist/chunk-kwq26qhs.js +2 -0
- package/dist/chunk-m18rjmg2.js +2 -0
- package/dist/chunk-m96z2xh6.js +2 -0
- package/dist/chunk-mandqn4e.js +2 -0
- package/dist/chunk-mdqxdcxh.js +2 -0
- package/dist/chunk-mmj02855.js +2 -0
- package/dist/chunk-mnrtrr2j.js +2 -0
- package/dist/chunk-ms8jh9xz.js +2 -0
- package/dist/chunk-my19acdk.js +2 -0
- package/dist/chunk-nbzm95mz.js +2 -0
- package/dist/chunk-npcgz51c.js +2 -0
- package/dist/chunk-p1ywvmqa.js +2 -0
- package/dist/chunk-pbwt3qj9.js +0 -0
- package/dist/chunk-pha0eyam.js +2 -0
- package/dist/chunk-q8ebj5e6.js +2 -0
- package/dist/chunk-rerywpwe.js +2 -0
- package/dist/chunk-sp65sdp3.js +1 -0
- package/dist/chunk-v9czb1e6.js +2 -0
- package/dist/chunk-vnnyvrrd.js +3 -0
- package/dist/chunk-vr4ye1z4.js +2 -0
- package/dist/chunk-vsxgxkg5.js +0 -0
- package/dist/chunk-vz0m347h.js +2 -0
- package/dist/chunk-w1z1g5c5.js +2 -0
- package/dist/chunk-w5yer870.js +2 -0
- package/dist/chunk-wbvah1ty.js +2 -0
- package/dist/chunk-wcenmfkf.js +2 -0
- package/dist/chunk-xrw9s1th.js +2 -0
- package/dist/chunk-xs0abxzp.js +2 -0
- package/dist/chunk-yjdj2mf9.js +2 -0
- package/dist/chunk-z5nmdjb9.js +2 -0
- package/dist/chunk-zhbj6cm5.js +2 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/password.js +1 -1
- package/dist/pets/assets.d.ts +8 -8
- package/dist/pets/assets.js +1 -1
- package/dist/pets/client.d.ts +2 -2
- package/dist/pets/client.js +1 -1
- package/dist/pets/core/engine.d.ts +2 -2
- package/dist/pets/core/engine.js +1 -1
- package/dist/pets/core/host.d.ts +3 -3
- package/dist/pets/core/host.js +1 -1
- package/dist/pets/core/index.d.ts +11 -11
- package/dist/pets/core/index.js +1 -1
- package/dist/pets/core/lib/account-state.d.ts +1 -1
- package/dist/pets/core/lib/account-state.js +1 -1
- package/dist/pets/core/lib/bubble-outline.js +1 -1
- package/dist/pets/core/lib/draw-result.d.ts +1 -1
- package/dist/pets/core/lib/draw-result.js +1 -1
- package/dist/pets/core/lib/endpoints.d.ts +1 -1
- package/dist/pets/core/lib/endpoints.js +1 -1
- package/dist/pets/core/lib/gacha-pools.d.ts +1 -1
- package/dist/pets/core/lib/gacha-pools.js +1 -1
- package/dist/pets/core/lib/loading-progress.js +1 -1
- package/dist/pets/core/lib/pet-animation-sync.d.ts +2 -2
- package/dist/pets/core/lib/pet-animation-sync.js +1 -1
- package/dist/pets/core/lib/pet-bubble-state.d.ts +1 -1
- package/dist/pets/core/lib/pet-bubble-state.js +1 -1
- package/dist/pets/core/lib/pet-drag.d.ts +2 -2
- package/dist/pets/core/lib/pet-drag.js +1 -1
- package/dist/pets/core/lib/pet-presentation.d.ts +3 -3
- package/dist/pets/core/lib/pet-presentation.js +1 -1
- package/dist/pets/core/lib/pet-session-context.js +1 -1
- package/dist/pets/core/lib/preload-images.js +1 -1
- package/dist/pets/core/lib/presentation-readiness.js +1 -1
- package/dist/pets/core/lib/rarity.d.ts +1 -1
- package/dist/pets/core/lib/rarity.js +1 -1
- package/dist/pets/core/lib/recharge.js +1 -1
- package/dist/pets/core/lib/reply-submission.d.ts +1 -1
- package/dist/pets/core/lib/reply-submission.js +1 -1
- package/dist/pets/core/lib/resource-sync.js +1 -1
- package/dist/pets/core/lib/runtime-types.d.ts +1 -1
- package/dist/pets/core/lib/settings.js +1 -1
- package/dist/pets/core/lib/sprite-config.d.ts +2 -2
- package/dist/pets/core/lib/sprite-config.js +1 -1
- package/dist/pets/core/lib/vibemon-resources.d.ts +1 -1
- package/dist/pets/core/lib/vibemon-resources.js +1 -1
- package/dist/pets/core/lib/view-request.js +1 -1
- package/dist/pets/core/lib/window-frame.d.ts +1 -1
- package/dist/pets/core/lib/window-frame.js +1 -1
- package/dist/pets/core/lib/window-manager.d.ts +1 -1
- package/dist/pets/core/lib/window-manager.js +1 -1
- package/dist/pets/core/session-icon.js +1 -5
- package/dist/pets/core/types.js +1 -1
- package/dist/pets/host.js +1 -1
- package/dist/pets/index.d.ts +6 -6
- package/dist/pets/index.js +1 -1
- package/dist/pets/react/assets.js +1 -1
- package/dist/pets/react/components/album-view.d.ts +1 -1
- package/dist/pets/react/components/album-view.js +1 -1
- package/dist/pets/react/components/back-to-home.js +1 -1
- package/dist/pets/react/components/equip-view.d.ts +1 -1
- package/dist/pets/react/components/equip-view.js +1 -1
- package/dist/pets/react/components/gem-balance.js +1 -1
- package/dist/pets/react/components/home-view.js +1 -1
- package/dist/pets/react/components/insufficient-points-dialog.js +1 -1
- package/dist/pets/react/components/intro-overlay.js +1 -1
- package/dist/pets/react/components/loading-view.js +1 -1
- package/dist/pets/react/components/onboarding-guide.js +1 -1
- package/dist/pets/react/components/pet-bubble-background.js +1 -1
- package/dist/pets/react/components/pet-lounge.css +1 -0
- package/dist/pets/react/components/pet-lounge.js +1 -1
- package/dist/pets/react/components/pet-mode-button.js +1 -1
- package/dist/pets/react/components/pet-window.js +1 -1
- package/dist/pets/react/components/pull-overlay.d.ts +1 -1
- package/dist/pets/react/components/pull-overlay.js +1 -1
- package/dist/pets/react/components/pull-video.js +1 -1
- package/dist/pets/react/components/pull-view.d.ts +1 -1
- package/dist/pets/react/components/pull-view.js +1 -1
- package/dist/pets/react/components/quick-reply.js +1 -2
- package/dist/pets/react/components/session-icon.d.ts +2 -2
- package/dist/pets/react/components/session-icon.js +1 -1
- package/dist/pets/react/components/single-pet-toast.js +1 -1
- package/dist/pets/react/components/sprite-renderer.d.ts +1 -1
- package/dist/pets/react/components/sprite-renderer.js +1 -1
- package/dist/pets/react/components/vibemon-empty-state.js +1 -1
- package/dist/pets/react/components/vibemon-header.js +1 -1
- package/dist/pets/react/components/vibemon-page.js +1 -1
- package/dist/pets/react/components/vibemon-scene.js +1 -1
- package/dist/pets/react/components/video-fader.js +1 -1
- package/dist/pets/react/components/wish-button.js +1 -1
- package/dist/pets/react/index.d.ts +5 -5
- package/dist/pets/react/index.js +1 -1
- package/dist/pets/react/lib/account-state.d.ts +1 -1
- package/dist/pets/react/lib/account-state.js +1 -1
- package/dist/pets/react/lib/card-image.js +1 -1
- package/dist/pets/react/lib/resource-sync.d.ts +2 -2
- package/dist/pets/react/lib/resource-sync.js +1 -1
- package/dist/pets/react/lib/season.js +1 -1
- package/dist/pets/react/lib/use-season.d.ts +1 -1
- package/dist/pets/react/lib/use-season.js +1 -1
- package/dist/pets/react/lib/utils.js +1 -1
- package/dist/pets/react/ui/button.d.ts +2 -2
- package/dist/pets/react/ui/button.js +1 -1
- package/dist/pets/react/ui/card.js +1 -1
- package/dist/pets/react/ui/input-group.d.ts +3 -3
- package/dist/pets/react/ui/input-group.js +1 -1
- package/dist/pets/react/ui/textarea.js +1 -1
- package/dist/pets/resource-package.d.ts +2 -2
- package/dist/pets/resource-package.js +1 -1
- package/dist/pets/resources.d.ts +5 -5
- package/dist/pets/resources.js +1 -1
- package/dist/pets/selection.d.ts +1 -1
- package/dist/pets/selection.js +1 -1
- package/dist/pets/sheet-layout.js +1 -1
- package/dist/pets/types.js +1 -0
- package/dist/state.d.ts +2 -2
- package/dist/state.js +1 -1
- package/dist/token-storage.d.ts +1 -1
- package/dist/token-storage.js +1 -1
- package/dist/types.js +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{e,we}from"./chunk-htw56xtp.js";import{vt}from"./chunk-pha0eyam.js";import{a}from"./chunk-yjdj2mf9.js";import{d}from"./chunk-mnrtrr2j.js";import{t}from"./chunk-5jz8vnk5.js";import{qe,De,V,Le}from"./chunk-sp65sdp3.js";import{Oe}from"./chunk-npcgz51c.js";import{le}from"./chunk-vz0m347h.js";import{cn as oe}from"cn";import{ArrowUpIcon as je,CheckIcon as We,PanelsTopLeftIcon as Ke,PencilLineIcon as Qe,XIcon as Xe}from"lucide-react";import{useCallback as ke,useEffect as se,useEffectEvent as Ye,useLayoutEffect as Ce,useRef as x,useState as w}from"react";import{useTranslation as Ze}from"react-i18next";import{jsxDEV as o}from"react/jsx-dev-runtime";var ie=18,re=ie/2,Je={color:"var(--popover-foreground)",borderRadius:16,border:"1px solid var(--border)"},$e=(v)=>v.split(/[\\/]/).findLast(Boolean)??"",en=(v,r)=>[$e(v.cwd),v.title||r].filter(Boolean).join(" / ");function Ft({maxHeight:v}){let r=e(),_=d(),Me=a(),[Ne,ae]=w(320);se(()=>{let n=!1;if(ae(320),v===void 0&&_.pet!=="")r.assets.resources.inspect(_.pet).then((l)=>{if(n)return;let s=l?.config?.bubbleAreaHeight;if(s!==void 0&&(typeof s!=="number"||!Number.isFinite(s)))throw Error("Pet bubble height must be a finite number");ae(Math.max(typeof s==="number"?s:0,320))}).catch(r.onError);return()=>{n=!0}},[r,Me,_.pet,v]);let{t:i}=Ze("common"),[u,Se]=w(()=>r.sessions.snapshot()),[k,D]=w(""),[j,H]=w(!1),[g,C]=w(null),[ce,W]=w(!1),[q,ue]=w(!1),[Be,K]=w(""),[S,Q]=w(!1),[Te,de]=w(null),pe=x(null),F=x(!1),B=x(!1),f=x(null),X=x(null),E=x(null),me=x(u),fe=x(null),be=x(null),Y=ke((n)=>K(n instanceof Error?n.message:String(n)),[]),c=u?.binding??null,p=u,M=u,T=c?.connectionEpoch??null,A=c?.sessionId??null,Ae=c?.bindingRevision??-1,Pe=u?.owner??"",Z=u?.access!=="writable"||u.executionId!==null,ze=u!==null,O=ke(()=>{if(E.current?.abort(),E.current=null,Q(!1),de(null),D(""),H(!1),C(null),W(!1),X.current=null,K(""),F.current=!1,B.current=!1,f.current!==null)cancelAnimationFrame(f.current);f.current=null},[]);se(()=>{let n=(s)=>{let I=me.current;if(I===null||s===null||!we(I.binding,s.binding))O();if(me.current=s,s!==null){if(s.state==="running")W(!0);C((N)=>N===null?N:vt(N,s.state,s.since))}Se(s)},l=r.sessions.subscribe(n);return n(r.sessions.snapshot()),document.addEventListener("vibemon:dismiss",O),()=>{if(l(),document.removeEventListener("vibemon:dismiss",O),E.current?.abort(),f.current!==null)cancelAnimationFrame(f.current)}},[r,O]);let L=()=>{if(c!==null)r.windows.call("bubble-interact",{binding:c}).catch(r.onError)},P=async(n)=>{if(E.current!==null)return;let l=new AbortController;E.current=l,L(),Q(!0),K("");try{await n(l.signal)}catch(s){if(!l.signal.aborted)Y(s)}finally{if(E.current===l)E.current=null,Q(!1)}},Re=()=>r.windows.call("focus"),He=(n)=>{if(c===null||u===null)throw Error("Pet conversation unavailable");return L(),r.windows.call("session-menu",{binding:c,candidates:u.candidates,position:n,onSelect:(l)=>P(()=>r.sessions.select(c,l))})},m=u?.state==="running",y=u?.state==="requires_action"||u?.prompt!=null,h=u?.prompt??null,Fe=async(n,l,s)=>{if(c===null)throw Error(i("petMode.openToReply"));if(await r.sessions.answer(c,crypto.randomUUID(),n.token,l),!s.aborted)de(n.token)},ge=!S&&!Z&&!m&&!y&&k.trim()!==""&&ze,he=async(n)=>{if(c===null||M===null)throw Error(i("petMode.openToReply"));let l=k.trim();X.current=M.reply?.messageId??null,C({sessionId:c.sessionId,text:l,startedAt:Date.now(),accepted:!1,sawRunning:!1,completed:!1});try{if(await r.sessions.send(c,crypto.randomUUID(),l),n.aborted)return;C((s)=>s===null?null:{...s,accepted:!0}),D("")}catch(s){if(!n.aborted)C(null);throw s}},J=()=>{if(c!==null)P(async(n)=>{await r.sessions.openChat(c),n.throwIfAborted()})},z=Be||u?.error,ee=g?.completed||ce&&(p?.state==="idle"||p?.state==="done"),G=M!==null&&!m&&!y&&!z&&ee&&M.reply?.messageId!==X.current?M.reply:null,ne=z?null:y?i("runState.requires_action"):m?i("petMode.thinking"):g?.completed?null:g?.accepted?i("petMode.sent"):null,xe=g!==null,R=xe||ce,te=M?.userMessage??null,ve=ee&&!m?null:(m||R)&&te!==null&&(g===null||te.timestamp>=g.startedAt)?te.text:xe?g.text:null,U=!R&&!m&&!y,b=R&&ee&&!m&&!y&&!z,Ge=G?.messageId,Ue=G?.text,ye=c!==null,_e=Ye(()=>{if(c!==null)r.windows.call("dismiss-result",{binding:c}).catch(r.onError)});se(()=>{if(!b||q||!ye)return;let n=setTimeout(_e,1e4);return()=>clearTimeout(n)},[b,q,ye,T,A,Ae,Ge,Ue,r]);let Ee=y?320:b?260:m?240:320;Ce(()=>{let n=fe.current;if(n===null)return;let l=!1,s=()=>{let N=Math.ceil(n.getBoundingClientRect().height)+6;if(!l&&N>=32)r.windows.call("bubble-size",{width:Ee+re*2,height:N}).catch(r.onError)},I=new ResizeObserver(s);return I.observe(n),s(),()=>{l=!0,I.disconnect()}},[r,Ee,A]);let Ie=p?i(p.windowLabel==="main"?"petMode.openMain":"petMode.openChat"):i("petMode.openFull");Ce(()=>{if(k===""){H(!1);return}if(j||R||m)return;if(k.includes(`
|
|
2
|
+
`)){H(!0);return}let n=pe.current;if(n===null)return;let l=()=>{let I=Math.ceil(Number.parseFloat(getComputedStyle(n).minHeight));if(n.scrollHeight>I)H(!0)};l();let s=new ResizeObserver(l);return s.observe(n),()=>s.disconnect()},[k,j,R,m]);let Ve=U?qe:"div";return o("div",{ref:fe,"data-pet-bubble":!0,className:"relative pb-1.5",style:{paddingTop:re,paddingInline:re},onPointerEnter:()=>ue(!0),onPointerLeave:()=>ue(!1),children:[A!==null&&o(Oe,{cardRef:be},void 0,!1,void 0,this),A!==null&&o("div",{ref:be,"data-pet-bubble-card":!0,role:"presentation",onClick:(n)=>{if(b&&n.target.closest("button")===null)J()},style:{...Je,position:"relative",background:"transparent",borderColor:"transparent",boxShadow:"none",animation:"none",maxHeight:(v??Ne)-6},className:oe("overflow-y-auto p-2",b?"grid cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1 px-3":m?"flex flex-col gap-1 py-1.5":"flex flex-col gap-2"),children:[ve&&o("p",{className:"line-clamp-2 text-sm break-words whitespace-pre-wrap",children:ve},void 0,!1,void 0,this),G!==null&&o("p",{className:"line-clamp-2 text-sm break-words whitespace-pre-wrap",children:G.text},void 0,!1,void 0,this),z&&o("p",{role:"alert",className:"text-muted-foreground text-xs",children:z},void 0,!1,void 0,this),h!==null&&o("section",{"aria-label":i(h.kind==="permission"?"petMode.permission":"petMode.question"),className:"flex min-w-0 flex-col gap-2",children:[o("p",{className:"text-sm break-words whitespace-pre-wrap",children:h.title},void 0,!1,void 0,this),h.detail!==""&&o("pre",{className:"text-muted-foreground max-h-24 overflow-auto text-xs break-words whitespace-pre-wrap",children:h.detail},void 0,!1,void 0,this),h.options.length>0&&!Z?o("div",{className:"flex flex-wrap gap-1",children:h.options.map((n)=>o(t,{size:"xs",className:"h-auto min-h-6 max-w-full whitespace-normal",disabled:S||Te===h.token,onClick:()=>void P((l)=>Fe(h,n.id,l)),children:n.label},n.id,!1,void 0,this))},void 0,!1,void 0,this):o(t,{size:"xs",onClick:J,children:i("petMode.openToAnswer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o(Ve,{className:b?"col-start-1 row-start-2":void 0,children:[U&&o(Le,{ref:pe,rows:1,className:"field-sizing-fixed max-h-[calc(3lh+1rem)] min-h-[calc(1lh+1rem)] min-w-0 overflow-y-auto",style:{height:j?"calc(3lh + 1rem)":"calc(1lh + 1rem)"},value:k,placeholder:i("petMode.placeholder"),"aria-label":i("petMode.placeholder"),disabled:S||Z||!Pe||T===null,onChange:(n)=>{L(),D(n.target.value)},onFocus:()=>{L(),Re().catch(Y)},onCompositionStart:()=>{if(f.current!==null)cancelAnimationFrame(f.current);f.current=null,B.current=!1,F.current=!0},onCompositionEnd:()=>{if(F.current=!1,B.current=!0,f.current!==null)cancelAnimationFrame(f.current);f.current=requestAnimationFrame(()=>{B.current=!1,f.current=null})},onKeyDown:(n)=>{if(n.key!=="Enter"||n.shiftKey||F.current||n.nativeEvent.isComposing||B.current||n.nativeEvent.keyCode===229)return;if(n.preventDefault(),ge)P(he)}},void 0,!1,void 0,this),o(De,{align:"block-end",className:oe("shrink-0",(b||m)&&"gap-1 p-0"),children:[o("div",{className:oe("flex min-w-0 items-center gap-2",!b&&"flex-1"),children:[ne&&o("p",{role:"status",className:"text-muted-foreground text-xs",children:m&&!y?o("span",{className:"shimmer",children:ne},void 0,!1,void 0,this):ne},void 0,!1,void 0,this),U?o(V,{className:"min-w-0 flex-1 justify-start",title:i("petMode.chooseSession"),"aria-label":i("petMode.chooseSession"),"aria-haspopup":"menu",disabled:S||T===null,onClick:(n)=>{let l=n.currentTarget.getBoundingClientRect();He({x:l.left,y:l.bottom}).catch(Y)},children:[p&&o("span",{role:"img","aria-label":i(p.windowLabel==="main"?"navigation.mainWindow":"navigation.chatWindow"),"data-icon":"inline-start",className:"inline-flex shrink-0",children:o(le,{name:p.windowLabel,icons:r.sessionIcons},void 0,!1,void 0,this)},void 0,!1,void 0,this),o("span",{className:"min-w-0 flex-1 truncate text-start",title:p?[p.cwd,p.title||i("collection.defaultChatTitle")].filter(Boolean).join(" / "):"",children:p?en(p,i("collection.defaultChatTitle")):""},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!m&&o(V,{size:"icon-xs",className:b?"size-5":void 0,title:i("petMode.continue"),"aria-label":i("petMode.continue"),disabled:S||y||g!==null&&!g.accepted,onClick:()=>{L(),C(null),W(!1)},children:o(Qe,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&o(V,{size:"icon-xs",variant:"default",className:"size-5 shrink-0",title:i("petMode.send"),"aria-label":i("petMode.send"),disabled:!ge,onClick:()=>void P(he),children:o(je,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this),o(V,{size:"icon-xs",className:"size-5 shrink-0",title:Ie,"aria-label":Ie,disabled:T===null||!p,onClick:J,children:p&&r.sessionIcons?o(le,{name:p.windowLabel,icons:r.sessionIcons},void 0,!1,void 0,this):o(Ke,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b&&o("span",{role:"img","aria-label":i("petMode.completed"),title:i("petMode.completed"),className:"col-start-2 row-span-2 row-start-1 inline-flex size-7 items-center justify-center rounded-full bg-[var(--vibemon-completed-background)] text-[var(--vibemon-completed-foreground)]",children:o(We,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&T!==null&&A!==null&&o(t,{variant:"outline",size:"icon-xs",className:"text-muted-foreground absolute top-1 left-1 cursor-pointer rounded-full",style:{width:ie,height:ie},title:i("close"),"aria-label":i("close"),onClick:()=>void r.windows.call("bubble-close").catch(r.onError),children:o(Xe,{className:"size-2.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}
|
|
3
|
+
export{Ft};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{nt}from"./chunk-2k8my1h9.js";import{t}from"./chunk-5jz8vnk5.js";import{AnimatePresence as r,motion as l,useReducedMotion as u}from"motion/react";import{useEffect as c}from"react";import{jsxDEV as e}from"react/jsx-dev-runtime";var Xt="This is your only pet. It’s equipped by default and can’t be unequipped ~",Kt=3000;function He({requestId:o,onClose:i}){let n=u(),a=o>0;return c(()=>{if(o===0)return;let s=window.setTimeout(i,Kt);return()=>window.clearTimeout(s)},[o,i]),e("div",{className:"pointer-events-none absolute bottom-[7.067%] left-1/2 z-30 h-[4.583cqw] w-[52.604cqw] -translate-x-1/2",children:e(r,{initial:!1,children:a&&e(l.div,{"data-testid":"single-pet-toast",className:"pointer-events-auto relative size-full",initial:{opacity:0,y:n?0:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:n?0:"100%"},transition:n?{duration:0}:{duration:0.3,ease:[0.16,1,0.3,1]},children:[e("img",{src:nt,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full max-w-none select-none"},void 0,!1,void 0,this),e("span",{role:"status",className:"sr-only",children:Xt},void 0,!1,void 0,this),e(t,{"aria-label":"Close",onClick:i,className:"absolute top-1/4 right-[5.743%] aspect-square h-1/2 rounded-full border-0 bg-transparent p-0 shadow-none transition-none hover:bg-white/10 focus-visible:border-white focus-visible:ring-white/70 active:translate-y-0",children:e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}
|
|
2
|
+
export{Xt,Kt,He};
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S}from"./chunk-1hxexf7n.js";import{jsxDEV as e}from"react/jsx-dev-runtime";function le({name:n,icons:s}){return e("span",{"aria-hidden":!0,className:"inline-flex size-[18px] items-center justify-center",dangerouslySetInnerHTML:{__html:S(n,s)}},void 0,!1,void 0,this)}
|
|
2
|
+
export{le};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e}from"./chunk-htw56xtp.js";var n={"vibemon.accounts":{},"vibemon.introSeen":{},"vibemon.albumHasUnseen":{},"vibemon.onboardingStep":{}},s=new Set,r=0;async function w(){let t=++r,o=e(),a=await Promise.all(Object.keys(n).map(async(i)=>[i,await o.storage.get(i)??{}]));if(r!==t)return;n=Object.fromEntries(a);for(let i of s)i()}async function Yt(){let t=e().subscribeStorage(()=>{w().catch(e().onError)});return await w(),()=>{r++,t()}}var Ut=(t)=>(s.add(t),()=>{s.delete(t)}),u=(t)=>n[t],be=(t)=>Promise.resolve(n[t]);function Ct(t,o){r++,n={...n,[t]:o};for(let a of s)a()}async function A(t,o){await e().storage.set(t,o),await w()}
|
|
2
|
+
export{w,Yt,Ut,u,be,Ct,A};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxDEV as e}from"react/jsx-dev-runtime";function p({backdrop:t,children:i}){return e("div",{className:"[container-type:size] relative h-full w-full overflow-hidden bg-[#0E0750]",children:[t,e("div",{className:"absolute inset-0 flex items-center justify-center",children:e("div",{"data-testid":"vibemon-stage",className:"[container-type:size] relative",style:{width:"min(100cqw, 160cqh)",aspectRatio:"8 / 5"},children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}
|
|
2
|
+
export{p};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{J}from"./chunk-2x5tzfgv.js";import{Ke,Je,et}from"./chunk-2k8my1h9.js";import{i}from"./chunk-2skzpxsk.js";import{o}from"./chunk-xrw9s1th.js";import{t}from"./chunk-5jz8vnk5.js";import{B}from"./chunk-0x7ssxpn.js";import{N}from"./chunk-zhbj6cm5.js";import{p}from"./chunk-w5yer870.js";import{Loader2 as k}from"lucide-react";import{useMemo as x,useState as V}from"react";import{jsxDEV as e,Fragment as d}from"react/jsx-dev-runtime";var c=8;function h({direction:r,disabled:a,onClick:n}){let s=r==="previous";return e(t,{"aria-label":s?"Previous album page":"Next album page",disabled:a,onClick:n,className:o("absolute top-[55.870%] z-20 size-[2.917cqw] bg-transparent p-0 shadow-none transition-none hover:bg-transparent disabled:opacity-100",s?"left-[20.521%]":"left-[76.563%]"),children:e("img",{src:Ke,alt:"",className:o("h-[63.9%] w-[46.2%] max-w-none select-none",s&&"-scale-x-100",a&&"opacity-50")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function M(){return e("div",{className:"relative h-full w-full",children:[e("svg",{viewBox:"0 0 200 288",preserveAspectRatio:"none","aria-hidden":!0,className:"absolute inset-0 h-full w-full opacity-25",children:e("rect",{x:"6.16",y:"7.76",width:"187.69",height:"272.47",rx:"14",fill:"none",stroke:"#8687CE",strokeWidth:"5",strokeDasharray:"25 25"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"67",height:"80",viewBox:"0 0 67 80",fill:"none",className:"absolute top-[50%] left-[50%] h-[27.5%] w-[33.1%] max-w-none translate-x-[-50%] translate-y-[-50%] select-none",children:e("path",{d:"M46.2449 32.0803V22.6882C46.2449 15.4054 40.3462 9.50669 33.0634 9.50669C25.7807 9.50669 19.882 15.415 19.882 22.6977V32.0899H46.2449V32.0803ZM9.69759 32.1853L9.68804 31.8894V21.5714C9.68804 15.854 11.9597 10.3657 16.0067 6.3187C20.0538 2.27168 25.5325 0 31.2595 0H34.877C46.789 0 56.4388 9.65941 56.4388 21.5619V32.1853C61.9939 32.9584 66.1269 37.7118 66.1269 43.3242V67.9786C66.1269 74.1923 61.0967 79.2224 54.883 79.2224H11.2439C5.03015 79.2224 0 74.1923 0 67.9786V43.3337C0 37.7213 4.13293 32.968 9.69759 32.1853ZM30.4672 57.5747V64.9242C30.4672 66.3559 31.6317 67.5204 33.0634 67.5204C34.4952 67.5204 35.6596 66.3559 35.6596 64.9242V57.5747C38.8572 56.3243 40.7184 52.974 40.0789 49.6047C39.4394 46.2258 36.4996 43.7823 33.0634 43.7823C29.6273 43.7823 26.6779 46.2258 26.048 49.6047C25.4084 52.974 27.2697 56.3243 30.4672 57.5747Z",fill:"#8687CE",fillOpacity:"0.25"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function A({cards:r}){return e(d,{children:[e("img",{src:Je,alt:"","aria-hidden":!0,className:"pointer-events-none absolute top-[14.158%] left-[14.583%] h-[79.313%] w-[74.067%] max-w-none select-none",style:{maskImage:"linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, #fff 25.66%, #fff 93.71%, rgba(255,255,255,0.2) 100%)",WebkitMaskImage:"linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, #fff 25.66%, #fff 93.71%, rgba(255,255,255,0.2) 100%)"}},void 0,!1,void 0,this),e("div",{"data-testid":"album-book",className:"absolute top-[32.917%] left-[25.729%] grid h-[50.574%] w-[48.542%] grid-cols-4 grid-rows-2 gap-x-[4.721%] gap-y-[4.943%]",children:r.map((a,n)=>e("div",{className:"relative",children:a?e("img",{src:i(a.gacha_url??a.cover_url),alt:`${a.name} ${a.rarity_name} card`,className:"h-full w-full object-contain drop-shadow-[0_8px_9px_rgba(15,8,64,0.24)] select-none"},void 0,!1,void 0,this):e(M,{},void 0,!1,void 0,this)},a?`${a.vibemon_uuid}-${n}`:`locked-${n}`,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $e({onBack:r,onWish:a,onEquip:n,ownedCards:s,ownedLoaded:v,availablePoints:w,pointsLoaded:C}){let[y,f]=V(0),u=x(()=>J(s).flatMap((g)=>Array.from({length:g.duplicate_count},()=>g)),[s]),m=Math.ceil(u.length/c),l=m===0?0:Math.min(y,m-1),b=[...u.slice(l*c,(l+1)*c)];while(b.length<c)b.push(null);return e(p,{backdrop:e(d,{children:[e("img",{src:et,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 h-full w-full object-cover select-none"},void 0,!1,void 0,this),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-[#422053]/20"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[e(N,{onBack:r,onWish:a,sectionAction:{kind:"equip",onClick:n},availablePoints:w,pointsLoaded:C},void 0,!1,void 0,this),!v?e("div",{"data-testid":"vibemon-owned-loading",className:"absolute inset-0 flex items-center justify-center text-[#DCC9FF]",children:e(k,{className:"size-8 animate-spin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):u.length===0?e(B,{onWish:a},void 0,!1,void 0,this):e(d,{children:[e(A,{cards:b},void 0,!1,void 0,this),m>1&&e(d,{children:[e(h,{direction:"previous",disabled:l===0,onClick:()=>f(l-1)},void 0,!1,void 0,this),e(h,{direction:"next",disabled:l>=m-1,onClick:()=>f(l+1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}
|
|
2
|
+
export{$e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{me,Pt,St}from"./chunk-1mq984ah.js";import{I}from"./chunk-14dfwbk0.js";import{c,j,W,f,g,Z,l}from"./chunk-2k8my1h9.js";import{o}from"./chunk-xrw9s1th.js";import{t}from"./chunk-5jz8vnk5.js";import{C}from"./chunk-0gf7vwzk.js";import{U}from"./chunk-mandqn4e.js";import{Fe}from"./chunk-z5nmdjb9.js";import{k,Ne}from"./chunk-m18rjmg2.js";import{motion as H}from"motion/react";import{useEffect as R,useMemo as K,useState as y}from"react";import{jsxDEV as e}from"react/jsx-dev-runtime";var X="linear-gradient(180deg, #0C0C77 1.7234%, #171B6A 25.125%, #A67FFB 97.583%, #957FFB 116.28%)",Y=250,J={1:{default:"bg-[#82D6EB]",hover:"bg-[#A3E1F0]",press:"bg-[#5AC8E3]"},10:{default:"bg-[#FFD932]",hover:"bg-[#FFE46B]",press:"bg-[#FACE0B]"}};function V({drawCount:a,price:n,onClick:m,disabled:d,label:p}){let h=a===1,[P,b]=y(!1),[w,s]=y(!1),i=w?"press":P?"hover":"default",v=h?`X ${n}`:`X ${n}`;return e(t,{className:"relative h-[8.5cqh] w-full overflow-visible rounded-none border-0 bg-transparent p-0 shadow-none transition-none hover:bg-transparent active:translate-y-0 disabled:opacity-45","aria-label":p,disabled:d,"data-visual-state":i,onPointerEnter:()=>b(!0),onPointerLeave:()=>{b(!1),s(!1)},onPointerDown:()=>s(!0),onPointerUp:()=>s(!1),onPointerCancel:()=>s(!1),onKeyDown:(x)=>{if(x.key===" "||x.key==="Enter")s(!0)},onKeyUp:(x)=>{if(x.key===" "||x.key==="Enter")s(!1)},onBlur:()=>{b(!1),s(!1)},onClick:m,children:[e("span",{className:"absolute top-[2.092cqh] left-0 h-[6.408cqh] w-full overflow-hidden rounded-[6.25cqw] drop-shadow-[0_0.417cqh_0_rgba(0,0,0,0.51)]",children:[e("span",{"data-slot":"pull-button-surface",className:o("absolute inset-0",J[a][i])},void 0,!1,void 0,this),e("img",{src:c,alt:"",className:o("pointer-events-none absolute top-[-560.71%] left-[-20.34%] h-[741.76%] w-[160.31%] max-w-none select-none",h?"opacity-68 mix-blend-soft-light":"opacity-18 mix-blend-color-burn")},void 0,!1,void 0,this),e("span",{className:"absolute inset-0 shadow-[inset_0_0.2cqh_0.07cqh_0_white]"},void 0,!1,void 0,this),e("span",{"data-slot":"pull-button-label",className:"absolute inset-0 flex items-center justify-center text-[1.458cqw] leading-normal font-normal text-[#403C80]",style:{fontFamily:'"Grow Year", system-ui, sans-serif',WebkitTextStroke:"0.25cqw white",paintOrder:"stroke fill"},children:["PULL X",a]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e("span",{className:"absolute top-0 left-1/2 flex h-[4.422cqh] -translate-x-1/2 items-center whitespace-nowrap",children:[e("span",{className:"me-[-0.375cqw] flex size-[2.763cqw] shrink-0 items-center justify-center",children:e("img",{"data-testid":"pull-button-gem",src:j,alt:"",className:"size-[1.682cqw] max-w-none -scale-y-100 rotate-[21.86deg] select-none"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e("span",{"data-slot":"pull-button-price","data-text":v,className:"relative scale-y-98 -skew-x-10 text-[1cqw] leading-normal font-semibold tracking-[0.1cqw] text-transparent before:absolute before:inset-0 before:text-white before:content-[attr(data-text)] before:[-webkit-text-stroke:0.25cqw_#FFFFFF] after:absolute after:inset-0 after:bg-gradient-to-b after:from-[#9645CF] after:to-[#878FFF] after:bg-clip-text after:text-transparent after:content-[attr(data-text)]",style:{fontFamily:'"PingFang SC", sans-serif'},children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Q=["unselected","hover","selected"],ee=(a,n)=>n==="selected"?a.sidebarSelectedImageUrl:n==="hover"?a.sidebarHoverImageUrl:a.sidebarUnselectedImageUrl;function te({pool:a,selected:n,disabled:m,onSelect:d}){let[p,h]=y(!1),[P,b]=y(!1),w=n?"selected":p||P?"hover":"unselected";return e(t,{id:`pool-tab-${a.poolUuid}`,role:"tab","aria-selected":n,"aria-controls":"gacha-pool-banner","aria-label":a.name,disabled:m,onClick:d,onPointerEnter:()=>h(!0),onPointerLeave:()=>h(!1),onFocus:()=>b(!0),onBlur:()=>b(!1),"data-visual-state":w,className:o("relative h-[14.167cqh] w-full shrink-0 justify-start overflow-visible rounded-none border-0 bg-transparent p-0 shadow-none transition-none hover:bg-transparent active:translate-y-0 disabled:opacity-100",n?"z-20":"z-0"),children:Q.map((s)=>e("img",{src:ee(a,s)||l,alt:"","aria-hidden":!0,className:o("pointer-events-none absolute bottom-0 left-0 h-auto w-full max-w-none select-none",w===s?"opacity-100":"opacity-0")},s,!1,void 0,this))},void 0,!1,void 0,this)}function ae(a,n){if(n==="UPCOMING"){if(a.startsAt===null)throw Error(`Upcoming gacha pool ${a.poolUuid} is missing startsAt`);return{label:"Starts in",at:a.startsAt}}if(n==="ACTIVE"&&a.endsAt!==null)return{label:"Time remaining",at:a.endsAt};return null}function oe({pool:a,status:n,nowMs:m}){let d=ae(a,n);if(d===null)return null;let p=Math.floor((Date.parse(d.at)-m)/1000),h=Math.floor(p/86400),P=Math.floor(p%86400/3600),b=Math.floor(p%3600/60),w=p%60,s=[{value:h,unit:"d"},{value:P,unit:"h"},{value:b,unit:"m"},{value:w,unit:"s"}];return e("div",{role:"timer","aria-label":d.label,className:"absolute bottom-[6.8%] left-[4.4%] flex min-w-[28%] items-center gap-[1.5%] rounded-lg bg-black/24 px-[1.2%] py-[0.8%] text-white backdrop-blur-sm",children:s.map(({value:i,unit:v})=>e("span",{className:"flex items-center gap-[0.35em]",children:[e("span",{className:"min-w-[2.1em] rounded-md bg-black/28 px-[0.35em] py-[0.25em] text-center text-[clamp(9px,0.82cqw,16px)] leading-none font-bold tabular-nums",children:String(i).padStart(2,"0")},void 0,!1,void 0,this),e("span",{className:"text-[clamp(8px,0.58cqw,12px)] font-medium text-white/75",children:v},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)}function le(a,n){let m=a.find((d)=>d.poolUuid===n);if(m!==void 0)return m;return _(a)}function _(a){let n=a[0];if(n===void 0)throw Error("Gacha pool catalog has no visible pools");return n}function Ve({onBack:a,onAlbum:n,onEquip:m,isFirstDraw:d,onSingleDraw:p,onMultiDraw:h,drawDisabled:P,albumHasUnseen:b,availablePoints:w,pointsLoaded:s,guideActive:i,poolCatalog:v}){let[x,N]=y(!1),[D,z]=y(_(v.pools).poolUuid),[S,A]=y(Date.now);R(()=>{let u=window.setInterval(()=>A(Date.now()),1000);return()=>window.clearInterval(u)},[]);let F=K(()=>St(v.pools,S),[v.pools,S]),B=Pt(F),r=i?B:le(F,D),G=me(r,S),E=d&&r.poolUuid===B.poolUuid,M=r.singlePrice,T=P||!r.canDraw||G!=="ACTIVE",O=()=>{if(!E&&s&&w<M){N(!0);return}p(r.poolUuid)},L=()=>{if(s&&w<r.multiPrice){N(!0);return}h(r.poolUuid)};return e("div",{className:"[container-type:size] relative h-full w-full overflow-hidden",style:{background:X},children:[e("div",{className:"absolute inset-0 flex items-center justify-center",children:e("div",{"data-testid":"vibemon-pull-stage",className:"[container-type:size] relative",style:{width:"min(100cqw, 160cqh)",aspectRatio:"8 / 5"},children:[e("div",{"aria-hidden":!0,className:"pointer-events-none absolute top-[-51.213%] left-[48.958%] h-[172.145%] w-[143.454%] -translate-x-1/2",children:[e("img",{"data-testid":"vibemon-pool-page-background",src:W,alt:"",className:"absolute inset-0 h-full w-full max-w-none object-cover opacity-60 mix-blend-color-burn select-none"},void 0,!1,void 0,this),e("div",{className:"absolute inset-0 bg-black/40"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e(C,{onClick:a,disabled:i,label:"Back",iconSrc:f,className:"absolute top-[5%] left-[6.25%] z-10 gap-[0.729cqw] text-[#BCACE0] hover:text-[#BCACE0] [&_img]:size-[3.021cqw] [&_span]:text-[1.667cqw]"},void 0,!1,void 0,this),e("div",{className:"absolute top-[5%] right-[6.25%] z-10 flex h-[5.5cqh] items-center gap-[2.292cqw]",children:[e(t,{"aria-label":"Vibémon",disabled:i,onClick:m,className:"size-[3.333cqw] bg-transparent p-0 hover:bg-transparent",children:e("img",{src:g,alt:"",className:"size-full object-contain"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e(t,{"aria-label":"Album",disabled:i,onClick:n,className:"relative size-[3.333cqw] bg-transparent p-0 hover:bg-transparent",children:[e("img",{src:Z,alt:"",className:"size-full object-contain"},void 0,!1,void 0,this),b&&e("span",{className:"absolute top-0 right-0 size-2 rounded-full bg-[#F74640]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e(U,{amount:w,onAdd:I,loaded:s,disabled:i,className:"h-[5.5cqh] min-w-0 rounded-[7.813cqw] py-0 pr-[0.417cqw] pl-[0.729cqw] [&_[data-slot=gem-balance-add-icon]]:size-[2.5cqw] [&>[data-slot=gem-balance-add]]:ms-[1.094cqw] [&>[data-slot=gem-balance-add]]:size-[2.5cqw] [&>[data-slot=gem-balance-amount]]:text-[1.563cqw] [&>[data-slot=gem-balance-icon]]:me-[0.156cqw] [&>[data-slot=gem-balance-icon]]:size-[2.5cqw]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e("div",{role:"tablist","aria-label":"Card pools",className:"absolute top-[19.816%] left-[6.25%] flex w-[12.5%] flex-col",children:F.map((u)=>e(te,{pool:u,selected:u.poolUuid===r.poolUuid,disabled:i||P,onSelect:()=>z(u.poolUuid)},u.poolUuid,!1,void 0,this))},void 0,!1,void 0,this),e("div",{id:"gacha-pool-banner",role:"tabpanel","aria-labelledby":`pool-tab-${r.poolUuid}`,className:"absolute top-[16.667%] left-[14.583%] z-10 h-[66.667%] w-[79.167%] overflow-hidden rounded-[1.042cqw]",children:[F.map((u)=>{let q=u.poolUuid===r.poolUuid;return e(H.img,{src:u.poolCardImageUrl||l,alt:q?`${u.name} pool`:"","aria-hidden":!q,className:"absolute inset-0 h-full w-full object-cover select-none",style:{zIndex:q?1:0},initial:!1,animate:{opacity:q?1:0},transition:{duration:Y/1000,ease:q?"easeOut":"easeIn"}},u.poolUuid,!1,void 0,this)}),e(oe,{pool:r,status:G,nowMs:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e("div",{className:"absolute top-[86.098%] left-[54.427%] flex gap-[2.24cqw]",children:[e("div",{className:o("w-[18.542cqw]",i&&"relative z-30"),children:e(V,{drawCount:1,price:M,label:"Pull once",disabled:T,onClick:O},void 0,!1,void 0,this)},void 0,!1,void 0,this),e("div",{className:"w-[18.542cqw]",children:e(V,{drawCount:10,price:r.multiPrice,label:"Pull ten times",disabled:i||E||T,onClick:L},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i&&e(k,{},void 0,!1,void 0,this),i&&e(Ne,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),x&&e(Fe,{onClose:()=>N(!1),onProceed:()=>{I(),N(!1)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}
|
|
2
|
+
export{Ve};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,n}from"./chunk-rerywpwe.js";import{ye}from"./chunk-afy09ajr.js";import{y}from"./chunk-mmj02855.js";import{xe}from"./chunk-21abksd2.js";import{Ae}from"./chunk-9tramdds.js";function gn(s){let f=ye(s),l=xe(s),V=new Map,g=new Map,a=null,w=!1,b=0,d=null,v="",P=!1,S=0,p=new Set;function m(){S++;for(let e of p)e()}function u(){if(P)throw Error("Vibemon asset service disposed");let e=s.account(),t=e===null?"":`${r(e)}/${e.revision}`;if(v!==t)v=t,a=null,w=!1,b++,d=null,l.cancel();return e}async function E(e){let t=u(),i=e===void 0?++b:b,o=await f.getMyVibemons(e);if(t===null)throw Error("Sign in to use Vibemon");if(n(s,t),u(),e===void 0&&i===b)a=o,w=!0,await s.storage.set(`vibemon.owned.${r(t)}`,o),n(s,t),m();return Promise.all(o.map(async(c)=>({...c,...await M({...c,uuid:c.vibemon_uuid})})))}async function A(){let e=u();if(e===null)return null;if(w)return a;let t=await s.storage.get(`vibemon.owned.${r(e)}`);return n(s,e),a=t??null,m(),a}async function D(){let e=u(),t=await f.getVibemonCatalog();if(e===null)throw Error("Sign in to use Vibemon");return n(s,e),u(),d=t,m(),t}async function R(e){let t=(V.get(e)??0)+1;V.set(e,t);let i=await f.getVibemonDetail(e);if(V.get(e)!==t)throw Error("Vibemon detail request superseded");if(i.uuid!==e)throw Error("Vibemon detail ID mismatch");return i}async function I(e){let t=u();if(t===null)throw Error("Sign in to use Vibemon");try{return await l.ensure(e)}catch(i){n(s,t),s.onResourceError?.(i,e.uuid);let o=await l.cached(e.uuid);if(o!==null)return o;throw i}}async function M(e){if((e.resource_package_format??0)===0)return{};let t=u();if(t===null)throw Error("Sign in to use Vibemon");try{let i=await I(e),o=await l.visuals(i);return n(s,t),Object.fromEntries(y.filter((c)=>(c in o)).map((c)=>[`${c}_url`,o[c]??null]))}catch{return n(s,t),Object.fromEntries(y.map((i)=>[`${i}_url`,null]))}}async function h(e){let t=u();if(t===null)throw Error("Sign in to use Vibemon");try{let i=await R(e);return await M(i)}catch(i){n(s,t),s.onResourceError?.(i,e);let o=await l.inspect(e);if(o===null)return{};let c=await l.visuals(o);return Object.fromEntries(Object.entries(c).map(([q,C])=>[`${q}_url`,C]))}}function O(e,t){u();let i=JSON.stringify([v,e,t??null]),o=g.get(i);if(o)return o;let c=h(e).finally(()=>{if(g.get(i)===c)g.delete(i)});return g.set(i,c),c}let _=Ae(s,async(e)=>{if(u(),w&&a?.some((t)=>t.vibemon_uuid===e))return a;return E()});return{...f,getMyVibemons:E,getVibemonCatalog:D,getVibemonDetail:R,resolveImages:O,resources:l,restoreOwned:A,get revision(){return S},snapshot:()=>({account:u(),owned:a,catalog:d}),invalidate(){u(),m()},subscribe(e){return p.add(e),()=>{p.delete(e)}},selection:{get:_.get,async select(e){u(),await _.select(e),m()}},async ensureResource(e){let t=u();if(t===null)throw Error("Sign in to use Vibemon");if(!(a??await E()).some((o)=>o.vibemon_uuid===e))throw Error("This account does not own this Vibemon");try{let o=await R(e);return n(s,t),await I(o)}catch(o){n(s,t);let c=await l.cached(e);if(c!==null)return s.onResourceError?.(o,e),c;throw o}},dispose(){P=!0,a=null,d=null,l.dispose(),m(),p.clear()}}}
|
|
2
|
+
export{gn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,n}from"./chunk-rerywpwe.js";import{e}from"./chunk-htw56xtp.js";import{w,u,Ct,A}from"./chunk-w1z1g5c5.js";var s={pet:"",enabled:!1,position:null};function a(){let t=e().account();return t===null?null:r(t)}function Q(){let t=a();return t===null?s:u("vibemon.accounts")[t]??s}var X=()=>Promise.try(()=>Q());async function h(t){let o=e(),l=o.account(),c=a();if(l===null||c===null)throw Error("Sign in to use Vibemon");if(t.pet!==void 0){let i=u("vibemon.accounts");Ct("vibemon.accounts",{...i,[c]:{...i[c]??s,pet:t.pet}});try{await o.assets.selection.select(t.pet||null)}finally{await w()}}n(o,l);let{enabled:p,position:f}=t;if(p!==void 0||f!==void 0){let i=u("vibemon.accounts");await A("vibemon.accounts",{...i,[c]:{...i[c]??s,...p!==void 0?{enabled:p}:{},...f!==void 0?{position:f}:{}}})}n(o,l)}async function de(t,o){if(o||Q().pet==="")await h({pet:t})}
|
|
2
|
+
export{a,Q,X,h,de};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ze,ct,ut}from"./chunk-2k8my1h9.js";import{t}from"./chunk-5jz8vnk5.js";import{useState as a}from"react";import{jsxDEV as o}from"react/jsx-dev-runtime";function Fe({onClose:n,onProceed:s}){return o("div",{className:"absolute inset-0 z-50 flex cursor-default items-center justify-center bg-black/80 p-0",onClick:(e)=>{if(e.target===e.currentTarget)n()},onKeyDown:(e)=>{if(e.key==="Escape")n()},children:o("div",{className:"relative",children:[o("img",{src:ct,alt:"",className:"pointer-events-none max-w-none select-none",style:{width:326.24,height:201.03}},void 0,!1,void 0,this),o(t,{variant:"ghost",className:"absolute h-auto p-0 hover:bg-transparent",style:{top:-7.07,right:-11.3},onClick:n,children:o("img",{src:ut,alt:"",className:"max-w-none select-none",style:{width:26,height:26}},void 0,!1,void 0,this)},void 0,!1,void 0,this),o(i,{onClick:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function i({onClick:n}){let[s,e]=a("default");return o(t,{variant:"ghost",className:"absolute h-auto -translate-x-1/2 p-0 hover:bg-transparent",style:{bottom:30,left:"50%"},title:"",onClick:n,onMouseEnter:()=>e("hover"),onMouseLeave:()=>e("default"),onMouseDown:()=>e("active"),onMouseUp:()=>e("hover"),children:o("img",{src:Ze[s],alt:"",className:"max-w-none select-none",style:{width:144,height:36}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}
|
|
2
|
+
export{Fe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I}from"./chunk-14dfwbk0.js";import{f,g,mt}from"./chunk-2k8my1h9.js";import{t}from"./chunk-5jz8vnk5.js";import{C}from"./chunk-0gf7vwzk.js";import{U}from"./chunk-mandqn4e.js";import{je}from"./chunk-p1ywvmqa.js";import{useState as l}from"react";import{jsxDEV as o,Fragment as m}from"react/jsx-dev-runtime";function s({action:e}){let[c,n]=l(!1),a=e.kind==="album";return o(t,{"aria-label":a?"Album":"Vibémon",onClick:e.onClick,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:"relative size-[3.333cqw] bg-transparent p-0 shadow-none hover:bg-transparent",children:[o("img",{src:a?mt:g,alt:"",className:"size-full object-contain transition-transform duration-150 select-none",style:{transform:c?"translateY(-2px) scale(1.05)":"none"}},void 0,!1,void 0,this),a&&e.hasUnseen&&o("span",{className:"absolute top-0 right-0 size-2 rounded-full bg-[#F74640]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function N({onBack:e,onWish:c,sectionAction:n,availablePoints:a,pointsLoaded:i}){return o(m,{children:[o(C,{onClick:e,label:"Back",iconSrc:f,className:"absolute top-[5.333%] left-[6.25%] z-30 gap-[0.729cqw] text-[#BCACE0] hover:text-[#BCACE0] [&_img]:size-[3.021cqw] [&_span]:text-[1.667cqw]"},void 0,!1,void 0,this),o("div",{className:"absolute top-[5%] right-[6.25%] z-30 flex h-[5.5cqh] items-center gap-[2.292cqw]",children:[o(s,{action:n},void 0,!1,void 0,this),o(je,{onClick:c,className:"size-[3.333cqw]"},void 0,!1,void 0,this),o(U,{amount:a,onAdd:I,loaded:i,className:"h-[5.5cqh] min-w-0 rounded-[7.813cqw] py-0 pr-[0.417cqw] pl-[0.729cqw] [&_[data-slot=gem-balance-add-icon]]:size-[2.5cqw] [&>[data-slot=gem-balance-add]]:ms-[1.094cqw] [&>[data-slot=gem-balance-add]]:size-[2.5cqw] [&>[data-slot=gem-balance-amount]]:text-[1.563cqw] [&>[data-slot=gem-balance-icon]]:me-[0.156cqw] [&>[data-slot=gem-balance-icon]]:size-[2.5cqw]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}
|
|
2
|
+
export{N};
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoginResponse, OAuthExchangeResponse, OAuthProvider, OAuthSessionResponse, SsoExchangeResponse } from "./types
|
|
1
|
+
import type { LoginResponse, OAuthExchangeResponse, OAuthProvider, OAuthSessionResponse, SsoExchangeResponse } from "./types";
|
|
2
2
|
export type SendCodePurpose = "LOGIN" | "REGISTER";
|
|
3
3
|
export interface AuthClientHost {
|
|
4
4
|
publicPost: <T>(path: string, body?: unknown) => Promise<T>;
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{mn}from"./chunk-ezj6gpm0.js";export{mn as createAuthClient};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./types
|
|
2
|
-
export * from "./password
|
|
3
|
-
export * from "./oauth
|
|
4
|
-
export * from "./token-storage
|
|
5
|
-
export * from "./client
|
|
6
|
-
export * from "./state
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export * from "./password";
|
|
3
|
+
export * from "./oauth";
|
|
4
|
+
export * from "./token-storage";
|
|
5
|
+
export * from "./client";
|
|
6
|
+
export * from "./state";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import"./chunk-8w0zccsf.js";import{on}from"./chunk-jf77909y.js";import{rn,sn,an,ln,un,dn}from"./chunk-c9banqkx.js";import{pn,fn}from"./chunk-m96z2xh6.js";import{mn}from"./chunk-ezj6gpm0.js";import{nn}from"./chunk-d13j3xks.js";export{pn as authStoreName,un as clearOAuthState,sn as computeCodeChallenge,mn as createAuthClient,nn as createAuthState,fn as createTokenStorage,rn as generateCodeVerifier,on as isValidPassword,dn as oauthErrorKey,an as storeOAuthState,ln as takeOAuthState};
|
package/dist/oauth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{rn,sn,an,ln,un,dn}from"./chunk-c9banqkx.js";export{un as clearOAuthState,sn as computeCodeChallenge,rn as generateCodeVerifier,dn as oauthErrorKey,an as storeOAuthState,ln as takeOAuthState};
|
package/dist/password.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{on}from"./chunk-jf77909y.js";export{on as isValidPassword};
|
package/dist/pets/assets.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { type PetAssetsHost } from "./host
|
|
2
|
-
import type { MyVibemonItem, VibemonCatalogItem, VibemonResourceDescriptor } from "./types
|
|
1
|
+
import { type PetAssetsHost } from "./host";
|
|
2
|
+
import type { MyVibemonItem, VibemonCatalogItem, VibemonResourceDescriptor } from "./types";
|
|
3
3
|
export declare function createPetAssets(host: PetAssetsHost): {
|
|
4
|
+
markVibemonFirstVisit: () => Promise<import("./types").VibemonFirstVisitResponse>;
|
|
5
|
+
getGachaFirstDraw: () => Promise<import("./types").GachaFirstDrawResponse>;
|
|
6
|
+
getActiveGachaPools: () => Promise<import("./types").GachaPoolSummary[]>;
|
|
7
|
+
getGachaPoolDetail: (id: string) => Promise<import("./types").GachaPoolDetailResponse>;
|
|
8
|
+
getPointAccount: () => Promise<import("./types").PointAccountData>;
|
|
9
|
+
drawGachaPool(poolId: string, drawType: import("./types").DrawType): Promise<import("./types").DrawResponse>;
|
|
4
10
|
getMyVibemons: (params?: Parameters<(params?: import("./types").GetMyVibemonsParams) => Promise<MyVibemonItem[]>>[0]) => Promise<{
|
|
5
11
|
resource_url?: string | null;
|
|
6
12
|
resource_package_format?: number | null;
|
|
@@ -56,11 +62,5 @@ export declare function createPetAssets(host: PetAssetsHost): {
|
|
|
56
62
|
};
|
|
57
63
|
ensureResource(id: string): Promise<import("./resources").CachedPetResource>;
|
|
58
64
|
dispose(): void;
|
|
59
|
-
markVibemonFirstVisit: () => Promise<import("./types").VibemonFirstVisitResponse>;
|
|
60
|
-
getGachaFirstDraw: () => Promise<import("./types").GachaFirstDrawResponse>;
|
|
61
|
-
getActiveGachaPools: () => Promise<import("./types").GachaPoolSummary[]>;
|
|
62
|
-
getGachaPoolDetail: (id: string) => Promise<import("./types").GachaPoolDetailResponse>;
|
|
63
|
-
getPointAccount: () => Promise<import("./types").PointAccountData>;
|
|
64
|
-
drawGachaPool(poolId: string, drawType: import("./types").DrawType): Promise<import("./types").DrawResponse>;
|
|
65
65
|
};
|
|
66
66
|
export type PetAssets = ReturnType<typeof createPetAssets>;
|
package/dist/pets/assets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{gn}from"../chunk-xs0abxzp.js";import"../chunk-afy09ajr.js";import"../chunk-21abksd2.js";import"../chunk-mmj02855.js";import"../chunk-9tramdds.js";import"../chunk-rerywpwe.js";import"../chunk-4gegjx79.js";export{gn as createPetAssets};
|
package/dist/pets/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PetAssetsHost } from "./host
|
|
2
|
-
import type { DrawResponse, DrawType, GachaFirstDrawResponse, GachaPoolDetailResponse, GachaPoolSummary, GetMyVibemonsParams, MyVibemonItem, PointAccountData, VibemonCatalogItem, VibemonFirstVisitResponse } from "./types
|
|
1
|
+
import { type PetAssetsHost } from "./host";
|
|
2
|
+
import type { DrawResponse, DrawType, GachaFirstDrawResponse, GachaPoolDetailResponse, GachaPoolSummary, GetMyVibemonsParams, MyVibemonItem, PointAccountData, VibemonCatalogItem, VibemonFirstVisitResponse } from "./types";
|
|
3
3
|
export declare function createPetClient(host: Pick<PetAssetsHost, "account" | "request">): {
|
|
4
4
|
getVibemonDetail: (id: string) => Promise<VibemonCatalogItem>;
|
|
5
5
|
getVibemonCatalog: () => Promise<VibemonCatalogItem[]>;
|
package/dist/pets/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ye}from"../chunk-afy09ajr.js";import"../chunk-rerywpwe.js";export{ye as createPetClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RunState } from "./lib/runtime-types
|
|
2
|
-
import type { VibemonNotification, VibemonSpriteConfig } from "./types
|
|
1
|
+
import type { RunState } from "./lib/runtime-types";
|
|
2
|
+
import type { VibemonNotification, VibemonSpriteConfig } from "./types";
|
|
3
3
|
interface Position {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
package/dist/pets/core/engine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Y}from"../../chunk-jjb1befc.js";import"../../chunk-hk9j0kvg.js";import"../../chunk-htw56xtp.js";export{Y as VibemonEngine};
|
package/dist/pets/core/host.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PetAccount, PetAssets, PetStorage } from "../index
|
|
2
|
-
import type { SessionIcons } from "./session-icon
|
|
3
|
-
import type { VibemonSpriteConfig } from "./types
|
|
1
|
+
import type { PetAccount, PetAssets, PetStorage } from "../index";
|
|
2
|
+
import type { SessionIcons } from "./session-icon";
|
|
3
|
+
import type { VibemonSpriteConfig } from "./types";
|
|
4
4
|
export type RunState = "running" | "requires_action" | "done" | "idle";
|
|
5
5
|
export interface PetBinding {
|
|
6
6
|
connectionEpoch: string;
|
package/dist/pets/core/host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{tn,e,we}from"../../chunk-htw56xtp.js";export{tn as configureVibemon,we as sameBinding,e as vibemonHost};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./host
|
|
2
|
-
export { initializeSettings, refreshSettings } from "./lib/settings
|
|
3
|
-
export { getVibemonState, updateVibemonState } from "./lib/account-state
|
|
4
|
-
export { syncVibemonResources, resourceSyncStatus, observeResourceSync, subscribeResourceSync, type ResourceSyncStatus } from "./lib/resource-sync
|
|
5
|
-
export { loadVibemonResource } from "./lib/vibemon-resources
|
|
6
|
-
export { requestVibemonView } from "./lib/view-request
|
|
7
|
-
export { sessionIconSvg, type SessionIcons } from "./session-icon
|
|
8
|
-
export { PetSessionContext, type PetSurface, type PetSurfaceLabel } from "./lib/pet-session-context
|
|
9
|
-
export { createSpriteConfig, spriteConfig } from "./lib/sprite-config
|
|
10
|
-
export { VibemonEngine } from "./engine
|
|
11
|
-
export type * from "./types
|
|
1
|
+
export * from "./host";
|
|
2
|
+
export { initializeSettings, refreshSettings } from "./lib/settings";
|
|
3
|
+
export { getVibemonState, updateVibemonState } from "./lib/account-state";
|
|
4
|
+
export { syncVibemonResources, resourceSyncStatus, observeResourceSync, subscribeResourceSync, type ResourceSyncStatus } from "./lib/resource-sync";
|
|
5
|
+
export { loadVibemonResource } from "./lib/vibemon-resources";
|
|
6
|
+
export { requestVibemonView } from "./lib/view-request";
|
|
7
|
+
export { sessionIconSvg, type SessionIcons } from "./session-icon";
|
|
8
|
+
export { PetSessionContext, type PetSurface, type PetSurfaceLabel } from "./lib/pet-session-context";
|
|
9
|
+
export { createSpriteConfig, spriteConfig } from "./lib/sprite-config";
|
|
10
|
+
export { VibemonEngine } from "./engine";
|
|
11
|
+
export type * from "./types";
|
package/dist/pets/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{tn,e,we}from"../../chunk-htw56xtp.js";import{w,Yt}from"../../chunk-w1z1g5c5.js";import"../../chunk-pbwt3qj9.js";import"../../chunk-rerywpwe.js";import"../../chunk-afy09ajr.js";import"../../chunk-9tramdds.js";import"../../chunk-4gegjx79.js";import"../../chunk-mmj02855.js";import"../../chunk-21abksd2.js";import"../../chunk-xs0abxzp.js";import"../../chunk-khnyadsg.js";import{X,h}from"../../chunk-yjdj2mf9.js";import{Wt,Nt,Zt,te}from"../../chunk-4h2756zy.js";import{ne,oe}from"../../chunk-v9czb1e6.js";import{v}from"../../chunk-44at74bw.js";import{jt}from"../../chunk-70nb6x0r.js";import{S}from"../../chunk-1hxexf7n.js";import{bt}from"../../chunk-74hpp4me.js";import"../../chunk-hk9j0kvg.js";import{Y}from"../../chunk-jjb1befc.js";export{bt as PetSessionContext,Y as VibemonEngine,tn as configureVibemon,ne as createSpriteConfig,X as getVibemonState,Yt as initializeSettings,v as loadVibemonResource,Nt as observeResourceSync,w as refreshSettings,jt as requestVibemonView,Wt as resourceSyncStatus,we as sameBinding,S as sessionIconSvg,oe as spriteConfig,Zt as subscribeResourceSync,te as syncVibemonResources,h as updateVibemonState,e as vibemonHost};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PetAccountState } from "./settings
|
|
1
|
+
import { type PetAccountState } from "./settings";
|
|
2
2
|
export declare function getVibemonScopeSync(): string | null;
|
|
3
3
|
export declare function currentState(): PetAccountState;
|
|
4
4
|
export declare const getVibemonState: () => Promise<PetAccountState>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,Q,X,h,de}from"../../../chunk-yjdj2mf9.js";import"../../../chunk-w1z1g5c5.js";import"../../../chunk-khnyadsg.js";import"../../../chunk-pbwt3qj9.js";import"../../../chunk-htw56xtp.js";import"../../../chunk-xs0abxzp.js";import"../../../chunk-afy09ajr.js";import"../../../chunk-21abksd2.js";import"../../../chunk-mmj02855.js";import"../../../chunk-9tramdds.js";import"../../../chunk-rerywpwe.js";import"../../../chunk-4gegjx79.js";export{Q as currentState,de as equipVibemonAfterDraw,a as getVibemonScopeSync,X as getVibemonState,h as updateVibemonState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Bt,Mt,qt}from"../../../chunk-38y9615y.js";export{Mt as backdropSvgPath,Bt as bubbleOutline,qt as scaleBackdropPath};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Tt}from"../../../chunk-g47n16v3.js";export{Tt as createDrawReward};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{At,Pn,pe,It,Et,Rt,kt,Vt}from"../../../chunk-9wqfns8y.js";import"../../../chunk-htw56xtp.js";export{Vt as drawGachaPool,Rt as getActiveGachaPools,It as getGachaFirstDraw,kt as getGachaPoolDetail,At as getMyVibemons,pe as getPointAccount,Pn as getVibemonCatalog,Et as markVibemonFirstVisit};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GachaPoolDetailResponse, type GachaPoolSummary } from "./endpoints
|
|
1
|
+
import { type GachaPoolDetailResponse, type GachaPoolSummary } from "./endpoints";
|
|
2
2
|
export type GachaPoolStatus = "UPCOMING" | "ACTIVE" | "ENDED" | "UNAVAILABLE";
|
|
3
3
|
export interface GachaPoolViewModel {
|
|
4
4
|
poolUuid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{en,xt,_t,me,Pt,St}from"../../../chunk-1mq984ah.js";import"../../../chunk-9wqfns8y.js";import"../../../chunk-htw56xtp.js";export{en as createGachaPoolCatalog,xt as gachaPoolImageUrls,Pt as getDefaultGachaPool,St as getVisibleGachaPools,_t as loadGachaPoolCatalog,me as resolveGachaPoolStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{yt}from"../../../chunk-b5zfgr86.js";export{yt as advanceLoadingProgress};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VibemonEngine } from "../engine
|
|
2
|
-
import type { RunState } from "./runtime-types
|
|
1
|
+
import type { VibemonEngine } from "../engine";
|
|
2
|
+
import type { RunState } from "./runtime-types";
|
|
3
3
|
export declare class PetAnimationSync {
|
|
4
4
|
private engine;
|
|
5
5
|
private states;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{he}from"../../../chunk-mdqxdcxh.js";export{he as PetAnimationSync};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ge}from"../../../chunk-3vpcfe38.js";export{ge as PetBubbleState};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { VibemonEngine } from "../engine
|
|
2
|
-
import type { PetWindowHost } from "../host
|
|
1
|
+
import type { VibemonEngine } from "../engine";
|
|
2
|
+
import type { PetWindowHost } from "../host";
|
|
3
3
|
export declare function dragPet(windows: Pick<PetWindowHost, "call" | "moved">, engine: Pick<VibemonEngine, "handleDragStart" | "setFacing" | "handleDragEnd">, movingLeft: boolean): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Dt}from"../../../chunk-9zhxpvxw.js";export{Dt as dragPet};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VibemonEngine } from "../engine
|
|
2
|
-
import type { PetWindowHost } from "../host
|
|
3
|
-
import type { PresentationReadiness } from "./presentation-readiness
|
|
1
|
+
import type { VibemonEngine } from "../engine";
|
|
2
|
+
import type { PetWindowHost } from "../host";
|
|
3
|
+
import type { PresentationReadiness } from "./presentation-readiness";
|
|
4
4
|
type PresentationEngine = Pick<VibemonEngine, "resume" | "presentAt">;
|
|
5
5
|
export declare function presentVibemon<T extends PresentationEngine>(ready: PresentationReadiness<T>, windows: Pick<PetWindowHost, "call">, petId: string): Promise<void>;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{wt}from"../../../chunk-96emfz6b.js";export{wt as presentVibemon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{bt}from"../../../chunk-74hpp4me.js";export{bt as PetSessionContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ve}from"../../../chunk-9h4j75af.js";export{ve as preloadImages};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ue}from"../../../chunk-kwq26qhs.js";export{ue as PresentationReadiness};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MyVibemonItem } from "./endpoints
|
|
1
|
+
import type { MyVibemonItem } from "./endpoints";
|
|
2
2
|
export declare function sortByRarityDesc<T extends Pick<MyVibemonItem, "rarity_code">>(items: T[]): T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{J}from"../../../chunk-2x5tzfgv.js";export{J as sortByRarityDesc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{I}from"../../../chunk-14dfwbk0.js";import"../../../chunk-htw56xtp.js";export{I as openAccountUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{vt}from"../../../chunk-pha0eyam.js";export{vt as advancePetSubmission};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ee,Wt,Nt,Zt,te}from"../../../chunk-4h2756zy.js";import"../../../chunk-khnyadsg.js";import"../../../chunk-pbwt3qj9.js";import"../../../chunk-htw56xtp.js";import"../../../chunk-xs0abxzp.js";import"../../../chunk-afy09ajr.js";import"../../../chunk-21abksd2.js";import"../../../chunk-mmj02855.js";import"../../../chunk-9tramdds.js";import"../../../chunk-rerywpwe.js";import"../../../chunk-4gegjx79.js";export{Nt as observeResourceSync,Wt as resourceSyncStatus,Zt as subscribeResourceSync,te as syncVibemonResources,ee as vibemonSyncStore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { RunState } from "../host
|
|
1
|
+
export type { RunState } from "../host";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w,Yt,Ut,u,be,Ct,A}from"../../../chunk-w1z1g5c5.js";import"../../../chunk-htw56xtp.js";export{be as getSetting,u as getSettingSync,Yt as initializeSettings,w as refreshSettings,A as setSetting,Ut as subscribeSettings,Ct as updateSettingCache};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CachedPetMetadata, SheetLayout } from "../../index
|
|
2
|
-
import type { VibemonSpriteConfig } from "../types
|
|
1
|
+
import type { CachedPetMetadata, SheetLayout } from "../../index";
|
|
2
|
+
import type { VibemonSpriteConfig } from "../types";
|
|
3
3
|
export declare function createSpriteConfig(name: string, sheetName: string, layout: SheetLayout): VibemonSpriteConfig;
|
|
4
4
|
export declare function spriteConfig(id: string, resource: CachedPetMetadata): VibemonSpriteConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ne,oe}from"../../../chunk-v9czb1e6.js";export{ne as createSpriteConfig,oe as spriteConfig};
|