1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="874a8979-f3a7-4588-ab42-06f5d6bf9506",e._sentryDebugIdIdentifier="sentry-dbid-874a8979-f3a7-4588-ab42-06f5d6bf9506")}catch(h){}import{C as e}from"./ContentfulField.50bca384.js";import{cA as a,cB as t,c1 as l,cS as n,c7 as d,c9 as i,ca as s,cs as o,cb as r,ce as u,d0 as f,d1 as c,cc as b,cx as v,cf as y,cG as g,cQ as p}from"./index.061e774e.js";import"./useContentfulLivePreview.bf395284.js";const w={components:{ContentfulField:e},props:{...a,urlOverride:{type:String,default:null}},async setup(e,a){const{data:d,init:i}=t("pageComponentCtaButton",e,a),s=l((()=>{var e,a,t,l,i,s;return null!==(null==(e=d.value)?void 0:e.openInNewTab)&&void 0!==(null==(a=d.value)?void 0:a.openInNewTab)?(null==(t=d.value)?void 0:t.openInNewTab)?"_blank":"_self":null!==(null==(l=d.value)?void 0:l.url)&&void 0!==(null==(i=d.value)?void 0:i.url)?n.isStorefrontUrl(null==(s=d.value)?void 0:s.url)?"_self":"_blank":"_self"}));return await i(),{data:d,hrefTarget:s,urlOverride:e.urlOverride}}},m={class:"button-text align ctf-body"};var _=d(w,[["render",function(e,a,t,l,n,d){var w,_;const h=i("ContentfulField");return l.data?(s(),o("div",{key:0,class:g(["contentful-cta",["align-"+l.data.align,"mw-adjusted-align-"+l.data.align]])},[l.data.showTitle?(s(),r(h,{key:0,component:"div","entry-id":null==(w=e.sys)?void 0:w.id,fieldId:"title",class:"title no-transform align ctf-body"},{default:u((()=>[f(c(l.data.title),1)])),_:1},8,["entry-id"])):b("",!0),v("div",m,[y(h,{component:"a",fieldId:"buttonText","entry-id":null==(_=e.sys)?void 0:_.id,href:l.urlOverride||l.data.url,target:l.hrefTarget,class:g(["link"!==l.data.style&&"button",l.data.style,l.data.colour,l.data.size,l.data.fullWidthOnMobile&&"full-width-mobile"]),style:p(`color: ${l.data.fontColour}`),"aria-label":l.data.ariaLabel},{default:u((()=>[f(c(l.data.buttonText),1)])),_:1},8,["entry-id","href","target","class","style","aria-label"])])],2)):b("",!0)}]]);export{_ as default}; 2//# sourceMappingURL=ContentfulCTAButton.88faa021.js.map
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.