PageSourceSearch

https://www.coterieseniorliving.com/_nuxt/e4XDqLwr.js

js coterieseniorliving.com collected 2026-09-29 14:23:20 UTC 3,175 bytes, 1 lines download raw bytes

1import $ from"./BQLoaLsa.js";import{_ as j}from"./BdMn5CsR.js";import A from"./D4XRjy62.js";import{d as P,W as G,e as H,w as b,S as g,b as y,E as h,f as C,u as a,C as I,g as R,p as S,L as z,i as s,j as u,x as W,t as k,l as X,c as i}from"./CvG0wzej.js";import{ctaActions as _}from"./ZCCy1zJi.js";import{u as q}from"./BE6AkpVx.js";import"./CSSxz1HG.js";const J=["id"],K={class:"pop-up-form__content has-background-pure"},Q={class:"pop-up-form__body"},Y={class:"pop-up-form__visible-slide"},Z={class:"pop-up-form__footer-container"},ee={class:"pop-up-form__slide-indicator eyebrow eyebrow--is-xxsmall"},te=["disabled"],ae=P({__name:"PopUpForm",props:{isVisible:{type:Boolean,default:!1},titleTag:{type:String,default:"h4"},titleStyle:{type:String,default:"4"},slideData:{type:Array,default:()=>[]},progressBarCompleteMessage:{type:String,default:"Complete!"},disableButton:{type:Boolean,default:!1},idValue:{type:String,default:"popUpForm"}},emits:["eventCloseModal","eventFormSubmit","eventNextSlide"],setup(l,{expose:w,emit:x}){const B=q(),p=y(null),t=y(0),r=l,o=i(()=>r.slideData[t.value]),d=i(()=>r.slideData.filter(e=>e.isForm)),D=i(()=>"pop-up-form"),V=i(()=>t.value===d.value.length?r.progressBarCompleteMessage:`${t.value+1}/${d.value.length}`),M=i(()=>d.value.length===0||t.value===0?0:t.value/d.value.length*100),E=i(()=>{let e="primary";return Object.hasOwn(o?.value,"ctaColorRole")&&(e=o?.value.ctaColorRole),B.ctaClassGenerator(e)}),c=x,m=e=>{c("eventCloseModal")};G(()=>t.value,(e,n)=>{e!==n&&p.value!==null&&p.value.focus()});function f(){let e=-1;t.value+1<r.slideData.length&&(e=t.value+1,c("eventNextSlide",e),t.value=e)}function T(e){switch(Object.hasOwn(o?.value,"heapEvent")&&typeof window.heap<"u"&&window.heap?.loaded&&window?.heap?.track(o?.value.heapEvent),e){case _.NEXT:{f();break}case _.SUBMIT:{c("eventFormSubmit");break}case _.CLOSE:{c("eventCloseModal");break}default:{t.value===r.slideData.length-1?c("eventCloseModal"):f();break}}}return w({progressSlides:f,currentSlide:t}),(e,n)=>{const F=$,L=j,N=A,O=h("keyListen"),U=h("trap");return C(),H(g,{name:"modal-fade"},{default:b(()=>[l.isVisible&&a(o)?I((C(),R("aside",{key:0,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:n[1]||(n[1]=z(v=>m(v),["self"])),id:l.idValue,class:S(a(D))},[s("div",K,[s("div",Q,[s("div",{class:"pop-up-form__title-container",ref_key:"popUpTitle",ref:p},[u(F,{text:a(o).title,tag:l.titleTag,styleLevel:l.titleStyle},null,8,["text","tag","styleLevel"]),s("button",{type:"button",class:"pop-up-form__close","aria-label":"Close",onClick:m},[u(L,{icon:"close",iconColor:"dark"})])],512),u(g,{name:"slide-slide"},{default:b(()=>[s("div",Y,[W(e.$slots,"default",{currentSlide:a(t)})])]),_:3})]),s("div",Z,[s("div",ee,k(a(V)),1),u(N,{percentage:a(M)},null,8,["percentage"]),s("button",{class:S(["pop-up-form__button button spacing spacing--is-mt-xsmall",a(E)]),disabled:!a(o)?.ctaValid||l.disableButton,onClick:n[0]||(n[0]=v=>T(a(o)?.ctaAction))},k(a(o)?.ctaText),11,te)])])],10,J)),[[O,{key:"Escape",callback:m}],[U,{active:l.isVisible,trapElementId:l.idValue}]]):X("",!0)]),_:3})}}}),de=Object.assign(ae,{__name:"PopUpForm"});export{de 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.