{
  "version": 3,
  "sources": ["../../../../services/src/generated/typescript/service-runtime/ElectronThemeProviderHelper.ts", "../../../../services/src/generated/typescript/ElectronThemeProvider.ts"],
  "sourcesContent": ["/*\n ****\n ******\n ******\n ******\n ****** \u267B\uFE0F Runtime helper generated by the Services build process from .d.ts. Do not modify. See the Services README for more information.\n ****** See '../' for service types.\n ******\n ******\n ******\n ****\n */\n\n// The generated service helper may or may not use some of the runtime exports. For simplicity, we import all of them.\nimport {\n\tService,\n\tServiceManager,\n\tServiceChannel,\n\tServiceMessageHelper,\n\tServiceRuntimePrivate,\n\tServiceValue,\n\tServiceStream,\n\tServiceStreamOptions,\n\tUnsafeJSON,\n\tfloat,\n\tinteger,\n\toneway,\n} from \"../../../runtime/index.ts\"\n\nimport type { ElectronThemeProvider } from \"../ElectronThemeProvider.ts\"\n\nconst { onewayMethodTemplate, voidMethodTemplate, valueMethodTemplate, streamMethodTemplate } = ServiceRuntimePrivate\n\nexport namespace ElectronThemeProviderHelper {\n\ttype Interface = ElectronThemeProvider.Interface\n\n\texport const service: Service<Interface> = {\n\t\tid: \"__ElectronThemeProvider__\",\n\t\tfingerprint: \"799d3980ce61c9fa4aecb2fdae8303c7\",\n\t\tmethods: {\n\t\t\tthemeStateStream: {},\n\t\t\tsetDarkMode: {},\n\t\t\tsetOverrideSystem: {},\n\t\t},\n\t\tnewOutgoingWrapper: (helper: ServiceMessageHelper): Interface => {\n\t\t\treturn {\n\t\t\t\tthemeStateStream: streamMethodTemplate.bind(/* this: */ -1, \"themeStateStream\", helper),\n\t\t\t\tsetDarkMode: voidMethodTemplate.bind(/* this: */ -1, \"setDarkMode\", /* accepts argument: */ true, helper),\n\t\t\t\tsetOverrideSystem: voidMethodTemplate.bind(\n\t\t\t\t\t/* this: */ -1,\n\t\t\t\t\t\"setOverrideSystem\",\n\t\t\t\t\t/* accepts argument: */ true,\n\t\t\t\t\thelper,\n\t\t\t\t),\n\t\t\t} as Interface\n\t\t},\n\t}\n}\n", "/*\n **********\n *********\n ********\n *******\n ****** \u267B\uFE0F Generated by the Services build process from .d.ts. Do not modify. See the Services README for more information.\n *****\n ****\n ***\n **\n */\n\n// The generated namespace may or may not use some of the runtime exports. For simplicity, we import all of them.\nimport type {\n\tService,\n\tServiceChannel,\n\tServiceMessageHelper,\n\tServiceRuntimePrivate,\n\tServiceValue,\n\tServiceStream,\n\tServiceStreamOptions,\n\tUnsafeJSON,\n\tfloat,\n\tinteger,\n\toneway,\n} from \"../../runtime/index.ts\"\nimport { ServiceManager } from \"../../runtime/index.ts\"\n\n// The generated namespace may or may not use some of the global types. For simplicity, we import all of them.\nimport type {\n\tPoint,\n\tSize,\n\tRect,\n\tUser,\n\tColor,\n\tMenuAction,\n\tMenuValidationResult,\n\tMenuDispatchResult,\n\tMenuActionState,\n\tArea,\n\tContextMenu,\n\tMenuOptionIconCrossOrigin,\n\tMenuOptionIcon,\n\tMenuItemOptions,\n\tContextMenuResult,\n} from \"./Global.ts\"\n\n// Import the service implementation\nimport { ElectronThemeProviderHelper } from \"./service-runtime/ElectronThemeProviderHelper.ts\"\n\nimport type { SharedService } from \"./SharedService.ts\"\n\nexport namespace ElectronThemeProvider {\n\t/**\n\t * ElectronThemeProvider is not documented.\n\t */\n\texport interface Interface {\n\t\tthemeStateStream(_?: ServiceStreamOptions): ServiceStream<ElectronThemeProvider.ThemeState>\n\t\tsetDarkMode(_: ElectronThemeProvider.SetDarkModePayload): Promise<void>\n\t\tsetOverrideSystem(_: ElectronThemeProvider.SetOverrideSystemPayload): Promise<void>\n\t}\n\n\t/*\n\t * Using the service\n\t */\n\n\texport const service: Service<Interface> = ElectronThemeProviderHelper.service\n\n\texport function on(channel: ServiceChannel): SharedService<Interface> {\n\t\t// Note: capture the shared service manager here so testing behavior is predictable\n\t\tconst sharedServices = ServiceManager.shared()\n\t\treturn {\n\t\t\texpect: () => sharedServices.expectWithoutDiscovery(service, channel),\n\t\t\tdiscover: options => sharedServices.discover(service, channel, options),\n\t\t\tregister: implementation => sharedServices.register({ channel, service, implementation }),\n\t\t}\n\t}\n\n\texport async function unregister(implementation: Interface): Promise<void> {\n\t\tvoid ServiceManager.shared().unregister(implementation)\n\t}\n\n\t/*\n\t * Types\n\t */\n\n\texport type ThemeState = ServiceValue<{\n\t\tisDarkMode: boolean\n\t\tisOverridingSystem: boolean\n\t}>\n\n\texport type SetDarkModePayload = ServiceValue<{\n\t\tisEnabled: boolean\n\t}>\n\n\texport type SetOverrideSystemPayload = ServiceValue<{\n\t\tshouldOverride: boolean\n\t}>\n}\n"],
  "mappings": ";;;;;;AA+BA,IAAM,EAAE,sBAAsB,oBAAoB,qBAAqB,qBAAqB,IAAI;AAEzF,IAAU;AAAA,CAAV,CAAUA,iCAAV;AAGC,EAAMA,6BAAA,UAA8B;AAAA,IAC1C,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,SAAS;AAAA,MACR,kBAAkB,CAAC;AAAA,MACnB,aAAa,CAAC;AAAA,MACd,mBAAmB,CAAC;AAAA,IACrB;AAAA,IACA,oBAAoB,CAAC,WAA4C;AAChE,aAAO;AAAA,QACN,kBAAkB,qBAAqB;AAAA;AAAA,UAAiB;AAAA,UAAI;AAAA,UAAoB;AAAA,QAAM;AAAA,QACtF,aAAa,mBAAmB;AAAA;AAAA,UAAiB;AAAA,UAAI;AAAA;AAAA,UAAuC;AAAA,UAAM;AAAA,QAAM;AAAA,QACxG,mBAAmB,mBAAmB;AAAA;AAAA,UACzB;AAAA,UACZ;AAAA;AAAA,UACwB;AAAA,UACxB;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,GAvBgB;;;ACmBV,IAAU;AAAA,CAAV,CAAUC,2BAAV;AAcC,EAAMA,uBAAA,UAA8B,4BAA4B;AAEhE,WAAS,GAAG,SAAmD;AAErE,UAAM,iBAAiB,eAAe,OAAO;AAC7C,WAAO;AAAA,MACN,QAAQ,MAAM,eAAe,uBAAuBA,uBAAA,SAAS,OAAO;AAAA,MACpE,UAAU,aAAW,eAAe,SAASA,uBAAA,SAAS,SAAS,OAAO;AAAA,MACtE,UAAU,oBAAkB,eAAe,SAAS,EAAE,SAAS,SAAAA,uBAAA,SAAS,eAAe,CAAC;AAAA,IACzF;AAAA,EACD;AARO,EAAAA,uBAAS;AAUhB,iBAAsB,WAAW,gBAA0C;AAC1E,SAAK,eAAe,OAAO,EAAE,WAAW,cAAc;AAAA,EACvD;AAFA,EAAAA,uBAAsB;AAAA,GA1BN;",
  "names": ["ElectronThemeProviderHelper", "ElectronThemeProvider"]
}
