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MAmC7G,MAAqH4J,IACrHA,EAAwBO,UApCqFnK,MAoC7G,UAAwJ,CAACoK,SAVzLR","names":["MyProfileRepository","constructor","httpClient","authService","generalHelper","this","environment","saveProfile","editProfileForm","post","apiUrl","getUserFacialValidationImage","userId","get","generateValidationCode","params","captcha","headers","HttpHeaders","set","sendImage","checkValidationCode","deleteProfile","token","delete","checkToken","eventId","checkCustomerRegisterWithCpf","doc","findByDoc","i0","factory","MyProfileService","myProfileRepository","BehaviorSubject","defineModeComissioner","getComissioner","comissionerSubject","asObservable","comissioner","next","nodeEventEmitterMethods","eventTargetMethods","jqueryMethods","target","eventName","options","resultSelector","isFunction","undefined","fromEvent","pipe","mapOneOrManyArgs","add","remove","addEventListener","removeEventListener","isEventTarget","map","methodName","handler","addListener","removeListener","isNodeStyleEventEmitter","toCommonHandlerRegistry","on","off","isJQueryStyleEventEmitter","isArrayLike","mergeMap","subTarget","innerFrom","TypeError","Observable","subscriber","args","length","animationFrameProvider","schedule","callback","request","requestAnimationFrame","cancel","cancelAnimationFrame","delegate","handle","timestamp","Subscription","animationFrameScheduler","AsyncScheduler","flush","action","_active","flushId","_scheduled","actions","error","shift","execute","state","delay","id","unsubscribe","AsyncAction","scheduler","work","super","requestAsyncId","push","recycleAsyncId","_a","isUserTimingAPISupported","performance","now","mark","measure","clearMarks","clearMeasures","isPerformanceObservableSupported","PerformanceObserver","prototype","isNodeJSEnv","Object","toString","call","process","marksMap","marksObserver","getTimeNow","Date","clear","markName","start","obs","list","getEntries","find","f","name","disconnect","observe","entryTypes","end","markNameToCompare","startTime","duration","entryType","entry","getEntriesByName","pop","e","NGX_SKELETON_LOADER_CONFIG","InjectionToken","NgxSkeletonLoaderComponent","config","appearance","animation","theme","loadingText","count","ariaLabel","items","ngOnInit","validateInputValues","test","isDevMode","console","allowedAnimations","indexOf","String","join","ngOnChanges","changes","key","isFirstChange","previousValue","currentValue","ngAfterViewInit","ngOnDestroy","ɵfac","ɵcmp","selectors","decls","directives","i1","styles","NgxSkeletonLoaderModule","static","ngModule","providers","provide","useValue","ɵmod","ɵinj","CommonModule"],"sourceRoot":"webpack:///","sources":["./src/app/repositories/my-profile.repository.ts","./src/app/services/my-profile.service.ts","./node_modules/rxjs/dist/esm/internal/observable/fromEvent.js","./node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js","./node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js","./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js","./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js","./node_modules/perf-marks/dist/es2015/is-user-timing-api-supported.js","./node_modules/perf-marks/dist/es2015/is-performance-observable-supported.js","./node_modules/perf-marks/dist/es2015/is-nodejs-env.js","./node_modules/perf-marks/dist/es2015/marks.js","./node_modules/ngx-skeleton-loader/fesm2015/ngx-skeleton-loader.mjs"],"sourcesContent":["import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { environment } from 'src/environments/environment';\nimport { AuthService } from '../services/auth.service';\nimport { CustomerModel } from '../models/customer.model';\nimport { GeneralHelper } from '../helpers/general.helper';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class MyProfileRepository {\n\n private apiUrl: string = environment.apiUrl;\n\n constructor(\n private httpClient: HttpClient,\n private authService: AuthService,\n private generalHelper: GeneralHelper\n ) { }\n\n public saveProfile(editProfileForm: CustomerModel): Observable {\n return this.httpClient.post(`${this.apiUrl}/customer/updateCad`, editProfileForm);\n }\n\n public getUserFacialValidationImage(userId: string){\n return this.httpClient.get(`${this.apiUrl}/customer/images/latest/${userId}`);\n }\n\n public generateValidationCode(params: any, captcha:string): Observable {\n let headers = new HttpHeaders();\n headers = headers.set('token-recaptcha', captcha);\n\n return this.httpClient.post(`${this.apiUrl}/customer/create/generatecode-v1`, params, {headers: headers});\n }\n\n public sendImage(params: any): Observable {\n return this.httpClient.post(`${this.apiUrl}/customer/updateImage`, params);\n }\n\n public checkValidationCode(params: any) {\n return this.httpClient.post(`${this.apiUrl}/customer/updateCad`, params);\n }\n\n public deleteProfile(token: string) {\n let headers = new HttpHeaders();\n headers = headers.set('token-recaptcha', token);\n return this.httpClient.delete(`${this.apiUrl}/customer`, {headers: headers });\n }\n\n public checkToken(token: string, eventId?: string) {\n if (eventId != null) {\n return this.httpClient.get(`${this.apiUrl}/customer/checkToken/${token}?eventId=${eventId}`);\n } else {\n return this.httpClient.get(`${this.apiUrl}/customer/checkToken/${token}`);\n }\n }\n\n public checkCustomerRegisterWithCpf(doc: any) {\n return this.httpClient.get(`${this.apiUrl}/customer/listByFilter/public?doc=${doc}`);\n }\n\n public findByDoc(doc: any) {\n return this.httpClient.get(`${this.apiUrl}/customer/${doc}`);\n }\n\n\n\n}\n","import { formatDate } from '@angular/common';\nimport { Injectable } from '@angular/core';\nimport { map, Observable, BehaviorSubject } from 'rxjs';\nimport { MyProfileRepository } from '../repositories/my-profile.repository';\nimport { CustomerModel } from '../models/customer.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class MyProfileService {\n\n private comissionerSubject: BehaviorSubject = new BehaviorSubject(false); // comissioner subject para mudar modo comissário\n\n constructor(private myProfileRepository: MyProfileRepository) {\n this.defineModeComissioner(false);\n }\n\n public saveProfile(editProfileForm: CustomerModel): Observable {\n return this.myProfileRepository.saveProfile(editProfileForm);\n }\n\n generateValidationCode(params: any, captcha: string) {\n return this.myProfileRepository.generateValidationCode(params, captcha);\n }\n\n sendImage(params: any) {\n return this.myProfileRepository.sendImage(params);\n }\n\n checkValidationCode(params: any) {\n return this.myProfileRepository.checkValidationCode(params);\n }\n\n public getComissioner() {\n return this.comissionerSubject.asObservable();\n }\n\n public getUserFacialValidationImage(userId: string){\n return this.myProfileRepository.getUserFacialValidationImage(userId);\n }\n\n\n public defineModeComissioner(comissioner: boolean) {\n this.comissionerSubject.next(comissioner);\n }\n\n\n deleteProfile(token: string) {\n return this.myProfileRepository.deleteProfile(token);\n }\n\n checkToken(token: string, eventId?: string) {\n return this.myProfileRepository.checkToken(token, eventId);\n }\n\n checkCustomerRegisterWithCpf(doc: any) {\n return this.myProfileRepository.checkCustomerRegisterWithCpf(doc);\n }\n\n findByDoc(doc: any) {\n return this.myProfileRepository.findByDoc(doc);\n }\n\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n const [add, remove] = isEventTarget(target)\n ? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options))\n :\n isNodeStyleEventEmitter(target)\n ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n : isJQueryStyleEventEmitter(target)\n ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n : [];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable((subscriber) => {\n const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n add(handler);\n return () => remove(handler);\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return (methodName) => (handler) => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n","import { Subscription } from '../Subscription';\nexport const animationFrameProvider = {\n schedule(callback) {\n let request = requestAnimationFrame;\n let cancel = cancelAnimationFrame;\n const { delegate } = animationFrameProvider;\n if (delegate) {\n request = delegate.requestAnimationFrame;\n cancel = delegate.cancelAnimationFrame;\n }\n const handle = request((timestamp) => {\n cancel = undefined;\n callback(timestamp);\n });\n return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle));\n },\n requestAnimationFrame(...args) {\n const { delegate } = animationFrameProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args);\n },\n cancelAnimationFrame(...args) {\n const { delegate } = animationFrameProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args);\n },\n delegate: undefined,\n};\n","import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\nexport const animationFrame = animationFrameScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class AnimationFrameScheduler extends AsyncScheduler {\n flush(action) {\n this._active = true;\n const flushId = this._scheduled;\n this._scheduled = undefined;\n const { actions } = this;\n let error;\n action = action || actions.shift();\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions[0]) && action.id === flushId && actions.shift());\n this._active = false;\n if (error) {\n while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { animationFrameProvider } from './animationFrameProvider';\nexport class AnimationFrameAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n var _a;\n if (delay != null ? delay > 0 : this.delay > 0) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n const { actions } = scheduler;\n if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n animationFrameProvider.cancelAnimationFrame(id);\n scheduler._scheduled = undefined;\n }\n return undefined;\n }\n}\n","/**\n * Boolean with the result of the check if User Timing API\n * is supported for the current browser/NodeJS version\n *\n * @returns boolean\n *\n */\nconst isUserTimingAPISupported = typeof performance !== 'undefined' &&\n typeof performance.now !== 'undefined' &&\n typeof performance.mark === 'function' &&\n typeof performance.measure === 'function' &&\n (typeof performance.clearMarks === 'function' || typeof performance.clearMeasures === 'function');\nexport { isUserTimingAPISupported };\n","/**\n * Boolean with the result of the check if PerformanceObservable\n * is supported for the current browser/NodeJS version\n *\n * @returns boolean\n *\n */\nconst isPerformanceObservableSupported = typeof PerformanceObserver !== 'undefined' &&\n // eslint-disable-next-line compat/compat\n typeof PerformanceObserver.prototype !== 'undefined' &&\n // eslint-disable-next-line compat/compat\n typeof PerformanceObserver.prototype.constructor === 'function';\nexport { isPerformanceObservableSupported };\n","/**\n * Boolean with the result of the check if package\n * is running on the browser or in a NodeJS environment\n *\n * @returns boolean\n *\n */\nconst isNodeJSEnv = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n// Interesting fact:\n// Some bundlers are resolving `process`, so it needs to check for process.release.name\n// since it's a NodeJS only environment value.\n// More details in https://nodejs.org/api/process.html#process_process_release\nexport { isNodeJSEnv };\n","import { isUserTimingAPISupported } from './is-user-timing-api-supported';\nimport { isPerformanceObservableSupported } from './is-performance-observable-supported';\nimport { isNodeJSEnv } from './is-nodejs-env';\n// Map() is not used in order to decrease the bundle\nlet marksMap = {};\nlet marksObserver = {};\n/**\n * Get the current time based on User Timing API or Date\n *\n * @returns number\n *\n */\nconst getTimeNow = () => (isUserTimingAPISupported ? performance.now() : Date.now());\n/**\n * Clear marks and measure of performance event\n *\n * @param markName - Performance marker to be checked\n *\n * @returns void\n *\n */\nconst clear = (markName) => {\n marksMap[markName] = undefined;\n // Removes PerformanceObserver references from memory\n if (!!marksObserver[markName]) {\n marksObserver[markName] = undefined;\n }\n if (!isUserTimingAPISupported) {\n return;\n }\n // Some versions of NodeJS doesn't support this method\n if (!isNodeJSEnv) {\n performance.clearMeasures(markName);\n }\n performance.clearMarks(markName);\n};\n/**\n * Start performance measure of event\n *\n * @param markName - Performance marker to be started\n *\n * @returns number\n *\n */\nconst start = (markName) => {\n if (isUserTimingAPISupported) {\n if (isNodeJSEnv && isPerformanceObservableSupported) {\n // eslint-disable-next-line compat/compat\n const obs = new PerformanceObserver(list => {\n marksObserver[markName] = list.getEntries().find(f => f.name === markName);\n obs.disconnect();\n });\n obs.observe({ entryTypes: ['measure'] });\n }\n performance.mark(markName);\n }\n marksMap[markName] = getTimeNow();\n};\n/**\n * Finishes performance measure of event and\n * clear marks and measure if applicable\n *\n * @param markName - Performance marker to be checked\n * @param markNameToCompare - Optional mark to compare to\n *\n * @returns PerfMarksPerformanceEntry\n *\n */\nconst end = (markName, markNameToCompare) => {\n try {\n const startTime = marksMap[markName];\n if (!isUserTimingAPISupported) {\n return startTime\n ? { duration: getTimeNow() - startTime, startTime, entryType: 'measure', name: markName }\n : {};\n }\n // If there's no User Timing mark to be compared with,\n // the package will create one to be used for better comparison\n if (!markNameToCompare) {\n performance.mark(`${markName}-end`);\n }\n performance.measure(markName, markName, markNameToCompare || `${markName}-end`);\n if (isNodeJSEnv) {\n if (!!marksObserver[markName]) {\n return marksObserver[markName];\n }\n return startTime\n ? { duration: getTimeNow() - startTime, startTime, entryType: 'measure', name: markName }\n : {};\n }\n const entry = performance.getEntriesByName(markName).pop();\n return entry || {};\n }\n catch (e) {\n // If previous mark was missing for some reason, this will throw.\n // This could only happen if something in event loop crashed\n // in an unexpected place earlier.\n // Don't pile on with more errors.\n return {};\n }\n finally {\n // Clear marks immediately to avoid growing buffer.\n clear(markName);\n // Clear marks used for comparison in case of it's value was passed\n // If the mark to compare is not passed, it should remove the one we create with `-end` suffix\n clear(markNameToCompare || `${markName}-end`);\n }\n};\n/**\n * Clear all marks and measures of performance event\n *\n * @returns void\n *\n */\nconst clearAll = () => {\n marksMap = {};\n marksObserver = {};\n if (!isUserTimingAPISupported) {\n return;\n }\n // Some versions of NodeJS doesn't support this method\n if (!isNodeJSEnv) {\n performance.clearMeasures();\n }\n performance.clearMarks();\n};\nexport { start, end, clear, clearAll, isUserTimingAPISupported, isPerformanceObservableSupported };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, isDevMode, Component, ChangeDetectionStrategy, Inject, Optional, Input, NgModule } from '@angular/core';\nimport { start, end } from 'perf-marks/marks';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\nconst NGX_SKELETON_LOADER_CONFIG = new InjectionToken('ngx-skeleton-loader.config');\n\nclass NgxSkeletonLoaderComponent {\n constructor(config) {\n const { appearance = 'line', animation = 'progress', theme = null, loadingText = 'Loading...', count = 1, ariaLabel = 'loading', } = config || {};\n this.appearance = appearance;\n this.animation = animation;\n this.theme = theme;\n this.loadingText = loadingText;\n this.count = count;\n this.items = [];\n this.ariaLabel = ariaLabel;\n }\n ngOnInit() {\n start('NgxSkeletonLoader:Rendered');\n start('NgxSkeletonLoader:Loaded');\n this.validateInputValues();\n }\n validateInputValues() {\n // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)\n if (!/^\\d+$/.test(`${this.count}`)) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(`\\`NgxSkeletonLoaderComponent\\` need to receive 'count' a numeric value. Forcing default to \"1\".`);\n }\n this.count = 1;\n }\n this.items.length = this.count;\n const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];\n if (allowedAnimations.indexOf(String(this.animation)) === -1) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(`\\`NgxSkeletonLoaderComponent\\` need to receive 'animation' as: ${allowedAnimations.join(', ')}. Forcing default to \"progress\".`);\n }\n this.animation = 'progress';\n }\n if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(`\\`NgxSkeletonLoaderComponent\\` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\".`);\n }\n this.appearance = '';\n }\n }\n ngOnChanges(changes) {\n // Avoiding multiple calls for the same input in case there's no changes in the fields\n // Checking if the fields that require validation are available and if they were changed\n // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.\n if (['count', 'animation', 'appearance'].find(key => changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue))) {\n return;\n }\n this.validateInputValues();\n }\n ngAfterViewInit() {\n end('NgxSkeletonLoader:Rendered');\n }\n ngOnDestroy() {\n end('NgxSkeletonLoader:Loaded');\n }\n}\n/** @nocollapse */ /** @nocollapse */ NgxSkeletonLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderComponent, deps: [{ token: NGX_SKELETON_LOADER_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });\n/** @nocollapse */ /** @nocollapse */ NgxSkeletonLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgxSkeletonLoaderComponent, selector: \"ngx-skeleton-loader\", inputs: { count: \"count\", loadingText: \"loadingText\", appearance: \"appearance\", animation: \"animation\", ariaLabel: \"ariaLabel\", theme: \"theme\" }, usesOnChanges: true, ngImport: i0, template: \"\\n\\n\", styles: [\".loader{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{transform:translate(0)}.loader.progress:after,.loader.progress:before,.loader.progress-dark:after,.loader.progress-dark:before{box-sizing:border-box}.loader.progress:before,.loader.progress-dark:before{-webkit-animation:progress 2s ease-in-out infinite;animation:progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:\\\"\\\"}.loader.progress:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation-delay:.5s}@media (prefers-reduced-motion: reduce){.loader.pulse,.loader.progress-dark,.loader.progress{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@keyframes progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}\\n\"], directives: [{ type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ngx-skeleton-loader', changeDetection: ChangeDetectionStrategy.OnPush, template: \"\\n\\n\", styles: [\".loader{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{transform:translate(0)}.loader.progress:after,.loader.progress:before,.loader.progress-dark:after,.loader.progress-dark:before{box-sizing:border-box}.loader.progress:before,.loader.progress-dark:before{-webkit-animation:progress 2s ease-in-out infinite;animation:progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:\\\"\\\"}.loader.progress:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation-delay:.5s}@media (prefers-reduced-motion: reduce){.loader.pulse,.loader.progress-dark,.loader.progress{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@keyframes progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [NGX_SKELETON_LOADER_CONFIG]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { count: [{\n type: Input\n }], loadingText: [{\n type: Input\n }], appearance: [{\n type: Input\n }], animation: [{\n type: Input\n }], ariaLabel: [{\n type: Input\n }], theme: [{\n type: Input\n }] } });\n\nclass NgxSkeletonLoaderModule {\n static forRoot(config) {\n return {\n ngModule: NgxSkeletonLoaderModule,\n providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],\n };\n }\n}\n/** @nocollapse */ /** @nocollapse */ NgxSkeletonLoaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n/** @nocollapse */ /** @nocollapse */ NgxSkeletonLoaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderModule, declarations: [NgxSkeletonLoaderComponent], imports: [CommonModule], exports: [NgxSkeletonLoaderComponent] });\n/** @nocollapse */ /** @nocollapse */ NgxSkeletonLoaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderModule, imports: [[CommonModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgxSkeletonLoaderModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [NgxSkeletonLoaderComponent],\n imports: [CommonModule],\n exports: [NgxSkeletonLoaderComponent],\n }]\n }] });\n\n/*\n * Public API Surface of ngx-skeleton-loader\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NGX_SKELETON_LOADER_CONFIG, NgxSkeletonLoaderComponent, NgxSkeletonLoaderModule };\n"]}