1import{o as r,bd as i,a9 as s,a7 as d,cH as u,bq as m,bp as n,bR as c,a8 as h,bz as a,bN as b,a6 as f}from"./BPlt5jNJ.js";import g from"./fyAfAxkJ.js";import"./UCTC3J7_.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08fd8958-55c7-451c-b01d-1931f46cb3ea",e._sentryDebugIdIdentifier="sentry-dbid-08fd8958-55c7-451c-b01d-1931f46cb3ea")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const y={name:"EditableLink",components:{ComputedLink:g},props:{modelValue:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1},incomplete:{type:Boolean,default:!1},theme:{type:Object,default:()=>{}},moduleTheme:{type:Object,default:()=>{}},context:{type:String,default:"button"},target:{type:String,default:"_self"},utagData:{type:Object,default:()=>{}},buttonStyle:{type:Object,default:()=>{}},slug:{type:String,default:""},type:{type:String,default:"button"}},emits:["scroll-to-module","tracking"],computed:{...i(["isSweepstakes","getPublicSlug","previewUuid"]),buttonSizing(){switch(this.type){case"multi-book-grid":return"w-full @sm:w-[200px]";case"multi-book-list":case"multi-image":return"w-[175px] @sm:w-[200px]";case"event":return"w-[175px] @sm:w-[200px] @sm:min-w-[80px]";default:return"w-full max-w-[225px]"}},link(){const e=this.context;let t=this.modelValue;return this.moduleTheme&&(t=this.moduleTheme),{alignment:t.alignment||this.theme?.meta?.[e]?.alignment,background:t.background||this.theme?.meta?.[e]?.background,backgroundHover:t.autoThemeButtonHover?t.color||this.theme?.meta?.[e]?.color:t.backgroundHover||this.theme?.meta?.[e]?.backgroundHover,borderColor:t.borderColor||this.theme?.meta?.[e]?.borderColor,borderWidth:t.borderWidth??this.theme?.meta?.[e]?.borderWidth,color:t.color||this.theme?.meta?.[e]?.color,fontFamily:t.fontFamily||this.theme?.meta?.[e]?.fontFamily,fontSize:t.fontSize||this.theme?.meta?.[e]?.fontSize,fontWeight:t.fontWeight||this.theme?.meta?.[e]?.fontWeight,hoverTextColor:t.autoThemeButtonHover?t.background||this.theme?.meta?.[e]?.background:t.hoverTextColor||this.theme?.meta?.[e]?.hoverTextColor,textTransform:t.textTransform??this.theme?.meta?.[e]?.textTransform,shape:t.shape??this.theme?.meta?.[e]?.shape}},wrapperCssClasses(){return{editable:this.editable,"flex justify-start @md:justify-end w-full":this.type==="event","text-black":this.incomplete}},linkCssClasses(){const e=this.buttonStyle?this.buttonStyle:this.link;return{"cta-link cursor-pointer inline-flex items-center justify-center text-center break-words":!0,"min-h-[35px]":!0,[this.buttonSizing]:!0,"p-1 leading-tight":!0,"text-center":this.type==="event","rounded-lg @xs:rounded-full":e.shape==="rounded",["border-solid border-"+e.borderWidth]:typeof e.borderWidth<"u",uppercase:e.textTransform,[e.fontFamily]:e.fontFamily,["font-weight-"+e.fontWeight]:e.fontWeight,["font-size-"+e.fontSize+"px"]:e.fontSize,"text-gray-100 bg-gray-500 border-dashed border-black border-2":this.incomplete}},linkCssVars(){if(this.incomplete)return;const e=this.buttonStyle?this.buttonStyle:this.link;return{"--theme-button-background-hover":e.backgroundHover,"--theme-button-background":this.incomplete?void 0:e.background,"--theme-button-border-color":e.borderColor,"--theme-button-color":e.color,"--theme-button-hover-text-color":e.hoverTextColor}},isPublic(){return this.$store.getters.isPublic}},methods:{trackCTA(){const e=this.$store.state.session.cookies?.prhlinkid,t={event_type:"module_click",...e&&{firstpartycookies_linkid:e},...this.utagData};this.$emit("tracking",t),this.$emit("scroll-to-module","top")}}},p=["innerHTML"];function k(e,t,o,_,x,l){return!l.isPublic||!o.incomplete&&l.isPublic?(a(),s("div",{key:0,class:n(l.wrapperCssClasses)},[(a(),d(c(o.modelValue.pageId?"ComputedLink":"a"),{key:o.modelValue.href||o.modelValue.pageId,href:o.modelValue.href,link:o.modelValue.pageId&&o.modelValue,slug:o.modelValue.pageId&&(l.isPublic?e.getPublicSlug:o.slug),"preview-uuid":o.modelValue.pageId&&e.previewUuid,class:n(l.linkCssClasse
1s),style:m(l.linkCssVars),"is-public":o.modelValue.pageId&&l.isPublic,target:o.modelValue.external?"_blank":null,rel:o.modelValue.href&&o.modelValue.external?"noopener noreferrer nofollow":null,onClick:l.trackCTA},{default:u(()=>[b(e.$slots,"default",{},()=>[f("span",{innerHTML:o.modelValue.text},null,8,p)],!0)]),_:3},8,["href","link","slug","preview-uuid","class","style","is-public","target","rel","onClick"]))],2)):h("",!0)}const S=Object.assign(r(y,[["render",k],["__scopeId","data-v-83e52bab"]]),{__name:"EditableLink"});export{S 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.