{"ast":null,"code":"var AppModule_1;\nimport { __decorate, __metadata } from \"tslib\";\n/* Import the required functionality from the libraries. */\nimport { Injector, ProviderToken } from '@angular/core';\nimport { createCustomElement } from '@angular/elements';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { bootstrapCrtModule, CrtModule } from '@creatio-devkit/common';\nimport { RatingComponent } from './view-elements/rating/rating.component';\nimport { RatingSetupAreaComponent } from './view-elements/rating-setup-area/rating-setup-area.component';\nimport { RatingDesignTimeModule } from './rating.design-time.module';\nimport * as i0 from \"@angular/core\";\nlet AppModule = class AppModule {\n  static {\n    AppModule_1 = this;\n  }\n  constructor(_injector) {\n    this._injector = _injector;\n  }\n  ngDoBootstrap() {\n    /* Register RatingComponent as an Angular Element. */\n    const ratingElement = createCustomElement(RatingComponent, {\n      injector: this._injector\n    });\n    customElements.define('usr-rating', ratingElement);\n    /* Register RatingSetupAreaComponent as an Angular Element. */\n    const setupAreaElement = createCustomElement(RatingSetupAreaComponent, {\n      injector: this._injector\n    });\n    customElements.define('usr-rating-setup-area', setupAreaElement);\n    /* Bootstrap CrtModule definitions. */\n    bootstrapCrtModule('sdkCustomRatingComponent', AppModule_1, {\n      resolveDependency: token => this._injector.get(token)\n    });\n  }\n  static {\n    this.ɵfac = function AppModule_Factory(t) {\n      return new (t || AppModule)(i0.ɵɵinject(i0.Injector));\n    };\n  }\n  static {\n    this.ɵmod = /*@__PURE__*/i0.ɵɵdefineNgModule({\n      type: AppModule\n    });\n  }\n  static {\n    this.ɵinj = /*@__PURE__*/i0.ɵɵdefineInjector({\n      imports: [BrowserModule, RatingDesignTimeModule]\n    });\n  }\n};\nAppModule = AppModule_1 = __decorate([CrtModule({\n  /* Specify that RatingComponent and RatingSetupAreaComponent are view elements. */\n  viewElements: [RatingComponent, RatingSetupAreaComponent]\n}), __metadata(\"design:paramtypes\", [Injector])], AppModule);\nexport { AppModule };","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}