PageSourceSearch

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

js mindvalley.com collected 2026-10-01 08:36:07 UTC 5,285 bytes, 1 lines download raw bytes

1import{_ as O}from"./CSRWUXxg.js";import{y as T,ay as W,ai as C,A as s,a4 as u,X as _,al as M,at as k,ah as y,aj as L,ag as v,ak as f,a1 as j,a0 as $,az as K,D as w,j as A,aq as S,_ as r,a9 as B,a5 as h}from"./D0rPpKiU.js";import{_ as U}from"./DoXveZxd.js";import"./fzrWStX7.js";import{H as q}from"#entry";import"./Cm11KPhQ.js";import"./BCTa1yj3.js";import"./BHe9BvlE.js";import"./D_gTWDL9.js";const E={key:0,class:"relative mb-4"},H=["onClick","aria-label"],I={class:"flex flex-1 items-center min-w-0"},Q=["aria-expanded","placeholder"],X={key:0,class:"absolute z-50 w-full mt-1 bg-white border border-cool-grey-250 rounded-sm shadow-lg max-h-48 overflow-y-auto",role:"listbox"},Y=["onClick","aria-selected"],G={key:0,xmlns:"http://www.w3.org/2000/svg",style:{"margin-right":"5px",display:"block","shape-rendering":"auto"},class:"h-5 w-5 animate-spin",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},J=T({__name:"RsvpFormMindvalley",props:K({blok:{}},{workshops:{default:[]},workshopsModifiers:{}}),emits:["update:workshops"],setup(i){const x=i,m=w(()=>{const o=x.blok?.workshops?.tbody;return!o||!Array.isArray(o)?[]:o.map(e=>{const n=e.body?.map(b=>b.value)||[];return{label:n[0]||"",value:n[1]||n[0]||""}}).filter(e=>e.label||e.value)}),l=W(i,"workshops"),d=A(""),a=A(!1),c=w(()=>{const o=l.value,e=m.value;return d.value.trim()?e.filter(n=>!o.includes(n.value)&&n.label.toLowerCase().includes(d.value.toLowerCase())):e.filter(n=>!o.includes(n.value))}),g=o=>{l.value.includes(o)||(l.value=[...l.value,o]),d.value="",a.value=!1},z=o=>{l.value=l.value.filter(e=>e!==o)},R=w(()=>{switch(x.blok?.btn_alignment){case"justify-center":return"justify-center";case"justify-end":return"justify-end";default:return"justify-start"}});return(o,e)=>{const n=O,b=S("editable");return C((r(),s("div",{class:f(["w-full mt-4 lg:mt-6 is-mindvalley",i.blok.form_width||"w-full",i.blok.newsletter_short_form_style?"newsletter-short-form":""])},[!i.blok.hide_workshop&&m.value.length>0?(r(),s("div",E,[u("div",{class:"group min-h-[48px] border border-cool-grey-250 rounded-sm bg-white px-3 py-2 flex flex-wrap gap-2 items-center focus-within:border-purple-600 transition-colors",onClick:e[4]||(e[4]=t=>a.value=!a.value),"aria-label":"Workshop selection"},[(r(!0),s(_,null,M(l.value,t=>(r(),s("span",{key:t,class:"inline-flex items-center gap-1 pl-2 pr-1 py-0.5 body-xs rounded bg-purple-50 text-purple-700 border border-purple-200"},[B(h(m.value.find(p=>p.value===t)?.label||t)+" ",1),u("button",{type:"button",class:"w-4 h-4 rounded-full hover:bg-purple-100 flex items-center justify-center text-purple-500",onClick:y(p=>z(t),["stop"]),"aria-label":`Remove ${t}`},[...e[7]||(e[7]=[u("svg",{class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,H)]))),128)),u("div",I,[m.value.length>0?C((r(),s("input",{key:0,"onUpdate:modelValue":e[0]||(e[0]=t=>d.value=t),type:"text",role:"combobox","aria-expanded":a.value,"aria-haspopup":"listbox",placeholder:l.value.length===0?i.blok.workshop_label||"Select workshops...":"Add more...",class:"flex-1 min-w-[120px] h-8 bg-transparent body-small text-cool-grey-900 placeholder:text-cool-grey-700 focus:outline-none cursor-pointer",onKeydown:[e[1]||(e[1]=k(y(t=>c.value.length===1?g(c.value[0].value):null,["prevent"]),["enter"])),e[2]||(e[2]=k(y(t=>a.value=!0,["prevent"]),["down"])),e[3]||(e[3]=k(t=>a.value=!1,["escape"]))],readonly:""},null,40,Q)),[[L,d.value]]):v("",!0),(r(),s("svg",{class:f(["w-4 h-4 text-cool-grey-400 shrink-0 ml-1 transition-transform",{"rotate-180":a.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[...e[8]||(e[8]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},null,-1)])],2))])]),a.value&&c.value.length>0?(r(),s("div",X,[(r(!0),s(_,null,M(c.value,t=>(r(),s("button",{key:t.value,type:"button",class:f(["w-full px-4 py-2.5 text-left body-small text-cool-grey-900 hover:bg-cool-grey-50 transition-colors",{"bg-purple-50 text-purple-700":l.value.includes(t.value)}]),onClick:p=>g(t.value),role:"option","aria-selected":l.value.includes(t.value)},h(t.label),11,Y))),128))])):v("",!0),a.value?(r(),s("div",{key:1,class:"fixed inset-0 z-40",onClick:e[5]||(e[5]=t=>a.value=!1)})):v("",!0)])):v("",!0),j(n,{blok:i.blok,workshops:l.value,"onUpdate:workshops":e[6]||(e[6]=t=>l.value=t),extras:i.blok.newsletter_short_form_style?{formClass:"newsletter-short-form"}:{}},{submit:$(({isLoading:t,cta:p,btnVariant:F,btnColor:N,btnSize:V,btnFullWidth:D})=>[u("div",{class:f(["flex",R.value])},[j(U,{type:"submit",disabled:t,variant:F||"primary",color:N||"webinar",size:V||"md","full-width":D??!1,"no-auto-margin":""},{default:$(()=>[t?(r(),s("svg",G,[...e[9]||(e[9]=[u("path",{d:"M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50",fill:"black",stroke:"none"},[u("animateTransform",{attributeName:"transform",type:"rotate",dur:"1s",repeatCount:"indef
1inite",keyTimes:"0;1",values:"0 50 51;360 50 51"})],-1)])])):v("",!0),B(" "+h(p),1)]),_:2},1032,["disabled","variant","color","size","full-width"])],2)]),_:1},8,["blok","workshops","extras"])],2)),[[b,i.blok]])}}}),ne=Object.assign(q(J,[["__scopeId","data-v-2d78b384"]]),{__name:"RsvpFormMindvalley"});export{ne 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.