"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[2677],{26153:(e,a,l)=>{l.d(a,{Qg:()=>t,_L:()=>s,hw:()=>d,kE:()=>o,ni:()=>n,ow:()=>r});const i={entityType:"",isRequired:!0,type:"search",additionalProps:{main:!0}},t={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"}]},r=({id:"filterFSC",params:[i,{entityType:"Department",isRequired:!0,type:"entity"}]}.params.findIndex((e=>"Department"===e.entityType)),t.params.findIndex((e=>"search"===e.type))),d=t.params.findIndex((e=>"People"===e.entityType)),s=t.params.findIndex((e=>"FileType"===e.entityType)),n=t.params.findIndex((e=>"FileActivity"===e.entityType)),o=t.params.findIndex((e=>"LocalFolder"===e.entityType))},18144:(e,a,l)=>{l.d(a,{Hh:()=>n,Jx:()=>d,aw:()=>r,bL:()=>s,qp:()=>t,sl:()=>i});const i="fileType",t="people",r="You",d="Downloads",s="everything",n="fileActivity"},97968:(e,a,l)=>{l.r(a),l.d(a,{default:()=>s});var i=l(26153),t=l(18144),r=l(70145),d=l(19117);const s={id:"filterFileActivity",entityType:"Activity",parameters:[],validate:e=>{let{context:a}=e;var l;const{values:t}=(null==a||null===(l=a.commanding)||void 0===l?void 0:l.currentCommand)||{},r=null==t?void 0:t[i.ni],d=null==t?void 0:t[i.hw];return!!(r&&r.hidden&&d)||!r&&d},execute:e=>{let{data:a,searchBox:l,context:s}=e;var n,o;const c=(null==s||null===(o=s.commanding)||void 0===o||null===(n=o.currentCommand)||void 0===n?void 0:n.values)||[],{placeholder:p,ariaLabel:u}=(0,d.A)({values:c,valueToAdd:a.displayTexts[0].rawText,entityType:t.Hh});null==l||l.setContext((0,r.A)({value:{displayTexts:a.displayTexts,id:a.id,customProps:{...a.customProps,conjunction:"And",command:"removeFileActivity",id:a.id}},commanding:s.commanding,index:i.ni,placeholder:p,ariaLabel:u}))}}},70145:(e,a,l)=>{l.d(a,{A:()=>t});var i=l(26153);const t=e=>{let{value:a,commanding:l,index:t,placeholder:r,ariaLabel:d}=e;const{definition:s,values:n}=(null==l?void 0:l.currentCommand)||{},o=(null==s?void 0:s.id)===i.Qg.id;return{commanding:{...l,currentCommand:{definition:o?s:i.Qg,values:i.Qg.params.map(((e,l)=>l===t?a:o?n[l]:void 0)),meta:{placeholder:r,ariaLabel:d}}}}}},19117:(e,a,l)=>{l.d(a,{A:()=>n});l(4589),l(94760);var i=l(26153),t=l(18144),r=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,x,f,m,T,b,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===(x=a[i.ni])||void 0===x||null===(v=x.displayTexts)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.rawText,F=null===(T=a[i._L])||void 0===T||null===(m=T.displayTexts)||void 0===m||null===(f=m[0])||void 0===f?void 0:f.rawText;w=(null===(b=a[i.ni])||void 0===b?void 0:b.id)===t.Jx?void 0:w;const A=(null===(L=a[i.hw])||void 0===L?void 0:L.id)===t.Jx;if(l)switch(l){case t.bL:P=!1,g=F=w=void 0;break;case t.sl:F=void 0;break;case t.Hh:w=void 0;break;case t.qp:P=!1,g=void 0}if(d)switch(n){case t.sl:F=d;break;case t.Hh:w=d;break;case t.qp:g=d;break;case t.aw:P=!0}const k=[];F&&k.push(F),w&&k.push(w);let q="";P?(q=s.filterMePlaceholder(),k.unshift(s.ariaLabelYou())):g?(q=A||o?s.filterDownloadedPlaceholder():s.filterPeoplePlaceholder({displayName:g}),k.unshift(g)):q=F?s.filterFileTypePlaceholder({fileType:F}):(0,r.A)()?s.basicPlaceholderText():s.defaultPlaceholderText();return{placeholder:q,ariaLabel:0===k.length?(0,r.A)()?s.ariaLabelBasic():s.defaultPlaceholderText():s.ariaLabelFilterList({filterList:k.join(s.ariaLabelFilterSeparatorLabel())})}}},38458:(e,a,l)=>{l.d(a,{A:()=>i});const i=(0,l(97220).regs)("searchux.enableBasicFilterPlaceholderText",!1,{required:!1})}}]);