{"ast":null,"code":"import { __decorate, __metadata } from \"tslib\";\n/* Import the required functionality from the libraries. */\nimport { CommonModule } from '@angular/common';\nimport { inject, Injector } from '@angular/core';\nimport { createCustomElement } from '@angular/elements';\nimport { CrtModule } from '@creatio-devkit/common';\nimport { RatingSetupAreaComponent } from './view-elements/rating-setup-area/rating-setup-area.component';\nimport * as i0 from \"@angular/core\";\n/* Register RatingSetupAreaComponent as a view element so that the Freedom UI Designer\ncan display it as a setup area when a user selects the Rating component on the canvas. */\nlet RatingDesignTimeModule = class RatingDesignTimeModule {\n  constructor() {\n    /* Injector is used to create Angular Elements from components. */\n    this._injector = inject(Injector);\n    /* Register RatingSetupAreaComponent as a custom element on module initialization. */\n    this._registerCustomElement('usr-rating-setup-area', RatingSetupAreaComponent);\n  }\n  /* Registers a component as a custom element so that the browser can render it\n  inside the Freedom UI Designer if it has not been registered yet. */\n  _registerCustomElement(selector, component) {\n    if (!customElements.get(selector)) {\n      /* Convert the Angular component to a custom element and define it in the browser registry. */\n      const elementConstructor = createCustomElement(component, {\n        injector: this._injector\n      });\n      customElements.define(selector, elementConstructor);\n    }\n  }\n  static {\n    this.ɵfac = function RatingDesignTimeModule_Factory(t) {\n      return new (t || RatingDesignTimeModule)();\n    };\n  }\n  static {\n    this.ɵmod = /*@__PURE__*/i0.ɵɵdefineNgModule({\n      type: RatingDesignTimeModule\n    });\n  }\n  static {\n    this.ɵinj = /*@__PURE__*/i0.ɵɵdefineInjector({\n      imports: [CommonModule]\n    });\n  }\n};\nRatingDesignTimeModule = __decorate([CrtModule({\n  viewElements: [RatingSetupAreaComponent]\n})\n/* Declare RatingSetupAreaComponent in the Angular module and allow custom element schemas. */, __metadata(\"design:paramtypes\", [])], RatingDesignTimeModule);\nexport { RatingDesignTimeModule };","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}