import{_ as L,L as V,t as I,C as E,a0 as T,I as M,r as _,o as t,c as a,j as n,k as r,F as h,E as g,x as m,a as l,e as c,b as f,G as x,d as N,p as H,f as z}from"./app.2934e07b.js";import{S as D,P as F,N as R,A as j,a as A,b as O}from"./swiper-slide.b36045cb.js";import{E as G}from"./effect-fade.d919fe95.js";import q from"./staff-bio.4958d8aa.js";/* empty css                        */D.use([F,R,j]);const J={name:"carousel",components:{Anchor:V,CustomPicture:I,CustomSvg:E,Heading:T,Intersect:M,StaffBio:q,Swiper:A,SwiperSlide:O},setup(){return{modules:[G]}},props:["type","effect","randomOrder","swiperClasses","logos","icons","bios","reviews","homepageSlides","affiliateLogos","theme_id"],computed:{sliderClasses(){return this.swiperClasses.length>0?this.swiperClasses.join(" "):""}},mounted(){this.randomOrder&&this.shuffle()},data(){return{previouslyLocked:null,swiper:null,options:null,itemCount:0,intersected:!1,url:window.location.origin+window.location.pathname}},watch:{type:{immediate:!0,handler(){this.itemCount=this.getItemCount(),this.options={hero:{loop:!0,autoplay:{delay:5e3,pauseOnMouseEnter:!0},speed:2500,effect:this.effect==="crossFade"?"fade":"slide",fadeEffect:{crossFade:!0},pagination:{clickable:!0,el:".slider-pagination"},navigation:!1,slidesPerView:1},slider:{slidesPerView:0,pagination:{clickable:!0,el:".slider-pagination"},autoplay:{delay:5e3},navigation:this.showNavigation(),breakpoints:{320:{slidesPerView:"auto",spaceBetween:50,centeredSlides:!0,centeredSlidesBounds:!1},769:{slidesPerView:3,spaceBetween:50,centeredSlides:!1},1025:{slidesPerView:4,spaceBetween:50,centeredSlides:!1,centerInsufficientSlides:!0},1281:{slidesPerView:6,spaceBetween:50,centeredSlides:!1,centerInsufficientSlides:!0}}},sliderSingle:{slidesPerView:0,pagination:{clickable:!0,el:".slider-pagination"},autoplay:{delay:5e3},navigation:this.showNavigation(),breakpoints:{320:{slidesPerView:"auto",spaceBetween:50,centeredSlides:!0,centeredSlidesBounds:!1},769:{slidesPerView:1,spaceBetween:50,centeredSlides:!1}}},sliderDense:{slidesPerView:0,pagination:{clickable:!0,el:".slider-pagination"},autoplay:!1,navigation:this.showNavigation(),breakpoints:{320:{slidesPerView:"auto",spaceBetween:50,centeredSlides:!0,centeredSlidesBounds:!1},769:{slidesPerView:3,spaceBetween:50,centeredSlides:!1},1025:{slidesPerView:6,spaceBetween:50,centeredSlides:!1,centerInsufficientSlides:!0},1281:{slidesPerView:8,spaceBetween:50,centeredSlides:!1,centerInsufficientSlides:!0}}},carousel:{loop:!0,centeredSlides:!0,centeredSlidesBounds:!0,centerInsufficientSlides:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{clickable:!0,el:".slider-pagination"},breakpoints:{320:{spaceBetween:0,slidesPerView:1,enabled:this.getItemCount()>1},769:{spaceBetween:30,slidesPerView:3,enabled:this.getItemCount()>3},1024:{spaceBetween:30,slidesPerView:5,enabled:this.getItemCount()>5}}}}}}},methods:{onIntersect(s){if(s.isIntersecting){const p=this;this.$nextTick(()=>{p.intersected=!0})}},getItemCount(){return this.type==="hero-homepage"?this.homepageSlides.length:this.type==="insurance-providers"?this.logos.length:this.type==="affiliation-organizations"?this.affiliateLogos.length:this.type==="icons"?this.icons.length:this.type==="bios"?this.bios.length:this.type==="reviews"?this.reviews.length:0},showNavigation(){let s={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"};this.$nextTick(function(){return this.theme_id===3||this.theme_id===5?s:!1})},updateCenteredClass(s){if(!s.navigation)return;const p=s.params.navigation.lockClass,u=s.navigation.prevEl||null,b=s.navigation.nextEl||null,i=u!==null&&b!==null&&u.classList.contains(p)&&b.classList.contains(p);this.previouslyLocked!==i&&(s.el.classList.toggle("swiper-locked",i),s.update(),this.previouslyLocked=i)},shuffle(){for(let s=this.homepageSlides.length-1;s>0;s--){let p=Math.floor(Math.random()*(s+1));[this.homepageSlides[s],this.homepageSlides[p]]=[this.homepageSlides[p],this.homepageSlides[s]]}},onResize(s){this.updateCenteredClass(s)},onSwiper(s){if(this.swiper=s,this.type==="bios"){const p=this;this.$nextTick(()=>{p.updateCenteredClass(s)})}}}},w=s=>(H("data-v-ce5044ed"),s=s(),z(),s),K=["src"],Q={class:"slide-content"},U=["innerHTML"],W=w(()=>l("div",{class:"slider-pagination",slot:"pagination"},null,-1)),X={key:0,class:"container"},Y=w(()=>l("div",{class:"slider-pagination",slot:"pagination"},null,-1)),Z={class:"container"},$=w(()=>l("div",{class:"slider-pagination",slot:"pagination"},null,-1)),ee={class:"slider-navigation"},te=w(()=>l("div",{class:"slider-pagination",slot:"pagination"},null,-1)),ie={key:0,class:"swiper-button-prev",slot:"button-prev"},se={key:1,class:"swiper-button-next",slot:"button-next"},ne={class:"stars"},oe={key:0,class:"review"},le=["textContent"],ae={key:1,class:"author"},re=["textContent"],ce=w(()=>l("div",{class:"slider-navigation slider-navigation-reviews"},[l("div",{class:"slider-pagination",slot:"pagination"}),l("div",{class:"swiper-button-prev",slot:"button-prev"}),l("div",{class:"swiper-button-next",slot:"button-next"})],-1)),ue=["textContent"],de=["textContent"],pe=["innerHTML"],he={class:"slider-navigation"},ge={key:0,class:"slider-pagination",slot:"pagination"},fe=w(()=>l("div",{class:"swiper-button-prev",slot:"button-prev"},null,-1)),_e=w(()=>l("div",{class:"swiper-button-next",slot:"button-next"},null,-1));function me(s,p,u,b,i,d){const k=_("custom-picture"),P=_("heading"),v=_("anchor"),y=_("swiper-slide"),S=_("swiper"),C=_("custom-svg"),B=_("staff-bio");return t(),a(h,null,[u.type==="hero-homepage"&&i.itemCount>0?(t(),n(S,{key:0,class:"slider-hero-homepage",autoplay:i.options.hero.autoplay,loop:i.options.hero.loop,effect:i.options.hero.effect,order:i.options.hero.order,pagination:i.options.hero.pagination,navigation:i.options.hero.navigation,modules:b.modules,onSwiper:d.onSwiper},{default:r(()=>[(t(!0),a(h,null,g(u.homepageSlides,(e,o)=>(t(),n(y,{class:m(e.classes)},{default:r(()=>[e.multimedia?(t(),a("figure",{key:0,class:m(e.multimedia_type)},[l("iframe",{src:e.multimedia},null,8,K)],2)):c("",!0),e.img&&o===0?(t(),n(k,{key:1,src:e.img.url,sources:e.img.media,width:e.img.width,height:e.img.height,alt:e.img.alt,title:e.img.alt,imgClasses:"bg-img",loading:"eager",fetchpriority:"high"},null,8,["src","sources","width","height","alt","title"])):e.img&&o>0?(t(),n(k,{key:2,src:e.img.url,sources:e.img.media,width:e.img.width,height:e.img.height,alt:e.img.alt,title:e.img.alt,imgClasses:"bg-img",loading:"lazy",fetchpriority:"auto"},null,8,["src","sources","width","height","alt","title"])):c("",!0),l("div",Q,[f(P,{config:e.heading},null,8,["config"]),e.content?(t(),a("div",{key:0,class:"slide-content-container",innerHTML:e.content},null,8,U)):c("",!0),f(v,{href:e.button.href,class:m(e.button.class),innerHTML:e.button.text},null,8,["href","class","innerHTML"])])]),_:2},1032,["class"]))),256)),W]),_:1},8,["autoplay","loop","effect","order","pagination","navigation","modules","onSwiper"])):c("",!0),u.type==="insurance-providers"&&i.itemCount>0?(t(),n(S,{key:1,class:m(d.sliderClasses),autoplay:i.options.slider.autoplay,breakpoints:i.options.slider.breakpoints,pagination:i.options.slider.pagination,navigation:i.options.slider.navigation,onSwiper:d.onSwiper},{default:r(()=>[(t(!0),a(h,null,g(u.logos,e=>(t(),n(y,null,{default:r(()=>[e.media.length?(t(),a("div",X,[e.media.length?(t(!0),a(h,{key:0},g(e.media,o=>(t(),n(k,{pictureClasses:"img-container",src:o.url,sources:o.media,width:o.width,height:o.height,alt:o.alt,title:o.alt,imgClasses:"logo"},null,8,["src","sources","width","height","alt","title"]))),256)):c("",!0)])):c("",!0)]),_:2},1024))),256)),Y]),_:1},8,["class","autoplay","breakpoints","pagination","navigation","onSwiper"])):c("",!0),u.type==="affiliation-organizations"&&i.itemCount>0?(t(),n(S,{key:2,class:"slider-affiliation",autoplay:i.options.sliderDense.autoplay,breakpoints:i.options.sliderDense.breakpoints,pagination:i.options.sliderDense.pagination,navigation:i.options.sliderDense.navigation,onSwiper:d.onSwiper},{default:r(()=>[(t(!0),a(h,null,g(u.affiliateLogos,e=>(t(),n(y,null,{default:r(()=>[l("div",Z,[f(C,{type:"logo",name:e.name,id:e.id,title:e.title,desc:e.description},null,8,["name","id","title","desc"])])]),_:2},1024))),256)),$]),_:1},8,["autoplay","breakpoints","pagination","navigation","onSwiper"])):c("",!0),u.type==="icons"&&i.itemCount>0?(t(),n(S,{key:3,class:m(d.sliderClasses),autoplay:i.options.slider.autoplay,breakpoints:i.options.slider.breakpoints,pagination:i.options.slider.pagination,navigation:i.options.slider.navigation,onSwiper:d.onSwiper},{default:r(()=>[(t(!0),a(h,null,g(u.icons,e=>(t(),n(y,null,{default:r(()=>[f(v,{href:e.link,class:"container"},{default:r(()=>[f(C,{type:"icon",name:e.name,id:e.id,title:e.title,desc:e.description},null,8,["name","id","title","desc"])]),_:2},1032,["href"]),f(v,{href:e.link,class:"tertiary icon-text",innerHTML:e.text},null,8,["href","innerHTML"])]),_:2},1024))),256)),l("div",ee,[te,this.theme_id===3||this.theme_id===5?(t(),a("div",ie)):c("",!0),this.theme_id===3||this.theme_id===5?(t(),a("div",se)):c("",!0)])]),_:1},8,["class","autoplay","breakpoints","pagination","navigation","onSwiper"])):c("",!0),u.type==="reviews"&&i.itemCount>0?(t(),n(S,{key:4,class:m(d.sliderClasses),autoplay:i.options.sliderSingle.autoplay,breakpoints:i.options.sliderSingle.breakpoints,pagination:i.options.sliderSingle.pagination,navigation:i.options.sliderSingle.navigation,onSwiper:d.onSwiper},{default:r(()=>[(t(!0),a(h,null,g(u.reviews,e=>(t(),n(y,null,{default:r(()=>[l("div",ne,[f(C,{type:"icon",name:"icon-five-stars",class:"five-stars-icon",width:"201",height:"32"})]),e.review?(t(),a("div",oe,[l("p",{textContent:x(e.review)},null,8,le)])):c("",!0),e.author?(t(),a("div",ae,[l("p",{textContent:x(e.author)},null,8,re)])):c("",!0),this.theme_id===3?(t(),n(v,{key:2,href:i.url+"dental-reviews",class:"cta cta-border-bottom"},{default:r(()=>[N("Read more reviews")]),_:1},8,["href"])):c("",!0)]),_:2},1024))),256)),ce]),_:1},8,["class","autoplay","breakpoints","pagination","navigation","onSwiper"])):c("",!0),u.type==="bios"&&i.itemCount>0?(t(),n(S,{key:5,class:m(d.sliderClasses),loop:i.options.carousel.loop,breakpoints:i.options.carousel.breakpoints,pagination:i.options.carousel.pagination,navigation:i.options.carousel.navigation,onSwiper:d.onSwiper,onResize:d.onResize},{default:r(()=>[(t(!0),a(h,null,g(u.bios,e=>(t(),n(y,null,{default:r(()=>[f(B,null,{avatar:r(()=>[e.bio?(t(),n(v,{key:0,href:e.url,title:e.full_name_degree_list},{default:r(()=>[e.media.length?(t(!0),a(h,{key:0},g(e.media,o=>(t(),n(k,{pictureClasses:"img-container",src:o.url,sources:o.media,width:o.width,height:o.height,alt:o.alt,title:e.full_name_degree_list,imgClasses:"logo"},null,8,["src","sources","width","height","alt","title"]))),256)):(t(),n(C,{key:1,type:"staff",name:"staff-placeholder",class:"staffPlaceholder",width:"170",height:"170",alt:"Staff Placeholder",title:e.full_name_degree_list},null,8,["title"]))]),_:2},1032,["href","title"])):e.media.length?(t(!0),a(h,{key:1},g(e.media,o=>(t(),n(k,{pictureClasses:"img-container",src:o.url,sources:o.media,width:o.width,height:o.height,alt:o.alt,title:e.full_name_degree_list,imgClasses:"logo"},null,8,["src","sources","width","height","alt","title"]))),256)):(t(),n(C,{key:2,type:"staff",name:"staff-placeholder",class:"staffPlaceholder",width:"170",height:"170",alt:"Staff Placeholder",title:e.full_name_degree_list},null,8,["title"]))]),heading:r(()=>[e.bio?(t(),n(v,{key:0,href:e.url,title:e.full_name_degree_list},{default:r(()=>[l("p",{class:"title slider-bio-title",textContent:x(e.full_name_degree_list)},null,8,ue)]),_:2},1032,["href","title"])):(t(),a("p",{key:1,class:"title slider-bio-title",textContent:x(e.full_name_degree_list)},null,8,de))]),eyebrow:r(()=>[l("p",{class:"eyebrow",innerHTML:e.title_list},null,8,pe)]),_:2},1024)]),_:2},1024))),256)),l("div",he,[this.theme_id===3||this.theme_id===5?(t(),a("div",ge)):c("",!0),fe,_e])]),_:1},8,["class","loop","breakpoints","pagination","navigation","onSwiper","onResize"])):c("",!0)],64)}const Ce=L(J,[["render",me],["__scopeId","data-v-ce5044ed"]]);export{Ce as default};