PageSourceSearch

https://storyblok-assets-ng.mindvalley.com/_nuxt/BwO1y_CD.js

js mindvalley.com collected 2026-09-24 08:25:58 UTC 13,529 bytes, 1 lines download raw bytes

1import{_ as J}from"./BNv_LDjD.js";import{y as ee,A as i,a5 as o,ag as u,a4 as d,X as we,al as Le,ak as _,D as a,_ as s,$ as N,ao as te,a9 as Z,l as Pe,ai as qe,a1 as Ce,i as X,j as F,aq as Te}from"./D0rPpKiU.js";import{u as Se,P as Ne,m as Ue}from"./Bg81TJLn.js";import{P as Ee}from"./D77VGzU8.js";import{a as Ae,c as Be,e as Fe}from"./yyw7z9Lp.js";import{P as Ke}from"./CiV7wyhZ.js";import{e as Me}from"./D7GZ5IbA.js";import{f as S,p as K,s as Qe,P as G}from"./Bkyi20I3.js";import"#entry";import"./D_gTWDL9.js";import"./wzWXuswT.js";import"./BlI-FQnq.js";import"./C4NJUCqF.js";import"./BHe9BvlE.js";import"./BCTa1yj3.js";import"./DOghimL-.js";import"./CHudUinb.js";import"./D8nlBy8-.js";import"./Bg7opIwV.js";import"./Bw8KN4px.js";import"./DSqrqKx1.js";import"./B63Sb6lF.js";import"./CA0L0dfh.js";const ze=["aria-label"],Ie={key:0,class:"font-sharp-grotesk-semibold-20 mb-2 text-center text-[36px] leading-[44px] text-black","data-match-title":""},Ye={key:1,class:"font-sharp-grotesk-semibold-20 mb-1.5 text-center text-[24px] text-black","data-match-headline":""},$e={key:2,class:"mx-auto mb-7 max-w-[560px] text-center text-[18px] text-[#000000ad]","data-match-subtitle":""},je={class:"mb-6 flex flex-col gap-6"},De=["data-pathway"],Oe={class:"flex flex-col gap-1.5 p-5"},Ve={class:"mb-1.5 flex flex-wrap items-center gap-x-2.5 gap-y-1"},Re={key:0,class:"text-[11px] text-[#00000099]","data-match-score":""},He={class:"font-sharp-grotesk-semibold-20 text-[24px] text-black","data-match-name":""},We={key:0,class:"font-sharp-grotesk-semibold-20 text-[16px] text-black"},Ze={class:"my-0.5 text-[11px] text-[#00000099]","data-match-count":""},Xe=["data-match-details","onClick"],Ge={key:1,class:"my-1 text-[14px] leading-5 text-black","data-match-quote":""},Je={class:"font-sharp-grotesk-semibold-20","data-match-quote-text":""},et={key:2,class:"mb-2 text-[14px] text-[#0000005e]","data-match-description":""},tt=["aria-label"],at={key:4,class:"mb-3 flex flex-wrap items-baseline gap-2.5","data-match-price-row":""},lt={class:"font-sharp-grotesk-semibold-20 text-[36px] text-black","data-match-price":""},st={key:0,class:"text-[20px] text-[#9f9f9f] line-through","data-match-old-price":""},ot={key:1,class:"text-[14px] text-[#00000099]","data-match-period":""},it={key:5,class:"mb-3 text-[14px] text-[#00000099]","data-match-unavailable":""},ct=["disabled","data-match-cta","onClick"],nt={class:"font-sharp-grotesk-semibold-20 mb-2 text-[30px] text-black"},rt={key:0,class:"mb-5 text-[14px] text-[#000000ad]"},ut={class:"flex flex-col items-stretch justify-center gap-3"},dt=["href"],ht=["href"],mt=ee({__name:"PathwayMatchResultBase",props:{cards:{default:()=>[]},title:{default:""},headline:{default:""},subtitle:{default:""},quotePrefix:{default:"You told us"},quoteSuffix:{default:"{pathway} is built for exactly that."},countLabel:{default:"{count} programs, sequenced."},detailsLabel:{default:"See what’s inside →"},loadingLabel:{default:"Loading prices"},unavailableLabel:{default:"Pricing is unavailable right now."},upsell:{default:null},theme:{default:"states"},ariaLabel:{default:"Your top two pathways"}},emits:["checkout","details"],setup(l,{emit:n}){const y=l,p={states:{card:"",badge:"bg-black",cta:"bg-black",outline:"border-black text-black"},mindvalley:{card:"border border-cool-grey-200",badge:"bg-purple-600",cta:"bg-purple-600",outline:"border-purple-600 text-purple-600"}},x=a(()=>p[y.theme]),q=n,h=k=>{const c=(y.quoteSuffix||"").replace("{pathway}",k.name).trim();return c?` ${c}`:""},U=k=>(y.countLabel||"").replace("{count}",String(k.programsCount));return(k,c)=>{const w=J;return s(),i("section",{"aria-label":l.ariaLabel,"data-match-result":""},[l.title?(s(),i("h2",Ie,o(l.title),1)):u("",!0),l.headline?(s(),i("h3",Ye,o(l.headline),1)):u("",!0),l.subtitle?(s(),i("p",$e,o(l.subtitle),1)):u("",!0),d("ol",je,[(s(!0),i(we,null,Le(l.cards,t=>(s(),i("li",{key:t.key,"data-match-card":"","data-pathway":t.key,class:_(["flex flex-col overflow-hidden rounded-2xl bg-white shadow-[0_2px_12px_#0000000f]",x.value.card])},[t.coverUrl?(s(),N(w,{key:0,src:t.coverUrl,alt:t.name,width:"640",height:"360",loading:"lazy",class:"block aspect-video w-full object-cover","data-match-cover":""},null,8,["src","alt"])):(s(),i("div",{key:1,class:"aspect-video w-full",style:te({backgroundImage:t.gradient}),"data-match-cover-fallback":"","aria-hidden":"true"},null,4)),d("div",Oe,[d("div",Ve,[d("span",{class:_(["font-sharp-grotesk-semibold-20 inline-flex items-center rounded-[5px] px-2.5 py-1 text-[11px] uppercase tracking-[0.08em] text-white",x.value.badge]),"data-match-badge":""},o(t.badge),3),t.matchLabel?(s(),i("span",Re,o(t.matchLabel),1)):u("",!0)]),d("h3",He,o(t.name),1),t.tagline?(s(),i("p",We,o(t.tagline),1)):u("",!0),d("p",Ze,o(U(t)),1
1),d("button",{type:"button",class:"font-sharp-grotesk-medium-20 self-start text-[14px] text-black underline underline-offset-4","data-match-details":t.key,onClick:g=>q("details",t.key)},o(l.detailsLabel),9,Xe),t.quote?(s(),i("p",Ge,[Z(o(l.quotePrefix)+" ",1),d("strong",Je,"“"+o(t.quote)+"”",1),Z("."+o(h(t)),1)])):u("",!0),t.description?(s(),i("p",et,o(t.description),1)):u("",!0),t.isLoading&&!t.tier?(s(),i("div",{key:3,class:"mb-3 h-11 w-40 animate-pulse rounded bg-[#0000001a]",role:"status","aria-label":l.loadingLabel,"data-match-price-loading":""},null,8,tt)):t.tier?(s(),i("div",at,[d("span",lt,o(t.tier.price),1),t.tier.oldPrice?(s(),i("span",st,o(t.tier.oldPrice),1)):u("",!0),t.periodLabel?(s(),i("span",ot,o(t.periodLabel),1)):u("",!0)])):(s(),i("p",it,o(l.unavailableLabel),1)),d("button",{type:"button",class:_(["font-sharp-grotesk-medium-20 h-12 w-full rounded-full text-[16px] text-white disabled:cursor-not-allowed disabled:opacity-35",x.value.cta]),disabled:!t.tier?.checkoutUrl,"data-match-cta":t.key,onClick:g=>t.tier&&q("checkout",t.key,t.tier)},o(t.ctaLabel),11,ct)])],10,De))),128))]),l.upsell?(s(),i("div",{key:3,class:_(["mb-5 rounded-2xl bg-white px-6 py-7 text-center",x.value.card]),"data-match-upsell":""},[d("h3",nt,o(l.upsell.title),1),l.upsell.copy?(s(),i("p",rt,o(l.upsell.copy),1)):u("",!0),d("div",ut,[l.upsell.primaryLabel&&l.upsell.primaryUrl?(s(),i("a",{key:0,href:l.upsell.primaryUrl,class:_(["font-sharp-grotesk-medium-20 inline-flex h-12 items-center justify-center rounded-full px-7 text-[16px] text-white no-underline",x.value.cta]),"data-match-upsell-primary":""},o(l.upsell.primaryLabel),11,dt)):u("",!0),l.upsell.secondaryLabel&&l.upsell.secondaryUrl?(s(),i("a",{key:1,href:l.upsell.secondaryUrl,class:_(["font-sharp-grotesk-medium-20 inline-flex h-12 items-center justify-center rounded-full border-2 bg-transparent px-7 text-[16px] no-underline",x.value.outline]),"data-match-upsell-secondary":""},o(l.upsell.secondaryLabel),11,ht)):u("",!0)])],2)):u("",!0)],8,ze)}}}),pt=Object.assign(mt,{__name:"PathwayMatchResultBase"}),bt=["data-pathway","aria-label"],yt={class:"overline-text mb-2 uppercase tracking-[0.14em] text-white/70","data-match-details-eyebrow":""},ft={class:"title-bold-4 mb-3 tracking-[-0.02em]","data-match-details-title":""},xt={key:1,class:"body mb-8 text-white/85"},vt={key:3,class:"title-bold-8 mb-5 text-center"},gt=ee({__name:"PathwayQuizMatch",props:{blok:{}},setup(l){const n={title:"Your top two pathways",headline:"{identity}",subtitle:"Both are built for what you told us. Start with your top match.",topMatchLabel:"Top match",alsoFitsLabel:"Also fits",matchLabel:"{score}% match",ctaLabel:"Start my {pathway} pathway →",quotePrefix:"You told us",quoteSuffix:"{pathway} is built for exactly that.",countLabel:"{count} programs, sequenced.",detailsCtaLabel:"See what’s inside →",detailsEyebrow:"{pathwayFull}",detailsTitle:"{identity}",programsTitle:"All {count} programs",backLabel:"↑ Back to plans",teacherPrefix:"with",yearlyPeriodLabel:"/ year",monthlyPeriodLabel:"/ month"},y=l,p=X(Ke,void 0),x=X(Fe,void 0),q=a(()=>x?.value??"states"),h=a(()=>p?.value.pathways??[]),U=a(()=>p?.value.firstName||""),k=Ae({variant:p?.value.variant}),c=(e,r)=>y.blok[e]||r,w=e=>y.blok[e]||void 0,t=a(()=>y.blok.default_period==="monthly"?"monthly":"yearly"),g=[0,1].map(e=>Se(()=>h.value[e]?.offering?.checkoutLinks??null,{tags:()=>y.blok.tags||"",offerName:y.blok.offer_name||void 0})),ae=e=>{const r=g[e]?.tiers.value??[];return r.find(b=>b.period===t.value)??r[0]??null},le=e=>e?e.period==="yearly"?c("yearly_period_label",n.yearlyPeriodLabel):c("monthly_period_label",n.monthlyPeriodLabel):"",f=e=>e.offering??e.info,M=e=>f(e)?.name||e.pathway.name,C=e=>Qe(M(e)),E=e=>f(e)?.programsCount||f(e)?.programs.length||K(e.pathwayKey).fallbackCount,Q=e=>typeof e.score=="number"?Math.round(e.score*100):null,A=a(()=>h.value.slice(0,g.length).map((e,r)=>{const b=C(e),v=ae(r);return{key:e.pathwayKey,badge:r===0?c("top_match_label",n.topMatchLabel):c("also_fits_label",n.alsoFitsLabel),matchLabel:Q(e)===null?"":S(c("match_label",n.matchLabel),{score:Q(e)??0}),name:b,tagline:e.pathway.tagline||"",quote:r===0?p?.value.bestSelfQuote||"":p?.value.deeperQuote||p?.value.bestSelfQuote||"",description:f(e)?.description||"",coverUrl:f(e)?.coverAsset?.url||"",gradient:K(e.pathwayKey).gradient,programsCount:E(e),tier:v,periodLabel:le(v),isLoading:g[r]?.isLoading.value??!1,ctaLabel:S(c("cta_label",n.ctaLabel),{pathway:b})}})),z=a(()=>({firstName:U.value,identity:p?.value.identity||"",pathway:h.value[0]?C(h.value[0]):"",pathway2:h.value[1]?C(h.value[1]):"",count:h.value[0]?E(h.value[0]):0})),L=(e,r)=>S(c(e,r),z.value).replace(/^,\s*/,"").trim(),se=a(()=>L("title",n.title)),oe=a(()=>L("headline",n.headline)),ie=a(()=>L("subtitle",n.subtitle)),ce=a(()=>c("quote_prefix",n.quotePrefix)),ne=a(()=>
1c("quote_suffix",n.quoteSuffix)),re=a(()=>c("count_label",n.countLabel)),ue=a(()=>c("details_cta_label",n.detailsCtaLabel)),de=a(()=>c("aria_label","Your top two pathways")),I=F(null),Y=F(null),$=F(null),m=a(()=>h.value.find(e=>e.pathwayKey===$.value)??h.value[0]??null),he=a(()=>K(m.value?.pathwayKey??"mind")),j=a(()=>(m.value?f(m.value)?.coverAsset?.url:null)||""),D=a(()=>(m.value?f(m.value)?.description:null)||""),T=a(()=>m.value?f(m.value)?.programs??[]:[]),O=a(()=>m.value?Ue(p?.value.bottleneck.id??null,m.value.pathwayKey,T.value):[]),me=a(()=>m.value?Me(m.value.pathwayKey,p?.value.growthArea??null):""),pe=a(()=>{const e=m.value;return{...z.value,identity:me.value,pathway:e?C(e):"",pathwayFull:e?M(e):"",count:e?E(e):0}}),P=(e,r)=>S(c(e,r),pe.value).trim(),V=a(()=>P("details_eyebrow",n.detailsEyebrow)),R=a(()=>P("details_title",n.detailsTitle)),be=a(()=>P("curriculum_title",G.curriculumTitle)),ye=a(()=>P("curriculum_subtitle",G.curriculumSubtitle)),fe=a(()=>c("teacher_prefix",n.teacherPrefix)),H=a(()=>P("programs_title",n.programsTitle)),xe=a(()=>c("back_label",n.backLabel)),W=e=>{e&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({behavior:"smooth",block:"start"})};function ve(e){$.value=e,W(Y.value)}function ge(){W(I.value)}const ke=a(()=>{const e=L("upsell_title","");return e?{title:e,copy:L("upsell_copy",""),primaryLabel:c("upsell_cta_label",""),primaryUrl:c("upsell_cta_url",""),secondaryLabel:c("upsell_secondary_label",""),secondaryUrl:c("upsell_secondary_url","")}:null});g.forEach(e=>{Pe(()=>e.tiers.value.length,r=>{r&&e.trackView(t.value)},{immediate:!0})});async function _e(e,r){const b=h.value.findIndex(B=>B.pathwayKey===e),v=h.value[b];if(!(!v||!r.checkoutUrl)){try{k.trackRecommendationClicked({recommendedPathwayName:f(v)?.name||v.pathway.name,ctaName:Be(A.value[b]?.ctaLabel||"","startMyPathway")}),await g[b]?.trackClick(r.period)}catch(B){console.error("[PathwayQuizMatch] tracking failed, continuing to checkout:",B)}window.location.href=r.checkoutUrl}}return(e,r)=>{const b=J,v=Te("editable");return A.value.length?qe((s(),i("div",{key:0,ref_key:"rootEl",ref:I},[Ce(pt,{cards:A.value,title:se.value,headline:oe.value,subtitle:ie.value,"quote-prefix":ce.value,"quote-suffix":ne.value,"count-label":re.value,"details-label":ue.value,"loading-label":w("loading_label"),"unavailable-label":w("unavailable_label"),upsell:ke.value,theme:q.value,"aria-label":de.value,onCheckout:_e,onDetails:ve},null,8,["cards","title","headline","subtitle","quote-prefix","quote-suffix","count-label","details-label","loading-label","unavailable-label","upsell","theme","aria-label"]),m.value?(s(),i("section",{key:0,ref_key:"detailsEl",ref:Y,class:"-mx-5 mt-12 scroll-mt-24 px-5 py-10 text-white",style:te({backgroundImage:he.value.gradient}),"data-match-details-panel":"","data-pathway":m.value.pathwayKey,"aria-label":R.value},[j.value?(s(),N(b,{key:0,src:j.value,alt:V.value,width:"640",height:"360",loading:"lazy",class:"mb-6 aspect-video w-full rounded-2xl object-cover","data-match-details-cover":""},null,8,["src","alt"])):u("",!0),d("p",yt,o(V.value),1),d("h2",ft,o(R.value),1),D.value?(s(),i("p",xt,o(D.value),1)):u("",!0),O.value.length?(s(),N(Ne,{key:2,class:"mb-10",tone:"inverse",phases:O.value,title:be.value,subtitle:ye.value,"phase-label-template":w("phase_label"),"teacher-prefix":fe.value},null,8,["phases","title","subtitle","phase-label-template","teacher-prefix"])):u("",!0),T.value.length?(s(),i("h3",vt,o(H.value),1)):u("",!0),T.value.length?(s(),N(Ee,{key:4,programs:T.value,"aria-label":H.value},null,8,["programs","aria-label"])):u("",!0),d("button",{type:"button",class:"font-sharp-grotesk-medium-20 mx-auto mt-8 block text-[14px] text-white underline underline-offset-4","data-match-back":"",onClick:ge},o(xe.value),1)],12,bt)):u("",!0)])),[[v,l.blok]]):u("",!0)}}}),Dt=Object.assign(gt,{__name:"PathwayQuizMatch"});export{Dt 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.