PageSourceSearch

https://selzee.com/build/assets/Wait-DkdUrRZM.js

js selzee.com collected 2026-09-24 19:58:12 UTC 10,133 bytes, 1 lines download raw bytes

1import{S as me,m as s,o as we,a as ke,b as y,c as I,d as _,u as _e,h as be,e as g,p as Se,f as B,w as Y,T as G,t as K,i as J,F as Ae,k as n,_ as Be}from"./app-DPZW85wG.js";import{d as Ce,s as Me,n as xe}from"./prospectStoryBeats-CDbLrKCS.js";import{c as Te}from"./EditDemo-CIdEhnQU.js";import{p as Ee}from"./beatArt-CdsKHBks.js";import{c as Ie}from"./csrf-DkBZ52x_.js";import{b as Q}from"./posthog-CQgXCQ7b.js";import Pe from"./FirstPlanCard-BFknqWoA.js";import{_ as Re}from"./NbArt.vue_vue_type_script_setup_true_lang-Cn6Um32z.js";import{_ as Le}from"./NbBackdrop.vue_vue_type_script_setup_true_lang-a6aZR8Mo.js";import{_ as We}from"./NbOnboardingHeader.vue_vue_type_script_setup_true_lang-mvaNTZlP.js";import De from"./StoryBeat-DzylFWPb.js";import Fe from"./TalkToTeam-BlIOpM7V.js";/* empty css                   */import"./preload-helper-I4rgV-VL.js";import"./wordReveal-DZNnsbBD.js";import"./NbButton.vue_vue_type_script_setup_true_lang-DvyfxYi1.js";import"./circle-alert-DKrvJtGf.js";import"./check-DH9akjv_.js";import"./sparkles-C0oEsqZd.js";import"./useAdvanceOnPress-CcOdawIo.js";import"./TalkToTeamForm-_nOZwN_6.js";import"./NbPhoneInput.vue_vue_type_script_setup_true_lang-D5Rg9Twg.js";const qe=14,X={provisioning:{title:"Setting up your workspace",details:["Putting your workspace together…","Making somewhere for everything we learn to live…"]},brand:{title:"Reading your brand",details:["Opening your homepage…","Working out what you actually sell…","Finding who you are up against…"]},signals:{title:"Gathering your signals",details:["Reading your customers in their own words…","Pulling your competitors’ live ads…","Watching which of your posts actually worked…"]},outputs:{title:"Building your first pieces",details:["Drawing your first ad…","Writing your first trend script…","Matching everything to your own style…"]},done:{title:"Ready",details:["Your first pieces are built."]}},Z="/images/funnel-wait/";function P(t,e,o){return t>0?e.replace("{n}",t.toLocaleString("en-US")):o}const u=[{key:"waking-up",phase:"provisioning",kind:"work",headline:"Setting up your workspace",subcopy:()=>"Everything we learn about your brand from here on lands in one place."},{key:"finding-patterns",phase:"brand",kind:"work",headline:"Reading your site",subcopy:()=>"Your products, what makes each one worth buying, and who you are up against."},{key:"one-idea",phase:"brand",kind:"teach",headline:"One idea per ad",subcopy:()=>"An ad that argues two things at once is remembered for neither."},{key:"reading-customers",phase:"signals",kind:"work",headline:"Reading what your customers say",subcopy:t=>P(t.voice_rows,"We have {n} reviews, comments and threads so far, in their own words.","Reviews, comments and threads, in their own words.")},{key:"scanning-competitors",phase:"signals",kind:"work",headline:"Scanning your competitors’ ads",subcopy:t=>P(t.ads_scanned,"{n} live ads pulled from the ad libraries you compete in.","Pulling live ads from the ad libraries you compete in.")},{key:"watching-organic",phase:"signals",kind:"work",headline:"Watching what works organically",subcopy:t=>P(t.posts_scanned,"{n} posts from your niche, sorted by what people actually engaged with.","Posts from your niche, sorted by what people actually engaged with.")},{key:"mix-it-up",phase:"signals",kind:"teach",headline:"Mix it up",subcopy:()=>"A healthy feed alternates between educational, entertaining, and promotional posts."},{key:"proof-beats-polish",phase:"signals",kind:"teach",headline:"Proof beats polish",subcopy:()=>"A line your customer wrote about you outsells the line a copywriter wrote for you."},{key:"drafting-images",phase:"outputs",kind:"work",headline:"Drafting images that match your style",subcopy:()=>"We pull cues from your site, brand colours, and the platforms you picked."},{key:"writing-script",phase:"outputs",kind:"work",headline:"Writing your first trend script",subcopy:()=>"A shot list and a hook, built on a trend that is running right now."},{key:"test-then-scale",phase:"outputs",kind:"teach",headline:"Test before you scale",subcopy:()=>"The cheapest way to find the winner is to run three, not to perfect one."}];function ee(t,{reducedMotion:e=!1}={}){const o=t.art??t.key,r=e&&t.animated===!0?"-still":"";return`${Z}${o}${r}.webp`}function $e(){return[...u.map(ee),`${Z}done-celebration.webp`]}function Ue(t){const e=u.findIndex(r=>
1r.phase===t);if(e===-1)return[u.length-1,u.length-1];let o=e;for(;o+1<u.length&&u[o+1].phase===t;)o++;return[e,o]}function je({phase:t,elapsedInPhase:e,previousIndex:o=0}){const[r,i]=Ue(t);if(o>i)return o;const c=Math.max(0,Math.floor(e/qe));if(r+c<=i)return Math.max(r+c,Math.min(o,i));const d=[];for(let p=r;p<=i;p++)u[p].kind==="teach"&&d.push(p);if(d.length===0)return i;const m=c-(i-r)-1;return d[m%d.length]}const Oe={class:"nb fw-root"},ze={class:"fw-head"},Ne={class:"fw-head-inner"},Ve={class:"nb-display fw-headline","data-testid":"wait-headline"},He={class:"fw-sub"},Ye={key:3,class:"fw-card-slot"},Ge=5e3,Ke="mx-auto h-48 w-auto object-contain sm:h-60",Je=me({__name:"Wait",props:{stage:{},phase:{},progress:{},eta_seconds:{},elapsed_seconds:{},facts:{},acts:{},waiting_since:{},budget_ends_at:{},call_widget:{},brand_logo_url:{default:null},status_url:{default:"/first-plan/status"},reveal_url:{default:"/first-plan/reveal"},guest:{type:Boolean,default:!1},call_request_url:{default:void 0},sequence:{default:"phased"},render_url:{default:void 0},brand_name:{default:null},brand_findings:{default:null},channels:{default:null},competitor_ads:{default:()=>[]},trusted_logos:{default:null}},setup(t){const e=t,o=s(e.stage),r=s(e.phase),i=s(e.progress),c=s(e.facts),d=s(e.acts),m=s(0),p=s(0),R=s(null),L=s(!1),W=s(!1);let C,M;const f=n(()=>e.sequence==="deferred"),D=s(!1),w=s(0),F=s(!1),q=s(!1),$=s(e.brand_findings),U=s(e.channels),j=n(()=>({brand_name:e.brand_name,facts:c.value,findings:$.value,channels:U.value,competitor_ads:e.competitor_ads})),x=s(null),h=n(()=>x.value??j.value),k=n(()=>Me(h.value)),l=n(()=>k.value[Math.min(w.value,k.value.length-1)]),ae=n(()=>l.value.copy(h.value)),te=n(()=>l.value.copy2?.(h.value)??[]),ne=n(()=>l.value.sub?.(h.value)??null),se=n(()=>l.value.lines?.(h.value)??[]),oe=n(()=>l.value.chips?.(h.value)??[]),re=n(()=>l.value.ads?.(h.value)??[]),b=n(()=>f.value&&w.value===0),O=n(()=>w.value>=k.value.length-1),S=n(()=>u[Math.min(p.value,u.length-1)]),le=n(()=>S.value.headline),ie=n(()=>S.value.subcopy(c.value)),ue=n(()=>ee(S.value,{reducedMotion:q.value})),T=n(()=>X[r.value]??X.brand),ce=n(()=>({key:r.value,title:T.value.title,detail:T.value.details[0],failed:!1})),de=n(()=>T.value.details),pe=n(()=>Math.round(i.value*100));function E(){p.value=je({phase:r.value,elapsedInPhase:m.value,previousIndex:p.value})}function fe(){x.value===null&&(x.value=j.value)}function ve(){if(O.value){H();return}fe(),w.value=xe(k.value,w.value)}function he(){H()}async function z(){if(!(!b.value||D.value)&&(D.value=!0,Q("outreach_reveal_started",{can_render:!!e.render_url}),!!e.render_url))try{const a=await fetch(e.render_url,{method:"POST",headers:{Accept:"application/json",...Ie()}});if(!a.ok||a.status===204)return;const v=await a.json();Array.isArray(v?.acts)&&(d.value=v.acts)}catch{}}function N(a){b.value&&(a.key!==" "&&a.code!=="Space"&&a.key!=="Enter"||z())}function V(){b.value&&z()}function ye(a){return a.revealed===!0}async function ge(){let a;try{const A=await fetch(e.status_url,{headers:{Accept:"application/json"}});if(!A.ok)return;a=await A.json()}catch{return}if(typeof a.phase=="string"&&a.phase!==r.value&&(r.value=a.phase,m.value=0),o.value=a.stage??o.value,i.value=a.progress??i.value,c.value=a.facts??c.value,d.value=a.acts??d.value,"brand_findings"in a&&($.value=a.brand_findings),"channels"in a&&(U.value=a.channels),E(),a.revealed===!0&&(R.value=e.reveal_url),f.value){F.value=ye(a);return}if(a.revealed===!0)return;const v=a.redirect_to;v&&(window.location.href=v)}function H(){L.value||(L.value=!0,window.location.href=R.value??e.reveal_url)}return we(()=>{q.value=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1,Ee(f.value?Ce(k.value,Te()):$e()),E(),M=setInterval(()=>{m.value+=1,E()},1e3),C=setInterval(ge,Ge),f.value&&(Q("outreach_prereveal_viewed",{can_render:!!e.render_url}),window.addEventListener("keydown",N,!0),window.addEventListener("click",V,!0))}),ke(()=>{C&&clearInterval(C),M&&clearInterval(M),window.removeEventListener("keydown",N,!0),window.removeEventListener("click",V,!0)}),(a,v)=>(y(),I(Ae,null,[_(_e(be),{title:"Building your first plan - Selzee"}),g("div",Oe,[_(Le,{variant:"plain",tone:"story"}),g("header",ze,[g("div",Ne,[_(We)])]),g("main",{class:Se(["fw-stage",W.value?"fw-stage--carded":"",f.value?"fw-stage--story":""]),"data-testid":"funnel-wait"},[f.value?(y(),B(G,{key:0,name:"fw-fade",mode:"out-in"},{default:Y(()=>[(y(),B(De,{key:l.value.key,"beat-key":l.value.key,kind:l.value.kind,copy:ae.value,copy2:te.value,sub:ne.value,art:l.value.art,alt:l.value.alt,lines:se.value,chips:oe.value,ads:re.value,trust:l.value.trust===!0?e.trusted_logos:null,logo:l.value.kind==="cover"?e.brand_logo_url:null,skip:F.value&&!O.value,onAdvance:ve,onSkip:he},null,8,["beat-key","kind","copy","copy2","sub","art","alt","lines","chips","ads","trust","logo","skip"]))]),_:1})):(y(),B(G,{key:1,name:"fw-fade",mode:"out-in"},{default:Y(()=>[(y(),I("div",{key:S.value.key,class:"fw-slide"},[_(Re,{src:ue.value,alt:"","img-class":Ke},null,8,["src"]),g("h1",Ve,K(le.value),1),g("p",He,K(ie.value),1)]))]),_:1})),b.value?J("",!0):(y(),B(Fe,{key:2,collapsed:f.value,dismissed:t.call_widget.dismissed,"booking-url":t.call_widget.booking_url,"delay-seconds":t.call_widget.delay_seconds,guest:t.guest,"call-request-url":t.call_request_url,onShown:v[0]||(v[0]=A=>W.value=A)},null,8,["collapsed","dismissed","booking-url","delay-seconds","guest","call-request-url"])),f.value?J("",!0):(y(),I("div",Ye,[_(Pe,{stage:ce.value,details:de.value,percent:pe.value,settled:!1,"logo-url":t.brand_logo_url??null}
1,null,8,["stage","details","percent","logo-url"])]))],2)])],64))}}),wa=Be(Je,[["__scopeId","data-v-8d81106b"]]);export{wa 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.