import{_ as b,e as i,c as r,d as o,n,t as l,f as _,g as u,T as g,U as f,E as h,w as m,V as x,X as T,Z as v}from"./CSGWN0Ke.js";import{_ as w}from"./RssLZfLx.js";import"./CoNkNGrd.js";const k={props:{slice:{type:Object,required:!0,default(){return{}}}},mounted(){"IntersectionObserver"in window?new IntersectionObserver((a,t)=>{a[0].isIntersecting&&(a[0].target.style.transform="translateY(0)",a[0].target.style.opacity="1",t.unobserve(a[0].target))}).observe(this.$el):(this.$el.style.transform="translateY(0)",this.$el.style.opacity="1")},computed:{topSpacing(){return this.slice.primary.top_spacing==="Small"?" pt-4 md:pt-8":this.slice.primary.top_spacing==="Medium"?" pt-8 md:pt-16":" pt-0"},bottomSpacing(){return this.slice.primary.bottom_spacing==="Small"?" pb-4 md:pb-8":this.slice.primary.bottom_spacing==="Medium"?" pb-8 md:pb-16":" pb-0"}}},S=["id"];function I(e,a,t,B,V,c){const p=T,d=w,y=v;return i(),r("section",{id:"uniqueId"in t.slice.primary&&t.slice.primary.uniqueId!=""?t.slice.primary.uniqueId:"",class:n(["n-text-cta",e.$styling("n-text-cta")])},[o("div",{class:n(["n-text-cta__content",e.$styling("n-text-cta__content")+c.topSpacing+c.bottomSpacing])},[o("header",{class:n(["n-text-cta__header",e.$styling("n-text-cta__header")])},[t.slice.primary.eyebrowHeadline.length?(i(),r("h3",{key:0,class:n(["n-text-cta__eyebrow",e.$styling("n-text-cta__eyebrow")])},l(e.$prismic.asText(t.slice.primary.eyebrowHeadline)),3)):_("",!0),u(p,{field:t.slice.primary.paragraph,class:n(["n-text-cta__paragraph",e.$styling("n-text-cta__paragraph")])},null,8,["field","class"])],2),t.slice.items.length&&t.slice.items[0].buttonText&&t.slice.items[0].buttonText!=""?(i(),r("div",{key:0,class:n(["n-text-cta__buttons",e.$styling("n-text-cta__buttons")])},[(i(!0),r(g,null,f(t.slice.items,s=>(i(),h(y,{key:e.$prismic.asText(s.buttonText)+s.buttonType,btnstyle:s.buttonType},{default:m(()=>[u(d,{document:s.buttonLink,class:n(["n-text-cta__button",e.$styling("n-text-cta__button",`button__${s.buttonType}`)]),slice_type:t.slice.slice_type},{default:m(()=>[x(l(e.$prismic.asText(s.buttonText)),1)]),_:2},1032,["document","class","slice_type"])]),_:2},1032,["btnstyle"]))),128))],2)):_("",!0)],2)],10,S)}const O=b(k,[["render",I]]);export{O as default};