"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[7610],{26024:(e,t,o)=>{o.d(t,{A:()=>n});var s=o(62113),i=o(59508);const a=e=>({authorization:`Bearer ${e}`,"Content-Type":"application/json"}),n=(0,i.A)((e=>(0,s.A)((t=>{let{wset_id:o,spo_id:s,mru_id:i,type:n,url:r,app:c,endpoint:u}=t;return{url:`https://substrate.office.com/recommended/api/beta/edgeworth/${u}`,method:"POST",body:JSON.stringify({wset_id:o,spo_id:s,mru_id:i,type:n,url:r,app:c}),headers:a(e)}}))))},62113:(e,t,o)=>{o.d(t,{A:()=>i});var s=o(56254);function i(e){return t=>(t.prefetchFetch||s.A)(e(t))}},3497:(e,t,o)=>{o.r(t),o.d(t,{default:()=>p});o(39552);var s,i,a=o(6062),n=o(26024),r=o(66539),c=o(51275),u=o(90375);const l=(0,a.Ex)("search-dl.quickActions.unfavouriteFile.tooltip"),d=null===(i=window)||void 0===i||null===(s=i.getEdgeworthSuggestions)||void 0===s?void 0:s.allDocs.filter((e=>e.isPinned)),p=(0,u.w)({id:"UnfavouriteFile",entityType:"File",parameters:[{name:"file",entity:"File",isRequired:!0,validate:e=>{var t,o;return!!e.customProps&&(e.customProps.isPinned||!!(o=null==e||null===(t=e.customProps)||void 0===t?void 0:t.displayText)&&d.some((e=>e.title.toLowerCase().includes(o.toLowerCase())||e.fileName.toLowerCase().includes(o.toLowerCase()))))}}],execute:e=>{let{file:t}=e;const{customProps:o}=t.value,{workingSetId:s,mruId:i,mruType:a,mruUrl:c,app:u,spoId:l}=o;(0,n.A)({wset_id:s,spo_id:l,mru_id:i,type:a,url:c,app:u,endpoint:"unpin",tokenProvider:(0,r.ld)()}).then((()=>{}))},additionalProps:{icon:{iconName:"FavoriteStarFill"},tooltip:l,successTooltip:c.jA,showSuccess:!0}})},51275:(e,t,o)=>{o.d(t,{Dy:()=>i,dS:()=>a,jA:()=>r,oI:()=>n});var s=o(6062);const i=(0,s.Ex)("search-dl.quickActions.copyLink.tooltip"),a=(0,s.Ex)("search-dl.quickActions.successfulCopy.tooltip"),n=(0,s.Ex)("search-dl.quickActions.successfulFavourite.tooltip"),r=(0,s.Ex)("search-dl.quickActions.successfulUnfavourite.tooltip")},66539:(e,t,o)=>{o.d(t,{ld:()=>c});var s=o(45226),i=o(5903),a=o(19378);const n=s.A.concatenate(a.s,"search"),r=(s.A.concatenate(n,"api/v1"),s.A.concatenate(n,"api/v2"),s.A.concatenate(a.s,"autosuggest/api/v1")),c=(s.A.concatenate(r,"query"),(0,i.A)("autoSuggest"));(0,i.A)("delegateAutoSuggest")},19378:(e,t,o)=>{o.d(t,{s:()=>s});const s="https://substrate.office.com"}}]);