"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[6224],{62331:(e,n,o)=>{o.r(n),o.d(n,{default:()=>l});var t=o(6062),a=o(48289),i=o(33194),r=o(90375);const s=(0,t.Ex)("search-dl.quickActions.openContactCard.tooltip");const l=(0,r.w)({id:"OpenContactCard",entityType:"People",parameters:[{name:"person",entity:"People",isRequired:!0,validate:i.q}],execute:e=>{let{person:n}=e;var o;return async function(e,n){return window.LPC.openCard(document.body,{personaInfo:{identifiers:{Smtp:await(n||(0,a.o)(e)),PersonaType:"User"}},behavior:{locationToOpen:"ExpandedView"}}),Promise.resolve()}(n.value.id,null===(o=n.value.customProps)||void 0===o?void 0:o.email)},additionalProps:{icon:{iconName:"ContactCard"},tooltip:s}})},48289:(e,n,o)=>{o.d(n,{o:()=>a});var t=o(52211);async function a(e){const n=e.split("@")[0],o=await(0,t.l)()({attempt:0});if(!o)return null;const a=await fetch(`https://df.loki.delve.office.com/api/v2/person?aadObjectId=${n}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`,"x-clientcorrelationid":"729ebfa9-15ce-4579-ac0e-1598c10a6681","X-ClientType":"OfficeDotCom"}}).then((e=>e.json()));return(null==a?void 0:a.person)&&(null==a?void 0:a.person.userPrincipalName)?a.person.userPrincipalName:null}},33194:(e,n,o)=>{function t(){const e=window.LPC;return!(!e||!e.openCard)}o.d(n,{q:()=>t})},52211:(e,n,o)=>{o.d(n,{l:()=>t});const t=(0,o(5903).A)("loki")}}]);