{"version":3,"file":"application-context.jsx","sources":["../../../src/react/contexts/application-context.tsx"],"sourcesContent":["import { createContext, type ReactNode, type PropsWithChildren } from 'react';\nimport type ApplicationInstance from '@ember/application/instance';\n\ninterface ApplicationProviderProps extends PropsWithChildren {\n  owner: ApplicationInstance;\n}\n\nexport const ApplicationContext = createContext<ApplicationInstance | null>(\n  null,\n);\n\nexport function ApplicationProvider({\n  owner,\n  children,\n}: ApplicationProviderProps): ReactNode {\n  return (\n    <ApplicationContext.Provider value={owner}>\n      {children}\n    </ApplicationContext.Provider>\n  );\n}\n"],"names":["ApplicationContext","createContext","ApplicationProvider","owner","children","_jsx","Provider","value"],"mappings":";;;MAOaA,kBAAkB,gBAAGC,aAAa,CAC7C,IACF,EAAC;AAEM,SAASC,mBAAmBA,CAAC;EAClCC,KAAK;AACLC,EAAAA,QAAAA;AACwB,CAAC,EAAa;AACtC,EAAA,oBACEC,GAAA,CAACL,kBAAkB,CAACM,QAAQ,EAAA;AAACC,IAAAA,KAAK,EAAEJ,KAAM;AAAAC,IAAAA,QAAA,EACvCA,QAAAA;AAAQ,GACkB,CAAC,CAAA;AAElC;;;;"}