PageSourceSearch

https://nimic.gg/build/assets/EncounterParty-CgnE2pn5.js

js nimic.gg collected 2026-10-09 22:58:04 UTC 5,243 bytes, 1 lines download raw bytes

1import{d as I,u as P,r as p,c as s,a as n,w as l,b as r,o,e as a,t as c,f as M,T as u,g as v,_ as C,n as N,h as j,i as O}from"./app-CBJUEl7-.js";import{u as R,a as z}from"./usePlayOnVisible-DIqbDzzl.js";const D={key:0,class:"scene-context mb-8"},$={class:"font-mono text-[10px] text-text-dim/60 tracking-widest uppercase"},q={key:0,class:"mb-10"},A={class:"text-lg sm:text-xl text-text-prose leading-[1.8]"},F={key:0,class:"inline-block w-0.5 h-[1.1em] bg-text-prose ml-0.5 align-middle caret-blink"},G={key:0,class:"player-action mb-6"},H={key:0,class:"mb-6"},J={class:"join-notification mb-4"},K={class:"join-tag"},L={key:0,class:"player-action"},Q={key:0,class:"mb-6"},U={class:"join-notification mb-4"},W={class:"join-tag"},X={key:0,class:"player-action"},Y={key:0,class:"mt-4"},Z={class:"text-lg sm:text-xl text-text-prose leading-[1.8]"},ee={key:0,class:"inline-block w-0.5 h-[1.1em] bg-text-prose ml-0.5 align-middle caret-blink"},te=I({__name:"EncounterParty",setup(ae){const T=p(),{t:y,tm:V}=P(),_=V("encounter_party_scenes"),e=p(0),m=p(Math.floor(Math.random()*_.length)),f=p(""),x=p(!1),b=p(""),h=p(!1),g=p(!1),t=M(()=>_[m.value]),{typeText:w,delay:i,clearTimers:B}=R();function S(){e.value=0,f.value="",x.value=!1,b.value="",h.value=!1,g.value=!1;const k=t.value;i(()=>{e.value=1},200),i(()=>{e.value=2,w(k.setting,f,x,()=>{i(()=>{e.value=3},800),i(()=>{e.value=4},2400),i(()=>{e.value=5},3e3),i(()=>{e.value=6},4200),i(()=>{e.value=7},4800),i(()=>{e.value=8,w(k.outcome,b,h,()=>{i(()=>{g.value=!0},600)})},6e3)})},800)}function E(){B(),m.value=(m.value+1)%_.length,S()}return z(T,()=>{e.value===0&&S()},{threshold:.2}),(k,d)=>(o(),s("div",{class:"encounter-party",ref_key:"rootRef",ref:T},[n(u,{"enter-active-class":"transition duration-700 ease-out","enter-from-class":"opacity-0 translate-y-2","enter-to-class":"opacity-100 translate-y-0"},{default:l(()=>[e.value>=1?(o(),s("div",D,[a("span",$,c(t.value.session),1)])):r("",!0)]),_:1}),n(u,{"enter-active-class":"transition duration-700 ease-out","enter-from-class":"opacity-0 translate-y-2","enter-to-class":"opacity-100 translate-y-0"},{default:l(()=>[e.value>=2?(o(),s("div",q,[a("p",A,[v(c(f.value),1),x.value?(o(),s("span",F)):r("",!0)])])):r("",!0)]),_:1}),n(u,{"enter-active-class":"transition duration-500 ease-out","enter-from-class":"opacity-0 translate-x-[-8px]","enter-to-class":"opacity-100 translate-x-0"},{default:l(()=>[e.value>=3?(o(),s("div",G,[n(C,{compact:"",player:{name:t.value.players[0].name,colorClass:t.value.players[0].barColor}},{default:l(()=>[v(c(t.value.players[0].action),1)]),_:1},8,["player"])])):r("",!0)]),_:1}),n(u,{"enter-active-class":"transition duration-700 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100"},{default:l(()=>[e.value>=4?(o(),s("div",H,[a("div",J,[d[0]||(d[0]=a("div",{class:"join-line"},null,-1)),a("span",K,[a("span",{class:N(["join-dot",t.value.players[1].barColor])},null,2),v(" "+c(t.value.players[1].name)+" "+c(j(y)("encounter_party_joined")),1)]),d[1]||(d[1]=a("div",{class:"join-line"},null,-1))]),n(u,{"enter-active-class":"transition duration-500 ease-out delay-300","enter-from-class":"opacity-0 translate-x-[-8px]","enter-to-class":"opacity-100 translate-x-0"},{default:l(()=>[e.value>=5?(o(),s("div",L,[n(C,{compact:"",player:{name:t.value.players[1].name,colorClass:t.value.players[1].barColor}},{default:l(()=>[v(c(t.value.players[1].action),1)]),_:1},8,["player"])])):r("",!0)]),_:1})])):r("",!0)]),_:1}),n(u,{"enter-active-class":"transition duration-700 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100"},{default:l(()=>[e.value>=6?(o(),s("div",Q,[a("div",U,[d[2]||(d[2]=a("div",{class:"join-line"},null,-1)),a("span",W,[a("span",{class:N(["join-dot",t.value.players[2].barColor])},null,2),v(" "+c(t.value.players[2].name)+" "+c(j(y)("encounter_party_joined")),1)]),d[3]||(d[3]=a("div",{class:"join-line"},null,-1))]),n(u,{"enter-active-class":"transition duration-500 ease-out delay-300","enter-from-class":"opacity-0 translate-x-[-8px]","enter-to-class":"opacity-100 translate-x-0"},{default:l(()=>[e.value>=7?(o(),s("div",X,[n(C,{compact:"",player:{name:t.value.players[2].name,colorClass:t.value.players[2].barColor}},{default:l(()=>[v(c(t.value.players[2].action),1)]),_:1},8,["player"])])):r("",!0)]),_:1})])):r("",!0)]),_:1}),n(u,{"enter-active-class":"transition duration-700 ease-out","enter-from-class":"opacity-0 translate-y-4","enter-to-class":"opacity-100 translate-y-0"},{default:l(()=>[e.value>=8?(o(),s("div",Y,[a("p",Z,[v(c(b.value),1),h.value?(o(),s("span",ee)):r("",!0)]),n(u,{"enter-active-class":"transition duration-500 ease-out delay-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100"},{default:l(()=>[g.value?(o(),s("button",{key:0,onClick:E,class:"mt-6 w-full text-center text-base sm:text-sm text-success/50 hover:text-success active:text-success py-3 rounded-lg border border-transparent hover:border-success/30 active:border-success/40 hover:bg-success/5 active:bg-success/10 transition-all cursor-pointer select-none"},c(j(y)("encounter_party_next"))+" → ",1)):r("",!0)]),_:1})])):r("",!0)]),_:1})],512))}}),le=O(te,[["__scopeId","data-v-527cbdbe"]]);export{le 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.