1import{a as e}from"./nuxt-Dw3LQvcO.mjs";import{A as t,Bt as n,D as r,E as i,H as a,Ht as o,O as s,Ot as c,P as l,Pt as u,Zt as d,ct as f,g as p,it as m,k as h,kn as g,lt as _,o as v,tt as y,un as b,y as x}from"./vue.runtime.esm-bundler-DK-ieOMu.mjs";import{a as S,i as C}from"./useOneTrust-BLn7DS5z.mjs";import{t as w}from"./IconElement-DRwLcDEX.mjs";import{t as T}from"./_plugin-vue_export-helper-BDNMzG2s.mjs";import{a as E,f as D}from"./graphql-spR_bC68.mjs";import{t as O}from"./useShareLink-D43ehMeN.mjs";import{t as k}from"./interval-CSh7eJOd.mjs";u(),a();var A=[`aria-label`],j={__name:`WebShareLink`,props:{network:{type:String,required:!0},url:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:``}},setup(e){let r=n({width:626,height:436,top:0,left:0}),i=o(void 0),a=o(null),s=O(e.network,e.url,e.title,e.description);function c(){let e=window.innerWidth||document.documentElement.clientWidth||window.screenX,t=window.innerHeight||document.documentElement.clientHeight||window.screenY,n=e/window.screen.availWidth;r.left=(e-r.width)/2/n+(window.screenLeft===void 0?window.screenX:window.screenLeft),r.top=(t-r.height)/2/n+(window.screenTop===void 0?window.screenY:window.screenTop)}function l(){c(),i.value&&a.value&&(clearInterval(a.value),i.value.close()),i.value=window.open(s,`web-share-link-`+e.network?.toLowerCase(),`,height=`+r.height+`,width=`+r.width+`,left=`+r.left+`,top=`+r.top+`,screenX=`+r.left+`,screenY=`+r.top),i.value&&(i.value.focus(),a.value=k(()=>{(!i.value||i.value.closed)&&(clearInterval(a.value),i.value=null)},500))}return(n,r)=>(m(),t(`a`,{href:`javascript:void(0)`,"aria-label":e.network,onClick:r[0]||=e=>l()},[_(n.$slots,`default`)],8,A))}};a(),u(),b();var M={class:`ebm-share-wrapper`,role:`region`},N={class:`ebm-share-list`,role:`list`},P={key:0,class:`ebm-share-item email-icon`},F=[`href`],I=T({__name:`WebShareLinksNew`,props:{title:{type:String,required:!0},description:{type:String,default:``},useEmail:{type:Boolean,default:!0},path:{type:String,required:!0}},emits:[`social-share-click`],setup(n,{emit:a}){let o=n,s=a,{$ss:u}=e(),p=i(()=>`https://`+u.tenantInfo.domain+o.path),_=i(()=>`mailto:?subject=${o.title}&body=${p.value}%0D%0A${o.description??``}`);function v(e){return`mingcute:${e?.toLowerCase().replace(`twitter`,`social-x`)}-line`}function y(e,t,n=``){return{listPosition:e,socialNetwork:t,to:n}}return(e,i)=>{let a=w,o=j;return m(),t(`div`,M,[r(`ul`,N,[(m(!0),t(x,null,f(d(u)?.contentTitleBlock?.socialShareLinks,e=>(m(),t(`li`,{key:e,class:g(`ebm-share-item ${e}-icon`)},[l(o,{network:e,url:d(p),title:n.title,description:n.description,onClick:t=>s(`social-share-click`,y(d(u)?.contentTitleBlock?.socialShareLinks.indexOf(e)+1,e))},{default:c(()=>[l(a,{icon:v(e),"icon-color":`#767676`,width:20},null,8,[`icon`])]),_:2},1032,[`network`,`url`,`title`,`description`,`onClick`])],2))),128)),n.useEmail?(m(),t(`li`,P,[r(`a`,{href:d(_),"aria-label":`email`,onClick:i[0]||=e=>s(`social-share-click`,y(d(u)?.contentTitleBlock?.socialShareLinks.length+1,d(D).Email,d(_)))},[l(a,{icon:`mdi:email-outline`,"icon-color":`#767676`,width:20})],8,F)])):h(``,!0)])])}}},[[`__scopeId`,`data-v-d359f70d`]]);u(),a(),v();var L={__name:`WebFavoriteContentToggle`,props:{contentId:{type:Number},contentUrl:{type:String}},setup(e){let t=o(!1),n=o(!1),{trackContentFavorite:r}=C();y(async()=>{((await S.getUserInfo())?.favoriteContent??[]).map(n=>{n.id===e.contentId&&(t.value=!0)}),n.value=!0});function i(){t.value=!t.value,S.toggleContentFavorite(e.contentId,e.contentUrl,t.value),r({contentId:e.contentId,action:t.value?E.Favorite:E.Unfavorite})}return(e,r)=>{let a=w;return d(n)?(m(),s(a,{key:0,tabindex:`0`,icon:d(t)===!0?`mdi:bookmark`:`mdi:bookmark-outline`,width:20,"icon-color":`#767676`,onClick:i,onKeydown:p(i,[`enter`])},null,8,[`icon`])):h(``,!0)}}};export{I as n,L as t};
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.