PageSourceSearch

https://selzee.com/build/assets/GoalHeader-DqCOoKrS.js

js selzee.com collected 2026-09-24 19:58:03 UTC 1,865 bytes, 1 lines download raw bytes

1import{ao as w,ap as B,aq as G}from"./index-BD412rf6.js";import{_ as I}from"./Button-CchWSylj.js";import{_ as N,b as e,f as p,w as i,d as f,u as t,e as r,t as g,c as _,i as c,F as V,r as q,p as x,k as s,m as A}from"./app-DPZW85wG.js";import{C as D}from"./chevron-down-CvdPKFAq.js";import{C as F}from"./check-DH9akjv_.js";import"./utils-C8nBGPD0.js";import"./preload-helper-I4rgV-VL.js";import"./posthog-CQgXCQ7b.js";const H={class:"gh-goal"},O={key:0,class:"gh-count"},j={class:"gh-list"},z={class:"gh-box"},E={key:1,class:"gh-spin"},L={class:"gh-txt"},T={__name:"GoalHeader",props:{goalState:{type:Object,default:null}},setup(k){const o=k,h=A(!0),y=s(()=>!!(o.goalState&&o.goalState.goal)),C=s(()=>o.goalState?.goal??""),l=s(()=>Array.isArray(o.goalState?.todos)?o.goalState.todos:[]),n=s(()=>l.value.length),b=s(()=>l.value.filter(a=>a.done).length),v=s(()=>l.value.findIndex(a=>!a.done));function S(a){return l.value[a]?.done?"done":a===v.value?"active":"pending"}return(a,u)=>y.value?(e(),p(t(G),{key:0,open:h.value,"onUpdate:open":u[0]||(u[0]=d=>h.value=d),class:x(["gh",{open:h.value}])},{default:i(()=>[f(t(w),{"as-child":"",disabled:!n.value},{default:i(()=>[f(t(I),{variant:"bare",class:"gh-head"},{default:i(()=>[u[1]||(u[1]=r("span",{class:"gh-lbl"},"Goal",-1)),r("span",H,g(C.value),1),n.value?(e(),_("span",O,g(b.value)+"/"+g(n.value),1)):c("",!0),n.value?(e(),p(t(D),{key:1,class:"gh-chev h-[14px] w-[14px]"})):c("",!0)]),_:1})]),_:1},8,["disabled"]),n.value?(e(),p(t(B),{key:0},{default:i(()=>[r("ul",j,[(e(!0),_(V,null,q(l.value,(d,m)=>(e(),_("li",{key:m,class:x(["gh-item",S(m)])},[r("span",z,[d.done?(e(),p(t(F),{key:0,class:"h-[11px] w-[11px]"})):m===v.value?(e(),_("span",E)):c("",!0)]),r("span",L,g(d.text),1)],2))),128))])]),_:1})):c("",!0)]),_:1},8,["open","class"])):c("",!0)}},Q=N(T,[["__scopeId","data-v-2cc16a60"]]);export{Q 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.