\r\n\r\n `,\r\n})\r\nexport class PrettyJsonComponent {\r\n @Input() public obj: any;\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {PrettyJsonComponent} from './prettyjson.component';\r\nimport {PrettyJsonPipe} from './prettyjson.pipe';\r\nimport {SafeJsonPipe} from './json.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n PrettyJsonComponent,\r\n PrettyJsonPipe,\r\n SafeJsonPipe\r\n ],\r\n exports: [\r\n PrettyJsonComponent,\r\n PrettyJsonPipe,\r\n SafeJsonPipe\r\n ]\r\n})\r\nexport class PrettyJsonModule {\r\n\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\nimport {serializer as circularSerializer} from './safe.util';\r\n\r\n@Pipe({\r\n name: 'prettyjson',\r\n pure: false\r\n})\r\nexport class PrettyJsonPipe implements PipeTransform {\r\n public transform(obj: any, spaces = 2): string {\r\n return this._syntaxHighlight(obj, circularSerializer(), spaces);\r\n }\r\n\r\n private _syntaxHighlight(json: any, serializer: any, spacing: number): string {\r\n if (json === undefined) {\r\n return '';\r\n }\r\n // Credits to the accepted answer here\r\n // http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript\r\n if (typeof json !== 'string') {\r\n json = JSON.stringify(json, serializer, spacing);\r\n }\r\n json = json.replace(/&/g, '&').replace(//g, '>');\r\n return json.replace(/(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g, (match: any) => {\r\n let cls = 'number';\r\n if (/^\"/.test(match)) {\r\n if (/:$/.test(match)) {\r\n cls = 'key';\r\n } else {\r\n cls = 'string';\r\n }\r\n } else if (/true|false/.test(match)) {\r\n cls = 'boolean';\r\n } else if (/null/.test(match)) {\r\n cls = 'null';\r\n }\r\n return `${match}`;\r\n });\r\n }\r\n}\r\n","// Taken from github.com/isaacs/json-stringify-safe\r\nexport function serializer() {\r\n const stack: any[] = [];\r\n const keys: string[] = [];\r\n\r\n const cycleReplacer = function(key: string, value: any) {\r\n if (stack[0] === value) {\r\n return '[Circular ~]';\r\n }\r\n return '[Circular ~.' + keys.slice(0, stack.indexOf(value)).join('.') + ']';\r\n };\r\n\r\n return function(this: any, key: string, value: any) {\r\n if (stack.length > 0) {\r\n const thisPos = stack.indexOf(this);\r\n // tslint:disable-next-line:no-bitwise\r\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\r\n // tslint:disable-next-line:no-bitwise\r\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\r\n // tslint:disable-next-line:no-bitwise\r\n if (~stack.indexOf(value)) {\r\n value = cycleReplacer.call(this, key, value);\r\n }\r\n } else {\r\n stack.push(value);\r\n }\r\n\r\n return value;\r\n };\r\n}\r\n","import { Component, Input, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, Output, EventEmitter } from '@angular/core';\r\nimport { tz } from 'moment-timezone';\r\n\r\n@Component({\r\n // tslint:disable-next-line:component-selector\r\n selector: 'ng2-timezone-picker-v1',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n templateUrl: './timezoneselector.component.html',\r\n})\r\n\r\nexport class TimezoneSelectorComponent implements OnInit {\r\n\r\n @Input() timezone: string;\r\n @Output() timezoneValueChange: EventEmitter
{{stepItem.title}}
\r\n