"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[3258],{62113:(e,t,o)=>{o.d(t,{A:()=>s});var i=o(56254);function s(e){return t=>(t.prefetchFetch||i.A)(e(t))}},41352:(e,t,o)=>{o.r(t),o.d(t,{default:()=>v});var i=o(6062),s=o(62113),r=o(59508);const a=e=>({authorization:`Bearer ${e}`,"Content-Type":"application/json"}),n=(0,r.A)((e=>(0,s.A)((t=>{let{queryText:o,clientType:i}=t;return{url:"https://substrate.office.com/search/api/v1/searchhistory",method:"POST",body:JSON.stringify({Action:"SingleDelete",Scenario:{Name:i},DeletedQuery:o}),headers:a(e)}}))));var c=o(66539),l=o(61754),u=o(90375);const d=(0,i.Ex)("search-dl.quickActions.deletePQH.tooltip"),p=(0,i.Ex)("search-dl.quickActions.deletePQH.errorTooltip"),h=(0,i.Ex)("search-dl.quickActions.deletePQH.loadingTooltip"),v=(0,u.w)({id:"DeletePQH",entityType:"Text",parameters:[{name:"text",entity:"Text",isRequired:!0,validate:e=>{var t,o,i,s;return!!((null===(t=e.customProps)||void 0===t?void 0:t.isHistory)||(null===(o=e.customProps)||void 0===o?void 0:o.position)||(null===(i=e.customProps)||void 0===i?void 0:i.queryText)||(null===(s=e.customProps)||void 0===s?void 0:s.searchBox))}}],execute:e=>{let{text:{value:{customProps:{searchBox:t,position:o,queryText:i,clearCache:s}},toolTip:r}}=e;return n({queryText:i,clientType:(0,l.A)(),tokenProvider:(0,c.ld)()}).then((()=>{var e;t.focus(),r.dismiss(),null===(e=(e=>document.querySelector(`[data-suggestion-position="${e}"]`))(o))||void 0===e||e.remove(),s()}))},additionalProps:{icon:{iconName:"Cancel"},tooltip:d,loadingTooltip:h,showLoading:!0,showError:!0,errorTooltip:p}})},66539:(e,t,o)=>{o.d(t,{ld:()=>c});var i=o(45226),s=o(5903),r=o(19378);const a=i.A.concatenate(r.s,"search"),n=(i.A.concatenate(a,"api/v1"),i.A.concatenate(a,"api/v2"),i.A.concatenate(r.s,"autosuggest/api/v1")),c=(i.A.concatenate(n,"query"),(0,s.A)("autoSuggest"));(0,s.A)("delegateAutoSuggest")},19378:(e,t,o)=>{o.d(t,{s:()=>i});const i="https://substrate.office.com"}}]);