import{_ as b,e as a,c,d as l,n,t as o,f as r,g as _,T as g,U as x,E as f,w as u,V as p,X as h,Z as T}from"./CSGWN0Ke.js";import{_ as k}from"./RssLZfLx.js";import"./CoNkNGrd.js";const v={props:{slice:{type:Object,required:!0,default(){return{}}}},mounted(){"IntersectionObserver"in window?new IntersectionObserver((i,t)=>{i[0].isIntersecting&&(i[0].target.style.transform="translateY(0)",i[0].target.style.opacity="1",t.unobserve(i[0].target))}).observe(this.$el):(this.$el.style.transform="translateY(0)",this.$el.style.opacity="1")}},w=["id"];function I(e,i,t,$,B,C){const d=h,y=k,m=T;return a(),c("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","n-text-cta-default")])},[l("div",{class:n(["n-text-cta__content",e.$styling("n-text-cta__content")])},[l("header",{class:n(["n-text-cta__header",e.$styling("n-text-cta__header")])},[t.slice.primary.eyebrowHeadline.length?(a(),c("h3",{key:0,class:n(["n-text-cta__eyebrow",e.$styling("n-text-cta__eyebrow")])},o(e.$prismic.asText(t.slice.primary.eyebrowHeadline)),3)):r("",!0),_(d,{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!=""?(a(),c("div",{key:0,class:n(["n-text-cta__buttons",e.$styling("n-text-cta__buttons","n-text-cta__buttons-default")])},[(a(!0),c(g,null,x(t.slice.items,s=>(a(),f(m,{key:e.$prismic.asText(s.buttonText)+s.buttonType,btnstyle:s.buttonType},{default:u(()=>[_(y,{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:u(()=>[p(o(e.$prismic.asText(s.buttonText)),1)]),_:2},1032,["document","class","slice_type"])]),_:2},1032,["btnstyle"]))),128))],2)):r("",!0)],2),t.slice.primary.backgroundColour?(a(),c("div",{key:0,class:n(["n-text-cta__bg",e.$styling("n-text-cta__bg",t.slice.primary.backgroundColour)])},null,2)):r("",!0)],10,w)}const O=b(v,[["render",I]]);export{O as default};