import*as o from"./../../core/common/common.js";import*as a from"./../../core/i18n/i18n.js";import*as l from"./../../ui/legacy/legacy.js";var e={sensors:"Sensors",geolocation:"geolocation",timezones:"timezones",locale:"locale",locales:"locales",accelerometer:"accelerometer",deviceOrientation:"device orientation",locations:"Locations",touch:"Touch",devicebased:"Device-based",forceEnabled:"Force enabled",emulateIdleDetectorState:"Emulate Idle Detector state",noIdleEmulation:"No idle emulation",userActiveScreenUnlocked:"User active, screen unlocked",userActiveScreenLocked:"User active, screen locked",userIdleScreenUnlocked:"User idle, screen unlocked",userIdleScreenLocked:"User idle, screen locked",showSensors:"Show Sensors",showLocations:"Show Locations",cpuPressure:"CPU Pressure",noPressureEmulation:"No override",nominal:"Nominal",fair:"Fair",serious:"Serious",critical:"Critical"},r=a.i18n.registerUIStrings("panels/sensors/sensors-meta.ts",e),t=a.i18n.getLazilyComputedLocalizedString.bind(void 0,r),i;async function s(){return i||(i=await import("./sensors.js")),i}l.ViewManager.registerViewExtension({location:"drawer-view",commandPrompt:t(e.showSensors),title:t(e.sensors),id:"sensors",persistence:"closeable",order:100,async loadView(){let n=await s();return new n.SensorsView.SensorsView},tags:[t(e.geolocation),t(e.timezones),t(e.locale),t(e.locales),t(e.accelerometer),t(e.deviceOrientation)]});l.ViewManager.registerViewExtension({location:"settings-view",id:"emulation-locations",commandPrompt:t(e.showLocations),title:t(e.locations),order:40,async loadView(){let n=await s();return new n.LocationsSettingsTab.LocationsSettingsTab},settings:["emulation.locations"],iconName:"location-on"});o.Settings.registerSettingExtension({storageType:"Synced",settingName:"emulation.locations",settingType:"array",defaultValue:[{title:"Berlin",lat:52.520007,long:13.404954,timezoneId:"Europe/Berlin",locale:"de-DE",accuracy:150},{title:"London",lat:51.507351,long:-.127758,timezoneId:"Europe/London",locale:"en-GB",accuracy:150},{title:"Moscow",lat:55.755826,long:37.6173,timezoneId:"Europe/Moscow",locale:"ru-RU",accuracy:150},{title:"Mountain View",lat:37.386052,long:-122.083851,timezoneId:"America/Los_Angeles",locale:"en-US",accuracy:150},{title:"Mumbai",lat:19.075984,long:72.877656,timezoneId:"Asia/Kolkata",locale:"mr-IN",accuracy:150},{title:"San Francisco",lat:37.774929,long:-122.419416,timezoneId:"America/Los_Angeles",locale:"en-US",accuracy:150},{title:"Shanghai",lat:31.230416,long:121.473701,timezoneId:"Asia/Shanghai",locale:"zh-Hans-CN",accuracy:150},{title:"S\xE3o Paulo",lat:-23.55052,long:-46.633309,timezoneId:"America/Sao_Paulo",locale:"pt-BR",accuracy:150},{title:"Tokyo",lat:35.689487,long:139.691706,timezoneId:"Asia/Tokyo",locale:"ja-JP",accuracy:150}]});o.Settings.registerSettingExtension({title:t(e.cpuPressure),reloadRequired:!0,settingName:"emulation.cpu-pressure",settingType:"enum",defaultValue:"none",options:[{value:"none",title:t(e.noPressureEmulation),text:t(e.noPressureEmulation)},{value:"nominal",title:t(e.nominal),text:t(e.nominal)},{value:"fair",title:t(e.fair),text:t(e.fair)},{value:"serious",title:t(e.serious),text:t(e.serious)},{value:"critical",title:t(e.critical),text:t(e.critical)}]});o.Settings.registerSettingExtension({title:t(e.touch),reloadRequired:!0,settingName:"emulation.touch",settingType:"enum",defaultValue:"none",options:[{value:"none",title:t(e.devicebased),text:t(e.devicebased)},{value:"force",title:t(e.forceEnabled),text:t(e.forceEnabled)}]});o.Settings.registerSettingExtension({title:t(e.emulateIdleDetectorState),settingName:"emulation.idle-detection",settingType:"enum",defaultValue:"none",options:[{value:"none",title:t(e.noIdleEmulation),text:t(e.noIdleEmulation)},{value:'{"isUserActive":true,"isScreenUnlocked":true}',title:t(e.userActiveScreenUnlocked),text:t(e.userActiveScreenUnlocked)},{value:'{"isUserActive":true,"isScreenUnlocked":false}',title:t(e.userActiveScreenLocked),text:t(e.userActiveScreenLocked)},{value:'{"isUserActive":false,"isScreenUnlocked":true}',title:t(e.userIdleScreenUnlocked),text:t(e.userIdleScreenUnlocked)},{value:'{"isUserActive":false,"isScreenUnlocked":false}',title:t(e.userIdleScreenLocked),text:t(e.userIdleScreenLocked)}]});
//# sourceMappingURL=sensors-meta.js.map
