"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[6743],{93830:(e,o,t)=>{t.r(o),t.d(o,{default:()=>l});var i=t(6062),s=t(48289),a=t(51275),c=t(90375);const n=(0,i.Ex)("search-dl.quickActions.copyEmail.tooltip"),l=(0,c.w)({id:"CopyEmailId",entityType:"People",parameters:[{name:"person",entity:"People",isRequired:!0}],execute:async e=>{let{person:o}=e;var t;const i=null===(t=o.value.customProps)||void 0===t?void 0:t.email;return navigator.clipboard.writeText(i||await(0,s.o)(o.value.id))},additionalProps:{icon:{iconName:"Copy"},showSuccess:!0,successTooltip:a.dS,tooltip:n}})},48289:(e,o,t)=>{t.d(o,{o:()=>s});var i=t(52211);async function s(e){const o=e.split("@")[0],t=await(0,i.l)()({attempt:0});if(!t)return null;const s=await fetch(`https://df.loki.delve.office.com/api/v2/person?aadObjectId=${o}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`,"x-clientcorrelationid":"729ebfa9-15ce-4579-ac0e-1598c10a6681","X-ClientType":"OfficeDotCom"}}).then((e=>e.json()));return(null==s?void 0:s.person)&&(null==s?void 0:s.person.userPrincipalName)?s.person.userPrincipalName:null}},51275:(e,o,t)=>{t.d(o,{Dy:()=>s,dS:()=>a,jA:()=>n,oI:()=>c});var i=t(6062);const s=(0,i.Ex)("search-dl.quickActions.copyLink.tooltip"),a=(0,i.Ex)("search-dl.quickActions.successfulCopy.tooltip"),c=(0,i.Ex)("search-dl.quickActions.successfulFavourite.tooltip"),n=(0,i.Ex)("search-dl.quickActions.successfulUnfavourite.tooltip")},52211:(e,o,t)=>{t.d(o,{l:()=>i});const i=(0,t(5903).A)("loki")}}]);