@creatio-devkit/common 0.811.1 → 0.812.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/esm2020/lib/base-exports.mjs +2 -2
  3. package/esm2020/lib/external/models/index.mjs +1 -2
  4. package/esm2020/lib/internal/constants/default-size.const.mjs +5 -0
  5. package/esm2020/lib/internal/constants/index.mjs +2 -1
  6. package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
  7. package/esm2020/lib/internal/enums/index.mjs +1 -2
  8. package/esm2020/lib/internal/models/attribute-property-config.interface.mjs +2 -0
  9. package/esm2020/lib/internal/models/index.mjs +2 -1
  10. package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +2 -2
  11. package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +21 -1
  12. package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +7 -1
  13. package/esm2020/lib/public/enums/index.mjs +2 -1
  14. package/esm2020/lib/public/enums/view-element-property.enum.mjs +9 -0
  15. package/esm2020/lib/public/models/input/input-registration-config.model.mjs +1 -1
  16. package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +1 -1
  17. package/esm2020/lib/public/models/view-element/index.mjs +2 -1
  18. package/esm2020/lib/public/models/view-element/view-element-visibility-strategy.mjs +16 -0
  19. package/fesm2015/creatio-devkit-common.mjs +60 -13
  20. package/fesm2015/creatio-devkit-common.mjs.map +1 -1
  21. package/fesm2020/creatio-devkit-common.mjs +57 -13
  22. package/fesm2020/creatio-devkit-common.mjs.map +1 -1
  23. package/index.d.ts +22 -3
  24. package/package.json +4 -4
  25. package/esm2020/lib/external/models/model-init-config.mjs +0 -2
  26. package/esm2020/lib/internal/enums/model-in-page-action.enum.mjs +0 -10
@@ -1 +1 @@
1
- {"version":3,"file":"creatio-devkit-common.mjs","sources":["../../../../../libs/devkit/common/src/lib/external/functions/aggregation-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/date-part-type-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/function-type-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/order-direction-adapter.ts","../../../../../libs/devkit/common/src/lib/internal/constants/metadata.const.ts","../../../../../libs/devkit/common/src/lib/internal/enums/view-element-group-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/enums/designer-group-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/enums/handler-source-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/enums/model-in-page-action.enum.ts","../../../../../libs/devkit/common/src/lib/internal/services/base-registry/base-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/pkg-topology-registry/pkg-topology-registry.ts","../../../../../libs/devkit/common/src/lib/internal/utils/handlers-order-comparer.ts","../../../../../libs/devkit/common/src/lib/public/services/handler-chain/internal-handler-chain.ts","../../../../../libs/devkit/common/src/lib/public/services/handler-chain/handler-chain.service.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/utils/object-deep-keys/object-deep-keys.ts","../../../../../libs/devkit/common/src/lib/internal/services/element-registration-checker/element-registration-checker.ts","../../../../../libs/devkit/common/src/lib/internal/services/request-handler-registry/request-handler-registry.service.ts","../../../../../libs/devkit/common/src/lib/internal/services/request-registry/request-registry.service.ts","../../../../../libs/devkit/common/src/lib/internal/services/global-converters-registry/converter-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/view-element-registry/view-element-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/bootstrap-notifier/bootstrap-notifier.ts","../../../../../libs/devkit/common/src/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/validator-registry/validator-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/remote-entries-registry/remote-entries-registry.ts","../../../../../libs/devkit/common/src/lib/internal/utils/component-config-utils.ts","../../../../../libs/devkit/common/src/lib/internal/utils/metadata-utils.ts","../../../../../libs/devkit/common/src/lib/internal/utils/instantiate.ts","../../../../../libs/devkit/common/src/lib/public/models/input/input-registration-config.model.ts","../../../../../libs/devkit/common/src/lib/public/models/request/data-source-request.ts","../../../../../libs/devkit/common/src/lib/public/models/request/base-request-config.ts","../../../../../libs/devkit/common/src/lib/public/models/view-element/view-element-reuse-strategy.enum.ts","../../../../../libs/devkit/common/src/lib/public/models/validation/base-validator.ts","../../../../../libs/devkit/common/src/lib/public/models/localizable-value.ts","../../../../../libs/devkit/common/src/lib/internal/utils/localization-utils.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/request/request.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.ts","../../../../../libs/devkit/common/src/lib/internal/models/request/method-invoke-request.ts","../../../../../libs/devkit/common/src/lib/internal/models/remote-build-info.ts","../../../../../libs/devkit/common/src/lib/public/decorators/input/input.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/output/output.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/validation-input/validation-input.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/view-element/view-element.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/module/module.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/inject/inject.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/validator/validator.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/request-handler/request-handler.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/converter/converter.decorator.ts","../../../../../libs/devkit/common/src/lib/public/enums/data-source-load-type.enum.ts","../../../../../libs/devkit/common/src/lib/public/functions/register-view-element.ts","../../../../../libs/devkit/common/src/lib/public/functions/register-angular-view-element.ts","../../../../../libs/devkit/common/src/lib/public/functions/bootstrap-crt-module.ts","../../../../../libs/devkit/common/src/lib/public/functions/localize.ts","../../../../../libs/devkit/common/src/lib/public/functions/bootstrap-crt-module-handler-chain-services.ts","../../../../../libs/devkit/common/src/lib/public/handlers/base-request-handler.ts","../../../../../libs/devkit/common/src/lib/internal/services/base-handler-chain.service.ts","../../../../../libs/devkit/common/src/lib/public/services/feature/feature.service.ts","../../../../../libs/devkit/common/src/lib/public/services/rights/rights.service.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-settings/sys-settings.service.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-settings/sys-setting.model.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-values/sys-values.service.ts","../../../../../libs/devkit/common/src/lib/public/services/http-client/http-client.service.ts","../../../../../libs/devkit/common/src/lib/public/services/mask-service/schema-view-mask.request.ts","../../../../../libs/devkit/common/src/lib/public/services/mask-service/mask.service.ts","../../../../../libs/devkit/common/src/lib/public/services/model/model.ts","../../../../../libs/devkit/common/src/lib/public/services/crt-zone/crt-zone.service.ts","../../../../../libs/devkit/common/src/creatio-devkit-common.ts"],"sourcesContent":["import { AggregationType } from '../../base-exports';\nimport { AggregationFunction } from '../../base-exports';\nimport { AggregationEvalType } from '../../base-exports';\nimport { AggregationEval } from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toAggregationType(aggregationFunction: AggregationFunction): AggregationType {\n\tswitch (aggregationFunction) {\n\t\tcase AggregationFunction.Count:\n\t\t\treturn AggregationType.Count;\n\t\tcase AggregationFunction.Sum:\n\t\t\treturn AggregationType.Sum;\n\t\tcase AggregationFunction.Avg:\n\t\t\treturn AggregationType.Avg;\n\t\tcase AggregationFunction.Min:\n\t\t\treturn AggregationType.Min;\n\t\tcase AggregationFunction.Max:\n\t\t\treturn AggregationType.Max;\n\t\tcase AggregationFunction.TopOne:\n\t\t\treturn AggregationType.TopOne;\n\t\tdefault:\n\t\t\treturn AggregationType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationFunction(aggregationType: AggregationType): AggregationFunction {\n\tswitch (aggregationType) {\n\t\tcase AggregationType.Count:\n\t\t\treturn AggregationFunction.Count;\n\t\tcase AggregationType.Sum:\n\t\t\treturn AggregationFunction.Sum;\n\t\tcase AggregationType.Avg:\n\t\t\treturn AggregationFunction.Avg;\n\t\tcase AggregationType.Min:\n\t\t\treturn AggregationFunction.Min;\n\t\tcase AggregationType.Max:\n\t\t\treturn AggregationFunction.Max;\n\t\tcase AggregationType.TopOne:\n\t\t\treturn AggregationFunction.TopOne;\n\t\tdefault:\n\t\t\treturn AggregationFunction.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationEvalType(aggregationEval: AggregationEval): AggregationEvalType {\n\tswitch (aggregationEval) {\n\t\tcase 'all':\n\t\t\treturn AggregationEvalType.All;\n\t\tcase 'distinct':\n\t\t\treturn AggregationEvalType.Distinct;\n\t\tdefault:\n\t\t\treturn AggregationEvalType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationEval(aggregationEvalType: AggregationEvalType): AggregationEval {\n\tswitch (aggregationEvalType) {\n\t\tcase AggregationEvalType.All:\n\t\t\treturn 'all';\n\t\tcase AggregationEvalType.Distinct:\n\t\t\treturn 'distinct';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","import {DatePart, DatePartType} from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toDatePartType(aggregationFunction: DatePart): DatePartType {\n\tswitch (aggregationFunction) {\n\t\tcase 'minute':\n\t\t\treturn DatePartType.HourMinute;\n\t\tcase 'hour':\n\t\t\treturn DatePartType.Hour;\n\t\tcase 'day':\n\t\t\treturn DatePartType.Day;\n\t\tcase 'weekday':\n\t\t\treturn DatePartType.WeekDay;\n\t\tcase 'week':\n\t\t\treturn DatePartType.Week;\n\t\tcase 'month':\n\t\t\treturn DatePartType.Month;\n\t\tcase 'year':\n\t\t\treturn DatePartType.Year;\n\t\tdefault:\n\t\t\treturn DatePartType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toDatePart(aggregationType: DatePartType): DatePart {\n\tswitch (aggregationType) {\n\t\tcase DatePartType.HourMinute:\n\t\t\treturn 'minute';\n\t\tcase DatePartType.Hour:\n\t\t\treturn 'hour';\n\t\tcase DatePartType.Day:\n\t\t\treturn 'day';\n\t\tcase DatePartType.WeekDay:\n\t\t\treturn 'weekday';\n\t\tcase DatePartType.Week:\n\t\t\treturn 'week';\n\t\tcase DatePartType.Month:\n\t\t\treturn 'month';\n\t\tcase DatePartType.Year:\n\t\t\treturn 'year';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","import {FunctionStringType, FunctionType} from '../../base-exports';\n\n\n/**\n * @internal\n */\nexport function toStringFunctionType(functionType: FunctionType): FunctionStringType {\n\tswitch (functionType) {\n\t\tcase FunctionType.Aggregation:\n\t\t\treturn 'aggregation';\n\t\tcase FunctionType.DatePart:\n\t\t\treturn 'datePart';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n\n/**\n * @internal\n */\nexport function toNumericFunctionType(functionType: FunctionStringType): FunctionType {\n\tswitch (functionType) {\n\t\tcase 'aggregation':\n\t\t\treturn FunctionType.Aggregation;\n\t\tcase 'datePart':\n\t\t\treturn FunctionType.DatePart;\n\t\tdefault:\n\t\t\treturn FunctionType.None;\n\t}\n}\n","import { OrderDirection } from '../../base-exports';\nimport { SortDirection } from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toOrderDirection(sortDirection: SortDirection): OrderDirection {\n\tswitch (sortDirection) {\n\t\tcase 'asc':\n\t\t\treturn OrderDirection.Asc;\n\t\tcase 'desc':\n\t\t\treturn OrderDirection.Desc;\n\t\tdefault:\n\t\t\treturn OrderDirection.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toSortDirection(orderDirection: OrderDirection): SortDirection {\n\tswitch (orderDirection) {\n\t\tcase OrderDirection.Asc:\n\t\t\treturn 'asc';\n\t\tcase OrderDirection.Desc:\n\t\t\treturn 'desc';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","/**\n * @internal\n */\nexport const crtInputPrefix = 'crtInput:';\n/**\n * @internal\n */\nexport const crtOutputPrefix = 'crtOutput:';\n/**\n * @internal\n */\nexport const crtValidationInputPrefix = 'crtValidationInput:';\n/**\n * @internal\n */\nexport const crtInjectPrefix = 'crtInject:';\n","/**\n * @internal\n * @hostPublicApi\n */\nexport enum ViewElementGroupType {\n\tCharts = 'Charts',\n\tComponents = 'Components',\n\tLayoutElements = 'LayoutElements',\n\tInputs = 'Inputs',\n\tCustomElements = 'CustomElements',\n}\n","import { ViewElementGroupType } from './view-element-group-type.enum';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport enum ViewElementDataGroupType {\n\tData = 'Data',\n}\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type DesignerToolGroupType = ViewElementDataGroupType | ViewElementGroupType;\n\n/**\n * @internal\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DesignerToolGroupType = { ...ViewElementDataGroupType, ...ViewElementGroupType };\n","/**\n * Handler source types in order of call priority.\n * @internal\n * @hostPublicApi\n */\nexport enum HandlerSourceType {\n\tSchema = 0,\n\tRemote = 1,\n\tHost = 2,\n}\n","/**\n * @internal\n */\nexport enum ModelInPageAction {\n\tEdit = 'edit',\n\tAdd = 'add',\n\tCopy = 'copy',\n}\n","import { get, set } from 'lodash';\nconst global = window;\n\n/**\n * @public\n * @description For internal use only.\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\ninterface ɵRegistryItemsStore {\n\ttypeInfos: Map<string, any>;\n}\n\n/**\n * @public\n * @description For internal use only.\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class ɵBaseRegistry {\n\tprivate static readonly _prefix = 'creatio.registry.';\n\tprivate static _instance: ɵBaseRegistry;\n\n\tprotected static readonly registryKey: string;\n\n\tprotected static get store(): ɵRegistryItemsStore {\n\t\tif (!this._instance) {\n\t\t\tlet globalInstance = get(global, this._prefix + this.registryKey);\n\t\t\tif (!globalInstance) {\n\t\t\t\tglobalInstance = new this();\n\t\t\t\tset(global, this._prefix + this.registryKey, globalInstance);\n\t\t\t}\n\t\t\tthis._instance = globalInstance;\n\t\t}\n\t\treturn this._instance.store;\n\t}\n\n\t/**\n\t * @hostPubicApi available through window.creatio.registry.<registryKey>.store\n\t */\n\tprotected store: ɵRegistryItemsStore = {\n\t\ttypeInfos: new Map(),\n\t};\n}\n","import { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n */\nexport class PkgTopology extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'pkgTopology';\n\n\tpublic static get items(): Map<string, number> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static get(pkgName: string): number {\n\t\tconst order = this.items.get(pkgName);\n\t\tif (order === undefined) {\n\t\t\tthrow new Error(`Package with name ${pkgName} not found in topology`);\n\t\t}\n\t\treturn order;\n\t}\n}\n","import { HandlerSourceType } from '../enums';\nimport { HandlerConfig } from '../models/request-handler/handler-config';\nimport { PkgTopology } from '../services/pkg-topology-registry/pkg-topology-registry';\nimport {BaseRequest} from '../../base-exports';\n\n/**\n * @internal\n */\nexport class HandlersOrderComparer {\n\tprivate _scopesOrder: Map<string, number>;\n\n\tconstructor(private _request: BaseRequest) {\n\t\tconst scopesOrderEntries = [...(this._request.scopes ?? [])].reverse().map((scope, index) => [scope, index]);\n\t\tthis._scopesOrder = Object.fromEntries(scopesOrderEntries);\n\t}\n\n\tprivate _getOrderByScopes(handler: HandlerConfig): number {\n\t\tif (!handler.scopes) {\n\t\t\treturn Number.MAX_VALUE;\n\t\t}\n\t\tconst scopesOrder = handler.scopes.filter((s) => s in this._scopesOrder).map((s) => this._scopesOrder[s]);\n\t\treturn Math.min(...scopesOrder);\n\t}\n\n\tprivate _getOrderByPkgTopology(handler: HandlerConfig): number {\n\t\tif (handler.source.type === HandlerSourceType.Host) {\n\t\t\treturn Number.MAX_VALUE;\n\t\t}\n\t\treturn PkgTopology.get(handler.source.packageName);\n\t}\n\n\tpublic compare(a: HandlerConfig, b: HandlerConfig): number {\n\t\tconst aScopeOrder = this._getOrderByScopes(a);\n\t\tconst bScopeOrder = this._getOrderByScopes(b);\n\t\tlet diff = aScopeOrder - bScopeOrder;\n\t\tif (diff) {\n\t\t\treturn diff;\n\t\t}\n\t\tconst aPkgTopologyOrder = this._getOrderByPkgTopology(a);\n\t\tconst bPkgTopologyOrder = this._getOrderByPkgTopology(b);\n\t\tdiff = aPkgTopologyOrder - bPkgTopologyOrder;\n\t\tif (diff) {\n\t\t\treturn diff;\n\t\t}\n\t\tdiff = a.source.type - b.source.type;\n\t\treturn diff;\n\t}\n}\n","import {\n\tBaseRequest,\n\tgenerateGuid,\n\tNextHandlerAlreadySpecifiedException,\n\tRequestHandler,\n\tViewModelContext,\n} from '../../../base-exports';\nimport { InjectionContext } from '../../../internal/models/injection-context';\nimport { ContexedHandlerScopeConfig } from '../../../internal/models/request-handler/contexed-handler-scope-config';\nimport { HandlerConfig } from '../../../internal/models/request-handler/handler-config';\nimport { HandlersOrderComparer } from '../../../internal/utils/handlers-order-comparer';\nimport { TeardownLogic } from '../../types';\n\n/**\n * @internal\n * @hostPublicApi available through window.handlerChain\n */\nexport class InternalHandlerChain {\n\tprivate _handlers: HandlerConfig[] = [];\n\tprivate _requestListeners: Map<string, (request: BaseRequest) => void> = new Map();\n\tprivate _handlersCache = new Map<string, Map<string, RequestHandler | undefined>>();\n\tprivate _handlersScopesByContextId = new Map<string, ContexedHandlerScopeConfig[]>();\n\n\t/**\n\t * @hostPublicApi\n\t */\n\tpublic handlerChain$ = {\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tprocess: async (request: BaseRequest) => {\n\t\t\tconst handler = this._getHandler(request);\n\t\t\tthis._requestListeners.forEach((listener) => listener?.(request));\n\t\t\treturn handler?.handle(request);\n\t\t},\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tregister: (info: HandlerConfig) => {\n\t\t\tthis._handlersCache.delete(info.requestType);\n\t\t\tthis._handlers.push(info);\n\t\t\treturn () => {\n\t\t\t\tconst index = this._handlers.indexOf(info);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tthis._handlers.splice(index, 1);\n\t\t\t\t\tthis._handlersCache.delete(info.requestType);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.warn(`${info?.requestType} not found to unsubscribe`);\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tsubscribe: (callback: (request: BaseRequest) => void, context?: ViewModelContext): TeardownLogic => {\n\t\t\tif (!callback) {\n\t\t\t\treturn () => void 0;\n\t\t\t}\n\t\t\tconst listenerId = generateGuid();\n\t\t\tconst listenerFn: (request: BaseRequest) => void = (request) => {\n\t\t\t\tif (!context || request.$context === context) {\n\t\t\t\t\tcallback(request);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthis._requestListeners.set(listenerId, listenerFn);\n\t\t\treturn () => this._requestListeners.delete(listenerId);\n\t\t},\n\t};\n\n\t/**\n\t * @hostPublicApi\n\t */\n\tpublic clearContextedHandlersCache(contextId: string): boolean {\n\t\tconst configs: ContexedHandlerScopeConfig[] = this._handlersScopesByContextId.get(contextId) ?? [];\n\t\treturn configs.every(({ requestType, scope }) => this._handlersCache.get(requestType)?.delete(scope));\n\t}\n\n\tprivate _getHandler(request: BaseRequest): RequestHandler | undefined {\n\t\treturn this._hasCacheHandler(request) ? this._getCacheHandler(request) : this._buildHandlersChain(request);\n\t}\n\n\tprivate _getCacheHandler(request: BaseRequest): RequestHandler | undefined {\n\t\tconst map = this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>;\n\t\tconst key = this._getCacheScopesKey(request);\n\t\treturn map.get(key);\n\t}\n\n\tprivate _hasCacheHandler(request: BaseRequest): boolean {\n\t\tconst map = this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>;\n\t\tconst key = this._getCacheScopesKey(request);\n\t\treturn map && map.has(key);\n\t}\n\n\tprivate _getCacheScopesKey(request: BaseRequest): string {\n\t\tconst injectionContextKey = this._getInjectionContext(request?.$context)?.id ?? '';\n\t\treturn (request.scopes || ['']).join('_').concat(injectionContextKey);\n\t}\n\n\tprivate _getInjectionContext(viewModel?: ViewModelContext): InjectionContext {\n\t\treturn (\n\t\t\tviewModel?.['_injectionContext'] ||\n\t\t\t(viewModel?.['parent'] && this._getInjectionContext(viewModel['parent']))\n\t\t);\n\t}\n\n\tprivate _setContextedScopes(request: BaseRequest, scope: string): void {\n\t\tconst injectionContext = this._getInjectionContext(request?.$context)?.id;\n\t\tconst configs = this._handlersScopesByContextId.has(injectionContext)\n\t\t\t? (this._handlersScopesByContextId.get(injectionContext) as ContexedHandlerScopeConfig[])\n\t\t\t: [];\n\t\tconfigs.push({ requestType: request.type, scope });\n\t\tthis._handlersScopesByContextId.set(injectionContext, configs);\n\t}\n\n\tprivate _setCacheHandler(request: BaseRequest, handler: RequestHandler | undefined): void {\n\t\tconst map = this._handlersCache.has(request.type)\n\t\t\t? (this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>)\n\t\t\t: new Map();\n\t\tconst key = this._getCacheScopesKey(request);\n\t\tmap.set(key, handler);\n\t\tif (this._getInjectionContext(request?.$context)?.id) {\n\t\t\tthis._setContextedScopes(request, key);\n\t\t}\n\t\tthis._handlersCache.set(request.type, map);\n\t}\n\n\tprivate _isRequestHandler(handler: unknown): handler is RequestHandler {\n\t\treturn (\n\t\t\ttypeof (handler as RequestHandler).handle === 'function' &&\n\t\t\ttypeof (handler as RequestHandler).setNext === 'function'\n\t\t);\n\t}\n\n\tprivate _checkHandlerInstanceOf(handler: unknown): void {\n\t\tif (!this._isRequestHandler(handler)) {\n\t\t\tthrow new Error('Handler should implement \"BaseRequestHandler\"');\n\t\t}\n\t}\n\n\tprivate _buildHandlersChain(request: BaseRequest): RequestHandler | undefined {\n\t\tconst handlers = this._handlers.filter((h) => {\n\t\t\tif (h.requestType !== request.type) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!h.scopes?.length) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn h.scopes.some((s) => request.scopes?.includes(s));\n\t\t});\n\t\tconst comparer = new HandlersOrderComparer(request);\n\t\thandlers.sort((a, b) => comparer.compare(a, b));\n\t\tconst handlerInstances = handlers.map((handlerConfig) => {\n\t\t\tconst injectionContext = this._getInjectionContext(request?.$context);\n\t\t\treturn handlerConfig.createHandler(injectionContext);\n\t\t});\n\t\thandlerInstances.forEach((handler) => this._checkHandlerInstanceOf(handler));\n\t\tthis._joinHandlersInChain(handlerInstances);\n\t\tconst result = handlerInstances[0];\n\t\tthis._setCacheHandler(request, result);\n\t\treturn result;\n\t}\n\n\tprivate _joinHandlersInChain(handlers: RequestHandler[]): void {\n\t\tfor (let index = 0; index < handlers.length - 1; index++) {\n\t\t\ttry {\n\t\t\t\thandlers[index].setNext(handlers[index + 1]);\n\t\t\t} catch (error) {\n\t\t\t\tif (error instanceof NextHandlerAlreadySpecifiedException) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Handler factory should return new instance of ' +\n\t\t\t\t\t\t\t'BaseRequestHandler class or its subclass ' +\n\t\t\t\t\t\t\t'(next handler should not be specified)',\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\nimport { InternalHandlerChain } from './internal-handler-chain';\nimport { ViewModelContext } from '../../../base-exports';\nimport { HandlerConfig } from '../../../internal/models/request-handler/handler-config';\nimport { TeardownLogic } from '../../types';\n\ntype GlobalType = Window & {\n\thandlerChain: InternalHandlerChain;\n};\nconst global = window as unknown as GlobalType;\n\n/**\n * @public\n * @class HandlerChainService\n * @classdesc Service to design handlers in chain.\n */\nexport class HandlerChainService {\n\tprivate get _chain(): InternalHandlerChain {\n\t\treturn global.handlerChain;\n\t}\n\n\tprivate set _chain(value: InternalHandlerChain) {\n\t\tglobal.handlerChain = value;\n\t}\n\tprivate static _instance: HandlerChainService;\n\tpublic static get instance(): HandlerChainService {\n\t\treturn HandlerChainService._instance || (HandlerChainService._instance = new HandlerChainService());\n\t}\n\n\tprivate constructor() {\n\t\tif (!this._chain) {\n\t\t\tthis._createGlobalHandlerChain();\n\t\t}\n\t}\n\n\tprivate _createGlobalHandlerChain() {\n\t\tthis._chain = new InternalHandlerChain();\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic clearContextedHandlersCache(contextId: string): boolean {\n\t\treturn this._chain.clearContextedHandlersCache(contextId);\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic register(handlerConfig: HandlerConfig) {\n\t\treturn this._chain.handlerChain$.register(handlerConfig);\n\t}\n\n\t/**\n\t * @description Method to process passed request\n\t * @param request - {@link ɵBaseRequest}\n\t * @return `Promise<unknown>`\n\t */\n\tpublic process(request: ɵBaseRequest): Promise<unknown> {\n\t\treturn this._chain.handlerChain$.process(request);\n\t}\n\n\t/**\n\t * @internal\n\t * Subscribes to requests.\n\t * @param callback A handler function for each request triggered.\n\t * @param context (optional) A context in which the requests were triggered.\n\t * The `callback` will be called only for requests with specified context.\n\t * If not specified, will be called for all requests.\n\t * @returns A function to cancel the subscription.\n\t */\n\tpublic subscribe(callback: (request: ɵBaseRequest) => void, context?: ViewModelContext): TeardownLogic {\n\t\treturn this._chain.handlerChain$.subscribe(callback, context);\n\t}\n}\n","import { MethodInvokeRequest } from '../../../internal/models';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { HandlerChainService } from '../../../public/services/handler-chain/handler-chain.service';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function ImplementUsingHandlerChain(config?: { requestType?: string; methodName?: string }) {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function (target: BaseHandlerChainService | any, method: string, descriptor?: TypedPropertyDescriptor<any>) {\n\t\tconst methodImplementation = function (this: BaseHandlerChainService, ...args: unknown[]) {\n\t\t\treturn HandlerChainService.instance.process({\n\t\t\t\ttype: config?.requestType ? config.requestType : this.requestType,\n\t\t\t\tmethod: config?.methodName ? config.methodName : method,\n\t\t\t\targs,\n\t\t\t} as MethodInvokeRequest);\n\t\t};\n\t\tif (descriptor) {\n\t\t\tdescriptor.value = methodImplementation;\n\t\t} else {\n\t\t\t(target as unknown as Record<string, unknown>)[method] = methodImplementation;\n\t\t}\n\t};\n}\n","/**\n * @internal\n */\nexport function objectDeepKeys(obj: object): Array<Array<string>> {\n\tif (obj === null || typeof obj !== 'object') {\n\t\treturn [];\n\t}\n\treturn Object.keys(obj)\n\t\t.filter((key) => obj[key] instanceof Object)\n\t\t.map((key) => objectDeepKeys(obj[key]).map((k) => [key, ...k]))\n\t\t.reduce(\n\t\t\t(x, y) => [...x, ...y],\n\t\t\tObject.keys(obj).map((x) => [x]),\n\t\t);\n}\n","import { camelCase, isEqual, upperFirst } from 'lodash';\n\n/**\n * @internal\n */\nexport function checkTypeNameFormat(type: string, element: string): void {\n\tconst typeParts = type.split('.');\n\tif (typeParts.length < 2) {\n\t\tthrow new Error(`Error when register ${type}. Type property should have format \"VendorPrefix.${element}\"`);\n\t}\n}\n\n/**\n * @public\n * @description For internal use only.\n */\nexport function ɵcheckTypeNameFormat(type: string, element: string): void {\n\treturn checkTypeNameFormat(type, element);\n}\n\n/**\n * @internal\n */\nexport function checkTypeNamePascalCase(type: string): void {\n\tconst [vendor, typeName] = type.split('.');\n\tconst pascalTypeName = toPascalCase(typeName);\n\tif (!vendor || pascalTypeName !== typeName) {\n\t\tthrow new Error(\n\t\t\t`Error when register ${type}. Type property should have Pascal case, e.g. ${\n\t\t\t\tvendor + '.' + pascalTypeName\n\t\t\t}. ` + 'The first letter of each word in a compound word should be capitalized',\n\t\t);\n\t}\n}\n\n/**\n * @internal\n */\nexport function checkCrtTypeNamePascalCase(type: string): void {\n\tconst [vendor, typeName] = type.split('.');\n\tconst pascalTypeName = toPascalCase(typeName);\n\tif (vendor.toLowerCase() === 'crt' && pascalTypeName !== typeName) {\n\t\tthrow new Error(\n\t\t\t`Error when register ${type}. Type property should have Pascal case, e.g. ${\n\t\t\t\tvendor + '.' + pascalTypeName\n\t\t\t}. ` + 'The first letter of each word in a compound word should be capitalized',\n\t\t);\n\t}\n}\n\n/**\n * @internal\n */\nexport function toPascalCase(source: string): string {\n\treturn upperFirst(camelCase(source));\n}\n\n/**\n * @internal\n */\nexport function checkIfTypeRegistered<T>(\n\ttype: string,\n\titem: (new () => T) | undefined | null,\n): asserts item is new () => T {\n\tif (!item) {\n\t\tthrow new Error(`Error when resolve ${type}. Type was not registered.`);\n\t}\n}\n\n/**\n * @internal\n */\nexport function checkOnlyOneRegistration<T>(type: string, item: T, map: Map<string, T>): void {\n\tif (map.has(type) && !isEqual(map.get(type), item)) {\n\t\tthrow new Error(`Error when register ${type}. Element with this type has already exist`);\n\t}\n}\n","import { RequestHandler } from '../../../base-exports';\nimport { RequestHandlerRegistrationConfig } from '../../../internal/models';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type RequestHandlerCtor = new (...args: unknown[]) => RequestHandler;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport interface RequestHandlerMapValue {\n\t// region Fields: Public\n\n\treadonly instanceType: RequestHandlerCtor;\n\treadonly instanceConfig: RequestHandlerRegistrationConfig;\n\n\t// endregion\n}\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type AddRequestHandlerListener = (requestType: string, requestMapInfo: RequestHandlerMapValue) => void;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type RemoveRequestHandlerListener = AddRequestHandlerListener;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type UnsubscribeListener = () => void;\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.requestHandlerRegistry\n */\nexport class InternalRequestHandlerRegistryType {\n\tprivate static _addItemListeners: Array<AddRequestHandlerListener> = [];\n\tprivate static _removeItemListeners: Array<AddRequestHandlerListener> = [];\n\tprivate static _requestHandlersMap = new Map<string, RequestHandlerMapValue>();\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static get requestHandlersMap(): Map<string, RequestHandlerMapValue> {\n\t\treturn this._requestHandlersMap;\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static onAddRequestHandler(handler: AddRequestHandlerListener): UnsubscribeListener {\n\t\tthis._addItemListeners.push(handler);\n\t\treturn () => {\n\t\t\tthis._addItemListeners.splice(this._addItemListeners.indexOf(handler), 1);\n\t\t};\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static onRemoveRequestHandler(handler: RemoveRequestHandlerListener): UnsubscribeListener {\n\t\tthis._removeItemListeners.push(handler);\n\t\treturn () => {\n\t\t\tthis._removeItemListeners.splice(this._removeItemListeners.indexOf(handler), 1);\n\t\t};\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static addRequestHandler(handlerType: string, config: RequestHandlerMapValue): void {\n\t\tif (!this._requestHandlersMap.has(handlerType)) {\n\t\t\tthis._requestHandlersMap.set(handlerType, config);\n\t\t\tfor (const listener of this._addItemListeners) {\n\t\t\t\tlistener(handlerType, config);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static removeRequestHandler(handlerType: string): void {\n\t\tconst config = this._requestHandlersMap.get(handlerType);\n\t\tif (config) {\n\t\t\tthis._requestHandlersMap.delete(handlerType);\n\t\t\tfor (const listener of this._removeItemListeners) {\n\t\t\t\tlistener(handlerType, config);\n\t\t\t}\n\t\t}\n\t}\n}\ntype GlobalType = Window & {\n\tcreatio: {\n\t\trequestHandlerRegistry: typeof InternalRequestHandlerRegistryType;\n\t};\n};\n\nconst global = window as unknown as GlobalType;\n\nglobal.creatio ??= {} as any;\n\nif (!global.creatio.requestHandlerRegistry) {\n\tObject.defineProperty(global.creatio, 'requestHandlerRegistry', {\n\t\tget: () => InternalRequestHandlerRegistryType,\n\t\tconfigurable: false,\n\t});\n}\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const InternalRequestHandlerRegistry = InternalRequestHandlerRegistryType;\n\n/**\n * @internal\n */\nexport class RequestHandlerRegistryService {\n\tprivate static _internalRegistry: typeof InternalRequestHandlerRegistryType = global.creatio.requestHandlerRegistry;\n\n\t/**\n\t * Register request handler class.\n\t * @param config Request handler registration config.\n\t * @param type Request handler type.\n\t */\n\tpublic static register(config: RequestHandlerRegistrationConfig, type: RequestHandlerCtor): void {\n\t\tconst requestType = config.requestType;\n\t\tconst requestHandlerType = config.type;\n\t\tif (!requestType) {\n\t\t\tthrow new Error(`Error when register ${requestHandlerType}. Request type not specified.`);\n\t\t}\n\t\tconst requestHandlerMapValue: RequestHandlerMapValue = {\n\t\t\tinstanceType: type,\n\t\t\tinstanceConfig: config,\n\t\t};\n\t\tRequestHandlerRegistryService._internalRegistry.addRequestHandler(requestHandlerType, requestHandlerMapValue);\n\t}\n}\n","import { BaseRequest } from '../../../base-exports';\nimport { RequestRegistrationConfig } from '../../../public/models';\nimport { checkIfTypeRegistered } from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport type BaseRequestCtor = new () => BaseRequest;\n\n/**\n * @internal\n */\nexport class RequestRegistryService {\n\tprivate static _requestsMap = new Map<string, BaseRequestCtor>();\n\tprivate static _requestsRegistrationInfos = new Map<string, RequestRegistrationConfig>();\n\n\tpublic static get requestsRegistrationInfos(): ReadonlyMap<string, RequestRegistrationConfig> {\n\t\treturn this._requestsRegistrationInfos;\n\t}\n\n\t/**\n\t * Registers a specified request class.\n\t * @param config Request registration config.\n\t * @param type Request type.\n\t */\n\tpublic static register(config: RequestRegistrationConfig, type: BaseRequestCtor) {\n\t\tconst requestType = config.type;\n\t\t// TODO RND-21723\n\t\tRequestRegistryService._requestsMap.set(requestType, type);\n\t\tRequestRegistryService._requestsRegistrationInfos.set(requestType, config);\n\t}\n\n\t/**\n\t * Creates request instance by specified registered request type.\n\t * @param type Request type.\n\t * @returns The instance of registered request.\n\t */\n\tpublic static get(type: string): BaseRequest | undefined {\n\t\tconst requestInstanceConstructor = RequestRegistryService._requestsMap.get(type);\n\t\tcheckIfTypeRegistered(type, requestInstanceConstructor);\n\t\treturn requestInstanceConstructor && new requestInstanceConstructor();\n\t}\n}\n","import { ConverterRegistryItem } from '../../models/converter';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkCrtTypeNamePascalCase, checkTypeNameFormat } from '../element-registration-checker';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ConverterRegistry\n */\nexport class ConverterRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'ConverterRegistry';\n\n\tpublic static get(type: string): ConverterRegistryItem {\n\t\tif (!this.store.typeInfos.has(type)) {\n\t\t\tthrow new Error(`'${type}' converter doesn't exist`);\n\t\t}\n\t\treturn this.store.typeInfos.get(type);\n\t}\n\n\tpublic static register(item: ConverterRegistryItem): void {\n\t\tcheckTypeNameFormat(item.type, 'ConverterTypeName');\n\t\tcheckCrtTypeNamePascalCase(item.type);\n\t\t// TODO RND-21723\n\t\tthis.store.typeInfos.set(item.type, item);\n\t}\n\n\tpublic static clear(): void {\n\t\tthis.store.typeInfos.clear();\n\t}\n}\n","import { BaseViewElementRegistrationConfig } from '../../../public/models';\nimport { ViewElementRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkOnlyOneRegistration, checkTypeNameFormat } from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport const viewElementRegistryKey = 'ViewElementRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ValidatorRegistry\n */\nexport class ViewElementRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = viewElementRegistryKey;\n\n\tpublic static validate(config: BaseViewElementRegistrationConfig): void {\n\t\tcheckTypeNameFormat(config.type, 'ViewElementTypeName');\n\t\tcheckOnlyOneRegistration(config.type, config, ViewElementRegistry.viewElements);\n\t}\n\n\tpublic static get viewElements(): Map<string, ViewElementRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static register(config: ViewElementRegistryItem): void {\n\t\tthis.viewElements.set(config.type, config);\n\t}\n\n\tpublic static getFormControlRelatesAttribute(type: string): string | null {\n\t\tconst config = this.store.typeInfos.get(type);\n\t\treturn (config && 'formControlConfig' in config && config.formControlConfig?.relatesTo) || null;\n\t}\n}\n","import { InterfaceDesignerRegistryItem } from '../../../internal/models';\nimport { ɵBaseRegistry } from '../../../internal/services/base-registry';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckOnlyOneRegistration,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\n\n/**\n * @internal\n */\nexport const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry\n */\nexport class InterfaceDesignerItemRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = interfaceDesignerItemRegistryKey;\n\n\tpublic static validate(config: InterfaceDesignerRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tcheckOnlyOneRegistration<InterfaceDesignerRegistryItem>(\n\t\t\tconfig.type,\n\t\t\tconfig,\n\t\t\tthis.interfaceDesignerItemRegistrationInfos,\n\t\t);\n\t}\n\n\tpublic static register(config: InterfaceDesignerRegistryItem): void {\n\t\tthis.interfaceDesignerItemRegistrationInfos.set(config.type, config);\n\t}\n\n\tpublic static get interfaceDesignerItemRegistrationInfos(): Map<string, InterfaceDesignerRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static get(type: string): InterfaceDesignerRegistryItem {\n\t\treturn <InterfaceDesignerRegistryItem>this.interfaceDesignerItemRegistrationInfos.get(type);\n\t}\n}\n","import {Type} from '../../../base-exports';\n\ntype Global = Window & { __crtModuleBootstrapNotifier: BootstrapNotifier };\nconst global: Global = window as unknown as Global;\n\n/**\n * @internal\n */\ninterface Subscription {\n\tunsubscribe: () => void;\n}\n\n/**\n * @internal\n */\ntype Subscriber = (moduleType: Type) => void;\n\n/**\n * @internal\n */\nexport class BootstrapNotifier {\n\tprivate _subscribers = new Set<Subscriber>();\n\n\tpublic static get instance(): BootstrapNotifier {\n\t\tif (!global.__crtModuleBootstrapNotifier) {\n\t\t\tglobal.__crtModuleBootstrapNotifier = new BootstrapNotifier();\n\t\t}\n\t\treturn global.__crtModuleBootstrapNotifier;\n\t}\n\n\tprivate constructor() {\n\t\t// private constructor prevent instantiation via 'new' keyword\n\t}\n\n\tpublic notify(moduleType: Type): void {\n\t\tfor (const subscriber of this._subscribers.values()) {\n\t\t\tsubscriber(moduleType);\n\t\t}\n\t}\n\n\tpublic subscribe(subscriber: Subscriber): Subscription {\n\t\tthis._subscribers.add(subscriber);\n\t\treturn {\n\t\t\tunsubscribe: () => this._subscribers.delete(subscriber),\n\t\t};\n\t}\n}\n","import { HandlerChainServiceRegistryItem } from '../../../internal/models';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n */\nexport class HandlerChainServicesRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'HandlerChainServicesRegistry';\n\n\tprivate static validate({ requestType }: HandlerChainServiceRegistryItem): void {\n\t\tcheckTypeNameFormat(requestType, this.registryKey);\n\t\tcheckCrtTypeNamePascalCase(requestType);\n\t\tthis.checkUniqueRequestType(requestType);\n\t}\n\n\tprivate static checkUniqueRequestType(requestType): void {\n\t\tif (this.services.get(requestType)) {\n\t\t\tthrow new Error(`${requestType} already registered`);\n\t\t}\n\t}\n\n\tpublic static register(config: HandlerChainServiceRegistryItem): void {\n\t\tthis.validate(config);\n\t\tthis.services.set(config.requestType, config);\n\t}\n\n\tpublic static get services(): Map<string, HandlerChainServiceRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { DesignTimeViewElementRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckOnlyOneRegistration,\n\tcheckTypeNameFormat,\n} from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.DesignTimeViewElementRegistry\n */\nexport class DesignTimeViewElementRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = designTimeViewElementRegistryKey;\n\n\tpublic static validate(config: DesignTimeViewElementRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tcheckOnlyOneRegistration<DesignTimeViewElementRegistryItem>(config.type, config, this.infos);\n\t}\n\n\tpublic static register(config: DesignTimeViewElementRegistryItem): void {\n\t\tthis.infos.set(config.type, config);\n\t}\n\n\tpublic static getByOverriddenType(type: string): DesignTimeViewElementRegistryItem | null {\n\t\tconst item = Array.from(this.infos).find(([_, info]) => info.overrideType === type);\n\t\tif (item) {\n\t\t\treturn item[1];\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic static get infos(): Map<string, DesignTimeViewElementRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { Type } from '../../../base-exports';\nimport { BaseValidator, ValidatorConfig } from '../../../public/models';\nimport { ValidatorRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkTypeNameFormat } from '../element-registration-checker';\n/**\n * @internal\n */\nexport class ValidatorMapValue {\n\tpublic instanceType!: Type;\n\tpublic instanceConfig!: ValidatorConfig;\n}\n\n/**\n * @internal\n */\nexport const validatorRegistryKey = 'ValidatorRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ValidatorRegistry\n */\nexport class ValidatorRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = validatorRegistryKey;\n\n\tprivate static _has(configType: string, type: Type<BaseValidator>): boolean {\n\t\treturn ValidatorRegistry.items.has(configType) && ValidatorRegistry.items.get(configType)?.typeRef !== type;\n\t}\n\n\tpublic static validate(config: ValidatorRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'ValidatorTypeName');\n\t\tif (ValidatorRegistry._has(config.type, config.typeRef)) {\n\t\t\tthrow new Error(`Error when register ${config.type}. Element with this type has already exist`);\n\t\t}\n\t}\n\n\tpublic static get items(): Map<string, ValidatorRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static register(config: ValidatorRegistryItem): void {\n\t\tthis.items.set(config.type, config);\n\t}\n}\n","import type { RemoteBuildInfo } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n * @dontChange\n */\nexport class RemoteEntriesRegistry extends ɵBaseRegistry {\n\t/**\n\t * @dontChange\n\t */\n\tprotected static override registryKey = 'remotes';\n\n\t/**\n\t * @dontChange\n\t */\n\tpublic static get items(): Map<string, RemoteBuildInfo> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { ViewElementRegistryItem } from '../models';\nimport { ViewElementRegistry } from '../services';\n\n/**\n * @internal\n */\nexport function isComponentPropertyBindable(viewConfigType: string, componentProperty: string): boolean {\n\tconst componentConfig = ViewElementRegistry.viewElements.get(viewConfigType) as ViewElementRegistryItem;\n\tif (!componentConfig?.inputs) {\n\t\treturn false;\n\t}\n\treturn !!componentConfig?.inputs[componentProperty]?.propertyBindable;\n}\n","import 'reflect-metadata';\nimport { Type } from '../../base-exports';\nimport {\n\tBaseValidator,\n\tConverter,\n\tCrtInputRegistrationConfig,\n\tModuleDefinition,\n\tRequestHandlerDefinition,\n\tValidatorConfig,\n\tViewElementRegistrationConfig,\n} from '../../public/models';\nimport { InterfaceDesignerItemDefinition } from '../../public/models/interface-designer-item/interface-designer-item-definition';\nimport { crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix } from '../constants';\nimport {\n\tAngularViewElementRegistrationConfig,\n\tDesignTimeViewElementRegistryItem,\n\tHandlerChainServiceRegistryItem,\n\tInternalInterfaceDesignerItemRegistrationConfig,\n} from '../models';\n\nconst moduleMetadataKey = 'module';\nconst viewElementMetadataKey = 'viewElement';\nconst interfaceDesignerItemMetadataKey = 'interfaceDesignerItem';\nconst requestHandlerMetadataKey = 'requestHandler';\nconst designTimeViewElementMetadataKey = 'designTimeViewElement';\nconst validatorMetadataKey = 'validator';\nconst converterMetadataKey = 'converter';\n\n/**\n * @internal\n */\nexport type ViewElementMetadata = ViewElementRegistrationConfig | AngularViewElementRegistrationConfig;\n\n/**\n * @internal\n */\nexport type InterfaceDesignerItemMetadata =\n\t| InterfaceDesignerItemDefinition\n\t| InternalInterfaceDesignerItemRegistrationConfig;\n\n/**\n * @internal\n */\nexport type ValidatorMetadata = ValidatorConfig & { typeRef: Type<BaseValidator> };\n\n/**\n * @internal\n */\nexport interface ConverterMetadata { type: string; typeRef: Type<Converter> }\n\n/**\n * @internal\n */\nexport function setModuleMetadata(metadata: ModuleDefinition, type: Type): void {\n\tReflect.defineMetadata(moduleMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getModuleMetadata(type: Type): ModuleDefinition {\n\tconst metadata = Reflect.getMetadata(moduleMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Module metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setViewElementMetadata(metadata: ViewElementMetadata, type: Type): void {\n\tReflect.defineMetadata(viewElementMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getViewElementMetadata(type: Type): ViewElementMetadata {\n\tconst metadata = Reflect.getMetadata(viewElementMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`View element metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setValidatorMetadata(metadata: ValidatorMetadata, type: Type): void {\n\tReflect.defineMetadata(validatorMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getValidatorMetadata(type: Type): ValidatorMetadata {\n\tconst metadata = Reflect.getOwnMetadata(validatorMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Validator metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setConverterMetadata(metadata: ConverterMetadata, type: Type): void {\n\tReflect.defineMetadata(converterMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getConverterMetadata(type: Type): ConverterMetadata {\n\tconst metadata = Reflect.getOwnMetadata(converterMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Converter metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setInterfaceDesignerItemMetadata(metadata: InterfaceDesignerItemMetadata, type: Type): void {\n\tReflect.defineMetadata(interfaceDesignerItemMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getInterfaceDesignerItemMetadata(type: Type): InterfaceDesignerItemMetadata {\n\tconst metadata = Reflect.getOwnMetadata(interfaceDesignerItemMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Interface designer item metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setDesignTimeViewElementMetadata(metadata: DesignTimeViewElementRegistryItem, type: Type): void {\n\tReflect.defineMetadata(designTimeViewElementMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getDesignTimeViewElementMetadata(type: Type): DesignTimeViewElementRegistryItem {\n\tconst metadata = Reflect.getOwnMetadata(designTimeViewElementMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Design time view element metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function hasInterfaceDesignerItemMetadata(type: Type): boolean {\n\treturn Reflect.hasOwnMetadata(interfaceDesignerItemMetadataKey, type);\n}\n\n/**\n * @internal\n */\nexport function setRequestHandlerMetadata(metadata: RequestHandlerDefinition, type: Type): void {\n\tReflect.defineMetadata(requestHandlerMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getRequestHandlerMetadata(type: Type): RequestHandlerDefinition {\n\tconst metadata = Reflect.getMetadata(requestHandlerMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Request handler metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function getHandlerChainServiceMetadata(typeRef: Type): HandlerChainServiceRegistryItem {\n\tconst requestType = Reflect.getMetadata('requestType', typeRef);\n\tif (!requestType) {\n\t\tthrow new Error(`requestType was not found on '${typeRef.name}' class`);\n\t}\n\treturn { requestType, typeRef };\n}\n\n/**\n * @internal\n */\nexport function getCrtInputsMetadata(type: Type): Record<string, CrtInputRegistrationConfig> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtInputKeys = keys.filter((x: string) => x.startsWith(crtInputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtInputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtInputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nexport function getCrtOutputsMetadata(type: Type): Record<string, unknown> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtOutputKeys = keys.filter((x: string) => x.startsWith(crtOutputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtOutputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtOutputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nexport function getCrtValidationInputsMetadata(type: Type): Record<string, unknown> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtValidationInputKeys = keys.filter((x: string) => x.startsWith(crtValidationInputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtValidationInputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtValidationInputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nfunction getCrtInjectMetadata(type: Type): Record<number, unknown> {\n\tconst keys = Reflect.getOwnMetadataKeys(type);\n\tconst crtInjectKeys = keys.filter((x: string) => x.startsWith(crtInjectPrefix));\n\treturn Object.fromEntries(\n\t\tcrtInjectKeys.map((key) => {\n\t\t\tconst index = Number(key.replace(crtInjectPrefix, ''));\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [index, data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nfunction getParentType(type: Type): Type {\n\tconst parentProto = type.prototype ? Object.getPrototypeOf(type.prototype) : null;\n\treturn parentProto ? parentProto.constructor : null;\n}\n\n/**\n * @internal\n */\nexport function getTypeDependencies(type: Type): unknown[] {\n\tconst paramTypes = Reflect.getOwnMetadata('design:paramtypes', type);\n\tif (!paramTypes) {\n\t\tif (type.length > 0) {\n\t\t\tthrow new Error(\n\t\t\t\t`Dependency Injection error. Cannot read dependencies of class '${type.name}'. ` +\n\t\t\t\t\t`Please make sure class '${type.name}' has decorator and ` +\n\t\t\t\t\t\"'emitDecoratorMetadata' option is enabled in your 'tsconfig.json' file.\",\n\t\t\t);\n\t\t}\n\t\tconst parentType = getParentType(type);\n\t\treturn parentType && parentType !== Object ? getTypeDependencies(parentType) : [];\n\t}\n\tconst crtInjectMetadata = getCrtInjectMetadata(type);\n\tObject.entries(crtInjectMetadata).forEach(([index, token]) => (paramTypes[index] = token));\n\treturn paramTypes;\n}\n","import { getTypeDependencies } from './metadata-utils';\nimport {ResolveDependencyFn, Type} from '../../base-exports';\n\n/**\n * @internal\n */\nexport function instantiate<T = unknown>(type: Type<T>, resolveDependency: ResolveDependencyFn | undefined): T {\n\tconst deps = getTypeDependencies(type);\n\tif (deps.length > 0) {\n\t\tif (!resolveDependency) {\n\t\t\tthrow new Error(\n\t\t\t\t`Cannot resolve dependencies for ${type.name}. ` +\n\t\t\t\t\t\"Please provide 'resolveDependency' bootstrap option\",\n\t\t\t);\n\t\t}\n\t\tconst depInstances = deps.map(resolveDependency);\n\t\treturn new type(...depInstances);\n\t}\n\treturn new type();\n}\n\n/**\n * @public\n * @description For internal use only.\n */\nexport function ɵinstantiate<T = unknown>(type: Type<T>, resolveDependency: ResolveDependencyFn | undefined): T {\n\treturn instantiate<T>(type, resolveDependency);\n}\n","/**\n * @public\n */\nexport class CrtInputRegistrationConfig {\n\t/**\n\t * @internal\n\t */\n\tpublic propertyBindable?: boolean;\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\n/**\n * @public\n * @class DataRequest\n * @description Definition of data source request.\n * @extends {ɵBaseRequest} {@link ɵBaseRequest}\n * @property {string} dataSourceName - name of assigned data source.\n */\nexport class DataRequest extends ɵBaseRequest {\n\t/**\n\t * @description name of assigned data source.\n\t */\n\tpublic readonly dataSourceName!: string;\n}\n","/**\n * @public\n * @description Request payload\n * @property {string} request - request name.\n * @property {unknown} params - request parameters.\n */\n\nexport interface BaseRequestConfig {\n\t/**\n\t * @description request name.\n\t */\n\trequest: string;\n\n\t/**\n\t * @description request parameters.\n\t */\n\tparams?: unknown;\n}\n","/**\n * @internal\n */\nexport enum ViewElementReuseStrategy {\n\t/**\n\t * Reuse early created view element when it state changed\n\t */\n\tReuse,\n\t/**\n\t * Rerender(recreate) view element when it state changed\n\t */\n\tRerender, // TODO RND-49517\n}\n","import { CrtControlState } from './crt-control-state';\nimport { CrtValidationErrors } from './crt-validation-errors';\nimport { CrtValidatorFn } from './crt-validator-fn';\nimport { ValidatorParametersValues } from './validator-parameter-values';\n\n/**\n * @public\n * @description Abstract Base Validator class for designing custom validators.\n * @example\n * @CrtValidator({\n * type: 'crt.Required',\n * })\n * export class RequiredValidator extends BaseValidator {\n * protected override async = false;\n * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {\n * Implementation here...\n * }\n * }\n */\nexport abstract class BaseValidator {\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_BaseValidator';\n\n\t/**\n\t * @abstract\n\t * @description indicator to recognize whether validator asynchronous or synchronous\n\t */\n\tprotected abstract async: boolean;\n\n\t/**\n\t * @description getter for async/sync indicator\n\t */\n\tpublic get isAsync(): boolean {\n\t\treturn this.async;\n\t}\n\n\t/**\n\t * @description Function used for validation\n\t */\n\tpublic get validateFn(): CrtValidatorFn {\n\t\treturn this.validate.bind(this);\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: BaseValidator): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === BaseValidator._instanceOfKey;\n\t}\n\n\t/**\n\t * @description Method which contains main logic relates validation.\n\t * @param controlState - {@link CrtControlState}\n\t * @param params - incoming parameters for validation {@link ValidatorParametersValues}\n\t */\n\tpublic abstract validate(\n\t\tcontrolState: CrtControlState,\n\t\tparams?: ValidatorParametersValues,\n\t): CrtValidationErrors | null | Promise<CrtValidationErrors | null>;\n}\n","/**\n * @public\n */\nexport class LocalizableValue {\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_LocalizableValue';\n\n\tconstructor(public readonly key: string) {}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: LocalizableValue): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === LocalizableValue._instanceOfKey;\n\t}\n}\n","import { cloneDeep, get, set } from 'lodash';\n\nimport { objectDeepKeys } from './object-deep-keys';\nimport {LocalizeFn} from '../../base-exports';\nimport { LocalizableValue } from '../../public/models';\n\n/**\n * @internal\n */\nexport function applyLocalizeMetadataFn<T extends object>(obj: object, localizeMetadata: LocalizeFn | undefined): T {\n\tconst localizableEntries = objectDeepKeys(obj)\n\t\t.map((path) => ({ path, value: get(obj, path) }))\n\t\t.filter(({ value }) => value instanceof LocalizableValue);\n\tif (localizableEntries.length === 0) {\n\t\treturn obj as T;\n\t}\n\tconst localized = cloneDeep(obj);\n\tif (!localizeMetadata) {\n\t\tconsole.error(\"Unable to localize metadata. 'localizeMetadata' bootstrap option was not provided.\");\n\t}\n\tlocalizableEntries.forEach(({ path, value }) => {\n\t\tconst localizedValue = localizeMetadata?.(value.key) ?? value.key;\n\t\tset(localized, path, localizedValue);\n\t});\n\treturn localized as T;\n}\n","import { Type } from '../../../base-exports';\nimport { DesignTimeViewElementRegistryItem } from '../../models';\nimport { setDesignTimeViewElementMetadata } from '../../utils';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtDesignTimeViewElement(config: Omit<DesignTimeViewElementRegistryItem, 'typeRef'>) {\n\treturn function (type: Type) {\n\t\tconst registrationConfig: DesignTimeViewElementRegistryItem = {\n\t\t\t...config,\n\t\t\ttypeRef: type,\n\t\t};\n\t\tsetDesignTimeViewElementMetadata(registrationConfig, type);\n\t};\n}\n","import 'reflect-metadata';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { RequestRegistryService } from '../../../internal/services/request-registry';\nimport { RequestRegistrationConfig } from '../../../public/models';\nimport {BaseRequest} from '../../../base-exports';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequest(config: RequestRegistrationConfig) {\n\treturn function (type: new (...args: unknown[]) => BaseRequest): void {\n\t\tcheckTypeNameFormat(config.type, 'RequestTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tRequestRegistryService.register(config, type);\n\t};\n}\n","import { BaseInterfaceDesignerItemRegistrationConfig } from './base-interface-designer-item-registration-config';\nimport { ToolbarViewElementConfig } from './toolbar-view-element-config';\nimport { Type } from '../../../base-exports';\nimport { ViewElementGroupType } from '../../enums';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport class InterfaceDesignerItemRegistrationConfig implements BaseInterfaceDesignerItemRegistrationConfig {\n\tpublic toolbarConfig!: ToolbarViewElementConfig;\n\tpublic viewElementGroupType!: ViewElementGroupType;\n\tpublic typeCaption?: string;\n\tpublic typeRef?: Type;\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\n/**\n * @internal\n * @class MethodInvokeRequest\n * @description Definition of invoke method request.\n * @extends {ɵBaseRequest} {@link ɵBaseRequest}\n * @property {string} method - method name.\n * @property {unknown[]} args - arguments passing to the method.\n */\nexport class MethodInvokeRequest extends ɵBaseRequest {\n\t/**\n\t * @description method name\n\t */\n\tpublic method!: string;\n\t/**\n\t * @description arguments passing to the method\n\t */\n\tpublic args?: unknown[];\n}\n","/**\n * @internal\n */\nexport enum RemoteEntryType {\n\tScript = 'script',\n\tModule = 'module',\n}\n\n/**\n * @internal\n */\nexport interface RemoteBuildInfo {\n\tname: string;\n\tentry: string;\n\tentryType: RemoteEntryType;\n\tmainModule: string;\n\t/**\n\t * @dontChange\n\t */\n\tpackageName: string;\n\tmaintainer: string;\n}\n","import 'reflect-metadata';\nimport { crtInputPrefix } from '../../../internal/constants';\nimport { CrtInputRegistrationConfig } from '../../models/input';\n\n/**\n * @public\n * @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.\n * @param config {@link CrtInputRegistrationConfig}\n *\n * @example\n * export class AppComponent {\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInput(config?: CrtInputRegistrationConfig) {\n\treturn function (target: any, propertyKey: string) {\n\t\tif (!config) {\n\t\t\tconfig = {\n\t\t\t\tpropertyBindable: false,\n\t\t\t};\n\t\t}\n\t\tReflect.defineMetadata(crtInputPrefix + propertyKey.toString(), config, target.constructor);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtOutputPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.\n * @example\n * export class AppComponent {\n * @Input()\n * @CrtOutput()\n * public valueChange;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtOutput() {\n\treturn function (target: any, propertyKey: string) {\n\t\tReflect.defineMetadata(crtOutputPrefix + propertyKey.toString(), {}, target.constructor);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtValidationInputPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description User-defined components receive validationInfo changes through CrtValidationInput decorator.\n * Make sure you have defined input for every validationInfo input.\n * To properly declare validationInfo field:\n * 1. Declare input field inside inputs section. For example `value`\n * 2. In validationInputs section declare same field which ends with ValidationInfo.\n * For previous example `valueValidationInfo`\n *\n * @example\n * export class AppComponent {\n * @CrtInput()\n\t\tpublic value;\n *\n * \t@CrtValidationInput()\n * public valueValidationInfo;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidationInput() {\n\treturn function (target: any, propertyKey: string) {\n\t\tReflect.defineMetadata(crtValidationInputPrefix + propertyKey.toString(), {}, target.constructor);\n\t};\n}\n","import { Type } from '../../../base-exports';\nimport { AngularViewElementRegistrationConfig } from '../../../internal/models';\nimport { checkTypeNamePascalCase } from '../../../internal/services';\nimport {\n\tgetCrtInputsMetadata,\n\tgetCrtOutputsMetadata,\n\tgetCrtValidationInputsMetadata,\n\tsetViewElementMetadata,\n} from '../../../internal/utils';\nimport { BaseViewElementRegistrationConfig, ViewElementRegistrationConfig } from '../../models';\n// noinspection ES6PreferShortImport\n\n/**\n * @internal\n */\ntype CrtAngularViewElementConfig = Omit<AngularViewElementRegistrationConfig, 'typeRef'>;\n\n/**\n * @public\n * @description CrtViewElement decorator allows user to declare components in Creatio platform.\n * Make sure component is specified in viewElements section of CrtModule.\n * @param config - registration config. {@link ViewElementRegistrationConfig}.\n *\n * @example\n * @CrtViewElement({\n * type: 'usr.Example',\n * selector: 'usr-example',\n * })\n * export class AppComponent {\n * @Input()\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: CrtAngularViewElementConfig): (type: Type) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: CrtAngularViewElementConfig | ViewElementRegistrationConfig) {\n\treturn function (type: Type): void {\n\t\tcheckTypeNamePascalCase(config.type);\n\t\tconst inputs = getCrtInputsMetadata(type);\n\t\tconst outputs = getCrtOutputsMetadata(type);\n\t\tconst validationInputs = getCrtValidationInputsMetadata(type);\n\t\tconst baseRegistrationConfig: BaseViewElementRegistrationConfig = {\n\t\t\t...config,\n\t\t\tinputs,\n\t\t\toutputs,\n\t\t\tvalidationInputs,\n\t\t};\n\t\tconst registrationConfig =\n\t\t\t'selector' in config\n\t\t\t\t? { ...baseRegistrationConfig, selector: config.selector }\n\t\t\t\t: { ...baseRegistrationConfig, typeRef: type };\n\t\tsetViewElementMetadata(registrationConfig, type);\n\t};\n}\n","import { Type } from '../../../base-exports';\nimport { setModuleMetadata } from '../../../internal/utils';\nimport { ModuleDefinition } from '../../models';\nimport 'reflect-metadata';\n\n/**\n * @public\n * @description CrtModule decorator is a 'container' where user actually setup elements.\n * In could contain viewElements, definitions of other CrtModules.\n * @param moduleDefinition - {@link ModuleDefinition}\n *\n * @example\n * @CrtModule({\n * viewElements: [AppComponent],\n * requestHandlers: [SomeRequestHandler],\n * validators: [SomeValidator],\n * })\n * @NgModule({\n * declarations: [AppComponent],\n * imports: [BrowserModule],\n * providers: [],\n * })\n * export class AppModule {}\n */\nexport function CrtModule(moduleDefinition: ModuleDefinition) {\n\treturn (type: Type) => setModuleMetadata(moduleDefinition, type);\n}\n","// noinspection ES6PreferShortImport\nimport {Type} from '../../../base-exports';\nimport { ViewElementGroupType } from '../../../internal/enums';\nimport { InternalInterfaceDesignerItemRegistrationConfig, ToolbarViewElementConfig } from '../../../internal/models';\nimport { setInterfaceDesignerItemMetadata } from '../../../internal/utils';\nimport { InterfaceDesignerItemDefinition } from '../../models';\n\n/**\n * @public\n * @description Decorator to declare design time configuration for view element.\n * @param config - registration config {@link InterfaceDesignerItemDefinition}.\n *\n * @example\n * @CrtViewElement({\n * type: \"usr.Example',\n * selector: 'usr-example',\n * })\n * @CrtInterfaceDesignerItem({\n * toolbarConfig: {\n * caption: 'usrExampleCaption',\n * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)\n * hint: 'usrExampleHint',\n * defaultPropertyValues: {\n * value: 'This is default value',\n * },\n * },\n * })\n * @Component({\n * selector: 'usr-example',\n * templateUrl: './app.component.html',\n * styleUrls: ['./app.component.scss'],\n * encapsulation: ViewEncapsulation.ShadowDom,\n * })\n * export class AppComponent {\n * @Input()\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(config: InternalInterfaceDesignerItemRegistrationConfig): (type: Type) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(\n\tconfig: InterfaceDesignerItemDefinition | InternalInterfaceDesignerItemRegistrationConfig,\n): (type: Type) => void {\n\tfunction _applyTypeCaption(): void {\n\t\tif (!config.typeCaption && config.toolbarConfig) {\n\t\t\tconst toolbarConfig = Array.isArray(config.toolbarConfig)\n\t\t\t\t? config.toolbarConfig[0]\n\t\t\t\t: (config.toolbarConfig as ToolbarViewElementConfig);\n\t\t\tconfig.typeCaption = toolbarConfig.caption;\n\t\t}\n\t}\n\n\treturn function (type: Type): void {\n\t\tconfig.typeRef = type;\n\t\tconfig.viewElementGroupType ??= ViewElementGroupType.CustomElements;\n\t\t_applyTypeCaption();\n\t\tsetInterfaceDesignerItemMetadata(config, type);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtInjectPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description\n * Constructor parameter decorator.\n * Mark parameter as dependency that should be obtained by token.\n * @param token - token by which the dependency instance will be obtained\n * @example\n * class MyHandler {\n * \tconstructor(@CrtInject(USER_NAME_TOKEN) userName: string) {}\n * }\n */\nexport function CrtInject(token: unknown) {\n\treturn function (target: any, paramKey: string, paramIndex: number) {\n\t\tReflect.defineMetadata(crtInjectPrefix + paramIndex, token, target);\n\t};\n}\n","import 'reflect-metadata';\nimport {AbstractType, Type} from '../../../base-exports';\nimport { checkTypeNameFormat } from '../../../internal/services';\nimport { setValidatorMetadata } from '../../../internal/utils';\nimport { ValidatorConfig } from '../../models/validation/validator-config';\n\n/**\n * @public\n * @description Decorator to declare validator\n * @param config - validator config {@link ValidatorConfig}.\n * If no config is passed, the validator cannot be declared, but can be used as a base class for another validator.\n *\n * @example\n * @CrtValidator({\n * type: 'crt.Required',\n * })\n * export class RequiredValidator extends BaseValidator {\n * protected override async = false;\n * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {\n * Implementation here...\n * }\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(config: ValidatorConfig): (type: Type) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(): (type: Type | AbstractType) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(config?: ValidatorConfig) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {\n\t\t\t// the decorator won't do anything by itself,\n\t\t\t// but will be used by the compiler to generate class metadata,\n\t\t\t// which is required for DI\n\t\t};\n\t}\n\treturn function (type: Type): void {\n\t\tcheckTypeNameFormat(config.type, 'ValidatorTypeName');\n\t\tconst registrationConfig = {\n\t\t\t...config,\n\t\t\ttypeRef: type,\n\t\t};\n\t\tsetValidatorMetadata(registrationConfig, type);\n\t};\n}\n","import 'reflect-metadata';\nimport {AbstractType, Type, RequestHandler } from '../../../base-exports';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { setRequestHandlerMetadata } from '../../../internal/utils';\nimport { RequestHandlerDefinition } from '../../../public/models';\n\n/**\n * @public\n * @description Decorator to declare request handler\n * @param config - request handler config {@link RequestHandlerRegistrationConfig}.\n * If no config is passed, the handler cannot be declared, but can be used as a base class for another handler.\n *\n * @example\n * *@CrtRequestHandler({\n *\t requestType: 'crt.SomeRequest',\n *\t type: 'crt.SomeRequestHandler',\n * })\n * export class SectionInitHandler extends BaseRequestHandler<SomeRequest> {\n * public async handle(request: SomeRequest): Promise<unknown> {\n * \t // Some business logic\n * \t return this.next?.handle(request);\n * \t }\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler<T extends RequestHandler>(config: RequestHandlerDefinition): (type: Type<T>) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler(): (type: Type | AbstractType) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler<T extends RequestHandler>(config?: RequestHandlerDefinition) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {\n\t\t\t// the decorator won't do anything by itself,\n\t\t\t// but will be used by the compiler to generate class metadata,\n\t\t\t// which is required for DI\n\t\t};\n\t}\n\treturn function (type: Type<T>): void {\n\t\tcheckTypeNameFormat(config.type, 'RequestHandlerTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tsetRequestHandlerMetadata(config, type);\n\t};\n}\n","import {AbstractType, Type } from '../../../base-exports';\nimport { checkTypeNameFormat } from '../../../internal/services';\nimport { setConverterMetadata } from '../../../internal/utils';\nimport { ConverterConfig } from '../../../public/models/converter';\n\n/**\n * @public\n * @description Decorator to declare converter\n * @param config - converter config {@link ConverterConfig}.\n * if config is not passed, converter won't be declared,\n * but still can be used as base class for another converter\n *\n * @example\n * @CrtConverter({\n * type: 'usr.ToBoolean',\n * })\n * export class ToBooleanConverter implements Converter<unknown, boolean> {\n * \tpublic convert(value: unknown): boolean {\n * \t\treturn Boolean(value);\n * \t}\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(config: ConverterConfig): (type: Type) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(): (type: Type | AbstractType) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(config?: ConverterConfig) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {};\n\t}\n\treturn function (typeRef: Type): void {\n\t\tconst type = typeof config === 'string' ? config : config.type;\n\t\tcheckTypeNameFormat(type, 'converterTypeName');\n\t\tconst registrationConfig = {\n\t\t\ttype: type,\n\t\t\ttypeRef: typeRef,\n\t\t};\n\t\tsetConverterMetadata(registrationConfig, typeRef);\n\t};\n}\n","/**\n * @internal\n */\nexport enum DataSourceLoadType {\n\tLoadNext = 'loadNext',\n\tLoad = 'load',\n\tReload = 'reload',\n}\n","import { ViewElementRegistry } from '../../internal/services';\nimport { ViewElementRegistrationConfig } from '../models';\n\n/**\n * @public\n * @description Function allows to register user-defined component as view element in Creatio platform.\n * @param config - registration config. {@link ViewElementRegistrationConfig}\n * @example\n * sdk.registerViewElement({\n * type: 'usr.Timeline',\n * selector: 'usr-timeline',\n * inputs: {\n * primaryColumnValue: {},\n * cardSchemaName: {},\n * entitySchemaName: {}\n * }\n * });\n */\nexport function registerViewElement(config: ViewElementRegistrationConfig): void {\n\tViewElementRegistry.validate(config);\n\tViewElementRegistry.register(config);\n}\n","import { Type } from '../../base-exports';\nimport { ViewElementRegistry } from '../../internal/services';\nimport { BaseViewElementRegistrationConfig } from '../models';\n\n/**\n * @internal\n * @description Function allows to register angular component as view element in Creatio platform.\n */\nexport function registerAngularViewElement(config: BaseViewElementRegistrationConfig, typeRef: Type): void {\n\tViewElementRegistry.validate(config);\n\tViewElementRegistry.register({\n\t\t...config,\n\t\ttypeRef,\n\t});\n}\n","import { LocalizeFn, ResolveDependencyFn, Type, BaseRequest } from '../../base-exports';\nimport { HandlerSourceType } from '../../internal/enums';\nimport {\n\tInjectionContext,\n\tInterfaceDesignerRegistryItem,\n\tRemoteBuildInfo,\n\tRequestHandlerRegistrationConfig,\n\tValidatorRegistryItem,\n} from '../../internal/models';\nimport { ConverterRegistryItem } from '../../internal/models/converter';\nimport {\n\tBootstrapNotifier,\n\tConverterRegistry,\n\tDesignTimeViewElementRegistry,\n\tInterfaceDesignerItemRegistry,\n\tRemoteEntriesRegistry,\n\tRequestHandlerRegistryService,\n\tValidatorRegistry,\n\tViewElementRegistry,\n} from '../../internal/services';\nimport { InternalResolveDependencyFn } from '../../internal/types';\nimport {\n\tapplyLocalizeMetadataFn,\n\tgetConverterMetadata,\n\tgetDesignTimeViewElementMetadata,\n\tgetInterfaceDesignerItemMetadata,\n\tgetModuleMetadata,\n\tgetRequestHandlerMetadata,\n\tgetValidatorMetadata,\n\tgetViewElementMetadata,\n\thasInterfaceDesignerItemMetadata,\n\tinstantiate,\n} from '../../internal/utils';\nimport { BaseRequestHandler } from '../../public/handlers';\nimport { BaseValidator, Converter } from '../models';\n\n/**\n * @public\n * @description Module bootstrap options\n */\nexport interface BootstrapOptions {\n\t/**\n\t * Function to be used to translate localizable values of class metadata\n\t */\n\tlocalizeMetadata?: LocalizeFn;\n\t/**\n\t * Function to be used to resolve class dependencies\n\t */\n\tresolveDependency?: ResolveDependencyFn;\n\t/**\n\t * @internal\n\t */\n\tmoduleType?: 'host' | 'remote';\n}\n\nfunction checkRemoteName(remoteName: string): void {\n\tif (!RemoteEntriesRegistry.items.has(remoteName)) {\n\t\tthrow new Error(`Remote entry with name '${remoteName}' does not exist`);\n\t}\n}\n\n/**\n * @internal\n */\nfunction resistantForEach<T>(items: Array<T>, callback: (item: T) => void): void {\n\titems.forEach((item) => {\n\t\ttry {\n\t\t\tcallback(item);\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerViewElements(types: Type[]): void {\n\tresistantForEach(types, (type) => {\n\t\tconst registrationConfig = getViewElementMetadata(type);\n\t\tViewElementRegistry.validate(registrationConfig);\n\t\tViewElementRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerInterfaceDesignerItems(types: Type[], localizeFn?: LocalizeFn): void {\n\tresistantForEach(types, (type) => {\n\t\tif (!hasInterfaceDesignerItemMetadata(type)) {\n\t\t\treturn;\n\t\t}\n\t\tlet config = getInterfaceDesignerItemMetadata(type) as InterfaceDesignerRegistryItem;\n\t\tconfig = applyLocalizeMetadataFn(config, localizeFn);\n\t\tconst viewElementMetadata = getViewElementMetadata(type);\n\t\tconfig.type = viewElementMetadata.type;\n\t\tInterfaceDesignerItemRegistry.validate(config);\n\t\tInterfaceDesignerItemRegistry.register(config);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerDesignTimeViewElements(types: Type[]): void {\n\tresistantForEach(types, (type) => {\n\t\tconst registrationConfig = getDesignTimeViewElementMetadata(type);\n\t\tDesignTimeViewElementRegistry.validate(registrationConfig);\n\t\tDesignTimeViewElementRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerValidators(types: Type<BaseValidator>[], options?: BootstrapOptions): void {\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getValidatorMetadata(type);\n\t\tconst registrationConfig: ValidatorRegistryItem = {\n\t\t\t...metadata,\n\t\t\tinstantiate: function (injectionContext?: InjectionContext) {\n\t\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t\t: null;\n\t\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t\t},\n\t\t};\n\t\tValidatorRegistry.validate(registrationConfig);\n\t\tValidatorRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerConverters(types: Type<Converter>[], options?: BootstrapOptions): void {\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getConverterMetadata(type);\n\t\tconst registrationConfig: ConverterRegistryItem = {\n\t\t\t...metadata,\n\t\t\tinstantiate: function (injectionContext?: InjectionContext) {\n\t\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t\t: null;\n\t\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t\t},\n\t\t};\n\t\tConverterRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerRequestHandlers(\n\ttypes: Type<BaseRequestHandler>[],\n\toptions: BootstrapOptions,\n\tremoteName?: string,\n): void {\n\tif (options.moduleType === 'remote' && !remoteName) {\n\t\tconsole.error(\"To use request handlers, 'remoteName' parameter should be specified.\");\n\t\treturn;\n\t}\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getRequestHandlerMetadata(type);\n\t\tlet registrationConfig: RequestHandlerRegistrationConfig;\n\t\tconst createHandler = (\n\t\t\tinjectionContext?: InjectionContext,\n\t\t): BaseRequestHandler<BaseRequest<unknown>, unknown> => {\n\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t: null;\n\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t};\n\t\tif (options.moduleType === 'host') {\n\t\t\tregistrationConfig = {\n\t\t\t\t...metadata,\n\t\t\t\tsource: { type: HandlerSourceType.Host },\n\t\t\t\tcreateHandler,\n\t\t\t};\n\t\t} else {\n\t\t\tconst remote = RemoteEntriesRegistry.items.get(<string>remoteName) as RemoteBuildInfo;\n\t\t\tregistrationConfig = {\n\t\t\t\t...metadata,\n\t\t\t\tsource: {\n\t\t\t\t\ttype: HandlerSourceType.Remote,\n\t\t\t\t\tpackageName: remote.packageName,\n\t\t\t\t},\n\t\t\t\tcreateHandler,\n\t\t\t};\n\t\t}\n\t\tRequestHandlerRegistryService.register(registrationConfig, type);\n\t});\n}\n\nfunction bootstrapDefaultCrtModule(name: string | undefined, type: Type, options: BootstrapOptions): void {\n\ttry {\n\t\tconst moduleDefinition = getModuleMetadata(type);\n\t\tif (moduleDefinition.viewElements) {\n\t\t\tregisterViewElements(moduleDefinition.viewElements);\n\t\t\tregisterInterfaceDesignerItems(moduleDefinition.viewElements, options?.localizeMetadata);\n\t\t}\n\t\tif (moduleDefinition.designTimeViewElements) {\n\t\t\tregisterDesignTimeViewElements(moduleDefinition.designTimeViewElements);\n\t\t}\n\t\tif (moduleDefinition.requestHandlers) {\n\t\t\tregisterRequestHandlers(moduleDefinition.requestHandlers, options, name);\n\t\t}\n\t\tif (moduleDefinition.validators) {\n\t\t\tregisterValidators(moduleDefinition.validators, options);\n\t\t}\n\t\tif (moduleDefinition.converters) {\n\t\t\tregisterConverters(moduleDefinition.converters, options);\n\t\t}\n\t\tmoduleDefinition.includes?.forEach((t) => {\n\t\t\tbootstrapDefaultCrtModule(name, t, options);\n\t\t\tbootstrapPredefinedModules(name, t, options);\n\t\t});\n\t} catch (error) {\n\t\tconsole.error(error);\n\t}\n}\n\n/**\n * @internal\n */\nfunction bootstrapPredefinedModules(name: string | undefined, type: Type, options: BootstrapOptions): void {\n\tconst modulePrefix = 'module:';\n\tconst metadataKeys: string[] = Reflect.getOwnMetadataKeys(type);\n\tfor (const key of metadataKeys) {\n\t\tif (typeof key === 'string' && key.startsWith(modulePrefix)) {\n\t\t\tconst moduleType = key.substring(modulePrefix.length);\n\t\t\tconst predefinedBootstrapper = Reflect.getOwnMetadata('moduleBootstrapper:' + moduleType, type);\n\t\t\ttry {\n\t\t\t\tpredefinedBootstrapper(name, type, options);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(error);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @internal\n */\nexport function bootstrapCrtModule(type: Type, options: BootstrapOptions & { moduleType: 'host' }): void;\n/**\n * @public\n * @description Function required to bootstrapping elements defined in CrtModules.\n * Call this function as soon as possible during bootstrapping your application.\n * @param type - module type\n * @param options - {@link BootstrapOptions}\n *\n * @example\n * bootstrapCrtModule(AppModule)\n */\nexport function bootstrapCrtModule(remoteName: string, type: Type, options?: BootstrapOptions): void;\n/**\n * @public\n * @deprecated\n */\nexport function bootstrapCrtModule(type: Type, options?: BootstrapOptions): void;\n/**\n * @internal\n */\nexport function bootstrapCrtModule(...args: unknown[]): void {\n\tconst name: string | undefined = typeof args[0] === 'string' ? <string>args.shift() : undefined;\n\tconst type = <Type>args[0];\n\tconst options = <BootstrapOptions>args[1] ?? {};\n\toptions.moduleType ??= 'remote';\n\tif (name) {\n\t\tif (options.moduleType === 'remote') {\n\t\t\tcheckRemoteName(name);\n\t\t} else {\n\t\t\tthrow new Error('Host module cannot have name');\n\t\t}\n\t}\n\tbootstrapDefaultCrtModule(name, type, options);\n\tbootstrapPredefinedModules(name, type, options);\n\tif (options.moduleType === 'remote') {\n\t\tBootstrapNotifier.instance.notify(type);\n\t}\n}\n","import { LocalizableValue } from '../models';\n\n/**\n * @public\n * @description Use this function in decorators to indicate that a value should be localized.\n * Note that the \"localizeMetadata\" bootstrap option should be provided,\n * otherwise the value cannot be localized.\n *\n * @example\n *\n * ### Using 'localize' in decorator\n * ```ts\n * @CrtInterfaceDesignerItem({\n * toolbarConfig: {\n * caption: localize('MyElement.Caption')\n * \t }\n * })\n * class MyElement {}\n * ```\n * ### Passing 'localizeMetadata' bootstrap option\n * ```ts\n * bootstrapCrtModule(MyModule, {\n * localizeMetadata: (key: string) => thirdPartyTranslateService.translate(key)\n * });\n * ```\n */\nexport function localize(key: string): LocalizableValue {\n\treturn new LocalizableValue(key);\n}\n","import { Type } from '../../base-exports';\nimport { HandlerChainServicesRegistry } from '../../internal/services';\nimport { getHandlerChainServiceMetadata, getModuleMetadata } from '../../internal/utils';\n\n/**\n * @internal\n */\nfunction registerHandlerChainServices(types: Type<unknown>[] | undefined): void {\n\ttypes?.forEach((type) => {\n\t\tconst registrationConfig = getHandlerChainServiceMetadata(type);\n\t\tHandlerChainServicesRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction _bootstrapCrtModuleHandlerChainServices(type: Type): void {\n\tconst moduleDefinition = getModuleMetadata(type);\n\tif (moduleDefinition.handlerChainServices) {\n\t\tregisterHandlerChainServices(moduleDefinition.handlerChainServices);\n\t}\n\tmoduleDefinition.includes?.forEach((t) => _bootstrapCrtModuleHandlerChainServices(t));\n}\n\n/**\n * @internal\n */\nexport function bootstrapCrtModuleHandlerChainServices(type: Type): void {\n\t_bootstrapCrtModuleHandlerChainServices(type);\n}\n","import { ɵBaseRequest, ɵNextHandlerAlreadySpecifiedException, ɵRequestHandler } from '@creatio/base';\n\nimport { HandlerChainService } from '../../public/services/handler-chain/handler-chain.service';\n\n/**\n * @public\n * @abstract\n * @classdesc Class for designing request handlers.\n */\nexport abstract class BaseRequestHandler<TRequest = ɵBaseRequest, TResult = unknown>\n\timplements ɵRequestHandler<TRequest, TResult>\n{\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_BaseRequestHandler';\n\n\tprivate _next?: ɵRequestHandler;\n\n\tprotected handlerChain = HandlerChainService.instance;\n\n\tprotected get next(): ɵRequestHandler | undefined {\n\t\treturn this._next;\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: BaseRequestHandler): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === BaseRequestHandler._instanceOfKey;\n\t}\n\n\t/**\n\t * @abstract\n\t * @description Abstract async method which contains logic to handle request properly.\n\t * @param {TRequest} request - {@link ɵBaseRequest}\n\t */\n\tpublic abstract handle(request: TRequest): Promise<TResult>;\n\n\t/**\n\t * @description Method to set request handler to handler chain.\n\t * @param next - link for next request handler - {@link ɵRequestHandler}\n\t */\n\tpublic setNext(next: ɵRequestHandler): void {\n\t\tif (this._next) {\n\t\t\tthrow new ɵNextHandlerAlreadySpecifiedException();\n\t\t}\n\t\tthis._next = next;\n\t}\n}\n","export abstract class BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic abstract readonly requestType: string;\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n/**\n * @public\n * @classdesc Service to working with Creatio platform features using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class FeatureService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.FeatureService';\n\t/**\n\t * @description Method designed to get state for single feature\n\t * @param {string} code - feature code\n\t * @returns `Promise<boolean>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getFeatureState!: (code: string) => Promise<boolean>;\n\n\t/**\n\t * @description Method designed to get feature states\n\t * @param {string[]} codes - feature codes\n\t * @returns `Promise<boolean[]>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getFeaturesState!: (codes: string[]) => Promise<boolean[]>;\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Service to working rights using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class RightsService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.RightsService';\n\n\t/**\n\t * @description Method to recognize whether user can execute operation\n\t * @param {string} operationName - operation name\n\t * @returns `Promise<boolean>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getCanExecuteOperation!: (operationName: string) => Promise<boolean>;\n\n\t/**\n\t * @description Method to recognize whether user can execute operations\n\t * @param {string[]} operationNames - operation names\n\t * @returns `Promise<boolean[]>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getCanExecuteOperations!: (operationNames: string[]) => Promise<boolean[]>;\n}\n","import { SysSetting, SysSettingValue } from './sys-setting.model';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { BaseResponse } from '../../models';\n\n/**\n * @public\n * @description Response for querying of system settings\n * @extends {BaseResponse}\n * @property {Record<string, SysSetting>} values - system settings values\n */\nexport interface QuerySysSettingsResponse extends BaseResponse {\n\t/**\n\t * @type {Record<string, SysSetting>}\n\t * @description system settings values. {@link SysSetting}\n\t */\n\tvalues: Record<string, SysSetting>;\n\n\t/**\n\t * @type {Array<string>}\n\t * @description not found system settings codes.\n\t */\n\tnotFoundSettings?: Array<string>;\n}\n\n/**\n * @public\n * @description Response for saving system settings\n * @extends {BaseResponse}\n * @property {Record<string, any>} saveResult - saving result\n * @property {number} rowsAffected - Count of affected rows\n */\nexport interface SaveSysSettingsResponse extends BaseResponse {\n\t/**\n\t * @description saving result\n\t */\n\tsaveResult: Record<string, any>;\n\n\t/**\n\t * @description Count of affected rows\n\t */\n\trowsAffected: number;\n\n\t/**\n\t * @internal\n\t * @description\n\t */\n\tnextPrcElReady: boolean;\n}\n\n/**\n * @public\n * @description Response for preload cachable system settings.\n * @extends {BaseResponse}\n * @property {Record<string, SysSetting>} values - system settings values\n */\nexport interface PreloadSysSettingsResponse extends BaseResponse {\n\t/**\n\t * @type {Record<string, SysSetting>}\n\t * @description system settings values. {@link SysSetting}\n\t */\n\tvalues: Record<string, SysSetting>;\n}\n\n/**\n * @public\n * @class SysSettingsService\n * @classdesc Service to working with system settings using handler chain\n * @extends {BaseHandlerChainService}\n */\n// TODO RND-45286 (implement BaseSysSettingsService)\nexport class SysSettingsService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.SysSettingsService';\n\n\t/**\n\t * @description Method to get system settings by codes\n\t * @param {string[]} sysSettingCodes - system settings codes\n\t * @returns `Promise<QuerySysSettingsResponse>` {@link QuerySysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getByCodes!: (sysSettingCodes: string[]) => Promise<QuerySysSettingsResponse>;\n\n\t/**\n\t * @description Method to get system setting by code\n\t * @param {string} sysSettingCode - system settings code\n\t * @returns `Promise<SysSetting>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getByCode!: (sysSettingCode: string) => Promise<SysSetting>;\n\n\t/**\n\t * @description Method to update system setting\n\t * @param {SysSettingValue} sysSettingValue - {@link SysSettingValue}\n\t * @param {Boolean} isPersonal - Flag that indicates that sysSetting value is personal.\n\t * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic update!: (sysSettingValue: SysSettingValue, isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;\n\n\t/**\n\t * @description Method to bulk update system settings\n\t * @param {SysSettingValue[]} sysSettingValues - system settings values {@link SysSettingValue}\n\t * @param {Boolean} isPersonal - Flag that indicates that sysSetting values are personal.\n\t * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic updateMany!: (sysSettingValues: SysSettingValue[], isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;\n}\n","import { ɵDataValueType, ɵGuid } from '@creatio/base';\n\n/**\n * @public\n * @class SysSetting\n * @classdesc Class contains info related system setting\n * @property {ɵGuid} id - id of system setting.\n * @property {string} name - name of system setting.\n * @property {string} code - code of system setting.\n * @property {isCacheable} boolean - indicator whether system setting is cacheable\n * @property {any} value - value of system setting\n * @property {string} displayValue - display value of system setting\n * @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}\n */\nexport class SysSetting {\n\t/**\n\t * @description id of system setting\n\t */\n\tpublic id?: ɵGuid;\n\n\t/**\n\t * @description name of system setting\n\t */\n\tpublic name?: string;\n\n\t/**\n\t * @description code of system setting\n\t */\n\tpublic code?: string;\n\n\t/**\n\t * @description indicator whether system setting is cacheable\n\t */\n\tpublic isCacheable?: boolean;\n\n\t/**\n\t * @description value of system setting\n\t */\n\tpublic value?: any;\n\n\t/**\n\t * @description display value of system setting\n\t */\n\tpublic displayValue?: string;\n\n\t/**\n\t * @description system setting {@link ɵDataValueType}\n\t */\n\tpublic dataValueType?: ɵDataValueType;\n}\n\n/**\n * @public\n * @class SysSettingValue\n * @classdesc Shape to describe system setting value\n * @property {string} code - code of system setting\n * @property {any} value - value of system setting\n */\n\nexport class SysSettingValue {\n\t/**\n\t * @description code of system setting.\n\t */\n\tpublic code?: string;\n\n\t/**\n\t * @description value of system setting\n\t */\n\tpublic value?: any;\n}\n","import { SysValues } from './sys-values';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc\n * @class SysValuesService Service to working with system values using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class SysValuesService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.SysValuesService';\n\n\t/**\n\t * @description Method to load system values\n\t * @returns `Promise<SysValues>` {@link SysValues}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic loadSysValues!: () => Promise<SysValues>;\n}\n","import { HttpHeaders } from './http-headers';\nimport { HttpResponse } from './http-response';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Http service to perform Http requests\n * @extends {BaseHandlerChainService}\n */\nexport class HttpClientService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.HttpClientService';\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic get<T>(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP GET request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic get(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic post<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP POST request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic post(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic delete<T>(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP DELETE request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic delete(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic put<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP PUT request.\n\t * @return `Promise<HttpResponse> | void`` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic put(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic patch<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP PATCH request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic patch(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n}\n","import {BaseRequest, ViewModelContext} from '../../../base-exports';\n\n/**\n * @internal\n */\nexport enum SchemaViewMaskRequestAction {\n\tAddTask = 'addTask',\n\tRemoveTask = 'removeTask',\n}\n\n/**\n * @internal\n */\nexport class SchemaViewMaskRequest extends BaseRequest {\n\tpublic override readonly type = 'crt.SchemaViewMaskRequest';\n\n\tconstructor(\n\t\tpublic readonly action: SchemaViewMaskRequestAction,\n\t\tpublic readonly taskName: string,\n\t\tpublic readonly $context: ViewModelContext,\n\t) {\n\t\tsuper();\n\t}\n}\n","import { SchemaViewMaskRequest, SchemaViewMaskRequestAction } from './schema-view-mask.request';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { MaskSettings } from '../../models';\nimport { HandlerChainService } from '../handler-chain';\nimport {ViewModelContext} from '../../../base-exports';\n\n/**\n * @public\n * @classdesc Service to working with mask using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class MaskService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.MaskService';\n\n\t/**\n\t * @description Method to show body mask on the page\n\t * @param {MaskSettings} settings - mask settings {@link MaskSettings}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic showBodyMask!: (settings?: MaskSettings) => Promise<void>;\n\n\t/**\n\t * @description Method to hide body mask\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic hideBodyMask!: () => Promise<void>;\n\n\t/**\n\t * @internal\n\t * @param taskName\n\t * @param context\n\t */\n\tpublic async showMask(taskName: string, context: ViewModelContext): Promise<void> {\n\t\tconst request = new SchemaViewMaskRequest(SchemaViewMaskRequestAction.AddTask, taskName, context);\n\t\tawait HandlerChainService.instance.process(request);\n\t}\n\n\t/**\n\t * @internal\n\t * @param taskName\n\t * @param context\n\t */\n\tpublic async hideMask(taskName: string, context: ViewModelContext): Promise<void> {\n\t\tconst request = new SchemaViewMaskRequest(SchemaViewMaskRequestAction.RemoveTask, taskName, context);\n\t\tawait HandlerChainService.instance.process(request);\n\t}\n}\n","import { BaseModel, DataSchema } from '../../../base-exports';\nimport { DataSourceAttribute } from '../../../base-exports';\nimport { DataSourceCanExecuteOperationPayload, DataSourceCanExecuteOperationResult } from '../../../base-exports';\nimport { DataSourceParameters } from '../../../base-exports';\nimport { DataSourceLoadOptions } from '../../../base-exports';\nimport { DataSourceConfig } from '../../../base-exports';\nimport { JsonArray, JsonObject } from '../../../base-exports';\nimport { DataSourceSaveResult } from '../../../base-exports';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @internal\n */\nexport const _from = Symbol('CreateModelFrom');\n\n/**\n * @public\n */\nexport class Model extends BaseHandlerChainService implements BaseModel<DataSourceLoadOptions> {\n\tprivate static _instance: Model;\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tprivate _crtModel!: any;\n\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.ModelGenerator';\n\n\tprivate constructor(crtModel?: unknown) {\n\t\tsuper();\n\t\tthis._crtModel = crtModel;\n\t}\n\n\tprivate static get instance(): Model {\n\t\tif (!this._instance) {\n\t\t\tthis._instance = new Model();\n\t\t}\n\t\treturn this._instance;\n\t}\n\n\t/**\n\t * @internal\n\t * Gets the model name.\n\t */\n\tpublic get name(): string {\n\t\treturn this._crtModel?.name;\n\t}\n\n\t@ImplementUsingHandlerChain({\n\t\tmethodName: 'generateOne',\n\t})\n\tprivate _create!: (config: DataSourceConfig, name: string) => Promise<Model>;\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [_from](crtModel?: unknown): Model {\n\t\treturn new Model(crtModel);\n\t}\n\n\tpublic static async create(dataSchema: string): Promise<Model> {\n\t\tconst crtModel = await this.instance._create(\n\t\t\t{\n\t\t\t\ttype: 'crt.EntityDataSource',\n\t\t\t\tconfig: {\n\t\t\t\t\tentitySchemaName: dataSchema,\n\t\t\t\t},\n\t\t\t},\n\t\t\t'',\n\t\t);\n\t\treturn new Model(crtModel);\n\t}\n\n\tpublic getSchema(): Promise<DataSchema> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.getSchema());\n\t}\n\n\tpublic load(config?: {\n\t\tattributes?: string[] | DataSourceAttribute[];\n\t\tparameters?: DataSourceParameters;\n\t\tloadOptions?: DataSourceLoadOptions;\n\t}): Promise<JsonArray> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.load(config));\n\t}\n\n\tpublic insert(dto: JsonObject): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.insert(dto));\n\t}\n\n\tpublic update(dto: JsonObject, parameters: DataSourceParameters): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.update(dto, parameters));\n\t}\n\n\tpublic copy(primaryColumnValue: string, data: JsonObject = {}): Promise<JsonObject> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.copy(primaryColumnValue, data));\n\t}\n\n\tpublic create(data: JsonObject = {}): Promise<JsonObject> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.create(data));\n\t}\n\n\tpublic delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.delete(parameters));\n\t}\n\n\tpublic canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.canSave(params));\n\t}\n\n\tpublic canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.canDelete(params));\n\t}\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Service to handling a way of tasks execution in Creatio plaform\n * @extends {BaseHandlerChainService}\n */\nexport class CrtZoneService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.ZoneService';\n\t/**\n\t * @description Method designed to run task outside of Creatio zone\n\t * @param {Function} callback - task which should be executed outside of tracking CrtZone\n\t * @returns `unknown`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic runOutside!: (callback: () => unknown) => unknown;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AggregationFunction","AggregationType","AggregationEvalType","DatePartType","FunctionType","OrderDirection","global","generateGuid","NextHandlerAlreadySpecifiedException","BaseRequest"],"mappings":";;;;;;AAKA;;AAEG;AACG,SAAU,iBAAiB,CAAC,mBAAwC,EAAA;AACzE,IAAA,QAAQ,mBAAmB;QAC1B,KAAKA,oBAAmB,CAAC,KAAK;YAC7B,OAAOC,gBAAe,CAAC,KAAK,CAAC;QAC9B,KAAKD,oBAAmB,CAAC,GAAG;YAC3B,OAAOC,gBAAe,CAAC,GAAG,CAAC;QAC5B,KAAKD,oBAAmB,CAAC,GAAG;YAC3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C3B,QAAA,UAAU,EAAE,aAAa;KACzB,CAAC;;AAC2E,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;;ACjD9E;;;;AAIG;AACG,MAAO,cAAe,SAAQ,uBAAuB,CAAA;AAA3D,IAAA,WAAA,GAAA;;AACC;;AAEG;QACa,IAAW,CAAA,WAAA,GAAG,iBAAiB,CAAC;KAQhD;AAAA,CAAA;AAFA,UAAA,CAAA;AAAC,IAAA,0BAA0B,EAAE;;AAC4B,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,YAAA,EAAA,KAAA,CAAA,CAAA;;ACnB1D;;AAEG;;;;"}
1
+ {"version":3,"file":"creatio-devkit-common.mjs","sources":["../../../../../libs/devkit/common/src/lib/external/functions/aggregation-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/date-part-type-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/function-type-adapter.ts","../../../../../libs/devkit/common/src/lib/external/functions/order-direction-adapter.ts","../../../../../libs/devkit/common/src/lib/internal/constants/metadata.const.ts","../../../../../libs/devkit/common/src/lib/internal/constants/default-size.const.ts","../../../../../libs/devkit/common/src/lib/internal/enums/view-element-group-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/enums/designer-group-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/enums/handler-source-type.enum.ts","../../../../../libs/devkit/common/src/lib/internal/services/base-registry/base-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/pkg-topology-registry/pkg-topology-registry.ts","../../../../../libs/devkit/common/src/lib/internal/utils/handlers-order-comparer.ts","../../../../../libs/devkit/common/src/lib/public/services/handler-chain/internal-handler-chain.ts","../../../../../libs/devkit/common/src/lib/public/services/handler-chain/handler-chain.service.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/utils/object-deep-keys/object-deep-keys.ts","../../../../../libs/devkit/common/src/lib/internal/services/element-registration-checker/element-registration-checker.ts","../../../../../libs/devkit/common/src/lib/internal/services/request-handler-registry/request-handler-registry.service.ts","../../../../../libs/devkit/common/src/lib/internal/services/request-registry/request-registry.service.ts","../../../../../libs/devkit/common/src/lib/internal/services/global-converters-registry/converter-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/view-element-registry/view-element-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/bootstrap-notifier/bootstrap-notifier.ts","../../../../../libs/devkit/common/src/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/validator-registry/validator-registry.ts","../../../../../libs/devkit/common/src/lib/internal/services/remote-entries-registry/remote-entries-registry.ts","../../../../../libs/devkit/common/src/lib/internal/utils/component-config-utils.ts","../../../../../libs/devkit/common/src/lib/internal/utils/metadata-utils.ts","../../../../../libs/devkit/common/src/lib/internal/utils/instantiate.ts","../../../../../libs/devkit/common/src/lib/public/models/input/input-registration-config.model.ts","../../../../../libs/devkit/common/src/lib/public/models/request/data-source-request.ts","../../../../../libs/devkit/common/src/lib/public/models/request/base-request-config.ts","../../../../../libs/devkit/common/src/lib/public/models/view-element/view-element-reuse-strategy.enum.ts","../../../../../libs/devkit/common/src/lib/public/models/view-element/view-element-visibility-strategy.ts","../../../../../libs/devkit/common/src/lib/public/models/validation/base-validator.ts","../../../../../libs/devkit/common/src/lib/public/models/localizable-value.ts","../../../../../libs/devkit/common/src/lib/internal/utils/localization-utils.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/decorators/request/request.decorator.ts","../../../../../libs/devkit/common/src/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.ts","../../../../../libs/devkit/common/src/lib/internal/models/request/method-invoke-request.ts","../../../../../libs/devkit/common/src/lib/internal/models/remote-build-info.ts","../../../../../libs/devkit/common/src/lib/public/decorators/input/input.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/output/output.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/validation-input/validation-input.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/view-element/view-element.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/module/module.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/inject/inject.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/validator/validator.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/request-handler/request-handler.decorator.ts","../../../../../libs/devkit/common/src/lib/public/decorators/converter/converter.decorator.ts","../../../../../libs/devkit/common/src/lib/public/enums/data-source-load-type.enum.ts","../../../../../libs/devkit/common/src/lib/public/enums/view-element-property.enum.ts","../../../../../libs/devkit/common/src/lib/public/functions/register-view-element.ts","../../../../../libs/devkit/common/src/lib/public/functions/register-angular-view-element.ts","../../../../../libs/devkit/common/src/lib/public/functions/bootstrap-crt-module.ts","../../../../../libs/devkit/common/src/lib/public/functions/localize.ts","../../../../../libs/devkit/common/src/lib/public/functions/bootstrap-crt-module-handler-chain-services.ts","../../../../../libs/devkit/common/src/lib/public/handlers/base-request-handler.ts","../../../../../libs/devkit/common/src/lib/internal/services/base-handler-chain.service.ts","../../../../../libs/devkit/common/src/lib/public/services/feature/feature.service.ts","../../../../../libs/devkit/common/src/lib/public/services/rights/rights.service.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-settings/sys-settings.service.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-settings/sys-setting.model.ts","../../../../../libs/devkit/common/src/lib/public/services/sys-values/sys-values.service.ts","../../../../../libs/devkit/common/src/lib/public/services/http-client/http-client.service.ts","../../../../../libs/devkit/common/src/lib/public/services/mask-service/schema-view-mask.request.ts","../../../../../libs/devkit/common/src/lib/public/services/mask-service/mask.service.ts","../../../../../libs/devkit/common/src/lib/public/services/model/model.ts","../../../../../libs/devkit/common/src/lib/public/services/crt-zone/crt-zone.service.ts","../../../../../libs/devkit/common/src/creatio-devkit-common.ts"],"sourcesContent":["import { AggregationType } from '../../base-exports';\nimport { AggregationFunction } from '../../base-exports';\nimport { AggregationEvalType } from '../../base-exports';\nimport { AggregationEval } from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toAggregationType(aggregationFunction: AggregationFunction): AggregationType {\n\tswitch (aggregationFunction) {\n\t\tcase AggregationFunction.Count:\n\t\t\treturn AggregationType.Count;\n\t\tcase AggregationFunction.Sum:\n\t\t\treturn AggregationType.Sum;\n\t\tcase AggregationFunction.Avg:\n\t\t\treturn AggregationType.Avg;\n\t\tcase AggregationFunction.Min:\n\t\t\treturn AggregationType.Min;\n\t\tcase AggregationFunction.Max:\n\t\t\treturn AggregationType.Max;\n\t\tcase AggregationFunction.TopOne:\n\t\t\treturn AggregationType.TopOne;\n\t\tdefault:\n\t\t\treturn AggregationType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationFunction(aggregationType: AggregationType): AggregationFunction {\n\tswitch (aggregationType) {\n\t\tcase AggregationType.Count:\n\t\t\treturn AggregationFunction.Count;\n\t\tcase AggregationType.Sum:\n\t\t\treturn AggregationFunction.Sum;\n\t\tcase AggregationType.Avg:\n\t\t\treturn AggregationFunction.Avg;\n\t\tcase AggregationType.Min:\n\t\t\treturn AggregationFunction.Min;\n\t\tcase AggregationType.Max:\n\t\t\treturn AggregationFunction.Max;\n\t\tcase AggregationType.TopOne:\n\t\t\treturn AggregationFunction.TopOne;\n\t\tdefault:\n\t\t\treturn AggregationFunction.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationEvalType(aggregationEval: AggregationEval): AggregationEvalType {\n\tswitch (aggregationEval) {\n\t\tcase 'all':\n\t\t\treturn AggregationEvalType.All;\n\t\tcase 'distinct':\n\t\t\treturn AggregationEvalType.Distinct;\n\t\tdefault:\n\t\t\treturn AggregationEvalType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toAggregationEval(aggregationEvalType: AggregationEvalType): AggregationEval {\n\tswitch (aggregationEvalType) {\n\t\tcase AggregationEvalType.All:\n\t\t\treturn 'all';\n\t\tcase AggregationEvalType.Distinct:\n\t\t\treturn 'distinct';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","import {DatePart, DatePartType} from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toDatePartType(aggregationFunction: DatePart): DatePartType {\n\tswitch (aggregationFunction) {\n\t\tcase 'minute':\n\t\t\treturn DatePartType.HourMinute;\n\t\tcase 'hour':\n\t\t\treturn DatePartType.Hour;\n\t\tcase 'day':\n\t\t\treturn DatePartType.Day;\n\t\tcase 'weekday':\n\t\t\treturn DatePartType.WeekDay;\n\t\tcase 'week':\n\t\t\treturn DatePartType.Week;\n\t\tcase 'month':\n\t\t\treturn DatePartType.Month;\n\t\tcase 'year':\n\t\t\treturn DatePartType.Year;\n\t\tdefault:\n\t\t\treturn DatePartType.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toDatePart(aggregationType: DatePartType): DatePart {\n\tswitch (aggregationType) {\n\t\tcase DatePartType.HourMinute:\n\t\t\treturn 'minute';\n\t\tcase DatePartType.Hour:\n\t\t\treturn 'hour';\n\t\tcase DatePartType.Day:\n\t\t\treturn 'day';\n\t\tcase DatePartType.WeekDay:\n\t\t\treturn 'weekday';\n\t\tcase DatePartType.Week:\n\t\t\treturn 'week';\n\t\tcase DatePartType.Month:\n\t\t\treturn 'month';\n\t\tcase DatePartType.Year:\n\t\t\treturn 'year';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","import {FunctionStringType, FunctionType} from '../../base-exports';\n\n\n/**\n * @internal\n */\nexport function toStringFunctionType(functionType: FunctionType): FunctionStringType {\n\tswitch (functionType) {\n\t\tcase FunctionType.Aggregation:\n\t\t\treturn 'aggregation';\n\t\tcase FunctionType.DatePart:\n\t\t\treturn 'datePart';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n\n/**\n * @internal\n */\nexport function toNumericFunctionType(functionType: FunctionStringType): FunctionType {\n\tswitch (functionType) {\n\t\tcase 'aggregation':\n\t\t\treturn FunctionType.Aggregation;\n\t\tcase 'datePart':\n\t\t\treturn FunctionType.DatePart;\n\t\tdefault:\n\t\t\treturn FunctionType.None;\n\t}\n}\n","import { OrderDirection } from '../../base-exports';\nimport { SortDirection } from '../../base-exports';\n\n/**\n * @internal\n */\nexport function toOrderDirection(sortDirection: SortDirection): OrderDirection {\n\tswitch (sortDirection) {\n\t\tcase 'asc':\n\t\t\treturn OrderDirection.Asc;\n\t\tcase 'desc':\n\t\t\treturn OrderDirection.Desc;\n\t\tdefault:\n\t\t\treturn OrderDirection.None;\n\t}\n}\n\n/**\n * @internal\n */\nexport function toSortDirection(orderDirection: OrderDirection): SortDirection {\n\tswitch (orderDirection) {\n\t\tcase OrderDirection.Asc:\n\t\t\treturn 'asc';\n\t\tcase OrderDirection.Desc:\n\t\t\treturn 'desc';\n\t\tdefault:\n\t\t\treturn 'none';\n\t}\n}\n","/**\n * @internal\n */\nexport const crtInputPrefix = 'crtInput:';\n/**\n * @internal\n */\nexport const crtOutputPrefix = 'crtOutput:';\n/**\n * @internal\n */\nexport const crtValidationInputPrefix = 'crtValidationInput:';\n/**\n * @internal\n */\nexport const crtInjectPrefix = 'crtInject:';\n","/**\n * @internal\n */\nexport const VIEW_ELEMENT_DEFAULT_HEIGHT = '39px';\n","/**\n * @internal\n * @hostPublicApi\n */\nexport enum ViewElementGroupType {\n\tCharts = 'Charts',\n\tComponents = 'Components',\n\tLayoutElements = 'LayoutElements',\n\tInputs = 'Inputs',\n\tCustomElements = 'CustomElements',\n}\n","import { ViewElementGroupType } from './view-element-group-type.enum';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport enum ViewElementDataGroupType {\n\tData = 'Data',\n}\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type DesignerToolGroupType = ViewElementDataGroupType | ViewElementGroupType;\n\n/**\n * @internal\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DesignerToolGroupType = { ...ViewElementDataGroupType, ...ViewElementGroupType };\n","/**\n * Handler source types in order of call priority.\n * @internal\n * @hostPublicApi\n */\nexport enum HandlerSourceType {\n\tSchema = 0,\n\tRemote = 1,\n\tHost = 2,\n}\n","import { get, set } from 'lodash';\nconst global = window;\n\n/**\n * @public\n * @description For internal use only.\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\ninterface ɵRegistryItemsStore {\n\ttypeInfos: Map<string, any>;\n}\n\n/**\n * @public\n * @description For internal use only.\n * @hostPublicApi\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class ɵBaseRegistry {\n\tprivate static readonly _prefix = 'creatio.registry.';\n\tprivate static _instance: ɵBaseRegistry;\n\n\tprotected static readonly registryKey: string;\n\n\tprotected static get store(): ɵRegistryItemsStore {\n\t\tif (!this._instance) {\n\t\t\tlet globalInstance = get(global, this._prefix + this.registryKey);\n\t\t\tif (!globalInstance) {\n\t\t\t\tglobalInstance = new this();\n\t\t\t\tset(global, this._prefix + this.registryKey, globalInstance);\n\t\t\t}\n\t\t\tthis._instance = globalInstance;\n\t\t}\n\t\treturn this._instance.store;\n\t}\n\n\t/**\n\t * @hostPubicApi available through window.creatio.registry.<registryKey>.store\n\t */\n\tprotected store: ɵRegistryItemsStore = {\n\t\ttypeInfos: new Map(),\n\t};\n}\n","import { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n */\nexport class PkgTopology extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'pkgTopology';\n\n\tpublic static get items(): Map<string, number> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static get(pkgName: string): number {\n\t\tconst order = this.items.get(pkgName);\n\t\tif (order === undefined) {\n\t\t\tthrow new Error(`Package with name ${pkgName} not found in topology`);\n\t\t}\n\t\treturn order;\n\t}\n}\n","import { HandlerSourceType } from '../enums';\nimport { HandlerConfig } from '../models/request-handler/handler-config';\nimport { PkgTopology } from '../services/pkg-topology-registry/pkg-topology-registry';\nimport {BaseRequest} from '../../base-exports';\n\n/**\n * @internal\n */\nexport class HandlersOrderComparer {\n\tprivate _scopesOrder: Map<string, number>;\n\n\tconstructor(private _request: BaseRequest) {\n\t\tconst scopesOrderEntries = [...(this._request.scopes ?? [])].reverse().map((scope, index) => [scope, index]);\n\t\tthis._scopesOrder = Object.fromEntries(scopesOrderEntries);\n\t}\n\n\tprivate _getOrderByScopes(handler: HandlerConfig): number {\n\t\tif (!handler.scopes) {\n\t\t\treturn Number.MAX_VALUE;\n\t\t}\n\t\tconst scopesOrder = handler.scopes.filter((s) => s in this._scopesOrder).map((s) => this._scopesOrder[s]);\n\t\treturn Math.min(...scopesOrder);\n\t}\n\n\tprivate _getOrderByPkgTopology(handler: HandlerConfig): number {\n\t\tif (handler.source.type === HandlerSourceType.Host) {\n\t\t\treturn Number.MAX_VALUE;\n\t\t}\n\t\treturn PkgTopology.get(handler.source.packageName);\n\t}\n\n\tpublic compare(a: HandlerConfig, b: HandlerConfig): number {\n\t\tconst aScopeOrder = this._getOrderByScopes(a);\n\t\tconst bScopeOrder = this._getOrderByScopes(b);\n\t\tlet diff = aScopeOrder - bScopeOrder;\n\t\tif (diff) {\n\t\t\treturn diff;\n\t\t}\n\t\tconst aPkgTopologyOrder = this._getOrderByPkgTopology(a);\n\t\tconst bPkgTopologyOrder = this._getOrderByPkgTopology(b);\n\t\tdiff = aPkgTopologyOrder - bPkgTopologyOrder;\n\t\tif (diff) {\n\t\t\treturn diff;\n\t\t}\n\t\tdiff = a.source.type - b.source.type;\n\t\treturn diff;\n\t}\n}\n","import {\n\tBaseRequest,\n\tgenerateGuid,\n\tNextHandlerAlreadySpecifiedException,\n\tRequestHandler,\n\tViewModelContext,\n} from '../../../base-exports';\nimport { InjectionContext } from '../../../internal/models/injection-context';\nimport { ContexedHandlerScopeConfig } from '../../../internal/models/request-handler/contexed-handler-scope-config';\nimport { HandlerConfig } from '../../../internal/models/request-handler/handler-config';\nimport { HandlersOrderComparer } from '../../../internal/utils/handlers-order-comparer';\nimport { TeardownLogic } from '../../types';\n\n/**\n * @internal\n * @hostPublicApi available through window.handlerChain\n */\nexport class InternalHandlerChain {\n\tprivate _handlers: HandlerConfig[] = [];\n\tprivate _requestListeners: Map<string, (request: BaseRequest) => void> = new Map();\n\tprivate _handlersCache = new Map<string, Map<string, RequestHandler | undefined>>();\n\tprivate _handlersScopesByContextId = new Map<string, ContexedHandlerScopeConfig[]>();\n\n\t/**\n\t * @hostPublicApi\n\t */\n\tpublic handlerChain$ = {\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tprocess: async (request: BaseRequest) => {\n\t\t\tconst handler = this._getHandler(request);\n\t\t\tthis._requestListeners.forEach((listener) => listener?.(request));\n\t\t\treturn handler?.handle(request);\n\t\t},\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tregister: (info: HandlerConfig) => {\n\t\t\tthis._handlersCache.delete(info.requestType);\n\t\t\tthis._handlers.push(info);\n\t\t\treturn () => {\n\t\t\t\tconst index = this._handlers.indexOf(info);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tthis._handlers.splice(index, 1);\n\t\t\t\t\tthis._handlersCache.delete(info.requestType);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.warn(`${info?.requestType} not found to unsubscribe`);\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\t/**\n\t\t * @hostPublicApi\n\t\t */\n\t\tsubscribe: (callback: (request: BaseRequest) => void, context?: ViewModelContext): TeardownLogic => {\n\t\t\tif (!callback) {\n\t\t\t\treturn () => void 0;\n\t\t\t}\n\t\t\tconst listenerId = generateGuid();\n\t\t\tconst listenerFn: (request: BaseRequest) => void = (request) => {\n\t\t\t\tif (!context || request.$context === context) {\n\t\t\t\t\tcallback(request);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthis._requestListeners.set(listenerId, listenerFn);\n\t\t\treturn () => this._requestListeners.delete(listenerId);\n\t\t},\n\t};\n\n\t/**\n\t * @hostPublicApi\n\t */\n\tpublic clearContextedHandlersCache(contextId: string): boolean {\n\t\tconst configs: ContexedHandlerScopeConfig[] = this._handlersScopesByContextId.get(contextId) ?? [];\n\t\treturn configs.every(({ requestType, scope }) => this._handlersCache.get(requestType)?.delete(scope));\n\t}\n\n\tprivate _getHandler(request: BaseRequest): RequestHandler | undefined {\n\t\treturn this._hasCacheHandler(request) ? this._getCacheHandler(request) : this._buildHandlersChain(request);\n\t}\n\n\tprivate _getCacheHandler(request: BaseRequest): RequestHandler | undefined {\n\t\tconst map = this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>;\n\t\tconst key = this._getCacheScopesKey(request);\n\t\treturn map.get(key);\n\t}\n\n\tprivate _hasCacheHandler(request: BaseRequest): boolean {\n\t\tconst map = this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>;\n\t\tconst key = this._getCacheScopesKey(request);\n\t\treturn map && map.has(key);\n\t}\n\n\tprivate _getCacheScopesKey(request: BaseRequest): string {\n\t\tconst injectionContextKey = this._getInjectionContext(request?.$context)?.id ?? '';\n\t\treturn (request.scopes || ['']).join('_').concat(injectionContextKey);\n\t}\n\n\tprivate _getInjectionContext(viewModel?: ViewModelContext): InjectionContext {\n\t\treturn (\n\t\t\tviewModel?.['_injectionContext'] ||\n\t\t\t(viewModel?.['parent'] && this._getInjectionContext(viewModel['parent']))\n\t\t);\n\t}\n\n\tprivate _setContextedScopes(request: BaseRequest, scope: string): void {\n\t\tconst injectionContext = this._getInjectionContext(request?.$context)?.id;\n\t\tconst configs = this._handlersScopesByContextId.has(injectionContext)\n\t\t\t? (this._handlersScopesByContextId.get(injectionContext) as ContexedHandlerScopeConfig[])\n\t\t\t: [];\n\t\tconfigs.push({ requestType: request.type, scope });\n\t\tthis._handlersScopesByContextId.set(injectionContext, configs);\n\t}\n\n\tprivate _setCacheHandler(request: BaseRequest, handler: RequestHandler | undefined): void {\n\t\tconst map = this._handlersCache.has(request.type)\n\t\t\t? (this._handlersCache.get(request.type) as Map<string, RequestHandler | undefined>)\n\t\t\t: new Map();\n\t\tconst key = this._getCacheScopesKey(request);\n\t\tmap.set(key, handler);\n\t\tif (this._getInjectionContext(request?.$context)?.id) {\n\t\t\tthis._setContextedScopes(request, key);\n\t\t}\n\t\tthis._handlersCache.set(request.type, map);\n\t}\n\n\tprivate _isRequestHandler(handler: unknown): handler is RequestHandler {\n\t\treturn (\n\t\t\ttypeof (handler as RequestHandler).handle === 'function' &&\n\t\t\ttypeof (handler as RequestHandler).setNext === 'function'\n\t\t);\n\t}\n\n\tprivate _checkHandlerInstanceOf(handler: unknown): void {\n\t\tif (!this._isRequestHandler(handler)) {\n\t\t\tthrow new Error('Handler should implement \"BaseRequestHandler\"');\n\t\t}\n\t}\n\n\tprivate _buildHandlersChain(request: BaseRequest): RequestHandler | undefined {\n\t\tconst handlers = this._handlers.filter((h) => {\n\t\t\tif (h.requestType !== request.type) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!h.scopes?.length) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn h.scopes.some((s) => request.scopes?.includes(s));\n\t\t});\n\t\tconst comparer = new HandlersOrderComparer(request);\n\t\thandlers.sort((a, b) => comparer.compare(a, b));\n\t\tconst handlerInstances = handlers.map((handlerConfig) => {\n\t\t\tconst injectionContext = this._getInjectionContext(request?.$context);\n\t\t\treturn handlerConfig.createHandler(injectionContext);\n\t\t});\n\t\thandlerInstances.forEach((handler) => this._checkHandlerInstanceOf(handler));\n\t\tthis._joinHandlersInChain(handlerInstances);\n\t\tconst result = handlerInstances[0];\n\t\tthis._setCacheHandler(request, result);\n\t\treturn result;\n\t}\n\n\tprivate _joinHandlersInChain(handlers: RequestHandler[]): void {\n\t\tfor (let index = 0; index < handlers.length - 1; index++) {\n\t\t\ttry {\n\t\t\t\thandlers[index].setNext(handlers[index + 1]);\n\t\t\t} catch (error) {\n\t\t\t\tif (error instanceof NextHandlerAlreadySpecifiedException) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Handler factory should return new instance of ' +\n\t\t\t\t\t\t\t'BaseRequestHandler class or its subclass ' +\n\t\t\t\t\t\t\t'(next handler should not be specified)',\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\nimport { InternalHandlerChain } from './internal-handler-chain';\nimport { ViewModelContext } from '../../../base-exports';\nimport { HandlerConfig } from '../../../internal/models/request-handler/handler-config';\nimport { TeardownLogic } from '../../types';\n\ntype GlobalType = Window & {\n\thandlerChain: InternalHandlerChain;\n};\nconst global = window as unknown as GlobalType;\n\n/**\n * @public\n * @class HandlerChainService\n * @classdesc Service to design handlers in chain.\n */\nexport class HandlerChainService {\n\tprivate get _chain(): InternalHandlerChain {\n\t\treturn global.handlerChain;\n\t}\n\n\tprivate set _chain(value: InternalHandlerChain) {\n\t\tglobal.handlerChain = value;\n\t}\n\tprivate static _instance: HandlerChainService;\n\tpublic static get instance(): HandlerChainService {\n\t\treturn HandlerChainService._instance || (HandlerChainService._instance = new HandlerChainService());\n\t}\n\n\tprivate constructor() {\n\t\tif (!this._chain) {\n\t\t\tthis._createGlobalHandlerChain();\n\t\t}\n\t}\n\n\tprivate _createGlobalHandlerChain() {\n\t\tthis._chain = new InternalHandlerChain();\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic clearContextedHandlersCache(contextId: string): boolean {\n\t\treturn this._chain.clearContextedHandlersCache(contextId);\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic register(handlerConfig: HandlerConfig) {\n\t\treturn this._chain.handlerChain$.register(handlerConfig);\n\t}\n\n\t/**\n\t * @description Method to process passed request\n\t * @param request - {@link ɵBaseRequest}\n\t * @return `Promise<unknown>`\n\t */\n\tpublic process(request: ɵBaseRequest): Promise<unknown> {\n\t\treturn this._chain.handlerChain$.process(request);\n\t}\n\n\t/**\n\t * @internal\n\t * Subscribes to requests.\n\t * @param callback A handler function for each request triggered.\n\t * @param context (optional) A context in which the requests were triggered.\n\t * The `callback` will be called only for requests with specified context.\n\t * If not specified, will be called for all requests.\n\t * @returns A function to cancel the subscription.\n\t */\n\tpublic subscribe(callback: (request: ɵBaseRequest) => void, context?: ViewModelContext): TeardownLogic {\n\t\treturn this._chain.handlerChain$.subscribe(callback, context);\n\t}\n}\n","import { MethodInvokeRequest } from '../../../internal/models';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { HandlerChainService } from '../../../public/services/handler-chain/handler-chain.service';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function ImplementUsingHandlerChain(config?: { requestType?: string; methodName?: string }) {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function (target: BaseHandlerChainService | any, method: string, descriptor?: TypedPropertyDescriptor<any>) {\n\t\tconst methodImplementation = function (this: BaseHandlerChainService, ...args: unknown[]) {\n\t\t\treturn HandlerChainService.instance.process({\n\t\t\t\ttype: config?.requestType ? config.requestType : this.requestType,\n\t\t\t\tmethod: config?.methodName ? config.methodName : method,\n\t\t\t\targs,\n\t\t\t} as MethodInvokeRequest);\n\t\t};\n\t\tif (descriptor) {\n\t\t\tdescriptor.value = methodImplementation;\n\t\t} else {\n\t\t\t(target as unknown as Record<string, unknown>)[method] = methodImplementation;\n\t\t}\n\t};\n}\n","/**\n * @internal\n */\nexport function objectDeepKeys(obj: object): Array<Array<string>> {\n\tif (obj === null || typeof obj !== 'object') {\n\t\treturn [];\n\t}\n\treturn Object.keys(obj)\n\t\t.filter((key) => obj[key] instanceof Object)\n\t\t.map((key) => objectDeepKeys(obj[key]).map((k) => [key, ...k]))\n\t\t.reduce(\n\t\t\t(x, y) => [...x, ...y],\n\t\t\tObject.keys(obj).map((x) => [x]),\n\t\t);\n}\n","import { camelCase, isEqual, upperFirst } from 'lodash';\n\n/**\n * @internal\n */\nexport function checkTypeNameFormat(type: string, element: string): void {\n\tconst typeParts = type.split('.');\n\tif (typeParts.length < 2) {\n\t\tthrow new Error(`Error when register ${type}. Type property should have format \"VendorPrefix.${element}\"`);\n\t}\n}\n\n/**\n * @public\n * @description For internal use only.\n */\nexport function ɵcheckTypeNameFormat(type: string, element: string): void {\n\treturn checkTypeNameFormat(type, element);\n}\n\n/**\n * @internal\n */\nexport function checkTypeNamePascalCase(type: string): void {\n\tconst [vendor, typeName] = type.split('.');\n\tconst pascalTypeName = toPascalCase(typeName);\n\tif (!vendor || pascalTypeName !== typeName) {\n\t\tthrow new Error(\n\t\t\t`Error when register ${type}. Type property should have Pascal case, e.g. ${\n\t\t\t\tvendor + '.' + pascalTypeName\n\t\t\t}. ` + 'The first letter of each word in a compound word should be capitalized',\n\t\t);\n\t}\n}\n\n/**\n * @internal\n */\nexport function checkCrtTypeNamePascalCase(type: string): void {\n\tconst [vendor, typeName] = type.split('.');\n\tconst pascalTypeName = toPascalCase(typeName);\n\tif (vendor.toLowerCase() === 'crt' && pascalTypeName !== typeName) {\n\t\tthrow new Error(\n\t\t\t`Error when register ${type}. Type property should have Pascal case, e.g. ${\n\t\t\t\tvendor + '.' + pascalTypeName\n\t\t\t}. ` + 'The first letter of each word in a compound word should be capitalized',\n\t\t);\n\t}\n}\n\n/**\n * @internal\n */\nexport function toPascalCase(source: string): string {\n\treturn upperFirst(camelCase(source));\n}\n\n/**\n * @internal\n */\nexport function checkIfTypeRegistered<T>(\n\ttype: string,\n\titem: (new () => T) | undefined | null,\n): asserts item is new () => T {\n\tif (!item) {\n\t\tthrow new Error(`Error when resolve ${type}. Type was not registered.`);\n\t}\n}\n\n/**\n * @internal\n */\nexport function checkOnlyOneRegistration<T>(type: string, item: T, map: Map<string, T>): void {\n\tif (map.has(type) && !isEqual(map.get(type), item)) {\n\t\tthrow new Error(`Error when register ${type}. Element with this type has already exist`);\n\t}\n}\n","import { RequestHandler } from '../../../base-exports';\nimport { RequestHandlerRegistrationConfig } from '../../../internal/models';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type RequestHandlerCtor = new (...args: unknown[]) => RequestHandler;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport interface RequestHandlerMapValue {\n\t// region Fields: Public\n\n\treadonly instanceType: RequestHandlerCtor;\n\treadonly instanceConfig: RequestHandlerRegistrationConfig;\n\n\t// endregion\n}\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type AddRequestHandlerListener = (requestType: string, requestMapInfo: RequestHandlerMapValue) => void;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type RemoveRequestHandlerListener = AddRequestHandlerListener;\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport type UnsubscribeListener = () => void;\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.requestHandlerRegistry\n */\nexport class InternalRequestHandlerRegistryType {\n\tprivate static _addItemListeners: Array<AddRequestHandlerListener> = [];\n\tprivate static _removeItemListeners: Array<AddRequestHandlerListener> = [];\n\tprivate static _requestHandlersMap = new Map<string, RequestHandlerMapValue>();\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static get requestHandlersMap(): Map<string, RequestHandlerMapValue> {\n\t\treturn this._requestHandlersMap;\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static onAddRequestHandler(handler: AddRequestHandlerListener): UnsubscribeListener {\n\t\tthis._addItemListeners.push(handler);\n\t\treturn () => {\n\t\t\tthis._addItemListeners.splice(this._addItemListeners.indexOf(handler), 1);\n\t\t};\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static onRemoveRequestHandler(handler: RemoveRequestHandlerListener): UnsubscribeListener {\n\t\tthis._removeItemListeners.push(handler);\n\t\treturn () => {\n\t\t\tthis._removeItemListeners.splice(this._removeItemListeners.indexOf(handler), 1);\n\t\t};\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static addRequestHandler(handlerType: string, config: RequestHandlerMapValue): void {\n\t\tif (!this._requestHandlersMap.has(handlerType)) {\n\t\t\tthis._requestHandlersMap.set(handlerType, config);\n\t\t\tfor (const listener of this._addItemListeners) {\n\t\t\t\tlistener(handlerType, config);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @publicHostApi\n\t */\n\tpublic static removeRequestHandler(handlerType: string): void {\n\t\tconst config = this._requestHandlersMap.get(handlerType);\n\t\tif (config) {\n\t\t\tthis._requestHandlersMap.delete(handlerType);\n\t\t\tfor (const listener of this._removeItemListeners) {\n\t\t\t\tlistener(handlerType, config);\n\t\t\t}\n\t\t}\n\t}\n}\ntype GlobalType = Window & {\n\tcreatio: {\n\t\trequestHandlerRegistry: typeof InternalRequestHandlerRegistryType;\n\t};\n};\n\nconst global = window as unknown as GlobalType;\n\nglobal.creatio ??= {} as any;\n\nif (!global.creatio.requestHandlerRegistry) {\n\tObject.defineProperty(global.creatio, 'requestHandlerRegistry', {\n\t\tget: () => InternalRequestHandlerRegistryType,\n\t\tconfigurable: false,\n\t});\n}\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const InternalRequestHandlerRegistry = global.creatio.requestHandlerRegistry;\n\n/**\n * @internal\n */\nexport class RequestHandlerRegistryService {\n\tprivate static _internalRegistry: typeof InternalRequestHandlerRegistryType = global.creatio.requestHandlerRegistry;\n\n\t/**\n\t * Register request handler class.\n\t * @param config Request handler registration config.\n\t * @param type Request handler type.\n\t */\n\tpublic static register(config: RequestHandlerRegistrationConfig, type: RequestHandlerCtor): void {\n\t\tconst requestType = config.requestType;\n\t\tconst requestHandlerType = config.type;\n\t\tif (!requestType) {\n\t\t\tthrow new Error(`Error when register ${requestHandlerType}. Request type not specified.`);\n\t\t}\n\t\tconst requestHandlerMapValue: RequestHandlerMapValue = {\n\t\t\tinstanceType: type,\n\t\t\tinstanceConfig: config,\n\t\t};\n\t\tRequestHandlerRegistryService._internalRegistry.addRequestHandler(requestHandlerType, requestHandlerMapValue);\n\t}\n}\n","import { BaseRequest } from '../../../base-exports';\nimport { RequestRegistrationConfig } from '../../../public/models';\nimport { checkIfTypeRegistered } from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport type BaseRequestCtor = new () => BaseRequest;\n\n/**\n * @internal\n */\nexport class RequestRegistryService {\n\tprivate static _requestsMap = new Map<string, BaseRequestCtor>();\n\tprivate static _requestsRegistrationInfos = new Map<string, RequestRegistrationConfig>();\n\n\tpublic static get requestsRegistrationInfos(): ReadonlyMap<string, RequestRegistrationConfig> {\n\t\treturn this._requestsRegistrationInfos;\n\t}\n\n\t/**\n\t * Registers a specified request class.\n\t * @param config Request registration config.\n\t * @param type Request type.\n\t */\n\tpublic static register(config: RequestRegistrationConfig, type: BaseRequestCtor) {\n\t\tconst requestType = config.type;\n\t\t// TODO RND-21723\n\t\tRequestRegistryService._requestsMap.set(requestType, type);\n\t\tRequestRegistryService._requestsRegistrationInfos.set(requestType, config);\n\t}\n\n\t/**\n\t * Creates request instance by specified registered request type.\n\t * @param type Request type.\n\t * @returns The instance of registered request.\n\t */\n\tpublic static get(type: string): BaseRequest | undefined {\n\t\tconst requestInstanceConstructor = RequestRegistryService._requestsMap.get(type);\n\t\tcheckIfTypeRegistered(type, requestInstanceConstructor);\n\t\treturn requestInstanceConstructor && new requestInstanceConstructor();\n\t}\n}\n","import { ConverterRegistryItem } from '../../models/converter';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkCrtTypeNamePascalCase, checkTypeNameFormat } from '../element-registration-checker';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ConverterRegistry\n */\nexport class ConverterRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'ConverterRegistry';\n\n\tpublic static get(type: string): ConverterRegistryItem {\n\t\tif (!this.store.typeInfos.has(type)) {\n\t\t\tthrow new Error(`'${type}' converter doesn't exist`);\n\t\t}\n\t\treturn this.store.typeInfos.get(type);\n\t}\n\n\tpublic static register(item: ConverterRegistryItem): void {\n\t\tcheckTypeNameFormat(item.type, 'ConverterTypeName');\n\t\tcheckCrtTypeNamePascalCase(item.type);\n\t\t// TODO RND-21723\n\t\tthis.store.typeInfos.set(item.type, item);\n\t}\n\n\tpublic static clear(): void {\n\t\tthis.store.typeInfos.clear();\n\t}\n}\n","import { BaseViewElementRegistrationConfig, CrtInputRegistrationConfig } from '../../../public/models';\nimport { AttributePropertyConfig, ViewElementRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkOnlyOneRegistration, checkTypeNameFormat } from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport const viewElementRegistryKey = 'ViewElementRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ValidatorRegistry\n */\nexport class ViewElementRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = viewElementRegistryKey;\n\n\tpublic static validate(config: BaseViewElementRegistrationConfig): void {\n\t\tcheckTypeNameFormat(config.type, 'ViewElementTypeName');\n\t\tcheckOnlyOneRegistration(config.type, config, ViewElementRegistry.viewElements);\n\t}\n\n\tpublic static get viewElements(): Map<string, ViewElementRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static register(config: ViewElementRegistryItem): void {\n\t\tthis.viewElements.set(config.type, config);\n\t}\n\n\tpublic static getFormControlRelatesAttribute(type: string): string | null {\n\t\tconst config = this.store.typeInfos.get(type);\n\t\treturn (config && 'formControlConfig' in config && config.formControlConfig?.relatesTo) || null;\n\t}\n\n\tpublic static getViewElementInputs(type: string): Record<string, CrtInputRegistrationConfig> | null {\n\t\tconst config = this.store.typeInfos.get(type) as ViewElementRegistryItem;\n\t\treturn config?.inputs ?? {};\n\t}\n\n\tpublic static getViewElementPropertiesDefaultValues(type: string): AttributePropertyConfig[] {\n\t\tconst config = this.store.typeInfos.get(type) as ViewElementRegistryItem;\n\t\tconst propertiesDefaultValues = Object.entries(config?.inputs ?? {})\n\t\t\t.filter(([_, inputConfig]) => Object.prototype.hasOwnProperty.call(inputConfig, 'defaultValue'))\n\t\t\t.map(([propertyName, propertyConfig]) => ({\n\t\t\t\tname: propertyName,\n\t\t\t\tdefaultValue: propertyConfig.defaultValue,\n\t\t\t}));\n\t\treturn [\n\t\t\t...propertiesDefaultValues,\n\t\t\t{\n\t\t\t\tname: 'visible',\n\t\t\t\tdefaultValue: true,\n\t\t\t},\n\t\t];\n\t}\n}\n","import { InterfaceDesignerRegistryItem } from '../../../internal/models';\nimport { ɵBaseRegistry } from '../../../internal/services/base-registry';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckOnlyOneRegistration,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\n\n/**\n * @internal\n */\nexport const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry\n */\nexport class InterfaceDesignerItemRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = interfaceDesignerItemRegistryKey;\n\n\tpublic static validate(config: InterfaceDesignerRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tcheckOnlyOneRegistration<InterfaceDesignerRegistryItem>(\n\t\t\tconfig.type,\n\t\t\tconfig,\n\t\t\tthis.interfaceDesignerItemRegistrationInfos,\n\t\t);\n\t}\n\n\tpublic static register(config: InterfaceDesignerRegistryItem): void {\n\t\tthis.interfaceDesignerItemRegistrationInfos.set(config.type, config);\n\t}\n\n\tpublic static get interfaceDesignerItemRegistrationInfos(): Map<string, InterfaceDesignerRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static get(type: string): InterfaceDesignerRegistryItem {\n\t\treturn <InterfaceDesignerRegistryItem>this.interfaceDesignerItemRegistrationInfos.get(type);\n\t}\n}\n","import {Type} from '../../../base-exports';\n\ntype Global = Window & { __crtModuleBootstrapNotifier: BootstrapNotifier };\nconst global: Global = window as unknown as Global;\n\n/**\n * @internal\n */\ninterface Subscription {\n\tunsubscribe: () => void;\n}\n\n/**\n * @internal\n */\ntype Subscriber = (moduleType: Type) => void;\n\n/**\n * @internal\n */\nexport class BootstrapNotifier {\n\tprivate _subscribers = new Set<Subscriber>();\n\n\tpublic static get instance(): BootstrapNotifier {\n\t\tif (!global.__crtModuleBootstrapNotifier) {\n\t\t\tglobal.__crtModuleBootstrapNotifier = new BootstrapNotifier();\n\t\t}\n\t\treturn global.__crtModuleBootstrapNotifier;\n\t}\n\n\tprivate constructor() {\n\t\t// private constructor prevent instantiation via 'new' keyword\n\t}\n\n\tpublic notify(moduleType: Type): void {\n\t\tfor (const subscriber of this._subscribers.values()) {\n\t\t\tsubscriber(moduleType);\n\t\t}\n\t}\n\n\tpublic subscribe(subscriber: Subscriber): Subscription {\n\t\tthis._subscribers.add(subscriber);\n\t\treturn {\n\t\t\tunsubscribe: () => this._subscribers.delete(subscriber),\n\t\t};\n\t}\n}\n","import { HandlerChainServiceRegistryItem } from '../../../internal/models';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n */\nexport class HandlerChainServicesRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = 'HandlerChainServicesRegistry';\n\n\tprivate static validate({ requestType }: HandlerChainServiceRegistryItem): void {\n\t\tcheckTypeNameFormat(requestType, this.registryKey);\n\t\tcheckCrtTypeNamePascalCase(requestType);\n\t\tthis.checkUniqueRequestType(requestType);\n\t}\n\n\tprivate static checkUniqueRequestType(requestType): void {\n\t\tif (this.services.get(requestType)) {\n\t\t\tthrow new Error(`${requestType} already registered`);\n\t\t}\n\t}\n\n\tpublic static register(config: HandlerChainServiceRegistryItem): void {\n\t\tthis.validate(config);\n\t\tthis.services.set(config.requestType, config);\n\t}\n\n\tpublic static get services(): Map<string, HandlerChainServiceRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { DesignTimeViewElementRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckOnlyOneRegistration,\n\tcheckTypeNameFormat,\n} from '../element-registration-checker';\n\n/**\n * @internal\n */\nexport const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.DesignTimeViewElementRegistry\n */\nexport class DesignTimeViewElementRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = designTimeViewElementRegistryKey;\n\n\tpublic static validate(config: DesignTimeViewElementRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tcheckOnlyOneRegistration<DesignTimeViewElementRegistryItem>(config.type, config, this.infos);\n\t}\n\n\tpublic static register(config: DesignTimeViewElementRegistryItem): void {\n\t\tthis.infos.set(config.type, config);\n\t}\n\n\tpublic static getByOverriddenType(type: string): DesignTimeViewElementRegistryItem | null {\n\t\tconst item = Array.from(this.infos).find(([_, info]) => info.overrideType === type);\n\t\tif (item) {\n\t\t\treturn item[1];\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic static get infos(): Map<string, DesignTimeViewElementRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { Type } from '../../../base-exports';\nimport { BaseValidator, ValidatorConfig } from '../../../public/models';\nimport { ValidatorRegistryItem } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\nimport { checkTypeNameFormat } from '../element-registration-checker';\n/**\n * @internal\n */\nexport class ValidatorMapValue {\n\tpublic instanceType!: Type;\n\tpublic instanceConfig!: ValidatorConfig;\n}\n\n/**\n * @internal\n */\nexport const validatorRegistryKey = 'ValidatorRegistry';\n\n/**\n * @internal\n * @hostPublicApi available through window.creatio.registry.ValidatorRegistry\n */\nexport class ValidatorRegistry extends ɵBaseRegistry {\n\tprotected static override readonly registryKey = validatorRegistryKey;\n\n\tprivate static _has(configType: string, type: Type<BaseValidator>): boolean {\n\t\treturn ValidatorRegistry.items.has(configType) && ValidatorRegistry.items.get(configType)?.typeRef !== type;\n\t}\n\n\tpublic static validate(config: ValidatorRegistryItem): void {\n\t\tcheckTypeNameFormat(config.type, 'ValidatorTypeName');\n\t\tif (ValidatorRegistry._has(config.type, config.typeRef)) {\n\t\t\tthrow new Error(`Error when register ${config.type}. Element with this type has already exist`);\n\t\t}\n\t}\n\n\tpublic static get items(): Map<string, ValidatorRegistryItem> {\n\t\treturn this.store.typeInfos;\n\t}\n\n\tpublic static register(config: ValidatorRegistryItem): void {\n\t\tthis.items.set(config.type, config);\n\t}\n}\n","import type { RemoteBuildInfo } from '../../models';\nimport { ɵBaseRegistry } from '../base-registry';\n\n/**\n * @internal\n * @dontChange\n */\nexport class RemoteEntriesRegistry extends ɵBaseRegistry {\n\t/**\n\t * @dontChange\n\t */\n\tprotected static override registryKey = 'remotes';\n\n\t/**\n\t * @dontChange\n\t */\n\tpublic static get items(): Map<string, RemoteBuildInfo> {\n\t\treturn this.store.typeInfos;\n\t}\n}\n","import { ViewElementRegistryItem } from '../models';\nimport { ViewElementRegistry } from '../services';\n\n/**\n * @internal\n */\nexport function isComponentPropertyBindable(viewConfigType: string, componentProperty: string): boolean {\n\tconst componentConfig = ViewElementRegistry.viewElements.get(viewConfigType) as ViewElementRegistryItem;\n\tif (!componentConfig?.inputs) {\n\t\treturn false;\n\t}\n\treturn !!componentConfig?.inputs[componentProperty]?.propertyBindable;\n}\n","import 'reflect-metadata';\nimport { Type } from '../../base-exports';\nimport {\n\tBaseValidator,\n\tConverter,\n\tCrtInputRegistrationConfig,\n\tModuleDefinition,\n\tRequestHandlerDefinition,\n\tValidatorConfig,\n\tViewElementRegistrationConfig,\n} from '../../public/models';\nimport { InterfaceDesignerItemDefinition } from '../../public/models/interface-designer-item/interface-designer-item-definition';\nimport { crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix } from '../constants';\nimport {\n\tAngularViewElementRegistrationConfig,\n\tDesignTimeViewElementRegistryItem,\n\tHandlerChainServiceRegistryItem,\n\tInternalInterfaceDesignerItemRegistrationConfig,\n} from '../models';\n\nconst moduleMetadataKey = 'module';\nconst viewElementMetadataKey = 'viewElement';\nconst interfaceDesignerItemMetadataKey = 'interfaceDesignerItem';\nconst requestHandlerMetadataKey = 'requestHandler';\nconst designTimeViewElementMetadataKey = 'designTimeViewElement';\nconst validatorMetadataKey = 'validator';\nconst converterMetadataKey = 'converter';\n\n/**\n * @internal\n */\nexport type ViewElementMetadata = ViewElementRegistrationConfig | AngularViewElementRegistrationConfig;\n\n/**\n * @internal\n */\nexport type InterfaceDesignerItemMetadata =\n\t| InterfaceDesignerItemDefinition\n\t| InternalInterfaceDesignerItemRegistrationConfig;\n\n/**\n * @internal\n */\nexport type ValidatorMetadata = ValidatorConfig & { typeRef: Type<BaseValidator> };\n\n/**\n * @internal\n */\nexport interface ConverterMetadata { type: string; typeRef: Type<Converter> }\n\n/**\n * @internal\n */\nexport function setModuleMetadata(metadata: ModuleDefinition, type: Type): void {\n\tReflect.defineMetadata(moduleMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getModuleMetadata(type: Type): ModuleDefinition {\n\tconst metadata = Reflect.getMetadata(moduleMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Module metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setViewElementMetadata(metadata: ViewElementMetadata, type: Type): void {\n\tReflect.defineMetadata(viewElementMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getViewElementMetadata(type: Type): ViewElementMetadata {\n\tconst metadata = Reflect.getMetadata(viewElementMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`View element metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setValidatorMetadata(metadata: ValidatorMetadata, type: Type): void {\n\tReflect.defineMetadata(validatorMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getValidatorMetadata(type: Type): ValidatorMetadata {\n\tconst metadata = Reflect.getOwnMetadata(validatorMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Validator metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setConverterMetadata(metadata: ConverterMetadata, type: Type): void {\n\tReflect.defineMetadata(converterMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getConverterMetadata(type: Type): ConverterMetadata {\n\tconst metadata = Reflect.getOwnMetadata(converterMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Converter metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setInterfaceDesignerItemMetadata(metadata: InterfaceDesignerItemMetadata, type: Type): void {\n\tReflect.defineMetadata(interfaceDesignerItemMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getInterfaceDesignerItemMetadata(type: Type): InterfaceDesignerItemMetadata {\n\tconst metadata = Reflect.getOwnMetadata(interfaceDesignerItemMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Interface designer item metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function setDesignTimeViewElementMetadata(metadata: DesignTimeViewElementRegistryItem, type: Type): void {\n\tReflect.defineMetadata(designTimeViewElementMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getDesignTimeViewElementMetadata(type: Type): DesignTimeViewElementRegistryItem {\n\tconst metadata = Reflect.getOwnMetadata(designTimeViewElementMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Design time view element metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function hasInterfaceDesignerItemMetadata(type: Type): boolean {\n\treturn Reflect.hasOwnMetadata(interfaceDesignerItemMetadataKey, type);\n}\n\n/**\n * @internal\n */\nexport function setRequestHandlerMetadata(metadata: RequestHandlerDefinition, type: Type): void {\n\tReflect.defineMetadata(requestHandlerMetadataKey, metadata, type);\n}\n\n/**\n * @internal\n */\nexport function getRequestHandlerMetadata(type: Type): RequestHandlerDefinition {\n\tconst metadata = Reflect.getMetadata(requestHandlerMetadataKey, type);\n\tif (!metadata) {\n\t\tthrow new Error(`Request handler metadata was not found on '${type.name}' class`);\n\t}\n\treturn metadata;\n}\n\n/**\n * @internal\n */\nexport function getHandlerChainServiceMetadata(typeRef: Type): HandlerChainServiceRegistryItem {\n\tconst requestType = Reflect.getMetadata('requestType', typeRef);\n\tif (!requestType) {\n\t\tthrow new Error(`requestType was not found on '${typeRef.name}' class`);\n\t}\n\treturn { requestType, typeRef };\n}\n\n/**\n * @internal\n */\nexport function getCrtInputsMetadata(type: Type): Record<string, CrtInputRegistrationConfig> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtInputKeys = keys.filter((x: string) => x.startsWith(crtInputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtInputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtInputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nexport function getCrtOutputsMetadata(type: Type): Record<string, unknown> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtOutputKeys = keys.filter((x: string) => x.startsWith(crtOutputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtOutputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtOutputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nexport function getCrtValidationInputsMetadata(type: Type): Record<string, unknown> {\n\tconst keys = Reflect.getMetadataKeys(type);\n\tconst crtValidationInputKeys = keys.filter((x: string) => x.startsWith(crtValidationInputPrefix));\n\treturn Object.fromEntries(\n\t\tcrtValidationInputKeys.map((key) => {\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [key.replace(crtValidationInputPrefix, ''), data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nfunction getCrtInjectMetadata(type: Type): Record<number, unknown> {\n\tconst keys = Reflect.getOwnMetadataKeys(type);\n\tconst crtInjectKeys = keys.filter((x: string) => x.startsWith(crtInjectPrefix));\n\treturn Object.fromEntries(\n\t\tcrtInjectKeys.map((key) => {\n\t\t\tconst index = Number(key.replace(crtInjectPrefix, ''));\n\t\t\tconst data = Reflect.getMetadata(key, type);\n\t\t\treturn [index, data];\n\t\t}),\n\t);\n}\n\n/**\n * @internal\n */\nfunction getParentType(type: Type): Type {\n\tconst parentProto = type.prototype ? Object.getPrototypeOf(type.prototype) : null;\n\treturn parentProto ? parentProto.constructor : null;\n}\n\n/**\n * @internal\n */\nexport function getTypeDependencies(type: Type): unknown[] {\n\tconst paramTypes = Reflect.getOwnMetadata('design:paramtypes', type);\n\tif (!paramTypes) {\n\t\tif (type.length > 0) {\n\t\t\tthrow new Error(\n\t\t\t\t`Dependency Injection error. Cannot read dependencies of class '${type.name}'. ` +\n\t\t\t\t\t`Please make sure class '${type.name}' has decorator and ` +\n\t\t\t\t\t\"'emitDecoratorMetadata' option is enabled in your 'tsconfig.json' file.\",\n\t\t\t);\n\t\t}\n\t\tconst parentType = getParentType(type);\n\t\treturn parentType && parentType !== Object ? getTypeDependencies(parentType) : [];\n\t}\n\tconst crtInjectMetadata = getCrtInjectMetadata(type);\n\tObject.entries(crtInjectMetadata).forEach(([index, token]) => (paramTypes[index] = token));\n\treturn paramTypes;\n}\n","import { getTypeDependencies } from './metadata-utils';\nimport {ResolveDependencyFn, Type} from '../../base-exports';\n\n/**\n * @internal\n */\nexport function instantiate<T = unknown>(type: Type<T>, resolveDependency: ResolveDependencyFn | undefined): T {\n\tconst deps = getTypeDependencies(type);\n\tif (deps.length > 0) {\n\t\tif (!resolveDependency) {\n\t\t\tthrow new Error(\n\t\t\t\t`Cannot resolve dependencies for ${type.name}. ` +\n\t\t\t\t\t\"Please provide 'resolveDependency' bootstrap option\",\n\t\t\t);\n\t\t}\n\t\tconst depInstances = deps.map(resolveDependency);\n\t\treturn new type(...depInstances);\n\t}\n\treturn new type();\n}\n\n/**\n * @public\n * @description For internal use only.\n */\nexport function ɵinstantiate<T = unknown>(type: Type<T>, resolveDependency: ResolveDependencyFn | undefined): T {\n\treturn instantiate<T>(type, resolveDependency);\n}\n","import { ViewElementProperty } from '../../enums';\n\n/**\n * @public\n */\nexport class CrtInputRegistrationConfig {\n\t/**\n\t * @internal\n\t */\n\tpublic propertyBindable?: boolean;\n\t/**\n\t * @internal\n\t */\n\tpublic defaultValue?: unknown;\n\t/**\n\t * @internal\n\t */\n\tpublic propertyName?: ViewElementProperty;\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\n/**\n * @public\n * @class DataRequest\n * @description Definition of data source request.\n * @extends {ɵBaseRequest} {@link ɵBaseRequest}\n * @property {string} dataSourceName - name of assigned data source.\n */\nexport class DataRequest extends ɵBaseRequest {\n\t/**\n\t * @description name of assigned data source.\n\t */\n\tpublic readonly dataSourceName!: string;\n}\n","/**\n * @public\n * @description Request payload\n * @property {string} request - request name.\n * @property {unknown} params - request parameters.\n */\n\nexport interface BaseRequestConfig {\n\t/**\n\t * @description request name.\n\t */\n\trequest: string;\n\n\t/**\n\t * @description request parameters.\n\t */\n\tparams?: unknown;\n}\n","/**\n * @internal\n */\nexport enum ViewElementReuseStrategy {\n\t/**\n\t * Reuse early created view element when it state changed\n\t */\n\tReuse,\n\t/**\n\t * Rerender(recreate) view element when it state changed\n\t */\n\tRerender, // TODO RND-49517\n}\n","/**\n * @internal\n * @description Visibility strategy for view element.\n */\nexport enum ViewElementVisibilityStrategy {\n\t/**\n\t * @description Default visibility strategy.\n\t */\n\tDefault = 'default',\n\t/**\n\t * @description On demand visibility strategy.\n\t */\n\tOnDemand = 'on-demand',\n}\n","import { CrtControlState } from './crt-control-state';\nimport { CrtValidationErrors } from './crt-validation-errors';\nimport { CrtValidatorFn } from './crt-validator-fn';\nimport { ValidatorParametersValues } from './validator-parameter-values';\n\n/**\n * @public\n * @description Abstract Base Validator class for designing custom validators.\n * @example\n * @CrtValidator({\n * type: 'crt.Required',\n * })\n * export class RequiredValidator extends BaseValidator {\n * protected override async = false;\n * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {\n * Implementation here...\n * }\n * }\n */\nexport abstract class BaseValidator {\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_BaseValidator';\n\n\t/**\n\t * @abstract\n\t * @description indicator to recognize whether validator asynchronous or synchronous\n\t */\n\tprotected abstract async: boolean;\n\n\t/**\n\t * @description getter for async/sync indicator\n\t */\n\tpublic get isAsync(): boolean {\n\t\treturn this.async;\n\t}\n\n\t/**\n\t * @description Function used for validation\n\t */\n\tpublic get validateFn(): CrtValidatorFn {\n\t\treturn this.validate.bind(this);\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: BaseValidator): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === BaseValidator._instanceOfKey;\n\t}\n\n\t/**\n\t * @description Method which contains main logic relates validation.\n\t * @param controlState - {@link CrtControlState}\n\t * @param params - incoming parameters for validation {@link ValidatorParametersValues}\n\t */\n\tpublic abstract validate(\n\t\tcontrolState: CrtControlState,\n\t\tparams?: ValidatorParametersValues,\n\t): CrtValidationErrors | null | Promise<CrtValidationErrors | null>;\n}\n","/**\n * @public\n */\nexport class LocalizableValue {\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_LocalizableValue';\n\n\tconstructor(public readonly key: string) {}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: LocalizableValue): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === LocalizableValue._instanceOfKey;\n\t}\n}\n","import { cloneDeep, get, set } from 'lodash';\n\nimport { objectDeepKeys } from './object-deep-keys';\nimport {LocalizeFn} from '../../base-exports';\nimport { LocalizableValue } from '../../public/models';\n\n/**\n * @internal\n */\nexport function applyLocalizeMetadataFn<T extends object>(obj: object, localizeMetadata: LocalizeFn | undefined): T {\n\tconst localizableEntries = objectDeepKeys(obj)\n\t\t.map((path) => ({ path, value: get(obj, path) }))\n\t\t.filter(({ value }) => value instanceof LocalizableValue);\n\tif (localizableEntries.length === 0) {\n\t\treturn obj as T;\n\t}\n\tconst localized = cloneDeep(obj);\n\tif (!localizeMetadata) {\n\t\tconsole.error(\"Unable to localize metadata. 'localizeMetadata' bootstrap option was not provided.\");\n\t}\n\tlocalizableEntries.forEach(({ path, value }) => {\n\t\tconst localizedValue = localizeMetadata?.(value.key) ?? value.key;\n\t\tset(localized, path, localizedValue);\n\t});\n\treturn localized as T;\n}\n","import { Type } from '../../../base-exports';\nimport { DesignTimeViewElementRegistryItem } from '../../models';\nimport { setDesignTimeViewElementMetadata } from '../../utils';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtDesignTimeViewElement(config: Omit<DesignTimeViewElementRegistryItem, 'typeRef'>) {\n\treturn function (type: Type) {\n\t\tconst registrationConfig: DesignTimeViewElementRegistryItem = {\n\t\t\t...config,\n\t\t\ttypeRef: type,\n\t\t};\n\t\tsetDesignTimeViewElementMetadata(registrationConfig, type);\n\t};\n}\n","import 'reflect-metadata';\nimport { BaseRequest } from '../../../base-exports';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { RequestRegistryService } from '../../../internal/services/request-registry';\nimport { RequestRegistrationConfig } from '../../../public/models';\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequest(config: RequestRegistrationConfig) {\n\treturn function (type: new (...args: unknown[]) => BaseRequest): void {\n\t\tcheckTypeNameFormat(config.type, 'RequestTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tRequestRegistryService.register(config, type);\n\t};\n}\n","import { BaseInterfaceDesignerItemRegistrationConfig } from './base-interface-designer-item-registration-config';\nimport { ToolbarViewElementConfig } from './toolbar-view-element-config';\nimport { Type } from '../../../base-exports';\nimport { ViewElementGroupType } from '../../enums';\n\n/**\n * @internal\n * @hostPublicApi\n */\nexport class InterfaceDesignerItemRegistrationConfig implements BaseInterfaceDesignerItemRegistrationConfig {\n\tpublic toolbarConfig!: ToolbarViewElementConfig;\n\tpublic viewElementGroupType!: ViewElementGroupType;\n\tpublic typeCaption?: string;\n\tpublic typeRef?: Type;\n}\n","import { ɵBaseRequest } from '@creatio/base';\n\n/**\n * @internal\n * @class MethodInvokeRequest\n * @description Definition of invoke method request.\n * @extends {ɵBaseRequest} {@link ɵBaseRequest}\n * @property {string} method - method name.\n * @property {unknown[]} args - arguments passing to the method.\n */\nexport class MethodInvokeRequest extends ɵBaseRequest {\n\t/**\n\t * @description method name\n\t */\n\tpublic method!: string;\n\t/**\n\t * @description arguments passing to the method\n\t */\n\tpublic args?: unknown[];\n}\n","/**\n * @internal\n */\nexport enum RemoteEntryType {\n\tScript = 'script',\n\tModule = 'module',\n}\n\n/**\n * @internal\n */\nexport interface RemoteBuildInfo {\n\tname: string;\n\tentry: string;\n\tentryType: RemoteEntryType;\n\tmainModule: string;\n\t/**\n\t * @dontChange\n\t */\n\tpackageName: string;\n\tmaintainer: string;\n}\n","import 'reflect-metadata';\nimport { crtInputPrefix } from '../../../internal/constants';\nimport { CrtInputRegistrationConfig } from '../../models/input';\n\n/**\n * @public\n * @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.\n * @param config {@link CrtInputRegistrationConfig}\n *\n * @example\n * export class AppComponent {\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInput(config?: CrtInputRegistrationConfig) {\n\treturn function (target: any, propertyKey: string) {\n\t\tif (!config) {\n\t\t\tconfig = {\n\t\t\t\tpropertyBindable: false,\n\t\t\t};\n\t\t}\n\t\tReflect.defineMetadata(crtInputPrefix + propertyKey.toString(), config, target.constructor);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtOutputPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.\n * @example\n * export class AppComponent {\n * @Input()\n * @CrtOutput()\n * public valueChange;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtOutput() {\n\treturn function (target: any, propertyKey: string) {\n\t\tReflect.defineMetadata(crtOutputPrefix + propertyKey.toString(), {}, target.constructor);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtValidationInputPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description User-defined components receive validationInfo changes through CrtValidationInput decorator.\n * Make sure you have defined input for every validationInfo input.\n * To properly declare validationInfo field:\n * 1. Declare input field inside inputs section. For example `value`\n * 2. In validationInputs section declare same field which ends with ValidationInfo.\n * For previous example `valueValidationInfo`\n *\n * @example\n * export class AppComponent {\n * @CrtInput()\n\t\tpublic value;\n *\n * \t@CrtValidationInput()\n * public valueValidationInfo;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidationInput() {\n\treturn function (target: any, propertyKey: string) {\n\t\tReflect.defineMetadata(crtValidationInputPrefix + propertyKey.toString(), {}, target.constructor);\n\t};\n}\n","import { Type } from '../../../base-exports';\nimport { VIEW_ELEMENT_DEFAULT_HEIGHT } from '../../../internal/constants';\nimport { AngularViewElementRegistrationConfig } from '../../../internal/models';\nimport { checkTypeNamePascalCase } from '../../../internal/services';\nimport {\n\tgetCrtInputsMetadata,\n\tgetCrtOutputsMetadata,\n\tgetCrtValidationInputsMetadata,\n\tsetViewElementMetadata,\n} from '../../../internal/utils';\nimport {\n\tBaseViewElementRegistrationConfig,\n\tViewElementRegistrationConfig,\n\tViewElementReuseStrategy,\n} from '../../models';\n// noinspection ES6PreferShortImport\n\n/**\n * @internal\n */\ntype CrtAngularViewElementConfig = Omit<AngularViewElementRegistrationConfig, 'typeRef'>;\n\n/**\n * @public\n * @description CrtViewElement decorator allows user to declare components in Creatio platform.\n * Make sure component is specified in viewElements section of CrtModule.\n * @param config - registration config. {@link ViewElementRegistrationConfig}.\n *\n * @example\n * @CrtViewElement({\n * type: 'usr.Example',\n * selector: 'usr-example',\n * })\n * export class AppComponent {\n * @Input()\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: CrtAngularViewElementConfig): (type: Type) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtViewElement(config: CrtAngularViewElementConfig | ViewElementRegistrationConfig) {\n\treturn function (type: Type): void {\n\t\tcheckTypeNamePascalCase(config.type);\n\t\tconst inputs = getCrtInputsMetadata(type);\n\t\tconst outputs = getCrtOutputsMetadata(type);\n\t\tconst validationInputs = getCrtValidationInputsMetadata(type);\n\t\tconst baseRegistrationConfig: BaseViewElementRegistrationConfig = {\n\t\t\t...config,\n\t\t\tinputs,\n\t\t\toutputs,\n\t\t\tvalidationInputs,\n\t\t};\n\t\tconst registrationConfig =\n\t\t\t'selector' in config\n\t\t\t\t? { ...baseRegistrationConfig, selector: config.selector }\n\t\t\t\t: { ...baseRegistrationConfig, typeRef: type };\n\t\tregistrationConfig.reuseStrategy = config?.reuseStrategy ?? ViewElementReuseStrategy.Rerender;\n\t\tregistrationConfig.defaultSize = config.defaultSize ?? {\n\t\t\theight: VIEW_ELEMENT_DEFAULT_HEIGHT,\n\t\t};\n\t\tsetViewElementMetadata(registrationConfig, type);\n\t};\n}\n","import { Type } from '../../../base-exports';\nimport { setModuleMetadata } from '../../../internal/utils';\nimport { ModuleDefinition } from '../../models';\nimport 'reflect-metadata';\n\n/**\n * @public\n * @description CrtModule decorator is a 'container' where user actually setup elements.\n * In could contain viewElements, definitions of other CrtModules.\n * @param moduleDefinition - {@link ModuleDefinition}\n *\n * @example\n * @CrtModule({\n * viewElements: [AppComponent],\n * requestHandlers: [SomeRequestHandler],\n * validators: [SomeValidator],\n * })\n * @NgModule({\n * declarations: [AppComponent],\n * imports: [BrowserModule],\n * providers: [],\n * })\n * export class AppModule {}\n */\nexport function CrtModule(moduleDefinition: ModuleDefinition) {\n\treturn (type: Type) => setModuleMetadata(moduleDefinition, type);\n}\n","// noinspection ES6PreferShortImport\nimport {Type} from '../../../base-exports';\nimport { ViewElementGroupType } from '../../../internal/enums';\nimport { InternalInterfaceDesignerItemRegistrationConfig, ToolbarViewElementConfig } from '../../../internal/models';\nimport { setInterfaceDesignerItemMetadata } from '../../../internal/utils';\nimport { InterfaceDesignerItemDefinition } from '../../models';\n\n/**\n * @public\n * @description Decorator to declare design time configuration for view element.\n * @param config - registration config {@link InterfaceDesignerItemDefinition}.\n *\n * @example\n * @CrtViewElement({\n * type: \"usr.Example',\n * selector: 'usr-example',\n * })\n * @CrtInterfaceDesignerItem({\n * toolbarConfig: {\n * caption: 'usrExampleCaption',\n * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)\n * hint: 'usrExampleHint',\n * defaultPropertyValues: {\n * value: 'This is default value',\n * },\n * },\n * })\n * @Component({\n * selector: 'usr-example',\n * templateUrl: './app.component.html',\n * styleUrls: ['./app.component.scss'],\n * encapsulation: ViewEncapsulation.ShadowDom,\n * })\n * export class AppComponent {\n * @Input()\n * @CrtInput()\n * public value!: string;\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(config: InternalInterfaceDesignerItemRegistrationConfig): (type: Type) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtInterfaceDesignerItem(\n\tconfig: InterfaceDesignerItemDefinition | InternalInterfaceDesignerItemRegistrationConfig,\n): (type: Type) => void {\n\tfunction _applyTypeCaption(): void {\n\t\tif (!config.typeCaption && config.toolbarConfig) {\n\t\t\tconst toolbarConfig = Array.isArray(config.toolbarConfig)\n\t\t\t\t? config.toolbarConfig[0]\n\t\t\t\t: (config.toolbarConfig as ToolbarViewElementConfig);\n\t\t\tconfig.typeCaption = toolbarConfig.caption;\n\t\t}\n\t}\n\n\treturn function (type: Type): void {\n\t\tconfig.typeRef = type;\n\t\tconfig.viewElementGroupType ??= ViewElementGroupType.CustomElements;\n\t\t_applyTypeCaption();\n\t\tsetInterfaceDesignerItemMetadata(config, type);\n\t};\n}\n","import 'reflect-metadata';\nimport { crtInjectPrefix } from '../../../internal/constants';\n\n/**\n * @public\n * @description\n * Constructor parameter decorator.\n * Mark parameter as dependency that should be obtained by token.\n * @param token - token by which the dependency instance will be obtained\n * @example\n * class MyHandler {\n * \tconstructor(@CrtInject(USER_NAME_TOKEN) userName: string) {}\n * }\n */\nexport function CrtInject(token: unknown) {\n\treturn function (target: any, paramKey: string, paramIndex: number) {\n\t\tReflect.defineMetadata(crtInjectPrefix + paramIndex, token, target);\n\t};\n}\n","import 'reflect-metadata';\nimport {AbstractType, Type} from '../../../base-exports';\nimport { checkTypeNameFormat } from '../../../internal/services';\nimport { setValidatorMetadata } from '../../../internal/utils';\nimport { ValidatorConfig } from '../../models/validation/validator-config';\n\n/**\n * @public\n * @description Decorator to declare validator\n * @param config - validator config {@link ValidatorConfig}.\n * If no config is passed, the validator cannot be declared, but can be used as a base class for another validator.\n *\n * @example\n * @CrtValidator({\n * type: 'crt.Required',\n * })\n * export class RequiredValidator extends BaseValidator {\n * protected override async = false;\n * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {\n * Implementation here...\n * }\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(config: ValidatorConfig): (type: Type) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(): (type: Type | AbstractType) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtValidator(config?: ValidatorConfig) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {\n\t\t\t// the decorator won't do anything by itself,\n\t\t\t// but will be used by the compiler to generate class metadata,\n\t\t\t// which is required for DI\n\t\t};\n\t}\n\treturn function (type: Type): void {\n\t\tcheckTypeNameFormat(config.type, 'ValidatorTypeName');\n\t\tconst registrationConfig = {\n\t\t\t...config,\n\t\t\ttypeRef: type,\n\t\t};\n\t\tsetValidatorMetadata(registrationConfig, type);\n\t};\n}\n","import 'reflect-metadata';\nimport {AbstractType, Type, RequestHandler } from '../../../base-exports';\nimport {\n\tcheckCrtTypeNamePascalCase,\n\tcheckTypeNameFormat,\n} from '../../../internal/services/element-registration-checker';\nimport { setRequestHandlerMetadata } from '../../../internal/utils';\nimport { RequestHandlerDefinition } from '../../../public/models';\n\n/**\n * @public\n * @description Decorator to declare request handler\n * @param config - request handler config {@link RequestHandlerRegistrationConfig}.\n * If no config is passed, the handler cannot be declared, but can be used as a base class for another handler.\n *\n * @example\n * *@CrtRequestHandler({\n *\t requestType: 'crt.SomeRequest',\n *\t type: 'crt.SomeRequestHandler',\n * })\n * export class SectionInitHandler extends BaseRequestHandler<SomeRequest> {\n * public async handle(request: SomeRequest): Promise<unknown> {\n * \t // Some business logic\n * \t return this.next?.handle(request);\n * \t }\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler<T extends RequestHandler>(config: RequestHandlerDefinition): (type: Type<T>) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler(): (type: Type | AbstractType) => void;\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtRequestHandler<T extends RequestHandler>(config?: RequestHandlerDefinition) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {\n\t\t\t// the decorator won't do anything by itself,\n\t\t\t// but will be used by the compiler to generate class metadata,\n\t\t\t// which is required for DI\n\t\t};\n\t}\n\treturn function (type: Type<T>): void {\n\t\tcheckTypeNameFormat(config.type, 'RequestHandlerTypeName');\n\t\tcheckCrtTypeNamePascalCase(config.type);\n\t\tsetRequestHandlerMetadata(config, type);\n\t};\n}\n","import {AbstractType, Type } from '../../../base-exports';\nimport { checkTypeNameFormat } from '../../../internal/services';\nimport { setConverterMetadata } from '../../../internal/utils';\nimport { ConverterConfig } from '../../../public/models/converter';\n\n/**\n * @public\n * @description Decorator to declare converter\n * @param config - converter config {@link ConverterConfig}.\n * if config is not passed, converter won't be declared,\n * but still can be used as base class for another converter\n *\n * @example\n * @CrtConverter({\n * type: 'usr.ToBoolean',\n * })\n * export class ToBooleanConverter implements Converter<unknown, boolean> {\n * \tpublic convert(value: unknown): boolean {\n * \t\treturn Boolean(value);\n * \t}\n * }\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(config: ConverterConfig): (type: Type) => void;\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(): (type: Type | AbstractType) => void;\n\n/**\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function CrtConverter(config?: ConverterConfig) {\n\tif (!config) {\n\t\treturn (type: Type | AbstractType) => {};\n\t}\n\treturn function (typeRef: Type): void {\n\t\tconst type = typeof config === 'string' ? config : config.type;\n\t\tcheckTypeNameFormat(type, 'converterTypeName');\n\t\tconst registrationConfig = {\n\t\t\ttype: type,\n\t\t\ttypeRef: typeRef,\n\t\t};\n\t\tsetConverterMetadata(registrationConfig, typeRef);\n\t};\n}\n","/**\n * @internal\n */\nexport enum DataSourceLoadType {\n\tLoadNext = 'loadNext',\n\tLoad = 'load',\n\tReload = 'reload',\n}\n","/**\n * @internal\n */\nexport enum ViewElementProperty {\n\tReadonly = 'READONLY_PROPERTY',\n\tDisabled = 'DISABLED_PROPERTY',\n}\n","import { ViewElementRegistry } from '../../internal/services';\nimport { ViewElementRegistrationConfig } from '../models';\n\n/**\n * @public\n * @description Function allows to register user-defined component as view element in Creatio platform.\n * @param config - registration config. {@link ViewElementRegistrationConfig}\n * @example\n * sdk.registerViewElement({\n * type: 'usr.Timeline',\n * selector: 'usr-timeline',\n * inputs: {\n * primaryColumnValue: {},\n * cardSchemaName: {},\n * entitySchemaName: {}\n * }\n * });\n */\nexport function registerViewElement(config: ViewElementRegistrationConfig): void {\n\tViewElementRegistry.validate(config);\n\tViewElementRegistry.register(config);\n}\n","import { Type } from '../../base-exports';\nimport { ViewElementRegistry } from '../../internal/services';\nimport { BaseViewElementRegistrationConfig } from '../models';\n\n/**\n * @internal\n * @description Function allows to register angular component as view element in Creatio platform.\n */\nexport function registerAngularViewElement(config: BaseViewElementRegistrationConfig, typeRef: Type): void {\n\tViewElementRegistry.validate(config);\n\tViewElementRegistry.register({\n\t\t...config,\n\t\ttypeRef,\n\t});\n}\n","import { LocalizeFn, ResolveDependencyFn, Type, BaseRequest } from '../../base-exports';\nimport { HandlerSourceType } from '../../internal/enums';\nimport {\n\tInjectionContext,\n\tInterfaceDesignerRegistryItem,\n\tRemoteBuildInfo,\n\tRequestHandlerRegistrationConfig,\n\tValidatorRegistryItem,\n} from '../../internal/models';\nimport { ConverterRegistryItem } from '../../internal/models/converter';\nimport {\n\tBootstrapNotifier,\n\tConverterRegistry,\n\tDesignTimeViewElementRegistry,\n\tInterfaceDesignerItemRegistry,\n\tRemoteEntriesRegistry,\n\tRequestHandlerRegistryService,\n\tValidatorRegistry,\n\tViewElementRegistry,\n} from '../../internal/services';\nimport { InternalResolveDependencyFn } from '../../internal/types';\nimport {\n\tapplyLocalizeMetadataFn,\n\tgetConverterMetadata,\n\tgetDesignTimeViewElementMetadata,\n\tgetInterfaceDesignerItemMetadata,\n\tgetModuleMetadata,\n\tgetRequestHandlerMetadata,\n\tgetValidatorMetadata,\n\tgetViewElementMetadata,\n\thasInterfaceDesignerItemMetadata,\n\tinstantiate,\n} from '../../internal/utils';\nimport { BaseRequestHandler } from '../../public/handlers';\nimport { BaseValidator, Converter } from '../models';\n\n/**\n * @public\n * @description Module bootstrap options\n */\nexport interface BootstrapOptions {\n\t/**\n\t * Function to be used to translate localizable values of class metadata\n\t */\n\tlocalizeMetadata?: LocalizeFn;\n\t/**\n\t * Function to be used to resolve class dependencies\n\t */\n\tresolveDependency?: ResolveDependencyFn;\n\t/**\n\t * @internal\n\t */\n\tmoduleType?: 'host' | 'remote';\n}\n\nfunction checkRemoteName(remoteName: string): void {\n\tif (!RemoteEntriesRegistry.items.has(remoteName)) {\n\t\tthrow new Error(`Remote entry with name '${remoteName}' does not exist`);\n\t}\n}\n\n/**\n * @internal\n */\nfunction resistantForEach<T>(items: Array<T>, callback: (item: T) => void): void {\n\titems.forEach((item) => {\n\t\ttry {\n\t\t\tcallback(item);\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerViewElements(types: Type[]): void {\n\tresistantForEach(types, (type) => {\n\t\tconst registrationConfig = getViewElementMetadata(type);\n\t\tViewElementRegistry.validate(registrationConfig);\n\t\tViewElementRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerInterfaceDesignerItems(types: Type[], localizeFn?: LocalizeFn): void {\n\tresistantForEach(types, (type) => {\n\t\tif (!hasInterfaceDesignerItemMetadata(type)) {\n\t\t\treturn;\n\t\t}\n\t\tlet config = getInterfaceDesignerItemMetadata(type) as InterfaceDesignerRegistryItem;\n\t\tconfig = applyLocalizeMetadataFn(config, localizeFn);\n\t\tconst viewElementMetadata = getViewElementMetadata(type);\n\t\tconfig.type = viewElementMetadata.type;\n\t\tInterfaceDesignerItemRegistry.validate(config);\n\t\tInterfaceDesignerItemRegistry.register(config);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerDesignTimeViewElements(types: Type[]): void {\n\tresistantForEach(types, (type) => {\n\t\tconst registrationConfig = getDesignTimeViewElementMetadata(type);\n\t\tDesignTimeViewElementRegistry.validate(registrationConfig);\n\t\tDesignTimeViewElementRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerValidators(types: Type<BaseValidator>[], options?: BootstrapOptions): void {\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getValidatorMetadata(type);\n\t\tconst registrationConfig: ValidatorRegistryItem = {\n\t\t\t...metadata,\n\t\t\tinstantiate: function (injectionContext?: InjectionContext) {\n\t\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t\t: null;\n\t\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t\t},\n\t\t};\n\t\tValidatorRegistry.validate(registrationConfig);\n\t\tValidatorRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerConverters(types: Type<Converter>[], options?: BootstrapOptions): void {\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getConverterMetadata(type);\n\t\tconst registrationConfig: ConverterRegistryItem = {\n\t\t\t...metadata,\n\t\t\tinstantiate: function (injectionContext?: InjectionContext) {\n\t\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t\t: null;\n\t\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t\t},\n\t\t};\n\t\tConverterRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction registerRequestHandlers(\n\ttypes: Type<BaseRequestHandler>[],\n\toptions: BootstrapOptions,\n\tremoteName?: string,\n): void {\n\tif (options.moduleType === 'remote' && !remoteName) {\n\t\tconsole.error(\"To use request handlers, 'remoteName' parameter should be specified.\");\n\t\treturn;\n\t}\n\tresistantForEach(types, (type) => {\n\t\tconst metadata = getRequestHandlerMetadata(type);\n\t\tlet registrationConfig: RequestHandlerRegistrationConfig;\n\t\tconst createHandler = (\n\t\t\tinjectionContext?: InjectionContext,\n\t\t): BaseRequestHandler<BaseRequest<unknown>, unknown> => {\n\t\t\tconst resolveDependency = options?.resolveDependency\n\t\t\t\t? (token) => (<InternalResolveDependencyFn>options.resolveDependency)(token, injectionContext)\n\t\t\t\t: null;\n\t\t\treturn instantiate(type, <ResolveDependencyFn>resolveDependency);\n\t\t};\n\t\tif (options.moduleType === 'host') {\n\t\t\tregistrationConfig = {\n\t\t\t\t...metadata,\n\t\t\t\tsource: { type: HandlerSourceType.Host },\n\t\t\t\tcreateHandler,\n\t\t\t};\n\t\t} else {\n\t\t\tconst remote = RemoteEntriesRegistry.items.get(<string>remoteName) as RemoteBuildInfo;\n\t\t\tregistrationConfig = {\n\t\t\t\t...metadata,\n\t\t\t\tsource: {\n\t\t\t\t\ttype: HandlerSourceType.Remote,\n\t\t\t\t\tpackageName: remote.packageName,\n\t\t\t\t},\n\t\t\t\tcreateHandler,\n\t\t\t};\n\t\t}\n\t\tRequestHandlerRegistryService.register(registrationConfig, type);\n\t});\n}\n\nfunction bootstrapDefaultCrtModule(name: string | undefined, type: Type, options: BootstrapOptions): void {\n\ttry {\n\t\tconst moduleDefinition = getModuleMetadata(type);\n\t\tif (moduleDefinition.viewElements) {\n\t\t\tregisterViewElements(moduleDefinition.viewElements);\n\t\t\tregisterInterfaceDesignerItems(moduleDefinition.viewElements, options?.localizeMetadata);\n\t\t}\n\t\tif (moduleDefinition.designTimeViewElements) {\n\t\t\tregisterDesignTimeViewElements(moduleDefinition.designTimeViewElements);\n\t\t}\n\t\tif (moduleDefinition.requestHandlers) {\n\t\t\tregisterRequestHandlers(moduleDefinition.requestHandlers, options, name);\n\t\t}\n\t\tif (moduleDefinition.validators) {\n\t\t\tregisterValidators(moduleDefinition.validators, options);\n\t\t}\n\t\tif (moduleDefinition.converters) {\n\t\t\tregisterConverters(moduleDefinition.converters, options);\n\t\t}\n\t\tmoduleDefinition.includes?.forEach((t) => {\n\t\t\tbootstrapDefaultCrtModule(name, t, options);\n\t\t\tbootstrapPredefinedModules(name, t, options);\n\t\t});\n\t} catch (error) {\n\t\tconsole.error(error);\n\t}\n}\n\n/**\n * @internal\n */\nfunction bootstrapPredefinedModules(name: string | undefined, type: Type, options: BootstrapOptions): void {\n\tconst modulePrefix = 'module:';\n\tconst metadataKeys: string[] = Reflect.getOwnMetadataKeys(type);\n\tfor (const key of metadataKeys) {\n\t\tif (typeof key === 'string' && key.startsWith(modulePrefix)) {\n\t\t\tconst moduleType = key.substring(modulePrefix.length);\n\t\t\tconst predefinedBootstrapper = Reflect.getOwnMetadata('moduleBootstrapper:' + moduleType, type);\n\t\t\ttry {\n\t\t\t\tpredefinedBootstrapper(name, type, options);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(error);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @internal\n */\nexport function bootstrapCrtModule(type: Type, options: BootstrapOptions & { moduleType: 'host' }): void;\n/**\n * @public\n * @description Function required to bootstrapping elements defined in CrtModules.\n * Call this function as soon as possible during bootstrapping your application.\n * @param type - module type\n * @param options - {@link BootstrapOptions}\n *\n * @example\n * bootstrapCrtModule(AppModule)\n */\nexport function bootstrapCrtModule(remoteName: string, type: Type, options?: BootstrapOptions): void;\n/**\n * @public\n * @deprecated\n */\nexport function bootstrapCrtModule(type: Type, options?: BootstrapOptions): void;\n/**\n * @internal\n */\nexport function bootstrapCrtModule(...args: unknown[]): void {\n\tconst name: string | undefined = typeof args[0] === 'string' ? <string>args.shift() : undefined;\n\tconst type = <Type>args[0];\n\tconst options = <BootstrapOptions>args[1] ?? {};\n\toptions.moduleType ??= 'remote';\n\tif (name) {\n\t\tif (options.moduleType === 'remote') {\n\t\t\tcheckRemoteName(name);\n\t\t} else {\n\t\t\tthrow new Error('Host module cannot have name');\n\t\t}\n\t}\n\tbootstrapDefaultCrtModule(name, type, options);\n\tbootstrapPredefinedModules(name, type, options);\n\tif (options.moduleType === 'remote') {\n\t\tBootstrapNotifier.instance.notify(type);\n\t}\n}\n","import { LocalizableValue } from '../models';\n\n/**\n * @public\n * @description Use this function in decorators to indicate that a value should be localized.\n * Note that the \"localizeMetadata\" bootstrap option should be provided,\n * otherwise the value cannot be localized.\n *\n * @example\n *\n * ### Using 'localize' in decorator\n * ```ts\n * @CrtInterfaceDesignerItem({\n * toolbarConfig: {\n * caption: localize('MyElement.Caption')\n * \t }\n * })\n * class MyElement {}\n * ```\n * ### Passing 'localizeMetadata' bootstrap option\n * ```ts\n * bootstrapCrtModule(MyModule, {\n * localizeMetadata: (key: string) => thirdPartyTranslateService.translate(key)\n * });\n * ```\n */\nexport function localize(key: string): LocalizableValue {\n\treturn new LocalizableValue(key);\n}\n","import { Type } from '../../base-exports';\nimport { HandlerChainServicesRegistry } from '../../internal/services';\nimport { getHandlerChainServiceMetadata, getModuleMetadata } from '../../internal/utils';\n\n/**\n * @internal\n */\nfunction registerHandlerChainServices(types: Type<unknown>[] | undefined): void {\n\ttypes?.forEach((type) => {\n\t\tconst registrationConfig = getHandlerChainServiceMetadata(type);\n\t\tHandlerChainServicesRegistry.register(registrationConfig);\n\t});\n}\n\n/**\n * @internal\n */\nfunction _bootstrapCrtModuleHandlerChainServices(type: Type): void {\n\tconst moduleDefinition = getModuleMetadata(type);\n\tif (moduleDefinition.handlerChainServices) {\n\t\tregisterHandlerChainServices(moduleDefinition.handlerChainServices);\n\t}\n\tmoduleDefinition.includes?.forEach((t) => _bootstrapCrtModuleHandlerChainServices(t));\n}\n\n/**\n * @internal\n */\nexport function bootstrapCrtModuleHandlerChainServices(type: Type): void {\n\t_bootstrapCrtModuleHandlerChainServices(type);\n}\n","import { ɵBaseRequest, ɵNextHandlerAlreadySpecifiedException, ɵRequestHandler } from '@creatio/base';\n\nimport { HandlerChainService } from '../../public/services/handler-chain/handler-chain.service';\n\n/**\n * @public\n * @abstract\n * @classdesc Class for designing request handlers.\n */\nexport abstract class BaseRequestHandler<TRequest = ɵBaseRequest, TResult = unknown>\n\timplements ɵRequestHandler<TRequest, TResult>\n{\n\t/**\n\t * @internal\n\t * @dontChange\n\t */\n\tprivate static readonly _instanceOfKey = 'devkit_BaseRequestHandler';\n\n\tprivate _next?: ɵRequestHandler;\n\n\tprotected handlerChain = HandlerChainService.instance;\n\n\tprotected get next(): ɵRequestHandler | undefined {\n\t\treturn this._next;\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [Symbol.hasInstance](instance: BaseRequestHandler): boolean {\n\t\treturn instance?.constructor?.['_instanceOfKey'] === BaseRequestHandler._instanceOfKey;\n\t}\n\n\t/**\n\t * @abstract\n\t * @description Abstract async method which contains logic to handle request properly.\n\t * @param {TRequest} request - {@link ɵBaseRequest}\n\t */\n\tpublic abstract handle(request: TRequest): Promise<TResult>;\n\n\t/**\n\t * @description Method to set request handler to handler chain.\n\t * @param next - link for next request handler - {@link ɵRequestHandler}\n\t */\n\tpublic setNext(next: ɵRequestHandler): void {\n\t\tif (this._next) {\n\t\t\tthrow new ɵNextHandlerAlreadySpecifiedException();\n\t\t}\n\t\tthis._next = next;\n\t}\n}\n","export abstract class BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic abstract readonly requestType: string;\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n/**\n * @public\n * @classdesc Service to working with Creatio platform features using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class FeatureService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.FeatureService';\n\t/**\n\t * @description Method designed to get state for single feature\n\t * @param {string} code - feature code\n\t * @returns `Promise<boolean>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getFeatureState!: (code: string) => Promise<boolean>;\n\n\t/**\n\t * @description Method designed to get feature states\n\t * @param {string[]} codes - feature codes\n\t * @returns `Promise<boolean[]>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getFeaturesState!: (codes: string[]) => Promise<boolean[]>;\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Service to working rights using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class RightsService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.RightsService';\n\n\t/**\n\t * @description Method to recognize whether user can execute operation\n\t * @param {string} operationName - operation name\n\t * @returns `Promise<boolean>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getCanExecuteOperation!: (operationName: string) => Promise<boolean>;\n\n\t/**\n\t * @description Method to recognize whether user can execute operations\n\t * @param {string[]} operationNames - operation names\n\t * @returns `Promise<boolean[]>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getCanExecuteOperations!: (operationNames: string[]) => Promise<boolean[]>;\n}\n","import { SysSetting, SysSettingValue } from './sys-setting.model';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { BaseResponse } from '../../models';\n\n/**\n * @public\n * @description Response for querying of system settings\n * @extends {BaseResponse}\n * @property {Record<string, SysSetting>} values - system settings values\n */\nexport interface QuerySysSettingsResponse extends BaseResponse {\n\t/**\n\t * @type {Record<string, SysSetting>}\n\t * @description system settings values. {@link SysSetting}\n\t */\n\tvalues: Record<string, SysSetting>;\n\n\t/**\n\t * @type {Array<string>}\n\t * @description not found system settings codes.\n\t */\n\tnotFoundSettings?: Array<string>;\n}\n\n/**\n * @public\n * @description Response for saving system settings\n * @extends {BaseResponse}\n * @property {Record<string, any>} saveResult - saving result\n * @property {number} rowsAffected - Count of affected rows\n */\nexport interface SaveSysSettingsResponse extends BaseResponse {\n\t/**\n\t * @description saving result\n\t */\n\tsaveResult: Record<string, any>;\n\n\t/**\n\t * @description Count of affected rows\n\t */\n\trowsAffected: number;\n\n\t/**\n\t * @internal\n\t * @description\n\t */\n\tnextPrcElReady: boolean;\n}\n\n/**\n * @public\n * @description Response for preload cachable system settings.\n * @extends {BaseResponse}\n * @property {Record<string, SysSetting>} values - system settings values\n */\nexport interface PreloadSysSettingsResponse extends BaseResponse {\n\t/**\n\t * @type {Record<string, SysSetting>}\n\t * @description system settings values. {@link SysSetting}\n\t */\n\tvalues: Record<string, SysSetting>;\n}\n\n/**\n * @public\n * @class SysSettingsService\n * @classdesc Service to working with system settings using handler chain\n * @extends {BaseHandlerChainService}\n */\n// TODO RND-45286 (implement BaseSysSettingsService)\nexport class SysSettingsService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.SysSettingsService';\n\n\t/**\n\t * @description Method to get system settings by codes\n\t * @param {string[]} sysSettingCodes - system settings codes\n\t * @returns `Promise<QuerySysSettingsResponse>` {@link QuerySysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getByCodes!: (sysSettingCodes: string[]) => Promise<QuerySysSettingsResponse>;\n\n\t/**\n\t * @description Method to get system setting by code\n\t * @param {string} sysSettingCode - system settings code\n\t * @returns `Promise<SysSetting>`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic getByCode!: (sysSettingCode: string) => Promise<SysSetting>;\n\n\t/**\n\t * @description Method to update system setting\n\t * @param {SysSettingValue} sysSettingValue - {@link SysSettingValue}\n\t * @param {Boolean} isPersonal - Flag that indicates that sysSetting value is personal.\n\t * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic update!: (sysSettingValue: SysSettingValue, isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;\n\n\t/**\n\t * @description Method to bulk update system settings\n\t * @param {SysSettingValue[]} sysSettingValues - system settings values {@link SysSettingValue}\n\t * @param {Boolean} isPersonal - Flag that indicates that sysSetting values are personal.\n\t * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic updateMany!: (sysSettingValues: SysSettingValue[], isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;\n}\n","import { ɵDataValueType, ɵGuid } from '@creatio/base';\n\n/**\n * @public\n * @class SysSetting\n * @classdesc Class contains info related system setting\n * @property {ɵGuid} id - id of system setting.\n * @property {string} name - name of system setting.\n * @property {string} code - code of system setting.\n * @property {isCacheable} boolean - indicator whether system setting is cacheable\n * @property {any} value - value of system setting\n * @property {string} displayValue - display value of system setting\n * @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}\n */\nexport class SysSetting {\n\t/**\n\t * @description id of system setting\n\t */\n\tpublic id?: ɵGuid;\n\n\t/**\n\t * @description name of system setting\n\t */\n\tpublic name?: string;\n\n\t/**\n\t * @description code of system setting\n\t */\n\tpublic code?: string;\n\n\t/**\n\t * @description indicator whether system setting is cacheable\n\t */\n\tpublic isCacheable?: boolean;\n\n\t/**\n\t * @description value of system setting\n\t */\n\tpublic value?: any;\n\n\t/**\n\t * @description display value of system setting\n\t */\n\tpublic displayValue?: string;\n\n\t/**\n\t * @description system setting {@link ɵDataValueType}\n\t */\n\tpublic dataValueType?: ɵDataValueType;\n}\n\n/**\n * @public\n * @class SysSettingValue\n * @classdesc Shape to describe system setting value\n * @property {string} code - code of system setting\n * @property {any} value - value of system setting\n */\n\nexport class SysSettingValue {\n\t/**\n\t * @description code of system setting.\n\t */\n\tpublic code?: string;\n\n\t/**\n\t * @description value of system setting\n\t */\n\tpublic value?: any;\n}\n","import { SysValues } from './sys-values';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc\n * @class SysValuesService Service to working with system values using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class SysValuesService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.SysValuesService';\n\n\t/**\n\t * @description Method to load system values\n\t * @returns `Promise<SysValues>` {@link SysValues}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic loadSysValues!: () => Promise<SysValues>;\n}\n","import { HttpHeaders } from './http-headers';\nimport { HttpResponse } from './http-response';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Http service to perform Http requests\n * @extends {BaseHandlerChainService}\n */\nexport class HttpClientService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.HttpClientService';\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic get(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic get<T>(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP GET request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic get(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic post(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic post<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP POST request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic post(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic delete(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic delete<T>(\n\t\turl: string,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t\tbody?: unknown | null;\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP DELETE request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic delete(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic put(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic put<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP PUT request.\n\t * @return `Promise<HttpResponse> | void`` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic put(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'arraybuffer';\n\t\t},\n\t): Promise<HttpResponse<ArrayBuffer>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'blob';\n\t\t},\n\t): Promise<HttpResponse<Blob>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType: 'text';\n\t\t},\n\t): Promise<HttpResponse<string>>;\n\n\tpublic patch(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse>;\n\n\tpublic patch<T>(\n\t\turl: string,\n\t\tbody: unknown | null,\n\t\toptions: {\n\t\t\theaders?: HttpHeaders;\n\t\t\tresponseType?: 'json';\n\t\t},\n\t): Promise<HttpResponse<T>>;\n\n\t/**\n\t * @description HTTP PATCH request.\n\t * @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic patch(): Promise<HttpResponse> | void {\n\t\t// the method will be implemented dynamically by the decorator\n\t}\n}\n","import {BaseRequest, ViewModelContext} from '../../../base-exports';\n\n/**\n * @internal\n */\nexport enum SchemaViewMaskRequestAction {\n\tAddTask = 'addTask',\n\tRemoveTask = 'removeTask',\n}\n\n/**\n * @internal\n */\nexport class SchemaViewMaskRequest extends BaseRequest {\n\tpublic override readonly type = 'crt.SchemaViewMaskRequest';\n\n\tconstructor(\n\t\tpublic readonly action: SchemaViewMaskRequestAction,\n\t\tpublic readonly taskName: string,\n\t\tpublic readonly $context: ViewModelContext,\n\t) {\n\t\tsuper();\n\t}\n}\n","import { SchemaViewMaskRequest, SchemaViewMaskRequestAction } from './schema-view-mask.request';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\nimport { MaskSettings } from '../../models';\nimport { HandlerChainService } from '../handler-chain';\nimport {ViewModelContext} from '../../../base-exports';\n\n/**\n * @public\n * @classdesc Service to working with mask using handler chain\n * @extends {BaseHandlerChainService}\n */\nexport class MaskService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.MaskService';\n\n\t/**\n\t * @description Method to show body mask on the page\n\t * @param {MaskSettings} settings - mask settings {@link MaskSettings}\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic showBodyMask!: (settings?: MaskSettings) => Promise<void>;\n\n\t/**\n\t * @description Method to hide body mask\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic hideBodyMask!: () => Promise<void>;\n\n\t/**\n\t * @internal\n\t * @param taskName\n\t * @param context\n\t */\n\tpublic async showMask(taskName: string, context: ViewModelContext): Promise<void> {\n\t\tconst request = new SchemaViewMaskRequest(SchemaViewMaskRequestAction.AddTask, taskName, context);\n\t\tawait HandlerChainService.instance.process(request);\n\t}\n\n\t/**\n\t * @internal\n\t * @param taskName\n\t * @param context\n\t */\n\tpublic async hideMask(taskName: string, context: ViewModelContext): Promise<void> {\n\t\tconst request = new SchemaViewMaskRequest(SchemaViewMaskRequestAction.RemoveTask, taskName, context);\n\t\tawait HandlerChainService.instance.process(request);\n\t}\n}\n","import { BaseModel, DataSchema } from '../../../base-exports';\nimport { DataSourceAttribute } from '../../../base-exports';\nimport { DataSourceCanExecuteOperationPayload, DataSourceCanExecuteOperationResult } from '../../../base-exports';\nimport { DataSourceParameters } from '../../../base-exports';\nimport { DataSourceLoadOptions } from '../../../base-exports';\nimport { DataSourceConfig } from '../../../base-exports';\nimport { JsonArray, JsonObject } from '../../../base-exports';\nimport { DataSourceSaveResult } from '../../../base-exports';\nimport { ImplementUsingHandlerChain } from '../../../internal/decorators/implement-using-handler-chain';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @internal\n */\nexport const _from = Symbol('CreateModelFrom');\n\n/**\n * @public\n */\nexport class Model extends BaseHandlerChainService implements BaseModel<DataSourceLoadOptions> {\n\tprivate static _instance: Model;\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tprivate _crtModel!: any;\n\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.ModelGenerator';\n\n\tprivate constructor(crtModel?: unknown) {\n\t\tsuper();\n\t\tthis._crtModel = crtModel;\n\t}\n\n\tprivate static get instance(): Model {\n\t\tif (!this._instance) {\n\t\t\tthis._instance = new Model();\n\t\t}\n\t\treturn this._instance;\n\t}\n\n\t/**\n\t * @internal\n\t * Gets the model name.\n\t */\n\tpublic get name(): string {\n\t\treturn this._crtModel?.name;\n\t}\n\n\t@ImplementUsingHandlerChain({\n\t\tmethodName: 'generateOne',\n\t})\n\tprivate _create!: (config: DataSourceConfig, name: string) => Promise<Model>;\n\n\t/**\n\t * @internal\n\t */\n\tpublic static [_from](crtModel?: unknown): Model {\n\t\treturn new Model(crtModel);\n\t}\n\n\tpublic static async create(dataSchema: string): Promise<Model> {\n\t\tconst crtModel = await this.instance._create(\n\t\t\t{\n\t\t\t\ttype: 'crt.EntityDataSource',\n\t\t\t\tconfig: {\n\t\t\t\t\tentitySchemaName: dataSchema,\n\t\t\t\t},\n\t\t\t},\n\t\t\t'',\n\t\t);\n\t\treturn new Model(crtModel);\n\t}\n\n\tpublic getSchema(): Promise<DataSchema> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.getSchema());\n\t}\n\n\tpublic load(config?: {\n\t\tattributes?: string[] | DataSourceAttribute[];\n\t\tparameters?: DataSourceParameters;\n\t\tloadOptions?: DataSourceLoadOptions;\n\t}): Promise<JsonArray> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.load(config));\n\t}\n\n\tpublic insert(dto: JsonObject): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.insert(dto));\n\t}\n\n\tpublic update(dto: JsonObject, parameters: DataSourceParameters): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.update(dto, parameters));\n\t}\n\n\tpublic copy(primaryColumnValue: string, data: JsonObject = {}): Promise<JsonObject> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.copy(primaryColumnValue, data));\n\t}\n\n\tpublic create(data: JsonObject = {}): Promise<JsonObject> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.create(data));\n\t}\n\n\tpublic delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.delete(parameters));\n\t}\n\n\tpublic canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.canSave(params));\n\t}\n\n\tpublic canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult> {\n\t\treturn this._crtModel._getAsyncResult(this._crtModel.canDelete(params));\n\t}\n}\n","import { ImplementUsingHandlerChain } from '../../../internal/decorators';\nimport { BaseHandlerChainService } from '../../../internal/services/base-handler-chain.service';\n\n/**\n * @public\n * @classdesc Service to handling a way of tasks execution in Creatio plaform\n * @extends {BaseHandlerChainService}\n */\nexport class CrtZoneService extends BaseHandlerChainService {\n\t/**\n\t * @internal\n\t */\n\tpublic readonly requestType = 'crt.ZoneService';\n\t/**\n\t * @description Method designed to run task outside of Creatio zone\n\t * @param {Function} callback - task which should be executed outside of tracking CrtZone\n\t * @returns `unknown`\n\t */\n\t@ImplementUsingHandlerChain()\n\tpublic runOutside!: (callback: () => unknown) => unknown;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AggregationFunction","AggregationType","AggregationEvalType","DatePartType","FunctionType","OrderDirection","global","generateGuid","NextHandlerAlreadySpecifiedException","BaseRequest"],"mappings":";;;;;;AAKA;;AAEG;AACG,SAAU,iBAAiB,CAAC,mBAAwC,EAAA;AACzE,IAAA,QAAQ,mBAAmB;QAC1B,KAAKA,oBAAmB,CAAC,KAAK;YAC7B,OAAOC,gBAAe,CAAC,KAAK,CAAC;QAC9B,KAAKD,oBAAmB,CAAC,GAAG;YAC3B,OAAOC,gBAAe,CAAC,GAAG,CAAC;QAC5B,KAAKD,oBAAmB,CAAC,GAAG;YAC3B,OAAOC,gBAAe,CAAC,GAAG,CAAC;QAC5B,KAAKD,oBAAmB,CAAC,GAAG;YAC3B,OAAOC,gBAAe,CAAC,GAAG,CAAC;QAC5B,KAAKD,oBAAmB,CAAC,GAAG;YAC3B,OAAOC,gBAAe,CAAC,GAAG,CAAC;QAC5B,KAAKD,oBAAmB,CAAC,MAAM;YAC9B,OAAOC,gBAAe,CAAC,MAAM,CAAC;AAC/B,QAAA;YACC,OAAOA,gBAAe,CAAC,IAAI,CAAC;AAC7B,KAAA;AACF,CAAC;AAED;;AAEG;AACG,SAAU,qBAAqB,CAAC,eAAgC,EAAA;AACrE,IAAA,QAAQ,eAAe;QACtB,KAAKA,gBAAe,CAAC,KAAK;YACzB,OAAOD,oBAAmB,CAAC,KAAK,CAAC;QAClC,KAAKC,gBAAe,CAAC,GAAG;YACvB,OAAOD,oBAAmB,CAAC,GAAG,CAAC;QAChC,KAAKC,gBAAe,CAAC,GAAG;YACvB,OAAOD,oBAAmB,CAAC,GAAG,CAAC;QAChC,KAAKC,gBAAe,CAAC,GAAG;YACvB,OAAOD,oBAAmB,CAAC,GAAG,CAAC;QAChC,K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