PageSourceSearch

https://app.invisible.work/build/assets/Launch-DuThGfbc.js

js invisible.work collected 2026-10-02 02:12:21 UTC 9,597 bytes, 1 lines download raw bytes

1import{d as L,o as D,l as V,a as r,c as s,e as t,w as j,F as C,r as z,b as h,n as g,u as f,f as E,t as d,g as _,k,i as v,p as $,X as N,s as B,h as S,m as M,v as A}from"./app-pJIvYz1x.js";import{_ as F}from"./ExperienceBrand.vue_vue_type_script_setup_true_lang-CU5dZ97o.js";import{_ as T}from"./ExperienceRunner.vue_vue_type_script_setup_true_lang-DjbcBB5c.js";import{C as U}from"./chevron-down-CA0GrZXD.js";import{C as q}from"./check-DaMxH4Ii.js";import{L as I}from"./lock-fLLGobCq.js";import{_ as J}from"./index-D0swD1Jb.js";import{p as P}from"./http-CdHEi2uM.js";import"./index-C7LQE-Tk.js";import"./index-CHsNBzKD.js";import"./ArticleViewer-DL3cBHO-.js";import"./SequinWaveCanvas.vue_vue_type_script_setup_true_lang-C2eWZ3qW.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./useFocusTrap-_5aPGS5q.js";import"./markdown-BsePuLia.js";import"./arrow-right-Dsr7cuvN.js";import"./clipboard-check-BYhBp2Ew.js";import"./users-C5eS0DC5.js";import"./message-circle-7F5dW9J8.js";import"./ExperienceStage-CmHHIISh.js";import"./DotCover.vue_vue_type_script_setup_true_lang-C1fR9EwJ.js";import"./clock-CY8nuQ-Y.js";import"./mic-DjGXSJfJ.js";import"./chevron-left-Bc-AwcUe.js";import"./chevron-right-B6PTkreT.js";import"./target-00sP_A7O.js";import"./index-DmEulHvm.js";import"./link-DlIU8V3_.js";import"./square-check-big-B_O4tNpg.js";import"./loader-circle-BuD0Z2E9.js";import"./download-BPs4kLJ3.js";import"./file-text-DV8-EcKg.js";import"./index-ClsaOryn.js";import"./trending-up-vnJWphFK.js";import"./star-8zwtIdID.js";import"./message-square-tF-w7jOe.js";import"./activity-5s7UmVvO.js";import"./bot-X10UKCec.js";import"./rubricScore-L8-RhXpB.js";import"./trending-down-CdJIs4wy.js";import"./index-NR-SaOiM.js";import"./play-B15C-n95.js";import"./pause-C352WdmY.js";import"./volume-x-DfyDBmzi.js";const R={class:"relative"},X=["aria-expanded","aria-label"],G={class:"flex shrink-0 items-center gap-0.5","aria-hidden":"true"},H={key:0,class:"absolute top-[calc(100%+6px)] right-0 w-72 overflow-hidden rounded-lg border border-brand-line bg-card sm:w-80 dark:border-brand-control"},K={class:"border-b border-brand-line px-4 py-3"},O={class:"font-mono text-xs tracking-[0.18em] text-brand-muted uppercase"},Q={key:0,class:"ml-1 text-brand-faint"},W={class:"mt-1 truncate text-sm font-medium text-brand-ink"},Y={class:"max-h-80 overflow-y-auto py-1"},Z={key:3,class:"size-1.5 rounded-full bg-brand-white dark:bg-brand-surface-warm"},ee={class:"min-w-0 flex-1"},te={key:0,class:"mt-0.5 font-mono text-xs tracking-[0.15em] text-brand-faint uppercase"},re=L({__name:"ProgramContextStrip",props:{program:{}},setup(n){const a=n,l=k(!1),u=k(null);function y(){l.value=!l.value}function w(){l.value=!1}function m(o){l.value&&u.value&&!u.value.contains(o.target)&&w()}function b(o){o.key==="Escape"&&w()}D(()=>{document.addEventListener("click",m),document.addEventListener("keydown",b)}),V(()=>{document.removeEventListener("click",m),document.removeEventListener("keydown",b)});const c=v(()=>{const o=a.program.current_step;return o.is_baseline?"Baseline":o.position&&a.program.total_steps?`Step ${o.position} of ${a.program.total_steps}`:null});function x(o){return o.is_current?"bg-brand-ink dark:bg-brand-faint":o.status==="completed"||o.status==="skipped"?"bg-brand-muted dark:bg-brand-muted":o.status==="missed"?"bg-brand-line dark:bg-brand-line":"bg-brand-wash dark:bg-brand-surface-warm"}return(o,i)=>(r(),s("div",{ref_key:"root",ref:u,class:"pointer-events-auto fixed top-5 right-14 z-40 md:top-6 md:right-20"},[t("div",R,[t("button",{type:"button",class:"flex h-6 items-center gap-2 rounded-full border border-brand-line bg-card/95 px-3 backdrop-blur transition-colors hover:border-brand-control md:h-7 dark:border-brand-control dark:bg-brand-surface-warm/95 dark:hover:border-brand-muted","aria-expanded":l.value,"aria-label":`${n.program.name}${c.value?" · "+c.value:""}`,onClick:j(y,["stop"])},[t("div",G,[(r(!0),s(C,null,z(n.program.steps.filter(e=>!e.is_baseline),(e,p)=>(r(),s("span",{key:p,class:g(["h-1 w-3 rounded-full transition-colors",x(e)])},null,2))),128))]),h(f(U),{class:g(["size-3.5 shrink-0 text-brand-faint transition-transform",l.value?"rotate-180":""])},null,8,["class"])],8,X),l.value?(r(),s("div",H,[t("div",K,[t("p",O,[E(d(n.program.name)+" ",1),c.value?(r(),s("span",Q,"· "+d(c.value),1)):_("",!0)]),t("p",W,d(n.program.current_step.title),1)]),t("ul",Y,[(r(!0),s(C,null,z(n.program.steps,(e,p)=>(r(),s("li",{key:p,class:g(["flex items-start gap-3 px-4 py-2.5",e.is_current?"bg-brand-surface dark:bg-brand-surface-warm":""])},[t("span",{class:g(["mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full",e.is_current?"bg-brand-ink text-brand-white dark:bg-brand-faint dark:text-brand-ink":e.status==="completed"||e.status==="skipped"?"bg-brand-wash text-brand-muted dark:bg-brand-surface-warm dark:text-brand-muted":e.status==="missed"?"bg-brand-line text-brand-muted dark:bg-brand-surface-warm dark:text-brand-muted":"border border-brand-line dark:border-brand-control"])},[!e.is_current&&(e.status==="completed"||e.status==="skipped")?(r(),$(f(q),{key:0,class:"size-2.5"})):!e.is_current&&e.status==="missed"?(r(),$(f(N),{key:1,class:"size-2.5","stroke-width":"2.5"})):!e.is_current&&e.status==="locked"?(r(),$(f(I),{key:2,class:"size-2 text-brand-faint"})):e.is_current?(r(),s("span",Z)):_("",!0)],2),t("div",ee,[t("p",{class:g(["text-sm leading-snug",e.is_current?"font-medium text-brand-ink":"text-brand-body"])},d(e.title),3),e.is_baseline?(r(),s("p",te," Baseline ")):_("",!0)])],2))),128))])])):_("",!0)])],512))}}),ne={key:1,class:"flex min-h-screen items-center justify-center bg-brand-surface dark:bg-brand-surface"},ae={class:"w-full max-w-md rounded-lg border border-brand-line bg-card p-8 text-center dark:bg-card"}
1,oe={class:"text-lg font-semibold text-brand-ink dark:text-brand-ink"},se={class:"mt-2 text-sm text-brand-muted dark:text-brand-muted"},ie={class:"fixed right-4 bottom-4 z-50 hidden md:block"},de={key:1,class:"w-72 rounded-lg border border-brand-line bg-card p-4 dark:bg-card"},le={class:"text-sm font-medium text-brand-ink dark:text-brand-ink"},ce=["placeholder"],ue={class:"mt-2 flex justify-end gap-2"},me={key:3,class:"flex min-h-screen items-center justify-center bg-brand-surface dark:bg-brand-surface"},be={class:"w-full max-w-md rounded-lg border border-wash-clay bg-card p-8 text-center dark:border-wash-clay dark:bg-card"},pe={class:"text-xl font-semibold text-brand-ink dark:text-brand-ink"},fe={class:"mt-2 text-sm text-brand-muted dark:text-brand-muted"},st=L({__name:"Launch",props:{magic_link_id:{},experience_type:{},config:{},person_id:{},program:{},experience:{},in_app:{type:Boolean},can_continue:{type:Boolean},feedback_enabled:{type:Boolean}},setup(n){const a=n,l=v(()=>a.experience?.id??a.magic_link_id),u=v(()=>!a.config||!Array.isArray(a.config.steps)?null:a.config),y=v(()=>u.value!==null),w=v(()=>a.program?{eyebrow:a.program.name,title:a.program.current_step.title}:a.experience?.name?{title:a.experience.name}:null),m=k(!1),b=k(""),c=k(!1),x=k(!1);async function o(){c.value=!0;try{const{ok:i}=await P(`/x/${a.magic_link_id}/decline`,{reason:b.value||null});i&&(x.value=!0,m.value=!1)}finally{c.value=!1}}return(i,e)=>(r(),s(C,null,[h(f(S),{title:u.value?.title??i.$t("experiences.launch.head_title_default")},{default:B(()=>[...e[3]||(e[3]=[t("link",{rel:"preconnect",href:"https://fonts.bunny.net"},null,-1),t("link",{href:"https://fonts.bunny.net/css?family=dm-mono:300,400,500&family=newsreader:200..800",rel:"stylesheet"},null,-1)])]),_:1},8,["title"]),h(F,{align:"header"}),n.program&&y.value&&!x.value?(r(),$(re,{key:0,program:n.program},null,8,["program"])):_("",!0),x.value?(r(),s("div",ne,[t("div",ae,[t("p",oe,d(i.$t("experiences.launch.declined_heading")),1),t("p",se,d(i.$t("experiences.launch.declined_body")),1)])])):y.value?(r(),s(C,{key:2},[h(T,{config:u.value,"magic-link-id":n.magic_link_id,"experience-type":n.experience_type,"experience-description":n.experience?.description??null,"session-context":w.value,"cover-id":l.value,"in-app":n.in_app,"can-continue":n.can_continue,"feedback-enabled":n.feedback_enabled,"practice-again-enabled":!0},null,8,["config","magic-link-id","experience-type","experience-description","session-context","cover-id","in-app","can-continue","feedback-enabled"]),t("div",ie,[m.value?(r(),s("div",de,[t("p",le,d(i.$t("experiences.launch.opt_out_question")),1),M(t("textarea",{"onUpdate:modelValue":e[1]||(e[1]=p=>b.value=p),rows:"2",placeholder:i.$t("experiences.launch.decline_reason_placeholder"),class:"mt-2 w-full rounded-md border border-input px-3 py-2 text-sm text-brand-body outline-none placeholder:text-brand-faint focus:border-brand-control dark:border-input dark:bg-card dark:text-brand-body"},null,8,ce),[[A,b.value]]),t("div",ue,[t("button",{onClick:e[2]||(e[2]=p=>{m.value=!1,b.value=""}),class:"rounded-md px-3 py-1.5 text-xs text-brand-muted hover:text-brand-ink"},d(i.$t("common.actions.cancel")),1),h(f(J),{size:"sm",disabled:c.value,onClick:o},{default:B(()=>[E(d(c.value?i.$t("experiences.launch.opting_out"):i.$t("experiences.launch.opt_out")),1)]),_:1},8,["disabled"])])])):(r(),s("button",{key:0,onClick:e[0]||(e[0]=p=>m.value=!0),class:"rounded-lg bg-card/90 px-3 py-1.5 text-xs text-brand-faint backdrop-blur transition-colors hover:text-brand-muted dark:bg-card/90 dark:text-brand-faint"},d(i.$t("experiences.launch.not_relevant")),1))])],64)):(r(),s("div",me,[t("div",be,[t("h1",pe,d(i.$t("experiences.launch.error_heading")),1),t("p",fe,d(i.$t("experiences.launch.error_body")),1)])]))],64))}});export{st 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.