PageSourceSearch

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

js mindvalley.com collected 2026-09-24 08:24:31 UTC 8,297 bytes, 1 lines download raw bytes

1import de from"./C6IdLlbC.js";import{ab as be,U as T}from"#entry";import{s as U}from"./DDOY1lLW.js";import{e as ge}from"./BUMBQk-v.js";import{y as me,k as z,H as F,G as ve,o as fe,j as m,ai as ke,A as i,a4 as v,ak as c,ag as u,ao as S,$ as V,X as N,al as q,F as A,D as o,E as pe,aq as _e,_ as a}from"./D0rPpKiU.js";import"./BNv_LDjD.js";import"./DAt9BhtR.js";import"./DSOapIjz.js";import"./D_gTWDL9.js";const he=["id","aria-label"],ye=["poster"],we=["src","type"],je={key:4,class:"absolute inset-0 -z-10 pointer-events-none video-overlay","aria-hidden":"true"},xe=me({__name:"SectionV2",props:{blok:{}},setup(d){const t=d,_=m(!1),I=m(!1),h=()=>{_.value=window.innerWidth<768};z(()=>{I.value=!0,h(),window.addEventListener("resize",h)}),F(()=>{window.removeEventListener("resize",h)});const G=o(()=>{const e=t.blok?.visibility;return!(e==="hide"||I.value&&(e==="hide-on-mobile"&&_.value||e==="hide-on-desktop"&&!_.value))}),g=m(null),l=o(()=>t.blok?.section_identifier?t.blok.section_identifier:t.blok?.section_name?t.blok.section_name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""):null),L=()=>{g.value&&g.value.scrollIntoView({behavior:"smooth"})},$=()=>{window.location.hash.replace("#","")===l.value&&L()},M=be(),R=o(()=>t.blok.__pageOrder);ve(()=>{if(!t.blok.navigable)return;const e=l.value;e&&M.registerSection({id:e,navigable:!0,name:t.blok?.section_name||e,order:R.value})}),z(()=>{l.value&&window.location.hash.replace("#","")===l.value&&L(),l.value&&window.addEventListener("hashchange",$)}),fe(()=>{if(window.removeEventListener("hashchange",$),t.blok.navigable){const e=l.value;e&&M.unregisterSection(e)}});const J=o(()=>"w-full"),B=o(()=>ge(t.blok?.classes||"")),X=o(()=>B.value.classes),K=o(()=>B.value.style),Q=o(()=>{switch(t.blok?.container){case"container":return"container";case"jumbo":return"container-jumbo";case"full-mobile":return"container-full-mobile";case"none":return"";default:return"container"}}),E=o(()=>t.blok?.layout==="centered_narrow"||t.blok?.layout==="centered_narrow_xl"),Y=o(()=>{const n=`gap-x-${t.blok?.column_gap||"6"}`;return E.value?`grid grid-cols-6 md:grid-cols-12 md:${n}`:`grid grid-cols-6 md:grid-cols-12 ${n}`}),H=o(()=>{switch(t.blok?.alignment_items){case"top":return"items-start";case"center":return"items-center";case"bottom":return"items-end";default:return""}}),Z=o(()=>{const n=`gap-x-${t.blok?.column_gap||"6"}`;switch(t.blok?.layout){case"centered_narrow":return`col-span-6 md:col-span-10 md:col-start-2 grid grid-cols-6 md:grid-cols-10 ${n}`;case"centered_narrow_xl":return`col-span-6 md:col-span-8 md:col-start-3 grid grid-cols-6 md:grid-cols-8 ${n}`;default:return""}}),P=o(()=>{const e=t.blok?.background_config?.background_color||t.blok?.background_color;return e?e.startsWith("bg-")?e:`bg-${e}`:""}),D=o(()=>{const e=t.blok?.background_config?.background_gradient;return e||""}),O=o(()=>{const e=t.blok?.background_config?.opacity;return e==null||e===1?{}:{opacity:e}}),ee=o(()=>{switch(t.blok?.section_gutter){case"sm":return"pt-8 lg:pt-12";case"md":return"pt-12 lg:pt-20";case"lg":return"pt-16 lg:pt-32";case"none":return"";default:return""}}),y=o(()=>{const e=t.blok?.background_config;return e?.background_image?.filename?e.background_image:t.blok?.background_image_desktop||null}),w=o(()=>{const e=t.blok?.background_config;return e?.mobile_background_image?.filename?e.mobile_background_image:t.blok?.background_image_mobile||null}),te=o(()=>!!(y.value?.filename||w.value?.filename)),f=o(()=>{const e=t.blok?.background_config,n=e?.background_video_asset?.filename,r=e?.background_video;return n||r||""}),k=o(()=>!!f.value),oe=o(()=>k.value?"min-h-[550px] lg:min-h-[calc(100vh-80px)] flex flex-col justify-center":""),ne=o(()=>y.value?.filename||w.value?.filename||""),re=o(()=>{const n=t.blok?.background_config?.background_video_asset?.content_type;if(n)return n;const r=f.value.toLowerCase().split("?")[0];return r.endsWith(".webm")?"video/webm":r.endsWith(".ogv")?"video/ogg":r.endsWith(".mov")?"video/quicktime":"video/mp4"}),j=m(null),p=m(!t.blok?.background_config?.lazy_video&&!!f.value);let b=null;const x=()=>{pe(()=>{j.value&&(j.value.muted=!0)})};z(()=>{if(k.value){if(!t.blok?.background_config?.lazy_video){p.value=!0,x();return}if(typeof IntersectionObserver>"u"||!g.value){p.value=!0,x();return}b=new IntersectionObserver(([e])=>{e.isIntersecting&&(p.value=!0,x(),b?.disconnect(),b=null)},{rootMargin:"200px"}),b.observe(g.value)}}),F(()=>{b?.disconnect(),b=null});const ae=o(()=>{switch(t.blok?.background_config?.background_fit||"cover"){case"cover":return"object-cover";case"contain":return"object-contain";case"fill":return"object-fill";case"none":return"object-none";default:return"object-cover"}}),se=o(()=>{const e=t.blok?.background_config?.background_position,n=String(e||"center").trim().toLowerCase().replace(/_/g,"-").replace(/\s+/g,"-");if(["top-10","top-20","top-30","bottom-70","bottom-80","bottom-90"].includes(n))return"md:object-center";switch(n){case"center":case"center-center":return"object-center";case"top":return"object-top";case"bottom":return"object-bottom";case"left":return"object-left";case"right":return"object-right";case"top-left":case"left-top":return"object-left-top";case"top-right":case"right-top":return"object-right-top";case"bottom-left":case"left-bottom":return"object-left-bottom";case"bottom-right":case"right-bottom":return"object-right-bottom";default:return"object-center"}}),ie=o(()=>{const e=t.blok?.background_config?.background_position,n=String(e||"").trim().toLowerCase().replace(/_/g,"-").replace(/\s+/g,"-");return{"top-10":"[object-position:center_10%]","top-20":"[object-position:center_20%]","top-30":"[object-position:center_30%]","bottom-70":"[object-position:center_70%]","bottom-80":"[object-position:center_80%]","bottom-90":"[object-position:center_90%]"}[n]||""}),le=o(()=>{switch(t.blok?.container){case"container":return{desktop:"1200px",tablet:"768px",mobile:"480px"};case"jumbo":return{desktop:"1640px",tablet:"1024px",mobile:"480px"};case"full-mobile":return{desktop:"1200px",tablet:"768px",mobile:"480px"};default:return{desktop:"100vw",tablet:"100vw",mobile:"640px"}}}),W=o(()=>
1{const e=y.value,n=w.value;if(!e?.filename&&!n?.filename)return null;const r=e?.filename?e:n,s=t.blok?.background_config,ce=!(s?.fetchpriority_background==="high"||s?.preload_background),ue=s?.background_fit||"cover",C=le.value;return{image:r,mobile_image:n?.filename?n:void 0,alt:r?.alt||"",fit:ue,quality:{value:65},lazy:ce,fetchpriority:s?.fetchpriority_background||"auto",preload:s?.preload_background||!1,styling:`absolute inset-0 w-full h-full ${ae.value} ${se.value} ${ie.value}`.replace(/\s+/g," ").trim(),desktop_width:C.desktop,tablet_width:C.tablet,mobile_width:C.mobile,aspect_ratio:"custom",placeholder:!1,width:"auto",height:"auto"}});return(e,n)=>{const r=_e("editable");return G.value?ke((a(),i("section",{key:0,ref_key:"sectionRef",ref:g,class:c([J.value,ee.value,X.value,{"nav-section":d.blok.navigable}]),style:S(K.value),id:l.value||void 0,"aria-label":d.blok.section_name||"Content section"},[v("div",{class:c(["relative",oe.value])},[P.value?(a(),i("div",{key:0,class:c(["absolute inset-0 -z-10",P.value])},null,2)):u("",!0),D.value?(a(),i("div",{key:1,class:c(["absolute inset-0 -z-10",D.value])},null,2)):u("",!0),te.value?(a(),i("div",{key:2,class:"absolute inset-0 -z-10 overflow-hidden",style:S(O.value)},[W.value?(a(),V(de,{key:0,blok:W.value},null,8,["blok"])):u("",!0)],4)):u("",!0),k.value&&p.value?(a(),i("div",{key:3,class:"absolute inset-0 -z-10 overflow-hidden",style:S(O.value)},[v("video",{ref_key:"backgroundVideoEl",ref:j,class:"w-full h-full object-cover",poster:ne.value||void 0,autoplay:"",muted:"",loop:"",playsinline:"",preload:"metadata","aria-hidden":"true"},[v("source",{src:f.value,type:re.value},null,8,we)],8,ye)],4)):u("",!0),k.value?(a(),i("div",je)):u("",!0),v("div",{class:c(Q.value)},[v("div",{class:c([Y.value,H.value])},[E.value?(a(),i("div",{key:0,class:c([Z.value,H.value])},[(a(!0),i(N,null,q(A(U)(d.blok.blocks),s=>(a(),V(T,{key:s._uid,blok:s},null,8,["blok"]))),128))],2)):(a(!0),i(N,{key:1},q(A(U)(d.blok.blocks),s=>(a(),V(T,{key:s._uid,blok:s},null,8,["blok"]))),128))],2)],2)],2)],14,he)),[[r,d.blok]]):u("",!0)}}}),He=Object.assign(xe,{__name:"SectionV2"});export{He 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.