"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[8284],{58771:(e,i,n)=>{n.r(i),n.d(i,{Component:()=>b});var t=n(75657),s=n(71124),a=n(342),l=n(21163);const r=e=>{var i;return null!==(i=(0,l.gt)(e))&&void 0!==i?i:"false"},o=()=>!0,b=()=>{const e=s.useMemo(a.lA,[]);return s.createElement(t.R1,{shortcutKeys:"Ctrl + Alt + F",appSettings:e,persistSetting:l.tm,onHotKeyInit:r,onHotKeyEnabled:o})}},342:(e,i,n)=>{n.d(i,{K8:()=>S,lA:()=>m});var t=n(87636),s=n(69556),a=n(86994),l=n(40897),r=n(38357),o=n(84050),b=n(84279),c=n(71334),f=n(6062);const g=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.notificationSettingsTitle"),d=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.notifyOnFilesInNearingMeetings"),E=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.notifyOnMentionsInFiles"),u=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.notifyOnNewFileShared"),k=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.openFileSettingsTitle"),_=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.openFileSettingsDescription"),p=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.openFileInDesktop"),I=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.openFileInBrowser"),O=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.labModeTitle"),h=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.labModeDescription"),x=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.brandingDragAndDropDescription"),D=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.fileExplorerDescription"),N=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.locationTidbitsDescription"),w=(0,f.Ex)("files-in-taskbar.filesintaskbar.settings.invertedToastDescription");var B=n(21163);const F="NOTIFY_ON",S="OPEN_FILE",$="LAB_MODE",C={disabled:!0,onChange:(e,i)=>{},type:"switch"},L="openFileInBrowser",T="notifications",y="labMode",M=(0,c.A)(),A={[`${b.ts}_${F}_MENTIONS_IN_FILES`]:{controls:"searchBoxPluginConfiguration.BadgeOnMentionInFile",label:E()},[`${b.ts}_${F}_FILES_IN_NEARING_MEETINGS`]:{controls:"searchBoxPluginConfiguration.CalendarBadge",label:d()},[`${b.ts}_${F}_NEW_FILE_SHARED`]:{label:u(),isEnabled:!1}},v={[`${b.ts}_${S}_IN_BROWSER`]:{controls:"searchBoxPluginConfiguration.OpenFileInBrowser",label:L,displayWhenDisabled:!0,options:[{label:p(),value:"false",isDefault:!0},{label:I(),value:"true"}],isEnabled:!0,type:"radioGroup"}},j={[`${b.ts}_${$}_ADD_BRANDING`]:{controls:"searchBoxPluginConfiguration.LabBrandingDragAndDrop",label:x(),isEnabled:M},[`${b.ts}_${$}_FILE_EXPLORER`]:{controls:"searchBoxPluginConfiguration.LabFileExplorer",label:D(),isEnabled:M,onChange:(e,i)=>{r.M_.dispatch((0,o.oG)({featureName:"app.actionMenu",isEnabledOverride:"true"===e})),window.location.replace(`/${new URL(window.location.href).search}`)}},[`${b.ts}_${$}_LOCATION_TIDBITS`]:{controls:"searchBoxPluginConfiguration.LabLocationTidbits",label:N(),isEnabled:M,onChange:(e,i)=>{window.location.replace(`/${new URL(window.location.href).search}`)}},[`${b.ts}_${$}_INVERTED_TOASTERS`]:{controls:"searchBoxPluginConfiguration.LabInvertedToaster",label:w(),isEnabled:M}},R=Object.assign(Object.assign(Object.assign({},A),v),j);function P(e,i){return Object.entries(e).map((([e,n])=>{const t=R[e]||{};return s=Object.assign(Object.assign(Object.assign({},C),t),{key:e,value:n,label:t.label||"(Unknown setting)"}),a=i,Object.assign(Object.assign({},s),{isEnabled:(()=>{if(!s)return!1;const{isEnabled:e,controls:i}=s;return"isEnabled"in s?"function"==typeof e?e():!!e:!i||!!a[i]})()});var s,a}))}function m(){const e=r.M_.getState().searchConf,i=P((0,t.b)(B.gt,...Object.keys(R)),e);return[{title:g(),id:T,icon:s.Qw,settings:i.filter((e=>e.key.includes(F)))},{title:k(),id:L,description:_(),icon:a.N8z,settings:i.filter((e=>e.key.includes(S)))},{title:O(),id:y,description:h(),icon:l.Bc,settings:i.filter((e=>e.key.includes($)))}]}},71334:(e,i,n)=>{n.d(i,{A:()=>a});var t=n(67266),s=n(38357);const a=()=>(0,t.Kk)("app.enableLabMode",s.M_.getState().feature.featureSettings)}}]);