"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[3315],{26153:(e,l,i)=>{i.d(l,{Qg:()=>r,_L:()=>s,hw:()=>d,kE:()=>o,ni:()=>n,ow:()=>t});const a={entityType:"",isRequired:!0,type:"search",additionalProps:{main:!0}},r={id:"filterFSC",params:[a,{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:[a,{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,l,i)=>{i.d(l,{Hh:()=>n,Jx:()=>d,aw:()=>t,bL:()=>s,qp:()=>r,sl:()=>a});const a="fileType",r="people",t="You",d="Downloads",s="everything",n="fileActivity"},22948:(e,l,i)=>{i.r(l),i.d(l,{default:()=>d});var a=i(26153),r=i(18144),t=i(19117);const d={id:"filterFileExtension",entityType:"File",parameters:[],validate:e=>{let{context:l}=e;var i,r,t;return!(null==l||null===(t=l.commanding)||void 0===t||null===(r=t.currentCommand)||void 0===r||null===(i=r.values)||void 0===i?void 0:i[a._L])},execute:e=>{let{data:l,searchBox:i,context:d}=e;var s,n,o,c,u,p;const h=(null==d||null===(n=d.commanding)||void 0===n||null===(s=n.currentCommand)||void 0===s?void 0:s.values)||[],{placeholder:v,ariaLabel:y}=(0,t.A)({values:h,valueToAdd:l.displayTexts[0].rawText,entityType:r.sl}),x={displayTexts:l.displayTexts,id:l.id,customProps:{...l.customProps,conjunction:"Or",command:"removeFileExtension",id:l.id}},f=null==d||null===(u=d.commanding)||void 0===u||null===(c=u.currentCommand)||void 0===c||null===(o=c.values)||void 0===o?void 0:o[a.ow];null==i||i.setContext({commanding:{...d.commanding,currentCommand:{definition:a.Qg,values:null===(p=a.Qg.params)||void 0===p?void 0:p.map(((e,l)=>{var i;if(l===a._L)return x;if(l===a.ow)return f;const{definition:r,values:t}=(null===(i=d.commanding)||void 0===i?void 0:i.currentCommand)||{};return r.id===a.Qg.id?t[l]:void 0})),meta:{placeholder:v,ariaLabel:y}}}})}}},19117:(e,l,i)=>{i.d(l,{A:()=>n});i(4589),i(94760);var a=i(26153),r=i(18144),t=i(38458),d=i(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:l,valueToRemove:i,valueToAdd:d,entityType:n,isLocalFolder:o}=e;var c,u,p,h,v,y,x,f,m,T,b,L;let P=null===(c=l[a.hw])||void 0===c?void 0:c.isMe,g=null===(h=l[a.hw])||void 0===h||null===(p=h.displayTexts)||void 0===p||null===(u=p[0])||void 0===u?void 0:u.rawText,w=null===(x=l[a.ni])||void 0===x||null===(y=x.displayTexts)||void 0===y||null===(v=y[0])||void 0===v?void 0:v.rawText,F=null===(T=l[a._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=l[a.ni])||void 0===b?void 0:b.id)===r.Jx?void 0:w;const k=(null===(L=l[a.hw])||void 0===L?void 0:L.id)===r.Jx;if(i)switch(i){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())})}}},38458:(e,l,i)=>{i.d(l,{A:()=>a});const a=(0,i(97220).regs)("searchux.enableBasicFilterPlaceholderText",!1,{required:!1})}}]);