1try{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]=`842be49f-0993-47fa-8f18-50a331b75a24`,e._sentryDebugIdIdentifier=`sentry-dbid-842be49f-0993-47fa-8f18-50a331b75a24`)}catch{}import{$n as e,Ir as t,J as n,On as r,Or as i,Zn as a,bn as o,hn as s,nt as c,wn as l,xn as u,yt as d}from"./DsiqAswm.js";import"./DyJzJxA2.js";import{Hn as f,_r as p,si as m}from"#entry";var h={class:`module--social-share`},g={class:`flex`},_=[`href`,`target`,`rel`,`aria-label`,`title`,`onClick`],v=p({__name:`SocialShare`,props:{values:{type:Array,required:!1,default:()=>[`Facebook`,`X/Twitter`,`LinkedIn`,`Email`]},theme:{type:String,required:!0},fill:{type:String,required:!1,default:`#403d37`},fillClass:{type:String,required:!1,default:null}},setup(p){let{baseUrl:v}=m(),{fullPath:y}=d(),b=n(),x=p,S=i(`Samsara`);if(b)try{let e=c(b).find(e=>e.tag===`title`);e?.textContent&&(S.value=e.textContent)}catch{}let C=o(()=>(v.value.endsWith(`/`)?v.value.slice(0,-1):v.value)+(y.startsWith(`/`)?y:`/${y}`)),w=o(()=>x.theme===`Dark`?`Dark`:`Plain`),T=o(()=>x.fillClass?x.fillClass:x.theme===`Dark`?`fill-white stroke-white`:`fill-blue-dark stroke-blue-dark`),E=(e,t)=>{if(t.name===`Facebook`){if(e.preventDefault(),navigator.share){n
1avigator.share({title:S.value,url:C.value}).catch(()=>{});return}window.open(t.url,`_blank`,`noopener,noreferrer`)}},D=o(()=>[{name:`Facebook`,url:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(C.value)}`,target:`_blank`,rel:`noopener noreferrer`,ariaLabel:`Share on Facebook`,iconType:`Facebook`},{name:`X/Twitter`,url:`https://twitter.com/intent/tweet?url=${encodeURIComponent(C.value)}&text=${encodeURIComponent(S.value)}`,target:`_blank`,rel:`noopener noreferrer`,ariaLabel:`Share on Twitter`,iconType:`X/Twitter`},{name:`LinkedIn`,url:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(C.value)}&title=${encodeURIComponent(S.value)}`,target:`_blank`,rel:`noopener noreferrer`,ariaLabel:`Share on LinkedIn`,iconType:`LinkedIn`},{name:`Email`,url:(()=>{let e=S.value||`Samsara`,t=`${C.value}\n\n${S.value||``}`;return`mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(t)}`})(),ariaLabel:`Share via Email`,title:`Share via Email`,iconType:`Email`}]),O=o(()=>D.value.filter(e=>x.values.includes(e.name)));return(n,i)=>{let o=f;return a(),l(`section`,h,[u(`ul`,g,[(a(!0),l(s,null,e(t(O),e=>(a(),l(`li`,{key:e.name},[u(`a`,{href:e.url,target:e.target,rel:e.rel,"aria-label":e.ariaLabel,title:e.title,class:`block h-full w-full`,onClick:t=>E(t,e)},[r(o,{icon:{type:e.iconType,fillClass:t(T),theme:t(w)},"aria-hidden":`true`},null,8,[`icon`])],8,_)]))),128))])])}}},[[`__scopeId`,`data-v-a1b6198d`]]);export{v 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.