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