1import{t as m,C as p,_ as g,p as l,q as c,X as u,B as h,x as y,P as b}from"./main-CHUEluNB.js";import{i as w}from"./isNil-LVI18v7p.js";import{B as f}from"./BaseComponent.vue_vue_type_script_lang-CcHpmuwV.js";import{L as d}from"./index-D8VX1IOm.js";import"./BaseComponent.utils-ADJOHzt3.js";var k=Object.getOwnPropertyDescriptor,D=(e,t,r,s)=>{for(var n=s>1?void 0:s?k(t,r):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(n=i(n)||n);return n};let a=class extends f{constructor(){super(...arguments),this.LinkTargetType=d,this.pageContext=null}getComponentType(){return"dynamic_sharing_emails"}contentDidLoad(){super.contentDidLoad()}async mounted(){await super.mounted(),this.$helper.crawlDomAndAddEventlistenerToAllLinks([this.$el])}get availablePlaceholders(){return{seoTitle:this.getSeoTitle,seoDescription:this.getSeoDescription,ogTitle:this.getOGTitle,ogDescription:this.getOGDescription,ogUrl:this.getOGUrl,bookmarkListId:this.getBookmarkListId}}getSeoTitle(){return window.document.title||""}getSeoDescription(){const t=window.document.querySelector('meta[name="description"]');return t?t.content:window.document.title}getOGTitle(){const t=window.document.querySelector('meta[property="og:title"]');return t?t.content:window.document.title}getOGDescription(){const t=window.document.querySelector('meta[property="og:description"]');if(t)return t.content;const r=window.document.querySelector('meta[name="description"]');return r?r.content:""}getOGUrl(){return window.location.href}getBookmarkListId(){return this.user.getProperty("bookmarkListId")||""}get dynamicBody(){return encodeURIComponent(this.$helper.replacePlaceholders(this.body,this.availablePlaceholders))}get dynamicSubject(){return encodeURIComponent(this.$helper.replacePlaceholders(this.subject,this.availablePlaceholders))}get subject(){return this.contentProps.subject}get body(){return this.contentProps.body}get user(){return this.$user}get label(){return this.settingsProps.btn_label}get showLabel(){return this.settingsProps.show_label}get target(){return w(this.settingsProps.target)?d.SELF:this.settingsProps.target}get interactionName(){return this.showLabel?"Share":`Share | ${this.label}`}};a=D([p],a);const P=m(a),S={key:0,class:"skeleton__link"},L=["href","target","rel","data-component","data-id","data-interaction-name"];function T(e,t,r,s,n,o){const i=b("html-fragment");return e.contentLoaded?u((l(),c("a",{key:1,ref:"link",href:`mailto:?subject=${e.dynamicSubject}&body=${e.dynamicBody}`,target:e.target,rel:e.target===e.LinkTargetType.BLANK&&"noopener noreferrer",class:y(["dynamic-sharing-email btn",e.settingsProps.class]),style:h(e.settingsProps.style),"data-component":e.componentType,"data-id":e.internalId,"data-interaction-name":e.interactionName},null,14,L)),[[i,e.label]]):(l(),c("div",S))}const j=g(P,[["render",T]]);export{j 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.