"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[2207],{26153:(e,a,l)=>{l.d(a,{Qg:()=>r,_L:()=>s,hw:()=>d,kE:()=>o,ni:()=>n,ow:()=>t});const i={entityType:"",isRequired:!0,type:"search",additionalProps:{main:!0}},r={id:"filterFSC",params:[i,{entityType:"People",type:"entity",isRequired:!0},{entityType:"FileType",isRequired:!0,type:"entity"},{entityType:"FileActivity",isRequired:!0,type:"entity"},{entityType:"LocalFolder",isRequired:!0,type:"entity"}]},t=({id:"filterFSC",params:[i,{entityType:"Department",isRequired:!0,type:"entity"}]}.params.findIndex((e=>"Department"===e.entityType)),r.params.findIndex((e=>"search"===e.type))),d=r.params.findIndex((e=>"People"===e.entityType)),s=r.params.findIndex((e=>"FileType"===e.entityType)),n=r.params.findIndex((e=>"FileActivity"===e.entityType)),o=r.params.findIndex((e=>"LocalFolder"===e.entityType))},18144:(e,a,l)=>{l.d(a,{Hh:()=>n,Jx:()=>d,aw:()=>t,bL:()=>s,qp:()=>r,sl:()=>i});const i="fileType",r="people",t="You",d="Downloads",s="everything",n="fileActivity"},19117:(e,a,l)=>{l.d(a,{A:()=>n});l(4589),l(94760);var i=l(26153),r=l(18144),t=l(38458),d=l(6062);const s={basicPlaceholderText:(0,d.Ex)("search-dl.searchux.strings.filter.basic.placeholder"),ariaLabelBasic:(0,d.Ex)("search-dl.searchux.strings.filter.basic.ariaLabel"),defaultPlaceholderText:(0,d.Ex)("search-dl.searchux.strings.filter.default.placeholder"),filterPeoplePlaceholder:(0,d.qP)("search-dl.searchux.strings.filter.people.placeholder"),filterMePlaceholder:(0,d.Ex)("search-dl.searchux.strings.filter.me.placeholder"),filterDownloadedPlaceholder:(0,d.Ex)("search-dl.searchux.strings.filter.downloaded.placeholder"),filterFileTypePlaceholder:(0,d.qP)("search-dl.searchux.strings.filter.filetype.placeholder"),ariaLabelFilterList:(0,d.qP)("search-dl.searchux.strings.ariaLabelFilterList"),ariaLabelYou:(0,d.Ex)("search-dl.searchux.strings.ariaLabelYou"),ariaLabelFilterSeparatorLabel:(0,d.Ex)("search-dl.searchux.strings.ariaLabelFilterSeparatorLabel")},n=e=>{let{values:a,valueToRemove:l,valueToAdd:d,entityType:n,isLocalFolder:o}=e;var c,p,u,h,y,v,f,x,m,b,T,L;let P=null===(c=a[i.hw])||void 0===c?void 0:c.isMe,g=null===(h=a[i.hw])||void 0===h||null===(u=h.displayTexts)||void 0===u||null===(p=u[0])||void 0===p?void 0:p.rawText,w=null===(f=a[i.ni])||void 0===f||null===(v=f.displayTexts)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.rawText,F=null===(b=a[i._L])||void 0===b||null===(m=b.displayTexts)||void 0===m||null===(x=m[0])||void 0===x?void 0:x.rawText;w=(null===(T=a[i.ni])||void 0===T?void 0:T.id)===r.Jx?void 0:w;const k=(null===(L=a[i.hw])||void 0===L?void 0:L.id)===r.Jx;if(l)switch(l){case r.bL:P=!1,g=F=w=void 0;break;case r.sl:F=void 0;break;case r.Hh:w=void 0;break;case r.qp:P=!1,g=void 0}if(d)switch(n){case r.sl:F=d;break;case r.Hh:w=d;break;case r.qp:g=d;break;case r.aw:P=!0}const q=[];F&&q.push(F),w&&q.push(w);let _="";P?(_=s.filterMePlaceholder(),q.unshift(s.ariaLabelYou())):g?(_=k||o?s.filterDownloadedPlaceholder():s.filterPeoplePlaceholder({displayName:g}),q.unshift(g)):_=F?s.filterFileTypePlaceholder({fileType:F}):(0,t.A)()?s.basicPlaceholderText():s.defaultPlaceholderText();return{placeholder:_,ariaLabel:0===q.length?(0,t.A)()?s.ariaLabelBasic():s.defaultPlaceholderText():s.ariaLabelFilterList({filterList:q.join(s.ariaLabelFilterSeparatorLabel())})}}},1466:(e,a,l)=>{l.r(a),l.d(a,{default:()=>d});var i=l(26153),r=l(18144),t=l(19117);const d={id:"removePeople",entityType:"",parameters:[],validate:e=>{let{context:a}=e;var l;const{definition:r}=(null==a||null===(l=a.commanding)||void 0===l?void 0:l.currentCommand)||{};return(null==r?void 0:r.id)===i.Qg.id},execute:e=>{let{searchBox:a,context:l}=e;var d,s;const n=(null==l||null===(s=l.commanding)||void 0===s||null===(d=s.currentCommand)||void 0===d?void 0:d.values)||[],{placeholder:o,ariaLabel:c}=(0,t.A)({values:n,valueToRemove:r.bL});null==a||a.setContext({commanding:{...l.commanding,currentCommand:{definition:i.Qg,values:l.commanding.currentCommand.values.map(((e,a)=>{if(a===i.ow)return e})),meta:{placeholder:o,ariaLabel:c}}}})}}},38458:(e,a,l)=>{l.d(a,{A:()=>i});const i=(0,l(97220).regs)("searchux.enableBasicFilterPlaceholderText",!1,{required:!1})}}]);