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IAAxBo+B,EAAgBp+B,KAAa,CACtD,IAAIq8B,KAAYmC,EACZtC,EAAoB1B,EAAEgE,EAAanC,KACrCH,EAAoB9+B,EAAEi/B,GAAYmC,EAAYnC,IAGhD,GAAGoC,EAAS,IAAIxyB,EAASwyB,EAAQvC,EAClC,CAEA,IADGqC,GAA4BA,EAA2B1hC,GACrDrG,EAAIqmC,EAASpsC,OAAQ+F,IACzB6nC,EAAUxB,EAASrmC,GAChB0lC,EAAoB1B,EAAE4D,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOnC,EAAoBU,EAAE3wB,EAAO,EAGjC0yB,EAAqBC,KAAiC,2BAAIA,KAAiC,4BAAK,GACpGD,EAAmBtsC,QAAQisC,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBpsC,KAAO+rC,EAAqBO,KAAK,KAAMF,EAAmBpsC,KAAKssC,KAAKF,QC7CvFzC,EAAoBU,OAAE9tC,EAAW,CAAC,MAAM,IAAOotC,EAAoB,gDACnE,IAAI4C,EAAsB5C,EAAoBU,OAAE9tC,EAAW,CAAC,MAAM,IAAOotC,EAAoB,4BAC7F4C,EAAsB5C,EAAoBU,EAAEkC","sources":["webpack://claims-reports/webpack/runtime/chunk loaded","webpack://claims-reports/./src/components/fai.tsx","webpack://claims-reports/./src/components/footer.tsx","webpack://claims-reports/./src/components/icon-check-radio.tsx","webpack://claims-reports/./src/components/select-list.tsx","webpack://claims-reports/./src/components/self-labeled-text-input.tsx","webpack://claims-reports/./src/components/spinner.tsx","webpack://claims-reports/./src/components/transform.tsx","webpack://claims-reports/./src/data/common.ts","webpack://claims-reports/./src/data/form.ts","webpack://claims-reports/./src/data/formatters.ts","webpack://claims-reports/./src/data/model.ts","webpack://claims-reports/./src/data/user.ts","webpack://claims-reports/./src/data/validators.ts","webpack://claims-reports/./src/i18n/en.ts","webpack://claims-reports/./src/i18n/es.ts","webpack://claims-reports/./src/i18n/pt.ts","webpack://claims-reports/./src/i18n/translation.tsx","webpack://claims-reports/./src/services/api.ts","webpack://claims-reports/./src/services/state.ts","webpack://claims-reports/./src/services/ui.ts","webpack://claims-reports/./src/status-check.tsx","webpack://claims-reports/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://claims-reports/webpack/bootstrap","webpack://claims-reports/webpack/runtime/amd define","webpack://claims-reports/webpack/runtime/amd options","webpack://claims-reports/webpack/runtime/compat get default export","webpack://claims-reports/webpack/runtime/define property getters","webpack://claims-reports/webpack/runtime/global","webpack://claims-reports/webpack/runtime/hasOwnProperty shorthand","webpack://claims-reports/webpack/runtime/make namespace object","webpack://claims-reports/webpack/runtime/node module decorator","webpack://claims-reports/webpack/runtime/runtimeId","webpack://claims-reports/webpack/runtime/jsonp chunk loading","webpack://claims-reports/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import * as React from \"react\";\n\ninterface FAIProps {\n\tname: string;\n\ttype?: 'regular' | 'solid' | 'light';\n\tsize?: 15 | 18 | 24 | 26 | 36 | 48;\n\twidth?: string;\n\tcolor?: 'light' | 'dark';\n\tflip?: 'horizontal' | 'vertical';\n\trotate?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;\n\tinactive?: boolean;\n\tonClick?: (event: React.MouseEvent) => void;\n}\n\n\nexport const FAI: React.StatelessComponent = props => {\n\n\tlet typeClass = 'fa';\n\n\tswitch (props.type) {\n\t\tcase 'light':\n\t\t\ttypeClass = 'fal';\n\t\t\tbreak;\n\t\tcase 'regular':\n\t\t\ttypeClass = 'far';\n\t\t\tbreak;\n\t\tcase 'solid':\n\t\tdefault:\n\t\t\ttypeClass = 'fas';\n\t}\n\n\tlet classNames = typeClass + \" fa-\" + props.name;\n\tlet style = {} as React.CSSProperties;\n\tclassNames += props.flip ? \"fa-flip-\" + props.flip : \"\";\n\tclassNames += props.rotate ? \" fa-rotate-\" + props.rotate : \"\";\n\tclassNames += props.inactive ? \" fa-inactive\" : \"\";\n\tprops.width ? style.width = props.width : \"\";\n\tprops.size ? style.fontSize = props.size : \"\";\n\tprops.color ? style.color = props.color : \"\";\n\n\treturn ;\n};\n\n\n","import { observer } from 'mobx-react';\nimport * as moment from 'moment';\nimport * as React from \"react\";\nimport { Col, Row } from \"reactstrap\";\n\n@observer\nexport class Footer extends React.Component {\n\n\trender() {\n\t\tlet year = moment().year();\n\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\tCopyright © {year} LexisNexis Risk Solutions\n\t\t\t\t\t\t\t\tAbout Us\n\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\tTerms and Conditions\n\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\tPrivacy Policy\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\"Relx\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t)\n\t}\n}\n","import { action, computed, observable } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as React from \"react\";\nimport { Form, FormValue } from '../data/form';\nimport { FAI } from './fai';\n\ninterface IconControlProps {\n\tname?: string;\n\tform?: Form;\n\tsize?: 15 | 18 | 24 | 36 | 48;\n\tdisabled?: boolean;\n\tonChange?: (newValue: boolean) => void;\n\tinitialSelected?: boolean;\n\tisSelected?: () => boolean;\n}\n\ninterface IconCheckboxProps extends IconControlProps {\n\ttrueValue?: any;\n\tfalseValue?: any;\n}\n\ninterface IconRadioBoxProps extends IconControlProps {\n\tvalue: any;\n}\n\nabstract class IconControl extends React.Component {\n\n\t@observable\n\tprotected selected: boolean;\n\n\tconstructor(props: T) {\n\t\tsuper(props);\n\t}\n\n\t@computed\n\tprotected get isControlled() {\n\t\treturn this.props.form && this.props.name;\n\t}\n\n\tprotected abstract get formValue(): FormValue;\n\n\tprotected abstract set formValue(v: FormValue);\n\n}\n\n\n\n@observer\nexport class IconCheckbox extends IconControl {\n\n\t@computed\n\tprotected get formValue(): boolean {\n\t\treturn this.props.form.isSelected(this.props.name);\n\t}\n\n\tprotected set formValue(v: boolean) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\tconstructor(props: IconCheckboxProps) {\n\t\tsuper(props);\n\n\t\tif (this.props.initialSelected) {\n\t\t\tthis.selected = true;\n\t\t}\n\t}\n\n\t@action.bound\n\tprivate toggle() {\n\n\t\tif (this.isControlled) {\n\t\t\tthis.formValue = !this.formValue;\n\n\t\t\tif (this.props.onChange) {\n\t\t\t\tthis.props.onChange(this.formValue);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.selected = !this.selected\n\n\t\t\tif (this.props.onChange) {\n\t\t\t\tthis.props.onChange(this.selected);\n\t\t\t}\n\t\t}\n\t}\n\n\n\trender() {\n\t\tlet checked = this.isControlled ? this.formValue : (this.props.isSelected ? this.props.isSelected() : this.selected);\n\n\t\tlet icon = checked ? 'check-square' : 'square';\n\t\tlet value = checked ? this.props.trueValue : this.props.falseValue;\n\t\tlet handler = this.props.disabled ? undefined : this.toggle;\n\t\tlet size = this.props.size ? this.props.size : 18;\n\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t\t{value ? {value} : ''}\n\t\t\t\t{this.props.children ? : ''}\n\t\t\t
\n\t\t);\n\t}\n}\n\n@observer\nexport class IconRadioBox extends IconControl {\n\n\t@computed\n\tprotected get formValue(): FormValue {\n\t\treturn this.props.form.getValue(this.props.name);\n\t}\n\n\tprotected set formValue(v: FormValue) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\tconstructor(props: IconRadioBoxProps) {\n\t\tsuper(props);\n\n\t\tif (this.props.initialSelected) {\n\t\t\tthis.selected = true;\n\t\t}\n\n\t\tif (this.isControlled) {\n\n\t\t\tthis.props.form.getValues().observe(changes => {\n\t\t\t\tif (changes.name === this.props.name) {\n\t\t\t\t\tswitch (changes.type) {\n\t\t\t\t\t\tcase 'add':\n\t\t\t\t\t\tcase 'update':\n\t\t\t\t\t\tcase 'delete':\n\t\t\t\t\t\t\tthis.selected = this.matches;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\t@computed\n\tprivate get matches() {\n\t\treturn this.formValue == this.props.value;\n\t}\n\n\t@action.bound\n\tprivate select() {\n\t\tthis.selected = true;\n\n\t\tif (this.isControlled) {\n\t\t\tthis.formValue = this.props.value;\n\t\t}\n\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(true);\n\t\t}\n\t}\n\n\trender() {\n\t\tlet checked = this.isControlled ? this.matches : this.selected;\n\t\tlet icon = this.selected ? 'dot-circle' : 'circle';\n\t\tlet handler = this.props.disabled ? undefined : this.select;\n\t\tlet size = this.props.size ? this.props.size : 18;\n\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t\t{this.props.value ? {this.props.value} : ''}\n\t\t\t\t{this.props.children ? : ''}\n\t\t\t
\n\t\t);\n\t}\n}","import { action, computed, observable, ObservableMap, observe } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as React from \"react\";\nimport { Input, InputGroup, InputGroupAddon } from 'reactstrap';\nimport { FAI } from './fai';\nimport { LabelProvider } from './transform';\n\nexport interface ChecklistStrings {\n\tnoneSelected: string;\n\tshowOnly: string;\n\tsomeNotShown: string;\n}\n\ninterface SelectListProps {\n\tvalues?: OrderedSelectableValues;\n\tvalues2?: () => string[];\n\tlabelProvider: LabelProvider;\n\tid?: string;\n\tclassName?: string;\n}\n\ninterface AbstractListProps extends SelectListProps {\n\ttype: 'SINGLE' | 'MULTI';\n\tstrings: ChecklistStrings;\n\ttextFilter?: boolean;\n\tcontrolRenderer?: (selected: boolean) => JSX.Element;\n\tdisplayFilter?: (property: string) => boolean;\n\tdisableFilter?: (property: string) => boolean;\n\tonSelectionChanged?: (selected: string[]) => void;\n}\n\n@observer\nexport class CheckList extends React.Component {\n\n\tprivate DEFAULT_SINGLE_CONTROL = (selected: boolean) => {\n\t\tif (selected) {\n\t\t\treturn ;\n\t\t}\n\n\t\treturn ;\n\n\t}\n\n\tprivate DEFAULT_MULTI_CONTROL = (selected: boolean) => {\n\t\tif (selected) {\n\t\t\treturn ;\n\t\t}\n\n\t\treturn ;\n\n\t}\n\n\tconstructor(props: AbstractListProps) {\n\t\tsuper(props);\n\t}\n\n\t@observable\n\tprivate filterText: string = '';\n\n\t@action.bound\n\ttoggleSelection(value: string) {\n\t\tif (this.props.type == 'MULTI') {\n\t\t\tlet currentSelection = this.props.values.isSelected(value);\n\t\t\tthis.props.values.setSelected(value, !currentSelection);\n\t\t}\n\n\t\tif (this.props.type == 'SINGLE') {\n\t\t\tthis.props.values.setSelection([]);\n\t\t\tthis.props.values.setSelected(value, true);\n\t\t}\n\n\t\tif (this.props.onSelectionChanged) {\n\t\t\tthis.props.onSelectionChanged(this.props.values.selected);\n\t\t}\n\t}\n\n\t@action.bound\n\tfilterTextChange(event: React.ChangeEvent) {\n\t\tthis.filterText = event.currentTarget.value;\n\t}\n\n\t@action.bound\n\tremoveTextFilter() {\n\t\tthis.filterText = '';\n\t}\n\n\t@computed\n\tget textFilter() {\n\n\t\tif (!this.props.textFilter || this.filterText.length == 0) {\n\t\t\treturn (value: string) => true;\n\t\t}\n\n\t\treturn (value: string) => value.toLowerCase().indexOf(this.filterText.toLowerCase()) >= 0;\n\t}\n\n\trenderItem(value: string, level: number, disabled: boolean, controlRenderer: (selected: boolean) => JSX.Element) {\n\n\t\tlet label = this.props.labelProvider(value);\n\t\tlet selected = this.props.values.isSelected(value);\n\t\tlet itemClass = selected\n\t\t\t? 'selected item'\n\t\t\t: (disabled == true)\n\t\t\t\t? 'disabled unselected item'\n\t\t\t\t: 'unselected item';\n\n\t\tlet icon = controlRenderer(selected);\n\n\t\tif (level == 1) {\n\t\t\treturn
  • {label}
  • ;\n\t\t}\n\n\t\tif (level == -1) {\n\t\t\treturn
  • ;\n\t\t}\n\n\t\tif (level == 2) {\n\t\t\treturn
  • '' : (event) => this.toggleSelection(value)}>\n\t\t\t\t{icon}\n\t\t\t\t{label}\n\t\t\t
  • ;\n\t\t}\n\n\t\t// level==0\n\t\treturn
  • '' : (event) => this.toggleSelection(value)}>\n\t\t\t{icon}\n\t\t\t{label}\n\t\t
  • ;\n\t}\n\n\trender() {\n\t\t// there must be a reference to this.props.values.selected here so that mobx rerenders this on change\n\t\tlet selectCount = this.props.values.selected.length;\n\n\t\tlet displayFilter = this.props.displayFilter || ((p: string) => true);\n\t\tlet disableFilter = this.props.disableFilter || ((p: string) => false);\n\n\t\tlet textInput = this.props.textFilter\n\t\t\t? \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t this.removeTextFilter()} />\n\t\t\t\t\n\t\t\t\n\t\t\t: '';\n\n\t\tlet controlRenderer = this.props.controlRenderer ||\n\t\t\t(this.props.type == 'SINGLE'\n\t\t\t\t? this.DEFAULT_SINGLE_CONTROL\n\t\t\t\t: this.DEFAULT_MULTI_CONTROL);\n\n\t\tconst items = this.props.values.all.filter(displayFilter).filter(this.textFilter);\n\n\t\tlet listItems: JSX.Element[] = [];\n\n\t\tlet level = 0;\n\n\t\titems.forEach(v => {\n\t\t\tif (v.startsWith('*')) {\n\t\t\t\tlevel = 1;\n\t\t\t} else {\n\t\t\t\tif (v.startsWith('/')) {\n\t\t\t\t\tlevel = -1;\n\t\t\t\t} else {\n\t\t\t\t\tif (level == 1) {\n\t\t\t\t\t\tlevel = 2;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (level == -1) {\n\t\t\t\t\t\t\tlevel = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlistItems.push(this.renderItem(v, level, disableFilter(v), controlRenderer));\n\t\t});\n\n\t\tlet hiddenCount = this.props.values.all.length - items.length;\n\n\t\tlet hiddenWarning = hiddenCount > 0 && this.props.strings.someNotShown\n\t\t\t?
    {this.props.strings.someNotShown}: {hiddenCount}
    \n\t\t\t: '';\n\n\t\treturn (\n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t{textInput}\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t
      {listItems}
    \n\t\t\t\t\t{hiddenWarning}\n\t\t\t\t
    \n\t\t\t
    \n\t\t);\n\t}\n}\n\nexport class CloseableTag extends React.Component<{ onClose?: () => void }, {}> {\n\trender() {\n\t\treturn
    \n\t\t\t
    {this.props.children}
    \n\t\t\t this.props.onClose()} />\n\t\t
    ;\n\t}\n}\n\ninterface TagGroupProps extends SelectListProps {\n\tonRemove?: (value: string) => void;\n\tnoneSelectedText?: string;\n\tshowLabelsOnly?: boolean;\n\tshowValueOnly?: boolean;\n}\n\n@observer\nexport class TagGroup extends React.Component {\n\n\t@action.bound\n\tremoveTag(value: string) {\n\t\tif (this.props.onRemove) {\n\t\t\tthis.props.onRemove(value);\n\t\t}\n\t}\n\n\trender() {\n\t\tlet tags: JSX.Element[] = undefined;\n\n\t\tif (this.props.values) {\n\t\t\ttags = this.props.values.selected.map(v => {\n\t\t\t\t// let display = this.props.labelProvider\n\t\t\t\t// \t? (this.props.showLabelsOnly\n\t\t\t\t// \t\t? this.props.labelProvider(v)\n\t\t\t\t// \t\t: this.props.showValueOnly ? v : `${v} - ${this.props.labelProvider(v)}`)\n\t\t\t\t// \t: v;\n\n\t\t\t\tlet display = undefined;\n\n\t\t\t\tif (this.props.labelProvider) {\n\t\t\t\t\tlet label = this.props.labelProvider(v)\n\t\t\t\t\tif (label && label.trim().length > 0) {\n\t\t\t\t\t\tif (this.props.showLabelsOnly) {\n\t\t\t\t\t\t\tdisplay = label;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (this.props.showValueOnly) {\n\t\t\t\t\t\t\t\tdisplay = v;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdisplay = `${v} - ${label}`\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdisplay = v;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdisplay = v;\n\t\t\t\t}\n\t\t\t\treturn this.removeTag(v)}>{display}\n\t\t\t});\n\t\t}\n\n\t\tif (this.props.values2) {\n\t\t\tlet values = this.props.values2();\n\t\t\ttags = values ? values.map(v => {\n\t\t\t\tlet display = this.props.labelProvider\n\t\t\t\t\t? (this.props.showLabelsOnly\n\t\t\t\t\t\t? this.props.labelProvider(v)\n\t\t\t\t\t\t: this.props.showValueOnly ? v : `${v} - ${this.props.labelProvider(v)}`)\n\t\t\t\t\t: v;\n\t\t\t\treturn this.removeTag(v)}>{display}\n\t\t\t}) : [];\n\t\t}\n\n\t\tif (tags.length == 0) {\n\t\t\ttags.push(
    {this.props.noneSelectedText || ' '}
    );\n\t\t}\n\n\t\treturn
    \n\t\t\t{tags}\n\t\t
    ;\n\t}\n}\n\ninterface MultiSelectProps extends AbstractListProps, TagGroupProps {\n\ttags?: boolean;\n}\n\n@observer\nexport class MultiSelect extends React.Component {\n\n\t@action.bound\n\tremoveTag(value: string) {\n\t\tthis.props.values.setSelected(value, false);\n\t}\n\n\trender() {\n\t\tlet tagFilter = this.props.tags\n\t\t\t? \n\t\t\t: '';\n\n\t\treturn
    \n\t\t\t{tagFilter}\n\t\t\t\n\t\t
    ;\n\t}\n}\n\nexport class OrderedSelectableValues {\n\n\t@observable\n\tprivate allValues: string[];\n\n\tprivate selectMap = new ObservableMap();\n\n\tprivate lastSwap = 0;\n\n\tconstructor(allValues: string[], initialSelection?: string[]) {\n\t\tthis.allValues = allValues;\n\t\tthis.setSelection(initialSelection);\n\t}\n\n\t@computed\n\tget selected(): string[] {\n\t\treturn this.allValues ? this.allValues.filter(v => this.selectMap.get(v)) : [];\n\t}\n\n\t@computed\n\tget all(): string[] {\n\t\treturn this.allValues ? this.allValues : [];\n\t}\n\n\t@action.bound\n\treplace(values: string[]) {\n\t\tthis.allValues = values;\n\t}\n\n\n\t@action.bound\n\tisSelected(value: string) {\n\t\treturn this.selectMap.get(value);\n\t}\n\n\t@action.bound\n\tsetSelection(newSelection?: string[]) {\n\t\tthis.selectMap.clear();\n\n\t\tif (newSelection) {\n\t\t\tnewSelection.forEach(v => this.selectMap.set(v, true));\n\t\t}\n\t}\n\n\t@action.bound\n\tsetSelected(value: string, selected: boolean) {\n\t\tthis.selectMap.set(value, selected);\n\t}\n\n\tprivate doSwap(v1: string, v2: string, values: string[]) {\n\t\tlet i1: number = values.indexOf(v1);\n\t\tlet i2: number = values.indexOf(v2);\n\n\t\tlet temp: string = values[i1]\n\t\tvalues[i1] = values[i2]\n\t\tvalues[i2] = temp;\n\t}\n\n\t@action.bound\n\tswap(value1: string, value2: string, thresholdMillis = 0) {\n\n\t\tlet now = new Date().getTime();\n\n\t\tif (this.lastSwap < (now - thresholdMillis)) {\n\t\t\tthis.doSwap(value1, value2, this.allValues);\n\t\t\tthis.lastSwap = now;\n\t\t}\n\t}\n}\n\n@observer\nexport class HeaderTagGroup extends React.Component {\n\n\trender() {\n\t\tconst tags = this.props.values.selected.map(v => {\n\t\t\treturn
    {this.props.labelProvider(v)}
    \n\t\t});\n\n\t\tif (tags.length == 0) {\n\t\t\ttags.push({this.props.noneSelectedText || ''});\n\t\t}\n\n\t\treturn
    \n\t\t\t{tags}\n\t\t
    ;\n\t}\n}","import { action, computed, observable } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as moment from 'moment';\nimport * as React from \"react\";\nimport DatePicker from 'react-datepicker';\nimport 'react-datepicker/dist/react-datepicker.css';\nimport { Button, Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from 'reactstrap';\nimport { Form, FormValue } from '../data/form';\nimport { ValidationResult, ValidationResultLevel } from '../data/validators';\nimport { IntlComponent } from '../i18n/translation';\nimport { FAI } from './fai';\nimport { LabelProvider } from './transform';\nimport { IconCheckbox } from './icon-check-radio';\nimport { OrderedSelectableValues, TagGroup } from './select-list';\n\nexport type DropdownValueSource = (s?: string) => string[];\n\nexport type LabelDecoration = 'required' | 'recommended' | undefined;\n\nexport interface SelfLabeledInputProps {\n\tname: string;\n\tlabel: string;\n\tlabelDecoration?: LabelDecoration;\n\tlabelProvider?: LabelProvider;\n\tform: Form;\n\tsize?: 'sm' | 'md' | 'lg';\n\tleft?: JSX.Element;\n\thideErrors?: boolean;\n\tdarkOutline?: boolean;\n\tdisabled?: boolean;\n\tmaxLength?: number;\n\tonChange?: (newValue: FormValue) => void;\n\tonBlur?: () => void;\n\tonFocus?: () => void;\n}\n\nexport interface SelfLabeledTextProps extends SelfLabeledInputProps {\n\ttype?: string;\n\ticon?: JSX.Element;\n\tonEnter?: (value?: string) => void;\n\tdatePicker?: { [key: string]: any };\n}\n\nexport interface SelfLabeledSelectProps extends SelfLabeledInputProps {\n\tvalueSource: DropdownValueSource;\n\tshowLabelsOnly?: boolean;\n\tright?: boolean;\n}\n\nexport interface SelfLabeledSingleSelectProps extends SelfLabeledSelectProps {\n\tshowAllOnEmpty?: boolean;\n\tonEmpty?: string;\n\tminSuggestChars?: number;\n}\n\nexport interface SelfLabeledMultiSelectProps extends SelfLabeledSelectProps {\n\ttags?: boolean;\n}\n\n@observer\nclass FieldMessageDisplay extends IntlComponent<{ results: ValidationResult[] }> {\n\trender() {\n\t\tlet content: JSX.Element;\n\n\t\tif (this.props.results) {\n\t\t\tif (this.props.results.length == 1) {\n\t\t\t\tlet r = this.props.results[0];\n\t\t\t\tif (r.parameters) {\n\t\t\t\t\tif (r.code == 'DLF') { //special handling for DL formatting error message\n\t\t\t\t\t\tvar lis = r.parameters.map((re, i) => {\n\t\t\t\t\t\t\tlet item = re;\n\t\t\t\t\t\t\treturn
  • {item}
  • \n\t\t\t\t\t\t})\n\t\t\t\t\t\tcontent = {this.lang.errorMessage[r.code]}
      {lis}
    \n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlet param = r.parameters[0];\n\t\t\t\t\t\tcontent = {this.lang.errorMessage[r.code].replace(/{value}/, param)};\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcontent = {this.lang.errorMessage[r.code]};\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlet lvl;\n\t\t\t\tvar lis = this.props.results.map((r, i) => {\n\t\t\t\t\tlvl = r.level;\n\t\t\t\t\tif (r.parameters) {\n\t\t\t\t\t\tlet param = r.parameters[0];\n\t\t\t\t\t\tlet item = this.lang.errorMessage[r.code].replace(/{value}/, param);\n\t\t\t\t\t\treturn
  • {item}
  • \n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn
  • {this.lang.errorMessage[r.code]}
  • \n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tcontent =
      {lis}
    \n\t\t\t}\n\t\t}\n\n\t\treturn
    {content}
    \n\t}\n}\n\nconst getMaxMessageLevel = (results: ValidationResult[]): ValidationResultLevel => {\n\tlet level: ValidationResultLevel = 'success';\n\n\tif (!results || results.length == 0) return level;\n\n\tresults.forEach(r => {\n\t\tif (r.level == 'error') {\n\t\t\tlevel = r.level;\n\t\t}\n\n\t\tif (r.level == 'warning' && level != 'error') {\n\t\t\tlevel = r.level;\n\t\t}\n\n\t\tif (r.level == 'info' && level != 'warning' && level != 'error') {\n\t\t\tlevel = r.level;\n\t\t}\n\n\t\tif (r.level == 'success' && level != 'info' && level != 'warning' && level != 'error') {\n\t\t\tlevel = r.level;\n\t\t}\n\t});\n\n\treturn level;\n}\n\ntype Arity = 'single' | 'multi';\n\nabstract class SelfLabeledInput extends IntlComponent {\n\n\tconstructor(props: any, readonly arity: Arity) {\n\t\tsuper(props);\n\t}\n\n\tprotected abstract emptyValue(): V;\n\n\tprotected abstract get formValue(): V;\n\n\tprotected abstract set formValue(v: V);\n\n\t@computed\n\tprotected get populatedClass() {\n\t\treturn this.formValue && this.formValue != '' && !(Array.isArray(this.formValue) && this.formValue.length === 0) ? 'populated' : 'empty';\n\t}\n\n\t@action.bound\n\tprotected clear() {\n\t\tthis.props.form.clearValue(this.props.name);\n\t\tthis.props.form.onBlur(this.props.name);\n\t}\n}\n\n@observer\nexport class SelfLabeledTextInput extends SelfLabeledInput {\n\n\n\tconstructor(props: any) {\n\t\tsuper(props, 'single')\n\t}\n\n\tprotected emptyValue(): string {\n\t\tthrow new Error(\"Method not implemented.\");\n\t}\n\n\tprotected get formValue(): string {\n\t\treturn this.props.form.getValue(this.props.name);\n\t}\n\n\tprotected set formValue(v: string) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\t@action.bound\n\tprivate onChange(event: React.ChangeEvent) {\n\t\tthis.formValue = event.currentTarget.value;\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(this.formValue);\n\t\t}\n\t}\n\t\n\t@action.bound\n\tprivate onKeyUp(event: React.KeyboardEvent) {\n\t\tif (event.keyCode == 13 && this.props.onEnter) {\n\t\t\tthis.props.onEnter(this.formValue as string);\n\t\t}\n\t}\n\t\n\t\t@action.bound\n\tprotected onBlur(event: React.FocusEvent) {\n\t\tif (event.target.value) {\n\t\t\tthis.formValue = event.target.value.trim(); // Trim the feild before Validation\n\t\t}\n\t\tthis.props.form.onBlur(this.props.name); // Validation\n\t\tif (this.props.onBlur) {\n\t\t\tthis.props.onBlur();\n\t\t}\n\t}\n\n\n\t@action.bound\n\tprotected onFocus(event: React.FocusEvent) {\n\t\tif (this.props.onFocus) {\n\t\t\tthis.props.onFocus();\n\t\t}\n\t}\n\n\t@action.bound\n\tprivate datePickerChange(newMoment: moment.Moment) {\n\t\tif (newMoment) {\n\t\t\tthis.formValue = newMoment.format('YYYY-MM-DD');\n\t\t}\n\n\t\tthis.props.form.onBlur(this.props.name);\n\t}\n\n\t@computed\n\tprivate get valueAsMoment() {\n\t\treturn this.formValue ? moment(this.formValue) : moment();\n\t}\n\n\trender() {\n\t\tlet size = this.props.size || 'md';\n\t\tlet errors = this.props.form.errors.get(this.props.name);\n\t\tlet fieldState = getMaxMessageLevel(errors);\n\t\tlet dark = this.props.darkOutline ? 'outline-dark' : '';\n\n\t\tlet componentClass = `self-labeled-text-input input-group-${size}`;\n\t\tlet inputClass = `form-control form-control-${size} form-control-${fieldState} ${this.populatedClass} ${dark}`;\n\t\tlet labelClass = `label ${this.props.labelDecoration}`;\n\t\tlet decoration = this.props.labelDecoration\n\t\t\t? \n\t\t\t: '';\n\n\t\tlet icon = this.props.icon || (this.props.datePicker ? : undefined);\n\n\t\tlet errorDisplay = this.props.hideErrors ? '' : ;\n\n\t\tlet value = this.formValue || '';\n\n\t\tlet display = this.props.labelProvider\n\t\t\t? {this.props.labelProvider(value)}\n\t\t\t: '';\n\n\t\tlet innerControl =
    \n\t\t\t\n\t\t\t{this.props.label} {decoration}\n\t\t\t{display}\n\t\t\t{icon}\n\t\t\t{errorDisplay}\n\t\t
    ;\n\n\t\tif (this.props.datePicker) {\n\t\t\treturn
    \n\t\t\t\t\n\t\t\t
    \n\t\t}\n\n\t\treturn
    {innerControl}
    ;\n\t}\n}\n\n@observer\nexport class SelfLabeledSelect extends SelfLabeledInput {\n\n\tconstructor(props: any) {\n\t\tsuper(props, 'single')\n\t}\n\n\t@observable\n\tprivate isOpen = false;\n\n\tprotected inputElement: HTMLInputElement;\n\tprotected emptyValue(): string {\n\t\treturn '';\n\t}\n\n\tprotected get formValue(): string {\n\t\treturn this.props.form.getValue(this.props.name);\n\t}\n\n\tprotected set formValue(v: string) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\t@computed\n\tprivate get dropdownValues(): string[] {\n\n\t\tif (this.formValue && this.formValue.length > 0) {\n\t\t\treturn this.props.valueSource(this.formValue);\n\t\t}\n\n\t\tif (this.props.showAllOnEmpty) {\n\t\t\treturn this.props.valueSource(undefined);\n\t\t}\n\n\t\tthis.props.form.clearValue(this.props.name);\n\t\treturn [];\n\t}\n\n\t@action.bound\n\tprotected onBlur(event: React.FocusEvent) {\n\t\tthis.props.form.onBlur(this.props.name);\n\n\t\tif (this.dropdownValues && this.dropdownValues.length == 1) {\n\t\t\tthis.formValue = this.dropdownValues[0];\n\t\t\tthis.isOpen = false;\n\t\t}\n\t}\n\n\t@action.bound\n\tprivate onChange(event: React.ChangeEvent) {\n\t\tthis.formValue = event.currentTarget.value;\n\t\tthis.isOpen = true;\n\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(this.formValue);\n\t\t}\n\t}\n\n\t@action.bound\n\tprivate toggle() {\n\t\tthis.isOpen = !this.isOpen;\n\t}\n\n\t@action.bound\n\tprotected itemClicked(value: string) {\n\t\tthis.formValue = value;\n\t\tthis.props.form.onBlur(this.props.name);\n\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(this.formValue);\n\t\t}\n\t\tthis.inputElement.focus();\n\t}\n\n\tprotected buildItem(value: string): JSX.Element {\n\t\tlet display = undefined;\n\n\t\tif (this.props.labelProvider) {\n\t\t\tlet label = this.props.labelProvider(value)\n\t\t\tif (label) {\n\t\t\t\tif (this.props.showLabelsOnly) {\n\t\t\t\t\tdisplay = label;\n\t\t\t\t} else {\n\t\t\t\t\tdisplay = `${value} - ${label}`\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdisplay = value;\n\t\t\t}\n\t\t} else {\n\t\t\tdisplay = value;\n\t\t}\n\n\t\tif (value.startsWith('*')) {\n\t\t\treturn \n\t\t\t\t{this.props.labelProvider(value)}\n\t\t\t;\n\t\t}\n\n\t\treturn this.itemClicked(value)}>\n\t\t\t{display}\n\t\t;\n\t}\n\n\trender() {\n\t\tlet size = this.props.size || 'md';\n\t\tlet errors = this.props.form.errors.get(this.props.name);\n\t\tlet fieldState = getMaxMessageLevel(errors);\n\t\tlet dark = this.props.darkOutline ? 'outline-dark' : '';\n\n\t\tlet componentClass = `self-labeled-text-input input-group-btn input-group-${size}`;\n\t\tlet inputClass = `form-control form-control-${size} form-control-${fieldState} ${this.populatedClass} ${dark}`;\n\t\tlet labelClass = `label ${this.props.labelDecoration}`;\n\t\tlet decoration = this.props.labelDecoration\n\t\t\t? \n\t\t\t: '';\n\n\t\tif (!this.dropdownValues) {\n\t\t\treturn
    No dropdownValues for {this.props.name}
    ;\n\t\t}\n\n\t\tlet items = this.dropdownValues.map(v => this.buildItem(v));\n\t\tlet display = this.props.labelProvider\n\t\t\t? {this.props.labelProvider(this.formValue as string)}\n\t\t\t: '';\n\n\t\tlet errorDisplay = this.props.hideErrors ? '' : ;\n\n\t\tlet toggle = this.props.disabled\n\t\t\t? ''\n\t\t\t: \n\t\t\t\t\n\t\t\t;\n\n\t\tlet menu = this.renderMenu(items);\n\n\t\tlet value = this.formValue || '';\n\n\t\treturn
    \n\t\t\t\n\t\t\t\t{this.props.showLabelsOnly\n\t\t\t\t\t? (this.formValue\n\t\t\t\t\t\t? this.inputElement = e} maxLength={this.props.maxLength} disabled={this.props.disabled} onBlur={this.onBlur} value={this.props.labelProvider(value as string)} />\n\t\t\t\t\t\t: this.inputElement = e} maxLength={this.props.maxLength} disabled={this.props.disabled} onBlur={this.onBlur} value=\"\" />)\n\t\t\t\t\t: this.inputElement = e} maxLength={this.props.maxLength} disabled={this.props.disabled} onChange={this.onChange} onBlur={this.onBlur} value={value} />\n\t\t\t\t}\n\t\t\t\t{toggle}\n\t\t\t\t{menu}\n\t\t\t\t{this.props.label} {decoration}\n\t\t\t\t{this.props.showLabelsOnly ? '' : display}\n\t\t\t\n\t\t\t{errorDisplay}\n\t\t
    ;\n\t}\n\n\trenderMenu(items: JSX.Element[]) {\n\n\t\tif (this.props.disabled) return undefined;\n\n\t\tif (!items || items.length == 0) {\n\t\t\tif (this.props.onEmpty) {\n\t\t\t\treturn \n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t{this.props.onEmpty}\n\t\t\t\t\t
    \n\t\t\t\t
    ;\n\t\t\t}\n\n\t\t\treturn \n\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\tNo matches for '{this.formValue}'\n\t\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t
    ;\n\t\t}\n\n\t\tlet matchText = items.length > 1 ? `${items.length} items match '${this.formValue}'` : `1 item matches \"${this.formValue}\"`;\n\n\t\tlet matchInfo = this.formValue\n\t\t\t?
    \n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\t{matchText}\n\t\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t:
    \n\t\t\t\t\n\t\t\t\tShowing all items\n\t\t\t
    ;\n\n\t\treturn \n\t\t\t{matchInfo}\n\t\t\t\n\t\t\t{items}\n\t\t;\n\t}\n}\n\n@observer\nexport class SelfLabeledMultiSelect extends SelfLabeledInput {\n\n\tconstructor(props: any) {\n\t\tsuper(props, 'multi')\n\t}\n\n\t@observable\n\tprivate isOpen = false;\n\n\tprotected emptyValue(): string[] {\n\t\treturn [];\n\t}\n\n\tprotected get formValue(): string[] {\n\t\treturn this.props.form.getMultiValue(this.props.name);\n\t}\n\n\tprotected set formValue(v: string[]) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\t@action.bound\n\tprotected onBlur(event: React.FocusEvent) {\n\t\tthis.props.form.onBlur(this.props.name);\n\t}\n\n\t@action.bound\n\tprivate toggle() {\n\t\tthis.isOpen = !this.isOpen;\n\t}\n\n\tprivate get multiFormValue(): string[] {\n\t\treturn this.formValue as string[];\n\t}\n\n\tprivate set multiFormValue(v: string[]) {\n\t\tthis.formValue = v;\n\t}\n\n\t@action.bound\n\tprotected itemClicked(value: string) {\n\n\t\tlet i = this.valueIndex(value);\n\t\tif (i >= 0) {\n\t\t\t// already there, remove\n\t\t\tthis.multiFormValue.splice(i, 1);\n\t\t} else {\n\t\t\tlet values = this.multiFormValue;\n\t\t\tif (values) {\n\t\t\t\tvalues.push(value);\n\t\t\t} else {\n\t\t\t\tvalues = [value]\n\t\t\t}\n\t\t\tthis.multiFormValue = values;\n\t\t}\n\n\t\tthis.props.form.onBlur(this.props.name);\n\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(this.formValue);\n\t\t}\n\t}\n\n\tprivate valueIndex(value: string): number {\n\t\treturn this.multiFormValue ? this.multiFormValue.indexOf(value) : -1;\n\t}\n\n\tprotected buildItem(value: string): JSX.Element {\n\t\tlet display = undefined;\n\n\t\tif (this.props.labelProvider) {\n\t\t\tlet label = this.props.labelProvider(value)\n\t\t\tif (label) {\n\t\t\t\tif (this.props.showLabelsOnly) {\n\t\t\t\t\tdisplay = label;\n\t\t\t\t} else {\n\t\t\t\t\tdisplay = `${value} - ${label}`\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdisplay = value;\n\t\t\t}\n\t\t} else {\n\t\t\tdisplay = value;\n\t\t}\n\n\t\tif (value.startsWith('*')) {\n\t\t\treturn \n\t\t\t\t{this.props.labelProvider(value)}\n\t\t\t;\n\t\t}\n\n\t\tlet isSelected = this.valueIndex(value) >= 0;\n\n\t\treturn this.itemClicked(value)}>\n\t\t\t\n\t\t\t{display}\n\t\t;\n\t}\n\n\t@action.bound\n\tremoveTag(value: string) {\n\n\t\tlet deleteIndex = this.valueIndex(value);\n\n\t\tif (deleteIndex >= 0) {\n\t\t\tthis.multiFormValue.splice(deleteIndex, 1);\n\t\t}\n\t}\n\n\trender() {\n\t\tlet size = this.props.size || 'md';\n\t\tlet errors = this.props.form.errors.get(this.props.name);\n\t\tlet fieldState = getMaxMessageLevel(errors);\n\t\tlet dark = this.props.darkOutline ? 'outline-dark' : '';\n\n\t\tlet componentClass = `self-labeled-text-input input-group-btn input-group-${size}`;\n\t\tlet inputClass = `form-control form-control-${size} form-control-${fieldState} ${this.populatedClass} ${dark}`;\n\t\tlet labelClass = `label ${this.props.labelDecoration}`;\n\t\tlet decoration = this.props.labelDecoration\n\t\t\t? \n\t\t\t: '';\n\n\t\tif (!this.props.valueSource) {\n\t\t\treturn
    No dropdownValues for {this.props.name}
    ;\n\t\t}\n\n\t\tlet values = this.props.valueSource();\n\t\tlet items = values.map(v => this.buildItem(v));\n\n\t\tlet errorDisplay = this.props.hideErrors ? '' : ;\n\n\t\tlet toggle = this.props.disabled\n\t\t\t? ''\n\t\t\t: \n\t\t\t\t\n\t\t\t;\n\n\t\tlet selectionCount = this.multiFormValue ? this.multiFormValue.length : 0;\n\t\tlet menu = this.renderMenu(selectionCount, items);\n\n\t\tlet selectionDisplay =
    \n\t\t\t this.multiFormValue} onRemove={this.removeTag} noneSelectedText={undefined} />\n\t\t
    ;\n\n\t\treturn
    \n\t\t\t\n\t\t\t\t{selectionDisplay}\n\t\t\t\t{toggle}\n\t\t\t\t{menu}\n\t\t\t\t{this.props.label} {decoration}\n\t\t\t\n\t\t\t{errorDisplay}\n\t\t
    ;\n\t}\n\n\trenderMenu(selectCount: number, items: JSX.Element[]) {\n\n\t\tif (this.props.disabled) return undefined;\n\n\t\treturn \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\t{selectCount} item(s) selected\n\t\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t{items}\n\t\t
    ;\n\t}\n}\n\n@observer\nexport class SelfLabeledCheckbox extends SelfLabeledInput {\n\n\tprotected emptyValue(): boolean {\n\t\treturn false;\n\t}\n\n\tprotected get formValue(): boolean {\n\t\treturn !!this.props.form.getValue(this.props.name);\n\t}\n\n\tprotected set formValue(v: boolean) {\n\t\tthis.props.form.setValue(this.props.name, v);\n\t}\n\n\t@action.bound\n\tprivate onChange(newValue: boolean) {\n\t\tthis.formValue = newValue;\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(this.formValue);\n\t\t}\n\t}\n\n\t@action.bound\n\tprotected onBlur(event: React.FocusEvent) {\n\t\tthis.props.form.onBlur(this.props.name);\n\t}\n\n\trender() {\n\t\tlet size = this.props.size || 'md';\n\t\tlet errors = this.props.form.errors.get(this.props.name);\n\t\tlet fieldState = getMaxMessageLevel(errors);\n\t\tlet dark = this.props.darkOutline ? 'outline-dark' : '';\n\n\t\tlet componentClass = `self-labeled-text-input`;\n\t\tlet inputClass = `form-control form-control-${size} form-control-${fieldState} ${this.populatedClass} ${dark}`;\n\n\t\tlet errorDisplay = this.props.hideErrors ? '' : ;\n\n\t\treturn
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t{this.props.label}\n\t\t\t\t
    \n\t\t\t\t{errorDisplay}\n\t\t\t
    \n\t\t
    ;\n\t}\n}","import * as React from \"react\";\n\nexport interface SpinnerProps extends React.Props {\n\tleft?: boolean;\n\tright?: boolean;\n\tsize?: 'sm' | 'md' | 'lg'\n}\n\nexport class Spinner extends React.Component {\n\n\trender() {\n\t\tlet size = this.props.size || 'md';\n\t\tlet side = this.props.left ? 'left' : (this.props.right ? 'right' : '');\n\n\t\tlet classes = 'spinner ' + size + ' ' + side;\n\n\t\treturn
    \n\t\t\t{this.props.right ? this.props.children : ''}\n\t\t\t
    \n\t\t\t{this.props.left ? this.props.children : ''}\n\t\t
    ;\n\t}\n}","import { action, autorun, IObservableValue, observable } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as moment from 'moment';\nimport * as React from \"react\";\nimport { Link } from 'react-router-dom';\nimport { Badge, Popover, PopoverBody, PopoverHeader, UncontrolledTooltip } from \"reactstrap\";\nimport { Address, IncidentLocation } from '../data/common';\nimport { ALL_MASK, ALPHA_MASK, ALPHA_NUMERIC_MASK, NUMERIC_MASK, NUMBER_MASK_WITH_ASTERISK } from '../data/formatters';\nimport { PersonName } from \"../data/model\";\nimport { stripDomain } from \"../data/user\";\nimport { maskToRegExp } from '../data/validators';\nimport { languages } from '../i18n/translation';\nimport { state, REPORT_CATEGORIES } from '../services/state';\nimport { FAI } from './fai';\nimport { DataSource } from './data-grid';\nimport { ManagedPopover } from './managed-popover';\nimport { ui } from '../services/ui';\n\nexport type LabelProvider = (property: string) => string;\nexport type ValueRenderer = (value: any, row?: any, component?: string, rowIndex?: number, colIndex?: number, id?: any) => string | JSX.Element;\n\nexport const ClaimLinkValueRenderer: ValueRenderer = (value: string) => {\n\tif (value)\n\t\treturn {\n\t\t\tstate.claimsSummary.data.clear();\n\t\t\tstate.search.query = value;\n\t\t\tstate.search.type = \"CLAIM_NUMBER\";\n\t\t\tstate.claimsSummary.data.ensureLoaded(0, 25, () => {\n\t\t\t\tstate.ui.history.push(`/results/claim/${value}`);\n\t\t\t});\n\t\t}}>\n\t\t\t{value.toUpperCase()}\n\treturn ''\n};\n\nexport const BooleanYesNoRenderer: ValueRenderer = (value: boolean) => {\n\treturn value ? 'Yes' : 'No';\n};\n\nexport const ISOTimestampRenderer: ValueRenderer = (value: string) => {\n\tlet m = moment(value);\n\treturn
    \n\t\t{m.format('MM/DD/YYYY h:mm:ss a')}\n\t\t{m.format('ddd, MMM D YYYY, h:mm:ss a')}\n\t\t{m.fromNow()}\n\t
    ;\n};\n\nexport const ISODateRenderer: ValueRenderer = (value: string) => {\n\tif (value != null) {\n\t\tlet m = moment(value);\n\t\treturn
    \n\t\t\t{m.format('MM/DD/YYYY')}\n\t\t\t{m.format('ddd, MMM D YYYY')}\n\t\t\t{m.fromNow()}\n\t\t
    ;\n\t}\n\treturn
    \n};\n\nexport const ISODateTimeRenderer: ValueRenderer = (value: string) => {\n\tlet m = moment(value);\n\tlet time = moment(new Date(value)).format('HH:mm');\n\tif (value) {\n\t\treturn
    \n\t\t\t
    \n\t\t\t\t
    {m.format('MM/DD/YYYY')}
    \n\t\t\t\t{time == undefined || time == \"00:00\" ?
    :
    {m.format('h:mm a')}
    }\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t
    {m.format('ddd, MMM D YYYY')}
    \n\t\t\t\t{time == undefined || time == \"00:00\" ?
    :
    {m.format('h:mm:ss a')}
    }\n\t\t\t
    \n\t\t
    ;\n\t}\n\treturn
    \n};\n\nexport class FormattedUserId extends React.Component<{ id: string, userId: string }, undefined> {\n\trender() {\n\t\tlet adjusterId = this.props.userId ? stripDomain(this.props.userId).toUpperCase() : undefined;\n\n\t\tif (!adjusterId) return
    ;\n\n\t\t// let realName = state.ui.cache.userConfig && !state.security.userIsProductSupport ? state.ui.cache.userConfig.adjusters[this.props.userId.toLowerCase()] : undefined;\n\n\t\t// if (realName) {\n\t\t// \tlet id = \"user\" + this.props.id;\n\t\t// \treturn
    \n\t\t// \t\t{adjusterId}\n\t\t// \t\t\n\t\t// \t\t\t{realName}\n\t\t// \t\t\n\t\t// \t
    \n\t\t// }\n\n\t\treturn
    {adjusterId}
    ;\n\t}\n};\n\nexport const AddressRenderer: ValueRenderer = (value: Address) => ;\n\nexport class FormattedAddress extends React.Component<{ address: Address }, undefined> {\n\trender() {\n\t\tlet a = this.props.address;\n\n\t\treturn
    \n\t\t\t
    {a.type}
    \n\t\t\t
    {a.apt} {a.street} {a.crossStreet} {a.county}
    \n\t\t\t
    {a.city}, {a.state} {a.zip5}{a.zip4 ? '-' + a.zip4 : ''}
    \n\t\t
    ;\n\t}\n}\n\nexport const partyNameFormatter = (pn: PersonName): string | JSX.Element => {\n\n\tif (!pn) return undefined;\n\n\tif (!pn.firstName && !pn.middleName) {\n\t\tif (!pn.lastName) return undefined;\n\t\treturn pn.lastName;\n\t}\n\n\tlet first = pn.firstName || '';\n\tlet middle = pn.middleName || '';\n\tlet last = pn.lastName || 'Unknown';\n\n\treturn {last}, {first} {middle}\n}\n\nexport const IncidentLocationRenderer: ValueRenderer = (value: IncidentLocation) => ;\n\nexport class FormattedIncidentLocation extends React.Component<{ address: IncidentLocation }, undefined> {\n\trender() {\n\t\tlet a = this.props.address;\n\n\t\treturn
    \n\t\t\t
    {a.street}
    \n\t\t\t
    {a.crossStreet}
    \n\t\t\t
    {a.city} {a.county}
    \n\t\t\t
    {a.state} {a.zip5} {a.zip4}
    \n\t\t
    ;\n\t}\n}\n\nexport enum VolumeType {\n\tINCIDENT_TAT = 'INCIDENT_TAT',\n\tALL_SUMMARY = 'ALL_SUMMARY',\n\tALL_DETAIL = 'ALL_DETAIL'\n}\n\nexport enum Period {\n\tYTD = 'YTD',\n\tMONTH = 'MONTH',\n\tCUSTOM = 'CUSTOM'\n}\n\nexport enum GroupBy {\n\tACCOUNT_NUMBER = 'ACCOUNT_NUMBER',\n\tREPORT_TYPE = 'REPORT_TYPE',\n\tUSER = 'USER_ID'\n}\n\nexport enum Status {\n\tIN_PROGRESS = 'In Progress',\n\tCOMPLETE = 'Order Complete',\n\tERROR = 'Order Error',\n\tSAVED = 'Saved Order',\n\tINCOMPLETE = 'Incomplete'\n}\n\nexport enum ReportFormat {\n\tPDF = 'PDF',\n\tTIFF = 'TIFF',\n\tXML = 'XML',\n\tPNG = 'PNG',\n\tHTML_DISPLAY = 'HTML_DISPLAY',\n\tHTML = 'HTML'\n}\n\nexport enum Operation {\n\tOPEN = 'OPEN',\n\tDOWNLOAD = 'DOWNLOAD',\n}\n\nexport const STATUS_COLORS = new Map();\nSTATUS_COLORS.set(Status.COMPLETE, 'text-success');\nSTATUS_COLORS.set(Status.IN_PROGRESS, 'text');\nSTATUS_COLORS.set(Status.SAVED, 'text');\nSTATUS_COLORS.set(Status.INCOMPLETE, 'text');\nSTATUS_COLORS.set(Status.ERROR, 'text-danger');\n\ninterface StatusRendererProps {\n\tstatus: string;\n\treason: string;\n\tid: string;\n\ttatListener?: IObservableValue;\n\ttatId?: string;\n\tsource?: DataSource;\n\treportType: string\n\tarchived: boolean;\n}\n\n@observer\nexport class StatusRenderer extends React.Component {\n\n\t@observable\n\tprivate tatCode: string\n\n\t@observable\n\tprivate tatTime: string\n\n\t@observable\n\tprivate isOpen = false\n\n\tconstructor(props: StatusRendererProps) {\n\t\tsuper(props);\n\t\tautorun(() => {\n\t\t\tif (props.tatListener) {\n\t\t\t\tthis.props.tatListener.observe(change => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.tatCode = this.props.source.get(this.props.id).tatStatus;\n\t\t\t\t\t\tthis.tatTime = this.props.source.get(this.props.id).tatTime;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (e) { }\n\t\t\t\t\tthis.isOpen = true;\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\t}\n\n\t@action.bound\n\tprivate toggle(): void {\n\t\tthis.isOpen = !this.isOpen\n\t}\n\n\trender() {\n\t\tlet reason = (this.props.reason != 'SAVED')\n\t\t\t? ({this.props.reason})\n\t\t\t: undefined;\n\n\t\tlet status = DisplayStatusMapper(this.props.status);\n\t\tlet colorClass = STATUS_COLORS.get(status);\n\t\tif (REPORT_CATEGORIES[this.props.reportType] == 'interactive') {\n\t\t\tif (this.props.archived) {\n\t\t\t\treturn
    \n\t\t\t\t\t{status}\n\t\t\t\t\t{this.props.archived ? \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThis report has already been viewed, and has been marked as Archived.\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t: \n\t\t\t\t\t\t}\n\n\t\t\t\t
    \n\t\t\t}\n\t\t\treturn {status}\n\t\t}\n\t\tswitch (status) {\n\t\t\tcase Status.SAVED:\n\t\t\t\treturn {status}\n\t\t\tcase Status.COMPLETE:\n\t\t\tcase Status.ERROR:\n\t\t\t\treturn
    \n\t\t\t\t\t{status}\n\t\t\t\t\t\t{reason}\n\t\t\t\t\t{this.props.archived ? \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThis report has already been viewed, and has been marked as Archived.\n\t\t\t\t\t\t}\n\t\t\t\t\t : \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t{languages[state.ui.lang].concepts.reasons[this.props.reason]}\n\t\t\t\t\t\n\n\t\t\t\t
    \n\t\t\tcase Status.IN_PROGRESS:\n\t\t\t\tlet popover = this.tatCode && this.props.id == this.props.tatId\n\t\t\t\t\t? this.renderTatPopover()\n\t\t\t\t\t: undefined;\n\n\t\t\t\treturn
    \n\t\t\t\t\t
    \n\t\t\t\t\t\t{status}\n\t\t\t\t\t\t{reason}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{languages[state.ui.lang].concepts.reasons[this.props.reason]}\n\t\t\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t{popover}\n\t\t\t\t
    \n\t\t}\n\n\t\treturn
    ?
    ;\n\t}\n\n\tprivate renderTatPopover() {\n\t\tlet iconClasses = '';\n\n\t\tswitch (this.tatCode) {\n\t\t\tcase 'TAT0':\n\t\t\tcase 'TAT1':\n\t\t\tcase 'TAT3':\n\t\t\t\ticonClasses += 'check success';\n\t\t\t\tbreak;\n\t\t\tcase 'TAT2':\n\t\t\t\ticonClasses += 'info-circle secondary';\n\t\t\t\tbreak;\n\t\t\tcase 'TAT4':\n\t\t\tcase 'TAT5':\n\t\t\t\ticonClasses += 'exclamation-triangle error';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tlet tatHtml = languages[state.ui.lang].concepts.tatCodes[this.tatCode];\n\n\t\treturn \n\t\t\t\n\t\t\t\t
    Turn Around Time
    \n\t\t\t
    \n\t\t\t\n\t\t\t\t
    {ISODateTimeRenderer(this.tatTime)}
    \n\t\t\t
    \n\t\t
    \n\t}\n}\n\ninterface BulletedListRendererProps {\n\titems: any[];\n\tid?: string;\n\tclassName?: string;\n\tlabelProvider?: LabelProvider;\n\tellipseAfter?: number;\n\tellipsisTarget?: string;\n\tnoBulletOnSingle?: boolean;\n\tlabelOnEmpty?: string;\n}\n\nexport class BulletedListRenderer extends React.Component {\n\trender() {\n\n\n\t\tif (this.props.items && this.props.items.length > 1 && !this.props.noBulletOnSingle) {\n\t\t\tlet lis = this.props.items.map((item, index) => {\n\t\t\t\tlet text = this.props.labelProvider\n\t\t\t\t\t? this.props.labelProvider(item.toString())\n\t\t\t\t\t: item;\n\t\t\t\tif (this.props.ellipseAfter && index >= this.props.ellipseAfter) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t} else {\n\t\t\t\t\treturn item ?
  • {text}
  • : undefined;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tlet other = this.props.items ? this.props.items.slice(this.props.ellipseAfter).map((item, index) => {\n\t\t\t\tlet text = this.props.labelProvider\n\t\t\t\t\t? this.props.labelProvider(item.toString())\n\t\t\t\t\t: item;\n\t\t\t\treturn item ?
  • {text}
  • : undefined;\n\t\t\t}) : undefined;\n\n\t\t\tlet more = this.props.items && this.props.ellipseAfter && (this.props.items.length > this.props.ellipseAfter)\n\t\t\t\t?
    \n\t\t\t\t\t... Plus {this.props.items.length - this.props.ellipseAfter} more item(s)\n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
      {other}
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t: undefined;\n\n\t\t\treturn
    \n\t\t\t\t
      {lis}
    \n\t\t\t\t{more}\n\t\t\t
    ;\n\t\t}\n\n\t\t// 0 or 1 item\n\t\tif (this.props.items) {\n\t\t\tlet item = this.props.items[0];\n\n\t\t\tlet text = this.props.labelProvider\n\t\t\t\t? this.props.labelProvider(item.toString())\n\t\t\t\t: item;\n\n\t\t\treturn
    \n\t\t\t\t
    {text}
    \n\t\t\t
    ;\n\t\t}\n\n\t\t// must be empty\n\t\tif (this.props.labelOnEmpty) {\n\t\t\treturn
    {this.props.labelOnEmpty}
    ;\n\t\t}\n\n\t\treturn
    ;\n\n\t}\n}\n\nexport type MatchType = 'EXACT' | 'POTENTIAL' | 'NONE';\n\nexport const DisplayStatusMapper = (status: string): Status => {\n\n\tif (status == 'ERROR') {\n\t\treturn Status.ERROR\n\t}\n\tif (status == 'PROCESSING') {\n\t\treturn Status.IN_PROGRESS;\n\t}\n\tif (status == 'COMPLETE') {\n\t\treturn Status.COMPLETE;\n\t}\n\tif (status == 'SAVED') {\n\t\treturn Status.SAVED;\n\t}\n\treturn undefined;\n}\n\nexport const masking = (unformatted: string, format: string, more?: (s: string) => string) => {\n\tif (!unformatted) return '';\n\n\tlet regExp = maskToRegExp(format);\n\n\tlet is = 0;\n\tlet formatted = '';\n\tlet iz = 0;\n\n\tfor (let i = 0; i < format.length && is < unformatted.length; i++) {\n\t\tlet f = format[i];\n\t\tlet regExp = maskToRegExp(f);\n\t\tif (f == NUMERIC_MASK || f == ALPHA_MASK || f == ALPHA_NUMERIC_MASK || f == ALL_MASK || f == NUMBER_MASK_WITH_ASTERISK) {\n\t\t\tif (!regExp.test(unformatted[is])) {\n\t\t\t\treturn more && formatted ? more(formatted) : formatted;\n\t\t\t}\n\t\t\tformatted += unformatted[is];\n\t\t\tis++;\n\t\t} else {\n\t\t\tformatted += f;\n\t\t\tiz++;\n\t\t}\n\t}\n\n\treturn more && formatted ? more(formatted) : formatted;\n}","import { action, computed, IObservableArray, observable, ObservableMap } from 'mobx';\nimport { DataSource } from '../components/data-grid';\nimport { Period } from '../components/transform';\n\nexport type SortStatus = undefined | 'asc' | 'desc';\n\nexport interface SortControl {\n\tgetSortStatus(property: string): SortStatus;\n\tsetSortStatus(property: string, status: SortStatus): string;\n}\n\n//adapted from https://stackoverflow.com/questions/16245767/creating-a-blob-from-a-base64-string-in-javascript\nexport function base64toBlob(b64Data: string, contentType: string, sliceSize: number) {\n\tcontentType = contentType || '';\n\tsliceSize = sliceSize || 512;\n\n\tlet byteCharacters = atob(b64Data);\n\tlet byteArrays = [];\n\n\tfor (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n\t\tlet slice = byteCharacters.slice(offset, offset + sliceSize);\n\n\t\tlet byteNumbers = new Array(slice.length);\n\t\tfor (let i = 0; i < slice.length; i++) {\n\t\t\tbyteNumbers[i] = slice.charCodeAt(i);\n\t\t}\n\n\t\tlet byteArray = new Uint8Array(byteNumbers);\n\n\t\tbyteArrays.push(byteArray);\n\t}\n\n\tlet blob = new Blob(byteArrays, { type: contentType });\n\treturn blob;\n}\n\nexport const caseInsensitiveSubstringFilter =\n\t(substring: string, options: string[]) => (substring && substring.length > 0)\n\t\t? options.filter(v => v.toLowerCase().indexOf(substring.toLowerCase()) >= 0)\n\t\t: options;\n\nexport class PartialList {\n\tstart: number;\n\ttotal: number;\n\tids: string[];\n\tmap: { [key: string]: T };\n\tordering: string;\n}\n\nexport class ListRequest {\n\tstart: number = 0;\n\tcount: number = undefined;\n\tincludeItems: boolean = false;\n\tincludeTotal: boolean = false;\n\tordering: string = undefined;\n}\n\nexport interface LazyListLoader {\n\tgetValues: (ids: string[]) => Promise<{ [key: string]: T }>,\n\tgetPartial: (request: ListRequest) => Promise>;\n}\n\nexport class LazyList implements DataSource {\n\tmap: ObservableMap = new ObservableMap();\n\n\torderings: ObservableMap> = new ObservableMap>();\n\n\t@observable\n\ttotal: number;\n\n\t@observable\n\tordering: string;\n\n\t@observable\n\tloading: boolean = false;\n\n\tconstructor(readonly name: string, readonly loader: LazyListLoader, readonly idExtractor: (value: T) => any, defaultOrdering: string) {\n\t\tthis.ordering = defaultOrdering;\n\t}\n\n\treset() {\n\t\tthis.total = undefined;\n\t\tthis.orderings.clear();\n\t}\n\n\t@action.bound\n\tpublic merge(partial: PartialList) {\n\t\tif (!partial.ordering) {\n\t\t\t//console.log(\"no partial ordering specified, using 'default'\");\n\t\t\tpartial.ordering = 'default';\n\t\t\tthis.ordering = partial.ordering;\n\t\t} else {\n\t\t\t//console.log(`merging new partial starting at ${partial.start} into master list for ordering ${partial.ordering}`);\n\t\t}\n\n\t\tlet ids = this.orderings.get(partial.ordering);\n\t\tif (!ids) {\n\t\t\t//console.log('this is the first partial with this ordering, creating new id list');\n\t\t\tids = observable.array([]);\n\t\t\tthis.orderings.set(partial.ordering, ids);\n\t\t}\n\n\t\tconsole.log(`adding ${partial.ids.length} ids and ${Object.keys(partial.map).length} values...`)\n\t\tpartial.ids.forEach((id: string, index) => {\n\t\t\tids[partial.start + index] = id;\n\t\t\tlet value = partial.map[id];\n\t\t\tif (value) {\n\t\t\t\tthis.map.set(id, value);\n\t\t\t}\n\t\t});\n\n\t\tthis.orderings.set(partial.ordering, ids);\n\n\t\tif (partial.total != undefined) {\n\t\t\t//console.log(`updating total to ${partial.total}`)\n\t\t\tthis.total = partial.total;\n\t\t}\n\t}\n\n\tpublic clear() {\n\t\tconsole.log(\"clearing map \", this.map);\n\t\tthis.map.clear();\n\t\tthis.orderings.clear();\n\t\tthis.total = undefined;\n\t\tthis.loading = false;\n\t}\n\n\tprivate findMissing(start: number, end: number): Promise {\n\t\t//console.log(`finding missing values from ${start} to ${end}`);\n\t\tlet ids: IObservableArray = this.orderings.get(this.ordering);\n\n\t\tlet includeTotal = false;\n\n\t\tif (!ids) {\n\t\t\t//console.log(`no ids yet, this is the first load of ordering ${this.ordering}. get the total with this load`);\n\t\t\tincludeTotal = true;\n\t\t\tids = observable.array([]);\n\t\t}\n\n\t\tif (end > ids.length && (this.total == undefined || ids.length < this.total)) {\n\t\t\tlet loadCount = end - ids.length\n\t\t\t//console.log(`there are currently no ids past ${ids.length}, loading the next ${loadCount} ids`);\n\n\t\t\tlet request: ListRequest = {\n\t\t\t\tstart: ids.length,\n\t\t\t\tcount: loadCount,\n\t\t\t\tincludeItems: true,\n\t\t\t\tincludeTotal: includeTotal,\n\t\t\t\tordering: this.ordering\n\t\t\t};\n\n\t\t\tconsole.log(`requesting new partial: ${JSON.stringify(request)}`);\n\n\t\t\treturn this.loader.getPartial(request).then(partial => {\n\t\t\t\t//console.log(`partial retrieved: ${JSON.stringify(partial)}`);\n\t\t\t\tconsole.log(this.ordering);\n\t\t\t\tthis.merge(partial);\n\n\t\t\t\t//let newIdLength = this.orderings.get(this.ordering).length;\n\t\t\t\t//console.log(`partial merged. there are now ${newIdLength} ids loaded, finding missing values again`);\n\t\t\t\treturn this.findMissing(start, end);\n\t\t\t}).catch(error => { throw error; });\n\t\t}\n\n\t\tlet missing: string[] = [];\n\t\tlet range = Math.min(end, ids.length);\n\t\tfor (let i = start; i < range; i++) {\n\t\t\tif (i > ids.length) {\n\t\t\t\t//console.warn(`searching for missing values as index ${i}, beyond end of ids at ${ids.length}`);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet id = ids[i];\n\t\t\tlet value = this.map.get(id);\n\t\t\tif (!value) {\n\t\t\t\t//console.log(`The id ${id} is missing a value, adding it to the list (${missing.length} so far)`);\n\t\t\t\tmissing.push(id);\n\t\t\t}\n\t\t}\n\t\treturn Promise.resolve(missing);\n\t}\n\n\t@action.bound\n\tpublic ensureLoaded(start: number, end: number, onComplete?: (success: boolean) => void, newOrdering?: string) {\n\t\tif(newOrdering){\n\t\t\tconsole.log('Common.LazyList.ensureLoaded has this.ordering ['+this.ordering+'] -> to ['+newOrdering+']');\n\t\t\tthis.ordering = newOrdering;\n\t\t}\n\t\tthis.loading = true;\n\t\t//console.log(`making sure items at index ${start} to ${end} have their values loaded`);\n\n\t\ttry {\n\t\t\tthis.findMissing(start, end).then(missing => {\n\t\t\t\tif (missing.length == 0) {\n\t\t\t\t\t//console.log(`every item has a value; nothing to do`);\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t\tif (onComplete) { onComplete(true); }\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconsole.log(`loading ${missing.length} values for items with ids ${missing}`);\n\t\t\t\tthis.loader.getValues(missing).then(values => {\n\t\t\t\t\tif (onComplete) { onComplete(true); }\n\t\t\t\t\t//console.log(`retrieved ${Object.keys(values).length} values`);\n\t\t\t\t\tObject.keys(values).forEach((id, index) => this.map.set(id, values[id]));\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t});\n\t\t\t}).catch(error => {\n\t\t\t\tif (onComplete) { onComplete(false); }\n\t\t\t\tthis.loading = false;\n\t\t\t\tthrow error;\n\t\t\t});\n\t\t} catch (ex) {\n\t\t\tconsole.log(ex)\n\t\t\tif (onComplete) { onComplete(false); }\n\t\t}\n\t}\n\n\tgetWindow(start: number, end?: number): T[] {\n\t\tconst values: T[] = [];\n\t\tconst ids = this.orderings.get(this.ordering);\n\n\n\t\tif (!ids) {\n\t\t\treturn values;\n\t\t}\n\n\t\tend = end || ids.length;\n\n\t\tfor (let i = start; i < end; i++) {\n\t\t\tlet id = ids[i];\n\t\t\tlet value = this.map.get(id);\n\t\t\tvalues.push(value);\n\t\t}\n\n\t\treturn values;\n\t}\n\n\tget(key: string) {\n\t\treturn this.map.get(key);\n\t}\n\n\tgetRow(index: number): T {\n\t\tlet ids = this.orderings.get(this.ordering);\n\t\tlet id = ids[index];\n\t\treturn this.map.get(id);\n\t}\n\n\t@computed\n\tget rows(): T[] {\n\t\treturn this.getWindow(0);\n\t}\n\n\t@computed\n\tget idsInCurrentOrdering(): number {\n\t\tlet ids = this.orderings.get(this.ordering);\n\t\treturn ids ? ids.length : 0;\n\t}\n\n\t@computed\n\tget values(): number {\n\t\treturn this.map.size;\n\t}\n\n\t@computed\n\tget isLoading(): boolean {\n\t\treturn this.loading;\n\t}\n\n\tgetSortStatus(property: string): SortStatus {\n\n\t\tlet desc = this.ordering.startsWith('^');\n\t\tlet orderProperty = desc ? this.ordering.substring(1) : this.ordering;\n\n\t\treturn orderProperty == property\n\t\t\t? (desc ? 'desc' : 'asc')\n\t\t\t: undefined;\n\t}\n\n\t@action.bound\n\tsetSortStatus(property: string, status: SortStatus): string {\n\t\tlet newOrdering = (status == 'desc' ? '^' : '') + property;\n\n\t\tif (property.startsWith('$')) {\n\n\t\t\tlet multiplier = status == 'asc' ? 1 : -1;\n\t\t\tlet ids = this.orderings.get(this.ordering);\n\t\t\tlet sortedCopy = observable.array(ids);\n\n\t\t\tlet collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n\n\t\t\tsortedCopy = sortedCopy.sort((ida, idb) => {\n\t\t\t\tlet a: T = this.map.get(ida);\n\t\t\t\tlet b: T = this.map.get(idb);\n\n\t\t\t\tlet va = a[property];\n\t\t\t\tlet vb = b[property];\n\n\t\t\t\tif (va == vb) return multiplier * collator.compare(ida, idb);\n\t\t\t\tif (va == undefined && vb != undefined) return multiplier;\n\t\t\t\tif (va != undefined && vb == undefined) return -multiplier;\n\n\t\t\t\treturn multiplier * collator.compare(va, vb);\n\t\t\t});\n\n\t\t\tthis.orderings.set(newOrdering, sortedCopy);\n\t\t}\n\n\t\tthis.ordering = newOrdering;\n\t\tlet reloadNeeded = (newOrdering != this.ordering);\n\t\treturn newOrdering;\n\t}\n}\n\nexport class Address {\n\ttype: string;\n\tapt: string;\n\tcity: string;\n\tcounty: string;\n\tcrossStreet: string;\n\thouse: string;\n\tstate: string;\n\tstreet: string;\n\tzip4: string;\n\tzip5: string;\n}\n\nexport class IncidentLocation {\n\tapt: string;\n\tcity: string;\n\tcounty: string;\n\tstate: string;\n\tcrossStreet: string;\n\thouse: string;\n\tstreet: string;\n\tzip4: string;\n\tzip5: string;\n}\n\nexport class Phone {\n\ttype: string;\n\tarea: string;\n\tnum: string;\n}\n\nexport type Category = 'incident' | 'interactive';\n\nexport const reportTypeMap = new Map();\nreportTypeMap.set('AccidentReport', 'AUTO_ACCIDENT');\n\n\nexport const US_STATES = ['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'DC', 'WV', 'WI', 'WY'];\nexport const US_TERRITORIES = ['GU', 'PR', 'VI'];\nexport const CA_PROVINCES = ['AB', 'BC', 'MB', 'NB', 'NF', 'NT', 'NS', 'ON', 'PE', 'PQ', 'SK', 'YT'];\n\nconst RESTRICTED_STATES_VIN = ['CA', 'HI', 'NH', 'NY', 'OK', 'PA', 'VA']; //All VIN flavors\n\nconst RESTRICTED_US_STATES_MVR = ['CA', 'HI', 'MI', 'MO', 'NH', 'PA', 'WA', 'WV']; // Claims MVR\n\n//All US states => Carrier ID\n//All US states => Carrier Discovery\n//ALL US and CA states => Claims Discovery\nexport const STATES_VIN = US_STATES.filter((el) => {\n\treturn RESTRICTED_STATES_VIN.indexOf(el) < 0;\n});\n\nconst US_STATES_MVR = US_STATES.filter((el) => {\n\treturn RESTRICTED_US_STATES_MVR.indexOf(el) < 0;\n});\n\nconst CA_STATES_MVR = ['AB', 'NB', 'ON'];\n\nconst ALL_MVR_STATES_DROPDOWN = ['*STA', ...US_STATES_MVR, '*CAN', ...CA_STATES_MVR]\n\nexport const ALL_STATE_DROPDOWN = ['*STA', ...US_STATES, '*TER', ...US_TERRITORIES, '*CAN', ...CA_PROVINCES];\nexport const ALL_LOCATIONS = ['ALL' , ...ALL_STATE_DROPDOWN];\nexport const OPEN_STATE_DROPDOWN = ['*OPN', 'FL', 'GA', 'IL', 'IN'];\n\nexport const NAME_SUFFIX_DROPDOWN = ['1st', '2nd', '3rd', '4th', 'JR', 'SR'];\nexport const GENDER_DROPDOWN = ['Unknown', 'Male', 'Female', 'X', 'I'];\n\nexport const MGMT_REPORT_VIEW_OPTIONS = [Period.YTD.toString(), Period.MONTH.toString(), Period.CUSTOM.toString()];\nexport const MGMT_REPORT_TOP_AGENCY = ['5', '10', '20', '25', '50', '100', '200', '300', '500'];\n\nexport const postalCodeType = (stateCode: string): string => {\n\tif (US_STATES.indexOf(stateCode) >= 0) return 'US';\n\tif (US_TERRITORIES.indexOf(stateCode) >= 0) return 'US';\n\tif (CA_PROVINCES.indexOf(stateCode) >= 0) return 'CA';\n\treturn undefined;\n}\n\nexport const allStateCodeProvider = (s: string) => caseInsensitiveSubstringFilter(s, ALL_STATE_DROPDOWN);\nexport const allStateLocationsCodeProvider = (s: string) => caseInsensitiveSubstringFilter(s, ALL_LOCATIONS);\nexport const openStateCodeProvider = (s: string) => caseInsensitiveSubstringFilter(s, OPEN_STATE_DROPDOWN);\nexport const nameSuffixProvider = (s: string) => caseInsensitiveSubstringFilter(s, NAME_SUFFIX_DROPDOWN);\nexport const genderProvider = (s: string) => caseInsensitiveSubstringFilter(s, GENDER_DROPDOWN);\nexport const viewOptionsProvider = (s: string) => caseInsensitiveSubstringFilter(s, MGMT_REPORT_VIEW_OPTIONS);\nexport const topAgencyProvider = (s: string) => caseInsensitiveSubstringFilter(s, MGMT_REPORT_TOP_AGENCY);\n\nexport const vinStateProvider = (s: string) => caseInsensitiveSubstringFilter(s, STATES_VIN);\nexport const mvrStatesProvider = (s: string) => caseInsensitiveSubstringFilter(s, ALL_MVR_STATES_DROPDOWN);\nexport const allUSStateProvider = (s: string) => caseInsensitiveSubstringFilter(s, US_STATES);\n\n// TODO: This needs to be in translation.tsx\n// and also not uppercase\nexport const topAgencyMap = new Map();\ntopAgencyMap.set('5', 'Five');\ntopAgencyMap.set('10', 'Ten');\ntopAgencyMap.set('20', 'Twenty');\ntopAgencyMap.set('25', 'Twenty Five');\ntopAgencyMap.set('50', 'Fifty');\ntopAgencyMap.set('100', 'Hundred');\ntopAgencyMap.set('200', 'Two Hundred');\ntopAgencyMap.set('300', 'Three Hundred');\ntopAgencyMap.set('500', 'Five Hundred');\n\n// TODO: This needs to be in translation.tsx\nexport const viewOptionsMap = new Map();\nviewOptionsMap.set(Period.YTD.toString(), 'Year to Date');\nviewOptionsMap.set(Period.MONTH.toString(), 'Last Month');\nviewOptionsMap.set(Period.CUSTOM.toString(), 'Custom Dates');\n\nexport const nameSuffixMap = new Map();\nnameSuffixMap.set('1st', '1st');\nnameSuffixMap.set('2nd', '2nd');\nnameSuffixMap.set('3rd', '3rd');\nnameSuffixMap.set('4th', '4th');\nnameSuffixMap.set('JR', 'Jr');\nnameSuffixMap.set('SR', 'Sr');\n\nexport const genderMap = new Map();\ngenderMap.set('Unknown', 'Unknown');\ngenderMap.set('Male', 'Male');\ngenderMap.set('Female', 'Female');\ngenderMap.set('X', 'X');\ngenderMap.set('I', 'Intersex');\n\nexport const openStateNameMap = new Map();\nopenStateNameMap.set('*OPN', 'Open States Only');\nopenStateNameMap.set('FL', 'Florida');\nopenStateNameMap.set('GA', 'Georgia');\nopenStateNameMap.set('IL', 'Illinois');\nopenStateNameMap.set('IN', 'Indiana');\n\nexport const stateNameMap = new Map();\nstateNameMap.set('*STA', 'US States');\nstateNameMap.set('*TER', 'US Territories');\nstateNameMap.set('*CAN', 'Canada');\nstateNameMap.set('*OPN', 'Open States Only');\nstateNameMap.set('ALL', 'All States');\n\nstateNameMap.set('AL', 'Alabama');\nstateNameMap.set('AK', 'Alaska');\nstateNameMap.set('AZ', 'Arizona');\nstateNameMap.set('AR', 'Arkansas');\nstateNameMap.set('CA', 'California');\nstateNameMap.set('CO', 'Colorado');\nstateNameMap.set('CT', 'Connecticut');\nstateNameMap.set('DE', 'Delaware');\nstateNameMap.set('FL', 'Florida');\nstateNameMap.set('GA', 'Georgia');\nstateNameMap.set('HI', 'Hawaii');\nstateNameMap.set('ID', 'Idaho');\nstateNameMap.set('IL', 'Illinois');\nstateNameMap.set('IN', 'Indiana');\nstateNameMap.set('IA', 'Iowa');\nstateNameMap.set('KS', 'Kansas');\nstateNameMap.set('KY', 'Kentucky');\nstateNameMap.set('LA', 'Louisiana');\nstateNameMap.set('ME', 'Maine');\nstateNameMap.set('MD', 'Maryland');\nstateNameMap.set('MA', 'Massachusetts');\nstateNameMap.set('MI', 'Michigan');\nstateNameMap.set('MN', 'Minnesota');\nstateNameMap.set('MS', 'Mississippi');\nstateNameMap.set('MO', 'Missouri');\nstateNameMap.set('MT', 'Montana');\nstateNameMap.set('NE', 'Nebraska');\nstateNameMap.set('NV', 'Nevada');\nstateNameMap.set('NH', 'New Hampshire');\nstateNameMap.set('NJ', 'New Jersey');\nstateNameMap.set('NM', 'New Mexico');\nstateNameMap.set('NY', 'New York');\nstateNameMap.set('NC', 'North Carolina');\nstateNameMap.set('ND', 'North Dakota');\nstateNameMap.set('OH', 'Ohio');\nstateNameMap.set('OK', 'Oklahoma');\nstateNameMap.set('OR', 'Oregon');\nstateNameMap.set('PA', 'Pennsylvania');\nstateNameMap.set('RI', 'Rhode Island');\nstateNameMap.set('SC', 'South Carolina');\nstateNameMap.set('SD', 'South Dakota');\nstateNameMap.set('TN', 'Tennessee');\nstateNameMap.set('TX', 'Texas');\nstateNameMap.set('UT', 'Utah');\nstateNameMap.set('VT', 'Vermont');\nstateNameMap.set('VA', 'Virginia');\nstateNameMap.set('WA', 'Washington');\nstateNameMap.set('DC', 'Washington, DC');\nstateNameMap.set('WV', 'West Virginia');\nstateNameMap.set('WI', 'Wisconsin');\nstateNameMap.set('WY', 'Wyoming');\n\nstateNameMap.set('GU', 'Guam');\nstateNameMap.set('PR', 'Puerto Rico');\nstateNameMap.set('VI', 'Virgin Islands');\n\nstateNameMap.set('AB', 'Alberta');\nstateNameMap.set('BC', 'British Columbia');\nstateNameMap.set('MB', 'Manitoba');\nstateNameMap.set('NB', 'New Brunswick');\nstateNameMap.set('NF', 'Newfoundland'); // TODO: This is wrong (in CRU). Should be NL = Newfoundland and Labrador\nstateNameMap.set('NT', 'Northwest Territories'); //\n//stateNameMap.set('NU', 'Nunavut'); // TODO: This is missing in CRU\nstateNameMap.set('NS', 'Nova Scotia');\nstateNameMap.set('ON', 'Ontario');\nstateNameMap.set('PE', 'Prince Edward Island');\nstateNameMap.set('PQ', 'Quebec'); // TODO: This is wrong (in CRU). Should be QU = Quebec\nstateNameMap.set('SK', 'Saskatchewan');\nstateNameMap.set('YT', 'Yukon Territory');\n\n\nexport const mvrStatesMap = new Map();\nALL_MVR_STATES_DROPDOWN.forEach(code => {\n\tmvrStatesMap.set(code, stateNameMap.get(code));\n});\n\nexport const allUsStatesMap = new Map();\nUS_STATES.forEach(code => {\n\tallUsStatesMap.set(code, stateNameMap.get(code));\n});","import { action, computed, observable, ObservableMap, toJS } from 'mobx';\nimport { FieldFormatter, NamedFieldFormatter } from './formatters';\nimport { FieldValidator, NamedFieldValidator, ValidationResult } from './validators';\n\nexport type FormValue = boolean | string | string[] | number;\n\nexport class Form {\n\tconstructor(name: string, validators?: { [key: string]: { [key: string]: FieldValidator[] } }, defaultProviders?: { [key: string]: () => any }, formatters?: { [key: string]: FieldFormatter[] }) {\n\t\tthis.name = name;\n\t\tthis.values = new ObservableMap();\n\t\tthis.errors = new ObservableMap();\n\t\tthis.validators = new ObservableMap();\n\t\tthis.formatters = new ObservableMap();\n\t\tthis.defaultProviders = new ObservableMap(defaultProviders);\n\n\t\tif (validators) {\n\t\t\tObject.keys(validators).forEach(field => {\n\t\t\t\tlet vm = validators[field];\n\t\t\t\tObject.keys(vm).forEach(name => {\n\t\t\t\t\tlet x = vm[name];\n\t\t\t\t\tif (x) {\n\t\t\t\t\t\tlet nvs = x.map(v => new NamedFieldValidator(v, name));\n\t\t\t\t\t\tif (this.validators.get(field)) {\n\t\t\t\t\t\t\tthis.validators.get(field).set(name, nvs);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlet nvMap = new ObservableMap();\n\t\t\t\t\t\t\tnvMap.set(name, nvs);\n\t\t\t\t\t\t\tthis.validators.set(field, nvMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\tif (formatters) {\n\t\t\tObject.keys(formatters).forEach(n => {\n\t\t\t\tlet vs = formatters[n];\n\t\t\t\tlet nvs = vs.map(v => new NamedFieldFormatter(v, formatters[n].keys.name));\n\t\t\t\tthis.formatters.set(n, nvs);\n\t\t\t});\n\t\t}\n\n\t\tthis.populateDefaults();\n\n\t\tthis.defaultProviders.observe(changes => {\n\t\t\tthis.populateDefaults();\n\t\t});\n\n\t}\n\n\tname: string;\n\n\t@observable\n\tprivate values: ObservableMap;\n\n\t@observable\n\tdefaultProviders: ObservableMap FormValue>;\n\n\t@observable\n\tformatters: ObservableMap;\n\n\t@observable\n\terrors: ObservableMap;\n\n\t@observable\n\tvalidators: ObservableMap>;\n\n\tpublic addListener(field: string, callback: (field: string, value: any, type: string) => void) {\n\t\tthis.values.observe(change => {\n\t\t\tif (change.name == field) {\n\t\t\t\tcallback(field, change.object, change.type);\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic setValue(field: string, value: any) {\n\t\tlet formatters = this.formatters.get(field);\n\t\tlet deformatted: string;\n\t\tif (formatters) {\n\n\t\t\tif (formatters.length > 0) {\n\t\t\t\tformatters.forEach(formatter => {\n\t\t\t\t\tdeformatted = formatter.deformat(value);\n\t\t\t\t\tthis.values.set(field, deformatted);\n\t\t\t\t})\n\t\t\t\treturn deformatted;\n\t\t\t}\n\t\t}\n\n\t\tthis.values.set(field, value);\n\t\treturn value;\n\t}\n\n\tpublic getMultiValue(field: string): string[] {\n\t\tlet v = this.values.get(field);\n\n\t\tif (typeof v === 'string') {\n\t\t\treturn [v];\n\t\t}\n\n\t\treturn v as string[];\n\t}\n\n\tpublic isSelected(field: string): boolean {\n\t\tlet value = this.values.get(field);\n\t\treturn !!value;\n\t}\n\n\tpublic getValue(field: string): string {\n\t\tlet value = this.values.get(field);\n\n\t\tif (value && !(typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number')) {\n\t\t\tthrow new Error(`Cannot call getValue() on ${field} because it is multi-valued.`);\n\t\t}\n\n\t\tlet formatters = this.formatters.get(field);\n\t\tlet formatted: string;\n\n\t\tif (formatters && formatters.length > 0) {\n\t\t\tformatters.forEach(formatter => {\n\t\t\t\tformatted = formatter.format(value as string);\n\t\t\t})\n\t\t\treturn formatted\n\t\t}\n\n\t\treturn value as string;\n\t}\n\n\t@action.bound\n\tpublic clearValue(field: string) {\n\t\tthis.values.delete(field);\n\t}\n\n\t@action.bound\n\tpublic getValues(): ObservableMap {\n\t\treturn this.values;\n\t}\n\n\t@computed\n\tpublic get keys(): string[] {\n\t\tlet valueObject = toJS(this.values);\n\t\treturn Object.keys(valueObject);\n\t}\n\n\t@action.bound\n\tpublic onBlur(name: string) {\n\t\tthis.validate(name);\n\t}\n\n\t@action.bound\n\tclear(defaults = true) {\n\t\tthis.values.clear();\n\t\tthis.errors.clear();\n\t\tif (defaults) {\n\t\t\tthis.populateDefaults();\n\t\t}\n\t}\n\n\t@action.bound\n\tclearValidators() {\n\t\tthis.validators.clear();\n\t}\n\n\t@action.bound\n\tpublic populateDefaults() {\n\t\tif (this.defaultProviders) {\n\t\t\tfor (let name of this.defaultProviders.keys()) {\n\t\t\t\tlet fn = this.defaultProviders.get(name);\n\t\t\t\tlet value = fn();\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.values.set(name, value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t@computed\n\tget valid(): boolean {\n\t\tlet value = true;\n\t\tif (this.errors.size > 0) {\n\t\t\tfor (var [key, val] of this.errors.entries()) {\n\t\t\t\tif (val) {\n\t\t\t\t\tval.forEach((er: ValidationResult) => {\n\t\t\t\t\t\tif (er.level == 'error') {\n\t\t\t\t\t\t\tvalue = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn value;\n\n\t}\n\n\t@action.bound\n\tprivate validate(field: string) {\n\t\tlet validators = this.validators.get(field);\n\t\tthis.errors.delete(field);\n\t\tif (validators) {\n//\t\t\tthis.errors.delete(field);\n\t\t\tvalidators.forEach(validator => {\n\t\t\t\tlet value = this.values.get(field);\n\t\t\t\tvalidator.forEach(v => {\n\t\t\t\t\tlet result = v.validate(field, value, this);\n\t\t\t\t\tif (result && result.level == 'error') {\n\t\t\t\t\t\tthis.addError(field, result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t})\n\t\t}\n\t}\n\n\taddError(name: string, error: ValidationResult) {\n\t\tlet errors = this.errors.get(name);\n\t\tif (!errors || errors.length == 0) {\n\t\t\terrors = [];\n\t\t\terrors.push(error);\n\t\t}\n\t\terrors.forEach((er: ValidationResult) => {\n\t\t\tif (er.code != error.code) {\n\t\t\t\terrors.push(error);\n\t\t\t}\n\t\t});\n\t\tthis.errors.set(name, errors);\n\t}\n\n\tpublic removeErrors(name: string, code?: string) {\n\t\tlet errors = this.errors.get(name);\n\t\tif (!errors) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (code) {\n\t\t\terrors.forEach((er: ValidationResult) => {\n\t\t\t\tif (er.code == code) {\n\t\t\t\t\tconst index = errors.indexOf(er, 0);\n\t\t\t\t\tif (index > -1) {\n\t\t\t\t\t\terrors.splice(index, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\terrors.splice(0, errors.length);\n\t\t}\n\t}\n\n\t@action.bound\n\tpublic validateAll() {\n\t\tthis.validators.forEach((validators, name) => this.validate(name));\n\t}\n\n\tpublic addValidator(field: string, validator: FieldValidator, name?: string) {\n\t\tlet validators = this.validators.get(field) || new ObservableMap();\n\t\tlet nv = new NamedFieldValidator(validator, name);\n\t\tvalidators.set(name, [nv]);\n\t\tthis.validators.set(field, validators);\n\t}\n\n\tpublic addFormatter(field: string, formatter: FieldFormatter, name?: string) {\n\t\tlet formatters = this.formatters.get(field) || [];\n\t\tformatters = formatters.filter(fv => fv.name && fv.name != name);\n\t\tlet nv = new NamedFieldFormatter(formatter, name);\n\t\tformatters.push(nv);\n\t\tthis.formatters.set(field, formatters);\n\t}\n\n\tpublic checkErrorCode(field: string, errorCode?: string) {\n\t\tlet Error = this.errors.get(field);\n\t\tif (Error) {\n\t\t\tfor (let i of Error) {\n\t\t\t\tif (i.code == errorCode) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic replaceValidators(validators: { [key: string]: { [key: string]: FieldValidator[] } }) {\n\n\t\tif (validators) {\n\t\t\tObject.keys(validators).forEach(field => {\n\t\t\t\tlet vm = validators[field];\n\t\t\t\tObject.keys(vm).forEach(name => {\n\t\t\t\t\tlet x = vm[name];\n\t\t\t\t\tif (x) {\n\t\t\t\t\t\tlet nvs = x.map(v => new NamedFieldValidator(v, name));\n\t\t\t\t\t\tif (this.validators.get(field)) {\n\t\t\t\t\t\t\tthis.validators.get(field).set(name, nvs);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlet nvMap = new ObservableMap();\n\t\t\t\t\t\t\tnvMap.set(name, nvs);\n\t\t\t\t\t\t\tthis.validators.set(field, nvMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\tpublic addFormatters(formatters: { [key: string]: FieldFormatter[] }) {\n\t\tif (formatters) {\n\t\t\tObject.keys(formatters).forEach(n => {\n\t\t\t\tlet vs = formatters[n];\n\t\t\t\tlet nvs = vs.map((v: any) => new NamedFieldFormatter(v, formatters[n].keys.name));\n\t\t\t\tthis.formatters.set(n, nvs);\n\t\t\t});\n\t\t}\n\t}\n\n}\n","import * as moment from \"moment\";\nimport { maskToRegExp, timeParser } from \"./validators\";\n\nexport class FieldFormatter {\n\tconstructor(readonly format: (s: string) => string, readonly deformat: (s: string) => string) {\n\t}\n}\n\nexport class NamedFieldFormatter extends FieldFormatter {\n\tconstructor(readonly formatter: FieldFormatter, readonly name?: string) {\n\t\tsuper(formatter.format, formatter.deformat);\n\t}\n}\n\nexport const nonDigitStripper = (s: string): string => {\n\treturn s.replace(/\\D/g, '');\n}\n\nexport const nonAlphaNumericStripper = (s: string): string => {\n\treturn s.replace(/[^a-z0-9]+/gi, '');\n}\n\nexport const canadaPostCodeFormatter: FieldFormatter = {\n\tformat: (s: string) => {\n\t\tif (!s) return undefined;\n\t\ts = s.toUpperCase();\n\t\tif (s.length < 4) return s;\n\t\treturn s.substr(0, 3) + \" \" + s.substr(3);\n\t},\n\tdeformat: nonAlphaNumericStripper\n}\n\nexport const timeFieldFormatter: FieldFormatter = {\n\tformat: (s: string) => {\n\t\treturn s;\n\t},\n\tdeformat: (s: string) => {\n\t\tlet parsed = timeParser(s);\n\t\tif (parsed) return parsed;\n\t\treturn s;\n\t}\n}\n\nexport const ssnFormatter = (s: string): string => {\n\tif (!s) return undefined;\n\n\tlet len = Math.min(s.length, 9);\n\n\tif (len < 4) return s;\n\tif (len < 6) return `${s.substr(0, 3)}-${s.substr(3)}`;\n\treturn `${s.substr(0, 3)}-${s.substr(3, 2)}-${s.substr(5)}`;\n}\n\nexport const ssnFieldFormatter: FieldFormatter = {\n\tformat: ssnFormatter,\n\tdeformat: nonDigitStripper\n}\n\n// from com.cp.cru.gwt.orderpoint.client.common.RegExTextBox.java\nexport const NUMERIC_MASK = \"#\";\nexport const ALPHA_MASK = \"?\";\nexport const ALPHA_NUMERIC_MASK = \"!\";\nexport const ALL_MASK = \"*\";\nexport const NUMBER_MASK_WITH_ASTERISK = \"@\";\n\nexport const maskFormatterFactory = (format: string, more?: (s: string) => string) =>\n\t(unformatted: string): string => {\n\t\tif (!unformatted) return '';\n\n\t\t//let regExp = maskToRegExp(format);\n\n\t\tlet is = 0;\n\t\tlet formatted = '';\n\t\tlet iz = 0;\n\n\t\tfor (let i = 0; i < format.length && is < unformatted.length; i++) {\n\t\t\tlet f = format[i];\n\t\t\tlet regExp = maskToRegExp(f);\n\t\t\tif (f == NUMERIC_MASK || f == ALPHA_MASK || f == ALPHA_NUMERIC_MASK || f == ALL_MASK || f == NUMBER_MASK_WITH_ASTERISK) {\n\t\t\t\tif (!regExp.test(unformatted[is])) {\n\t\t\t\t\treturn more && formatted ? more(formatted) : formatted;\n\t\t\t\t}\n\t\t\t\tformatted += unformatted[is];\n\t\t\t\tis++;\n\t\t\t} else {\n\t\t\t\tformatted += f;\n\t\t\t\tiz++;\n\t\t\t}\n\t\t}\n\n\t\treturn more && formatted ? more(formatted) : formatted;\n\t}\n\nexport const maskDeformatterFactory = (format: string) =>\n\t(formatted: string): string => {\n\t\tif (!formatted) return '';\n\n\t\tlet is = 0;\n\t\tlet deformatted = '';\n\n\t\tfor (let i = 0; i < format.length && is < formatted.length; i++) {\n\t\t\tlet f = format[i];\n\t\t\tlet regExp = maskToRegExp(f);\n\t\t\tif (f == NUMERIC_MASK || f == ALPHA_MASK || f == ALPHA_NUMERIC_MASK || f == ALL_MASK || f == NUMBER_MASK_WITH_ASTERISK) {\n\t\t\t\tif (regExp.test(formatted[is])) {\n\t\t\t\t\tdeformatted += formatted[is];\n\t\t\t\t\tis++;\n\t\t\t\t} else {\n\t\t\t\t\t//console.log(deformatted);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (f == formatted[is]) {\n\t\t\t\t\tis++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn deformatted;\n\t}\n\nexport const maskFormattingFactory = (format: string, more?: (s: string) => string): FieldFormatter => {\n\treturn {\n\t\tformat: maskFormatterFactory(format, more),\n\t\tdeformat: maskDeformatterFactory(format)\n\t}\n}\n\nexport const dateFormatter = (locale: string) =>\n\t(s: string): string => {\n\t\tif (!s) return undefined;\n\t\tif (s.length >= 8) {\n\t\t\tmoment.locale(locale);\n\t\t\t// Get locale data\n\t\t\tlet localeData = moment.localeData();\n\t\t\tlet format = localeData.longDateFormat('L')\n\n\t\t\tif (s.includes('/') || s.includes('-')) {\n\t\t\t\tif (s.length < 10) {\n\t\t\t\t\treturn s\n\t\t\t\t}\n\t\t\t}\n\t\t\tlet m = moment(s).format(format);\n\t\t\tlet date = moment(m, format);\n\t\t\treturn date.isValid() ? m : s;\n\t\t}\n\t\treturn s\n\n\t}\n\nexport const dateDeformatter = (locale: string) =>\n\t(s: string): string => {\n\t\tif (!s) return undefined;\n\t\tif (s.length >= 8) {\n\t\t\tmoment.locale(locale);\n\t\t\t// Get locale data\n\t\t\tlet localeData = moment.localeData();\n\t\t\t//let format = localeData.longDateFormat('L');\n\n\t\t\tif (s.includes('/') || s.includes('-')) {\n\t\t\t\tif (s.length < 10) {\n\t\t\t\t\treturn s\n\t\t\t\t}\n\t\t\t}\n\t\t\tlet m = moment(s).format('YYYY-MM-DD');\n\t\t\tlet date = moment(m, 'YYYY-MM-DD');\n\t\t\treturn date.isValid() ? m : s;\n\t\t}\n\t\treturn s;\n\n\t}\n\nexport const dateFormattingFactory = (locale: string): FieldFormatter => {\n\treturn {\n\t\tformat: dateFormatter(locale),\n\t\tdeformat: dateDeformatter(locale)\n\t}\n}\n\nexport const formFormatters: { [key: string]: FieldFormatter[] } = {\n\t'parties.0.ssn': [maskFormattingFactory('@@@-@@-@@@@')],\n\t'parties.0.phone': [maskFormattingFactory('###-###-####')],\n\t'incidentLocation.postalCa': [canadaPostCodeFormatter],\n\t'parties.0.address.postalCa': [canadaPostCodeFormatter],\n\tincidentTime: [timeFieldFormatter]\n}","import { GroupBy, Period, VolumeType } from '../components/transform';\nimport { Address, ListRequest, Phone } from './common';\n\nclass InquiryIdentifier {\n\tstatic idExtractor(data: InquiryIdentifier): string {\n\t\treturn data.id;\n\t}\n\tid: string;\n\tsource: string;\n\treportType: string;\n\tsourceId: string;\n\taccountNumber: string;\n\tpreviousInquiryId?: string;\n\treorderId?: string;\n}\n\nexport class InquiryView extends InquiryIdentifier {\n\tuserId: string;\n\tadjusterId: string;\n\tclaimNumber: string;\n\taccountNumber: string;\n\tsubmissionDateTime: string;\n\tcompletedDateTime: string;\n\tstatusDateTime: string;\n\tarchivedDateTime: string;\n\tresultDeletedDateTime: string;\n\tincidentDateTime: string;\n\tincidentTime: string;\n\tincidentDate: string;\n\tagencyType: string;\n\tagencyName: string;\n\tsourceStatus: string;\n\tsourceReason: string;\n\tstatus: string;\n\tformData: string;\n\tparties: PartyDetails[];\n\tvehicle: Vehicle;\n\ttatStatus: string;\n\ttatTime: string;\n\tisReportNotAvailableForPublic: boolean;\n\tcanBeReordered: boolean;\n\t[key: string]: any;\n\n}\n\nexport class ManagementReport {\n\tstatic idExtractor(data: ManagementReport): string {\n\t\treturn data.id;\n\n\t}\n\tid: string;\n\tuserId: string;\n\tusers: string;\n\tname: string;\n\ttype: VolumeType;\n\tperiod: Period;\n\tfromDate: string;\n\ttoDate: string;\n\tgroupBy: GroupBy[];\n\taccounts: string[];\n\treportType: string[];\n\temails: string;\n\tsearchFilters: string;\n\tsubscribed: boolean;\n\tstate: string;\n\ttopAgency: string;\n\tparsedSearchFilters: ManagementReport;\n\t[key: string]: any;\n}\n\nexport class PartyDetails {\n\tnumber: number;\n\tdob: string;\n\tssn: string;\n\tphone: Phone;\n\tdlNumber: string;\n\tdlState: string;\n\tperson: PersonName;\n\tsuffix: string;\n\tgender: string;\n\taddress: Address;\n}\nexport class PersonName {\n\tfirstName: string;\n\tlastName: string;\n\tmiddleName: string;\n}\n\nexport class Inquiry extends InquiryView {\n\n\torderType: string;\n\tmatch: string;\n\tincidentDateTo: string;\n\tincidentLocation: Address;\n\treportNumber: string;\n\tlocalReportNumber: string;\n\tstateReportNumber: string;\n\treportID: string;\n\tprecinct: string;\n\tpolicyNumber: string;\n\tpolicyState: string;\n\tadditionalInfo: string;\n\tmatchedReport: InquiryView;\n\tforcedDMV: string;\n\tamplifiedMVR: string;\n}\n\nclass Vehicle {\n\tmake: string;\n\tmodel: string;\n\ttag: string;\n\ttagState: string;\n\tvin: string;\n\tyear: string;\n}\n\nexport class ParameterizedListRequest extends ListRequest {\n\tparams: { [key: string]: string };\n}\n\nexport class RenderedReport extends InquiryIdentifier {\n\toriginalFormat: string;\n\tdisplayFormat: string;\n\n\toriginalData: string;\n\tdisplayData: string[];\n\tcdisReorder: boolean;\n\n\t[key: string]: any;\n}\n\nexport class UserConfig {\n\tusername: string;\n\thighVolumeAccountPullMonths: number;\n\taccountInfo: {\n\t\t[key: string]: AccountInfo;\n\t}\n\tproductConfig: Map\n\tstartParameters: LaunchParameters;\n}\n\nexport class AdjusterAccounts {\n\tadjusterFullName: string;\n\taccounts: {\n\t\t[key: string]: AccountInfo;\n\t}\n}\n\nexport class AccountInfo {\n\tname: string;\n\tnumber: string;\n\tsuffix: string;\n\tclaimMask: string;\n\tclaimMaskValidateLength: number;\n\tdeliveryEmail: string;\n\tisAdded: boolean;\n\tflagMaskSsn: number;\n\tportalDataFeedFlag: boolean;\n}\n\nexport class AgencyInfo {\n\tname: string;\n\tstate: string;\n\ttype: string;\n\n\t[key: string]: any;\n}\n\nexport class MvrDlFormat {\n\tstateCd: string;\n\tformat: string;\n\tdescription: string;\n\tmask: string;\n\t[key: string]: any;\n}\n\nexport class LaunchParameters {\n\taccount: string;\n\treport: string;\n\treportType: string;\n\tuser: string;\n\tsource: string;\n\toperation: string;\n\n\t[key: string]: any;\n}\nexport class UserPrefs {\n\t[key: string]: { [key: string]: string }\n}\n\nexport class TatResponse {\n\ttatCode: string;\n\ttatTime: string;\n}\n\nexport class ImageRetrievalRequest {\n\treportFormat: string;\n\tsourceId: string;\n\toperation: string;\n\tfetchFromCru: boolean;\n\tssnMaskType: string;\n}\n\nexport class CruIvrRecord {\n\tclaimNumber: string;\n\torderId: string;\n\ttatCode: string;\n\ttatTime: string;\n\tcallDataId: number;\n\tterminationCode: string;\n\tisActiveTerminationCode: boolean;\n}","\nexport interface JWT {\n\tiss: string;\n\tiat: number;\n\texp: number;\n\tsub: string;\n\tuser: string;\n}\n\nexport class User {\n\tusername: string;\n\tname: string;\n\temail: string;\n\tsessionId: string;\n\tauthorities: string[]\n\tcustomerNumber: string;\n\tallowedCustomerNumbers: string[];\n\taccountNumbers: string[];\n\tenv: string;\n\tglba?: number;\n\tdppa?: number;\n\tidsLoginBaseUrl: string;\n}\n\nexport const stripDomain = (username: string) => {\n\tif (!username) return undefined;\n\treturn username.split('@')[0];\n}\n","import * as moment from \"moment\";\nimport { state } from \"../services/state\";\nimport { caseInsensitiveSubstringFilter, stateNameMap } from \"./common\";\nimport { Form } from \"./form\";\nimport { MvrDlFormat } from \"./model\";\n\nexport class FieldError {\n\tfieldName: string;\n\tfieldLabel?: string;\n\tparameters?: string[];\n\tcode: string;\n}\n\nexport type ValidationResultLevel = 'error' | 'warning' | 'success' | 'info';\n\nexport type validationStatus = 'default' | 'valid' | 'invalid' | 'validating';\n\nexport class ValidationResult extends FieldError {\n\tlevel: ValidationResultLevel;\n}\n\nexport type FieldValidator = (field: string, value: any, form?: Form) => ValidationResult;\n\nexport class NamedFieldValidator {\n\tconstructor(readonly validate: FieldValidator, readonly name?: string) {\n\t\t// ts constructors populate instance variables automatically\n\t}\n}\n\nexport const required: FieldValidator = (name: string, value: any) => {\n\tif (!value) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'REQ'\n\t\t}\n\t}\n\tif (value instanceof Array) {\n\t\tif (value.length == 0) {\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'REQ'\n\t\t\t}\n\t\t}\n\t}\n\n\tif (value instanceof String && (value as string).trim().length == 0) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'REQ'\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport const canadaPostCodeValidator: FieldValidator = (name: string, value: any) => {\n\n\tconst regex = /^(?!.*[DFIOQU])[A-VXY]\\d[A-Za-z][ -]?\\d[A-Za-z]\\d$/i;\n\n\tif (!value) return undefined;\n\n\tlet valid = regex.test(value);\n\n\tif (!valid) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'IPC'\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport const digitsOnly: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\n\tlet stripped = value.replace(/\\D/g, '');\n\n\tif (stripped !== value) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'NUM'\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport const emailValidation: FieldValidator = (name: string, value: any) => {\n\n\tconst regexp = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n\tif (!value) return undefined;\n\n\tif (value.indexOf(',') != -1) {\n\t\t//multiple values\n\t\tlet emailArray = value.split(',');\n\t\tif (emailArray.length > 5) {\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'EML'\n\t\t\t}\n\t\t}\n\t\tfor (let email of emailArray) {\n\t\t\tif (!regexp.test(email)) {\n\t\t\t\treturn {\n\t\t\t\t\tfieldName: name,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: 'EML'\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//single value\n\t\tif (!regexp.test(value)) {\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'EML'\n\t\t\t}\n\t\t}\n\t}\n\treturn undefined;\n}\n\nexport const alphaNumericValidation: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\n\tlet stripped = new RegExp(/^[a-zA-Z0-9]+$/g);\n\tlet valid = stripped.test(value)\n\n\tif (!valid) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'ALP'\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport const invalidCharacterValidator: FieldValidator = (name: string, value: any) => {\n\tlet enabled = state.ui.cache.config.get('clrp.input.feild.validation.enabled');\n\tconsole.log('invalidCharacterValidator called for ' + name + ' : ' + value + ' enabled :' + enabled);\n\tif (enabled === false || enabled === \"false\" || !enabled || !value) return undefined;\n\t//let stripped = new RegExp(/.*[\\u0000-\\u001f$+<->^`|~-\\u009f¢-©¬-±´¶¸×÷˂-˅˒-˟˥-˫˭˯-˿͵΄-΅϶҂\\u0600-\\u0603؆-؈؋؎-؏\\u06dd۩۽-۾\\u070f߶৲-৳৺૱୰௳-௺౿ೱ-ೲ൹฿༁-༃༓-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎-࿏႞-႟፠᎐-᎙\\u17b4-\\u17b5៛᥀᧠-᧿᭡-᭪᭴-᭼᾽᾿-῁῍-῏῝-῟῭-`´-῾\\u200b-\\u200f\\u202a-\\u202e⁄⁒\\u2060-\\u2064\\u206a-\\u206f⁺-⁼₊-₌₠-₵℀-℁℃-℆℈-℉℔№-℘℞-℣℥℧℩℮℺-℻⅀-⅄⅊-⅍⅏←-⌨⌫-⏧␀-␦⑀-⑊⒜-ⓩ─-⚝⚠-⚼⛀-⛃✁-✄✆-✉✌-✧✩-❋❍❏-❒❖❘-❞❡-❧➔➘-➯➱-➾⟀-⟄⟇-⟊⟌⟐-⟥⟰-⦂⦙-⧗⧜-⧻⧾-⭌⭐-⭔⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒-〓〠〶-〷〾-〿゛-゜㆐-㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉃㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꜀-꜖꜠-꜡꞉-꞊꠨-꠫\\ud801-\\ud833\\ud836-\\ud83b\\ud83d-\\udb3f\\udb41-\\udb7f\\udc00-\\uf8ff﬩﷼-﷽﹢﹤-﹦﹩\\ufeff$+<->^`|~¢-₩│-○\\ufff9-�]|[\\udb80-\\udbbe\\udbc0-\\udbfe][\\udc00-\\udfff]|\\ud800[\\udd02\\udd37-\\udd3f\\udd79-\\udd89\\udd90-\\udd9b\\uddd0-\\uddfc]|\\ud834[\\udc00-\\udcf5\\udd00-\\udd26\\udd29-\\udd64\\udd6a-\\udd6c\\udd73-\\udd7a\\udd83-\\udd84\\udd8c-\\udda9\\uddae-\\udddd\\ude00-\\ude41\\ude45\\udf00-\\udf56]|\\ud835[\\udec1\\udedb\\udefb\\udf15\\udf35\\udf4f\\udf6f\\udf89\\udfa9\\udfc3]|\\ud83c[\\udc00-\\udc2b\\udc30-\\udc93]|\\udb40[\\udc01\\udc20-\\udc7f]|\\udbbf[\\udc00-\\udffd]|\\udbff[\\udc00-\\udffd]|[\\ud800\\ud834-\\ud835\\ud83c\\udb40\\udb80-\\udbff].*/g);\n\t//https://apps.timwhitlock.info/js/regex#\n\t//Above Regex is generated for Others[Cc (control), Cf (Format), Co (Private Use), Cs (Surrogate)] Symbols[Sc (Currency), Sk (Modifier), Sm (Mathematical), So (Other)]\n\n\tlet stripped = new RegExp(/[^\\x20-\\x7f]/g);\n\t//https://www.asciitable.com/\n\n\tlet invalid = stripped.test(value)\n\tconsole.log('invalidCharacterValidator for field : ' + name + ' is invalid : ' + invalid);\n\tif (invalid) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'ICH'\n\t\t}\n\t}\n\treturn undefined;\n}\n\nexport const validDate: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\tlet date = moment(value, 'YYYY-MM-DD', true);\n\tif (!date.isValid()) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'IDF'\n\t\t}\n\t}\n\treturn {\n\t\tfieldName: name,\n\t\tlevel: 'info',\n\t\tcode: '',\n\t\tnewValue: moment(value, 'MM/DD/YYYY', true)\n\t}\n}\n\n\nexport const notFuture: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\n\tlet m = moment(value);\n\tlet today = moment().endOf('day');\n\n\tif (m.isValid() && !m.isBefore(today)) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'NFD'\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport const timeParser = (s: string) => {\n\tif (!s) return undefined;\n\n\tconst format24 = /^([01]\\d|2[0-3]):?([0-5]\\d)(:\\d\\d)?$/g;\n\tconst format12 = /^(\\d|1[0-2]):?([0-5]\\d)?\\s*([AaPp][mM]?)$/;\n\n\tlet p24 = format24.exec(s);\n\tif (p24) {\n\t\tlet h = p24[1];\n\t\tlet m = p24[2] || '0';\n\n\t\treturn (h.length < 2 ? '0' : '') + h + ':' + (m.length < 2 ? '0' : '') + m;\n\t}\n\n\tlet p12 = format12.exec(s);\n\tif (p12) {\n\t\tlet h = p12[1];\n\t\tlet m = p12[2] || '0';\n\t\tlet ap = p12[3][0].toLowerCase();\n\n\t\tif (ap == 'p') {\n\t\t\tlet h24 = parseInt(h) + 12;\n\t\t\th = h24.toString();\n\t\t}\n\n\t\treturn (h.length < 2 ? '0' : '') + h + ':' + (m.length < 2 ? '0' : '') + m;\n\t}\n\n\treturn undefined;\n}\n\n\nexport const validTime: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\tlet parsed = timeParser(value);\n\tif (parsed) return undefined;\n\n\treturn {\n\t\tfieldName: name,\n\t\tlevel: 'error',\n\t\tcode: 'ITF'\n\t}\n}\n\nexport const dropDownValidator: ((obj: Array | Map) => FieldValidator) = (obj) => {\n\treturn (name: string, value: string) => {\n\t\tif (!obj) return undefined;\n\t\tif (!value) return undefined;\n\t\tif (obj instanceof Map) {\n\t\t\tif (!(obj.has(value.toUpperCase()))) {\n\t\t\t\treturn {\n\t\t\t\t\tfieldName: name,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: 'IDV'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn undefined;\n\t\t}\n\t\tif (obj instanceof Array) {\n\t\t\tlet options = caseInsensitiveSubstringFilter(value, obj);\n\t\t\tif (options.length != 1) {\n\t\t\t\tif (obj.indexOf(value.toUpperCase()) == -1) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tfieldName: name,\n\t\t\t\t\t\tlevel: 'error',\n\t\t\t\t\t\tcode: 'IDV'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn undefined;\n\t\t}\n\t\treturn undefined;\n\t}\n}\n\nexport const digitsOnlyFactory: ((strip: boolean, format?: string) => FieldValidator) = (strip, format) => {\n\treturn (name: string, value: string) => {\n\n\t\tif (!value) return undefined;\n\n\t\tlet stripped = value.replace(/[^\\d\\*]+/g, '');\n\n\t\tif (strip) {\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tnewValue: stripped,\n\t\t\t\tlevel: 'info',\n\t\t\t\tcode: 'NUM'\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'NUM'\n\t\t}\n\t}\n}\n\nexport const lengthValidatorFactory: ((min: number, max?: number) => FieldValidator) = (min, max) => {\n\treturn (name: string, value: string) => {\n\n\t\tif (!value) return undefined;\n\n\t\tif (value.length < min) {\n\n\t\t\tif (min === max) {\n\t\t\t\treturn {\n\t\t\t\t\tfieldName: name,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: 'LEN',\n\t\t\t\t\tparameters: [String(max)]\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'MIL',\n\t\t\t\tparameters: [String(min)]\n\t\t\t}\n\t\t}\n\n\t\tif (max && value.length > max) {\n\t\t\treturn {\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'MXL',\n\t\t\t\tparameters: [String(max)]\n\t\t\t}\n\t\t}\n\n\t\treturn undefined;\n\t}\n}\n\n// from com.cp.cru.gwt.orderpoint.client.common.RegExTextBox.java\nconst MASK_REGEX: { [key: string]: string } = {\n\t'#': '[0-9]',\n\t'?': '[A-Z]',\n\t'!': '[A-Z0-9]',\n\t'*': '.*',\n\t'@': '[0-9*]'\n}\n\nexport const maskToRegExp_old = (mask: string): RegExp => {\n\n\tlet sRegEx = '^';\n\n\tfor (let i = 0; i < mask.length; i++) {\n\t\tlet m = mask[i];\n\t\tlet r = MASK_REGEX[m];\n\n\t\tif (r) {\n\t\t\tsRegEx += r;\n\t\t}\n\t}\n\n\tsRegEx += '$';\n\n\treturn new RegExp(sRegEx, 'i');\n}\n\nexport const maskToRegExp = (mask: string, len?: number): RegExp => {\n\n\tlet maskChars = [];\n\n\tlet sRegExp = '^';\n\n\tfor (let i = 0; i < mask.length; i++) {\n\t\tlet m = mask[i];\n\t\tlet r = MASK_REGEX[m];\n\n\t\tif (r) {\n\t\t\tmaskChars.push(r);\n\t\t}\n\t}\n\n\tfor (let i = 0; i < maskChars.length; i++) {\n\t\tlet c = maskChars[i];\n\t\tif (len) {\n\t\t\tif (i >= len) {\n\t\t\t\tsRegExp += c + '?';\n\t\t\t} else {\n\t\t\t\tsRegExp += c;\n\t\t\t}\n\n\t\t} else {\n\t\t\tsRegExp += c;\n\t\t}\n\t}\n\n\tsRegExp += '$';\n\n\treturn new RegExp(sRegExp, 'i');\n}\n\nconst MASK_HUMAN: { [key: string]: string } = {\n\t'#': '9',\n\t'?': 'A',\n\t'!': '?',\n\t'*': '*'\n}\n\nexport const maskToHumanReadable = (mask: string): string => {\n\n\tlet human = '';\n\n\tfor (let i = 0; i < mask.length; i++) {\n\t\tlet m = mask[i];\n\t\tlet h = MASK_HUMAN[m];\n\n\t\thuman += (h ? h : m);\n\t}\n\n\treturn human;\n}\n\n\nexport const validFromDate = (dates: string[]): FieldValidator => {\n\n\tlet to = moment(dates[0]);\n\tlet from = moment(dates[1]);\n\n\treturn (field: string, value: any) => {\n\t\tif (!from || !to) return undefined;\n\t\tlet thisYear = (new Date()).getFullYear();\n\t\tlet lastYearStart = new Date(\"1/1/\" + (thisYear - 1));\n\n\t\tif (from.isBefore(moment(lastYearStart.valueOf()))) {\n\t\t\treturn {\n\t\t\t\tfieldName: field,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'LYV'\n\t\t\t}\n\t\t}\n\t\tif (from.isSameOrBefore(to)) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'FDV'\n\t\t}\n\t}\n}\n\nexport const operatorFromDate = (dates: string[]): FieldValidator => {\n\n\tlet from = moment(dates[0]);\n\tlet to = moment(dates[1]);\n\n\treturn (field: string, value: any) => {\n\t\tif (!from || !to) return undefined;\n\t\tif (from.isBefore(to)) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'FDV'\n\t\t}\n\t}\n}\n\nexport const dateValidator = (name: string, dates: string[]): ValidationResult => {\n\tlet from = moment(dates[0], \"MM/DD/YYYY\", true);\n\tlet to = moment(dates[1], \"MM/DD/YYYY\", true);\n\n\tif(from.isValid() && to.isValid()){\n\t\tif(!from.isSameOrBefore(to)){\n\t\t\treturn{\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'FDV'\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(to.diff(from, 'days') > 31){\n\t\t\treturn{\n\t\t\t\tfieldName: name,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'XDV'\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn undefined;\n}\n\nexport const pdeDateValidator = (lossDates: string[], dataReceivedDates: string[]): FieldValidator => {\n\t\n\treturn (fname: string, value: any) => {\n\t\tlet result = required(fname, value);\n\t\tconsole.log(\"fname : \" +fname + \" value : \" +value + \" result: \" +result);\n\t\tlet hasLossDatesOnly = lossDates.length === 2 && dataReceivedDates.length === 0;\n\t\tlet hasDataReceivedDatesOnly = dataReceivedDates.length === 2 && lossDates.length === 0;\n\t\t\n\t\tif(result !== undefined){\n\t\t\tif(hasLossDatesOnly || hasDataReceivedDatesOnly){\n\t\t\t\treturn undefined;\n\t\t\t}else{\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\tlet date = moment(value, \"YYYY-MM-DD\", true);\n\t\tif(!date.isValid()){\n\t\t\treturn {\n\t\t\t\tfieldName: fname,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'XDF'\n\t\t\t}\n\t\t}\n\t\tconsole.log(\"fname : \" +fname + \" value : \" +value + \" Date is Valid: \" +date);\n\t\tconsole.log(\"fname : \" +fname + \" value : \" +value + \" Loss Dates: \" +lossDates + \" dataReceivedDates: \" +dataReceivedDates);\n\t\tif(lossDates.length > 0 && dataReceivedDates.length > 0){\n\t\t\tconsole.log(\" Loss Dates Length: \" +lossDates.length + \" dataReceivedDates Length: \" +dataReceivedDates.length);\n\t\t\treturn {\n\t\t\t\tfieldName: fname,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'XDO'\n\t\t\t}\n\t\t}\n\t\tif(lossDates.length > 0){\n\t\t\tlet dateValidationResult = dateValidator(fname, lossDates);\n\t\t\tconsole.log(\"fname : \" +fname + \" value : \" +value + \" dateValidationResult: \" +dateValidationResult);\n\t\t\tif(dateValidationResult !== undefined){\n\t\t\t\treturn dateValidationResult;\n\t\t\t}\n\t\t}\n\t\tif(dataReceivedDates.length > 0){\n\t\t\tlet dateValidationResult = dateValidator(fname, dataReceivedDates);\n\t\t\tconsole.log(\"fname : \" +fname + \" value : \" +value + \" dateValidationResult: \" +dateValidationResult);\n\t\t\tif(dateValidationResult !== undefined){\n\t\t\t\treturn dateValidationResult;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n}\n\nexport const fromToDateDiffValidator = (dates: string[]): FieldValidator => {\n\n\tlet from = moment(dates[0]);\n\tlet to = moment(dates[1]);\n\n\treturn (field: string, value: any) => {\n\t\tif (!from || !to) return undefined;\n\t\tif (!from.isBefore(to)) {\n\t\t\treturn {\n\t\t\t\tfieldName: field,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'FDV'\n\t\t\t}\n\t\t}\n\t\tconsole.log(\"From \" + from + \" To \" +to + \" Date Diff: \" +to.diff(from, 'days')+ \" Field: \" +field + \" Value: \" +value);\n\t\tif (to.diff(from, 'days') > 31) {\n\t\t\treturn {\n\t\t\t\tfieldName: field,\n\t\t\t\tlevel: 'error',\n\t\t\t\tcode: 'XDV'\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn undefined;\n\t}\n}\n\nexport const operatorToDate = (dates: string[]): FieldValidator => {\n\n\tlet from = moment(dates[0]);\n\tlet to = moment(dates[1]);\n\n\treturn (field: string, value: any) => {\n\t\tif (!from || !to) return undefined;\n\t\tif (from.isBefore(to)) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'TDV'\n\t\t}\n\t}\n}\n\nexport const validateDateRange = (fromDate: string, toDate: string): FieldValidator => {\n\tlet from = moment(fromDate);\n\tlet to = moment(toDate);\n\treturn (field: string, value: any) => {\n\t\tif (!from || !to) return undefined;\n\t\tif (from > to) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'FDV'\n\t\t}\n\t}\n};\n\nexport const validDateRange: FieldValidator = (name: string, value: any) => {\n\n\tif (!value) return undefined;\n\tlet date = moment(value, 'YYYY-MM-DD', true);\n\tif (!date.isValid()) {\n\t\treturn {\n\t\t\tfieldName: name,\n\t\t\tlevel: 'error',\n\t\t\tcode: 'IDF'\n\t\t}\n\t}\n\treturn {\n\t\tfieldName: name,\n\t\tlevel: 'info',\n\t\tcode: '',\n\t\tnewValue: moment(value, 'MM/DD/YYYY', true)\n\t}\n}\n\n\n\nexport const maskValidatorFactory = (mask: string, maskLength?: number): FieldValidator => {\n\n\tlet regExp = maskToRegExp(mask, maskLength);\n\treturn (field: string, value: any) => {\n\n\t\tif (!value) return undefined;\n\t\tif (regExp.test(value)) return undefined;\n\n\t\tlet human = maskToHumanReadable(mask);\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\tlevel: 'error',\n\t\t\tparameters: [human],\n\t\t\tcode: 'IMS'\n\t\t}\n\t};\n}\n\nexport const dlMaskValidatorFactory = (mask: MvrDlFormat[]): FieldValidator => {\n\treturn (field: string, value: any) => {\n\t\tlet match = true;\n\t\tfor (let fi of mask) {\n\t\t\tif (!value)\n\t\t\t\tcontinue;\n\t\t\tlet regExp = new RegExp(fi.format);\n\n\t\t\tif (regExp.test(value)) {\n\t\t\t\tmatch = true;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tmatch = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (match)\n\t\t\treturn undefined;\n\t\tlet humanFormats = mask.map(fi => fi.description).map(re => maskToHumanReadable(re));\n\t\t//let humanFormatsArr = mask.map(fi => fi.description).map(re => maskToHumanReadable(re));\n\n\t\treturn {\n\t\t\tfieldName: field,\n\t\t\t//Updated level from error to info for CLRP-1198\n\t\t\tlevel: 'info',\n\t\t\tparameters: humanFormats,\n\t\t\tcode: 'DLF'\n\t\t};\n\t};\n}\n\nexport const formValidators: { [key: string]: FieldValidator[] } = {\n\tadjusterId: [required],\n\tclaimNumber: [required],\n\taccountNumber: [required],\n\tincidentDate: [validDate, notFuture],\n\tincidentDateTo: [validDate, notFuture],\n\tincidentTime: [validTime],\n\t'incidentLocation.street': [required],\n\t'incidentLocation.county': [required],\n\t'incidentLocation.state': [required],\n\t'parties.0.address.state': [required],\n\tagencyName: [required],\n\tagencyType: [required],\n\treportNumber: [alphaNumericValidation],\n\tprecinct: [alphaNumericValidation],\n\tpolicyNumber: [alphaNumericValidation],\n\tpolicyState: [dropDownValidator(stateNameMap)],\n\t'parties.0.dlState': [required],\n\t'parties.0.dlNumber': [required],\n\t'vehicle.tagState': [required],\n\t'parties.0.person.lastName': [required],\n\t'parties.0.person.firstName': [required],\n\t'parties.0.dob': [validDate, notFuture],\n\t'parties.0.ssn': [digitsOnlyFactory(true), lengthValidatorFactory(9, 9)],\n\t'vehicle.year': [digitsOnly, lengthValidatorFactory(4, 4)],\n\t'vehicle.vin': [required, lengthValidatorFactory(17, 17)],\n\t'vehicle.tag': [required],\n\t'vehicle.make': [required],\n\t'incidentLocation.zip5': [digitsOnly, lengthValidatorFactory(5, 5)],\n\t'incidentLocation.postalCa': [canadaPostCodeValidator, lengthValidatorFactory(6, 6)],\n\t'incidentLocation.zip4': [digitsOnly, lengthValidatorFactory(4, 4)],\n\t'parties.0.address.zip5': [digitsOnly, lengthValidatorFactory(5, 5)],\n\t'parties.0.address.postalCa': [canadaPostCodeValidator, lengthValidatorFactory(6, 6)],\n\t'parties.0.address.zip4': [digitsOnly, lengthValidatorFactory(4, 4)],\n\t'parties.0.address.street': [required],\n\t'parties.0.address.city': [required],\n\tname: [required],\n\temails: [required],\n\tgroupBy: [required],\n\tperiod: [required],\n\ttoDate: [required, validDate, notFuture],\n\tfromDate: [required, validDate, notFuture]\n\n}\n\nexport const formDecorators: { [key: string]: { [key: string]: string[] } } = {\n\tAUTO_ACCIDENT: {\n\t\trequired: ['agencyName', 'agencyType', 'incidentLocation.state', 'parties.0.person.lastName'],\n\t\trecommended: ['reportNumber', 'incidentLocation.street', 'incidentLocation.crossStreet', 'incidentLocation.city', 'parties.1.person.lastName', 'vehicle.vin', 'vehicle.tag', 'vehicle.tagState']\n\t},\n\tRECONSTRUCTION: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tARREST: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCITATION_CONVICTION: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tEMS: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tFACE_LOG_SHEET: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tISSUE_LETTER_INTEREST: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tPHOTOS: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tSUPPLEMENTAL: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tOTHER: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tTOXICOLOGY: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tHOMICIDE: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tDEATH_CERTIFICATE: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tBIRTH_CERTIFICATE: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tDUI: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tAUTO_THEFT: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tAUTO_THEFT_RECOVERY: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tVANDALISM: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tAUTOPSY_CORONER: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tFIRE_AUTO: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tFIRE_BUILDING: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tTHEFT_BURGLARY: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tINSURANCE_VERIFICATION: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tTITLE_HISTORY: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tALL_REGISTERED_VEHICLES_IN_HOUSEHOLD: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tREGISTERED_VEHICLE_OWNER: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\t//Interactive reports\n\tVEHICLES_AT_HOUSEHOLD: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tVIN: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tPLATE_TAG: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tVEHICLES_BY_NAME_ADDR_TYPE: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tAUTOCHECK_VIN_HISTORY: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCLAIMS_MVR: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCARRIER_DISCOVERY_VIN: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCARRIER_DISCOVERY_SUB: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCARRIER_ID_VIN: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCARRIER_ID_SUB: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCLAIMS_DISCOVERY_VIN: {\n\t\trequired: [],\n\t\trecommended: []\n\t},\n\tCLAIMS_DISCOVERY_SUB: {\n\t\trequired: [],\n\t\trecommended: []\n\t}\n}","import { Language } from './translation';\nimport { TAT } from '../pages/tat';\n\nexport const English: Language = {\n\tid: 'en',\n\tname: 'English',\n\tapp: {\n\t\tname: 'Claims and Police Reports',\n\t\tsection: {\n\t\t\thome: 'Home',\n\t\t\tquestion: 'Questions?',\n\t\t\tusermanage: 'User Management',\n\t\t\tworkspace: 'Workspace',\n\t\t\thelp: 'Help',\n\t\t\treports: 'Reports',\n\t\t\torderReports: 'Order Reports',\n\t\t\torderHistory: 'Order History',\n\t\t\torderLog: 'Order Log Download'\n\t\t},\n\t\thelp: {\n\t\t\t// none defined yet\n\t\t\torderReports: 'Select a type of report to order on the left. Then, enter information in the fields to the right appropriate to the report you are trying to find. Click the submit button below the fields when completed.',\n\t\t\tnav: {\n\t\t\t\tfrequent: 'Commonly Ordered Reports',\n\t\t\t\tincident: 'From Public Agencies',\n\t\t\t\tinteractive: 'Instantly Available'\n\t\t\t}\n\t\t},\n\t\tterms: {\n\t\t\tdppaType: {\n\t\t\t\tNO_PERMISSIBLE_PURPOSE: 'No Permissible Purpose',\n\t\t\t\tINSURANCE: 'Insurance',\n\t\t\t\tCOURT_LAW: 'Court, Law Enforcement or Government Agencies',\n\t\t\t\tMOTOR_VEHICLE: 'Motor Vehicle Safety or Theft',\n\t\t\t\tVERIFY_ACCURACY: 'For use in the normal course of business by a legitimate business or its agents, employees, or contractors, but only',\n\t\t\t\tCIVIL_CRIMINAL: 'Civil, Criminal, Administrative or Arbitral Proceedings',\n\t\t\t\tPRIVATE_INVESTIGATOR: 'Licensed Private Investigator or Security Services'\n\t\t\t},\n\t\t\tdppaDesc: {\n\t\t\t\tINSURANCE: '
    • For use by any insurer or insurance support organization, or by a self-insured entity, or its agents, employees, or contractors, in connection with claims investigation activities, antifraud activities, rating or underwriting.
    • \\\n\t\t\t\t\t
    • To the extent Customer is purchasing accident report(s) for insurance purposes, Customer may not use such accident report(s) for rating or underwriting, or any other FCRA, purposes.
    ',\n\t\t\t\tCOURT_LAW: '
    • For use by any government agency, including any court or law enforcement agency, in carrying out its functions, or any private person or entity acting on behalf of a Federal, State, or local agency in carrying out its functions.
    ',\n\t\t\t\tMOTOR_VEHICLE: '
    • For use in connection with matters of motor vehicle or driver safety and theft; motor vehicle emissions; motor vehicle product alterations, recalls, or advisories; performance monitoring of motor vehicles, motor vehicle parts and dealers; motor vehicle market research activities, including survey research; and removal of non-owner records from the original owner records of motor vehicle manufacturers.
    • \\\n\t\t\t\t
    • To the extent Customer is purchasing accident report(s) by or for a motor vehicle manufacturer, Customer may not select this permissible purpose.
    ',\n\t\t\t\tVERIFY_ACCURACY: '
    • To verify the accuracy of personal information submitted by the individual to the business or its agents, employees, or contractors; and
    • \\\n\t\t\t\t
    • If such information as so submitted is not correct or is no longer correct, to obtain the correct information, but only for the purposes of preventing fraud by, pursuing legal remedies against, or recovering on a debt or security interest against, the individual.
    ',\n\t\t\t\tCIVIL_CRIMINAL: '
    • For use in connection with any civil, criminal, administrative, or arbitral proceeding in any federal, state, or local court or agency or before any self-regulatory body, including the service of process, investigation in anticipation of litigation, and the execution or enforcement of judgments and orders, or pursuant to an order of a federal, state, or local court.
    ',\n\t\t\t\tPRIVATE_INVESTIGATOR: '
    • For use by any licensed private investigative agency or licensed security service for any purpose permitted under this subsection.
    '\n\t\t\t}\n\t\t},\n\t\tcomponents: {\n\t\t\tchecklist: {\n\t\t\t\tnoneSelected: 'None Selected',\n\t\t\t\tshowOnly: 'Show only...',\n\t\t\t\tsomeNotShown: 'Filtered. Not shown'\n\t\t\t}\n\t\t}\n\t},\n\tactions: {\n\t\treload: 'Reload',\n\t\tpleaseWait: 'Please wait',\n\t\twaiting: 'Waiting',\n\t\tsearchTypes: {\n\t\t\tCLAIM_NUMBER: 'Claim Number',\n\t\t\tPARTY_NAME_FIRST: 'Party First Name',\n\t\t\tPARTY_NAME_LAST: 'Party Last Name',\n\t\t\tREPORT_NUMBER: 'Report Number'\n\t\t},\n\t\tactionTypes: {\n\t\t\tOPEN: 'Open',\n\t\t\tPRINT: 'Print',\n\t\t\tDOWNLOAD: 'Download',\n\t\t\tDOWNLOAD_PDF: 'Download PDF',\n\t\t\tDOWNLOAD_TIFF: 'Download TIFF',\n\t\t\tDOWNLOAD_XML: 'Download XML',\n\t\t\tEDIT: 'Reorder',\n\t\t\tSUMMARY: 'Summarize Order',\n\t\t\tRESUME: 'Resume',\n\t\t\tORDER_REPORT: 'Order Another',\n\t\t\tREORDER_WO_DOL: 'Re-Order w/o DOL',\n\t\t\tTAT: 'Estimate TAT'\n\t\t},\n\t\tmanageActionTypes: {\n\t\t\tSUBSCRIBE: 'Subscribe',\n\t\t\tUNSUBSCRIBE: 'Unsubscribe',\n\t\t\tEDIT: 'Edit',\n\t\t\tDOWNLOAD: 'Download',\n\t\t\tDELETE: 'Delete'\n\t\t},\n\t\tuser: {\n\t\t\tselectLang: 'Select Language',\n\t\t\treturnToWorkspace: 'Return to Workspace',\n\t\t\teditAccount: 'Security Settings',\n\t\t\tlogout: 'Log Out',\n\t\t\tlangSelection: 'Language Selection',\n\t\t\trememberLang: 'Remember this language for future logins',\n\t\t\tmanageUsers: 'Manage Users'\n\t\t},\n\t\tterms: {\n\t\t\t// termContent1: 'You hereby agree to use these services in accordance with applicable law \\\n\t\t\t// including the permissible use selections and agree that failure to do so will be a breach \\\n\t\t\t// of your agreement for this service. Laws applicable to use of this product include the \\\n\t\t\t// Gramm-Leach-Bliley Act (GLBA) and the Driver\\'s Privacy Protection Act (DPPA) and related \\\n\t\t\t// state laws. The data regulated by the DPPA and the GLBA may be used only for the permissible \\\n\t\t\t// uses that you select. By selecting a permissible use, you are certifying that the data \\\n\t\t\t// returned to you will be used only for that purpose. The data provided to you by use of this \\\n\t\t\t// product may not be used as a factor in establishing a consumer\\'s eligibility for credit, \\\n\t\t\t// insurance, employment or other purposes identified under the Fair Credit Reporting Act (FCRA).',\n\t\t\ttermContent: '

    You hereby agree to use these services in accordance with applicable law including the permissible use selections and agree that failure to do so will be a breach of your agreement for this service. Laws applicable to use of this \\\n\t\t\tproduct include the Driver\\'s Privacy Protection Act (DPPA) and related state laws. The data regulated by the DPPA may be used only for the permissible uses that you select. By selecting a permissible use, you are certifying that the \\\n\t\t\tdata returned to you will be used only for that purpose. Your purpose will apply to all orders placed during your session. If your permissible use changes, you will need to log out and log back in with that permissible purpose.

    \\\n\t\t\t

    The data provided to you by use of this product may NOT be used as a factor in establishing a consumer\\'s eligibility for credit, insurance, employment or other purposes identified under the Fair Credit Reporting Act (FCRA).

    \\\n\t\t\t

    The data provided to you by use of this product may NOT be used for marketing or solicitation purposes.

    ',\n\t\t\tglbaTitle: 'Gramm-Leach-Bliley Act Permissible Use Certification',\n\t\t\tglbaPermissibleUse: 'My Permissible Use is Fraud Prevention or Detection or Claims Adjudication',\n\t\t\tdppaTitle: 'Select applicable permissible use below:',\n\t\t\tdppaPermissibleUse: 'My Permissible Purpose is use by an insurer, third party claims administrator,\\\n\t\t\tself-insured entity, or insurance support organization in connection with claims Investigation activities or antifraud activities',\n\t\t\tdppaPermissibleUse_0: 'No Permissible use',\n\t\t\tdppaPermissibleUse_6: 'Insurer or insurance support org., self-insured entity in connection with claims investigation or anti-fraud activities',\n\t\t\tdppaPermissibleUse_4: 'Involved party identified on report or person with express consent of party identified on report',\n\t\t\tdppaPermissibleUse_1: 'Governmental agency, incl. any court or law enforcement agency, or private entity acting on behalf of Federal, State or local agency',\n\t\t\tdppaPermissibleUse_2: 'For use with matters of motor vehicle or driver safety and theft',\n\t\t\tdppaPermissibleUse_3: 'To verify the accuracy of personal information submitted by the individual to a business',\n\t\t\tdppaPermissibleUse_7: 'Licensed private investigative agency or security service',\n\t\t\tcontinue: 'Continue'\n\t\t},\n\t\tpotential: {\n\t\t\tnone: 'Your search has retrieved 0 potential matches. You can edit your search and try again. If you have keyed in all the search criteria, you can submit the report request and we will obtain the report for you.',\n\t\t\tpurchase: 'Submit the report request.',\n\t\t\tselect: 'Based on your search criteria, we have found potential matching reports (please see below). Please review the report summary information to determine if one of these reports matches your request. If yes, please select the one and continue.',\n\t\t\texact: 'Your search returned an exact match, proceeding to ordering screen...',\n\t\t\tpotential: 'None of the above reports match my request. Please fulfill my order.'\n\t\t}\n\t},\n\tlabels: {\n\t\tadvancedSearch: {\n\t\t\tuserId: 'User',\n\t\t\tnodeID: 'Node ID',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\treportNumber: 'Report Number',\n\t\t\tsourceId: 'Order ID',\n\t\t\tlastName: 'Last Name',\n\t\t\tfirstName: 'First Name',\n\t\t\tstatus: 'Order Status',\n\t\t\treportType: 'Report Type',\n\t\t\tsubmissionDateTime: 'Submission Date',\n\t\t\taccountNumber: 'Account Number',\n\t\t\tstate: 'State',\n\t\t\tagencyName: 'Agency Name',\n\t\t\tagencyType: 'Agency Type',\n\t\t\tvin: 'VIN',\n\t\t\ttag: 'Tag',\n\t\t\tdlNumber: 'DL Number'\n\t\t}\n\t},\n\theaders: {\n\t\tpotentialMatch: {\n\t\t\t$select: ' ',\n\t\t\tparties: 'Parties',\n\t\t\tincidentDate: 'Incident Date',\n\t\t\tincidentLocation: 'Incident Location',\n\t\t\tagencyName: 'Agency Name',\n\t\t\treportNumber: 'Report Number',\n\t\t\treportType: 'Report Type',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\torderId: 'Order Id'\n\t\t},\n\t\torderHistory: {\n\t\t\t$select: ' ',\n\t\t\tsubmissionDateTime: 'Ordered Date',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\taccountNumber: 'Account',\n\t\t\tparties: 'Parties',\n\t\t\treportType: 'Report Name',\n\t\t\tcompletedDateTime: 'Completed Date',\n\t\t\tstatus: 'Report Status',\n\t\t\tuserId: 'Ordered By',\n\t\t\t$actions: 'Actions'\n\t\t},\n\t\tsearchResults: {\n\t\t\t$select: ' ',\n\t\t\tsourceId: 'Order ID',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\treportType: 'Report Name',\n\t\t\tincidentDateTime: 'Incident Date',\n\t\t\tsubmissionDateTime: 'Order Date',\n\t\t\tparties: 'Parties',\n\t\t\tuserId: 'Ordered By',\n\t\t\tstatus: 'Order Status',\n\t\t\t$actions: 'Actions'\n\t\t},\n\t\tresultsSummary: {\n\t\t\t$select: ' ',\n\t\t\tsubmissionDateTime: 'Order Date',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\tsourceId: 'Order ID',\n\t\t\treportType: 'Report Name',\n\t\t\tincidentDateTime: 'Incident Date',\n\t\t\tparties: 'Party Name',\n\t\t\tuserId: 'Ordered By',\n\t\t\tstatus: 'Order Status',\n\t\t\t$actions: 'Actions',\n\t\t},\n\t\tmanagementReport: {\n\t\t\ttype: 'Report Contents',\n\t\t\tname: 'Saved Name',\n\t\t\taccounts: 'Accounts',\n\t\t\tusers: 'Users',\n\t\t\tperiod: 'Time Period',\n\t\t\treportType: 'Report Types',\n\t\t\temails: 'Subscriber Emails',\n\t\t\tsubscription: 'Subscribed',\n\t\t\t$actions: 'Actions'\n\t\t},\n\t\torderSummary: {\n\t\t\tsourceId: 'Order ID',\n\t\t\tsubmissionDateTime: 'Order Date',\n\t\t\tclaimNumber: 'Claim Number',\n\t\t\tadjusterId: 'Adjuster ID',\n\t\t\taccountNumber: 'Account',\n\t\t\tstreet: 'Street Name',\n\t\t\treportType: 'Report Type',\n\t\t\tcrossStreet: 'Cross Street',\n\t\t\tincidentDateTime: 'Incident Date',\n\t\t\tcounty: 'County',\n\t\t\tparty1NameLast: 'Party Name One',\n\t\t\tcity: 'City and State',\n\t\t\tparty1Dob: 'Date of Birth',\n\t\t\tagencyName: 'Agency',\n\t\t\tparty1Ssn: 'SSN',\n\t\t\tagencyType: 'Agency Type',\n\t\t\tparty1DlState: 'Drivers License State',\n\t\t\treportNumber: 'Report Number',\n\t\t\tparty1DlNumber: 'Drivers License Number',\n\t\t\tprecinct: 'Precinct',\n\t\t\tparty2NameLast: 'Party Name Two',\n\t\t\tpolicyNumber: 'Policy Number',\n\t\t\tparty3NameLast: 'Party Name Three',\n\t\t\tpolicyState: 'Policy State',\n\t\t\tyear: 'Vehicle Information',\n\t\t\tvin: 'VIN',\n\t\t\tplateNumber: 'License Plate Number',\n\t\t\tplateState: 'License Plate State',\n\t\t\tadditionalInfo: 'Additional Info'\n\t\t},\n\t},\n\tcontact: {\n\t\terror: {\n\t\t\tbody: \"LexisNexis%20Support%2C%0A%0A%20%20%20Please%20replace%20this%20text%20with%20a%20description%20of%20what%20you%20were%20trying%20to%20do%2C%20and%20what%20you%20believe%20should%20have%20happened%20when%20you%20got%20this%20error.%20%20The%20more%20you%20can%20describe%2C%20the%20more%20quickly%20we%20can%20help%20you%20fix%20the%20problem.%0A%0AThanks%2C%0A\",\n\t\t}\n\t},\n\terrorMessage: {\n\t\tREQ: 'Required',\n\t\tIPC: 'This field must be of the form A1A-1A1',\n\t\tNUM: 'This field may only contain digits 0 to 9',\n\t\tALP: 'This field allows only alphanumeric characters',\n\t\tIDF: 'Please enter a valid date in the format MM/DD/YYYY or YYYY-MM-DD',\n\t\tNFD: 'Future dates are not permitted',\n\t\tITF: 'Please enter a valid time HH:MM',\n\t\tLEN: 'Exactly {value} characters are required',\n\t\tMIL: 'At least {value} characters are required',\n\t\tMXL: 'No more than {value} characters are allowed',\n\t\tIMS: 'Input must match the pattern {value}',\n\t\tIDV: 'Please select a value from the drop down',\n\t\tICH: 'Invalid character in input',\n\t\tECR: 'The agency you selected is an eCrash agency. Entering a report number is strongly recommended.',\n\t\tDLF: 'License number must match one of the following formats:',\n\t\tEML: 'Please enter a valid email',\n\t\tFDV: 'From Date should be before To Date',\n\t\tTDV: 'To Date should be after From Date',\n\t\tLYV: 'From Date cannot be less than Jan 1st of last year',\n\t\tADJ: 'Adjuster not found',\n\t\tXDV: 'Date range cannot be more than 31 days',\n\t\tXDF: 'Enter valid date in the format MM/DD/YYYY',\n\t\tXDO: 'Loss Data (or) Date Data Received From/To is required',\n\t\tIAN: 'Invalid Account number'\n\t},\n\terrors: {\n\t\t0: {\n\t\t\tcode: 0,\n\t\t\ttitle: 'Generic Next Steps',\n\t\t\tmessage: '',\n\t\t\tnext: [\n\t\t\t\t'If you\\'re still sure that you\\'ve received this message incorrectly, please click the Error ID link above and report this to LexisNexis customer service so that we can help you resolve the issue.',\n\t\t\t\t'To chat interactively with a LexisNexis customer support representative, click the Chat icon in the upper right corner.'\n\t\t\t]\n\t\t},\n\t\t400: {\n\t\t\tcode: 400,\n\t\t\ttitle: 'Invalid Data',\n\t\t\tmessage: 'Some data you entered could not be processed.',\n\t\t\tnext: ['Return to the previous page and check for error messages below any data items, and correct the data.']\n\t\t},\n\t\t401: {\n\t\t\tcode: 401,\n\t\t\ttitle: 'Not Authorized',\n\t\t\tmessage: 'Your credentials are missing, incorrect, or expired.',\n\t\t\tnext: ['Return to the login application to log in again']\n\t\t},\n\t\t403: {\n\t\t\tcode: 403,\n\t\t\ttitle: 'Forbidden',\n\t\t\tmessage: 'You have attempted to access a resource that your current permissions do not allow.',\n\t\t\tnext: ['Have your client administrator request additional permissions for your login id.']\n\t\t},\n\t\t404: {\n\t\t\tcode: 404,\n\t\t\ttitle: 'Item Not Found',\n\t\t\tmessage: 'The item we attempted to load for you could not be found in the system.',\n\t\t\tnext: ['Return to the previous page and ensure you\\'ve clicked on the link you intended to click on.']\n\t\t},\n\t\t415: {\n\t\t\tcode: 415,\n\t\t\ttitle: 'Bad Report',\n\t\t\tmessage: 'The server could not get the report that you requested.',\n\t\t\tnext: ['Return to the previous page and attempt your action again.']\n\t\t},\n\t\t500: {\n\t\t\tcode: 500,\n\t\t\ttitle: 'Error',\n\t\t\tmessage: 'The server could not complete your last request.',\n\t\t\tnext: ['This may be a temporary internet or browser error. Return to the previous page and attempt your action again.']\n\t\t},\n\t\t900: {\n\t\t\tcode: 900,\n\t\t\ttitle: 'Logged Out',\n\t\t\tmessage: 'Your Claims Reports session was ended at your request.',\n\t\t\tnext: ['You may now close your browser window or tab.']\n\t\t},\n\t\t901: {\n\t\t\tcode: 901,\n\t\t\ttitle: 'Use Not Permitted',\n\t\t\tmessage: 'Claims Reports Portal cannot be used without affirming your Permitted Use. You have been logged out.'\n\t\t},\n\t\t902: {\n\t\t\tcode: 902,\n\t\t\ttitle: 'Automatically Logged Out',\n\t\t\tmessage: 'Due to inactivity, your Claims Reports Portal session was automatically ended.',\n\t\t\tnext: ['If you were completed, simply close this window or tab.', 'Or, return to the login application to log in again']\n\t\t}\n\t},\n\tformFeedback: {\n\t\tformCleared: \"All fields cleared. Begin your new search now.\",\n\t\tformSaving: \"Saving this information as an incomplete order...\",\n\t\tsaveSearch: \"Saving your search information ...\",\n\t\tformSaved: \"Incomplete order saved. See the Order History screen to find and resume this order.\",\n\t\tsearchingReports: \"Searching for matching reports...\",\n\t\torderingReport: \"Processing your request. Please wait...\",\n\t\tformSubmit: \"Please correct errors above before submitting\",\n\t\tformSave: \"Claim Number and Account Number are required to save this incomplete order\",\n\t\timageRetrieval: \"Retrieving Report. Please wait...\",\n\t\tprintReport: \"Opening Print Window. Please wait...\",\n\t\teditReport: \"Retrieving Order Data. Please wait...\",\n\t\tsubscribeReport: \"Subscribing to saved search\",\n\t\tunsubscribeReport: \"Unsubscribing from saved search\",\n\t\tdownloadZip: \"Downloading Zip. Please wait...\",\n\t\timageDownload: \"Downloading Report. Please wait...\",\n\t\tnullReport: \"Report is not currently available. Please try again later.\",\n\t\taccountSelection: \"Please select an account number before entering a claim number.\"\n\t},\n\tresultSummaryText: {\n\t\texactMatch: 'Based on your search criteria, we have found the matching report.',\n\t\tprocessing: \"Please wait while we retrieve your report...\",\n\t\tnewOrder: \"Thank you for your order. Please see your results below.\",\n\t\treportNotAvailableForPublic: \"Thank you for your order. Your report is not available for public view yet. Please check back again after a few days.\",\n\t\tclaimsSummary: \"\",\n\t\tnoReport: \"Unfortunately, we are unable to retrieve your report at this time. Please check the 'Order History' section after a few moments to retrieve your report.\"\n\t},\n\tpageTitle: {\n\t\tORDER_HISTORY: 'Order History',\n\t\tSEARCH_RESULTS: 'Search Results',\n\t},\n\tarchivalStatus: {\n\t\tALL: 'All Reports',\n\t\tARCHIVED: 'Archived Reports',\n\t\tNON_ARCHIVED: 'Non-Archived Reports'\n\t},\n\tconcepts: {\n\t\tagencyTypes: {\n\t\t\t'BVS': 'Bureau of Vital Statistics',\n\t\t\t'CO FD': 'County Fire Department',\n\t\t\t'CO PD': 'County Police Department',\n\t\t\t'CO SO': 'County Sheriff',\n\t\t\t'CORON': 'Coroner',\n\t\t\t'COURT': 'Courthouse',\n\t\t\t'DMV': 'Department of Motor Vehicles',\n\t\t\t'DPS': 'Department of Public Safety',\n\t\t\t'EMS': 'Emergency Medical Services',\n\t\t\t'EPA': 'Environmental Protection Agency',\n\t\t\t'FD': 'Fire Department',\n\t\t\t'HP': 'Highway Patrol',\n\t\t\t'MP': 'Military Police',\n\t\t\t'PD': 'Police Department',\n\t\t\t'SEC': 'Security',\n\t\t\t'SO': 'Sheriff',\n\t\t\t'TWP FD': 'Township Fire Department',\n\t\t\t'TWP PD': 'Township Police Department'\n\t\t},\n\t\ttatCodes: {\n\t\t\tTAT0: \"Your order has been received and is being processed.\",\n\t\t\tTAT1: \"The expected turnaround time for your report is the week of \",\n\t\t\tTAT2: \"Your order has been received and is being processed. However at this time we are unable to provide an expected return date. For further information, please chat, email, or call LexisNexis Customer Support (Phone: 1-800-934-9698).\",\n\t\t\tTAT3: \"Your order has been received and has been returned.\",\n\t\t\tTAT4: \"We are unable to locate your order. For further information, please chat, email, or call LexisNexis Customer Support (Phone: 1-800-934-9698). \",\n\t\t\tTAT4_IVR: \"For this {value}, a ticket will need to be opened with our Customer Support team. \",\n\t\t\tTAT5: \"We have made several attempts to contact this agency in regards to the requested report. This agency has not responded to your request for a report. If you still require this report, please verify the information given and reorder by contacting LexisNexis Customer Support at the following email address: Policerecords.support@lexisnexisrisk.com.
    Please include your Claim Number or Order ID and any additional information you can provide.\"\n\t\t},\n\t\tterminationCodes: {\n\t\t\t200: \"The expected turnaround time for your report is the week of \",\n\t\t\t400: \"Unfortunately we were not able to locate your order in our system. Please ensure the claim number/order ID entered matches the actual number submitted. For new submittal please allow 12-24 business hours before checking the status of your order.(Hint: include all spaces, dashes, preceding zeros, ending zeros)\",\n\t\t\t405: \"Your order was found in our system, however we have not received a response from the agency at this time. We will forward a response when received.\",\n\t\t\t406: \"Your order was found in our system, however a response has not been received from the agency. We will forward a response when received. If you require further follow up at this time, please submit a ticket.\",\n\t\t\t411: \"Your order was found in our system and the report has been sent to you. Please check your claim file for the report.\",\n\t\t\t416: \"Your order was found in our system, however this report is not available at this time. Please check your claim file for a detailed explanation.\",\n\t\t\t412: \"Your order was found in our system, however the requested agency was not able to find the report you requested. Please check your claim file for a detailed explanation.\",\n\t\t\t413: \"Your order was found in our system, however the requested agency was not able to find the report you requested. Please check your claim file for a detailed explanation.\",\n\t\t\t414: \"Your order was found in our system, however a report was not written for this case. Please check your claim file for a detailed explanation.\",\n\t\t\t415: \"Your order was found in our system, however despite our attempts this agency has not responded to our request. The agency still has the request and we will forward any response when it is received. Please check your claim file for a detailed explanation.\"\n\t\t},\n\t\treportTypes: {\n\t\t\t\"*INC\": 'Incident Reports',\n\t\t\tAUTO_ACCIDENT: 'Auto Accident',\n\t\t\tAUTO_ACCIDENT_OPEN: 'Auto Accident Open',\n\t\t\tAUTO_THEFT: 'Auto Theft',\n\t\t\tAUTO_THEFT_RECOVERY: 'Auto Theft Recovery',\n\t\t\tTHEFT_BURGLARY: 'Theft Burglary',\n\t\t\tFIRE_BUILDING: 'Fire Building',\n\t\t\tFIRE_AUTO: 'Fire Auto',\n\t\t\tVANDALISM: 'Vandalism',\n\t\t\tDUI: 'DUI',\n\t\t\tREGISTERED_VEHICLE_OWNER: 'Registered Vehicle Owner',\n\t\t\tAUTOPSY_CORONER: 'Autopsy / Coroner',\n\t\t\tHOMICIDE: 'Homicide',\n\t\t\tPHOTOS: 'Photos',\n\t\t\tISSUE_LETTER_INTEREST: 'Issue Letter Interest',\n\t\t\tOTHER: 'Other',\n\t\t\tINSURANCE_VERIFICATION: 'Insurance Verification',\n\t\t\tTITLE_HISTORY: 'Title History',\n\t\t\tALL_REGISTERED_VEHICLES_IN_HOUSEHOLD: 'All Registered Vehicles in Household',\n\t\t\tDEATH_CERTIFICATE: 'Death Certificate',\n\t\t\tBIRTH_CERTIFICATE: 'Birth Certificate',\n\t\t\tARREST: 'Arrest',\n\t\t\tCITATION_CONVICTION: 'Citation / Conviction',\n\t\t\tEMS: 'EMS',\n\t\t\tRECONSTRUCTION: 'Reconstruction',\n\t\t\tSUPPLEMENTAL: 'Supplemental',\n\t\t\tTOXICOLOGY: 'Toxicology',\n\t\t\tFACE_LOG_SHEET: 'Face Sheet/Log Sheet',\n\t\t\t\"*INT\": 'Interactive Reports',\n\t\t\t\"*VEHICLES\": 'Vehicle By',\n\t\t\tVEHICLES_AT_HOUSEHOLD: 'Vehicle By Household',\n\t\t\tVIN: 'Vehicle By VIN',\n\t\t\tPLATE_TAG: 'Vehicle By Plate/Tag',\n\t\t\tVEHICLES_BY_NAME_ADDR_TYPE: 'Vehicle By Name/Address/Type',\n\t\t\tAUTOCHECK_VIN_HISTORY: 'Autocheck VIN History',\n\t\t\tCLAIMS_MVR: 'Claims MVR (Driving History)',\n\t\t\tCARRIER_DISCOVERY: 'Carrier Discovery',\n\t\t\t'*CARRIER_DISCOVERY': 'Carrier Discovery',\n\t\t\tCARRIER_DISCOVERY_VIN: 'Carrier Discovery By VIN',\n\t\t\tCARRIER_DISCOVERY_SUB: 'Carrier Discovery By Name and Address',\n\t\t\tCARRIER_ID: 'Carrier ID',\n\t\t\t'*CARRIER_ID': 'Carrier ID',\n\t\t\tCARRIER_ID_VIN: 'Carrier ID By VIN',\n\t\t\tCARRIER_ID_SUB: 'Carrier ID By Name and Address',\n\t\t\tCLAIMS_DISCOVERY: 'Claims Discovery',\n\t\t\t'*CLAIMS_DISCOVERY': 'Claims Discovery',\n\t\t\tCLAIMS_DISCOVERY_VIN: 'Claims Discovery By VIN',\n\t\t\tCLAIMS_DISCOVERY_SUB: 'Claims Discovery By Name and Address',\n\t\t\tCLAIMS_COMPREHENSIVE: 'Claims Comprehensive',\n\t\t\tCLAIMS_POLICE_LOCATOR: 'Claims Police Locator'\n\t\t},\n\t\tshortReportTypes: {\n\t\t\t\"*INT\": 'Interactive Reports',\n\t\t\t\"*VEHICLES\": 'Vehicle By',\n\t\t\tVEHICLES_AT_HOUSEHOLD: 'Household',\n\t\t\tVIN: 'VIN',\n\t\t\tPLATE_TAG: 'Plate/Tag',\n\t\t\tVEHICLES_BY_NAME_ADDR_TYPE: 'Name/Address/Type',\n\t\t\tAUTOCHECK_VIN_HISTORY: 'Autocheck VIN History',\n\t\t\tCLAIMS_MVR: 'Claims MVR (Driving History)',\n\t\t\tCARRIER_DISCOVERY: 'Carrier Discovery',\n\t\t\t'*CARRIER_DISCOVERY': 'Carrier Discovery By',\n\t\t\tCARRIER_DISCOVERY_VIN: 'VIN',\n\t\t\tCARRIER_DISCOVERY_SUB: 'Name and Address',\n\t\t\tCARRIER_ID: 'Carrier ID',\n\t\t\t'*CARRIER_ID': 'Carrier ID By',\n\t\t\tCARRIER_ID_VIN: 'VIN',\n\t\t\tCARRIER_ID_SUB: 'Name and Address',\n\t\t\tCLAIMS_DISCOVERY: 'Claims Discovery',\n\t\t\t'*CLAIMS_DISCOVERY': 'Claims Discovery By',\n\t\t\tCLAIMS_DISCOVERY_VIN: 'VIN',\n\t\t\tCLAIMS_DISCOVERY_SUB: 'Name and Address',\n\t\t\tCLAIMS_COMPREHENSIVE: 'Claims Comprehensive',\n\t\t\tCLAIMS_POLICE_LOCATOR: 'Claims Police Locator'\n\t\t},\n\t\tmgmtReportTypes: {\n\t\t\tINCIDENT_TAT: 'Incident - Turn Around Time (TAT)',\n\t\t\tALL_SUMMARY: 'Volume Report - Summary',\n\t\t\tALL_DETAIL: 'Volume Report - Detail'\n\t\t},\n\t\tmgmtReportGroupBy: {\n\t\t\tUSER_ID: 'Users',\n\t\t\tACCOUNT_NUMBER: 'Accounts',\n\t\t\tREPORT_TYPE: 'Report Type'\n\n\t\t},\n\t\treportHelp: { //TBD\n\t\t\tAUTO_ACCIDENT: '',\n\t\t\tVEHICLES_AT_HOUSEHOLD: 'VIN Household searches are restricted from being ordered on the following states: (CA, HI, NH, NY, OK, PA, VA).',\n\t\t\tVIN: 'VIN Only searches are restricted from being ordered on the following states: (CA, HI, NH, NY, OK, PA, VA).',\n\t\t\tPLATE_TAG: 'Plate Only searches are restricted from being ordered on the following states: (CA, HI, NH, NY, OK, PA, VA).',\n\t\t\tVEHICLES_BY_NAME_ADDR_TYPE: 'VIN Standard searches are restricted from being ordered on the following states: (CA, HI, NH, NY, OK, PA, VA).',\n\t\t\tCLAIMS_MVR: 'Claims MVR searches are restricted from being ordered on the following states: (CA, HI, MI, MO, NH, PA, WA, WV).'\n\t\t},\n\t\torderStatuses: {\n\t\t\tCOMPLETE: 'Complete',\n\t\t\tPROCESSING: 'Processing',\n\t\t\tSAVED: 'Incomplete',\n\t\t\tERROR: 'Error',\n\t\t},\n\t\treasons: {\n\t\t\tHOLD: 'Report Not Ready',\n\t\t\tCNCL: 'Order cancelled by client',\n\t\t\tCMPL: 'Result was returned to Client',\n\t\t\tACCI: 'value after edit',\n\t\t\tAFYI: 'For Your Information',\n\t\t\tALTR: 'Terminated Due to Altered Data',\n\t\t\tARIN: 'Police Agency Failed to Respond',\n\t\t\tINVL: 'Invalid VIN Error',\n\t\t\tASSI: 'Agency Assigned by Operator',\n\t\t\tAUTO: 'Has been through Auto Search Q',\n\t\t\tBADC: 'Invalid Client ID',\n\t\t\tBADD: 'Invalid Date of Loss',\n\t\t\tBADT: 'Invalid Report Type',\n\t\t\tCALL: 'Form Used For Making Follow-Up Calls',\n\t\t\tCRII: 'Conflicting Request Information',\n\t\t\tDURI: 'Duplicate Request',\n\t\t\tEDIT: 'Agency Has Edit On Required Field',\n\t\t\tFORC: 'Forced to Pool for Client Review',\n\t\t\tHAND: 'Information in Special Handling Field',\n\t\t\tIISI: 'Insufficient Information to Order',\n\t\t\tINHB: 'Duplicate Found, Completed Transaction, Ready to be Billed',\n\t\t\tINHI: 'Duplicate Found, Open Transaction ',\n\t\t\tINPO: 'Duplicate Found in Processing Queue',\n\t\t\tINWP: 'Duplicate Found in Waiting to Print Queue',\n\t\t\tLEAV: 'Skipped by Operator',\n\t\t\tLETR: 'Letter Of Interest Sent to Agency & Client',\n\t\t\tLOCA: 'Incorrect Agency Location',\n\t\t\tLOCM: 'Multiple Agency Alias Matches',\n\t\t\tLOCS: 'No Alias Entries Found',\n\t\t\tMIGA: 'Refer to Customer Service Immediately',\n\t\t\tMISC: 'Miscellaneous',\n\t\t\tNRFN: 'No Report Found',\n\t\t\tNRWN: 'No Report Written',\n\t\t\tPDFR: 'Reordered - Police Agency Failed to Respond',\n\t\t\tPRAC: 'Police Report Attached',\n\t\t\tRCAC: 'Police Agency Address Change',\n\t\t\tRCCC: 'Police Agency Cost Change',\n\t\t\tRCER: 'Police Agency Error',\n\t\t\tREVW: 'Agency Edits Requires Operator Review',\n\t\t\tRNNF: 'Report Number Needed',\n\t\t\tRNRN: 'Report Released to Insured Only',\n\t\t\tROTH: 'Wrong Information Submitted from Client',\n\t\t\tRRRD: 'CRU Error (Terminates Transaction) NO Notice to Client',\n\t\t\tRRSC: 'CRU Error - Notify Client',\n\t\t\tRRSD: 'CRU Error (ReRoutes Transaction) NO Notice to Client',\n\t\t\tSEAR: 'Outstanding Item Waiting for Response from Agency',\n\t\t\tSECR: 'Second Request Notice sent to Police Agency',\n\t\t\tSIOI: 'Report Is Not Releasable',\n\t\t\tSRRI: 'Signed Release Form Required from Insured',\n\t\t\tWAIT: 'Outstanding Item Waiting for Response from Agency',\n\t\t\tWJRR: 'Wrong Jurisdiction - ReRoute',\n\t\t\tWPJR: 'Wrong Jurisdiction - More Info Needed',\n\t\t\tNRNF: 'No Record Found - No Fee',\n\t\t\tINHA: 'Previously Billed Duplicate Found',\n\t\t\tCCIA: 'CCFC - Invalid account',\n\t\t\tCCCE: 'CCFC - Customer error',\n\t\t\tINAT: 'Duplicate Found in Processing Queue',\n\t\t\tINAQ: 'Duplicate Found in Processing Queue',\n\t\t\tINAD: 'Duplicate Found, Open Transaction',\n\t\t\tSAVED: 'Your Form Has Been Saved',\n\t\t}\n\t}\n}\n","import { Language, StringProvider } from './translation'\n\nimport { English } from './en'\n\n// TODO: This is my translation from my Mexican spanish experience -GB\n// Needs to be reviewed by a native speaker\nexport const Spanish: Language = {\n\t...English,\n\tid: 'es',\n\tname: 'Español',\n\tapp: {\n\t\t...English.app\n\t},\n\tactions: {\n\t\t...English.actions,\n\n\t\tactionTypes: {\n\t\t\t...English.actions.actionTypes\n\t\t},\n\t\tuser: {\n\t\t\tselectLang: 'Escoger Idioma',\n\t\t\treturnToWorkspace: 'Regresar al Portál',\n\t\t\teditAccount: 'Mi Cuenta',\n\t\t\tlogout: 'Salir',\n\t\t\tlangSelection: 'Selección de Idioma',\n\t\t\trememberLang: 'Recordar esta idioma por entras próximas',\n\t\t\t...English.actions.user\n\t\t}\n\t},\n\theaders: {\n\t\t...English.headers,\n\t},\n\terrors: {\n\t\t...English.errors\n\t},\n\tcontact: {\n\t\terror: {\n\t\t\tbody: \"LexisNexis%20apoyo%2C%0A%0APor%20favor%2C%20reemplace%20este%20texto%20con%20una%20descripci%C3%B3n%20de%20lo%20que%20estaban%20tratando%20de%20hacer%2C%20y%20lo%20que%20usted%20cree%20que%20debe%20haber%20ocurrido%20cuando%20tienes%20este%20error.%20Cuanto%20m%C3%A1s%20se%20puede%20describir%2C%20m%C3%A1s%20r%C3%A1pido%20podemos%20ayudarle%20a%20solucionar%20el%20problema.%0A%0AGracias%2C%0A\",\n\t\t}\n\t},\n\tformFeedback: {\n\t\tformCleared: \"Todos los campos despejados. Comience su nueva búsqueda ahora\",\n\t\tformSaving: \"Guardando esta información como un orden incompleto ...\",\n\t\tsaveSearch: \"Saving your search information ...\",\n\t\tformSaved: \"Orden incompleta guardada. Consulte la pantalla historial de pedidos para buscar y reanudar este pedido.\",\n\t\tsearchingReports: \"Buscando informes coincidentes...\",\n\t\torderingReport: \"Procesando su solicitud Por favor espere...\",\n\t\tformSubmit: \"Corrija los errores anteriores antes de enviar.\",\n\t\tformSave: \"Ingrese Número de reclamo y Número de cuenta.\",\n\t\timageRetrieval: \"Recuperando el informe. Por favor espera...\",\n\t\tprintReport: \"Opening Print Window. Please wait...\",\n\t\teditReport: \"Retrieving Order Data. Please wait\",\n\t\tsubscribeReport: \"Subscribing to saved search\",\n\t\tunsubscribeReport: \"Unsubscribing from saved search\",\n\t\tdownloadZip: \"Descargando Zip. Por favor espera...\",\n\t\timageDownload: \"Downloading Report. Please wait...\",\n\t\tnullReport: \"Report is not available Please try after sometime\",\n\t\taccountSelection: \"Please select an account number before entering a claim number.\"\n\t},\n\tpageTitle: {\n\t\tORDER_HISTORY: 'Historial de pedidos',\n\t\tSEARCH_RESULTS: 'Resultados de búsqueda',\n\t},\n\tconcepts: {\n\t\t...English.concepts\n\t}\n}\n","import { Language, Locale, StringProvider } from './translation'\n\nimport { English } from './en'\n\n// TODO: I don't know portuguese\n// The minimal amount of stuff here is from google translate\nexport const Portuguese: Language = {\n\t...English,\n\tid: 'pt',\n\tname: 'Português [TODO]',\n\tactions: {\n\t\t...English.actions,\n\t\tuser: {\n\t\t\tselectLang: 'Selecione o idioma',\n\t\t\treturnToWorkspace: 'Retornar ao Portal',\n\t\t\teditAccount: 'Minha conta',\n\t\t\tlogout: 'Sair',\n\t\t\tlangSelection: 'Seleção de idioma',\n\t\t\trememberLang: 'Lembre-se deste idioma para entrada futura',\n\t\t\t...English.actions.user\n\t\t}\n\t}\n}\n","import { autorun, computed } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as moment from 'moment';\nimport * as React from \"react\";\nimport { ChecklistStrings } from '../components/select-list';\nimport { ErrorMessage, state } from '../services/state';\nimport { English } from './en';\nimport { Spanish } from './es';\nimport { Portuguese } from './pt';\n\nexport interface StringProvider {\n\t[key: string]: string;\n}\n\nexport interface Locale {\n\tformatMoney: (n: number) => string;\n}\n\nexport const USLocale: Locale = {\n\n\tformatMoney: (n: number) => {\n\t\tif (!n) {\n\t\t\treturn \"$ 0.00\";\n\t\t}\n\t\treturn n.toLocaleString('us', { style: 'currency', currencyDisplay: 'symbol', currency: 'USD' });\n\t}\n}\n\nexport const Brazil: Locale = {\n\tformatMoney: (n: number) => {\n\t\tif (!n) {\n\t\t\treturn \"R$ 0.00\";\n\t\t}\n\t\treturn n.toLocaleString('br', { style: 'currency', currencyDisplay: 'symbol', currency: 'USD' });\n\t}\n}\n\nexport interface Language {\n\tid: 'en' | 'es' | 'pt';\n\tname: string;\n\tapp: {\n\t\tname: string;\n\t\tsection: {\n\t\t\thome: string;\n\t\t\tworkspace: string;\n\t\t\tusermanage: string;\n\t\t\thelp: string;\n\t\t\tquestion: string;\n\t\t\treports: string;\n\t\t\torderReports: string;\n\t\t\torderHistory: string;\n\t\t\torderLog: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\thelp: {\n\t\t\torderReports: string;\n\t\t\tnav: {\n\t\t\t\tfrequent: string;\n\t\t\t\tincident: string;\n\t\t\t\tinteractive: string;\n\t\t\t}\n\t\t},\n\t\tterms: {\n\t\t\tdppaType: {\n\t\t\t\tNO_PERMISSIBLE_PURPOSE: string;\n\t\t\t\tINSURANCE: string;\n\t\t\t\tCOURT_LAW: string;\n\t\t\t\tMOTOR_VEHICLE: string;\n\t\t\t\tVERIFY_ACCURACY: string;\n\t\t\t\tCIVIL_CRIMINAL: string;\n\t\t\t\tPRIVATE_INVESTIGATOR: string;\n\t\t\t\t[key: string]: string;\n\t\t\t},\n\t\t\tdppaDesc: {\n\t\t\t\tINSURANCE: string;\n\t\t\t\tCOURT_LAW: string;\n\t\t\t\tMOTOR_VEHICLE: string;\n\t\t\t\tVERIFY_ACCURACY: string;\n\t\t\t\tCIVIL_CRIMINAL: string;\n\t\t\t\tPRIVATE_INVESTIGATOR: string;\n\t\t\t\t[key: string]: string;\n\t\t\t}\n\t\t},\n\t\tcomponents: {\n\t\t\tchecklist: ChecklistStrings;\n\t\t}\n\t};\n\tactions: {\n\t\treload: string;\n\t\twaiting: string;\n\t\tpleaseWait: string;\n\t\tsearchTypes?: {\n\t\t\tCLAIM_NUMBER: string;\n\t\t\tPARTY_NAME_FIRST: string;\n\t\t\tPARTY_NAME_LAST: string;\n\t\t\t[key: string]: string;\n\t\t};\n\t\tactionTypes?: {\n\t\t\tOPEN: string;\n\t\t\tPRINT: string;\n\t\t\tDOWNLOAD: string;\n\t\t\tDOWNLOAD_PDF: string;\n\t\t\tDOWNLOAD_TIFF: string;\n\t\t\tDOWNLOAD_XML: string;\n\t\t\tEDIT: string;\n\t\t\tSUMMARY: string;\n\t\t\tRESUME: string;\n\t\t\tORDER_REPORT: string;\n\t\t\tREORDER_WO_DOL: string;\n\t\t\tTAT: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\tmanageActionTypes?: {\n\t\t\tSUBSCRIBE: string;\n\t\t\tUNSUBSCRIBE: string;\n\t\t\tEDIT: string;\n\t\t\tDOWNLOAD: string;\n\t\t\tDELETE: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\tuser: {\n\t\t\tselectLang: string;\n\t\t\treturnToWorkspace: string;\n\t\t\teditAccount: string;\n\t\t\tmanageUsers: string;\n\t\t\tlogout: string;\n\t\t\tlangSelection: string;\n\t\t\trememberLang: string;\n\t\t}\n\t\tterms: {\n\t\t\ttermContent: string;\n\t\t\tglbaTitle: string;\n\t\t\tglbaPermissibleUse: string;\n\t\t\tdppaTitle: string;\n\t\t\tdppaPermissibleUse: string;\n\t\t\tdppaPermissibleUse_0: string;\n\t\t\tdppaPermissibleUse_6: string;\n\t\t\tdppaPermissibleUse_4: string;\n\t\t\tdppaPermissibleUse_1: string;\n\t\t\tdppaPermissibleUse_2: string;\n\t\t\tdppaPermissibleUse_3: string;\n\t\t\tdppaPermissibleUse_7: string;\n\t\t\tcontinue: string;\n\t\t}\n\t\tpotential: {\n\t\t\tselect: string;\n\t\t\tnone: string;\n\t\t\texact: string;\n\t\t\tpurchase: string;\n\t\t\tpotential: string;\n\t\t}\n\t}\n\tconcepts?: {\n\t\tagencyTypes: {\n\t\t\t[key: string]: string;\n\t\t}\n\t\ttatCodes: {\n\t\t\tTAT0: string;\n\t\t\tTAT1: string;\n\t\t\tTAT2: string;\n\t\t\tTAT3: string;\n\t\t\tTAT4: string;\n\t\t\tTAT5: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\tterminationCodes: {\n\t\t\t200: string;\n\t\t\t400: string;\n\t\t\t405: string;\n\t\t\t406: string;\n\t\t\t411: string;\n\t\t\t416: string;\n\t\t\t412: string;\n\t\t\t413: string;\n\t\t\t414: string;\n\t\t\t415: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\treportTypes: {\n\t\t\tAUTO_ACCIDENT: string;\n\t\t\tAUTO_ACCIDENT_OPEN: string\n\t\t\tAUTO_THEFT: string;\n\t\t\tAUTO_THEFT_RECOVERY: string;\n\t\t\tTHEFT_BURGLARY: string;\n\t\t\tFIRE_BUILDING: string;\n\t\t\tFIRE_AUTO: string;\n\t\t\tVANDALISM: string;\n\t\t\tDUI: string;\n\t\t\tREGISTERED_VEHICLE_OWNER: string;\n\t\t\tAUTOPSY_CORONER: string;\n\t\t\tHOMICIDE: string;\n\t\t\tPHOTOS: string;\n\t\t\tISSUE_LETTER_INTEREST: string;\n\t\t\tOTHER: string;\n\t\t\tINSURANCE_VERIFICATION: string;\n\t\t\tTITLE_HISTORY: string;\n\t\t\tALL_REGISTERED_VEHICLES_IN_HOUSEHOLD: string;\n\t\t\tDEATH_CERTIFICATE: string;\n\t\t\tBIRTH_CERTIFICATE: string;\n\t\t\tARREST: string;\n\t\t\tCITATION_CONVICTION: string;\n\t\t\tEMS: string;\n\t\t\tRECONSTRUCTION: string;\n\t\t\tSUPPLEMENTAL: string;\n\t\t\tTOXICOLOGY: string;\n\t\t\tFACE_LOG_SHEET: string;\n\n\t\t\tVEHICLES_AT_HOUSEHOLD: string;\n\t\t\tVIN: string;\n\t\t\tPLATE_TAG: string;\n\t\t\tVEHICLES_BY_NAME_ADDR_TYPE: string;\n\t\t\tAUTOCHECK_VIN_HISTORY: string;\n\t\t\tCLAIMS_MVR: string;\n\t\t\tCARRIER_DISCOVERY: string;\n\t\t\tCARRIER_DISCOVERY_VIN: string;\n\t\t\tCARRIER_DISCOVERY_SUB: string;\n\t\t\tCARRIER_ID: string;\n\t\t\tCARRIER_ID_VIN: string;\n\t\t\tCARRIER_ID_SUB: string;\n\t\t\tCLAIMS_DISCOVERY: string;\n\t\t\tCLAIMS_DISCOVERY_VIN: string;\n\t\t\tCLAIMS_DISCOVERY_SUB: string;\n\t\t\tCLAIMS_COMPREHENSIVE: string;\n\t\t\tCLAIMS_POLICE_LOCATOR: string;\n\n\t\t\t[key: string]: string;\n\t\t},\n\t\tshortReportTypes: {\n\t\t\tVEHICLES_AT_HOUSEHOLD: string;\n\t\t\tVIN: string;\n\t\t\tPLATE_TAG: string;\n\t\t\tVEHICLES_BY_NAME_ADDR_TYPE: string;\n\t\t\tAUTOCHECK_VIN_HISTORY: string;\n\t\t\tCLAIMS_MVR: string;\n\t\t\tCARRIER_DISCOVERY: string;\n\t\t\tCARRIER_DISCOVERY_VIN: string;\n\t\t\tCARRIER_DISCOVERY_SUB: string;\n\t\t\tCARRIER_ID: string;\n\t\t\tCARRIER_ID_VIN: string;\n\t\t\tCARRIER_ID_SUB: string;\n\t\t\tCLAIMS_DISCOVERY: string;\n\t\t\tCLAIMS_DISCOVERY_VIN: string;\n\t\t\tCLAIMS_DISCOVERY_SUB: string;\n\t\t\tCLAIMS_COMPREHENSIVE: string;\n\t\t\tCLAIMS_POLICE_LOCATOR: string;\n\n\t\t\t[key: string]: string;\n\t\t},\n\t\tmgmtReportTypes: {\n\t\t\tINCIDENT_TAT: string;\n\t\t\tALL_SUMMARY: string;\n\t\t\tALL_DETAIL: string;\n\n\t\t\t[key: string]: string;\n\t\t},\n\t\tmgmtReportGroupBy: {\n\t\t\tUSER_ID: string;\n\t\t\tACCOUNT_NUMBER: string;\n\t\t\tREPORT_TYPE: string;\n\n\t\t\t[key: string]: string;\n\t\t},\n\t\treportHelp: {\n\t\t\t[key: string]: string;\n\t\t}\n\t\torderStatuses: {\n\t\t\tCOMPLETE: string;\n\t\t\tPROCESSING: string;\n\t\t\tSAVED: string;\n\t\t\tERROR: string;\n\t\t\t[key: string]: string;\n\t\t}\n\t\treasons: {\n\t\t\tHOLD: string;\n\t\t\tCNCL: string;\n\t\t\tCMPL: string;\n\t\t\tACCI: string;\n\t\t\tAFYI: string;\n\t\t\tALTR: string;\n\t\t\tARIN: string;\n\t\t\tINVL: string;\n\t\t\tASSI: string;\n\t\t\tAUTO: string;\n\t\t\tBADC: string;\n\t\t\tBADD: string;\n\t\t\tBADT: string;\n\t\t\tCALL: string;\n\t\t\tCRII: string;\n\t\t\tDURI: string;\n\t\t\tEDIT: string;\n\t\t\tFORC: string;\n\t\t\tHAND: string;\n\t\t\tIISI: string;\n\t\t\tINHB: string;\n\t\t\tINHI: string;\n\t\t\tINPO: string;\n\t\t\tINWP: string;\n\t\t\tLEAV: string;\n\t\t\tLETR: string;\n\t\t\tLOCA: string;\n\t\t\tLOCM: string;\n\t\t\tLOCS: string;\n\t\t\tMIGA: string;\n\t\t\tMISC: string;\n\t\t\tNRFN: string;\n\t\t\tNRWN: string;\n\t\t\tPDFR: string;\n\t\t\tPRAC: string;\n\t\t\tRCAC: string;\n\t\t\tRCCC: string;\n\t\t\tRCER: string;\n\t\t\tREVW: string;\n\t\t\tRNNF: string;\n\t\t\tRNRN: string;\n\t\t\tROTH: string;\n\t\t\tRRRD: string;\n\t\t\tRRSC: string;\n\t\t\tRRSD: string;\n\t\t\tSEAR: string;\n\t\t\tSECR: string;\n\t\t\tSIOI: string;\n\t\t\tSRRI: string;\n\t\t\tWAIT: string;\n\t\t\tWJRR: string;\n\t\t\tWPJR: string;\n\t\t\tNRNF: string;\n\t\t\tINHA: string;\n\t\t\tCCIA: string;\n\t\t\tCCCE: string;\n\t\t\tINAT: string;\n\t\t\tINAQ: string;\n\t\t\tINAD: string;\n\t\t\tSAVED: string;\n\t\t\t[key: string]: string;\n\t\t}\n\t}\n\tcontact: {\n\t\terror: {\n\t\t\tbody: string;\n\t\t\t[key: string]: string;\n\t\t}\n\t}\n\terrorMessage: {\n\t\tREQ: string;\n\t\tIPC: string;\n\t\tNUM: string;\n\t\tALP: string;\n\t\tIDF: string;\n\t\tNFD: string;\n\t\tITF: string;\n\t\tLEN: string;\n\t\tMIL: string;\n\t\tMXL: string;\n\t\tIMS: string;\n\t\tIDV: string;\n\t\tECR: string;\n\t\t[key: string]: string;\n\t}\n\terrors: {\n\t\t0: ErrorMessage;\n\t\t400: ErrorMessage;\n\t\t401: ErrorMessage;\n\t\t403: ErrorMessage;\n\t\t404: ErrorMessage;\n\t\t500: ErrorMessage;\n\t\t900: ErrorMessage;\n\t\t901: ErrorMessage;\n\t\t902: ErrorMessage;\n\t\t[key: string]: ErrorMessage;\n\t}\n\tformFeedback: {\n\t\tformCleared: string;\n\t\tformSaving: string;\n\t\tsaveSearch: string;\n\t\tformSaved: string;\n\t\tsearchingReports: string;\n\t\torderingReport: string\n\t\tformSubmit: string;\n\t\tformSave: string;\n\t\timageRetrieval: string;\n\t\tprintReport: string;\n\t\teditReport: string;\n\t\tsubscribeReport: string;\n\t\tunsubscribeReport: string;\n\t\tdownloadZip: string;\n\t\timageDownload: string;\n\t\tnullReport: string;\n\t\taccountSelection: string;\n\t}\n\tresultSummaryText: {\n\t\texactMatch: string;\n\t\tprocessing: string;\n\t\tnewOrder: string;\n\t\treportNotAvailableForPublic: string;\n\t\tclaimsSummary: string;\n\t\tnoReport: string;\n\t}\n\tpageTitle: {\n\t\tORDER_HISTORY: string;\n\t\tSEARCH_RESULTS: string;\n\t}\n\tlabels: {\n\t\tadvancedSearch: {\n\t\t\tuserId: string;\n\t\t\tnodeID: string;\n\t\t\tclaimNumber: string;\n\t\t\treportNumber: string;\n\t\t\tsourceId: string;\n\t\t\tlastName: string;\n\t\t\tfirstName: string;\n\t\t\tstatus: string;\n\t\t\treportType: string;\n\t\t\tsubmissionDateTime: string;\n\t\t\taccountNumber: string;\n\t\t\tstate: string;\n\t\t\tagencyName: string;\n\t\t\tagencyType: string;\n\t\t\tvin: string;\n\t\t\ttag: string;\n\t\t\tdlNumber: string;\n\t\t\t[key: string]: string;\n\t\t}\n\t}\n\theaders: {\n\t\tpotentialMatch: {\n\t\t\t$select?: string;\n\t\t\tparties: string;\n\t\t\tincidentDate: string;\n\t\t\tincidentLocation: string;\n\t\t\tagencyName: string;\n\t\t\treportNumber: string;\n\t\t\treportType: string;\n\t\t\tclaimNumber: string;\n\t\t\torderId: string;\n\t\t\t[key: string]: string;\n\t\t},\n\t\tresultsSummary: {\n\t\t\t$select?: string;\n\t\t\tsubmissionDateTime: string,\n\t\t\tclaimNumber: string,\n\t\t\tsourceId: string,\n\t\t\treportType: string,\n\t\t\tincidentDateTime: string,\n\t\t\tparties: string,\n\t\t\tuserId: string,\n\t\t\tstatus: string,\n\t\t\t$actions: string,\n\t\t\t[key: string]: string;\n\t\t},\n\t\tsearchResults: {\n\t\t\t$select?: string;\n\t\t\tsourceId: string;\n\t\t\tclaimNumber: string;\n\t\t\treportType: string;\n\t\t\tincidentDateTime: string;\n\t\t\tsubmissionDateTime: string;\n\t\t\tparties: string;\n\t\t\tuserId: string,\n\t\t\tstatus: string,\n\t\t\t$actions: string,\n\t\t\t[key: string]: string;\n\t\t},\n\t\torderHistory: {\n\t\t\t$select?: string;\n\t\t\tsubmissionDateTime: string;\n\t\t\tclaimNumber: string;\n\t\t\taccountNumber: string;\n\t\t\tparties: string;\n\t\t\treportType: string;\n\t\t\tcompletedDateTime: string;\n\t\t\tstatus: string,\n\t\t\tuserId: string,\n\t\t\t$actions: string,\n\t\t\t[key: string]: string;\n\t\t},\n\t\tmanagementReport: {\n\t\t\t$select?: string;\n\t\t\ttype: string;\n\t\t\tname: string;\n\t\t\taccounts: string;\n\t\t\tusers: string;\n\t\t\tperiod: string;\n\t\t\treportType: string;\n\t\t\tsubscription: string;\n\t\t\temails: string;\n\t\t\t$actions: string,\n\t\t\t[key: string]: string;\n\t\t},\n\t\torderSummary: {\n\t\t\tsourceId: string;\n\t\t\tsubmissionDateTime: string;\n\t\t\tclaimNumber: string;\n\t\t\tadjusterId: string;\n\t\t\taccountNumber: string;\n\t\t\tstreet: string;\n\t\t\treportType: string;\n\t\t\tcrossStreet: string;\n\t\t\tincidentDateTime: string,\n\t\t\tcounty: string,\n\t\t\tparty1NameLast: string,\n\t\t\tcity: string,\n\t\t\tparty1Dob: string;\n\t\t\tagencyName: string;\n\t\t\tparty1Ssn: string;\n\t\t\tagencyType: string,\n\t\t\tparty1DlState: string,\n\t\t\treportNumber: string,\n\t\t\tparty1DlNumber: string,\n\t\t\tprecinct: string,\n\t\t\tparty2NameLast: string;\n\t\t\tpolicyNumber: string;\n\t\t\tparty3NameLast: string;\n\t\t\tpolicyState: string,\n\t\t\tyear: string,\n\t\t\tvin: string,\n\t\t\tplateNumber: string,\n\t\t\tplateState: string,\n\t\t\tadditionalInfo: string,\n\t\t\t[key: string]: string;\n\t\t};\n\t}\n\tarchivalStatus: {\n\t\tALL: string;\n\t\tARCHIVED: string;\n\t\tNON_ARCHIVED: string;\n\t\t[key: string]: string;\n\t}\n}\nexport const languages: { [key: string]: Language } = {\n\t'en': English,\n\t'es': Spanish,\n\t'pt': Portuguese // TODO: Portuguese\n};\n\nexport const locales: { [key: string]: Locale } = {\n\t'us': USLocale,\n\t'br': Brazil\n}\n\n@observer\nexport class IntlComponent

    extends React.Component {\n\n\tsml: any = \"sm\";\n\t\n\tconstructor(props: P) {\n\t\tsuper(props);\n\n\t\tautorun(() => {\n\t\t\tlet langLocale = state.ui.lang + \"-\" + state.ui.locale\n\t\t\tmoment.locale(langLocale);\n\t\t});\n\n\t}\n\n\t@computed\n\tget lang() {\n\t\treturn languages[state.ui.lang];\n\t}\n\n\t@computed\n\tget locale() {\n\t\treturn locales[state.ui.locale];\n\t}\n}\n","import axios, { AxiosInstance, AxiosRequestConfig } from 'axios';\nimport { flatten, unflatten } from 'flat';\nimport { action } from 'mobx';\nimport { toJS } from 'mobx';\nimport * as moment from 'moment';\nimport { LabelProvider } from '../components/transform';\nimport { LazyListLoader, ListRequest, PartialList } from '../data/common';\nimport { Form } from \"../data/form\";\nimport { InquiryView, Inquiry, ParameterizedListRequest, RenderedReport, UserConfig, AgencyInfo, UserPrefs, MvrDlFormat, TatResponse, ImageRetrievalRequest, ManagementReport, AdjusterAccounts } from '../data/model';\nimport { JWT, stripDomain, User } from '../data/user';\nimport { languages } from '../i18n/translation';\nimport { Authorities, state, REPORT_PRODUCT } from './state';\nimport { ui } from './ui';\nimport { ManagementReports } from '../pages/manage-reports-entry';\n\nexport class Connections {\n\tstatic baseUrl: string;\n\tstatic open: AxiosInstance = undefined;\n\tstatic secure: AxiosInstance = undefined;\n}\n\nexport const buildUrl = (pathAfterContent: string): string => {\n\tlet baseUrl = window.localStorage.getItem('clrp.url');\n\treturn baseUrl + pathAfterContent;\n};\n\nexport class ReportSearchApi implements LazyListLoader {\n\n\tsetPartyNumber(k: string) {\n\t\tif (k && k.startsWith('parties.0.')) {\n\t\t\tstate.forms.form.setValue('parties.0.number', 1);\n\t\t}\n\t\tif (k && k.startsWith('parties.1.')) {\n\t\t\tstate.forms.form.setValue('parties.1.number', 2);\n\t\t}\n\t\tif (k && k.startsWith('parties.2.')) {\n\t\t\tstate.forms.form.setValue('parties.2.number', 3);\n\t\t}\n\t}\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: Inquiry }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\n\t\t// to remove empty and null values from Form object\n\t\tfor (var [key, value] of state.forms.form.getValues().entries()) {\n\t\t\tif (value == null || value == '' || value == undefined) {\n\t\t\t\tstate.forms.form.clearValue(key);\n\t\t\t}\n\t\t\tthis.setPartyNumber(key);\n\t\t}\n\t\trequest.params = { ...unflatten(toJS(state.forms.form.getValues())) };\n\n\t\t//console.log(\"In ReportSearchApi: \" + request.params)\n\n\t\tconsole.log(\"In ReportSearchApi: prevInquiryId : \" + request.params['previousInquiryId']);\n\t\tconsole.log(\"In ReportSearchApi: orderId : \" + request.params['orderId']);\n\t\tconsole.log(\"In ReportSearchApi: reorderId : \" + request.params['reorderId']);\n\n\t\treturn Connections.secure.post('/api/report/search', request.params, { timeout: 180000 }).then(response => {\n\n\t\t\tconsole.log(response);\n\t\t\tlet formData = flatten(response.data.data.parameters) as { [key: string]: any };\n\t\t\tstate.potentialMatch.editInquiry.clear();\n\t\t\tlet map = state.potentialMatch.editInquiry.getValues();\n\n\t\t\tfor (let k of Object.keys(formData)) {\n\t\t\t\tmap.set(k, formData[k]);\n\t\t\t}\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\tlet dlState = state.forms.form.getValue('parties.0.dlState');\n\t\t\tif (state.forms.reportType.get() == \"CLAIMS_MVR\" && dlState == 'CA') {\n\t\t\t\tstate.orderLogState.orderLogCount = 1;\n\t\t\t}\n\t\t\treturn partial;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.form.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n}\n\n\nexport class FormApi {\n\n\tsetPartyNumber(k: string) {\n\t\tif (k && k.startsWith('parties.0.')) {\n\t\t\tstate.forms.form.setValue('parties.0.number', 1);\n\t\t}\n\t\tif (k && k.startsWith('parties.1.')) {\n\t\t\tstate.forms.form.setValue('parties.1.number', 2);\n\t\t}\n\t\tif (k && k.startsWith('parties.2.')) {\n\t\t\tstate.forms.form.setValue('parties.2.number', 3);\n\t\t}\n\t}\n\n\tsave(form: Form, autoSave?: boolean) {\n\n\t\tlet dateFields = ['incidentDate', 'parties.0.dob'];\n\t\t// to remove empty and null values from Form object\n\t\tfor (var [key, value] of form.getValues().entries()) {\n\t\t\tif (value == null || value == '' || value == undefined) {\n\t\t\t\tform.clearValue(key);\n\t\t\t}\n\t\t\tdateFields.forEach(element => {\n\t\t\t\tif (element == key) {\n\t\t\t\t\tlet dateValue = form.getValue(key);\n\t\t\t\t\tif (dateValue) {\n\t\t\t\t\t\tlet date = moment(dateValue, 'MM/DD/YYYY', true);\n\t\t\t\t\t\tif (!date.isValid()) {\n\t\t\t\t\t\t\tform.clearValue(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\tif (key == 'incidentTime') {\n\t\t\t\tlet incidentTime = form.getValue(key);\n\t\t\t\tif (incidentTime) {\n\t\t\t\t\tconsole.log(\"incidentTime: \", incidentTime);\n\t\t\t\t\tlet mTime = moment(incidentTime, 'HH:mm', true);\n\t\t\t\t\tif (!mTime.isValid()) {\n\t\t\t\t\t\tform.clearValue(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPartyNumber(key);\n\t\t}\n\n\n\t\tconsole.log(\"save req: \" + form.getValues());\n\t\tconsole.log(\"save req to JS: \" + toJS(form.getValues()));\n\t\tlet request = unflatten(toJS(form.getValues()));\n\n\t\treturn Connections.secure.post('/api/form/save/' + autoSave, request).then(response => {\n\t\t\tconsole.log(response);\n\t\t\tlet id = response.data.data as string;\n\t\t\tconsole.log(\"saved form id: \", id);\n\t\t\treturn Promise.resolve(id);\n\t\t});\n\t}\n\tgetformData(id: string) {\n\t\tconsole.log(\"id: \", id);\n\t\treturn Connections.secure.post('/api/form/' + id).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as Inquiry;\n\t\t});\n\t}\n}\n\nexport class AuthApi {\n\n\tprivate TOKEN_NAME = 'clrp.token';\n\n\tlaunch() {\n\t\tlet baseUrl = window.localStorage.getItem('clrp.url');\n\t\tif (baseUrl == null) {\n\t\t\t//try to get it from request url, this happens only if user clears his browser cache\n\t\t\tlet requestUrl = window.location.href;\n\t\t\tlet indexOfClrpui = requestUrl.indexOf('clrpui');\n\t\t\tif (indexOfClrpui > -1) {\n\t\t\t\tbaseUrl = requestUrl.substring(0, indexOfClrpui);\n\t\t\t\twindow.localStorage.setItem('clrp.url', requestUrl.substring(0, indexOfClrpui));\n\t\t\t}\n\t\t}\n\t\tConnections.baseUrl = baseUrl;\n\t\tConnections.open = axios.create({ baseURL: baseUrl, timeout: 30000 });\n\n\t\tlet token = this.getStoredToken();\n\t\tif (token == null) {\n\t\t\tthis.redirectToCLA();\n\t\t\tthrow new Error('No token present');\n\t\t}\n\n\t\t// this also sets up the secure connection if the token looks ok\n\t\ttry {\n\t\t\tthis.localValidateToken();\n\t\t} catch (error) {\n\t\t\tstate.error = { code: 401 }\n\t\t\t//state.ui.history.replace('/error');\n\t\t\tthis.redirectToCLA();\n\t\t\tthrow new Error('Token not parsable')\n\t\t}\n\n\t\t// returns an error, or undefined if everything is ok\n\t\tthis.serverRefreshToken().then(newToken => {\n\n\t\t\tthis.setStoredToken(newToken);\n\t\t\t// things to run on every app refresh\n\t\t\tConnections.secure.get('/app/config').then(response => {\n\t\t\t\tlet config = response.data.data as { [key: string]: string };\n\t\t\t\tstate.ui.cache.config.replace(config);\n\t\t\t\tconsole.log('Loaded app config:', state.ui.cache.config);\n\t\t\t});\n\t\t\torderLogApi.getOrderLogCount().then(orderLog => {\n\t\t\t\tObject.keys(orderLog).forEach(key => {\n\t\t\t\t\tif (key == 'orderLogCount') {\n\t\t\t\t\t\tstate.orderLogState.orderLogCount = orderLog[key];\n\t\t\t\t\t}\n\t\t\t\t\tif (key == 'orderLogMaxedOutCount') {\n\t\t\t\t\t\tstate.orderLogState.orderLogMaxedOutCount = orderLog[key];\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t\tuserApi.getUserConfig(true);\n\t\t\tdataApi.getDlFormats().then(formats => {\n\t\t\t\tstate.ui.cache.dlFormats = formats;\n\t\t\t\tconsole.log('Loaded DL formats:', state.ui.cache.dlFormats);\n\t\t\t})\n\t\t}).catch(err => {\n\t\t\tstate.error = err.response.data;\n\t\t\tstate.ui.history.replace('/error');\n\t\t\tthis.logout();\n\t\t});\n\t}\n\n\tredirectToCLA() {\n\t\tstate.security.loggedOut = true;\n\t\tdataApi.getConfig().then(response => {\n\t\t\tstate.ui.cache.config.replace(response.data);\n\t\t\t//let url = state.ui.cache.config.get('auth.cla.logout.url');\n\t\t\tlet url = state.security.idsLogoutUrl;\n\t\t\tconsole.log('url', url);\n\t\t\twindow.location.assign(url);\n\t\t});\n\t}\n\n\n\tpublic refreshToken(token: string) {\n\t\tthis.setStoredToken(token);\n\t\tthis.localValidateToken();\n\t}\n\n\tpublic setStoredToken(token: string): void {\n\t\twindow.localStorage.setItem(this.TOKEN_NAME, token);\n\t}\n\n\tpublic getStoredToken(): string {\n\t\treturn window.localStorage.getItem(this.TOKEN_NAME);\n\t}\n\n\tprivate removeStoredToken(): void {\n\t\twindow.localStorage.removeItem(this.TOKEN_NAME);\n\t}\n\n\tuserHasAuthority(authority: string): boolean {\n\t\t//console.log(\"authorities==========\", state.security.user.authorities)\n\t\treturn state.security.user && state.security.user.authorities.indexOf(authority) >= 0;\n\t}\n\n\tlogout(isError = false) {\n\t\tlet token = this.getStoredToken();\n\t\tthis.removeStoredToken();\n\n\t\tif (!isError) {\n\t\t\tstate.security.loggedOut = true;\n\t\t}\n\n\t\tlet logoutUrl = state.security.idsLogoutUrl;\n\t\tconsole.log(\"logoutUrl formed: \" + logoutUrl);\n\n\t\tstate.security.jwt = undefined;\n\t\tstate.security.user = undefined;\n\n\t\tif (Connections.secure) {\n\t\t\tConnections.secure.post('/api/user/cache/clear').then(r1 => {\n\t\t\t\tconsole.log(\"Cache cleared\");\n\t\t\t\tConnections.secure = undefined;\n\t\t\t\tconsole.log(\"Secure connection dropped\");\n\n\t\t\t\tConnections.open.post('/auth/logout', token).then(r2 => {\n\t\t\t\t\tconsole.log('before calling activitySync.logout()');\n\t\t\t\t\tstate.security.activitySync.logout();\n\t\t\t\t\tconsole.log('after calling activitySync.logout()');\n\t\t\t\t\tconsole.log(\"User logged out\");\n\t\t\t\t\t// let url = state.security.idsLogoutUrl ? state.security.idsLogoutUrl : state.ui.cache.config.get('auth.cla.logout.url');\n\t\t\t\t\twindow.location.assign(logoutUrl);\n\t\t\t\t}).catch(err => {\n\t\t\t\t\t// let url = state.security.idsLogoutUrl ? state.security.idsLogoutUrl : state.ui.cache.config.get('auth.cla.logout.url');\n\t\t\t\t\twindow.location.assign(logoutUrl);\n\t\t\t\t})\n\n\t\t\t}).catch(err => {\n\t\t\t\tconsole.log('Error during logout:', err);\n\t\t\t});\n\t\t}\n\t}\n\n\t@action.bound\n\tpublic serverRefreshToken(): Promise {\n\t\tlet token: string = this.getStoredToken();\n\n\t\tif (token) {\n\t\t\treturn Connections.secure.post('/auth/refresh', token)\n\t\t\t\t.then(response => {\n\t\t\t\t\tvar refreshedToken = response.data as string;\n\t\t\t\t\t//console.log(\"refreshedToken: \", refreshedToken);\n\t\t\t\t\treturn refreshedToken;\n\t\t\t\t});\n\t\t}\n\t\treturn Promise.reject(new Error(\"Can't refresh: No token\"));\n\t}\n\n\tpublic getConnection() {\n\t\tlet baseUrl = window.localStorage.getItem('clrp.url');\n\t\tif (baseUrl == null) {\n\t\t\t//try to get it from request url, this happens only if user clears his browser cache\n\t\t\tlet requestUrl = window.location.href;\n\t\t\tlet indexOfClrpui = requestUrl.indexOf('clrpui');\n\t\t\tif (indexOfClrpui > -1) {\n\t\t\t\tbaseUrl = requestUrl.substring(0, indexOfClrpui);\n\t\t\t\twindow.localStorage.setItem('clrp.url', requestUrl.substring(0, indexOfClrpui));\n\t\t\t}\n\t\t}\n\t\tConnections.baseUrl = baseUrl;\n\t\tConnections.open = axios.create({ baseURL: baseUrl, timeout: 30000 });\n\n\t\tlet token = this.getStoredToken();\n\t\tif (token == null) {\n\t\t\tthis.redirectToCLA();\n\t\t\tthrow new Error('No token present');\n\t\t}\n\n\t\t// this also sets up the secure connection if the token looks ok\n\t\ttry {\n\t\t\tthis.localValidateToken();\n\t\t} catch (error) {\n\t\t\tstate.error = { code: 401 }\n\t\t\t//state.ui.history.replace('/error');\n\t\t\tthis.redirectToCLA();\n\t\t\tthrow new Error('Token not parsable')\n\t\t}\n\t}\n\n\t@action.bound\n\tpublic localValidateToken(): void {\n\t\tlet token: string = this.getStoredToken();\n\t\tlet [header, encodedPayload, signature] = token.split('.');\n\t\tlet jwt: JWT = JSON.parse(atob(encodedPayload));\n\n\t\tif (jwt) {\n\t\t\tif (moment(jwt.exp).isAfter(moment.now())) {\n\t\t\t\tthrow 'Token has expired.';\n\t\t\t}\n\n\t\t\tlet user = JSON.parse(jwt.user as string) as User;\n\n\t\t\tif (user.authorities.indexOf(Authorities.LOGIN) >= 0) {\n\t\t\t\tConnections.secure = axios.create({\n\t\t\t\t\tbaseURL: Connections.baseUrl,\n\t\t\t\t\ttimeout: 30000,\n\t\t\t\t\theaders: {\n\t\t\t\t\t\tAuthorization: 'Bearer ' + token\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tstate.security.jwt = jwt;\n\t\t\t\tstate.security.user = user;\n\t\t\t\tthis.setStoredToken(token);\n\t\t\t\tConnections.secure.interceptors.response.use(\n\t\t\t\t\tsuccess => {\n\t\t\t\t\t\tconsole.log(\"url: \" + success.config.url);\n\t\t\t\t\t\tif (!success.config.url.endsWith('/form/save/true') && !success.config.url.endsWith('/auth/refresh') && !success.config.url.endsWith('/purpose/declare') && !success.config.url.endsWith('/config')\n\t\t\t\t\t\t\t&& !success.config.url.endsWith('/auth/logout') && !success.config.url.endsWith('/cache/clear')\n\t\t\t\t\t\t\t&& !success.config.url.endsWith('/data/dlformats') && !success.config.url.endsWith('/orderlog/count')) {\n\t\t\t\t\t\t\tthis.serverRefreshToken().then(\n\t\t\t\t\t\t\t\tnewToken => { this.refreshToken(newToken); }\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstate.security.startTimer();\n\t\t\t\t\t\treturn success;\n\t\t\t\t\t},\n\t\t\t\t\terror => {\n\t\t\t\t\t\tstate.error = {\n\t\t\t\t\t\t\tcode: error.response.data.code ? error.response.data.code : error.response.status,\n\t\t\t\t\t\t\tid: error.response.data.data\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (state.error.code == 400) {\n\t\t\t\t\t\t\treturn Promise.reject(error);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (state.error.code == 401) {\n\t\t\t\t\t\t\tthis.redirectToCLA();\n\t\t\t\t\t\t\tthrow new Error('Invalid token');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlet lang = state.ui.lang\n\t\t\t\t\t\tlet errorMessage = languages[lang].errors[state.error.code];\n\t\t\t\t\t\tui.showSnack(errorMessage.title, 5000);\n\n\t\t\t\t\t\tif (state.error.code == 404) {\n\t\t\t\t\t\t\treturn Promise.reject(error);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstate.security.startTimer();\n\t\t\t\t\t\tstate.ui.history.push('/error');\n\n\t\t\t\t\t\t// return a broken promise so that neither then nor catch on the calling promise is executed.\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tthen: () => { },\n\t\t\t\t\t\t\tcatch: () => { }\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow 'User does not have permission to view application';\n\t\t}\n\t\tthrow 'Invalid token';\n\t}\n\n}\n\nclass UserApi {\n\n\tgetUserConfig(force = false) {\n\t\tif (!force && state.ui.cache.userConfig) {\n\t\t\treturn Promise.resolve(state.ui.cache.userConfig);\n\t\t}\n\n\t\treturn Connections.secure.get('/api/user/config').then(response => {\n\t\t\tstate.ui.cache.userConfig = response.data.data as UserConfig;\n\t\t\treturn state.ui.cache.userConfig;\n\t\t});\n\t}\n\n\tgetAdjusterAccountsforAdjusterName(id: string) {\n\t\tlet adjuster = id ? id.trim() : \"\";\n\t\tconsole.log(\"adjuster: \", adjuster);\n\t\tlet request = { \"adjuster\": adjuster };\n\t\treturn Connections.secure.post('/api/user/adjuster', request).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as AdjusterAccounts;\n\t\t});\n\t}\n\n\tgetAdjusterFullName(id: string) {\n\t\tlet adjuster = id ? id.trim() : \"\";\n\t\tconsole.log(\"adjuster: \", adjuster);\n\t\tlet request = { \"adjuster\": adjuster };\n\t\treturn Connections.secure.post('/api/user/name', request).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as string;\n\t\t});\n\t}\n\n\t// adjuster ids have no domain: 'bodig'\n\t// getAdjusterIdsForUser(): Promise> {\n\t// \treturn this.getUserConfig(false).then(config => {\n\t// \t\tlet adjusters = new PartialList();\n\t// \t\tadjusters.ids = [];\n\t// \t\tadjusters.map = {};\n\n\t// \t\tif (!config || !config.adjusters) {\n\t// \t\t\treturn adjusters;\n\t// \t\t}\n\n\t// \t\tObject.keys(config.adjusters).forEach(user => {\n\t// \t\t\tadjusters.ids.push(stripDomain(user).toUpperCase());\n\t// \t\t\tadjusters.map[stripDomain(user).toUpperCase()] = config.adjusters[user];\n\t// \t\t})\n\n\t// \t\treturn adjusters;\n\t// \t});\n\t// }\n\n\tgetAccountNumbersForProduct(): Promise {\n\t\treturn this.getUserConfig(false).then(config => {\n\t\t\tlet productConfig: any = new Object();\n\t\t\tif (!config || !config.productConfig) {\n\t\t\t\treturn productConfig[REPORT_PRODUCT[state.forms.reportType.get()]];\n\t\t\t}\n\t\t\tproductConfig = config.productConfig\n\n\t\t\treturn productConfig[REPORT_PRODUCT[state.forms.reportType.get()]];\n\t\t});\n\t}\n\n\tgetAccountNameProvider(): Promise {\n\n\t\treturn this.getUserConfig(false).then(config => {\n\t\t\treturn config\n\t\t\t\t? (account: string) => {\n\t\t\t\t\treturn (config && config.accountInfo && config.accountInfo[account])\n\t\t\t\t\t\t? config.accountInfo[account].name : undefined;\n\t\t\t\t}\n\t\t\t\t: () => '';\n\t\t});\n\t}\n\n\tdeclarePermissibleUse(dppa: number[]) {\n\n\t\tlet request = { dppa };\n\n\t\treturn Connections.secure.post('/api/user/purpose/declare', request).then(response => {\n\t\t\tlet newToken = response.data as string;\n\t\t\treturn newToken;\n\t\t});\n\t}\n\n\tgetUserPrefs() {\n\t\treturn Connections.secure.get('/api/user/prefs').then(response => {\n\t\t\tlet rs = response.data\n\t\t\tif (rs.data.data) {\n\t\t\t\tlet data = JSON.parse(rs.data.data) as UserPrefs;\n\t\t\t\treturn data;\n\t\t\t}\n\t\t\treturn undefined\n\t\t});\n\t}\n}\n\nexport class DataApi {\n\tgetCounties(state: string, city: string) {\n\t\tlet payload = { city, state };\n\n\t\treturn Connections.secure.post('/api/data/counties', payload).then(response => {\n\t\t\treturn Promise.resolve(response.data.data as string[]);\n\t\t});\n\t}\n\n\tgetAgencies(state: string, agencyNamePrefix: string) {\n\t\tlet payload = { state, agencyNamePrefix };\n\n\t\treturn Connections.secure.post('/api/data/agencies', payload).then(response => {\n\t\t\treturn Promise.resolve(response.data.data as AgencyInfo[]);\n\t\t});\n\t}\n\n\tgetDlFormats() {\n\t\tif (state.ui.cache.dlFormats) {\n\t\t\treturn Promise.resolve(state.ui.cache.dlFormats);\n\t\t}\n\t\treturn Connections.secure.get('/api/data/dlformats').then(response => {\n\t\t\tstate.ui.cache.dlFormats = response.data.data as { [key: string]: MvrDlFormat[] };\n\t\t\treturn state.ui.cache.dlFormats;\n\t\t});\n\t}\n\n\tgetConfig() {\n\t\treturn Connections.open.get('/app/config').then(response => {\n\t\t\treturn response.data as { [key: string]: string };\n\t\t});\n\t}\n\n\tgetStatus() {\n\t\treturn Connections.open.get('/monitor/status/json', { responseType: 'json' }).then(response => {\n\t\t\treturn response.data as { [key: string]: any };\n\t\t});\n\t}\n\n\tgetMonitor() {\n\t\treturn Connections.open.get('/monitor/check', { responseType: 'json' }).then(response => {\n\t\t\treturn response.data as { [key: string]: any };\n\t\t});\n\t}\n\tgetAppProperties() {\n\t\treturn Connections.secure.get('/admin/config/json').then(response => {\n\t\t\treturn response.data;\n\t\t});\n\t}\n\treloadAppProperties() {\n\t\treturn Connections.secure.post('/admin/config/reload').then(response => {\n\t\t\treturn response.data;\n\t\t});\n\t}\n\tgetAppPropertiesDiff() {\n\t\treturn Connections.secure.post('/admin/config/diff').then(response => {\n\t\t\treturn response.data;\n\t\t});\n\t}\n\tgetCssContent() {\n\t\treturn Connections.open.get('/app.css').then(response => {\n\t\t\treturn response.data as string;\n\t\t});\n\t}\n}\n\nexport class ReportApi {\n\n\tgetReport(request: ImageRetrievalRequest) {\n\t\treturn Connections.secure.post('/api/report/image', request, { timeout: 180000 }).then(response => {\n\t\t\treturn Promise.resolve(response.data.data as RenderedReport);\n\t\t});\n\t}\n\n\tgetZipDownload(reportParams: InquiryView[]): Promise {\n\t\treturn Connections.secure.post('/api/reports/archive', reportParams, { responseType: 'blob', timeout: 180000 }).then(response => {\n\t\t\treturn response.data as Blob;\n\t\t});\n\t}\n\n\thtmlToPdf(html: string) {\n\t\tlet config: AxiosRequestConfig = {\n\t\t\tdata: html,\n\t\t\tresponseType: 'blob',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'text/plain'\n\t\t\t}\n\t\t};\n\t\treturn Connections.secure.post('/api/report/topdf', html, config).then(response => {\n\t\t\treturn response.data as Blob;\n\t\t});\n\t}\n\n\tgetOrderSummaryReport(request: ImageRetrievalRequest) {\n\t\treturn Connections.secure.post('/api/report/summary', request, { timeout: 180000 }).then(response => {\n\t\t\treturn Promise.resolve(response.data.data as RenderedReport);\n\t\t});\n\t}\n\n}\n\nclass OrderHistoryApi implements LazyListLoader {\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: InquiryView }> {\n\t\treturn Connections.secure.post('/api/order/history', ids).then(response => {\n\t\t\treturn response.data as { [key: string]: InquiryView };\n\t\t});\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\t\tlet orderHistoryRequest = { ...request, historyStatus: state.orderHistory.archiveStatus }\n\t\treturn Connections.secure.post('/api/order/history', orderHistoryRequest, { timeout: 300000 }).then(response => {\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\treturn partial;\n\t\t});\n\t}\n}\n\n\nclass SearchApi implements LazyListLoader {\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: InquiryView }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\t\tlet searchRequest = { ...request, query: state.search.query, type: state.search.type }\n\t\treturn Connections.secure.post('/api/search/basic', searchRequest, { timeout: 300000 }).then(response => {\n\t\t\tconsole.log(response);\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\treturn partial;\n\t\t});\n\t}\n}\n\nclass AdvancedSearchApi implements LazyListLoader {\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: InquiryView }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\n\t\t// to remove empty and null values from Form object [CLRP-986]\n\t\tfor (var [key, value] of state.forms.advancedSearch.getValues().entries()) {\n\t\t\t//console.log(\"Adnaved Search criteria value = \", value, \"++ for key:\", key)\n\t\t\tif (value == null || value == '' || value == undefined) {\n\t\t\t\tstate.forms.advancedSearch.clearValue(key);\n\t\t\t}\n\t\t}\n\n\t\tlet advanceSearchRequest = { ...request, form: toJS(state.forms.advancedSearch.getValues()) }\n\n\t\treturn Connections.secure.post('/api/search/advanced', advanceSearchRequest, { timeout: 300000 }).then(response => {\n\t\t\tconsole.log(response);\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\treturn partial;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.advancedSearch.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n}\n\nclass OperationsSearchApi implements LazyListLoader {\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: InquiryView }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\t\tlet operationSearchRequest = { ...request, form: toJS(state.forms.operationsForm.getValues()) }\n\n\t\treturn Connections.secure.post('/api/search/operator', operationSearchRequest).then(response => {\n\t\t\tconsole.log(response);\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\treturn partial;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.operationsForm.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n}\n\n\nclass ManagementReportApi implements LazyListLoader {\n\n\tsubscription(id: string, subscribe: boolean) {\n\t\tconsole.log(\"id: \", id);\n\n\n\n\t\tlet managementReport: ManagementReport = JSON.parse(state.managementReportState.data.get(id).searchFilters);\n\n\t\tmanagementReport.subscribed = subscribe;\n\t\tif (managementReport.users) {\n\t\t\tmanagementReport.users = managementReport.users.toString();\n\t\t}\n\t\tlet managementReportRequest = unflatten(toJS(managementReport));\n\n\t\treturn Connections.secure.post('/api/managementreport/save', managementReportRequest).then(response => {\n\t\t\tconsole.log(\"response from save: \", response);\n\t\t\tlet id = response.data.data as string;\n\t\t\treturn id;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.managementReport.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n\n\tdelete(id: string) {\n\t\tconsole.log(\"id: \", id);\n\t\treturn Connections.secure.post('/api/managementreport/delete/' + id).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as number;\n\t\t});\n\t}\n\n\tedit(id: string) {\n\t\tconsole.log(\"id: \", id);\n\t\treturn Connections.secure.post('/api/managementreport/' + id).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as ManagementReport;\n\t\t});\n\t}\n\n\tdownloadManagementReport() {\n\t\tstate.forms.managementReport.setValue('type', state.forms.managementReportType);\n\t\tlet managementReportRequest = unflatten(toJS(state.forms.managementReport.getValues()))\n\t\treturn Connections.secure.post('/api/managementreport/download', managementReportRequest, { timeout: 300000 }).then(response => {\n\t\t\treturn response.data.data as string;\n\t\t});\n\t}\n\n\tdownloadPortalDataElementsReport() {\n\t\tlet portalDataElementsRequest = unflatten(toJS(state.forms.portalDataElements.getValues()))\n\t\tconsole.log(portalDataElementsRequest);\n\t\treturn Connections.secure.post('/api/prde/download', portalDataElementsRequest, { timeout: 300000 }).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as string;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tconsole.log(error.response.data.meta);\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.portalDataElements.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n\n\tdownloadManagementReportGrid(request: ManagementReport) {\n\t\tif (request.users) {\n\t\t\trequest.users = request.users.toString();\n\t\t}\n\t\tconsole.log('managementReportRequest:::::: ', request);\n\t\treturn Connections.secure.post('/api/managementreport/download', request, { timeout: 300000 }).then(response => {\n\t\t\treturn response.data.data as string;\n\t\t});\n\t}\n\n\tsave() {\n\t\tfor (var [key, value] of state.forms.managementReport.getValues().entries()) {\n\t\t\tif (value == null || value == '' || value == undefined) {\n\t\t\t\tstate.forms.managementReport.clearValue(key);\n\t\t\t}\n\t\t}\n\t\tstate.forms.managementReport.setValue('type', state.forms.managementReportType);\n\n\t\tlet managementReportRequest = unflatten(toJS(state.forms.managementReport.getValues()));\n\t\t//let request = unflatten(toJS(state.forms.managementReport.getValues()));\n\n\t\tconsole.log(\"In ManagementReportApi save(): \" + managementReportRequest)\n\t\treturn Connections.secure.post('/api/managementreport/save', managementReportRequest).then(response => {\n\t\t\tconsole.log(\"response from save: \", response);\n\t\t\tlet id = response.data.data as string;\n\t\t\treturn id;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.managementReport.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: ManagementReport }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(request: ParameterizedListRequest): Promise> {\n\t\tconsole.log(\"request\", request);\n\n\t\treturn Connections.secure.post('/api/managementreport/list', request).then(response => {\n\t\t\tconsole.log(response);\n\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\tfor (let key in partial.map) {\n\t\t\t\tlet value = partial.map[key];\n\t\t\t\tif (value) {\n\t\t\t\t\tvalue.parsedSearchFilters = JSON.parse(value.searchFilters);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn partial;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\tif (error.response.data.meta) {\n\t\t\t\tObject.keys(error.response.data.meta).forEach(key => state.forms.managementReport.addError(key, {\n\t\t\t\t\tfieldName: key,\n\t\t\t\t\tlevel: 'error',\n\t\t\t\t\tcode: error.response.data.meta[key]\n\t\t\t\t}));\n\t\t\t}\n\t\t\treturn undefined;\n\t\t});\n\t}\n}\n\nclass OrderApi {\n\n\tgetOrderSummary(orderId: string): Promise {\n\t\tlet payload = { orderId };\n\t\tconsole.log(\"payload\", payload);\n\t\treturn Connections.secure.post('/api/order/' + orderId).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as Inquiry;\n\t\t});\n\t}\n\n\tcruSync(accountNumbers: string[], startDate: string, detail: string) {\n\t\tlet payload = { accountNumbers, startDate, detail };\n\t\treturn Connections.secure.post('/api/order/cruSync', payload, { timeout: 7200000 }).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data;\n\t\t}, error => {\n\t\t\tui.hideSnack();\n\t\t\treturn undefined;\n\t\t});\n\t}\n\n\tgetTat(accountNumber: string, sourceId: string) {\n\t\treturn Connections.secure.post(`/api/order/tat/${accountNumber}/${sourceId}`).then(response => {\n\t\t\tconsole.log(response);\n\t\t\treturn response.data.data as TatResponse;\n\t\t});\n\t}\n\n}\n\nclass FeatureApi {\n\tuserHasFeature(feature: string): boolean {\n\t\tlet active = state.ui.cache.config.get('app.features.active');\n\n\t\tif (active) {\n\t\t\treturn active.split(',').indexOf(feature) >= 0;\n\t\t}\n\t\treturn false;\n\t}\n}\n\nclass SubmitOrderApi implements LazyListLoader {\n\n\tgetValues(ids: string[]): Promise<{ [key: string]: InquiryView }> {\n\t\treturn Promise.reject('You should not call this');\n\t}\n\n\tgetPartial(): Promise> {\n\n\t\tlet request = { ...state.resultsSummary.completeOrderData }\n\n\t\treturn Connections.secure.post('/api/report/match/select', request, { timeout: 180000 }).then(response => {\n\t\t\tlet partial = response.data.data as PartialList;\n\t\t\treturn partial;\n\t\t});\n\t}\n}\n\nclass OrderLogApi {\n\n\tgetOrderLogCount() {\n\t\treturn Connections.secure.get('/api/user/orderlog/count').then(response => {\n\t\t\treturn response.data.data\n\t\t});\n\t}\n\n\tgetOrderLog() {\n\t\treturn Connections.secure.get('/api/user/orderlog/data').then(response => {\n\t\t\treturn response.data.data\n\t\t});\n\t}\n}\n\nexport const authApi = new AuthApi();\nexport const reportSearchApi = new ReportSearchApi();\nexport const userApi = new UserApi();\nexport const dataApi = new DataApi();\nexport const reportApi = new ReportApi();\nexport const orderHistoryApi = new OrderHistoryApi();\nexport const searchApi = new SearchApi();\nexport const advanceSearchApi = new AdvancedSearchApi();\nexport const operationsSearchApi = new OperationsSearchApi();\nexport const managementReportApi = new ManagementReportApi();\nexport const formApi = new FormApi();\nexport const orderApi = new OrderApi();\nexport const submitOrderApi = new SubmitOrderApi();\nexport const featureApi = new FeatureApi();\nexport const orderLogApi = new OrderLogApi();","import { History } from \"history\";\nimport { computed, observable, ObservableMap } from 'mobx';\nimport { OrderedSelectableValues } from \"../components/select-list\";\nimport { LazyList } from '../data/common';\nimport { Form } from \"../data/form\";\nimport { Inquiry, InquiryView, ManagementReport, MvrDlFormat, UserConfig } from '../data/model';\nimport { JWT, User } from '../data/user';\nimport { alphaNumericValidation, FieldValidator, lengthValidatorFactory, notFuture, validDate } from \"../data/validators\";\nimport { advanceSearchApi, authApi, managementReportApi, orderHistoryApi, reportSearchApi, searchApi, submitOrderApi, userApi, operationsSearchApi } from './api';\n\nexport const Authorities = {\n\tLOGIN: 'CLRP/LOGIN',\n\tVIEW: 'CLRP/VIEW',\n\tVIEW_ALL: 'CLRP/VIEW_ALL',\n\tORDER: 'CLRP/ORDER',\n\tOPERATOR: 'CLRP/OPERATOR',\n\tMANAGEMENT_REPORTS: 'CLRP/MANAGEMENT_REPORTS',\n\tSUPPORT_USER_MANAGER: 'IDS/USR_MGMT',\n\tCLIENT_USER_MANAGER: 'IDS/USER_ADMIN',\n\tWORKSPACE: '*/CLA_WORKSPACE',\n\tINTERNAL: '*/INTERNAL',\n\tDISPLAY_USER_MANAGEMENT: '*/DISPLAY_USER_MANAGEMENT',\n\tDISPLAY_SECURITY_SETTINGS: '*/DISPLAY_SECURITY_SETTINGS',\n\tVIN: 'vin_services/VIN',\n\tCRU: 'cru/CRU',\n\tMVR: 'mvr/MVR',\n\tCARRIER_ID: 'carrierid/CARRIER_ID',\n\tCARRIER_DISCOVERY: 'ccfc/CARRIER_DISCOVERY',\n\tAUTO_CHECK: 'autocheck/AUTO_CHECK',\n\tCUSTOMER_SUPPORT: '*/CUSTOMER_SUPPORT',\n\tPRODUCT_SUPPORT: '*/PRODUCT_SUPPORT',\n}\n\nexport const Feature = {\n\tAUTO_ACCIDENT: 'AUTO_ACCIDENT',\n\tAUTO_ACCIDENT_OPEN: 'AUTO_ACCIDENT_OPEN',\n\tINCIDENT: 'INCIDENT',\n\tINTERACTIVE: 'INTERACTIVE',\n\tMGMT_REPORT: 'MGMT_REPORT',\n\tPOLICE_DATAELEMENTS_REPORTS: 'POLICE_DATAELEMENTS_REPORTS'\n}\n\nclass SecurityState {\n\n\t@observable\n\tjwt: JWT;\n\n\t@observable\n\tloggedOut: boolean = false;\n\n\t@observable\n\tshowIntcidentForm: boolean = false;\n\n\t@observable\n\tuser: User;\n\n\t@observable\n\tshowTimeoutModal: boolean = false;\n\n\ttimeoutID: number;\n\n\tactivitySync: CommonLogout.ActivitySync;\n\n\tshouldRedirect: boolean = false;\n\n\t@computed\n\tpublic get idsLogoutUrl(): string {\n\t\tif (this.user && this.user.idsLoginBaseUrl && this.user.idsLoginBaseUrl.length > 0) {\n\t\t\tconsole.log(\"idsLoginBaseUrl: \" + this.user.idsLoginBaseUrl)\n\t\t\treturn this.user.idsLoginBaseUrl + \"/logout\";\n\t\t}\n\t\treturn state.ui.cache.config.get('auth.cla.logout.url');\n\t}\n\n\t@computed\n\tpublic get idsWorkspaceUrl(): string {\n\t\tif (this.user && this.user.idsLoginBaseUrl && this.user.idsLoginBaseUrl.length > 0) {\n\t\t\tconsole.log(\"idsLoginBaseUrl: \" + this.user.idsLoginBaseUrl)\n\t\t\treturn this.user.idsLoginBaseUrl + \"/portals\";\n\t\t}\n\t\treturn state.ui.cache.config.get('auth.cla.workspace.url');\n\t}\n\n\t@computed\n\tpublic get idsAccountUrl(): string {\n\t\tif (this.user && this.user.idsLoginBaseUrl && this.user.idsLoginBaseUrl.length > 0) {\n\t\t\tconsole.log(\"idsLoginBaseUrl: \" + this.user.idsLoginBaseUrl)\n\t\t\treturn this.user.idsLoginBaseUrl + \"/account\";\n\t\t}\n\t\treturn state.ui.cache.config.get('auth.cla.account.url');\n\t}\n\n\t@computed\n\tpublic get idsManageUserUrl(): string {\n\t\tif (this.user && this.user.idsLoginBaseUrl && this.user.idsLoginBaseUrl.length > 0) {\n\t\t\tconsole.log(\"idsLoginBaseUrl: \" + this.user.idsLoginBaseUrl)\n\t\t\treturn this.user.idsLoginBaseUrl + \"/admin/user\";\n\t\t}\n\t\treturn state.ui.cache.config.get('auth.cla.manage.url');\n\t}\n\n\t@computed\n\tpublic get termsAccepted(): boolean {\n\t\tconsole.log(\"dppa in termsaccepted :: \" + (this.user ? this.user.dppa : \"user object is null\"));\n\t\treturn this.user && this.user.dppa != undefined;\n\t}\n\n\t@computed\n\tpublic get termsPresented(): boolean {\n\t\treturn this.user && this.user.dppa != undefined;\n\t}\n\n\t@computed\n\tpublic get userCanManageUsers(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.DISPLAY_USER_MANAGEMENT);\n\t}\n\n\t@computed\n\tpublic get userCanViewSecuritySettings(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.DISPLAY_SECURITY_SETTINGS);\n\t}\n\n\t@computed\n\tpublic get userCanReturnToWorkspace(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.WORKSPACE);\n\t}\n\n\t@computed\n\tpublic get userIsInternalSupport(): boolean {\n\t\t//Either CLRP_CUSTOMER_SUPPORT or CLRP_OPERATOR or CLRP_PRODUCT_SUPPORT\n\t\t//return this.userIsCustomerSupport || this.userIsOperator || this.userIsProductSupport;\n\t\treturn authApi.userHasAuthority(Authorities.INTERNAL);\n\t}\n\n\t@computed\n\tpublic get userIsCustomerSupport(): boolean {\n\t\t//CLRP_CUSTOMER_SUPPORT\n\t\treturn authApi.userHasAuthority(Authorities.INTERNAL) && authApi.userHasAuthority(Authorities.CUSTOMER_SUPPORT);\n\t}\n\n\t@computed\n\tpublic get userIsOperator(): boolean {\n\t\t//CLRP_OPERATOR\n\t\treturn authApi.userHasAuthority(Authorities.INTERNAL) && authApi.userHasAuthority(Authorities.OPERATOR);\n\t}\n\n\t@computed\n\tpublic get userIsProductSupport(): boolean {\n\t\t//CLRP_PRODUCT_SUPPORT\n\t\treturn authApi.userHasAuthority(Authorities.INTERNAL) && authApi.userHasAuthority(Authorities.PRODUCT_SUPPORT);\n\t}\n\n\t@computed\n\tpublic get userIsOperatorAndCustomerSupport(): boolean {\n\t\t//+ CLRP_OPERATOR\n\t\t//+ CLRP_CUSTOMER_SUPPORT\n\t\treturn this.userIsOperator && this.userIsCustomerSupport;\n\t}\n\n\t@computed\n\tpublic get userIsOperatorOnly(): boolean {\n\t\t//+ CLRP_OPERATOR\n\t\t//- CLRP_CUSTOMER_SUPPORT\n\t\treturn this.userIsOperator && !this.userIsCustomerSupport;\n\t}\n\n\t@computed\n\tpublic get userIsSupervisor(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.VIEW_ALL);\n\t}\n\n\t@computed\n\tpublic get showIncident(): boolean {\n\t\treturn this.userIsOperator ? true : authApi.userHasAuthority(Authorities.CRU);\n\t}\n\n\t@computed\n\tpublic get userCanViewManagementReport(): boolean {\n\t\t/*if (this.userIsOperator) {\n\t\t\treturn false;\n\t\t}*/\n\t\treturn authApi.userHasAuthority(Authorities.MANAGEMENT_REPORTS);\n\t}\n\n\t@computed\n\tpublic get authorizedReports(): string[] {\n\t\tlet reportArray: string[] = [];\n\n\t\tif (this.userIsOperator) {\n\t\t\tif (this.showOpenSearch) {\n\t\t\t\treportArray = [...reportArray, ...PRODUCTS.CRU];\n\t\t\t} else {\n\t\t\t\tconsole.log(\"removing OPEN_SEARCH from list\");\n\t\t\t\tconst index = PRODUCTS.CRU.indexOf('AUTO_ACCIDENT_OPEN', 0);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tPRODUCTS.CRU.splice(index, 1);\n\t\t\t\t}\n\t\t\t\treportArray = [...reportArray, ...PRODUCTS.CRU];\n\t\t\t\tconsole.log(\"removed OPEN_SEARCH from list\", reportArray)\n\t\t\t}\n\t\t\treportArray = [...reportArray, ...PRODUCTS.AUTO_CHECK, ...PRODUCTS.MVR, ...PRODUCTS.VIN, ...PRODUCTS.CARRIER_DISCOVERY];\n\n\t\t\treturn reportArray;\n\t\t}\n\n\t\tif (authApi.userHasAuthority(Authorities.CRU)) {\n\t\t\tif (this.showOpenSearch) {\n\t\t\t\treportArray = [...reportArray, ...PRODUCTS.CRU];\n\t\t\t} else {\n\t\t\t\tconsole.log(\"removing OPEN_SEARCH from list\");\n\t\t\t\tconst index = PRODUCTS.CRU.indexOf('AUTO_ACCIDENT_OPEN', 0);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tPRODUCTS.CRU.splice(index, 1);\n\t\t\t\t}\n\t\t\t\treportArray = [...reportArray, ...PRODUCTS.CRU];\n\t\t\t\tconsole.log(\"removed OPEN_SEARCH from list\", reportArray)\n\t\t\t}\n\t\t}\n\t\tif (authApi.userHasAuthority(Authorities.AUTO_CHECK)) {\n\t\t\treportArray = [...reportArray, ...PRODUCTS.AUTO_CHECK];\n\t\t}\n\t\tif (authApi.userHasAuthority(Authorities.MVR)) {\n\t\t\treportArray = [...reportArray, ...PRODUCTS.MVR];\n\t\t}\n\t\tif (authApi.userHasAuthority(Authorities.VIN)) {\n\t\t\treportArray = [...reportArray, ...PRODUCTS.VIN];\n\t\t}\n\t\tif (authApi.userHasAuthority(Authorities.CARRIER_DISCOVERY)) {\n\t\t\treportArray = [...reportArray, ...PRODUCTS.CARRIER_DISCOVERY];\n\t\t}\n\t\t// if (authApi.userHasAuthority(Authorities.CARRIER_ID)) {\n\t\t// \treportArray = [...reportArray, ...PRODUCTS.CARRIER_ID];\n\t\t// }\t\t\n\t\treturn reportArray;\n\t}\n\n\t@computed\n\tpublic get authorizedMgmtReports(): string[] {\n\t\tlet reportArray: string[] = [];\n\t\tif (authApi.userHasAuthority(Authorities.VIEW_ALL)) {\n\t\t\treportArray = MANAGEMENT_REPORTS;\n\t\t}\n\t\telse if (authApi.userHasAuthority(Authorities.VIEW)) {\n\t\t\treportArray = MANAGEMENT_REPORTS_USER;\n\t\t}\n\t\treturn reportArray;\n\t}\n\n\t@computed\n\tpublic get showInteractive(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.MVR) || authApi.userHasAuthority(Authorities.VIN) ||\n\t\t\tauthApi.userHasAuthority(Authorities.CARRIER_DISCOVERY) || authApi.userHasAuthority(Authorities.CARRIER_ID) ||\n\t\t\tauthApi.userHasAuthority(Authorities.AUTO_CHECK);\n\t}\n\n\t@computed\n\tpublic get showAutoAccidentOnly(): boolean {\n\t\treturn this.activeFeatures.length == 1 && this.activeFeatures.indexOf(Feature.AUTO_ACCIDENT) >= 0;\n\n\t}\n\t@computed\n\tpublic get showOpenSearch(): boolean {\n\t\treturn this.activeFeatures.indexOf(Feature.AUTO_ACCIDENT_OPEN) >= 0;\n\n\t}\n\t\n\t@computed\n\tpublic get showPoliceReportDataElements(): boolean {\n\t\tconst isValidRoleForPDE = this.isUserAdmin;\n\t\tconst pdeFeatureEnabled = this.activeFeatures.indexOf(Feature.POLICE_DATAELEMENTS_REPORTS) >= 0;\n\t\tconsole.log(\"Feature Enabled : \" +pdeFeatureEnabled + \" User Admin : \" +isValidRoleForPDE);\n\t\treturn pdeFeatureEnabled && isValidRoleForPDE;\n\t}\n\n\t@computed\n\tpublic get isUserAdmin(): boolean {\n\t\treturn authApi.userHasAuthority(Authorities.CLIENT_USER_MANAGER) || authApi.userHasAuthority(Authorities.INTERNAL);\n\t}\n\n\t@computed\n\tprivate get activeFeatures(): string[] {\n\t\tlet config = state.ui.cache.config;\n\t\tif (config) {\n\t\t\tlet features = config.get('app.features.active');\n\t\t\tif (features) {\n\t\t\t\treturn features.split(',');\n\t\t\t}\n\t\t}\n\t\treturn [];\n\t}\n\n\tpublic get featureIncident(): boolean {\n\t\treturn this.showIncident && this.userIsSupervisor;\n\t}\n\n\t@computed\n\tpublic get startPage(): string {\n\t\tif (this.jwt) {\n\t\t\tif (this.user) {\n\t\t\t\tif (this.userIsOperator) {\n\t\t\t\t\treturn \"/operations\";\n\t\t\t\t}\n\t\t\t\tif (this.userIsInternalSupport) {\n\t\t\t\t\treturn \"/search\";\n\t\t\t\t}\n\t\t\t\tif (state && state.ui.cache.userConfig && state.ui.cache.userConfig.startParameters && state.security.termsAccepted) {\n\t\t\t\t\tlet startParams = state.ui.cache.userConfig.startParameters;\n\t\t\t\t\t//state.ui.cache.userConfig.startParameters = undefined;\n\t\t\t\t\tstate.report.displayData = undefined;\n\t\t\t\t\tuserApi.getUserConfig(true);\n\t\t\t\t\tconsole.log(\"startParams: \" + startParams);\n\t\t\t\t\treturn `/report/true/${startParams.report}`;\n\t\t\t\t}\n\t\t\t\treturn \"/order\";\n\t\t\t} else {\n\t\t\t\tconsole.log(\"No user\");\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.log(state.error);\n\t\t\tif (state.security.loggedOut) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tconsole.log(\"No JWT\");\n\t\t}\n\n\t\tstate.error = { code: 401 }\n\t\treturn \"/error\";\n\t}\n\n\tpublic startTimer() {\n\t\tthis.clearTimer();\n\t\tif (this.jwt != undefined) {\n\t\t\tlet diff = this.jwt.exp - this.jwt.iat // in seconds\t\n\t\t\tconst currentUrl: string = window.location.href;\n\t\t\tif (currentUrl.includes('/usage')) {\n\t\t\t\tthis.timeoutID = window.setTimeout(() => {\n\t\t\t\t\tthis.showTimeoutModal = true;\n\t\t\t\t}, (diff - 300) * 1000);// 5 minutes before token expiry for first page.\n\t\t\t} else {\n\t\t\t\tthis.timeoutID = window.setTimeout(() => {\n\t\t\t\t\tthis.showTimeoutModal = true;\n\t\t\t\t}, (diff - 300) * 1000);// 5 minutes before token expiry.\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate clearTimer() {\n\t\tif (this.timeoutID != undefined) {\n\t\t\tthis.showTimeoutModal = false;\n\t\t\tclearTimeout(this.timeoutID);\n\t\t}\n\t}\n}\n\nclass Cache {\n\t@observable\n\tuserConfig: UserConfig;\n\n\t@observable\n\tconfig: ObservableMap = new ObservableMap();\n\n\tdlFormats: { [key: string]: MvrDlFormat[] };\n}\n\nclass UIState {\n\tconstructor() {\n\t\tthis.lang = 'en';\n\t\tthis.locale = 'us';\n\t\tthis.section = 'home';\n\t\tthis.cache = new Cache();\n\t}\n\n\thistory: History;\n\n\t@observable\n\tlang: string;\n\n\t@observable\n\tlocale: string;\n\n\t@observable\n\tsection: string;\n\n\t@observable\n\tsnack: undefined | string | JSX.Element;\n\n\t@observable\n\tcache: Cache;\n}\n\nexport class ErrorState {\n\tcode: number;\n\tid?: string;\n}\n\nexport class ErrorMessage {\n\tcode: number;\n\ttitle: string;\n\tmessage: string;\n\tnext?: string[];\n}\n\nclass PotentialMatchState {\n\n\tconstructor() {\n\t\tthis.data = new LazyList('potentialMatch', reportSearchApi, (pm: Inquiry) => pm.id, 'claimNumber');\n\t\tthis.editInquiry = new Form('editInquiry', {})\n\t}\n\n\t@observable\n\tdata: LazyList\n\n\t@observable\n\teditInquiry: Form\n\n\t@observable\n\tselectionType: 'single' | 'multiple';\n}\n\nclass ResultSummaryState {\n\n\t@observable\n\tdata: LazyList\n\n\t@observable\n\tcompleteOrderData: Inquiry\n\n\t@observable\n\tintervalId: number = 0;\n\n\tpublic startTimer(onTimer: () => void) {\n\t\tthis.intervalId = window.setInterval(() => {\n\t\t\tonTimer();\n\t\t}, 5000);\n\t}\n\n\tpublic stopTimer() {\n\t\twindow.clearInterval(this.intervalId);\n\t}\n\n\tconstructor() {\n\t\tthis.data = new LazyList('orderSubmission', submitOrderApi, InquiryView.idExtractor, 'submissionDateTime');\n\t}\n}\n\nclass ClaimsSummaryState {\n\tconstructor() {\n\t\tthis.data = new LazyList('claimsSummary', searchApi, InquiryView.idExtractor, '^submissionDateTime');\n\t}\n\n\t@observable\n\tdata: LazyList\n}\n\nexport const CATEGORY_REPORTS: { [key: string]: string[] } = {\n\tincident: ['ALL_REGISTERED_VEHICLES_IN_HOUSEHOLD',\n\t\t'ARREST',\n\t\t'AUTO_ACCIDENT',\n\t\t'AUTO_ACCIDENT_OPEN',\n\t\t'AUTO_THEFT',\n\t\t'AUTO_THEFT_RECOVERY',\n\t\t'AUTOPSY_CORONER',\n\t\t'BIRTH_CERTIFICATE',\n\t\t'CITATION_CONVICTION',\n\t\t'DEATH_CERTIFICATE',\n\t\t'DUI',\n\t\t'EMS',\n\t\t'FACE_LOG_SHEET',\n\t\t'FIRE_AUTO',\n\t\t'FIRE_BUILDING',\n\t\t'HOMICIDE',\n\t\t'INSURANCE_VERIFICATION',\n\t\t'ISSUE_LETTER_INTEREST',\n\t\t'OTHER',\n\t\t'PHOTOS',\n\t\t'RECONSTRUCTION',\n\t\t'REGISTERED_VEHICLE_OWNER',\n\t\t'SUPPLEMENTAL',\n\t\t'THEFT_BURGLARY',\n\t\t'TITLE_HISTORY',\n\t\t'TOXICOLOGY',\n\t\t'VANDALISM'\n\t],\n\tincident_col_1: ['ALL_REGISTERED_VEHICLES_IN_HOUSEHOLD',\n\t\t'ARREST',\n\t\t'AUTO_ACCIDENT',\n\t\t'AUTO_ACCIDENT_OPEN',\n\t\t'AUTO_THEFT',\n\t\t'AUTO_THEFT_RECOVERY',\n\t\t'AUTOPSY_CORONER',\n\t\t'BIRTH_CERTIFICATE',\n\t\t'CITATION_CONVICTION',\n\t\t'DEATH_CERTIFICATE',\n\t\t'DUI',\n\t\t'EMS',\n\t\t'FACE_LOG_SHEET',\n\t\t'FIRE_AUTO'\n\t],\n\tincident_col_2: ['FIRE_BUILDING',\n\t\t'HOMICIDE',\n\t\t'INSURANCE_VERIFICATION',\n\t\t'ISSUE_LETTER_INTEREST',\n\t\t'OTHER',\n\t\t'PHOTOS',\n\t\t'RECONSTRUCTION',\n\t\t'REGISTERED_VEHICLE_OWNER',\n\t\t'SUPPLEMENTAL',\n\t\t'THEFT_BURGLARY',\n\t\t'TITLE_HISTORY',\n\t\t'TOXICOLOGY',\n\t\t'VANDALISM'\n\t],\n\tinteractive: ['AUTOCHECK_VIN_HISTORY', 'CLAIMS_MVR',\n\t\t'*VEHICLES',\n\t\t'VEHICLES_AT_HOUSEHOLD', 'VIN', 'PLATE_TAG', 'VEHICLES_BY_NAME_ADDR_TYPE', '/',\n\t\t'*CARRIER_DISCOVERY',\n\t\t'CARRIER_DISCOVERY_VIN', 'CARRIER_DISCOVERY_SUB', '/'\n\t\t// TODO: Enable when Ready\n\t\t// ,'*CARRIER_ID',\n\t\t// 'CARRIER_ID_VIN', 'CARRIER_ID_SUB', '/',\n\t\t// '*CLAIMS_DISCOVERY',\n\t\t// 'CLAIMS_DISCOVERY_VIN', 'CLAIMS_DISCOVERY_SUB', '/'\n\t]\n}\n\nexport const MANAGEMENT_REPORTS: string[] = ['ALL_SUMMARY', 'ALL_DETAIL', 'INCIDENT_TAT'];\nexport const MANAGEMENT_REPORTS_USER: string[] = ['ALL_SUMMARY', 'ALL_DETAIL'];\n\nexport const REPORT_CATEGORIES: { [key: string]: string } = {};\nObject.keys(CATEGORY_REPORTS).forEach(category => {\n\tlet reports = CATEGORY_REPORTS[category];\n\treports.forEach(report => {\n\t\tREPORT_CATEGORIES[report] = category;\n\t});\n});\n\nexport const PRODUCTS: { [key: string]: string[] } = {\n\tMVR: ['CLAIMS_MVR'],\n\tVIN: ['*VEHICLES', 'VEHICLES_AT_HOUSEHOLD', 'VIN', 'PLATE_TAG', 'VEHICLES_BY_NAME_ADDR_TYPE'],\n\tCARRIER_ID: ['*CARRIER_ID', 'CARRIER_ID_VIN', 'CARRIER_ID_SUB'],\n\tCARRIER_DISCOVERY: ['*CARRIER_DISCOVERY', 'CARRIER_DISCOVERY_VIN', 'CARRIER_DISCOVERY_SUB'],\n\tAUTO_CHECK: ['AUTOCHECK_VIN_HISTORY'],\n\tCRU: [...new Set([...CATEGORY_REPORTS.incident, ...CATEGORY_REPORTS.incident_col_1, ...CATEGORY_REPORTS.incident_col_2])]\n}\n\nexport const REPORT_PRODUCT: { [key: string]: string } = {};\nObject.keys(PRODUCTS).forEach(product => {\n\tlet reports = PRODUCTS[product];\n\treports.forEach(report => {\n\t\tREPORT_PRODUCT[report] = product;\n\t});\n});\n\nclass NavigationState {\n\n\tconstructor() {\n\t\tthis.incidentReports = new OrderedSelectableValues(CATEGORY_REPORTS.incident, ['AUTO_ACCIDENT']);\n\t\tthis.interactiveReports = new OrderedSelectableValues(CATEGORY_REPORTS.interactive);\n\t\tthis.incident_col_1 = new OrderedSelectableValues(CATEGORY_REPORTS.incident_col_1);\n\t\tthis.incident_col_2 = new OrderedSelectableValues(CATEGORY_REPORTS.incident_col_2);\n\t}\n\n\t@observable\n\tincidentReports: OrderedSelectableValues;\n\n\t@observable\n\tincident_col_1: OrderedSelectableValues;\n\n\t@observable\n\tincident_col_2: OrderedSelectableValues;\n\n\t@observable\n\tinteractiveReports: OrderedSelectableValues;\n\n}\n\nclass ManagementReportNavigationState {\n\n\tconstructor() {\n\t\tthis.managementReportsNav = new OrderedSelectableValues(MANAGEMENT_REPORTS, ['ALL_SUMMARY']);\n\t}\n\n\t@observable\n\tmanagementReportsNav: OrderedSelectableValues;\n}\n\nclass SearchState {\n\n\t@observable\n\ttype: string;\n\n\t@observable\n\tquery: string;\n\n\t@observable\n\tsearchType: 'BASIC' | 'ADVANCED' | 'OPERATIONS';\n\n\t@observable\n\tbasicResults: LazyList\n\n\t@observable\n\tadvancedResults: LazyList\n\n\t@observable\n\toperationsResults: LazyList\n\n\t@computed\n\tget results() {\n\t\tswitch (this.searchType) {\n\t\t\tcase 'ADVANCED':\n\t\t\t\treturn this.advancedResults\n\t\t\tcase 'BASIC':\n\t\t\t\treturn this.basicResults\n\t\t\tcase 'OPERATIONS':\n\t\t\t\treturn this.operationsResults\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t}\n\t}\n\n\tconstructor() {\n\t\tthis.clearBasic();\n\t\tthis.clearAdvanced();\n\t\tthis.clearOperations();\n\t\tthis.type = 'CLAIM_NUMBER';\n\t}\n\n\tpublic clearResults() {\n\t\tif (this.searchType == 'ADVANCED') {\n\t\t\tthis.clearAdvanced();\n\t\t}\n\n\t\tif (this.searchType == 'BASIC') {\n\t\t\tthis.clearBasic();\n\t\t}\n\n\t\tif (this.searchType == 'OPERATIONS') {\n\t\t\tthis.clearOperations();\n\t\t}\n\t}\n\n\tprivate clearBasic() {\n\t\tthis.basicResults = new LazyList(this.type, searchApi, InquiryView.idExtractor, '^submissionDateTime');\n\t}\n\n\tprivate clearAdvanced() {\n\t\tthis.advancedResults = new LazyList('advanced-search', advanceSearchApi, (po: InquiryView) => po.id, '^submissionDateTime');\n\t}\n\n\tprivate clearOperations() {\n\t\tthis.operationsResults = new LazyList('operations-search', operationsSearchApi, (po: InquiryView) => po.id, '^submissionDateTime');\n\t}\n}\n\nconst advancedSearchValidators: { [key: string]: { [key: string]: FieldValidator[] } } = {\n\tclaimNumber: { \"claimNumber\": [lengthValidatorFactory(0, 28)] },\n\treportNumber: { \"reportNumber\": [lengthValidatorFactory(0, 60), alphaNumericValidation] },\n\tsourceId: { \"sourceId\": [lengthValidatorFactory(0, 60), alphaNumericValidation] },\n\tsubmissionDate: { \"submissionDate\": [validDate, notFuture] },\n\tlastName: { \"lastName\": [lengthValidatorFactory(0, 35)] },\n\tfirstName: { \"firstName\": [lengthValidatorFactory(0, 35)] }\n}\n\nclass FormState {\n\tconstructor() {\n\t\tthis.inquiry = new Form('inquiry');\n\t\tthis.basicSearch = new Form('basic-search');\n\t\tthis.advancedSearch = new Form('advanced-search', advancedSearchValidators);\n\t\tthis.portalDataElements = new Form('portaldataelements');\n\t\tthis.managementReport = new Form('management-report');\n\t\tthis.operationsForm = new Form('operations');\n\t}\n\n\t@computed\n\tget form() {\n\t\treturn this.inquiry;\n\t}\n\n\t@observable\n\tintervalId: number = 0;\n\n\tpublic startTimer(isDisabled: () => boolean, onTimer: () => void) {\n\t\tthis.intervalId = window.setInterval(() => {\n\t\t\tif (!isDisabled()) {\n\t\t\t\tonTimer();\n\t\t\t}\n\t\t}, 60000);\n\t}\n\n\tpublic stopTimer() {\n\t\twindow.clearInterval(this.intervalId);\n\t}\n\n\t@observable\n\treportType = observable.box('AUTO_ACCIDENT'); // TODO: Is this necessary given the OrderedSelectableValues?\n\n\t@observable\n\tmanagementReportType = observable.box('ALL_SUMMARY');\n\n\t@observable\n\tprofile = observable.box('');\n\n\t@observable\n\tinquiry: Form;\n\n\t@observable\n\tbasicSearch: Form;\n\n\t@observable\n\tadvancedSearch: Form;\n\n\t@observable\n\tportalDataElements: Form;\n\n\t@observable\n\toperationsForm: Form;\n\n\t@observable\n\tmanagementReport: Form;\n\n\t@observable\n\tedit: boolean;\n\n\t@observable\n\tpopulationSource: { [key: string]: any };\n}\n\nexport class ReportState {\n\n\t@observable\n\tid: string;\n\n\t@observable\n\tdisplayData: string[];\n\n\t@observable\n\taccountNumber: string;\n\n\t@observable\n\tsource: string;\n\n\t@observable\n\tformat: string;\n\n\t@observable\n\tsourceId: string;\n\n\t@observable\n\treportType: string;\n\n\t@observable\n\toriginalData: string;\n\n\t@observable\n\tprintData: string;\n\n\t@observable\n\tcdisReorder: boolean;\n\n}\nclass ManagementReportState {\n\n\t@observable\n\tdata: LazyList;\n\n\tconstructor() {\n\t\tthis.data = new LazyList('managementReport', managementReportApi, mr => mr.id, 'name');\n\t}\n}\n\nclass OrderHistoryState {\n\n\t@observable\n\tarchiveStatus = observable.box('NON_ARCHIVED');\n\n\tconstructor() {\n\t\tthis.data = new LazyList('orderHistory', orderHistoryApi, (po: InquiryView) => po.id, '^submissionDateTime');\n\t\tthis.checked = true;\n\t}\n\n\t@observable\n\tdata: LazyList\n\n\t@computed\n\tpublic get status(): String[] {\n\n\t\tif (this.archiveStatus.get() == 'NON_ARCHIVED') {\n\t\t\treturn ['COMPLETE', 'ERROR', 'PROCESSING', 'SAVED'];\n\t\t}\n\t\tif (this.archiveStatus.get() == 'ALL') {\n\t\t\treturn ['COMPLETE', 'ERROR', 'PROCESSING', 'SAVED', 'ARCHIVED'];\n\t\t}\n\t\tif (this.archiveStatus.get() == 'ARCHIVED') {\n\t\t\treturn ['ARCHIVED'];\n\t\t}\n\t\treturn null;\n\t}\n\n\n\t@observable\n\tchecked: boolean\n}\n\nclass OrderLogState {\n\n\t@observable\n\torderLogCount: number = 0\n\n\t@observable\n\torderLogMaxedOutCount: number = 0\n\n\t@observable\n\torderLog: String\n}\n\nclass State {\n\tconstructor() {\n\t\tthis.security = new SecurityState();\n\t\tthis.ui = new UIState();\n\t\tthis.search = new SearchState();\n\t\tthis.potentialMatch = new PotentialMatchState();\n\t\tthis.orderHistory = new OrderHistoryState();\n\t\tthis.managementReportState = new ManagementReportState();\n\t\tthis.error = undefined;\n\t\tthis.forms = new FormState();\n\t\tthis.report = new ReportState();\n\t\tthis.resultsSummary = new ResultSummaryState();\n\t\tthis.claimsSummary = new ClaimsSummaryState();\n\t\tthis.navigation = new NavigationState();\n\t\tthis.managementReportNavigation = new ManagementReportNavigationState();\n\t\tthis.orderLogState = new OrderLogState();\n\t}\n\n\t@observable\n\tsecurity: SecurityState;\n\n\t@observable\n\tpotentialMatch: PotentialMatchState;\n\n\t@observable\n\torderHistory: OrderHistoryState;\n\n\t@observable\n\tmanagementReportState: ManagementReportState;\n\n\t@observable\n\tui: UIState;\n\n\t@observable\n\terror: ErrorState;\n\n\t@observable\n\tsearch: SearchState;\n\n\t@observable\n\tforms: FormState;\n\n\t@observable\n\treport: ReportState;\n\n\t@observable\n\tresultsSummary: ResultSummaryState;\n\n\t@observable\n\tclaimsSummary: ClaimsSummaryState;\n\n\t@observable\n\tnavigation: NavigationState;\n\n\t@observable\n\tmanagementReportNavigation: ManagementReportNavigationState;\n\n\t@observable\n\torderLogState: OrderLogState\n}\n\nexport const state = new State();","import { action } from 'mobx';\nimport { state } from './state';\n\nclass UI {\n\tpublic actionIcons: { [key: string]: string } = {\n\t\tOPEN: 'folder-open',\n\t\tPRINT: 'print',\n\t\tDOWNLOAD: 'download',\n\t\tDOWNLOAD_PDF: 'download',\n\t\tDOWNLOAD_TIFF: 'download',\n\t\tDOWNLOAD_XML: 'download',\n\t\tEDIT: 'edit',\n\t\tSUMMARY: 'file-invoice',\n\t\tORDER_REPORT: 'file-import',\n\t\tREORDER_WO_DOL: 'redo',\n\t\tTAT: 'calendar-check',\n\t\tSUBSCRIBE: 'check',\n\t\tUNSUBSCRIBE: 'times',\n\t\tDELETE: 'trash',\n\t\tARCHIVE: 'archive',\n\t\tARCHIVEFW: 'fw',\n\t\tINFO_CIRCLE: 'info-circle'\n\t}\n\n\t@action.bound\n\tshowSnack(content: string | JSX.Element, time?: number) {\n\t\tstate.ui.snack = content;\n\n\t\tif (time) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tstate.ui.snack = undefined;\n\t\t\t}, time);\n\t\t}\n\t}\n\n\t@action.bound\n\thideSnack() {\n\t\tstate.ui.snack = undefined;\n\t}\n}\n\nexport const ui = new UI();","import axios from 'axios';\nimport { unflatten } from 'flat';\nimport { action, computed, observable, ObservableMap, toJS } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Button, Col, Container, Row } from 'reactstrap';\nimport { FAI } from './components/fai';\nimport { Footer } from \"./components/footer\";\nimport { IconCheckbox } from './components/icon-check-radio';\nimport { SelfLabeledTextInput } from './components/self-labeled-text-input';\nimport { Spinner } from './components/spinner';\nimport { ISODateRenderer } from './components/transform';\nimport { Form } from './data/form';\nimport { CruIvrRecord } from './data/model';\nimport { IntlComponent } from './i18n/translation';\n\nlet statusCheck = new Form('statusCheck', {});\n\n@observer\nexport class StatusCheck extends IntlComponent {\n\n\t@observable\n\tprivate searchResponse: { [key: string]: CruIvrRecord[] } = undefined;\n\n\t@observable\n\tprivate statusError: boolean = false;\n\n\t@observable\n\tprivate showLoader: boolean = false;\n\n\tcheck = () => {\n\t\tlet requestUrl = window.location.href;\n\t\tlet indexOfClrpui = requestUrl.indexOf('clrpui');\n\t\tif (indexOfClrpui > -1) {\n\t\t\tlet baseUrl = requestUrl.substring(0, indexOfClrpui);\n\t\t\tlet connection = axios.create({ baseURL: baseUrl, timeout: 30000 });\n\t\t\tlet claimNumbers = statusCheck.getValue('claimNumber');\n\t\t\tlet orderIds = statusCheck.getValue('orderId');\n\t\t\tthis.searchResponse = undefined;\n\t\t\tif ((claimNumbers && claimNumbers.trim().length > 0) || (orderIds && orderIds.trim().length > 0)) {\n\t\t\t\tthis.showLoader = true;\n\t\t\t\tconsole.log(\"status check req: \" + statusCheck.getValues());\n\t\t\t\tconsole.log(\"status check req to JS: \" + toJS(statusCheck.getValues()));\n\t\t\t\tlet request = unflatten(toJS(statusCheck.getValues()));\n\n\t\t\t\tconsole.log(\"claimNumbers \", claimNumbers);\n\t\t\t\tconsole.log(\"orderIds \", orderIds);\n\n\t\t\t\tconnection.post(\"/api/status/ivr\", request).then(response => {\n\t\t\t\t\tlet rs = response.data\n\t\t\t\t\tconsole.log(\"response.data = \", response.data);\n\t\t\t\t\tif (rs.data) {\n\t\t\t\t\t\tthis.searchResponse = rs.data;\n\t\t\t\t\t\tthis.showLoader = false;\n\t\t\t\t\t}\n\t\t\t\t}).catch(e => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tthis.statusError = true;\n\t\t\t\t\tthis.showLoader = false;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tformClear() {\n\t\tstatusCheck.clear();\n\t\tthis.searchResponse = undefined;\n\t\tthis.statusError = false;\n\t}\n\n\trender() {\n\t\treturn

    \n\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t

    Check Police Report Order Status

    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/* CLRP-999 CLRP- Add additional message to IVR status */}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\tFor new requests, please allow 12-24 business hours before checking the status.\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\tEnter one or more Claim Numbers in the box below. Enter commas to separate multiple claim numbers.
    \n\t\t\t\t\t\t\tEnter the claim number exactly as it was entered on the order. Please include all spaces, dashes, special characters, and leading zeros.\n\t\t\t\t\t\t\tThere is a limit of 250 characters.\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\tEnter one or more Order IDs in the box below. Enter commas to separate multiple Order IDs.\n\t\t\t\t\t\t\tThere is a limit of 250 characters.\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t{this.showLoader ?\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLoading ...\n\t\t\t\t\t\t\t :\n\t\t\t\t\t\t\tundefined}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.searchResponse ? : this.statusError ?\n\t\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t\t\tSystem Error: Please Email LexisNexis Customer Support.\n\t\t\t\t\t\t\t\t\t\t
    : undefined\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t
    ;\n\t}\n}\n\n@observer\nexport class StatusCheckLayout extends IntlComponent<{ resp: { [key: string]: CruIvrRecord[] } }> {\n\n\tprivate claimNumResultList: CruIvrRecord[] = [];\n\tprivate orderIdResultList: CruIvrRecord[] = [];\n\n\t@observable\n\tprivate selectedClaimNumbers = observable([]);\n\n\t@observable\n\tprivate selectedOrderIds = observable([]);\n\n\t@observable\n\tconfig: ObservableMap = new ObservableMap();\n\n\tcomponentDidMount() {\n\t\tthis.getConfig();\n\t}\n\n\tgetConfig() {\n\n\t\tlet requestUrl = window.location.href;\n\t\tlet indexOfClrpui = requestUrl.indexOf('clrpui');\n\t\tif (indexOfClrpui > -1) {\n\t\t\tlet baseUrl = requestUrl.substring(0, indexOfClrpui);\n\t\t\tlet connection = axios.create({ baseURL: baseUrl, timeout: 30000 });\n\t\t\treturn connection.get('/app/config').then(response => {\n\t\t\t\tlet appConfig = response.data.data as { [key: string]: string };\n\t\t\t\tthis.config.replace(appConfig);\n\t\t\t});\n\t\t}\n\t\treturn undefined;\n\t}\n\n\n\t@action.bound\n\tcheckAllClaimNumbersChecked(checked: boolean) {\n\t\t//console.log(\"Select All Claim Numbers selected: \", checked)\n\t\tif (checked) {\n\t\t\tlet claimNumbers: string[] = this.claimNumResultList.map(c => c.claimNumber);\n\t\t\tthis.selectedClaimNumbers.replace(claimNumbers);\n\t\t} else {\n\t\t\tthis.selectedClaimNumbers.clear();\n\t\t}\n\t}\n\n\t@action.bound\n\tcheckAllOrderIdsChecked(checked: boolean) {\n\t\t//console.log(\"Select All Order Ids selected: \", checked)\n\t\tif (checked) {\n\t\t\tlet orderIds: string[] = this.orderIdResultList.map(c => c.orderId);\n\t\t\tthis.selectedOrderIds.replace(orderIds);\n\t\t} else {\n\t\t\tthis.selectedOrderIds.clear();\n\t\t}\n\t}\n\n\t@action.bound\n\taddIfNotPresent(i: string, a: string[], checked: boolean) {\n\t\tif (a.includes(i)) {\n\t\t\tlet idx = a.indexOf(i);\n\t\t\ta.splice(idx, 1);\n\t\t} else {\n\t\t\ta.push(i);\n\t\t}\n\t}\n\n\t@computed\n\tget disableOpenTicket() {\n\t\tif ((this.selectedClaimNumbers && this.selectedClaimNumbers.length > 0) || (this.selectedOrderIds && this.selectedOrderIds.length > 0)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\t@action.bound\n\tasync updateDb() {\n\t\tlet requestUrl = window.location.href;\n\t\tlet indexOfClrpui = requestUrl.indexOf('clrpui');\n\t\tif (indexOfClrpui > -1) {\n\t\t\tlet baseUrl = requestUrl.substring(0, indexOfClrpui);\n\t\t\tlet connection = axios.create({ baseURL: baseUrl, timeout: 30000 });\n\t\t\tlet callDataId;\n\t\t\tlet claimNumber = \"\";\n\t\t\tlet orderId = \"\";\n\t\t\tif (this.selectedClaimNumbers && this.selectedClaimNumbers.length > 0) {\n\t\t\t\tclaimNumber = this.selectedClaimNumbers.join(\",\");\n\t\t\t}\n\t\t\tif (this.selectedOrderIds && this.selectedOrderIds.length > 0) {\n\t\t\t\torderId = this.selectedOrderIds.join(\",\");\n\t\t\t}\n\t\t\tif (this.claimNumResultList && this.claimNumResultList.length > 0) {\n\t\t\t\tcallDataId = this.claimNumResultList[0].callDataId;\n\t\t\t}\n\t\t\tif (this.orderIdResultList && this.orderIdResultList.length > 0) {\n\t\t\t\tcallDataId = this.orderIdResultList[0].callDataId;\n\t\t\t}\n\t\t\tlet request = { \"claimNumber\": claimNumber, \"orderId\": orderId, \"callDataId\": callDataId }\n\t\t\ttry {\n\t\t\t\tawait connection.post(\"/api/status/ivr/update\", request);\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error(err);\n\t\t\t}\n\t\t}\n\t}\n\n\t@action.bound\n\tsendLink() {\n\t\tlet rnwurl = \"https://orderpoint-solutions.custhelp.com/app/ask/Incident.Subject//\";\n\n\t\tif (this.config) {\n\t\t\tconsole.log(this.config.get('ivr.sf.open.ticket.url'));\n\t\t\tif (this.config.get('ivr.sf.open.ticket.url') && this.config.get('ivr.sf.open.ticket.url') != '') {\n\t\t\t\trnwurl = this.config.get('ivr.sf.open.ticket.url');\n\t\t\t}\n\t\t}\n\t\t//let rnwurl = \"https://orderpoint-solutions.custhelp.com/app/ask/Incident.Subject//\";\n\t\t//let rnwurl = \"https://qa-lnrs.cs37.force.com/CustomerSupportHub/s/contactsupport/claims-police-reports-customer-support?subject=\";\n\n\t\tlet c = \"\";\n\t\tlet o = \"\";\n\n\t\tif (this.selectedClaimNumbers && this.selectedClaimNumbers.length > 0) {\n\t\t\tconsole.log(\"selected claimNumbers\", this.selectedClaimNumbers);\n\t\t\tc = this.selectedClaimNumbers.join(\",\");\n\t\t}\n\n\t\tif (this.selectedOrderIds && this.selectedOrderIds.length > 0) {\n\t\t\tconsole.log(\"selected orderIds\", this.selectedOrderIds);\n\t\t\to = this.selectedOrderIds.join(\",\");\n\t\t}\n\t\t//}\n\n\t\tif (c != \"\") c = \"Claim Number: \" + c;\n\t\tif (o != \"\") o = \"Order ID: \" + o;\n\n\t\tif (c != \"\" && o == \"\") rnwurl = rnwurl + c;\n\t\telse {\n\t\t\tif (c == \"\" && o != \"\") rnwurl = rnwurl + o;\n\t\t\telse {\n\t\t\t\tif (c != \"\" && o != \"\") rnwurl = rnwurl + c + \", \" + o;\n\t\t\t}\n\t\t}\n\t\twindow.open(rnwurl, \"_blank\", \"toolbar=yes,scrollbars=yes,resizable=yes,top=200,left=200,width=800,height=1200\");\n\n\t}\n\trender() {\n\t\tlet status = this.props.resp;\n\t\t//console.log(status)\n\t\tif (status && Object.keys(status).length > 0) {\n\t\t\treturn this.renderDisplay();\n\t\t} else {\n\t\t\treturn Loading ...;\n\t\t}\n\t}\n\n\trenderDisplay() {\n\t\tlet status = this.props.resp;\n\t\tif (Object.keys(status).length > 0) {\n\t\t\tthis.claimNumResultList = status['claimNumber'];\n\t\t\tthis.orderIdResultList = status['orderId'];\n\t\t\t//console.log(this.orderIdResultList)\n\t\t}\n\n\t\tlet claimRows: JSX.Element[] = [];\n\n\t\tif (this.claimNumResultList && this.claimNumResultList.length > 0) {\n\t\t\tthis.claimNumResultList.forEach(record => {\n\t\t\t\tlet tatResp = record;\n\t\t\t\tlet terminationCode = tatResp.isActiveTerminationCode ? tatResp.terminationCode : \"400\";\n\t\t\t\tlet activeFlag = tatResp.isActiveTerminationCode ? true : false;\n\t\t\t\tconsole.log(\"claimNumber: \" + record.claimNumber + \", terminationCode is \" + terminationCode, \", activeFlag: \" + activeFlag);\n\t\t\t\tlet tatHtml = this.lang.concepts.terminationCodes[terminationCode];\n\t\t\t\t//let tatCode = tatResp.tatCode.includes(\"TAT4\") ? tatResp.tatCode + \"_IVR\" : tatResp.tatCode;\n\t\t\t\t//let tatHtml = this.lang.concepts.tatCodes[tatCode].replace(/{value}/, \"Claim Number\");\n\n\n\t\t\t\tlet iconClasses = '';\n\n\t\t\t\tswitch (terminationCode) {\n\t\t\t\t\tcase '200':\n\t\t\t\t\t\ticonClasses += 'check success';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '400':\n\t\t\t\t\tcase '405':\n\t\t\t\t\tcase '406':\n\t\t\t\t\tcase '411':\n\t\t\t\t\tcase '412':\n\t\t\t\t\tcase '413':\n\t\t\t\t\tcase '414':\n\t\t\t\t\tcase '415':\n\t\t\t\t\tcase '416':\n\t\t\t\t\t\ticonClasses += 'exclamation-triangle error';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\treturn claimRows.push(\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t this.selectedClaimNumbers.includes(record.claimNumber)} onChange={(checked: boolean) => this.addIfNotPresent(record.claimNumber, this.selectedClaimNumbers, checked)} >\n\t\t\t\t\t\t\t
    \n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t{record.claimNumber}\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t {tatResp.tatTime ? ISODateRenderer(tatResp.tatTime) : \"\"}\n\t\t\t\t\t\n\t\t\t\t
    );\n\t\t\t})\n\t\t}\n\n\t\tlet orderRows: JSX.Element[] = [];\n\n\t\tif (this.orderIdResultList && this.orderIdResultList.length > 0) {\n\t\t\tthis.orderIdResultList.forEach(record => {\n\t\t\t\tlet tatResp = record;\n\t\t\t\tlet terminationCode = tatResp.isActiveTerminationCode ? tatResp.terminationCode : \"400\";\n\t\t\t\tlet activeFlag = tatResp.isActiveTerminationCode ? true : false;\n\t\t\t\tconsole.log(\"orderId: \" + record.orderId + \", terminationCode is \" + terminationCode, \", activeFlag: \" + activeFlag);\n\t\t\t\tlet tatHtml = this.lang.concepts.terminationCodes[terminationCode];\n\t\t\t\t//let tatCode = tatResp.tatCode.includes(\"TAT4\") ? tatResp.tatCode + \"_IVR\" : tatResp.tatCode;\n\t\t\t\t//let tatHtml = this.lang.concepts.tatCodes[tatCode].replace(/{value}/, \"Claim Number\");\n\n\n\t\t\t\tlet iconClasses = '';\n\n\t\t\t\tswitch (terminationCode) {\n\t\t\t\t\tcase '200':\n\t\t\t\t\t\ticonClasses += 'check success';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '400':\n\t\t\t\t\tcase '405':\n\t\t\t\t\tcase '406':\n\t\t\t\t\tcase '411':\n\t\t\t\t\tcase '412':\n\t\t\t\t\tcase '413':\n\t\t\t\t\tcase '414':\n\t\t\t\t\tcase '415':\n\t\t\t\t\tcase '416':\n\t\t\t\t\t\ticonClasses += 'exclamation-triangle error';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\treturn orderRows.push(\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t this.selectedOrderIds.includes(record.orderId)} onChange={(checked: boolean) => this.addIfNotPresent(record.orderId, this.selectedOrderIds, checked)} >\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t{record.orderId}\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {tatResp.tatTime ? ISODateRenderer(tatResp.tatTime) : \"\"}\n\t\t\t\t\t\t\n\t\t\t\t\t
    );\n\t\t\t})\n\t\t}\n\n\t\treturn \n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t\t

    Police Report Order Status

    \n\t\t\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t\tCheck the box next to the claim number or order ID below to open a ticket with our Support team.\n\t\t\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t{claimRows.length > 0 ?
    \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{claimRows}\n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t\t this.claimNumResultList.length == this.selectedClaimNumbers.length} onChange={(checked: boolean) => this.checkAllClaimNumbersChecked(checked)}>\n\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t
    Claim Numbers
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t
    Status
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    : undefined}\n\t\t\t{orderRows.length > 0 ?
    \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{orderRows}\n\t\t\t\t\n\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t this.orderIdResultList.length == this.selectedOrderIds.length} onChange={(checked: boolean) => this.checkAllOrderIdsChecked(checked)}>\n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    Order Ids
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    Status
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    : undefined}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t
    ;\n\t}\n\n\n}\n\nlet root = document.getElementById('root');\nif (root) {\n\tReactDOM.render(, root);\n}","var map = {\n\t\"./af\": \"./node_modules/moment/locale/af.js\",\n\t\"./af.js\": \"./node_modules/moment/locale/af.js\",\n\t\"./ar\": \"./node_modules/moment/locale/ar.js\",\n\t\"./ar-dz\": \"./node_modules/moment/locale/ar-dz.js\",\n\t\"./ar-dz.js\": \"./node_modules/moment/locale/ar-dz.js\",\n\t\"./ar-kw\": \"./node_modules/moment/locale/ar-kw.js\",\n\t\"./ar-kw.js\": \"./node_modules/moment/locale/ar-kw.js\",\n\t\"./ar-ly\": \"./node_modules/moment/locale/ar-ly.js\",\n\t\"./ar-ly.js\": \"./node_modules/moment/locale/ar-ly.js\",\n\t\"./ar-ma\": \"./node_modules/moment/locale/ar-ma.js\",\n\t\"./ar-ma.js\": \"./node_modules/moment/locale/ar-ma.js\",\n\t\"./ar-sa\": \"./node_modules/moment/locale/ar-sa.js\",\n\t\"./ar-sa.js\": \"./node_modules/moment/locale/ar-sa.js\",\n\t\"./ar-tn\": \"./node_modules/moment/locale/ar-tn.js\",\n\t\"./ar-tn.js\": \"./node_modules/moment/locale/ar-tn.js\",\n\t\"./ar.js\": \"./node_modules/moment/locale/ar.js\",\n\t\"./az\": \"./node_modules/moment/locale/az.js\",\n\t\"./az.js\": \"./node_modules/moment/locale/az.js\",\n\t\"./be\": \"./node_modules/moment/locale/be.js\",\n\t\"./be.js\": \"./node_modules/moment/locale/be.js\",\n\t\"./bg\": \"./node_modules/moment/locale/bg.js\",\n\t\"./bg.js\": \"./node_modules/moment/locale/bg.js\",\n\t\"./bm\": \"./node_modules/moment/locale/bm.js\",\n\t\"./bm.js\": \"./node_modules/moment/locale/bm.js\",\n\t\"./bn\": \"./node_modules/moment/locale/bn.js\",\n\t\"./bn-bd\": \"./node_modules/moment/locale/bn-bd.js\",\n\t\"./bn-bd.js\": \"./node_modules/moment/locale/bn-bd.js\",\n\t\"./bn.js\": \"./node_modules/moment/locale/bn.js\",\n\t\"./bo\": \"./node_modules/moment/locale/bo.js\",\n\t\"./bo.js\": \"./node_modules/moment/locale/bo.js\",\n\t\"./br\": \"./node_modules/moment/locale/br.js\",\n\t\"./br.js\": \"./node_modules/moment/locale/br.js\",\n\t\"./bs\": \"./node_modules/moment/locale/bs.js\",\n\t\"./bs.js\": \"./node_modules/moment/locale/bs.js\",\n\t\"./ca\": \"./node_modules/moment/locale/ca.js\",\n\t\"./ca.js\": \"./node_modules/moment/locale/ca.js\",\n\t\"./cs\": \"./node_modules/moment/locale/cs.js\",\n\t\"./cs.js\": \"./node_modules/moment/locale/cs.js\",\n\t\"./cv\": \"./node_modules/moment/locale/cv.js\",\n\t\"./cv.js\": \"./node_modules/moment/locale/cv.js\",\n\t\"./cy\": \"./node_modules/moment/locale/cy.js\",\n\t\"./cy.js\": \"./node_modules/moment/locale/cy.js\",\n\t\"./da\": \"./node_modules/moment/locale/da.js\",\n\t\"./da.js\": \"./node_modules/moment/locale/da.js\",\n\t\"./de\": \"./node_modules/moment/locale/de.js\",\n\t\"./de-at\": \"./node_modules/moment/locale/de-at.js\",\n\t\"./de-at.js\": \"./node_modules/moment/locale/de-at.js\",\n\t\"./de-ch\": \"./node_modules/moment/locale/de-ch.js\",\n\t\"./de-ch.js\": \"./node_modules/moment/locale/de-ch.js\",\n\t\"./de.js\": \"./node_modules/moment/locale/de.js\",\n\t\"./dv\": \"./node_modules/moment/locale/dv.js\",\n\t\"./dv.js\": \"./node_modules/moment/locale/dv.js\",\n\t\"./el\": \"./node_modules/moment/locale/el.js\",\n\t\"./el.js\": \"./node_modules/moment/locale/el.js\",\n\t\"./en-au\": \"./node_modules/moment/locale/en-au.js\",\n\t\"./en-au.js\": \"./node_modules/moment/locale/en-au.js\",\n\t\"./en-ca\": \"./node_modules/moment/locale/en-ca.js\",\n\t\"./en-ca.js\": \"./node_modules/moment/locale/en-ca.js\",\n\t\"./en-gb\": \"./node_modules/moment/locale/en-gb.js\",\n\t\"./en-gb.js\": \"./node_modules/moment/locale/en-gb.js\",\n\t\"./en-ie\": \"./node_modules/moment/locale/en-ie.js\",\n\t\"./en-ie.js\": \"./node_modules/moment/locale/en-ie.js\",\n\t\"./en-il\": \"./node_modules/moment/locale/en-il.js\",\n\t\"./en-il.js\": \"./node_modules/moment/locale/en-il.js\",\n\t\"./en-in\": \"./node_modules/moment/locale/en-in.js\",\n\t\"./en-in.js\": \"./node_modules/moment/locale/en-in.js\",\n\t\"./en-nz\": \"./node_modules/moment/locale/en-nz.js\",\n\t\"./en-nz.js\": \"./node_modules/moment/locale/en-nz.js\",\n\t\"./en-sg\": \"./node_modules/moment/locale/en-sg.js\",\n\t\"./en-sg.js\": \"./node_modules/moment/locale/en-sg.js\",\n\t\"./eo\": \"./node_modules/moment/locale/eo.js\",\n\t\"./eo.js\": \"./node_modules/moment/locale/eo.js\",\n\t\"./es\": \"./node_modules/moment/locale/es.js\",\n\t\"./es-do\": \"./node_modules/moment/locale/es-do.js\",\n\t\"./es-do.js\": \"./node_modules/moment/locale/es-do.js\",\n\t\"./es-mx\": \"./node_modules/moment/locale/es-mx.js\",\n\t\"./es-mx.js\": \"./node_modules/moment/locale/es-mx.js\",\n\t\"./es-us\": \"./node_modules/moment/locale/es-us.js\",\n\t\"./es-us.js\": \"./node_modules/moment/locale/es-us.js\",\n\t\"./es.js\": \"./node_modules/moment/locale/es.js\",\n\t\"./et\": \"./node_modules/moment/locale/et.js\",\n\t\"./et.js\": \"./node_modules/moment/locale/et.js\",\n\t\"./eu\": \"./node_modules/moment/locale/eu.js\",\n\t\"./eu.js\": \"./node_modules/moment/locale/eu.js\",\n\t\"./fa\": \"./node_modules/moment/locale/fa.js\",\n\t\"./fa.js\": \"./node_modules/moment/locale/fa.js\",\n\t\"./fi\": \"./node_modules/moment/locale/fi.js\",\n\t\"./fi.js\": \"./node_modules/moment/locale/fi.js\",\n\t\"./fil\": \"./node_modules/moment/locale/fil.js\",\n\t\"./fil.js\": \"./node_modules/moment/locale/fil.js\",\n\t\"./fo\": \"./node_modules/moment/locale/fo.js\",\n\t\"./fo.js\": \"./node_modules/moment/locale/fo.js\",\n\t\"./fr\": \"./node_modules/moment/locale/fr.js\",\n\t\"./fr-ca\": \"./node_modules/moment/locale/fr-ca.js\",\n\t\"./fr-ca.js\": \"./node_modules/moment/locale/fr-ca.js\",\n\t\"./fr-ch\": \"./node_modules/moment/locale/fr-ch.js\",\n\t\"./fr-ch.js\": \"./node_modules/moment/locale/fr-ch.js\",\n\t\"./fr.js\": \"./node_modules/moment/locale/fr.js\",\n\t\"./fy\": \"./node_modules/moment/locale/fy.js\",\n\t\"./fy.js\": \"./node_modules/moment/locale/fy.js\",\n\t\"./ga\": \"./node_modules/moment/locale/ga.js\",\n\t\"./ga.js\": \"./node_modules/moment/locale/ga.js\",\n\t\"./gd\": \"./node_modules/moment/locale/gd.js\",\n\t\"./gd.js\": \"./node_modules/moment/locale/gd.js\",\n\t\"./gl\": \"./node_modules/moment/locale/gl.js\",\n\t\"./gl.js\": \"./node_modules/moment/locale/gl.js\",\n\t\"./gom-deva\": \"./node_modules/moment/locale/gom-deva.js\",\n\t\"./gom-deva.js\": \"./node_modules/moment/locale/gom-deva.js\",\n\t\"./gom-latn\": \"./node_modules/moment/locale/gom-latn.js\",\n\t\"./gom-latn.js\": \"./node_modules/moment/locale/gom-latn.js\",\n\t\"./gu\": \"./node_modules/moment/locale/gu.js\",\n\t\"./gu.js\": \"./node_modules/moment/locale/gu.js\",\n\t\"./he\": \"./node_modules/moment/locale/he.js\",\n\t\"./he.js\": \"./node_modules/moment/locale/he.js\",\n\t\"./hi\": \"./node_modules/moment/locale/hi.js\",\n\t\"./hi.js\": \"./node_modules/moment/locale/hi.js\",\n\t\"./hr\": \"./node_modules/moment/locale/hr.js\",\n\t\"./hr.js\": \"./node_modules/moment/locale/hr.js\",\n\t\"./hu\": \"./node_modules/moment/locale/hu.js\",\n\t\"./hu.js\": \"./node_modules/moment/locale/hu.js\",\n\t\"./hy-am\": \"./node_modules/moment/locale/hy-am.js\",\n\t\"./hy-am.js\": \"./node_modules/moment/locale/hy-am.js\",\n\t\"./id\": \"./node_modules/moment/locale/id.js\",\n\t\"./id.js\": \"./node_modules/moment/locale/id.js\",\n\t\"./is\": \"./node_modules/moment/locale/is.js\",\n\t\"./is.js\": \"./node_modules/moment/locale/is.js\",\n\t\"./it\": \"./node_modules/moment/locale/it.js\",\n\t\"./it-ch\": \"./node_modules/moment/locale/it-ch.js\",\n\t\"./it-ch.js\": \"./node_modules/moment/locale/it-ch.js\",\n\t\"./it.js\": \"./node_modules/moment/locale/it.js\",\n\t\"./ja\": \"./node_modules/moment/locale/ja.js\",\n\t\"./ja.js\": \"./node_modules/moment/locale/ja.js\",\n\t\"./jv\": \"./node_modules/moment/locale/jv.js\",\n\t\"./jv.js\": \"./node_modules/moment/locale/jv.js\",\n\t\"./ka\": \"./node_modules/moment/locale/ka.js\",\n\t\"./ka.js\": \"./node_modules/moment/locale/ka.js\",\n\t\"./kk\": \"./node_modules/moment/locale/kk.js\",\n\t\"./kk.js\": \"./node_modules/moment/locale/kk.js\",\n\t\"./km\": \"./node_modules/moment/locale/km.js\",\n\t\"./km.js\": \"./node_modules/moment/locale/km.js\",\n\t\"./kn\": \"./node_modules/moment/locale/kn.js\",\n\t\"./kn.js\": \"./node_modules/moment/locale/kn.js\",\n\t\"./ko\": \"./node_modules/moment/locale/ko.js\",\n\t\"./ko.js\": \"./node_modules/moment/locale/ko.js\",\n\t\"./ku\": \"./node_modules/moment/locale/ku.js\",\n\t\"./ku.js\": \"./node_modules/moment/locale/ku.js\",\n\t\"./ky\": \"./node_modules/moment/locale/ky.js\",\n\t\"./ky.js\": \"./node_modules/moment/locale/ky.js\",\n\t\"./lb\": \"./node_modules/moment/locale/lb.js\",\n\t\"./lb.js\": \"./node_modules/moment/locale/lb.js\",\n\t\"./lo\": \"./node_modules/moment/locale/lo.js\",\n\t\"./lo.js\": \"./node_modules/moment/locale/lo.js\",\n\t\"./lt\": \"./node_modules/moment/locale/lt.js\",\n\t\"./lt.js\": \"./node_modules/moment/locale/lt.js\",\n\t\"./lv\": \"./node_modules/moment/locale/lv.js\",\n\t\"./lv.js\": \"./node_modules/moment/locale/lv.js\",\n\t\"./me\": \"./node_modules/moment/locale/me.js\",\n\t\"./me.js\": \"./node_modules/moment/locale/me.js\",\n\t\"./mi\": \"./node_modules/moment/locale/mi.js\",\n\t\"./mi.js\": \"./node_modules/moment/locale/mi.js\",\n\t\"./mk\": \"./node_modules/moment/locale/mk.js\",\n\t\"./mk.js\": \"./node_modules/moment/locale/mk.js\",\n\t\"./ml\": \"./node_modules/moment/locale/ml.js\",\n\t\"./ml.js\": \"./node_modules/moment/locale/ml.js\",\n\t\"./mn\": \"./node_modules/moment/locale/mn.js\",\n\t\"./mn.js\": \"./node_modules/moment/locale/mn.js\",\n\t\"./mr\": \"./node_modules/moment/locale/mr.js\",\n\t\"./mr.js\": \"./node_modules/moment/locale/mr.js\",\n\t\"./ms\": \"./node_modules/moment/locale/ms.js\",\n\t\"./ms-my\": \"./node_modules/moment/locale/ms-my.js\",\n\t\"./ms-my.js\": \"./node_modules/moment/locale/ms-my.js\",\n\t\"./ms.js\": \"./node_modules/moment/locale/ms.js\",\n\t\"./mt\": \"./node_modules/moment/locale/mt.js\",\n\t\"./mt.js\": \"./node_modules/moment/locale/mt.js\",\n\t\"./my\": \"./node_modules/moment/locale/my.js\",\n\t\"./my.js\": \"./node_modules/moment/locale/my.js\",\n\t\"./nb\": \"./node_modules/moment/locale/nb.js\",\n\t\"./nb.js\": \"./node_modules/moment/locale/nb.js\",\n\t\"./ne\": \"./node_modules/moment/locale/ne.js\",\n\t\"./ne.js\": \"./node_modules/moment/locale/ne.js\",\n\t\"./nl\": \"./node_modules/moment/locale/nl.js\",\n\t\"./nl-be\": \"./node_modules/moment/locale/nl-be.js\",\n\t\"./nl-be.js\": \"./node_modules/moment/locale/nl-be.js\",\n\t\"./nl.js\": \"./node_modules/moment/locale/nl.js\",\n\t\"./nn\": \"./node_modules/moment/locale/nn.js\",\n\t\"./nn.js\": \"./node_modules/moment/locale/nn.js\",\n\t\"./oc-lnc\": \"./node_modules/moment/locale/oc-lnc.js\",\n\t\"./oc-lnc.js\": \"./node_modules/moment/locale/oc-lnc.js\",\n\t\"./pa-in\": \"./node_modules/moment/locale/pa-in.js\",\n\t\"./pa-in.js\": \"./node_modules/moment/locale/pa-in.js\",\n\t\"./pl\": \"./node_modules/moment/locale/pl.js\",\n\t\"./pl.js\": \"./node_modules/moment/locale/pl.js\",\n\t\"./pt\": \"./node_modules/moment/locale/pt.js\",\n\t\"./pt-br\": \"./node_modules/moment/locale/pt-br.js\",\n\t\"./pt-br.js\": \"./node_modules/moment/locale/pt-br.js\",\n\t\"./pt.js\": \"./node_modules/moment/locale/pt.js\",\n\t\"./ro\": \"./node_modules/moment/locale/ro.js\",\n\t\"./ro.js\": \"./node_modules/moment/locale/ro.js\",\n\t\"./ru\": \"./node_modules/moment/locale/ru.js\",\n\t\"./ru.js\": \"./node_modules/moment/locale/ru.js\",\n\t\"./sd\": \"./node_modules/moment/locale/sd.js\",\n\t\"./sd.js\": \"./node_modules/moment/locale/sd.js\",\n\t\"./se\": \"./node_modules/moment/locale/se.js\",\n\t\"./se.js\": \"./node_modules/moment/locale/se.js\",\n\t\"./si\": \"./node_modules/moment/locale/si.js\",\n\t\"./si.js\": \"./node_modules/moment/locale/si.js\",\n\t\"./sk\": \"./node_modules/moment/locale/sk.js\",\n\t\"./sk.js\": \"./node_modules/moment/locale/sk.js\",\n\t\"./sl\": \"./node_modules/moment/locale/sl.js\",\n\t\"./sl.js\": \"./node_modules/moment/locale/sl.js\",\n\t\"./sq\": \"./node_modules/moment/locale/sq.js\",\n\t\"./sq.js\": \"./node_modules/moment/locale/sq.js\",\n\t\"./sr\": \"./node_modules/moment/locale/sr.js\",\n\t\"./sr-cyrl\": \"./node_modules/moment/locale/sr-cyrl.js\",\n\t\"./sr-cyrl.js\": \"./node_modules/moment/locale/sr-cyrl.js\",\n\t\"./sr.js\": \"./node_modules/moment/locale/sr.js\",\n\t\"./ss\": \"./node_modules/moment/locale/ss.js\",\n\t\"./ss.js\": \"./node_modules/moment/locale/ss.js\",\n\t\"./sv\": \"./node_modules/moment/locale/sv.js\",\n\t\"./sv.js\": \"./node_modules/moment/locale/sv.js\",\n\t\"./sw\": \"./node_modules/moment/locale/sw.js\",\n\t\"./sw.js\": \"./node_modules/moment/locale/sw.js\",\n\t\"./ta\": \"./node_modules/moment/locale/ta.js\",\n\t\"./ta.js\": \"./node_modules/moment/locale/ta.js\",\n\t\"./te\": \"./node_modules/moment/locale/te.js\",\n\t\"./te.js\": \"./node_modules/moment/locale/te.js\",\n\t\"./tet\": \"./node_modules/moment/locale/tet.js\",\n\t\"./tet.js\": \"./node_modules/moment/locale/tet.js\",\n\t\"./tg\": \"./node_modules/moment/locale/tg.js\",\n\t\"./tg.js\": \"./node_modules/moment/locale/tg.js\",\n\t\"./th\": \"./node_modules/moment/locale/th.js\",\n\t\"./th.js\": \"./node_modules/moment/locale/th.js\",\n\t\"./tk\": \"./node_modules/moment/locale/tk.js\",\n\t\"./tk.js\": \"./node_modules/moment/locale/tk.js\",\n\t\"./tl-ph\": \"./node_modules/moment/locale/tl-ph.js\",\n\t\"./tl-ph.js\": \"./node_modules/moment/locale/tl-ph.js\",\n\t\"./tlh\": \"./node_modules/moment/locale/tlh.js\",\n\t\"./tlh.js\": \"./node_modules/moment/locale/tlh.js\",\n\t\"./tr\": \"./node_modules/moment/locale/tr.js\",\n\t\"./tr.js\": \"./node_modules/moment/locale/tr.js\",\n\t\"./tzl\": \"./node_modules/moment/locale/tzl.js\",\n\t\"./tzl.js\": \"./node_modules/moment/locale/tzl.js\",\n\t\"./tzm\": \"./node_modules/moment/locale/tzm.js\",\n\t\"./tzm-latn\": \"./node_modules/moment/locale/tzm-latn.js\",\n\t\"./tzm-latn.js\": \"./node_modules/moment/locale/tzm-latn.js\",\n\t\"./tzm.js\": \"./node_modules/moment/locale/tzm.js\",\n\t\"./ug-cn\": \"./node_modules/moment/locale/ug-cn.js\",\n\t\"./ug-cn.js\": \"./node_modules/moment/locale/ug-cn.js\",\n\t\"./uk\": \"./node_modules/moment/locale/uk.js\",\n\t\"./uk.js\": \"./node_modules/moment/locale/uk.js\",\n\t\"./ur\": \"./node_modules/moment/locale/ur.js\",\n\t\"./ur.js\": \"./node_modules/moment/locale/ur.js\",\n\t\"./uz\": \"./node_modules/moment/locale/uz.js\",\n\t\"./uz-latn\": \"./node_modules/moment/locale/uz-latn.js\",\n\t\"./uz-latn.js\": \"./node_modules/moment/locale/uz-latn.js\",\n\t\"./uz.js\": \"./node_modules/moment/locale/uz.js\",\n\t\"./vi\": \"./node_modules/moment/locale/vi.js\",\n\t\"./vi.js\": \"./node_modules/moment/locale/vi.js\",\n\t\"./x-pseudo\": \"./node_modules/moment/locale/x-pseudo.js\",\n\t\"./x-pseudo.js\": \"./node_modules/moment/locale/x-pseudo.js\",\n\t\"./yo\": \"./node_modules/moment/locale/yo.js\",\n\t\"./yo.js\": \"./node_modules/moment/locale/yo.js\",\n\t\"./zh-cn\": \"./node_modules/moment/locale/zh-cn.js\",\n\t\"./zh-cn.js\": \"./node_modules/moment/locale/zh-cn.js\",\n\t\"./zh-hk\": \"./node_modules/moment/locale/zh-hk.js\",\n\t\"./zh-hk.js\": \"./node_modules/moment/locale/zh-hk.js\",\n\t\"./zh-mo\": \"./node_modules/moment/locale/zh-mo.js\",\n\t\"./zh-mo.js\": \"./node_modules/moment/locale/zh-mo.js\",\n\t\"./zh-tw\": \"./node_modules/moment/locale/zh-tw.js\",\n\t\"./zh-tw.js\": \"./node_modules/moment/locale/zh-tw.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./node_modules/moment/locale sync recursive ^\\\\.\\\\/.*$\";","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdD = function () {\n\tthrow new Error('define cannot be used indirect');\n};","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 533;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t533: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkclaims_reports\"] = self[\"webpackChunkclaims_reports\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [121], () => (__webpack_require__(\"./node_modules/babel-polyfill/lib/index.js\")))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [121], () => (__webpack_require__(\"./src/status-check.tsx\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","React","require","exports","props","typeClass","type","classNames","name","style","flip","rotate","inactive","width","size","fontSize","color","createElement","className","onClick","mobx_react_1","moment","reactstrap_1","Footer","_React$Component","_classCallCheck","_callSuper","arguments","_inherits","key","value","year","Row","Col","xs","lg","href","target","alt","src","Component","__decorate","observer","mobx_1","fai_1","IconControl","_createClass","get","this","form","observable","computed","IconCheckbox","_IconControl","_this","initialSelected","selected","isSelected","set","v","setValue","isControlled","formValue","onChange","checked","icon","trueValue","falseValue","handler","disabled","undefined","toggle","FAI","children","action","bound","IconRadioBox","_IconControl2","_this2","getValues","observe","changes","matches","getValue","select","CheckList","DEFAULT_SINGLE_CONTROL","DEFAULT_MULTI_CONTROL","filterText","currentSelection","values","setSelected","setSelection","onSelectionChanged","event","currentTarget","textFilter","length","toLowerCase","indexOf","level","controlRenderer","_this3","label","labelProvider","itemClass","toggleSelection","_this4","displayFilter","p","disableFilter","textInput","InputGroup","Input","placeholder","strings","showOnly","filterTextChange","InputGroupAddon","addonType","removeTextFilter","items","all","filter","listItems","forEach","startsWith","push","renderItem","hiddenCount","hiddenWarning","someNotShown","CloseableTag","_React$Component2","_this5","onClose","TagGroup","_React$Component3","onRemove","_this6","tags","map","display","trim","showLabelsOnly","showValueOnly","concat","removeTag","values2","noneSelectedText","MultiSelect","_React$Component4","tagFilter","noneSelected","OrderedSelectableValues","allValues","initialSelection","selectMap","ObservableMap","lastSwap","_this7","newSelection","_this8","clear","v1","v2","i1","i2","temp","value1","value2","thresholdMillis","now","Date","getTime","doSwap","HeaderTagGroup","_React$Component5","_this9","react_datepicker_1","translation_1","icon_check_radio_1","select_list_1","FieldMessageDisplay","_translation_1$IntlCo","content","results","r","parameters","code","lis","re","i","item","lang","errorMessage","param","replace","lvl","IntlComponent","getMaxMessageLevel","SelfLabeledInput","_translation_1$IntlCo2","arity","Array","isArray","clearValue","onBlur","SelfLabeledTextInput","_SelfLabeledInput","Error","keyCode","onEnter","onFocus","newMoment","format","errors","fieldState","dark","darkOutline","componentClass","inputClass","populatedClass","labelClass","labelDecoration","decoration","datePicker","errorDisplay","hideErrors","innerControl","maxLength","onKeyUp","Object","assign","showYearDropdown","dateFormatCalendar","datePickerChange","onSelect","customInput","valueAsMoment","SelfLabeledSelect","_SelfLabeledInput2","isOpen","valueSource","showAllOnEmpty","dropdownValues","inputElement","focus","DropdownItem","header","itemClicked","buildItem","DropdownToggle","tag","menu","renderMenu","Dropdown","direction","ref","e","onEmpty","DropdownMenu","right","Button","matchText","matchInfo","divider","SelfLabeledMultiSelect","_SelfLabeledInput3","getMultiValue","valueIndex","multiFormValue","splice","deleteIndex","selectionCount","selectionDisplay","selectCount","SelfLabeledCheckbox","_SelfLabeledInput4","newValue","Spinner","classes","left","react_router_dom_1","formatters_1","user_1","validators_1","state_1","ui_1","Link","to","state","claimsSummary","data","search","query","ensureLoaded","ui","history","toUpperCase","m","fromNow","time","FormattedUserId","adjusterId","userId","stripDomain","FormattedAddress","address","a","apt","street","crossStreet","county","city","zip5","zip4","pn","firstName","middleName","lastName","first","middle","last","FormattedIncidentLocation","VolumeType","Period","GroupBy","Status","ReportFormat","Operation","Map","STATUS_COLORS","COMPLETE","IN_PROGRESS","SAVED","INCOMPLETE","ERROR","StatusRenderer","autorun","tatListener","change","tatCode","source","id","tatStatus","tatTime","reason","status","DisplayStatusMapper","colorClass","REPORT_CATEGORIES","reportType","archived","actionIcons","UncontrolledTooltip","placement","languages","concepts","reasons","popover","tatId","renderTatPopover","iconClasses","tatHtml","tatCodes","Popover","PopoverHeader","PopoverBody","dangerouslySetInnerHTML","__html","ISODateTimeRenderer","BulletedListRenderer","noBulletOnSingle","index","text","toString","ellipseAfter","other","slice","more","ellipsisTarget","labelOnEmpty","unformatted","maskToRegExp","is","formatted","f","regExp","NUMERIC_MASK","ALPHA_MASK","ALPHA_NUMERIC_MASK","ALL_MASK","NUMBER_MASK_WITH_ASTERISK","test","transform_1","b64Data","contentType","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","charCodeAt","byteArray","Uint8Array","Blob","substring","options","PartialList","ListRequest","start","count","includeItems","includeTotal","ordering","LazyList","loader","idExtractor","defaultOrdering","orderings","loading","total","partial","ids","array","console","log","keys","end","loadCount","request","JSON","stringify","getPartial","then","merge","findMissing","error","missing","range","Math","min","Promise","resolve","onComplete","newOrdering","ex","getWindow","property","desc","multiplier","sortedCopy","collator","Intl","Collator","numeric","sensitivity","sort","ida","idb","b","va","vb","compare","Address","IncidentLocation","Phone","reportTypeMap","RESTRICTED_STATES_VIN","RESTRICTED_US_STATES_MVR","US_STATES","el","US_STATES_MVR","ALL_MVR_STATES_DROPDOWN","_toConsumableArray","US_TERRITORIES","CA_PROVINCES","ALL_STATE_DROPDOWN","YTD","MONTH","CUSTOM","stateCode","s","caseInsensitiveSubstringFilter","ALL_LOCATIONS","OPEN_STATE_DROPDOWN","NAME_SUFFIX_DROPDOWN","GENDER_DROPDOWN","MGMT_REPORT_VIEW_OPTIONS","MGMT_REPORT_TOP_AGENCY","STATES_VIN","topAgencyMap","viewOptionsMap","nameSuffixMap","genderMap","openStateNameMap","stateNameMap","mvrStatesMap","allUsStatesMap","Form","validators","defaultProviders","formatters","field","vm","x","nvs","NamedFieldValidator","nvMap","n","NamedFieldFormatter","populateDefaults","callback","object","deformatted","formatter","deformat","valueObject","toJS","validate","defaults","_step","_iterator","_createForOfIteratorHelper","done","fn","err","_step2","_iterator2","entries","_step2$value","_slicedToArray","val","er","validator","result","addError","nv","fv","errorCode","_step3","_iterator3","FieldFormatter","_FieldFormatter","substr","nonAlphaNumericStripper","timeParser","len","ssnFormatter","nonDigitStripper","maskFormatterFactory","maskDeformatterFactory","locale","localeData","longDateFormat","includes","isValid","dateFormatter","dateDeformatter","maskFormattingFactory","canadaPostCodeFormatter","incidentTime","timeFieldFormatter","common_1","InquiryIdentifier","InquiryView","_InquiryIdentifier","ManagementReport","PartyDetails","PersonName","Inquiry","_InquiryView","ParameterizedListRequest","_common_1$ListRequest","RenderedReport","_InquiryIdentifier2","UserConfig","AdjusterAccounts","AccountInfo","AgencyInfo","MvrDlFormat","LaunchParameters","UserPrefs","TatResponse","ImageRetrievalRequest","CruIvrRecord","User","username","split","FieldError","ValidationResult","_FieldError","String","fieldName","regexp","emailArray","email","RegExp","enabled","cache","config","invalid","today","endOf","isBefore","p24","exec","h","p12","parseInt","obj","has","strip","stripped","max","MASK_REGEX","mask","sRegEx","maskChars","sRegExp","c","MASK_HUMAN","human","dates","from","thisYear","getFullYear","lastYearStart","valueOf","isSameOrBefore","diff","lossDates","dataReceivedDates","fname","required","hasLossDatesOnly","hasDataReceivedDatesOnly","date","dateValidationResult","dateValidator","fromDate","toDate","maskLength","maskToHumanReadable","match","fi","humanFormats","description","claimNumber","accountNumber","incidentDate","validDate","notFuture","incidentDateTo","validTime","agencyName","agencyType","reportNumber","alphaNumericValidation","precinct","policyNumber","policyState","dropDownValidator","digitsOnlyFactory","lengthValidatorFactory","digitsOnly","canadaPostCodeValidator","emails","groupBy","period","AUTO_ACCIDENT","recommended","RECONSTRUCTION","ARREST","CITATION_CONVICTION","EMS","FACE_LOG_SHEET","ISSUE_LETTER_INTEREST","PHOTOS","SUPPLEMENTAL","OTHER","TOXICOLOGY","HOMICIDE","DEATH_CERTIFICATE","BIRTH_CERTIFICATE","DUI","AUTO_THEFT","AUTO_THEFT_RECOVERY","VANDALISM","AUTOPSY_CORONER","FIRE_AUTO","FIRE_BUILDING","THEFT_BURGLARY","INSURANCE_VERIFICATION","TITLE_HISTORY","ALL_REGISTERED_VEHICLES_IN_HOUSEHOLD","REGISTERED_VEHICLE_OWNER","VEHICLES_AT_HOUSEHOLD","VIN","PLATE_TAG","VEHICLES_BY_NAME_ADDR_TYPE","AUTOCHECK_VIN_HISTORY","CLAIMS_MVR","CARRIER_DISCOVERY_VIN","CARRIER_DISCOVERY_SUB","CARRIER_ID_VIN","CARRIER_ID_SUB","CLAIMS_DISCOVERY_VIN","CLAIMS_DISCOVERY_SUB","app","section","home","question","usermanage","workspace","help","reports","orderReports","orderHistory","orderLog","nav","frequent","incident","interactive","terms","dppaType","NO_PERMISSIBLE_PURPOSE","INSURANCE","COURT_LAW","MOTOR_VEHICLE","VERIFY_ACCURACY","CIVIL_CRIMINAL","PRIVATE_INVESTIGATOR","dppaDesc","components","checklist","actions","reload","pleaseWait","waiting","searchTypes","CLAIM_NUMBER","PARTY_NAME_FIRST","PARTY_NAME_LAST","REPORT_NUMBER","actionTypes","OPEN","PRINT","DOWNLOAD","DOWNLOAD_PDF","DOWNLOAD_TIFF","DOWNLOAD_XML","EDIT","SUMMARY","RESUME","ORDER_REPORT","REORDER_WO_DOL","TAT","manageActionTypes","SUBSCRIBE","UNSUBSCRIBE","DELETE","user","selectLang","returnToWorkspace","editAccount","logout","langSelection","rememberLang","manageUsers","termContent","glbaTitle","glbaPermissibleUse","dppaTitle","dppaPermissibleUse","dppaPermissibleUse_0","dppaPermissibleUse_6","dppaPermissibleUse_4","dppaPermissibleUse_1","dppaPermissibleUse_2","dppaPermissibleUse_3","dppaPermissibleUse_7","continue","potential","none","purchase","exact","labels","advancedSearch","nodeID","sourceId","submissionDateTime","vin","dlNumber","headers","potentialMatch","$select","parties","incidentLocation","orderId","completedDateTime","$actions","searchResults","incidentDateTime","resultsSummary","managementReport","accounts","users","subscription","orderSummary","party1NameLast","party1Dob","party1Ssn","party1DlState","party1DlNumber","party2NameLast","party3NameLast","plateNumber","plateState","additionalInfo","contact","body","REQ","IPC","NUM","ALP","IDF","NFD","ITF","LEN","MIL","MXL","IMS","IDV","ICH","ECR","DLF","EML","FDV","TDV","LYV","ADJ","XDV","XDF","XDO","IAN","title","message","next","formFeedback","formCleared","formSaving","saveSearch","formSaved","searchingReports","orderingReport","formSubmit","formSave","imageRetrieval","printReport","editReport","subscribeReport","unsubscribeReport","downloadZip","imageDownload","nullReport","accountSelection","resultSummaryText","exactMatch","processing","newOrder","reportNotAvailableForPublic","noReport","pageTitle","ORDER_HISTORY","SEARCH_RESULTS","archivalStatus","ALL","ARCHIVED","NON_ARCHIVED","agencyTypes","TAT0","TAT1","TAT2","TAT3","TAT4","TAT4_IVR","TAT5","terminationCodes","reportTypes","AUTO_ACCIDENT_OPEN","CARRIER_DISCOVERY","CARRIER_ID","CLAIMS_DISCOVERY","CLAIMS_COMPREHENSIVE","CLAIMS_POLICE_LOCATOR","shortReportTypes","mgmtReportTypes","INCIDENT_TAT","ALL_SUMMARY","ALL_DETAIL","mgmtReportGroupBy","USER_ID","ACCOUNT_NUMBER","REPORT_TYPE","reportHelp","orderStatuses","PROCESSING","HOLD","CNCL","CMPL","ACCI","AFYI","ALTR","ARIN","INVL","ASSI","AUTO","BADC","BADD","BADT","CALL","CRII","DURI","FORC","HAND","IISI","INHB","INHI","INPO","INWP","LEAV","LETR","LOCA","LOCM","LOCS","MIGA","MISC","NRFN","NRWN","PDFR","PRAC","RCAC","RCCC","RCER","REVW","RNNF","RNRN","ROTH","RRRD","RRSC","RRSD","SEAR","SECR","SIOI","SRRI","WAIT","WJRR","WPJR","NRNF","INHA","CCIA","CCCE","INAT","INAQ","INAD","en_1","English","es_1","pt_1","formatMoney","toLocaleString","currencyDisplay","currency","Spanish","Portuguese","USLocale","Brazil","sml","langLocale","locales","axios_1","flat_1","mobx_2","Connections","open","secure","pathAfterContent","window","localStorage","getItem","ReportSearchApi","k","forms","reject","_step$value","setPartyNumber","params","unflatten","post","timeout","response","formData","flatten","editInquiry","_i","_Object$keys","dlState","orderLogState","orderLogCount","hideSnack","meta","FormApi","autoSave","dateFields","element","dateValue","AuthApi","TOKEN_NAME","baseUrl","requestUrl","location","indexOfClrpui","setItem","create","baseURL","getStoredToken","redirectToCLA","localValidateToken","serverRefreshToken","newToken","setStoredToken","orderLogApi","getOrderLogCount","orderLogMaxedOutCount","userApi","getUserConfig","dataApi","getDlFormats","formats","dlFormats","security","loggedOut","getConfig","url","idsLogoutUrl","token","removeItem","authority","authorities","isError","removeStoredToken","logoutUrl","jwt","r1","r2","activitySync","_token$split2","encodedPayload","parse","exp","isAfter","Authorities","LOGIN","Authorization","interceptors","use","success","endsWith","refreshToken","startTimer","showSnack","catch","UserApi","userConfig","adjuster","productConfig","REPORT_PRODUCT","account","accountInfo","dppa","rs","DataApi","payload","agencyNamePrefix","responseType","ReportApi","reportParams","html","OrderHistoryApi","orderHistoryRequest","historyStatus","archiveStatus","SearchApi","searchRequest","AdvancedSearchApi","_step3$value","advanceSearchRequest","OperationsSearchApi","operationSearchRequest","operationsForm","ManagementReportApi","subscribe","managementReportState","searchFilters","subscribed","managementReportRequest","managementReportType","portalDataElementsRequest","portalDataElements","_step4","_iterator4","_step4$value","parsedSearchFilters","OrderApi","accountNumbers","startDate","detail","FeatureApi","feature","active","SubmitOrderApi","completeOrderData","OrderLogApi","form_1","model_1","api_1","VIEW","VIEW_ALL","ORDER","OPERATOR","MANAGEMENT_REPORTS","SUPPORT_USER_MANAGER","CLIENT_USER_MANAGER","WORKSPACE","INTERNAL","DISPLAY_USER_MANAGEMENT","DISPLAY_SECURITY_SETTINGS","CRU","MVR","AUTO_CHECK","CUSTOMER_SUPPORT","PRODUCT_SUPPORT","INCIDENT","INTERACTIVE","MGMT_REPORT","POLICE_DATAELEMENTS_REPORTS","SecurityState","showIntcidentForm","showTimeoutModal","shouldRedirect","idsLoginBaseUrl","authApi","userHasAuthority","userIsOperator","userIsCustomerSupport","reportArray","showOpenSearch","PRODUCTS","MANAGEMENT_REPORTS_USER","activeFeatures","Feature","isValidRoleForPDE","isUserAdmin","pdeFeatureEnabled","features","showIncident","userIsSupervisor","userIsInternalSupport","startParameters","termsAccepted","startParams","report","clearTimer","iat","timeoutID","setTimeout","clearTimeout","Cache","UIState","ErrorState","ErrorMessage","PotentialMatchState","reportSearchApi","pm","ResultSummaryState","intervalId","submitOrderApi","onTimer","setInterval","clearInterval","ClaimsSummaryState","searchApi","incident_col_1","incident_col_2","CATEGORY_REPORTS","category","Set","product","NavigationState","incidentReports","interactiveReports","ManagementReportNavigationState","managementReportsNav","SearchState","clearBasic","clearAdvanced","clearOperations","searchType","advancedResults","basicResults","operationsResults","advanceSearchApi","po","operationsSearchApi","advancedSearchValidators","submissionDate","FormState","box","profile","inquiry","basicSearch","isDisabled","ReportState","ManagementReportState","managementReportApi","mr","OrderHistoryState","orderHistoryApi","OrderLogState","State","navigation","managementReportNavigation","UI","ARCHIVE","ARCHIVEFW","INFO_CIRCLE","snack","ReactDOM","footer_1","self_labeled_text_input_1","spinner_1","statusCheck","StatusCheck","searchResponse","statusError","showLoader","check","connection","claimNumbers","orderIds","height","marginTop","Container","marginBottom","block","formClear","StatusCheckLayout","resp","claimNumResultList","orderIdResultList","selectedClaimNumbers","selectedOrderIds","appConfig","idx","_regeneratorRuntime","mark","_callee","callDataId","wrap","_context","prev","join","t0","stop","_updateDb","apply","rnwurl","o","renderDisplay","claimRows","record","tatResp","terminationCode","isActiveTerminationCode","activeFlag","Fragment","colSpan","addIfNotPresent","ISODateRenderer","orderRows","draggable","checkAllClaimNumbersChecked","checkAllOrderIdsChecked","disableOpenTicket","sendLink","updateDb","root","document","getElementById","render","webpackContext","req","webpackContextResolve","__webpack_require__","module","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","amdD","amdO","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","every","getter","__esModule","d","definition","defineProperty","enumerable","g","globalThis","Function","prop","prototype","hasOwnProperty","Symbol","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}