{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../packages/components/loading/index.ts"],"sourcesContent":["import Loading from './src/service'\nimport vLoading from './src/directive'\n\nimport type { App, AppContext, Directive } from 'vue'\nimport type { ElementLoading, LoadingBinding } from './src/directive'\n\n// installer and everything in all\nexport const ElLoading = {\n  install(app: App) {\n    Loading._context = app._context\n    ;(\n      vLoading as Directive<ElementLoading, LoadingBinding> & {\n        _context: AppContext | null\n      }\n    )._context = app._context\n    app.directive('loading', vLoading)\n    app.config.globalProperties.$loading = Loading\n  },\n  directive: vLoading,\n  service: Loading,\n}\n\nexport default ElLoading\nexport { vLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService }\n\nexport * from './src/types'\nexport type { LoadingInstance } from './src/loading'\n"],"mappings":";;;;AAOA,MAAa,YAAY;CACvB,QAAQ,KAAU;AAChB,UAAQ,WAAW,IAAI;AACtB,EACC,SAGA,WAAW,IAAI;AACjB,MAAI,UAAU,WAAW,SAAS;AAClC,MAAI,OAAO,iBAAiB,WAAW;;CAEzC,WAAW;CACX,SAAS;CACV"}