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A,CAC4yB,gCAD5yBA,CAC4yB,kCAD5yBA,CAC4yB,iCAD5yBA,MAAE,0BAAFA,MAAE,GAAFA,MAAE,yCAAFA,MAAE,GAAFA,MAAE,wCACknD,gBAAiF+H,MAAOC,kBAkDhzD,MAAMC,EACFjE,eAAee,GACX,MAAO,CACHd,SAAUgE,EACV/D,UAAW,CAAC,CAAEO,QAASH,EAAmB4D,SAAUnD,GAAU,CAAC,IAEvE,EAEJkD,EAAevF,UAAI,0BAAwFuF,EAAc,EACzHA,EAAe9D,UA5DqFnE,MAAE,MA4DMiI,IAC5GA,EAAe7D,UA7DqFpE,MAAE,UA6DgC,CAACmI,KAAcC,MAAcA","names":["ActiveStudyService","constructor","http","appService","this","getActiveStudies","labsiteCode","get","recruitmentUrl","getActiveStudiesFromBlob","filename","summaryFileName","isPublicWebSiteSyncronizerEnabled","AppConstants","publicFileUrl","getActiveStudyDetailFromBlob","folderPath","canApplyForStudy","volunteerCode","studyId","_ActiveStudyService","_angular_core__WEBPACK_IMPORTED_MODULE_2__","factory","Volunteer","VolunteerAddress","VolunteerPhones","VolunteerExcludedTechnique","i0","CardColumnHeaderComponent","_CardColumnHeaderComponent","selectors","SplitPipe","transform","text","by","index","split","_SplitPipe","pure","Ng2TelInput","el","platformId","ng2TelInputOptions","hasError","EventEmitter","ng2TelOutput","countryChange","intlTelInputObject","ngOnInit","isPlatformBrowser","Object","assign","utilsScript","getUtilsScript","ngTelInput","window","intlTelInput","nativeElement","addEventListener","emit","getSelectedCountryData","onBlur","isInputValid","telOutput","getNumber","isValidNumber","setCountry","country","options","ɵfac","t","ɵngcc0","PLATFORM_ID","ɵdir","type","hostBindings","rf","ctx","inputs","outputs","ctorParameters","ElementRef","String","decorators","Inject","args","propDecorators","Input","Output","HostListener","Ng2TelInputModule","static","ngModule","providers","ɵmod","ɵinj","ctx_r0","UI_SWITCH_OPTIONS","InjectionToken","UI_SWITCH_CONTROL_VALUE_ACCESSOR","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","UiSwitchComponent","multi","config","cdr","change","changeEvent","valueChange","onTouchedCallback","v","onChangeCallback","size","color","switchOffColor","switchColor","defaultBgColor","defaultBoColor","checkedLabel","uncheckedLabel","checkedTextColor","uncheckedTextColor","checked","_checked","disabled","_disabled","reverse","_reverse","loading","_loading","getColor","flag","onClick","event","markForCheck","onToggle","beforeChange","_beforeChange","subscribe","confirm","writeValue","obj","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","ngOnDestroy","unsubscribe","ɵcmp","ngContentSelectors","decls","i1","encapsulation","UiSwitchModule","useValue","CommonModule","FormsModule"],"sourceRoot":"webpack:///","sources":["./projects/vr-public-website/src/app/features/active-studies/active-studies/active-studies.service.ts","./projects/vr-public-website/src/app/features/volunteer/models/volunteer.model.ts","./projects/vr-public-website/src/app/shared/cardColumnHeader/cardColumnHeader.component.html","./projects/vr-public-website/src/app/shared/cardColumnHeader/cardColumnHeader.component.ts","./projects/vr-public-website/src/app/shared/split/split.pipe.ts","./node_modules/ng2-tel-input/__ivy_ngcc__/esm2015/ng2-tel-input.js","./node_modules/ngx-ui-switch/fesm2020/ngx-ui-switch.mjs"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { AppSettingsService } from '../../../core/core.module';\r\nimport { AppConstants } from '../../../shared/constants/app-constants';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ActiveStudyService {\r\n constructor(public http: HttpClient, public appService: AppSettingsService) { }\r\n\r\n public getActiveStudies(labsiteCode: string): Observable {\r\n return this.http.get(this.appService.recruitmentUrl + 'studyInformation/activeStudies/' + labsiteCode);\r\n }\r\n\r\n public getActiveStudiesFromBlob(labsiteCode: string, filename: string): Observable {\r\n let summaryFileName: string = filename;\r\n if(this.appService.isPublicWebSiteSyncronizerEnabled){\r\n summaryFileName = AppConstants.Blob.ActiveStudiesSummary;\r\n }\r\n return this.http.get(this.appService.publicFileUrl + 'Files/download/' + labsiteCode + '/' + filename + '/' + summaryFileName);\r\n }\r\n\r\n public getActiveStudyDetailFromBlob(folderPath: string): Observable {\r\n return this.http.get(this.appService.publicFileUrl + 'Files/download/' + folderPath);\r\n }\r\n\r\n public canApplyForStudy(volunteerCode: string, studyId: string): Observable {\r\n return this.http.get(this.appService.recruitmentUrl + 'studyVolunteers/CanApplyForStudy/' + studyId + '/' + volunteerCode);\r\n }\r\n}\r\n","import { VolunteerFace } from './volunteerFace.model';\r\nimport { VolunteerBody } from './volunteerBody.model';\r\nimport { VolunteerHair } from './volunteerHair.model';\r\nimport { VolunteerFeminine } from './volunteerFeminine.model';\r\nimport { VolunteerFinance, VolunteerOnlineForm } from './volunteerFinance.model';\r\nimport { VolunteerHandsAndFeet } from './volunteerHandsAndFeet.model';\r\nimport { VolunteerMedical } from './volunteerMedical.model';\r\nimport { VolunteerSolar } from './volunteerSolar.model';\r\nimport { VolunteerTeeth } from './volunteerTeeth.model';\r\n\r\nexport class Volunteer {\r\n Code!: string;\r\n FirstName!: string;\r\n LastName!: string;\r\n BirthName!: string;\r\n DateOfBirth!: string;\r\n Email!: string;\r\n AdditionalInformation!: string;\r\n LabSiteCode!: string;\r\n VolunteerAddress!: VolunteerAddress;\r\n VolunteerPhones!: VolunteerPhones[];\r\n GenderEnum!: string;\r\n VolunteerId!: string;\r\n VolunteerHairId!: string;\r\n VolunteerFaceId!: string;\r\n AddressId!: string;\r\n VolunteerStatusEnum!: string;\r\n HasWebsiteAccount!: boolean;\r\n LegalStatusEnum!: string;\r\n EducationDegreeEnum!: string;\r\n HealthInsuranceEnum!: string;\r\n NationalUniqueIDNumber!: string;\r\n BirthPlace!: string;\r\n LabSitePrefixCode!: string;\r\n DataState!: string;\r\n\r\n Body!: VolunteerBody;\r\n\r\n VolunteerBodyId!: string;\r\n VolunteerFeminineId!: string;\r\n Face!: VolunteerFace;\r\n\r\n VolunteerHandsAndFeetId!: string;\r\n VolunteerTeethId!: string;\r\n VolunteerSolarId!: string;\r\n VolunteerMedicalId!: string;\r\n VolunteerFinancelId!: string;\r\n VolunteerExcludedTechniques!: VolunteerExcludedTechnique[];\r\n LegacyCode!: string;\r\n TodayDateFromClientTimeZone!: string;\r\n Hair!: VolunteerHair;\r\n HandsAndFeet!: VolunteerHandsAndFeet;\r\n Feminine!: VolunteerFeminine;\r\n Teeth!: VolunteerTeeth;\r\n Solar!: VolunteerSolar;\r\n Medical!: VolunteerMedical;\r\n Finance!: VolunteerFinance;\r\n VolunteerOnlineForms!: VolunteerOnlineForm[];\r\n CreatedOn!: string;\r\n}\r\n\r\nexport class VolunteerAddress {\r\n AddressId!: string;\r\n HouseNumber!: string;\r\n FlatNumber!: string;\r\n Address!: string;\r\n City!: string;\r\n State!: string;\r\n ZipCode!: string;\r\n PostCity!: string;\r\n}\r\n\r\nexport class VolunteerPhones {\r\n VolunteerPhoneId!: string;\r\n VolunteerId!: string;\r\n PhoneNumber!: string;\r\n PhoneCode!: string;\r\n PhoneTypeEnum!: string;\r\n}\r\n\r\nexport class VolunteerSearchParams {\r\n constructor() {\r\n this.LastName = '';\r\n this.FirstName = '';\r\n this.Code = '';\r\n this.Email = '';\r\n this.LabSiteCode = '';\r\n }\r\n\r\n LastName: string;\r\n FirstName: string;\r\n Code: string;\r\n Email: string;\r\n LabSiteCode: string;\r\n}\r\n\r\nexport class VolunteerStatus {\r\n VolunteerStatusEnum!: string;\r\n}\r\n\r\nexport class VolunteerExcludedTechnique {\r\n ExcludedTechniqueEnum!: string;\r\n VolunteerId!: string;\r\n VolunteerExcludedTechniqueId!: string;\r\n DataState!: string;\r\n}\r\n\r\nexport interface VolunteerBasicInfoUpdateResponseDto {\r\n email: string;\r\n code: string;\r\n duplicateVolunteerFound: boolean;\r\n volunteerNotFound: boolean;\r\n hasError: boolean;\r\n errorMessage: string;\r\n}","
\r\n{{item.label | translate}} \r\n
","import { Component, Input } from '@angular/core';\r\nimport { CardHeader } from '../../main/models/cardHeader';\r\n@Component({\r\n selector: 'anms-card-column-header',\r\n templateUrl: './cardColumnHeader.component.html',\r\n styleUrls: ['./cardColumnHeader.component.scss']\r\n})\r\nexport class CardColumnHeaderComponent {\r\n @Input() public cardHeaders: CardHeader[] = [];\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({name: 'Split'})\r\n\r\nexport class SplitPipe implements PipeTransform { \r\n\r\n transform(text: string, by: string, index: number = 1) {\r\n const arr = text.split(by);\r\n return arr[index];\r\n }\r\n}","import { EventEmitter, Directive, ElementRef, Inject, PLATFORM_ID, Input, Output, HostListener, NgModule } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\n/**\n * @fileoverview added by tsickle\n * Generated from: src/ng2-tel-input.ts\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/** @type {?} */\nimport * as ɵngcc0 from '@angular/core';\nconst defaultUtilScript = 'https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.1/js/utils.js';\nclass Ng2TelInput {\n /**\n * @param {?} el\n * @param {?} platformId\n */\n constructor(el, platformId) {\n this.el = el;\n this.platformId = platformId;\n this.ng2TelInputOptions = {};\n this.hasError = new EventEmitter();\n this.ng2TelOutput = new EventEmitter();\n this.countryChange = new EventEmitter();\n this.intlTelInputObject = new EventEmitter();\n }\n /**\n * @return {?}\n */\n ngOnInit() {\n if (isPlatformBrowser(this.platformId)) {\n this.ng2TelInputOptions = Object.assign({}, this.ng2TelInputOptions, { utilsScript: this.getUtilsScript(this.ng2TelInputOptions) });\n this.ngTelInput = window.intlTelInput(this.el.nativeElement, Object.assign({}, this.ng2TelInputOptions));\n this.el.nativeElement.addEventListener(\"countrychange\", (/**\n * @return {?}\n */\n () => {\n this.countryChange.emit(this.ngTelInput.getSelectedCountryData());\n }));\n this.intlTelInputObject.emit(this.ngTelInput);\n }\n }\n /**\n * @return {?}\n */\n onBlur() {\n /** @type {?} */\n let isInputValid = this.isInputValid();\n if (isInputValid) {\n /** @type {?} */\n let telOutput = this.ngTelInput.getNumber();\n this.hasError.emit(isInputValid);\n this.ng2TelOutput.emit(telOutput);\n }\n else {\n this.hasError.emit(isInputValid);\n }\n }\n /**\n * @return {?}\n */\n isInputValid() {\n return this.ngTelInput.isValidNumber();\n }\n /**\n * @param {?} country\n * @return {?}\n */\n setCountry(country) {\n this.ngTelInput.setCountry(country);\n }\n /**\n * @param {?} options\n * @return {?}\n */\n getUtilsScript(options) {\n return options.utilsScript || defaultUtilScript;\n }\n}\nNg2TelInput.ɵfac = function Ng2TelInput_Factory(t) { return new (t || Ng2TelInput)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(PLATFORM_ID)); };\nNg2TelInput.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: Ng2TelInput, selectors: [[\"\", \"ng2TelInput\", \"\"]], hostBindings: function Ng2TelInput_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"blur\", function Ng2TelInput_blur_HostBindingHandler() { return ctx.onBlur(); });\n } }, inputs: { ng2TelInputOptions: \"ng2TelInputOptions\" }, outputs: { hasError: \"hasError\", ng2TelOutput: \"ng2TelOutput\", countryChange: \"countryChange\", intlTelInputObject: \"intlTelInputObject\" } });\n/** @nocollapse */\nNg2TelInput.ctorParameters = () => [\n { type: ElementRef },\n { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }\n];\nNg2TelInput.propDecorators = {\n ng2TelInputOptions: [{ type: Input, args: ['ng2TelInputOptions',] }],\n hasError: [{ type: Output, args: ['hasError',] }],\n ng2TelOutput: [{ type: Output, args: ['ng2TelOutput',] }],\n countryChange: [{ type: Output, args: ['countryChange',] }],\n intlTelInputObject: [{ type: Output, args: ['intlTelInputObject',] }],\n onBlur: [{ type: HostListener, args: ['blur',] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(Ng2TelInput, [{\n type: Directive,\n args: [{\n selector: '[ng2TelInput]'\n }]\n }], function () { return [{ type: ɵngcc0.ElementRef }, { type: String, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }]; }, { ng2TelInputOptions: [{\n type: Input,\n args: ['ng2TelInputOptions']\n }], hasError: [{\n type: Output,\n args: ['hasError']\n }], ng2TelOutput: [{\n type: Output,\n args: ['ng2TelOutput']\n }], countryChange: [{\n type: Output,\n args: ['countryChange']\n }], intlTelInputObject: [{\n type: Output,\n args: ['intlTelInputObject']\n }], \n /**\n * @return {?}\n */\n onBlur: [{\n type: HostListener,\n args: ['blur']\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * Generated from: src/ng2-tel-input.module.ts\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass Ng2TelInputModule {\n /**\n * @return {?}\n */\n static forRoot() {\n return {\n ngModule: Ng2TelInputModule,\n providers: []\n };\n }\n}\nNg2TelInputModule.ɵfac = function Ng2TelInputModule_Factory(t) { return new (t || Ng2TelInputModule)(); };\nNg2TelInputModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: Ng2TelInputModule });\nNg2TelInputModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(Ng2TelInputModule, [{\n type: NgModule,\n args: [{\n declarations: [Ng2TelInput],\n exports: [Ng2TelInput]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(Ng2TelInputModule, { declarations: [Ng2TelInput], exports: [Ng2TelInput] }); })();\n\nexport { Ng2TelInput, Ng2TelInputModule };\n\n","import * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Component, Inject, Optional, Input, Output, HostListener, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\nconst UI_SWITCH_OPTIONS = new InjectionToken('UI_SWITCH_OPTIONS');\n\nconst UI_SWITCH_CONTROL_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UiSwitchComponent),\n multi: true,\n};\nclass UiSwitchComponent {\n constructor(config = {}, cdr) {\n this.cdr = cdr;\n /**\n * Emits changed value\n */\n // eslint-disable-next-line @angular-eslint/no-output-native\n this.change = new EventEmitter();\n /**\n * Emits DOM event\n */\n this.changeEvent = new EventEmitter();\n /**\n * Emits changed value\n */\n this.valueChange = new EventEmitter();\n this.onTouchedCallback = (v) => { };\n this.onChangeCallback = (v) => { };\n this.size = (config && config.size) || 'medium';\n this.color = config && config.color;\n this.switchOffColor = config && config.switchOffColor;\n this.switchColor = config && config.switchColor;\n this.defaultBgColor = config && config.defaultBgColor;\n this.defaultBoColor = config && config.defaultBoColor;\n this.checkedLabel = config && config.checkedLabel;\n this.uncheckedLabel = config && config.uncheckedLabel;\n this.checkedTextColor = config && config.checkedTextColor;\n this.uncheckedTextColor = config && config.uncheckedTextColor;\n }\n set checked(v) {\n this._checked = v !== false;\n }\n get checked() {\n return this._checked;\n }\n set disabled(v) {\n this._disabled = v !== false;\n }\n get disabled() {\n return this._disabled;\n }\n set reverse(v) {\n this._reverse = v !== false;\n }\n get reverse() {\n return this._reverse;\n }\n set loading(v) {\n this._loading = v !== false;\n }\n get loading() {\n return this._loading;\n }\n getColor(flag = '') {\n if (flag === 'borderColor') {\n return this.defaultBoColor;\n }\n if (flag === 'switchColor') {\n if (this.reverse) {\n return !this.checked ? this.switchColor : this.switchOffColor || this.switchColor;\n }\n return this.checked ? this.switchColor : this.switchOffColor || this.switchColor;\n }\n if (flag === 'checkedTextColor') {\n return this.reverse ? this.uncheckedTextColor : this.checkedTextColor;\n }\n if (flag === 'uncheckedTextColor') {\n return this.reverse ? this.checkedTextColor : this.uncheckedTextColor;\n }\n if (this.reverse) {\n return !this.checked ? this.color : this.defaultBgColor;\n }\n return this.checked ? this.color : this.defaultBgColor;\n }\n onClick(event) {\n if (this.disabled) {\n return;\n }\n this.checked = !this.checked;\n // Component events\n this.change.emit(this.checked);\n this.valueChange.emit(this.checked);\n this.changeEvent.emit(event);\n // value accessor callbacks\n this.onChangeCallback(this.checked);\n this.onTouchedCallback(this.checked);\n this.cdr.markForCheck();\n }\n onToggle(event) {\n if (this.disabled) {\n return;\n }\n if (this.beforeChange) {\n this._beforeChange = this.beforeChange.subscribe((confirm) => {\n if (confirm) {\n this.onClick(event);\n }\n });\n }\n else {\n this.onClick(event);\n }\n }\n writeValue(obj) {\n if (obj !== this.checked) {\n this.checked = !!obj;\n }\n this.onChangeCallback(this.checked);\n if (this.cdr) {\n this.cdr.markForCheck();\n }\n }\n registerOnChange(fn) {\n this.onChangeCallback = fn;\n }\n registerOnTouched(fn) {\n this.onTouchedCallback = fn;\n }\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n }\n ngOnDestroy() {\n if (this._beforeChange) {\n this._beforeChange.unsubscribe();\n }\n }\n}\nUiSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchComponent, deps: [{ token: UI_SWITCH_OPTIONS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nUiSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.2.0\", type: UiSwitchComponent, selector: \"ui-switch\", inputs: { size: \"size\", color: \"color\", switchOffColor: \"switchOffColor\", switchColor: \"switchColor\", defaultBgColor: \"defaultBgColor\", defaultBoColor: \"defaultBoColor\", checkedLabel: \"checkedLabel\", uncheckedLabel: \"uncheckedLabel\", checkedTextColor: \"checkedTextColor\", uncheckedTextColor: \"uncheckedTextColor\", beforeChange: \"beforeChange\", checked: \"checked\", disabled: \"disabled\", reverse: \"reverse\", loading: \"loading\" }, outputs: { change: \"change\", changeEvent: \"changeEvent\", valueChange: \"valueChange\" }, host: { listeners: { \"click\": \"onToggle($event)\" } }, providers: [UI_SWITCH_CONTROL_VALUE_ACCESSOR], ngImport: i0, template: \"\\n \\n \\n \\n \\n\\n\", directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ui-switch', providers: [UI_SWITCH_CONTROL_VALUE_ACCESSOR], template: \"\\n \\n \\n \\n \\n\\n\" }]\n }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [UI_SWITCH_OPTIONS]\n }, {\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { size: [{\n type: Input\n }], color: [{\n type: Input\n }], switchOffColor: [{\n type: Input\n }], switchColor: [{\n type: Input\n }], defaultBgColor: [{\n type: Input\n }], defaultBoColor: [{\n type: Input\n }], checkedLabel: [{\n type: Input\n }], uncheckedLabel: [{\n type: Input\n }], checkedTextColor: [{\n type: Input\n }], uncheckedTextColor: [{\n type: Input\n }], beforeChange: [{\n type: Input\n }], checked: [{\n type: Input\n }], disabled: [{\n type: Input\n }], reverse: [{\n type: Input\n }], loading: [{\n type: Input\n }], change: [{\n type: Output\n }], changeEvent: [{\n type: Output\n }], valueChange: [{\n type: Output\n }], onToggle: [{\n type: HostListener,\n args: ['click', ['$event']]\n }] } });\n\nclass UiSwitchModule {\n static forRoot(config) {\n return {\n ngModule: UiSwitchModule,\n providers: [{ provide: UI_SWITCH_OPTIONS, useValue: config || {} }],\n };\n }\n}\nUiSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nUiSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchModule, declarations: [UiSwitchComponent], imports: [CommonModule, FormsModule], exports: [FormsModule, UiSwitchComponent] });\nUiSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchModule, imports: [[CommonModule, FormsModule], FormsModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.2.0\", ngImport: i0, type: UiSwitchModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [UiSwitchComponent],\n imports: [CommonModule, FormsModule],\n exports: [FormsModule, UiSwitchComponent],\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { UiSwitchComponent, UiSwitchModule };\n"],"x_google_ignoreList":[5,6]}