id
stringlengths 1
6
| tokens
sequence | labels
sequence |
---|---|---|
662000 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"CreateCommandModule",
"=",
"void",
"0",
";",
"const",
"tslib_1",
"=",
"require",
"(",
"\"tslib\"",
")",
";",
"const",
"chalk_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"chalk\"",
")",
")",
";",
"const",
"dayjs_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"dayjs\"",
")",
")",
";",
"const",
"debug_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"debug\"",
")",
")",
";",
"const",
"my_easy_fp_1",
"=",
"require",
"(",
"\"my-easy-fp\"",
")",
";",
"const",
"path",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"path\"",
")",
")",
";",
"const",
"configure_1",
"=",
"require",
"(",
"\"../options/configure\"",
")",
";",
"const",
"CTILogger_1",
"=",
"require",
"(",
"\"../tools/CTILogger\"",
")",
";",
"const",
"CTIUtility_1",
"=",
"require",
"(",
"\"../tools/CTIUtility\"",
")",
";",
"const",
"exportStatement_1",
"=",
"require",
"(",
"\"../tools/exportStatement\"",
")",
";",
"const",
"CommandModule_1",
"=",
"require",
"(",
"\"./CommandModule\"",
")",
";",
"const",
"log",
"=",
"debug_1",
".",
"default",
"(",
"'cti:CreateCommandModule'",
")",
";",
"class",
"CreateCommandModule",
"{",
"do",
"(",
"executePath",
",",
"passed",
")",
"{",
"return",
"tslib_1",
".",
"__awaiter",
"(",
"this",
",",
"void",
"0",
",",
"void",
"0",
",",
"function",
"*",
"(",
")",
"{",
"const",
"workDir",
"=",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"passed",
".",
"globOptions",
")",
"&&",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"passed",
".",
"globOptions",
".",
"cwd",
")",
"?",
"passed",
".",
"globOptions",
".",
"cwd",
":",
"process",
".",
"cwd",
"(",
")",
";",
"const",
"configFromExecutePath",
"=",
"yield",
"configure_1",
".",
"readConfigRC",
"(",
"configure_1",
".",
"getRCFilename",
"(",
"executePath",
")",
")",
";",
"const",
"configFromWorkDir",
"=",
"yield",
"configure_1",
".",
"readConfigRC",
"(",
"configure_1",
".",
"getRCFilename",
"(",
"workDir",
")",
")",
";",
"const",
"option",
"=",
"configure_1",
".",
"concreteConfig",
"(",
"configure_1",
".",
"merging",
"(",
"configure_1",
".",
"merging",
"(",
"my_easy_fp_1",
".",
"isPass",
"(",
"configFromExecutePath",
")",
"?",
"configFromExecutePath",
".",
"pass",
":",
"configure_1",
".",
"getDeafultOptions",
"(",
")",
",",
"my_easy_fp_1",
".",
"isPass",
"(",
"configFromWorkDir",
")",
"?",
"configFromWorkDir",
".",
"pass",
":",
"configure_1",
".",
"getDeafultOptions",
"(",
")",
")",
",",
"passed",
")",
")",
";",
"const",
"logger",
"=",
"new",
"CTILogger_1",
".",
"CTILogger",
"(",
"option",
".",
"verbose",
")",
";",
"try",
"{",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"yellowBright",
"(",
"'Option: '",
")",
",",
"option",
")",
";",
"log",
"(",
"'opt: '",
",",
"option",
")",
";",
"const",
"targetFileGlob",
"=",
"option",
".",
"targetExts",
".",
"map",
"(",
"(",
"ext",
")",
"=>",
"`*.${",
"ext",
"}`",
")",
".",
"join",
"(",
"'|'",
")",
";",
"const",
"allTsFiles",
"=",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"glob",
"(",
"`**/+(${",
"targetFileGlob",
"})`",
",",
"option",
".",
"globOptions",
")",
";",
"const",
"tsFiles",
"=",
"CommandModule_1",
".",
"CommandModule",
".",
"targetFileFilter",
"(",
"{",
"logger",
",",
"option",
",",
"filenames",
":",
"allTsFiles",
",",
"}",
")",
";",
"const",
"dupLibDirs",
"=",
"tsFiles",
".",
"filter",
"(",
"(",
"tsFile",
")",
"=>",
"tsFile",
".",
"split",
"(",
"'/'",
")",
".",
"length",
">",
"1",
")",
".",
"map",
"(",
"(",
"tsFile",
")",
"=>",
"{",
"const",
"splitted",
"=",
"tsFile",
".",
"split",
"(",
"'/'",
")",
";",
"const",
"allPath",
"=",
"Array",
"(",
"splitted",
".",
"length",
"-",
"1",
")",
".",
"fill",
"(",
"0",
")",
".",
"map",
"(",
"(",
"_",
",",
"index",
")",
"=>",
"index",
"+",
"1",
")",
".",
"map",
"(",
"(",
"index",
")",
"=>",
"{",
"const",
"a",
"=",
"splitted",
".",
"slice",
"(",
"0",
",",
"index",
")",
".",
"join",
"(",
"'/'",
")",
";",
"return",
"a",
";",
"}",
")",
";",
"return",
"allPath",
";",
"}",
")",
".",
"reduce",
"(",
"(",
"aggregated",
",",
"libPath",
")",
"=>",
"{",
"return",
"aggregated",
".",
"concat",
"(",
"libPath",
")",
";",
"}",
",",
"[",
"]",
")",
";",
"const",
"dirSet",
"=",
"new",
"Set",
"(",
")",
";",
"dupLibDirs",
".",
"forEach",
"(",
"(",
"dir",
")",
"=>",
"dirSet",
".",
"add",
"(",
"dir",
")",
")",
";",
"tsFiles",
".",
"map",
"(",
"(",
"tsFile",
")",
"=>",
"path",
".",
"dirname",
"(",
"tsFile",
")",
")",
".",
"forEach",
"(",
"(",
"dir",
")",
"=>",
"dirSet",
".",
"add",
"(",
"dir",
")",
")",
";",
"const",
"tsDirs",
"=",
"Array",
".",
"from",
"(",
"dirSet",
")",
";",
"if",
"(",
"option",
".",
"includeCWD",
"&&",
"tsDirs",
".",
"findIndex",
"(",
"(",
"dir",
")",
"=>",
"path",
".",
"resolve",
"(",
"dir",
")",
"===",
"path",
".",
"resolve",
"(",
"'.'",
")",
")",
"<",
"0",
")",
"{",
"tsDirs",
".",
"push",
"(",
"'.'",
")",
";",
"}",
"tsDirs",
".",
"sort",
"(",
"(",
"left",
",",
"right",
")",
"=>",
"{",
"const",
"llen",
"=",
"left",
".",
"split",
"(",
"'/'",
")",
".",
"length",
";",
"const",
"rlen",
"=",
"right",
".",
"split",
"(",
"'/'",
")",
".",
"length",
";",
"if",
"(",
"llen",
">",
"rlen",
")",
"{",
"return",
"-",
"1",
";",
"}",
"if",
"(",
"llen",
"<",
"rlen",
")",
"{",
"return",
"1",
";",
"}",
"return",
"0",
";",
"}",
")",
";",
"log",
"(",
"'tsDirs:: '",
",",
"tsDirs",
")",
";",
"yield",
"Promise",
".",
"all",
"(",
"tsDirs",
".",
"map",
"(",
"(",
"tsDir",
")",
"=>",
"this",
".",
"write",
"(",
"{",
"option",
",",
"logger",
",",
"directory",
":",
"tsDir",
",",
"directories",
":",
"tsDirs",
"}",
")",
")",
")",
";",
"logger",
".",
"flog",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"`create succeeded: ${",
"option",
".",
"globOptions",
".",
"cwd",
"}`",
")",
")",
";",
"}",
"catch",
"(",
"err",
")",
"{",
"log",
"(",
"err",
".",
"message",
")",
";",
"log",
"(",
"err",
".",
"stack",
")",
";",
"logger",
".",
"ferror",
"(",
"chalk_1",
".",
"default",
".",
"red",
"(",
"err",
".",
"message",
")",
")",
";",
"}",
"}",
")",
";",
"}",
"write",
"(",
"{",
"directory",
",",
"option",
",",
"logger",
",",
"}",
")",
"{",
"return",
"tslib_1",
".",
"__awaiter",
"(",
"this",
",",
"void",
"0",
",",
"void",
"0",
",",
"function",
"*",
"(",
")",
"{",
"try",
"{",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"yellowBright",
"(",
"'Current working directory: '",
",",
"directory",
")",
")",
";",
"const",
"resolvePath",
"=",
"path",
".",
"resolve",
"(",
"option",
".",
"globOptions",
".",
"cwd",
"||",
"__dirname",
")",
";",
"const",
"elements",
"=",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"readDir",
"(",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
")",
")",
";",
"const",
"stats",
"=",
"yield",
"Promise",
".",
"all",
"(",
"elements",
".",
"map",
"(",
"(",
"target",
")",
"=>",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"stat",
"(",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
",",
"target",
")",
")",
")",
")",
";",
"const",
"statMap",
"=",
"elements",
".",
"reduce",
"(",
"(",
"map",
",",
"element",
",",
"index",
")",
"=>",
"{",
"map",
"[",
"element",
"]",
"=",
"stats",
"[",
"index",
"]",
";",
"return",
"map",
";",
"}",
",",
"{",
"}",
")",
";",
"const",
"targets",
"=",
"elements",
".",
"filter",
"(",
"(",
"element",
")",
"=>",
"statMap",
"[",
"element",
"]",
".",
"isDirectory",
"(",
")",
"||",
"element",
"!==",
"'index.ts'",
")",
".",
"filter",
"(",
"(",
"element",
")",
"=>",
"statMap",
"[",
"element",
"]",
".",
"isDirectory",
"(",
")",
"||",
"element",
"!==",
"'entrypoint.ts'",
")",
".",
"filter",
"(",
"(",
"element",
")",
"=>",
"statMap",
"[",
"element",
"]",
".",
"isDirectory",
"(",
")",
"||",
"element",
"!==",
"option",
".",
"output",
")",
";",
"const",
"categorized",
"=",
"targets",
".",
"reduce",
"(",
"(",
"result",
",",
"target",
")",
"=>",
"{",
"if",
"(",
"statMap",
"[",
"target",
"]",
".",
"isDirectory",
"(",
")",
")",
"{",
"result",
".",
"dir",
".",
"push",
"(",
"target",
")",
";",
"}",
"else",
"{",
"result",
".",
"allFiles",
".",
"push",
"(",
"target",
")",
";",
"}",
"return",
"result",
";",
"}",
",",
"{",
"dir",
":",
"[",
"]",
",",
"allFiles",
":",
"[",
"]",
"}",
")",
";",
"const",
"excludePatternFilteredDirs",
"=",
"categorized",
".",
"dir",
".",
"filter",
"(",
"(",
"element",
")",
"=>",
"{",
"return",
"!",
"option",
".",
"excludes",
".",
"reduce",
"(",
"(",
"result",
",",
"excludePattern",
")",
"=>",
"{",
"return",
"result",
"||",
"element",
".",
"indexOf",
"(",
"excludePattern",
")",
">=",
"0",
";",
"}",
",",
"false",
")",
";",
"}",
")",
";",
"excludePatternFilteredDirs",
".",
"sort",
"(",
")",
";",
"categorized",
".",
"allFiles",
"=",
"CommandModule_1",
".",
"CommandModule",
".",
"targetFileFilter",
"(",
"{",
"logger",
",",
"option",
",",
"filenames",
":",
"categorized",
".",
"allFiles",
",",
"}",
")",
";",
"const",
"excludePatternFilteredFiles",
"=",
"[",
"...",
"categorized",
".",
"allFiles",
"]",
".",
"sort",
"(",
")",
";",
"const",
"sorted",
"=",
"(",
"(",
")",
"=>",
"{",
"if",
"(",
"option",
".",
"fileFirst",
")",
"{",
"return",
"categorized",
".",
"allFiles",
".",
"concat",
"(",
"excludePatternFilteredDirs",
")",
";",
"}",
"return",
"excludePatternFilteredDirs",
".",
"concat",
"(",
"excludePatternFilteredFiles",
")",
";",
"}",
")",
"(",
")",
";",
"const",
"getExport",
"=",
"exportStatement_1",
".",
"getExportStatementCreator",
"(",
"option",
",",
"logger",
")",
";",
"const",
"exportString",
"=",
"sorted",
".",
"map",
"(",
"(",
"target",
")",
"=>",
"getExport",
"(",
"target",
")",
")",
";",
"const",
"_buildComment",
"=",
"(",
")",
"=>",
"{",
"if",
"(",
"option",
".",
"withoutComment",
")",
"{",
"return",
"''",
";",
"}",
"if",
"(",
"option",
".",
"useTimestamp",
")",
"{",
"return",
"`// created from ${",
"option",
".",
"quote",
"}create-ts-index${",
"option",
".",
"quote",
"} ${",
"dayjs_1",
".",
"default",
"(",
")",
".",
"format",
"(",
"'YYYY-MM-DD HH:mm'",
")",
"}\\n\\n`",
";",
"}",
"return",
"`// created from ${",
"option",
".",
"quote",
"}create-ts-index${",
"option",
".",
"quote",
"}\\n\\n`",
";",
"}",
";",
"const",
"comment",
"=",
"_buildComment",
"(",
")",
";",
"const",
"fileContent",
"=",
"comment",
"+",
"CTIUtility_1",
".",
"addNewline",
"(",
"option",
",",
"exportString",
".",
"join",
"(",
"'\\n'",
")",
")",
";",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"'created: '",
")",
",",
"`${",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
",",
"option",
".",
"output",
")",
"}`",
")",
";",
"if",
"(",
"option",
".",
"withoutBackupFile",
")",
"{",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"writeFile",
"(",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
",",
"option",
".",
"output",
")",
",",
"fileContent",
",",
"'utf8'",
")",
";",
"return",
";",
"}",
"const",
"indexFile",
"=",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
",",
"option",
".",
"output",
")",
";",
"const",
"indexBackupFile",
"=",
"path",
".",
"join",
"(",
"resolvePath",
",",
"directory",
",",
"`${",
"option",
".",
"output",
"}.bak`",
")",
";",
"if",
"(",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"exists",
"(",
"indexFile",
")",
")",
"{",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"'created: '",
")",
",",
"`${",
"indexBackupFile",
"}`",
")",
";",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"writeFile",
"(",
"indexBackupFile",
",",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"readFile",
"(",
"indexFile",
")",
",",
"'utf8'",
")",
";",
"}",
"yield",
"CommandModule_1",
".",
"CommandModule",
".",
"promisify",
".",
"writeFile",
"(",
"indexFile",
",",
"fileContent",
",",
"'utf8'",
")",
";",
"}",
"catch",
"(",
"err",
")",
"{",
"log",
"(",
"err",
".",
"message",
")",
";",
"log",
"(",
"err",
".",
"stack",
")",
";",
"logger",
".",
"error",
"(",
"chalk_1",
".",
"default",
".",
"red",
"(",
"'indexWriter: '",
",",
"err",
".",
"message",
")",
")",
";",
"}",
"}",
")",
";",
"}",
"}",
"exports",
".",
"CreateCommandModule",
"=",
"CreateCommandModule",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
30,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662001 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"InitCommandModule",
"=",
"void",
"0",
";",
"const",
"tslib_1",
"=",
"require",
"(",
"\"tslib\"",
")",
";",
"const",
"chalk_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"chalk\"",
")",
")",
";",
"const",
"dayjs_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"dayjs\"",
")",
")",
";",
"const",
"debug_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"debug\"",
")",
")",
";",
"const",
"fs",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"fs\"",
")",
")",
";",
"const",
"json5_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"json5\"",
")",
")",
";",
"const",
"my_easy_fp_1",
"=",
"require",
"(",
"\"my-easy-fp\"",
")",
";",
"const",
"path",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"path\"",
")",
")",
";",
"const",
"configure_1",
"=",
"require",
"(",
"\"../options/configure\"",
")",
";",
"const",
"CTILogger_1",
"=",
"require",
"(",
"\"../tools/CTILogger\"",
")",
";",
"const",
"CTIUtility_1",
"=",
"require",
"(",
"\"../tools/CTIUtility\"",
")",
";",
"const",
"log",
"=",
"debug_1",
".",
"default",
"(",
"'cti:InitCommandModule'",
")",
";",
"class",
"InitCommandModule",
"{",
"do",
"(",
"executePath",
",",
"passed",
")",
"{",
"return",
"tslib_1",
".",
"__awaiter",
"(",
"this",
",",
"void",
"0",
",",
"void",
"0",
",",
"function",
"*",
"(",
")",
"{",
"const",
"workDir",
"=",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"passed",
".",
"globOptions",
")",
"&&",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"passed",
".",
"globOptions",
".",
"cwd",
")",
"?",
"passed",
".",
"globOptions",
".",
"cwd",
":",
"process",
".",
"cwd",
"(",
")",
";",
"const",
"configFromExecutePath",
"=",
"yield",
"configure_1",
".",
"readConfigRC",
"(",
"configure_1",
".",
"getRCFilename",
"(",
"executePath",
")",
")",
";",
"const",
"configFromWorkDir",
"=",
"yield",
"configure_1",
".",
"readConfigRC",
"(",
"configure_1",
".",
"getRCFilename",
"(",
"workDir",
")",
")",
";",
"const",
"option",
"=",
"configure_1",
".",
"concreteConfig",
"(",
"configure_1",
".",
"merging",
"(",
"configure_1",
".",
"merging",
"(",
"my_easy_fp_1",
".",
"isPass",
"(",
"configFromExecutePath",
")",
"?",
"configFromExecutePath",
".",
"pass",
":",
"configure_1",
".",
"getDeafultOptions",
"(",
")",
",",
"my_easy_fp_1",
".",
"isPass",
"(",
"configFromWorkDir",
")",
"?",
"configFromWorkDir",
".",
"pass",
":",
"configure_1",
".",
"getDeafultOptions",
"(",
")",
")",
",",
"passed",
")",
")",
";",
"log",
"(",
"'readed option: '",
",",
"option",
")",
";",
"const",
"logger",
"=",
"new",
"CTILogger_1",
".",
"CTILogger",
"(",
"option",
".",
"verbose",
")",
";",
"try",
"{",
"const",
"defaultOption",
"=",
"configure_1",
".",
"getDeafultOptions",
"(",
")",
";",
"const",
"stringified",
"=",
"json5_1",
".",
"default",
".",
"stringify",
"(",
"defaultOption",
",",
"null",
",",
"2",
")",
";",
"const",
"headContent",
"=",
"(",
"(",
")",
"=>",
"{",
"if",
"(",
"option",
".",
"useTimestamp",
")",
"{",
"return",
"`// created from ${",
"option",
".",
"quote",
"}create-ts-index${",
"option",
".",
"quote",
"} ${",
"dayjs_1",
".",
"default",
"(",
")",
".",
"format",
"(",
"'YYYY-MM-DD HH:mm'",
")",
"}`",
";",
"}",
"return",
"`// created from ${",
"option",
".",
"quote",
"}create-ts-index${",
"option",
".",
"quote",
"}`",
";",
"}",
")",
"(",
")",
";",
"const",
"addNewline",
"=",
"(",
"(",
")",
"=>",
"{",
"if",
"(",
"option",
".",
"addNewline",
")",
"{",
"return",
"'\\n'",
";",
"}",
"return",
"''",
";",
"}",
")",
"(",
")",
";",
"yield",
"new",
"Promise",
"(",
"(",
"resolve",
",",
"reject",
")",
"=>",
"{",
"fs",
".",
"writeFile",
"(",
"path",
".",
"join",
"(",
"workDir",
",",
"'.ctirc'",
")",
",",
"`${",
"headContent",
"}\\n\\n${",
"stringified",
"}${",
"addNewline",
"}`",
",",
"(",
"err",
")",
"=>",
"{",
"if",
"(",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"err",
")",
")",
"{",
"return",
"reject",
"(",
"err",
")",
";",
"}",
"logger",
".",
"flog",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"`.ctirc create succeeded: ${",
"option",
".",
"globOptions",
".",
"cwd",
"}`",
")",
")",
";",
"return",
"resolve",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
"catch",
"(",
"err",
")",
"{",
"logger",
".",
"error",
"(",
"chalk_1",
".",
"default",
".",
"red",
"(",
"'indexWriter: '",
",",
"err",
".",
"message",
")",
")",
";",
"logger",
".",
"error",
"(",
"chalk_1",
".",
"default",
".",
"red",
"(",
"'indexWriter: '",
",",
"err",
".",
"stack",
")",
")",
";",
"}",
"}",
")",
";",
"}",
"write",
"(",
"_args",
")",
"{",
"return",
"tslib_1",
".",
"__awaiter",
"(",
"this",
",",
"void",
"0",
",",
"void",
"0",
",",
"function",
"*",
"(",
")",
"{",
"throw",
"new",
"Error",
"(",
"'Not implements'",
")",
";",
"}",
")",
";",
"}",
"}",
"exports",
".",
"InitCommandModule",
"=",
"InitCommandModule",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662002 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"concreteConfig",
"=",
"exports",
".",
"readConfigRC",
"=",
"exports",
".",
"cleansing",
"=",
"exports",
".",
"cleanGlobOptions",
"=",
"exports",
".",
"mergingGlobOptions",
"=",
"exports",
".",
"merging",
"=",
"exports",
".",
"createFromCli",
"=",
"exports",
".",
"getDeafultOptions",
"=",
"exports",
".",
"getRCFilename",
"=",
"exports",
".",
"CTIRC_FILENAME",
"=",
"void",
"0",
";",
"const",
"tslib_1",
"=",
"require",
"(",
"\"tslib\"",
")",
";",
"const",
"debug_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"debug\"",
")",
")",
";",
"const",
"deepmerge_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"deepmerge\"",
")",
")",
";",
"const",
"fs",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"fs\"",
")",
")",
";",
"const",
"json5_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"json5\"",
")",
")",
";",
"const",
"my_easy_fp_1",
"=",
"require",
"(",
"\"my-easy-fp\"",
")",
";",
"const",
"path",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"path\"",
")",
")",
";",
"const",
"util",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"util\"",
")",
")",
";",
"const",
"readFile",
"=",
"util",
".",
"promisify",
"(",
"fs",
".",
"readFile",
")",
";",
"const",
"exists",
"=",
"util",
".",
"promisify",
"(",
"fs",
".",
"exists",
")",
";",
"const",
"log",
"=",
"debug_1",
".",
"default",
"(",
"'cti:create-test'",
")",
";",
"exports",
".",
"CTIRC_FILENAME",
"=",
"'.ctirc'",
";",
"const",
"defaultOptions",
"=",
"{",
"addNewline",
":",
"true",
",",
"excludes",
":",
"[",
"'@types'",
",",
"'typings'",
",",
"'__test__'",
",",
"'__tests__'",
",",
"'node_modules'",
"]",
",",
"fileExcludePatterns",
":",
"[",
"]",
",",
"fileFirst",
":",
"false",
",",
"globOptions",
":",
"{",
"cwd",
":",
"process",
".",
"cwd",
"(",
")",
",",
"dot",
":",
"true",
",",
"ignore",
":",
"[",
"'@types/**'",
",",
"'typings/**'",
",",
"'__test__/**'",
",",
"'__tests__/**'",
",",
"'node_modules/**'",
"]",
",",
"nonull",
":",
"true",
",",
"}",
",",
"includeCWD",
":",
"true",
",",
"output",
":",
"'index.ts'",
",",
"quote",
":",
"\"'\"",
",",
"targetExts",
":",
"[",
"'ts'",
",",
"'tsx'",
"]",
",",
"useSemicolon",
":",
"true",
",",
"useTimestamp",
":",
"false",
",",
"verbose",
":",
"false",
",",
"withoutBackupFile",
":",
"false",
",",
"withoutComment",
":",
"false",
",",
"}",
";",
"function",
"getRCFilename",
"(",
"configPath",
")",
"{",
"log",
"(",
"'Test Path: '",
",",
"path",
".",
"join",
"(",
"path",
".",
"resolve",
"(",
"configPath",
")",
",",
"exports",
".",
"CTIRC_FILENAME",
")",
")",
";",
"return",
"path",
".",
"join",
"(",
"path",
".",
"resolve",
"(",
"configPath",
")",
",",
"exports",
".",
"CTIRC_FILENAME",
")",
";",
"}",
"exports",
".",
"getRCFilename",
"=",
"getRCFilename",
";",
"function",
"getDeafultOptions",
"(",
")",
"{",
"return",
"Object",
".",
"assign",
"(",
"Object",
".",
"assign",
"(",
"{",
"}",
",",
"defaultOptions",
")",
",",
"{",
"globOptions",
":",
"Object",
".",
"assign",
"(",
"{",
"}",
",",
"defaultOptions",
".",
"globOptions",
")",
"}",
")",
";",
"}",
"exports",
".",
"getDeafultOptions",
"=",
"getDeafultOptions",
";",
"function",
"createFromCli",
"(",
"args",
",",
"cwd",
",",
"output",
")",
"{",
"var",
"_a",
",",
"_b",
",",
"_c",
",",
"_d",
",",
"_e",
",",
"_f",
",",
"_g",
",",
"_h",
",",
"_j",
",",
"_k",
",",
"_l",
",",
"_m",
",",
"_o",
",",
"_p",
";",
"return",
"{",
"addNewline",
":",
"(",
"_a",
"=",
"args",
".",
"addnewline",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"undefined",
",",
"excludes",
":",
"(",
"_b",
"=",
"args",
".",
"excludes",
")",
"!==",
"null",
"&&",
"_b",
"!==",
"void",
"0",
"?",
"_b",
":",
"undefined",
",",
"fileExcludePatterns",
":",
"(",
"_c",
"=",
"args",
".",
"fileexcludes",
")",
"!==",
"null",
"&&",
"_c",
"!==",
"void",
"0",
"?",
"_c",
":",
"undefined",
",",
"fileFirst",
":",
"(",
"_d",
"=",
"args",
".",
"filefirst",
")",
"!==",
"null",
"&&",
"_d",
"!==",
"void",
"0",
"?",
"_d",
":",
"undefined",
",",
"globOptions",
":",
"{",
"cwd",
",",
"}",
",",
"includeCWD",
":",
"(",
"_e",
"=",
"args",
".",
"includecwd",
")",
"!==",
"null",
"&&",
"_e",
"!==",
"void",
"0",
"?",
"_e",
":",
"undefined",
",",
"output",
":",
"(",
"_g",
"=",
"(",
"_f",
"=",
"args",
".",
"output",
")",
"!==",
"null",
"&&",
"_f",
"!==",
"void",
"0",
"?",
"_f",
":",
"output",
")",
"!==",
"null",
"&&",
"_g",
"!==",
"void",
"0",
"?",
"_g",
":",
"undefined",
",",
"quote",
":",
"(",
"_h",
"=",
"args",
".",
"quote",
")",
"!==",
"null",
"&&",
"_h",
"!==",
"void",
"0",
"?",
"_h",
":",
"undefined",
",",
"targetExts",
":",
"(",
"_j",
"=",
"args",
".",
"targetexts",
")",
"!==",
"null",
"&&",
"_j",
"!==",
"void",
"0",
"?",
"_j",
":",
"undefined",
",",
"useSemicolon",
":",
"(",
"_k",
"=",
"args",
".",
"usesemicolon",
")",
"!==",
"null",
"&&",
"_k",
"!==",
"void",
"0",
"?",
"_k",
":",
"undefined",
",",
"useTimestamp",
":",
"(",
"_l",
"=",
"args",
".",
"usetimestamp",
")",
"!==",
"null",
"&&",
"_l",
"!==",
"void",
"0",
"?",
"_l",
":",
"undefined",
",",
"verbose",
":",
"(",
"_m",
"=",
"args",
".",
"verbose",
")",
"!==",
"null",
"&&",
"_m",
"!==",
"void",
"0",
"?",
"_m",
":",
"undefined",
",",
"withoutBackupFile",
":",
"(",
"_o",
"=",
"args",
".",
"withoutbackup",
")",
"!==",
"null",
"&&",
"_o",
"!==",
"void",
"0",
"?",
"_o",
":",
"undefined",
",",
"withoutComment",
":",
"(",
"_p",
"=",
"args",
".",
"withoutcomment",
")",
"!==",
"null",
"&&",
"_p",
"!==",
"void",
"0",
"?",
"_p",
":",
"undefined",
",",
"}",
";",
"}",
"exports",
".",
"createFromCli",
"=",
"createFromCli",
";",
"function",
"merging",
"(",
"src",
",",
"dst",
")",
"{",
"var",
"_a",
",",
"_b",
",",
"_c",
",",
"_d",
",",
"_e",
",",
"_f",
",",
"_g",
",",
"_h",
",",
"_j",
",",
"_k",
",",
"_l",
",",
"_m",
",",
"_o",
",",
"_p",
",",
"_q",
",",
"_r",
",",
"_s",
",",
"_t",
",",
"_u",
",",
"_v",
",",
"_w",
",",
"_x",
",",
"_y",
",",
"_z",
",",
"_0",
",",
"_1",
",",
"_2",
",",
"_3",
";",
"const",
"srcGlobOptions",
"=",
"(",
"_a",
"=",
"cleanGlobOptions",
"(",
"src",
".",
"globOptions",
")",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"{",
"}",
";",
"const",
"dstGlobOptions",
"=",
"(",
"_b",
"=",
"cleanGlobOptions",
"(",
"dst",
".",
"globOptions",
")",
")",
"!==",
"null",
"&&",
"_b",
"!==",
"void",
"0",
"?",
"_b",
":",
"{",
"}",
";",
"const",
"full",
"=",
"{",
"addNewline",
":",
"(",
"_d",
"=",
"(",
"_c",
"=",
"dst",
".",
"addNewline",
")",
"!==",
"null",
"&&",
"_c",
"!==",
"void",
"0",
"?",
"_c",
":",
"src",
".",
"addNewline",
")",
"!==",
"null",
"&&",
"_d",
"!==",
"void",
"0",
"?",
"_d",
":",
"undefined",
",",
"excludes",
":",
"(",
"_f",
"=",
"(",
"_e",
"=",
"dst",
".",
"excludes",
")",
"!==",
"null",
"&&",
"_e",
"!==",
"void",
"0",
"?",
"_e",
":",
"src",
".",
"excludes",
")",
"!==",
"null",
"&&",
"_f",
"!==",
"void",
"0",
"?",
"_f",
":",
"undefined",
",",
"fileExcludePatterns",
":",
"(",
"_h",
"=",
"(",
"_g",
"=",
"dst",
".",
"fileExcludePatterns",
")",
"!==",
"null",
"&&",
"_g",
"!==",
"void",
"0",
"?",
"_g",
":",
"src",
".",
"fileExcludePatterns",
")",
"!==",
"null",
"&&",
"_h",
"!==",
"void",
"0",
"?",
"_h",
":",
"undefined",
",",
"fileFirst",
":",
"(",
"_k",
"=",
"(",
"_j",
"=",
"dst",
".",
"fileFirst",
")",
"!==",
"null",
"&&",
"_j",
"!==",
"void",
"0",
"?",
"_j",
":",
"src",
".",
"fileFirst",
")",
"!==",
"null",
"&&",
"_k",
"!==",
"void",
"0",
"?",
"_k",
":",
"undefined",
",",
"globOptions",
":",
"mergingGlobOptions",
"(",
"srcGlobOptions",
",",
"dstGlobOptions",
")",
",",
"includeCWD",
":",
"(",
"_m",
"=",
"(",
"_l",
"=",
"dst",
".",
"includeCWD",
")",
"!==",
"null",
"&&",
"_l",
"!==",
"void",
"0",
"?",
"_l",
":",
"src",
".",
"includeCWD",
")",
"!==",
"null",
"&&",
"_m",
"!==",
"void",
"0",
"?",
"_m",
":",
"undefined",
",",
"output",
":",
"(",
"_p",
"=",
"(",
"_o",
"=",
"dst",
".",
"output",
")",
"!==",
"null",
"&&",
"_o",
"!==",
"void",
"0",
"?",
"_o",
":",
"src",
".",
"output",
")",
"!==",
"null",
"&&",
"_p",
"!==",
"void",
"0",
"?",
"_p",
":",
"undefined",
",",
"quote",
":",
"(",
"_r",
"=",
"(",
"_q",
"=",
"dst",
".",
"quote",
")",
"!==",
"null",
"&&",
"_q",
"!==",
"void",
"0",
"?",
"_q",
":",
"src",
".",
"quote",
")",
"!==",
"null",
"&&",
"_r",
"!==",
"void",
"0",
"?",
"_r",
":",
"undefined",
",",
"targetExts",
":",
"(",
"_t",
"=",
"(",
"_s",
"=",
"dst",
".",
"targetExts",
")",
"!==",
"null",
"&&",
"_s",
"!==",
"void",
"0",
"?",
"_s",
":",
"src",
".",
"targetExts",
")",
"!==",
"null",
"&&",
"_t",
"!==",
"void",
"0",
"?",
"_t",
":",
"undefined",
",",
"useSemicolon",
":",
"(",
"_v",
"=",
"(",
"_u",
"=",
"dst",
".",
"useSemicolon",
")",
"!==",
"null",
"&&",
"_u",
"!==",
"void",
"0",
"?",
"_u",
":",
"src",
".",
"useSemicolon",
")",
"!==",
"null",
"&&",
"_v",
"!==",
"void",
"0",
"?",
"_v",
":",
"undefined",
",",
"useTimestamp",
":",
"(",
"_x",
"=",
"(",
"_w",
"=",
"dst",
".",
"useTimestamp",
")",
"!==",
"null",
"&&",
"_w",
"!==",
"void",
"0",
"?",
"_w",
":",
"src",
".",
"useTimestamp",
")",
"!==",
"null",
"&&",
"_x",
"!==",
"void",
"0",
"?",
"_x",
":",
"undefined",
",",
"verbose",
":",
"(",
"_z",
"=",
"(",
"_y",
"=",
"dst",
".",
"verbose",
")",
"!==",
"null",
"&&",
"_y",
"!==",
"void",
"0",
"?",
"_y",
":",
"src",
".",
"verbose",
")",
"!==",
"null",
"&&",
"_z",
"!==",
"void",
"0",
"?",
"_z",
":",
"undefined",
",",
"withoutBackupFile",
":",
"(",
"_1",
"=",
"(",
"_0",
"=",
"dst",
".",
"withoutBackupFile",
")",
"!==",
"null",
"&&",
"_0",
"!==",
"void",
"0",
"?",
"_0",
":",
"src",
".",
"withoutBackupFile",
")",
"!==",
"null",
"&&",
"_1",
"!==",
"void",
"0",
"?",
"_1",
":",
"undefined",
",",
"withoutComment",
":",
"(",
"_3",
"=",
"(",
"_2",
"=",
"dst",
".",
"withoutComment",
")",
"!==",
"null",
"&&",
"_2",
"!==",
"void",
"0",
"?",
"_2",
":",
"src",
".",
"withoutComment",
")",
"!==",
"null",
"&&",
"_3",
"!==",
"void",
"0",
"?",
"_3",
":",
"undefined",
",",
"}",
";",
"const",
"cleansed",
"=",
"cleansing",
"(",
"full",
")",
";",
"return",
"cleansed",
";",
"}",
"exports",
".",
"merging",
"=",
"merging",
";",
"function",
"mergingGlobOptions",
"(",
"prevSrc",
",",
"prevDst",
")",
"{",
"var",
"_a",
",",
"_b",
",",
"_c",
",",
"_d",
",",
"_e",
",",
"_f",
",",
"_g",
",",
"_h",
";",
"const",
"src",
"=",
"prevSrc",
"!==",
"null",
"&&",
"prevSrc",
"!==",
"void",
"0",
"?",
"prevSrc",
":",
"{",
"}",
";",
"const",
"dst",
"=",
"prevDst",
"!==",
"null",
"&&",
"prevDst",
"!==",
"void",
"0",
"?",
"prevDst",
":",
"{",
"}",
";",
"return",
"{",
"cwd",
":",
"(",
"_b",
"=",
"(",
"_a",
"=",
"dst",
".",
"cwd",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"src",
".",
"cwd",
")",
"!==",
"null",
"&&",
"_b",
"!==",
"void",
"0",
"?",
"_b",
":",
"defaultOptions",
".",
"globOptions",
".",
"cwd",
",",
"dot",
":",
"(",
"_d",
"=",
"(",
"_c",
"=",
"dst",
".",
"dot",
")",
"!==",
"null",
"&&",
"_c",
"!==",
"void",
"0",
"?",
"_c",
":",
"src",
".",
"dot",
")",
"!==",
"null",
"&&",
"_d",
"!==",
"void",
"0",
"?",
"_d",
":",
"defaultOptions",
".",
"globOptions",
".",
"dot",
",",
"ignore",
":",
"(",
"_f",
"=",
"(",
"_e",
"=",
"dst",
".",
"ignore",
")",
"!==",
"null",
"&&",
"_e",
"!==",
"void",
"0",
"?",
"_e",
":",
"src",
".",
"ignore",
")",
"!==",
"null",
"&&",
"_f",
"!==",
"void",
"0",
"?",
"_f",
":",
"defaultOptions",
".",
"globOptions",
".",
"ignore",
",",
"nonull",
":",
"(",
"_h",
"=",
"(",
"_g",
"=",
"dst",
".",
"nonull",
")",
"!==",
"null",
"&&",
"_g",
"!==",
"void",
"0",
"?",
"_g",
":",
"src",
".",
"nonull",
")",
"!==",
"null",
"&&",
"_h",
"!==",
"void",
"0",
"?",
"_h",
":",
"defaultOptions",
".",
"globOptions",
".",
"nonull",
",",
"}",
";",
"}",
"exports",
".",
"mergingGlobOptions",
"=",
"mergingGlobOptions",
";",
"function",
"cleanGlobOptions",
"(",
"src",
")",
"{",
"if",
"(",
"src",
"===",
"undefined",
"||",
"src",
"===",
"null",
")",
"{",
"return",
"undefined",
";",
"}",
"const",
"globOptions",
"=",
"Object",
".",
"keys",
"(",
"src",
")",
".",
"reduce",
"(",
"(",
"obj",
",",
"key",
")",
"=>",
"{",
"var",
"_a",
";",
"const",
"srcGlobOptions",
"=",
"src",
"!==",
"null",
"&&",
"src",
"!==",
"void",
"0",
"?",
"src",
":",
"{",
"}",
";",
"if",
"(",
"srcGlobOptions",
"[",
"key",
"]",
"!==",
"undefined",
"&&",
"srcGlobOptions",
"[",
"key",
"]",
"!==",
"null",
")",
"{",
"obj",
"[",
"key",
"]",
"=",
"key",
"===",
"'cwd'",
"?",
"path",
".",
"resolve",
"(",
"(",
"_a",
"=",
"srcGlobOptions",
"[",
"key",
"]",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"''",
")",
":",
"(",
"obj",
"[",
"key",
"]",
"=",
"srcGlobOptions",
"[",
"key",
"]",
")",
";",
"return",
"obj",
";",
"}",
"return",
"obj",
";",
"}",
",",
"{",
"}",
")",
";",
"if",
"(",
"Object",
".",
"keys",
"(",
"globOptions",
")",
".",
"length",
"<=",
"0",
")",
"{",
"return",
"undefined",
";",
"}",
"return",
"globOptions",
";",
"}",
"exports",
".",
"cleanGlobOptions",
"=",
"cleanGlobOptions",
";",
"function",
"cleansing",
"(",
"src",
")",
"{",
"var",
"_a",
";",
"const",
"full",
"=",
"{",
"addNewline",
":",
"src",
".",
"addNewline",
",",
"excludes",
":",
"src",
".",
"excludes",
",",
"fileExcludePatterns",
":",
"src",
".",
"fileExcludePatterns",
",",
"fileFirst",
":",
"src",
".",
"fileFirst",
",",
"globOptions",
":",
"cleanGlobOptions",
"(",
"(",
"_a",
"=",
"src",
".",
"globOptions",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"{",
"}",
")",
",",
"includeCWD",
":",
"src",
".",
"includeCWD",
",",
"output",
":",
"src",
".",
"output",
",",
"quote",
":",
"src",
".",
"quote",
",",
"targetExts",
":",
"src",
".",
"targetExts",
",",
"useSemicolon",
":",
"src",
".",
"useSemicolon",
",",
"useTimestamp",
":",
"src",
".",
"useTimestamp",
",",
"verbose",
":",
"src",
".",
"verbose",
",",
"withoutBackupFile",
":",
"src",
".",
"withoutBackupFile",
",",
"withoutComment",
":",
"src",
".",
"withoutComment",
",",
"}",
";",
"const",
"cleansed",
"=",
"Object",
".",
"keys",
"(",
"full",
")",
".",
"reduce",
"(",
"(",
"obj",
",",
"key",
")",
"=>",
"{",
"if",
"(",
"src",
"[",
"key",
"]",
"!==",
"undefined",
"&&",
"src",
"[",
"key",
"]",
"!==",
"null",
")",
"{",
"obj",
"[",
"key",
"]",
"=",
"src",
"[",
"key",
"]",
";",
"}",
"return",
"obj",
";",
"}",
",",
"{",
"}",
")",
";",
"return",
"cleansed",
";",
"}",
"exports",
".",
"cleansing",
"=",
"cleansing",
";",
"function",
"readConfigRC",
"(",
"configPath",
")",
"{",
"var",
"_a",
",",
"_b",
";",
"return",
"tslib_1",
".",
"__awaiter",
"(",
"this",
",",
"void",
"0",
",",
"void",
"0",
",",
"function",
"*",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"yield",
"exists",
"(",
"configPath",
")",
")",
"{",
"const",
"readed",
"=",
"yield",
"readFile",
"(",
"configPath",
")",
";",
"const",
"converted",
"=",
"readed",
".",
"toString",
"(",
")",
";",
"const",
"config",
"=",
"json5_1",
".",
"default",
".",
"parse",
"(",
"converted",
")",
";",
"const",
"cleansed",
"=",
"cleansing",
"(",
"config",
")",
";",
"if",
"(",
"(",
"(",
"_a",
"=",
"cleansed",
".",
"globOptions",
")",
"===",
"null",
"||",
"_a",
"===",
"void",
"0",
"?",
"void",
"0",
":",
"_a",
".",
"cwd",
")",
"!==",
"undefined",
"&&",
"(",
"(",
"_b",
"=",
"cleansed",
".",
"globOptions",
")",
"===",
"null",
"||",
"_b",
"===",
"void",
"0",
"?",
"void",
"0",
":",
"_b",
".",
"cwd",
")",
"!==",
"null",
")",
"{",
"cleansed",
".",
"globOptions",
".",
"cwd",
"=",
"path",
".",
"resolve",
"(",
"cleansed",
".",
"globOptions",
".",
"cwd",
")",
";",
"const",
"globOptions",
"=",
"deepmerge_1",
".",
"default",
"(",
"cleansed",
".",
"globOptions",
",",
"defaultOptions",
".",
"globOptions",
",",
"{",
"clone",
":",
"true",
",",
"}",
")",
";",
"cleansed",
".",
"globOptions",
"=",
"globOptions",
";",
"}",
"cleansed",
".",
"__for_debug_from",
"=",
"configPath",
";",
"return",
"my_easy_fp_1",
".",
"epass",
"(",
"cleansed",
")",
";",
"}",
"return",
"my_easy_fp_1",
".",
"epass",
"(",
"{",
"}",
")",
";",
"}",
"catch",
"(",
"err",
")",
"{",
"return",
"my_easy_fp_1",
".",
"efail",
"(",
"err",
")",
";",
"}",
"}",
")",
";",
"}",
"exports",
".",
"readConfigRC",
"=",
"readConfigRC",
";",
"function",
"concreteConfig",
"(",
"config",
")",
"{",
"var",
"_a",
",",
"_b",
",",
"_c",
",",
"_d",
",",
"_e",
",",
"_f",
",",
"_g",
",",
"_h",
",",
"_j",
",",
"_k",
",",
"_l",
",",
"_m",
",",
"_o",
",",
"_p",
";",
"return",
"{",
"addNewline",
":",
"(",
"_a",
"=",
"config",
".",
"addNewline",
")",
"!==",
"null",
"&&",
"_a",
"!==",
"void",
"0",
"?",
"_a",
":",
"defaultOptions",
".",
"addNewline",
",",
"excludes",
":",
"(",
"_b",
"=",
"config",
".",
"excludes",
")",
"!==",
"null",
"&&",
"_b",
"!==",
"void",
"0",
"?",
"_b",
":",
"defaultOptions",
".",
"excludes",
",",
"fileExcludePatterns",
":",
"(",
"_c",
"=",
"config",
".",
"fileExcludePatterns",
")",
"!==",
"null",
"&&",
"_c",
"!==",
"void",
"0",
"?",
"_c",
":",
"defaultOptions",
".",
"fileExcludePatterns",
",",
"fileFirst",
":",
"(",
"_d",
"=",
"config",
".",
"fileFirst",
")",
"!==",
"null",
"&&",
"_d",
"!==",
"void",
"0",
"?",
"_d",
":",
"defaultOptions",
".",
"fileFirst",
",",
"globOptions",
":",
"(",
"_e",
"=",
"cleanGlobOptions",
"(",
"config",
".",
"globOptions",
")",
")",
"!==",
"null",
"&&",
"_e",
"!==",
"void",
"0",
"?",
"_e",
":",
"defaultOptions",
".",
"globOptions",
",",
"includeCWD",
":",
"(",
"_f",
"=",
"config",
".",
"includeCWD",
")",
"!==",
"null",
"&&",
"_f",
"!==",
"void",
"0",
"?",
"_f",
":",
"defaultOptions",
".",
"includeCWD",
",",
"output",
":",
"(",
"_g",
"=",
"config",
".",
"output",
")",
"!==",
"null",
"&&",
"_g",
"!==",
"void",
"0",
"?",
"_g",
":",
"defaultOptions",
".",
"output",
",",
"quote",
":",
"(",
"_h",
"=",
"config",
".",
"quote",
")",
"!==",
"null",
"&&",
"_h",
"!==",
"void",
"0",
"?",
"_h",
":",
"defaultOptions",
".",
"quote",
",",
"targetExts",
":",
"(",
"_j",
"=",
"config",
".",
"targetExts",
")",
"!==",
"null",
"&&",
"_j",
"!==",
"void",
"0",
"?",
"_j",
":",
"defaultOptions",
".",
"targetExts",
",",
"useSemicolon",
":",
"(",
"_k",
"=",
"config",
".",
"useSemicolon",
")",
"!==",
"null",
"&&",
"_k",
"!==",
"void",
"0",
"?",
"_k",
":",
"defaultOptions",
".",
"useSemicolon",
",",
"useTimestamp",
":",
"(",
"_l",
"=",
"config",
".",
"useTimestamp",
")",
"!==",
"null",
"&&",
"_l",
"!==",
"void",
"0",
"?",
"_l",
":",
"defaultOptions",
".",
"useTimestamp",
",",
"verbose",
":",
"(",
"_m",
"=",
"config",
".",
"verbose",
")",
"!==",
"null",
"&&",
"_m",
"!==",
"void",
"0",
"?",
"_m",
":",
"defaultOptions",
".",
"verbose",
",",
"withoutBackupFile",
":",
"(",
"_o",
"=",
"config",
".",
"withoutBackupFile",
")",
"!==",
"null",
"&&",
"_o",
"!==",
"void",
"0",
"?",
"_o",
":",
"defaultOptions",
".",
"withoutBackupFile",
",",
"withoutComment",
":",
"(",
"_p",
"=",
"config",
".",
"withoutComment",
")",
"!==",
"null",
"&&",
"_p",
"!==",
"void",
"0",
"?",
"_p",
":",
"defaultOptions",
".",
"withoutComment",
",",
"}",
";",
"}",
"exports",
".",
"concreteConfig",
"=",
"concreteConfig",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662003 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"CTILogger",
"=",
"void",
"0",
";",
"class",
"CTILogger",
"{",
"constructor",
"(",
"verbose",
")",
"{",
"if",
"(",
"verbose",
")",
"{",
"this",
".",
"log",
"=",
"console",
".",
"log",
";",
"this",
".",
"error",
"=",
"console",
".",
"error",
";",
"}",
"else",
"{",
"this",
".",
"log",
"=",
"(",
")",
"=>",
"{",
"return",
";",
"}",
";",
"this",
".",
"error",
"=",
"console",
".",
"error",
";",
"}",
"this",
".",
"flog",
"=",
"console",
".",
"log",
";",
"this",
".",
"ferror",
"=",
"console",
".",
"error",
";",
"}",
"}",
"exports",
".",
"CTILogger",
"=",
"CTILogger",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662004 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"getQuote",
"=",
"exports",
".",
"parseBool",
"=",
"exports",
".",
"isEmpty",
"=",
"exports",
".",
"isNotEmpty",
"=",
"exports",
".",
"isFalsy",
"=",
"exports",
".",
"addNewline",
"=",
"exports",
".",
"addDot",
"=",
"void",
"0",
";",
"function",
"addDot",
"(",
"ext",
")",
"{",
"if",
"(",
"ext",
".",
"startsWith",
"(",
"'.'",
")",
")",
"return",
"ext",
";",
"return",
"`.${",
"ext",
"}`",
";",
"}",
"exports",
".",
"addDot",
"=",
"addDot",
";",
"function",
"addNewline",
"(",
"option",
",",
"data",
")",
"{",
"if",
"(",
"option",
".",
"addNewline",
")",
"return",
"`${",
"data",
"}\\n`",
";",
"return",
"data",
";",
"}",
"exports",
".",
"addNewline",
"=",
"addNewline",
";",
"function",
"isFalsy",
"(",
"value",
")",
"{",
"return",
"!",
"value",
";",
"}",
"exports",
".",
"isFalsy",
"=",
"isFalsy",
";",
"function",
"isNotEmpty",
"(",
"value",
")",
"{",
"return",
"value",
"!==",
"undefined",
"&&",
"value",
"!==",
"null",
";",
"}",
"exports",
".",
"isNotEmpty",
"=",
"isNotEmpty",
";",
"function",
"isEmpty",
"(",
"value",
")",
"{",
"return",
"!",
"isNotEmpty",
"(",
"value",
")",
";",
"}",
"exports",
".",
"isEmpty",
"=",
"isEmpty",
";",
"function",
"parseBool",
"(",
"value",
")",
"{",
"if",
"(",
"value",
"===",
"undefined",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"value",
"===",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"typeof",
"value",
"===",
"'number'",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"typeof",
"value",
"===",
"'string'",
"&&",
"value",
"===",
"'false'",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"typeof",
"value",
"===",
"'string'",
"&&",
"value",
"===",
"'true'",
")",
"{",
"return",
"true",
";",
"}",
"return",
"Boolean",
"(",
"value",
")",
";",
"}",
"exports",
".",
"parseBool",
"=",
"parseBool",
";",
"function",
"getQuote",
"(",
"value",
")",
"{",
"if",
"(",
"value",
"===",
"'d'",
"||",
"value",
"===",
"'\"'",
")",
"{",
"return",
"'\"'",
";",
"}",
"return",
"\"'\"",
";",
"}",
"exports",
".",
"getQuote",
"=",
"getQuote",
";",
"exports",
".",
"default",
"=",
"{",
"addDot",
",",
"addNewline",
",",
"getQuote",
",",
"isEmpty",
",",
"isNotEmpty",
",",
"parseBool",
",",
"}",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662005 | [
"\"use strict\"",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"exports",
".",
"getExportStatementCreator",
"=",
"void",
"0",
";",
"const",
"tslib_1",
"=",
"require",
"(",
"\"tslib\"",
")",
";",
"const",
"chalk_1",
"=",
"tslib_1",
".",
"__importDefault",
"(",
"require",
"(",
"\"chalk\"",
")",
")",
";",
"const",
"path",
"=",
"tslib_1",
".",
"__importStar",
"(",
"require",
"(",
"\"path\"",
")",
")",
";",
"const",
"CTIUtility_1",
"=",
"require",
"(",
"\"./CTIUtility\"",
")",
";",
"function",
"getExportStatementCreator",
"(",
"option",
",",
"logger",
")",
"{",
"const",
"targetExtWithDot",
"=",
"option",
".",
"targetExts",
".",
"map",
"(",
"(",
"ext",
")",
"=>",
"CTIUtility_1",
".",
"addDot",
"(",
"ext",
")",
")",
";",
"const",
"pathReplacer",
"=",
"path",
".",
"sep",
"!==",
"'/'",
"?",
"(",
"exportPath",
")",
"=>",
"exportPath",
".",
"replace",
"(",
"new",
"RegExp",
"(",
"path",
".",
"sep",
".",
"replace",
"(",
"'\\\\'",
",",
"'\\\\\\\\'",
")",
",",
"'g'",
")",
",",
"'/'",
")",
":",
"(",
"exportPath",
")",
"=>",
"exportPath",
";",
"if",
"(",
"option",
".",
"useSemicolon",
")",
"{",
"const",
"getExportWithSemicolon",
"=",
"(",
"target",
")",
"=>",
"{",
"const",
"matchedExt",
"=",
"targetExtWithDot",
".",
"find",
"(",
"(",
"ext",
")",
"=>",
"path",
".",
"extname",
"(",
"target",
")",
"===",
"ext",
")",
";",
"const",
"targetWithoutExt",
"=",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"matchedExt",
")",
"?",
"target",
".",
"replace",
"(",
"matchedExt",
",",
"''",
")",
":",
"target",
";",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"'entrypoint added from:'",
")",
",",
"target",
")",
";",
"return",
"`export * from ${",
"option",
".",
"quote",
"}./${",
"pathReplacer",
"(",
"targetWithoutExt",
")",
"}${",
"option",
".",
"quote",
"};`",
";",
"}",
";",
"return",
"getExportWithSemicolon",
";",
"}",
"const",
"getExport",
"=",
"(",
"target",
")",
"=>",
"{",
"const",
"matchedExt",
"=",
"targetExtWithDot",
".",
"find",
"(",
"(",
"ext",
")",
"=>",
"path",
".",
"extname",
"(",
"target",
")",
"===",
"ext",
")",
";",
"const",
"targetWithoutExt",
"=",
"CTIUtility_1",
".",
"isNotEmpty",
"(",
"matchedExt",
")",
"?",
"target",
".",
"replace",
"(",
"matchedExt",
",",
"''",
")",
":",
"target",
";",
"logger",
".",
"log",
"(",
"chalk_1",
".",
"default",
".",
"green",
"(",
"'entrypoint added from:'",
")",
",",
"target",
")",
";",
"return",
"`export * from ${",
"option",
".",
"quote",
"}./${",
"pathReplacer",
"(",
"targetWithoutExt",
")",
"}${",
"option",
".",
"quote",
"}`",
";",
"}",
";",
"return",
"getExport",
";",
"}",
"exports",
".",
"getExportStatementCreator",
"=",
"getExportStatementCreator",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662006 | [
"(",
"function",
"(",
")",
"{",
"var",
"__defineProperty",
"=",
"Object",
".",
"defineProperty",
";",
"var",
"__commonJS",
"=",
"function",
"(",
"callback",
",",
"module",
")",
"{",
"return",
"function",
"(",
")",
"{",
"if",
"(",
"!",
"module",
")",
"{",
"module",
"=",
"{",
"exports",
":",
"{",
"}",
"}",
";",
"callback",
"(",
"module",
".",
"exports",
",",
"module",
")",
";",
"}",
"return",
"module",
".",
"exports",
";",
"}",
";",
"}",
";",
"var",
"__markAsModule",
"=",
"function",
"(",
"target",
")",
"{",
"return",
"__defineProperty",
"(",
"target",
",",
"\"__esModule\"",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"}",
";",
"var",
"__export",
"=",
"function",
"(",
"target",
",",
"all",
")",
"{",
"__markAsModule",
"(",
"target",
")",
";",
"for",
"(",
"var",
"name",
"in",
"all",
")",
"{",
"__defineProperty",
"(",
"target",
",",
"name",
",",
"{",
"get",
":",
"all",
"[",
"name",
"]",
",",
"enumerable",
":",
"true",
"}",
")",
";",
"}",
"}",
";",
"var",
"require_src",
"=",
"__commonJS",
"(",
"function",
"(",
"exports",
")",
"{",
"__export",
"(",
"exports",
",",
"{",
"classA",
":",
"function",
"(",
")",
"{",
"return",
"classA",
";",
"}",
",",
"classB",
":",
"function",
"(",
")",
"{",
"return",
"classB",
";",
"}",
",",
"classC",
":",
"function",
"(",
")",
"{",
"return",
"classC",
";",
"}",
"}",
")",
";",
"}",
")",
";",
"var",
"classA",
"=",
"function",
"classA",
"(",
")",
"{",
"}",
";",
"classA",
".",
"prototype",
".",
"sayA",
"=",
"function",
"sayA",
"(",
"a",
")",
"{",
"}",
";",
"var",
"classB",
"=",
"function",
"classB",
"(",
")",
"{",
"}",
";",
"classB",
".",
"prototype",
".",
"sayb",
"=",
"function",
"sayb",
"(",
")",
"{",
"console",
".",
"log",
"(",
"\"FDS\"",
")",
";",
"}",
";",
"var",
"classC",
"=",
"function",
"classC",
"(",
")",
"{",
"}",
";",
"classC",
".",
"prototype",
".",
"sayd",
"=",
"function",
"sayd",
"(",
"cc",
")",
"{",
"console",
".",
"log",
"(",
"cc",
")",
";",
"}",
";",
"require_src",
"(",
")",
";",
"}",
")",
"(",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
11,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662007 | [
"'use strict'",
";",
"Object",
".",
"defineProperty",
"(",
"exports",
",",
"'__esModule'",
",",
"{",
"value",
":",
"true",
"}",
")",
";",
"var",
"classA",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classA",
"(",
")",
"{",
"}",
"param",
"a",
"classA",
".",
"prototype",
".",
"sayA",
"=",
"function",
"(",
"a",
")",
"{",
"}",
";",
"return",
"classA",
";",
"}",
"(",
")",
")",
";",
"var",
"classB",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classB",
"(",
")",
"{",
"}",
"classB",
".",
"prototype",
".",
"sayb",
"=",
"function",
"(",
")",
"{",
"console",
".",
"log",
"(",
"\"FDS\"",
")",
";",
"}",
";",
"return",
"classB",
";",
"}",
"(",
")",
")",
";",
"var",
"classC",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classC",
"(",
")",
"{",
"}",
"classC",
".",
"prototype",
".",
"sayd",
"=",
"function",
"(",
"cc",
")",
"{",
"console",
".",
"log",
"(",
"cc",
")",
";",
"}",
";",
"return",
"classC",
";",
"}",
"(",
")",
")",
";",
"exports",
".",
"classA",
"=",
"classA",
";",
"exports",
".",
"classB",
"=",
"classB",
";",
"exports",
".",
"classC",
"=",
"classC",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662008 | [
"var",
"egf",
"=",
"(",
"function",
"(",
"exports",
")",
"{",
"'use strict'",
";",
"var",
"classA",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classA",
"(",
")",
"{",
"}",
"param",
"a",
"classA",
".",
"prototype",
".",
"sayA",
"=",
"function",
"(",
"a",
")",
"{",
"}",
";",
"return",
"classA",
";",
"}",
"(",
")",
")",
";",
"var",
"classB",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classB",
"(",
")",
"{",
"}",
"classB",
".",
"prototype",
".",
"sayb",
"=",
"function",
"(",
"b",
")",
"{",
"console",
".",
"log",
"(",
"\"FDS\"",
")",
";",
"}",
";",
"return",
"classB",
";",
"}",
"(",
")",
")",
";",
"var",
"classC",
"=",
"class",
"(",
"function",
"(",
")",
"{",
"function",
"classC",
"(",
")",
"{",
"}",
"classC",
".",
"prototype",
".",
"sayd",
"=",
"function",
"(",
"cc",
")",
"{",
"console",
".",
"log",
"(",
"cc",
")",
";",
"}",
";",
"return",
"classC",
";",
"}",
"(",
")",
")",
";",
"exports",
".",
"classA",
"=",
"classA",
";",
"exports",
".",
"classB",
"=",
"classB",
";",
"exports",
".",
"classC",
"=",
"classC",
";",
"return",
"exports",
";",
"}",
"(",
"{",
"}",
")",
")",
";",
"window",
".",
"egf",
"?",
"Object",
".",
"assign",
"(",
"{",
"}",
",",
"window",
".",
"egf",
")",
":",
"(",
"window",
".",
"egf",
"=",
"egf",
")",
";"
] | [
null,
6,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662009 | [
"export",
"class",
"classA",
"{",
"param",
"a",
"sayA",
"(",
"a",
")",
"{",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
4,
null,
3,
null,
null,
null,
null
] |
662010 | [
"export",
"class",
"classB",
"{",
"sayb",
"(",
"b",
")",
"{",
"console",
".",
"log",
"(",
"\"FDS\"",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662011 | [
"export",
"class",
"classC",
"{",
"sayd",
"(",
"cc",
")",
"{",
"console",
".",
"log",
"(",
"cc",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
4,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662012 | [
"const",
"components",
"=",
"[",
"'datepicker'",
",",
"'expansion-panel'",
",",
"'fab-menu'",
",",
"'popover'",
",",
"'select'",
"]",
";",
"const",
"angularPackages",
"=",
"[",
"'core'",
",",
"'forms'",
",",
"'common'",
",",
"'compiler'",
",",
"'platform-browser'",
",",
"'platform-browser-dynamic'",
",",
"'http'",
",",
"'router'",
",",
"'animations'",
"]",
";",
"const",
"vendorPackages",
"=",
"{",
"}",
";",
"angularPackages",
".",
"forEach",
"(",
"name",
"=>",
"{",
"vendorPackages",
"[",
"`@angular/${",
"name",
"}`",
"]",
"=",
"{",
"main",
":",
"`bundles/${",
"name",
"}.umd.js`",
"}",
";",
"vendorPackages",
"[",
"`@angular/${",
"name",
"}/testing`",
"]",
"=",
"{",
"main",
":",
"`../bundles/${",
"name",
"}-testing.umd.js`",
"}",
";",
"}",
")",
";",
"vendorPackages",
"[",
"`@angular/platform-browser/animations`",
"]",
"=",
"{",
"main",
":",
"`../bundles/platform-browser-animations.umd.js`",
"}",
";",
"vendorPackages",
"[",
"`@angular/animations/browser`",
"]",
"=",
"{",
"main",
":",
"`../bundles/animations-browser.umd.js`",
"}",
";",
"vendorPackages",
"[",
"`@angular-mdl/core`",
"]",
"=",
"{",
"main",
":",
"`bundle/core.js`",
"}",
";",
"vendorPackages",
"[",
"'rxjs'",
"]",
"=",
"{",
"main",
":",
"'index.js'",
"}",
";",
"vendorPackages",
"[",
"'rxjs/operators'",
"]",
"=",
"{",
"main",
":",
"'index.js'",
"}",
";",
"vendorPackages",
"[",
"'moment'",
"]",
"=",
"{",
"main",
":",
"'min/moment.min.js'",
"}",
";",
"/** Type declaration for ambient System. */",
"declare",
"var",
"System",
";",
"System",
".",
"config",
"(",
"{",
"map",
":",
"{",
"'@angular'",
":",
"'vendor/@angular'",
",",
"'@angular-mdl/core'",
":",
"'vendor/@angular-mdl/core'",
",",
"'rxjs'",
":",
"'vendor/rxjs'",
",",
"'moment'",
":",
"'vendor/moment'",
"}",
",",
"packages",
":",
"vendorPackages",
"}",
")",
";",
"/** Map relative paths to URLs. */",
"const",
"map",
"=",
"{",
"}",
";",
"/** User packages configuration. */",
"const",
"packages",
"=",
"{",
"}",
";",
"components",
".",
"forEach",
"(",
"name",
"=>",
"{",
"packages",
"[",
"`@angular-mdl/${",
"name",
"}`",
"]",
"=",
"{",
"format",
":",
"'cjs'",
",",
"defaultExtension",
":",
"'js'",
",",
"main",
":",
"'index'",
"}",
";",
"}",
")",
";",
"System",
".",
"config",
"(",
"{",
"map",
",",
"packages",
"}",
")",
";"
] | [
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662013 | [
"import",
"{",
"Injectable",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"Observable",
"}",
"from",
"'rxjs'",
";",
"import",
"{",
"Subject",
"}",
"from",
"'rxjs'",
";",
"import",
"{",
"MdlDialogOutletModule",
",",
"MdlDialogReference",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"CURRENT_DATE",
",",
"DATEPICKER_CONFIG",
",",
"DatePickerDialogComponent",
"}",
"from",
"'./datepicker.component'",
";",
"import",
"{",
"NgModule",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"MdlButtonModule",
",",
"MdlDialogModule",
",",
"MdlDialogService",
",",
"MdlIconModule",
",",
"MdlRippleModule",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"export",
"interface",
"DatePickerOptions",
"{",
"openFrom",
"?",
":",
"MouseEvent",
";",
"okLabel",
"?",
":",
"string",
";",
"cancelLabel",
"?",
":",
"string",
";",
"}",
"@",
"Injectable",
"(",
")",
"export",
"class",
"MdlDatePickerService",
"{",
"constructor",
"(",
"private",
"dialogService",
")",
"{",
"}",
"public",
"selectDate",
"(",
"currentDate",
"=",
"null",
",",
"options",
"=",
"{",
"}",
")",
"{",
"let",
"subject",
"=",
"new",
"Subject",
"<",
"Date",
">",
"(",
")",
";",
"let",
"pDialog",
"=",
"this",
".",
"dialogService",
".",
"showCustomDialog",
"(",
"{",
"classes",
":",
"'mdl-datepicker'",
",",
"component",
":",
"DatePickerDialogComponent",
",",
"providers",
":",
"[",
"{",
"provide",
":",
"CURRENT_DATE",
",",
"useValue",
":",
"currentDate",
"}",
",",
"{",
"provide",
":",
"DATEPICKER_CONFIG",
",",
"useValue",
":",
"options",
"}",
"]",
",",
"isModal",
":",
"true",
",",
"styles",
":",
"{",
"'width'",
":",
"'320px'",
"}",
",",
"openFrom",
":",
"options",
".",
"openFrom",
"}",
")",
";",
"pDialog",
".",
"subscribe",
"(",
"(",
"dialogReference",
")",
"=>",
"{",
"dialogReference",
".",
"onHide",
"(",
")",
".",
"subscribe",
"(",
"(",
"date",
")",
"=>",
"{",
"subject",
".",
"next",
"(",
"date",
")",
";",
"subject",
".",
"complete",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"return",
"subject",
".",
"asObservable",
"(",
")",
";",
"}",
"}",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
",",
"MdlButtonModule",
",",
"MdlIconModule",
",",
"MdlRippleModule",
",",
"MdlDialogModule",
",",
"MdlDialogOutletModule",
"]",
",",
"exports",
":",
"[",
"]",
",",
"declarations",
":",
"[",
"DatePickerDialogComponent",
"]",
",",
"entryComponents",
":",
"[",
"DatePickerDialogComponent",
"]",
",",
"providers",
":",
"[",
"MdlDatePickerService",
"]",
"}",
")",
"export",
"class",
"MdlDatePickerModule",
"{",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
18,
null,
26,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
314,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
26,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662014 | [
"import",
"{",
"Component",
",",
"HostListener",
",",
"Inject",
",",
"InjectionToken",
",",
"ViewChild",
",",
"ViewEncapsulation",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"MdlButtonComponent",
",",
"MdlDialogReference",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"*",
"as",
"moment",
"from",
"'moment'",
";",
"import",
"{",
"DatePickerOptions",
"}",
"from",
"'./datepicker.service'",
";",
"export",
"const",
"CURRENT_DATE",
"=",
"new",
"InjectionToken",
"<",
"Date",
">",
"(",
"'current-date'",
")",
";",
"export",
"const",
"DATEPICKER_CONFIG",
"=",
"new",
"InjectionToken",
"<",
"DatePickerOptions",
">",
"(",
"'datepicker-options'",
")",
";",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'datepicker'",
",",
"templateUrl",
":",
"'datepicker.component.html'",
",",
"encapsulation",
":",
"ViewEncapsulation",
".",
"None",
"}",
")",
"export",
"class",
"DatePickerDialogComponent",
"{",
"@",
"ViewChild",
"(",
"'okButton'",
")",
"public",
"okButton",
":",
"MdlButtonComponent",
";",
"public",
"okLabel",
":",
"string",
";",
"public",
"cancelLabel",
":",
"string",
";",
"public",
"mDate",
":",
"moment",
".",
"Moment",
";",
"private",
"_mCurrentMonth",
":",
"moment",
".",
"Moment",
";",
"get",
"mCurrentMonth",
"(",
")",
"{",
"return",
"this",
".",
"_mCurrentMonth",
";",
"}",
"set",
"mCurrentMonth",
"(",
"m",
")",
"{",
"this",
".",
"_mCurrentMonth",
"=",
"m",
";",
"this",
".",
"calculateMonthGrid",
"(",
")",
";",
"}",
"public",
"prevEnabled",
"=",
"true",
";",
"public",
"nextEnabled",
"=",
"true",
";",
"public",
"monthGridWeekDays",
":",
"string",
"[",
"]",
";",
"public",
"monthGridDays",
":",
"any",
"[",
"]",
";",
"constructor",
"(",
"private",
"dialog",
",",
"@",
"Inject",
"(",
"CURRENT_DATE",
")",
"private",
"initialDate",
",",
"@",
"Inject",
"(",
"DATEPICKER_CONFIG",
")",
"private",
"options",
")",
"{",
"this",
".",
"mDate",
"=",
"moment",
"(",
"initialDate",
"||",
"new",
"Date",
"(",
")",
")",
";",
"this",
".",
"mCurrentMonth",
"=",
"this",
".",
"mDate",
".",
"clone",
"(",
")",
";",
"const",
"startOfWeek",
"=",
"moment",
"(",
")",
".",
"startOf",
"(",
"'week'",
")",
";",
"const",
"endOfWeek",
"=",
"moment",
"(",
")",
".",
"endOf",
"(",
"'week'",
")",
";",
"this",
".",
"monthGridWeekDays",
"=",
"[",
"]",
";",
"let",
"day",
"=",
"startOfWeek",
";",
"while",
"(",
"day",
"<=",
"endOfWeek",
")",
"{",
"this",
".",
"monthGridWeekDays",
".",
"push",
"(",
"moment",
".",
"weekdaysMin",
"(",
"day",
".",
"day",
"(",
")",
")",
")",
";",
"day",
"=",
"day",
".",
"clone",
"(",
")",
".",
"add",
"(",
"1",
",",
"'d'",
")",
";",
"}",
"this",
".",
"okLabel",
"=",
"options",
".",
"okLabel",
"||",
"'Ok'",
";",
"this",
".",
"cancelLabel",
"=",
"options",
".",
"cancelLabel",
"||",
"'Cancel'",
";",
"dialog",
".",
"onVisible",
"(",
")",
".",
"subscribe",
"(",
"(",
")",
"=>",
"{",
"this",
".",
"okButton",
".",
"elementRef",
".",
"nativeElement",
".",
"focus",
"(",
")",
";",
"}",
")",
";",
"}",
"@",
"HostListener",
"(",
"'keydown.esc'",
")",
"public",
"onEsc",
"(",
")",
"{",
"this",
".",
"dialog",
".",
"hide",
"(",
"this",
".",
"initialDate",
")",
";",
"}",
"public",
"onOk",
"(",
")",
"{",
"this",
".",
"dialog",
".",
"hide",
"(",
"this",
".",
"mDate",
".",
"toDate",
"(",
")",
")",
";",
"}",
"public",
"onCancel",
"(",
")",
"{",
"this",
".",
"dialog",
".",
"hide",
"(",
"this",
".",
"initialDate",
")",
";",
"}",
"public",
"prevMonth",
"(",
")",
"{",
"this",
".",
"mCurrentMonth",
"=",
"this",
".",
"mCurrentMonth",
".",
"subtract",
"(",
"1",
",",
"'months'",
")",
";",
"}",
"public",
"nextMonth",
"(",
")",
"{",
"this",
".",
"mCurrentMonth",
"=",
"this",
".",
"mCurrentMonth",
".",
"add",
"(",
"1",
",",
"'months'",
")",
";",
"}",
"private",
"calculateMonthGrid",
"(",
")",
"{",
"let",
"startDateOfMonth",
"=",
"this",
".",
"mCurrentMonth",
".",
"clone",
"(",
")",
".",
"startOf",
"(",
"'month'",
")",
".",
"clone",
"(",
")",
";",
"const",
"startWeek",
"=",
"startDateOfMonth",
".",
"week",
"(",
")",
";",
"const",
"endWeek",
"=",
"this",
".",
"mCurrentMonth",
".",
"clone",
"(",
")",
".",
"endOf",
"(",
"'month'",
")",
".",
"week",
"(",
")",
";",
"this",
".",
"monthGridDays",
"=",
"[",
"]",
";",
"let",
"week",
"=",
"startWeek",
";",
"this",
".",
"monthGridDays",
".",
"push",
"(",
"this",
".",
"createMonthRow",
"(",
"startDateOfMonth",
",",
"week",
")",
")",
";",
"do",
"{",
"let",
"firstDayInWeek",
"=",
"startDateOfMonth",
".",
"add",
"(",
"1",
",",
"'week'",
")",
";",
"week",
"=",
"firstDayInWeek",
".",
"week",
"(",
")",
";",
"this",
".",
"monthGridDays",
".",
"push",
"(",
"this",
".",
"createMonthRow",
"(",
"firstDayInWeek",
".",
"clone",
"(",
")",
",",
"week",
")",
")",
";",
"}",
"while",
"(",
"week",
"!=",
"endWeek",
")",
";",
"}",
"private",
"createMonthRow",
"(",
"mDate",
",",
"week",
")",
"{",
"const",
"startWeek",
"=",
"mDate",
".",
"week",
"(",
"week",
")",
".",
"startOf",
"(",
"'week'",
")",
";",
"return",
"{",
"week",
":",
"week",
",",
"days",
":",
"Array",
"(",
"7",
")",
".",
"fill",
"(",
"0",
")",
".",
"map",
"(",
"(",
"n",
",",
"i",
")",
"=>",
"{",
"const",
"mDay",
"=",
"startWeek",
".",
"clone",
"(",
")",
".",
"add",
"(",
"i",
",",
"'day'",
")",
";",
"return",
"{",
"day",
":",
"mDay",
",",
"isCurrentMonth",
":",
"this",
".",
"isCurrentMonth",
"(",
"mDay",
")",
"}",
";",
"}",
")",
"}",
";",
"}",
"public",
"isActualDate",
"(",
"day",
")",
"{",
"return",
"this",
".",
"mDate",
".",
"isSame",
"(",
"day",
",",
"'day'",
")",
";",
"}",
"private",
"isCurrentMonth",
"(",
"day",
")",
"{",
"return",
"this",
".",
"mCurrentMonth",
".",
"isSame",
"(",
"day",
",",
"'month'",
")",
";",
"}",
"public",
"setCurrentDay",
"(",
"day",
")",
"{",
"this",
".",
"mDate",
"=",
"day",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
280,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
280,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
26,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
265,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
1374,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
1374,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
1374,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662015 | [
"import",
"{",
"CURRENT_DATE",
",",
"DATEPICKER_CONFIG",
",",
"DatePickerDialogComponent",
"}",
"from",
"'./datepicker.component'",
";",
"import",
"{",
"async",
",",
"ComponentFixture",
",",
"TestBed",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"import",
"{",
"MdlButtonModule",
",",
"MdlDialogModule",
",",
"MdlDialogReference",
",",
"MdlIconModule",
",",
"MdlRippleModule",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"Subject",
"}",
"from",
"'rxjs'",
";",
"import",
"*",
"as",
"moment",
"from",
"'moment'",
";",
"class",
"MdlDialogMockReference",
"{",
"onVisible",
"(",
")",
"{",
"return",
"new",
"Subject",
"<",
"any",
">",
"(",
")",
".",
"asObservable",
"(",
")",
";",
"}",
"hide",
"(",
"date",
")",
"{",
"}",
"}",
"describe",
"(",
"'DatePickerDialogComponent'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
",",
"MdlButtonModule",
",",
"MdlIconModule",
",",
"MdlRippleModule",
",",
"MdlDialogModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"DatePickerDialogComponent",
"]",
",",
"providers",
":",
"[",
"{",
"provide",
":",
"MdlDialogReference",
",",
"useClass",
":",
"MdlDialogMockReference",
"}",
",",
"{",
"provide",
":",
"CURRENT_DATE",
",",
"useValue",
":",
"null",
"}",
",",
"{",
"provide",
":",
"DATEPICKER_CONFIG",
",",
"useValue",
":",
"{",
"}",
"}",
"]",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"DatePickerDialogComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should instantiate the component'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
")",
".",
"toBeDefined",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should call hide with null on cancel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"dialogRef",
"=",
"TestBed",
".",
"get",
"(",
"MdlDialogReference",
")",
";",
"spyOn",
"(",
"dialogRef",
",",
"'hide'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"onCancel",
"(",
")",
";",
"expect",
"(",
"dialogRef",
".",
"hide",
")",
".",
"toHaveBeenCalledWith",
"(",
"null",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should call hide with null on esc'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"dialogRef",
"=",
"TestBed",
".",
"get",
"(",
"MdlDialogReference",
")",
";",
"spyOn",
"(",
"dialogRef",
",",
"'hide'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"onEsc",
"(",
")",
";",
"expect",
"(",
"dialogRef",
".",
"hide",
")",
".",
"toHaveBeenCalledWith",
"(",
"null",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should call hide with actual date on ok'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"dialogRef",
"=",
"TestBed",
".",
"get",
"(",
"MdlDialogReference",
")",
";",
"spyOn",
"(",
"dialogRef",
",",
"'hide'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"onOk",
"(",
")",
";",
"expect",
"(",
"dialogRef",
".",
"hide",
")",
".",
"toHaveBeenCalledWith",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
".",
"toDate",
"(",
")",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should show the current date - because we did not provide a date'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
".",
"isSame",
"(",
"moment",
"(",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
".",
"isSame",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should be possible to set a specific date'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"componentInstance",
".",
"setCurrentDay",
"(",
"moment",
"(",
"'2017-01-01'",
")",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
".",
"isSame",
"(",
"moment",
"(",
"'2017-01-01'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should be possible to go to the next month'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
"=",
"moment",
"(",
"'2017-01-01'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"nextMonth",
"(",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
".",
"isSame",
"(",
"moment",
"(",
"'2017-02-01'",
")",
",",
"'month'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
".",
"isSame",
"(",
"moment",
"(",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should be possible to go to the prev month'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
"=",
"moment",
"(",
"'2017-01-01'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"prevMonth",
"(",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
".",
"isSame",
"(",
"moment",
"(",
"'2016-12-01'",
")",
",",
"'month'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"mDate",
".",
"isSame",
"(",
"moment",
"(",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create an array with the week days for en locale'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
"=",
"moment",
"(",
"'2017-01-01'",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"monthGridWeekDays",
")",
".",
"toEqual",
"(",
"[",
"'Su'",
",",
"'Mo'",
",",
"'Tu'",
",",
"'We'",
",",
"'Th'",
",",
"'Fr'",
",",
"'Sa'",
"]",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create an array with all days for the current month'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"moment",
".",
"updateLocale",
"(",
"'en'",
",",
"{",
"week",
":",
"{",
"dow",
":",
"1",
",",
"doy",
":",
"4",
"}",
"}",
")",
";",
"fixture",
".",
"componentInstance",
".",
"mDate",
"=",
"moment",
"(",
"'2017-04-10'",
")",
";",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
"=",
"moment",
"(",
"'2017-04-01'",
")",
";",
"let",
"gridWithDays",
"=",
"fixture",
".",
"componentInstance",
".",
"monthGridDays",
";",
"let",
"day1",
"=",
"gridWithDays",
"[",
"0",
"]",
".",
"days",
"[",
"0",
"]",
";",
"expect",
"(",
"day1",
".",
"day",
".",
"isSame",
"(",
"moment",
"(",
"'2017-03-27'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
"'should be the 2017-03-27'",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"isActualDate",
"(",
"day1",
".",
"day",
")",
")",
".",
"toBeFalsy",
"(",
"'first day is not the actual'",
")",
";",
"expect",
"(",
"day1",
".",
"isCurrentMonth",
")",
".",
"toBeFalsy",
"(",
"'first day is not in the current month'",
")",
";",
"let",
"dayActual",
"=",
"gridWithDays",
"[",
"2",
"]",
".",
"days",
"[",
"0",
"]",
";",
"expect",
"(",
"dayActual",
".",
"day",
".",
"isSame",
"(",
"moment",
"(",
"'2017-04-10'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
"'should be 2017-04-10'",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"isActualDate",
"(",
"dayActual",
".",
"day",
")",
")",
".",
"toBeTruthy",
"(",
"'the 10. is the actual day'",
")",
";",
"expect",
"(",
"dayActual",
".",
"isCurrentMonth",
")",
".",
"toBeTruthy",
"(",
"'the 10 is in the current month'",
")",
";",
"let",
"lastDayOfTheMonth",
"=",
"gridWithDays",
"[",
"4",
"]",
".",
"days",
"[",
"6",
"]",
";",
"expect",
"(",
"lastDayOfTheMonth",
".",
"day",
".",
"isSame",
"(",
"moment",
"(",
"'2017-04-30'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
"'should be 2017-04-30'",
")",
";",
"expect",
"(",
"fixture",
".",
"componentInstance",
".",
"isActualDate",
"(",
"lastDayOfTheMonth",
".",
"day",
")",
")",
".",
"toBeFalsy",
"(",
"'30. is not the actual day'",
")",
";",
"expect",
"(",
"lastDayOfTheMonth",
".",
"isCurrentMonth",
")",
".",
"toBeTruthy",
"(",
"'the 30 is in the current month'",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create an array with all days for the december 2018'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"moment",
".",
"updateLocale",
"(",
"'en'",
",",
"{",
"week",
":",
"{",
"dow",
":",
"1",
",",
"doy",
":",
"4",
"}",
"}",
")",
";",
"fixture",
".",
"componentInstance",
".",
"mCurrentMonth",
"=",
"moment",
"(",
"'2018-12-01'",
")",
";",
"let",
"gridWithDays",
"=",
"fixture",
".",
"componentInstance",
".",
"monthGridDays",
";",
"let",
"day1",
"=",
"gridWithDays",
"[",
"0",
"]",
".",
"days",
"[",
"0",
"]",
";",
"expect",
"(",
"day1",
".",
"day",
".",
"isSame",
"(",
"moment",
"(",
"'2018-11-26'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
"'should be the 2018-11-26'",
")",
";",
"let",
"lastDayOfTheMonth",
"=",
"gridWithDays",
"[",
"5",
"]",
".",
"days",
"[",
"0",
"]",
";",
"expect",
"(",
"lastDayOfTheMonth",
".",
"day",
".",
"isSame",
"(",
"moment",
"(",
"'2018-12-31'",
")",
",",
"'day'",
")",
")",
".",
"toBeTruthy",
"(",
"'should be 2018-12-31'",
")",
";",
"}",
")",
")",
";",
"}",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
26,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662016 | [
"import",
"{",
"async",
",",
"TestBed",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"By",
"}",
"from",
"'@angular/platform-browser'",
";",
"import",
"{",
"MdlDatePickerModule",
"}",
"from",
"'./index'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"import",
"{",
"MdlButtonModule",
",",
"MdlDialogModule",
",",
"MdlDialogOutletModule",
",",
"MdlIconModule",
",",
"MdlRippleModule",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"MdlDatePickerService",
"}",
"from",
"'./datepicker.service'",
";",
"import",
"*",
"as",
"moment",
"from",
"'moment'",
";",
"describe",
"(",
"'DatePickerService'",
",",
"(",
")",
"=>",
"{",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
",",
"MdlButtonModule",
",",
"MdlIconModule",
",",
"MdlRippleModule",
",",
"MdlDatePickerModule",
",",
"MdlDialogModule",
".",
"forRoot",
"(",
")",
",",
"MdlDialogOutletModule",
"]",
",",
"declarations",
":",
"[",
"MdlTestComponent",
"]",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should instantiate the service'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"const",
"service",
"=",
"TestBed",
".",
"get",
"(",
"MdlDatePickerService",
")",
";",
"expect",
"(",
"service",
")",
".",
"toBeDefined",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should open the date picker dialog'",
",",
"(",
"done",
")",
"=>",
"{",
"let",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"MdlTestComponent",
")",
";",
"const",
"service",
"=",
"TestBed",
".",
"get",
"(",
"MdlDatePickerService",
")",
";",
"service",
".",
"selectDate",
"(",
")",
".",
"subscribe",
"(",
"(",
"date",
")",
"=>",
"{",
"expect",
"(",
"date",
")",
".",
"toBeDefined",
"(",
")",
";",
"done",
"(",
")",
";",
"}",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"setTimeout",
"(",
"(",
")",
"=>",
"{",
"let",
"cancelButton",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-cancel-button'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"cancelButton",
".",
"textContent",
")",
".",
"toBe",
"(",
"'Cancel'",
")",
";",
"let",
"okButton",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-ok-button'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"okButton",
".",
"textContent",
")",
".",
"toBe",
"(",
"'Ok'",
")",
";",
"okButton",
".",
"click",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"it",
"(",
"'should open the date picker dialog with a provided date'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"MdlTestComponent",
")",
";",
"const",
"service",
"=",
"TestBed",
".",
"get",
"(",
"MdlDatePickerService",
")",
";",
"service",
".",
"selectDate",
"(",
"moment",
"(",
"'2017-01-01'",
")",
".",
"toDate",
"(",
")",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"let",
"yearEl",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-header-year'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"yearEl",
".",
"textContent",
")",
".",
"toBe",
"(",
"'2017'",
")",
";",
"let",
"dayEl",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-header-day-month'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"dayEl",
".",
"textContent",
")",
".",
"toBe",
"(",
"'Sun, Jan 01'",
")",
";",
"}",
")",
";",
"it",
"(",
"'should open the date picker dialog with a ok and cancel label'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"MdlTestComponent",
")",
";",
"const",
"service",
"=",
"TestBed",
".",
"get",
"(",
"MdlDatePickerService",
")",
";",
"service",
".",
"selectDate",
"(",
"null",
",",
"{",
"okLabel",
":",
"'1'",
",",
"cancelLabel",
":",
"'2'",
"}",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"let",
"cancelButton",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-cancel-button'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"cancelButton",
".",
"textContent",
")",
".",
"toBe",
"(",
"'2'",
")",
";",
"let",
"okButton",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-datepicker-ok-button'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"okButton",
".",
"textContent",
")",
".",
"toBe",
"(",
"'1'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-component'",
",",
"template",
":",
"` \n <dialog-outlet></dialog-outlet>\n `",
"}",
")",
"class",
"MdlTestComponent",
"{",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
26,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662017 | [
"import",
"{",
"Component",
",",
"NgModule",
",",
"ModuleWithProviders",
",",
"AfterContentInit",
",",
"ContentChild",
",",
"ContentChildren",
",",
"EventEmitter",
",",
"Output",
",",
"Input",
",",
"QueryList",
",",
"HostListener",
",",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"import",
"{",
"trigger",
",",
"state",
",",
"style",
",",
"animate",
",",
"transition",
",",
"}",
"from",
"'@angular/animations'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-header'",
",",
"template",
":",
"`\n <ng-content></ng-content>\n <div class=\"mdl-expansion-panel__header--expand-icon\" (click)=\"onClick()\">\n <span *ngIf=\"!isExpanded\" class=\"material-icons\">expand_more</span>\n <span *ngIf=\"isExpanded\" class=\"material-icons\">expand_less</span>\n </div>\n `",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__header]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelHeaderComponent",
"{",
"isExpanded",
":",
"boolean",
"=",
"false",
";",
"onChange",
":",
"EventEmitter",
"<",
"null",
">",
"=",
"new",
"EventEmitter",
"<",
"null",
">",
"(",
")",
";",
"onClick",
"(",
")",
"{",
"this",
".",
"onChange",
".",
"emit",
"(",
")",
";",
"}",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-header-list-content'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__header--list-content]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelHeaderListContentComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-header-secondary-content'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__header--secondary-content]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelHeaderSecondaryContentComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-content'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__content]'",
":",
"'true'",
",",
"'[@isExpanded]'",
":",
"'isExpanded'",
"}",
",",
"animations",
":",
"[",
"trigger",
"(",
"'isExpanded'",
",",
"[",
"state",
"(",
"'true'",
",",
"style",
"(",
"{",
"height",
":",
"'*'",
"}",
")",
")",
",",
"state",
"(",
"'false'",
",",
"style",
"(",
"{",
"height",
":",
"'0px'",
"}",
")",
")",
",",
"transition",
"(",
"'* => *'",
",",
"animate",
"(",
"'250ms ease-in'",
")",
")",
"]",
")",
"]",
"}",
")",
"export",
"class",
"MdlExpansionPanelContentComponent",
"{",
"isExpanded",
":",
"string",
"=",
"'false'",
";",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-body'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__content--body]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelBodyComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-footer'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel__content--footer]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelFooterComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel]'",
":",
"'true'",
",",
"'[class.expanded]'",
":",
"'expanded'",
",",
"'[class.disabled]'",
":",
"'disabled'",
",",
"'[tabindex]'",
":",
"'0'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelComponent",
"implements",
"AfterContentInit",
"{",
"@",
"ContentChild",
"(",
"MdlExpansionPanelHeaderComponent",
")",
"header",
":",
"MdlExpansionPanelHeaderComponent",
";",
"@",
"ContentChild",
"(",
"MdlExpansionPanelContentComponent",
")",
"content",
":",
"MdlExpansionPanelContentComponent",
";",
"@",
"Output",
"(",
")",
"onChange",
":",
"EventEmitter",
"<",
"boolean",
">",
"=",
"new",
"EventEmitter",
"<",
"boolean",
">",
"(",
")",
";",
"@",
"Input",
"(",
")",
"disabled",
":",
"boolean",
"=",
"false",
";",
"@",
"Input",
"(",
")",
"public",
"set",
"expanded",
"(",
"bool",
")",
"{",
"this",
".",
"_toggle",
"(",
"bool",
")",
";",
"}",
";",
"private",
"isExpanded",
":",
"boolean",
"=",
"false",
";",
"public",
"get",
"expanded",
"(",
")",
"{",
"return",
"this",
".",
"isExpanded",
";",
"}",
"ngAfterContentInit",
"(",
")",
"{",
"this",
".",
"header",
".",
"onChange",
".",
"subscribe",
"(",
"(",
")",
"=>",
"{",
"if",
"(",
"!",
"this",
".",
"disabled",
")",
"this",
".",
"_toggle",
"(",
"!",
"this",
".",
"isExpanded",
")",
";",
"}",
")",
";",
"}",
"@",
"HostListener",
"(",
"'keyup'",
",",
"[",
"'$event'",
"]",
")",
"onKeyUp",
"(",
"$event",
")",
"{",
"if",
"(",
"$event",
".",
"key",
"===",
"'Enter'",
"&&",
"!",
"this",
".",
"disabled",
")",
"this",
".",
"toggle",
"(",
")",
";",
"}",
"toggle",
"(",
")",
"{",
"this",
".",
"_toggle",
"(",
"!",
"this",
".",
"isExpanded",
")",
";",
"}",
"expand",
"(",
")",
"{",
"this",
".",
"_toggle",
"(",
"true",
")",
";",
"}",
"collapse",
"(",
")",
"{",
"this",
".",
"_toggle",
"(",
"false",
")",
";",
"}",
"disableToggle",
"(",
")",
"{",
"this",
".",
"disabled",
"=",
"true",
";",
"}",
"enableToggle",
"(",
")",
"{",
"this",
".",
"disabled",
"=",
"false",
";",
"}",
"private",
"_toggle",
"(",
"isExpanded",
")",
"{",
"this",
".",
"isExpanded",
"=",
"isExpanded",
";",
"this",
".",
"content",
".",
"isExpanded",
"=",
"`${",
"isExpanded",
"}`",
";",
"this",
".",
"header",
".",
"isExpanded",
"=",
"isExpanded",
";",
"this",
".",
"onChange",
".",
"emit",
"(",
"isExpanded",
")",
";",
"}",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'mdl-expansion-panel-group'",
",",
"template",
":",
"'<ng-content></ng-content>'",
",",
"host",
":",
"{",
"'[class.mdl-expansion-panel-group]'",
":",
"'true'",
"}",
"}",
")",
"export",
"class",
"MdlExpansionPanelGroupComponent",
"implements",
"AfterContentInit",
"{",
"@",
"ContentChildren",
"(",
"MdlExpansionPanelComponent",
")",
"panels",
":",
"QueryList",
"<",
"MdlExpansionPanelComponent",
">",
";",
"expandedIndex",
":",
"number",
"=",
"-",
"1",
";",
"ngAfterContentInit",
"(",
")",
"{",
"this",
".",
"panels",
".",
"forEach",
"(",
"(",
"panel",
",",
"i",
")",
"=>",
"{",
"/**\n * Set the expanded index to the panel index which is initialized in expanded state\n *\n * Having more than one of the panels being initialized in expanded state\n * is NOT supported\n */",
"if",
"(",
"panel",
".",
"expanded",
")",
"{",
"if",
"(",
"this",
".",
"expandedIndex",
">",
"-",
"1",
")",
"{",
"const",
"errorMessage",
"=",
"`\n PanelGroup does not support more than one Panel to be expanded initially.\n \n Make sure only one <mdl-expansion-panel> receives input like [expanded]=\"true\".\n `",
";",
"this",
".",
"throw",
"(",
"errorMessage",
")",
";",
"}",
"this",
".",
"expandedIndex",
"=",
"i",
";",
"}",
"/**\n * Expand the panel and collapse previously\n * expanded panel when a panel is toggled.\n * Save the new expanded panel index.\n */",
"panel",
".",
"onChange",
".",
"subscribe",
"(",
"(",
"isExpanded",
")",
"=>",
"{",
"if",
"(",
"isExpanded",
")",
"{",
"if",
"(",
"i",
"!==",
"this",
".",
"expandedIndex",
"&&",
"this",
".",
"expandedIndex",
">=",
"0",
")",
"{",
"this",
".",
"panels",
".",
"toArray",
"(",
")",
"[",
"this",
".",
"expandedIndex",
"]",
".",
"collapse",
"(",
")",
";",
"}",
"this",
".",
"expandedIndex",
"=",
"i",
";",
"}",
"if",
"(",
"!",
"isExpanded",
"&&",
"i",
"===",
"this",
".",
"expandedIndex",
")",
"{",
"this",
".",
"expandedIndex",
"=",
"-",
"1",
";",
"}",
"}",
")",
";",
"}",
")",
";",
"}",
"getExpanded",
"(",
")",
"{",
"return",
"this",
".",
"expandedIndex",
";",
"}",
"getPanel",
"(",
"index",
")",
"{",
"return",
"this",
".",
"panels",
".",
"toArray",
"(",
")",
"[",
"index",
"]",
";",
"}",
"private",
"throw",
"(",
"message",
")",
"{",
"throw",
"new",
"Error",
"(",
"message",
")",
";",
"}",
"}",
"const",
"MDL_EXPANSION_PANEL_DIRECTIVES",
"=",
"[",
"MdlExpansionPanelGroupComponent",
",",
"MdlExpansionPanelComponent",
",",
"MdlExpansionPanelHeaderComponent",
",",
"MdlExpansionPanelHeaderListContentComponent",
",",
"MdlExpansionPanelHeaderSecondaryContentComponent",
",",
"MdlExpansionPanelContentComponent",
",",
"MdlExpansionPanelBodyComponent",
",",
"MdlExpansionPanelFooterComponent",
"]",
";",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
"]",
",",
"exports",
":",
"MDL_EXPANSION_PANEL_DIRECTIVES",
",",
"declarations",
":",
"MDL_EXPANSION_PANEL_DIRECTIVES",
",",
"}",
")",
"export",
"class",
"MdlExpansionPanelModule",
"{",
"public",
"static",
"forRoot",
"(",
")",
"{",
"return",
"{",
"ngModule",
":",
"MdlExpansionPanelModule",
",",
"providers",
":",
"[",
"]",
"}",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
464,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662018 | [
"import",
"{",
"async",
",",
"TestBed",
",",
"ComponentFixture",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"Component",
",",
"DebugElement",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"MdlExpansionPanelModule",
"}",
"from",
"'./expansion-panel.component'",
";",
"import",
"{",
"By",
"}",
"from",
"'@angular/platform-browser'",
";",
"import",
"{",
"NoopAnimationsModule",
"}",
"from",
"'@angular/platform-browser/animations'",
";",
"describe",
"(",
"'MdlExpansionPanel'",
",",
"(",
")",
"=>",
"{",
"describe",
"(",
"'single'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlExpansionPanelModule",
".",
"forRoot",
"(",
")",
",",
"NoopAnimationsModule",
"]",
",",
"declarations",
":",
"[",
"TestSinglePanelComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestSinglePanelComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should be collapsed initially'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.expanded'",
")",
")",
")",
".",
"toBeNull",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should toggle on clicking expansion icon'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel__header--expand-icon'",
")",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.expanded'",
")",
")",
")",
".",
"not",
".",
"toBeNull",
"(",
")",
";",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel__header--expand-icon'",
")",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"return",
"fixture",
".",
"whenStable",
"(",
")",
";",
"}",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.expanded'",
")",
")",
")",
".",
"toBeNull",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should toggle on pressing enter if focused'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"e",
"=",
"new",
"KeyboardEvent",
"(",
"'keyup'",
",",
"{",
"key",
":",
"'Enter'",
"}",
")",
";",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel'",
")",
".",
"dispatchEvent",
"(",
"e",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.expanded'",
")",
")",
")",
".",
"not",
".",
"toBeNull",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should not toggle if disabled'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'button'",
")",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel__header--expand-icon'",
")",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"return",
"fixture",
".",
"whenStable",
"(",
")",
";",
"}",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.expanded'",
")",
")",
")",
".",
"toBeNull",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'group'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"let",
"fixtureWithError",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlExpansionPanelModule",
".",
"forRoot",
"(",
")",
",",
"NoopAnimationsModule",
"]",
",",
"declarations",
":",
"[",
"TestGroupPanelComponent",
",",
"TestGroupPanelError",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestGroupPanelComponent",
")",
";",
"fixtureWithError",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestGroupPanelError",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should allow one panel which is initialized in expanded state'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(1)'",
")",
".",
"getAttribute",
"(",
"'class'",
")",
")",
".",
"toContain",
"(",
"'expanded'",
")",
";",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(2)'",
")",
".",
"getAttribute",
"(",
"'class'",
")",
")",
".",
"not",
".",
"toContain",
"(",
"'expanded'",
")",
";",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(3)'",
")",
".",
"getAttribute",
"(",
"'class'",
")",
")",
".",
"not",
".",
"toContain",
"(",
"'expanded'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should collapse previous panel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(2) .mdl-expansion-panel__header--expand-icon'",
")",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(1)'",
")",
".",
"getAttribute",
"(",
"'class'",
")",
")",
".",
"not",
".",
"toContain",
"(",
"'expanded'",
")",
";",
"expect",
"(",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-expansion-panel:nth-child(2)'",
")",
".",
"getAttribute",
"(",
"'class'",
")",
")",
".",
"toContain",
"(",
"'expanded'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'throws if panel group panels are initialized incorrectly'",
",",
"(",
")",
"=>",
"{",
"let",
"error",
";",
"try",
"{",
"fixtureWithError",
".",
"detectChanges",
"(",
")",
";",
"}",
"catch",
"(",
"e",
")",
"{",
"error",
"=",
"e",
";",
"}",
"expect",
"(",
"error",
")",
".",
"toBeDefined",
"(",
")",
";",
"expect",
"(",
"error",
"instanceof",
"Error",
")",
".",
"toBe",
"(",
"true",
")",
";",
"}",
")",
";",
"}",
")",
";",
"describe",
"(",
"\"customized initialization\"",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"let",
"panel",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlExpansionPanelModule",
".",
"forRoot",
"(",
")",
",",
"NoopAnimationsModule",
"]",
",",
"declarations",
":",
"[",
"TestPanelHostComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestPanelHostComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"panel",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"\"mdl-expansion-panel\"",
")",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"\"should be disabled depending on input\"",
",",
"(",
")",
"=>",
"{",
"expect",
"(",
"panel",
".",
"classes",
")",
".",
"toEqual",
"(",
"jasmine",
".",
"objectContaining",
"(",
"{",
"disabled",
":",
"true",
"}",
")",
")",
";",
"}",
")",
";",
"it",
"(",
"\"should be expanded depending on input\"",
",",
"(",
")",
"=>",
"{",
"expect",
"(",
"panel",
".",
"classes",
")",
".",
"toEqual",
"(",
"jasmine",
".",
"objectContaining",
"(",
"{",
"expanded",
":",
"true",
"}",
")",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-component'",
",",
"template",
":",
"`\n <mdl-expansion-panel #panel>\n <mdl-expansion-panel-header></mdl-expansion-panel-header>\n <mdl-expansion-panel-content><p>body</p></mdl-expansion-panel-content>\n </mdl-expansion-panel>\n <button (click)=\"panel.disabled = true\"></button>\n `",
"}",
")",
"class",
"TestSinglePanelComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-group-component'",
",",
"template",
":",
"`\n <mdl-expansion-panel-group #panelGroup>\n <mdl-expansion-panel *ngFor=\"let i of [1,2,3]; let isFirst = first\" [expanded]=\"isFirst\">\n <mdl-expansion-panel-header></mdl-expansion-panel-header>\n <mdl-expansion-panel-content><p>body</p></mdl-expansion-panel-content>\n </mdl-expansion-panel>\n </mdl-expansion-panel-group>\n `",
"}",
")",
"class",
"TestGroupPanelComponent",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-group-error'",
",",
"template",
":",
"`\n <mdl-expansion-panel-group>\n <mdl-expansion-panel *ngFor=\"let i of [1,2,3]\" [expanded]=\"true\">\n <mdl-expansion-panel-header></mdl-expansion-panel-header>\n <mdl-expansion-panel-content><p>body</p></mdl-expansion-panel-content>\n </mdl-expansion-panel>\n </mdl-expansion-panel-group>\n `",
"}",
")",
"class",
"TestGroupPanelError",
"{",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-host-component'",
",",
"template",
":",
"`\n <mdl-expansion-panel [disabled]=\"disabled\" [expanded]=\"expanded\">\n <mdl-expansion-panel-header></mdl-expansion-panel-header>\n <mdl-expansion-panel-content><p>body</p></mdl-expansion-panel-content>\n </mdl-expansion-panel>\n `",
"}",
")",
"class",
"TestPanelHostComponent",
"{",
"public",
"disabled",
":",
"boolean",
"=",
"true",
";",
"public",
"expanded",
":",
"boolean",
"=",
"true",
";",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662019 | [
"import",
"{",
"ChangeDetectorRef",
",",
"Component",
",",
"ElementRef",
",",
"EventEmitter",
",",
"HostBinding",
",",
"HostListener",
",",
"Inject",
",",
"Injectable",
",",
"Input",
",",
"ModuleWithProviders",
",",
"NgModule",
",",
"Output",
",",
"ViewEncapsulation",
",",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"DOCUMENT",
"}",
"from",
"'@angular/platform-browser'",
";",
"import",
"{",
"MdlButtonComponent",
"}",
"from",
"'@angular-mdl/core'",
";",
"@",
"Injectable",
"(",
")",
"export",
"class",
"MdlPopoverRegistry",
"{",
"private",
"popoverComponents",
":",
"any",
"[",
"]",
"=",
"[",
"]",
";",
"constructor",
"(",
"@",
"Inject",
"(",
"DOCUMENT",
")",
"private",
"doc",
")",
"{",
"this",
".",
"doc",
".",
"addEventListener",
"(",
"'click'",
",",
"(",
")",
"=>",
"{",
"this",
".",
"popoverComponents",
".",
"filter",
"(",
"(",
"component",
")",
"=>",
"component",
".",
"isVisible",
")",
".",
"forEach",
"(",
"(",
"component",
")",
"=>",
"component",
".",
"hide",
"(",
")",
")",
";",
"}",
")",
";",
"}",
";",
"public",
"add",
"(",
"popoverComponent",
")",
"{",
"this",
".",
"popoverComponents",
".",
"push",
"(",
"popoverComponent",
")",
";",
"}",
"public",
"remove",
"(",
"popoverComponent",
")",
"{",
"this",
".",
"popoverComponents",
".",
"slice",
"(",
"this",
".",
"popoverComponents",
".",
"indexOf",
"(",
"popoverComponent",
")",
",",
"1",
")",
";",
"}",
"public",
"hideAllExcept",
"(",
"popoverComponent",
")",
"{",
"this",
".",
"popoverComponents",
".",
"forEach",
"(",
"(",
"component",
")",
"=>",
"{",
"if",
"(",
"component",
"!==",
"popoverComponent",
")",
"{",
"component",
".",
"hide",
"(",
")",
";",
"}",
"}",
")",
";",
"}",
"}",
"const",
"BOTTOM_LEFT",
"=",
"'bottom-left'",
";",
"const",
"BOTTOM_RIGHT",
"=",
"'bottom-right'",
";",
"const",
"TOP_LEFT",
"=",
"'top-left'",
";",
"const",
"TOP_RIGHT",
"=",
"'top-right'",
";",
"export",
"interface",
"IPositionCoordinates",
"{",
"left",
":",
"number",
";",
"top",
":",
"number",
";",
"}",
"@",
"Injectable",
"(",
")",
"export",
"class",
"PopupPositionService",
"{",
"public",
"updatePosition",
"(",
"forElement",
",",
"popoverElement",
",",
"position",
")",
"{",
"const",
"coordinates",
"=",
"this",
".",
"calculateCoordinates",
"(",
"forElement",
",",
"popoverElement",
",",
"position",
")",
";",
"this",
".",
"applyCoordinates",
"(",
"coordinates",
",",
"popoverElement",
".",
"style",
")",
";",
"}",
"private",
"applyCoordinates",
"(",
"coordinates",
",",
"elementStyle",
")",
"{",
"if",
"(",
"!",
"coordinates",
")",
"{",
"return",
";",
"}",
"elementStyle",
".",
"right",
"=",
"elementStyle",
".",
"bottom",
"=",
"''",
";",
"elementStyle",
".",
"left",
"=",
"coordinates",
".",
"left",
"+",
"'px'",
";",
"elementStyle",
".",
"top",
"=",
"coordinates",
".",
"top",
"+",
"'px'",
";",
"}",
"private",
"calculateCoordinates",
"(",
"forElement",
",",
"popoverElement",
",",
"position",
")",
"{",
"if",
"(",
"!",
"forElement",
"||",
"!",
"position",
")",
"{",
"return",
"null",
";",
"}",
"switch",
"(",
"position",
")",
"{",
"case",
"BOTTOM_RIGHT",
":",
"return",
"{",
"top",
":",
"forElement",
".",
"offsetTop",
"+",
"forElement",
".",
"offsetHeight",
",",
"left",
":",
"forElement",
".",
"offsetLeft",
"+",
"forElement",
".",
"offsetWidth",
"-",
"popoverElement",
".",
"offsetWidth",
"}",
";",
"case",
"BOTTOM_LEFT",
":",
"return",
"{",
"top",
":",
"forElement",
".",
"offsetTop",
"+",
"forElement",
".",
"offsetHeight",
",",
"left",
":",
"forElement",
".",
"offsetLeft",
"}",
";",
"case",
"TOP_LEFT",
":",
"return",
"{",
"top",
":",
"forElement",
".",
"offsetTop",
"-",
"popoverElement",
".",
"offsetHeight",
",",
"left",
":",
"forElement",
".",
"offsetLeft",
"}",
";",
"case",
"TOP_RIGHT",
":",
"return",
"{",
"top",
":",
"forElement",
".",
"offsetTop",
"-",
"popoverElement",
".",
"offsetHeight",
",",
"left",
":",
"forElement",
".",
"offsetLeft",
"+",
"forElement",
".",
"offsetWidth",
"-",
"popoverElement",
".",
"offsetWidth",
"}",
";",
"}",
"}",
"}",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'mdl-popover'",
",",
"host",
":",
"{",
"'[class.mdl-popover]'",
":",
"'true'",
"}",
",",
"templateUrl",
":",
"'popover.html'",
",",
"encapsulation",
":",
"ViewEncapsulation",
".",
"None",
",",
"}",
")",
"export",
"class",
"MdlPopoverComponent",
"{",
"@",
"Input",
"(",
"'hide-on-click'",
")",
"public",
"hideOnClick",
":",
"boolean",
"=",
"false",
";",
"@",
"Input",
"(",
"'mdl-popover-position'",
")",
"public",
"position",
":",
"string",
";",
"@",
"Output",
"(",
")",
"onShow",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
")",
";",
"@",
"Output",
"(",
")",
"onHide",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
")",
";",
"@",
"HostBinding",
"(",
"'class.is-visible'",
")",
"public",
"isVisible",
"=",
"false",
";",
"@",
"HostListener",
"(",
"'click'",
",",
"[",
"'$event'",
"]",
")",
"onClick",
"(",
"event",
")",
"{",
"if",
"(",
"!",
"this",
".",
"hideOnClick",
")",
"{",
"event",
".",
"stopPropagation",
"(",
")",
";",
"}",
"}",
"constructor",
"(",
"private",
"changeDetectionRef",
",",
"public",
"elementRef",
",",
"private",
"popoverRegistry",
",",
"private",
"popupPositionService",
")",
"{",
"this",
".",
"popoverRegistry",
".",
"add",
"(",
"this",
")",
";",
"}",
"public",
"ngOnDestroy",
"(",
")",
"{",
"this",
".",
"popoverRegistry",
".",
"remove",
"(",
"this",
")",
";",
"}",
"public",
"toggle",
"(",
"event",
",",
"forElement",
"=",
"null",
")",
"{",
"if",
"(",
"this",
".",
"isVisible",
")",
"{",
"this",
".",
"hide",
"(",
")",
";",
"}",
"else",
"{",
"this",
".",
"show",
"(",
"event",
",",
"forElement",
")",
";",
"}",
"}",
"public",
"hide",
"(",
")",
"{",
"if",
"(",
"this",
".",
"isVisible",
")",
"{",
"this",
".",
"onHide",
".",
"emit",
"(",
"null",
")",
";",
"this",
".",
"isVisible",
"=",
"false",
";",
"this",
".",
"changeDetectionRef",
".",
"markForCheck",
"(",
")",
";",
"}",
"}",
"private",
"hideAllPopovers",
"(",
")",
"{",
"this",
".",
"popoverRegistry",
".",
"hideAllExcept",
"(",
"this",
")",
";",
"}",
"public",
"show",
"(",
"event",
",",
"forElement",
"=",
"null",
")",
"{",
"this",
".",
"hideAllPopovers",
"(",
")",
";",
"event",
".",
"stopPropagation",
"(",
")",
";",
"if",
"(",
"!",
"this",
".",
"isVisible",
")",
"{",
"this",
".",
"onShow",
".",
"emit",
"(",
"null",
")",
";",
"this",
".",
"isVisible",
"=",
"true",
";",
"this",
".",
"updateDirection",
"(",
"event",
",",
"forElement",
")",
";",
"}",
"}",
"private",
"updateDirection",
"(",
"event",
",",
"forElement",
")",
"{",
"if",
"(",
"forElement",
"&&",
"this",
".",
"position",
")",
"{",
"const",
"popoverElement",
"=",
"this",
".",
"elementRef",
".",
"nativeElement",
";",
"const",
"forHtmlElement",
"=",
"this",
".",
"getHtmlElement",
"(",
"forElement",
")",
";",
"this",
".",
"popupPositionService",
".",
"updatePosition",
"(",
"forHtmlElement",
",",
"popoverElement",
",",
"this",
".",
"position",
")",
";",
"this",
".",
"changeDetectionRef",
".",
"markForCheck",
"(",
")",
";",
"return",
";",
"}",
"}",
"private",
"getHtmlElement",
"(",
"forElement",
")",
"{",
"if",
"(",
"forElement",
"instanceof",
"MdlButtonComponent",
")",
"{",
"const",
"buttonComponent",
"=",
"<",
"MdlButtonComponent",
">",
"forElement",
";",
"return",
"buttonComponent",
".",
"elementRef",
".",
"nativeElement",
";",
"}",
"if",
"(",
"forElement",
"instanceof",
"ElementRef",
")",
"{",
"const",
"elementRef",
"=",
"<",
"ElementRef",
">",
"forElement",
";",
"return",
"elementRef",
".",
"nativeElement",
";",
"}",
"return",
"forElement",
";",
"}",
"}",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"]",
",",
"exports",
":",
"[",
"MdlPopoverComponent",
"]",
",",
"declarations",
":",
"[",
"MdlPopoverComponent",
"]",
",",
"providers",
":",
"[",
"MdlPopoverRegistry",
",",
"PopupPositionService",
"]",
",",
"}",
")",
"export",
"class",
"MdlPopoverModule",
"{",
"static",
"forRoot",
"(",
")",
"{",
"return",
"{",
"ngModule",
":",
"MdlPopoverModule",
",",
"providers",
":",
"[",
"]",
"}",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
39543,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
39543,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
39543,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
39543,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
39543,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
15,
null,
15,
null,
2,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
0,
null,
374,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
15,
null,
15,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
170,
null,
null,
93,
null,
null,
0,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
93,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
464,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662020 | [
"import",
"{",
"Component",
",",
"Input",
",",
"ModuleWithProviders",
",",
"NgModule",
",",
"OnInit",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"import",
"{",
"MdlPopoverModule",
"}",
"from",
"'../popover/popover'",
";",
"import",
"{",
"MdlFabMenuItemComponent",
"}",
"from",
"'./fab-menu-item'",
";",
"import",
"{",
"MdlModule",
"}",
"from",
"'@angular-mdl/core'",
";",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'mdl-fab-menu'",
",",
"templateUrl",
":",
"'fab-menu.html'",
",",
"styleUrls",
":",
"[",
"'fab-menu.scss'",
"]",
"}",
")",
"export",
"class",
"MdlFabMenuComponent",
"implements",
"OnInit",
"{",
"@",
"Input",
"(",
")",
"alwaysShowTooltips",
":",
"boolean",
";",
"constructor",
"(",
")",
"{",
"}",
"ngOnInit",
"(",
")",
"{",
"}",
"}",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
",",
"MdlModule",
",",
"MdlPopoverModule",
"]",
",",
"exports",
":",
"[",
"MdlFabMenuComponent",
",",
"MdlFabMenuItemComponent",
"]",
",",
"declarations",
":",
"[",
"MdlFabMenuComponent",
",",
"MdlFabMenuItemComponent",
"]",
"}",
")",
"export",
"class",
"MdlFabMenuModule",
"{",
"static",
"forRoot",
"(",
")",
"{",
"return",
"{",
"ngModule",
":",
"MdlFabMenuModule",
",",
"providers",
":",
"[",
"]",
"}",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
464,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662021 | [
"import",
"{",
"Component",
",",
"EventEmitter",
",",
"Input",
",",
"OnInit",
",",
"Output",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"MdlFabMenuComponent",
"}",
"from",
"'./fab-menu'",
";",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'mdl-fab-menu-item'",
",",
"templateUrl",
":",
"'fab-menu-item.html'",
",",
"styleUrls",
":",
"[",
"'fab-menu-item.scss'",
"]",
"}",
")",
"export",
"class",
"MdlFabMenuItemComponent",
"implements",
"OnInit",
"{",
"@",
"Input",
"(",
")",
"label",
":",
"string",
";",
"@",
"Input",
"(",
")",
"icon",
":",
"string",
";",
"@",
"Input",
"(",
")",
"fabMenu",
":",
"MdlFabMenuComponent",
";",
"@",
"Output",
"(",
"'menu-clicked'",
")",
"menuClick",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
")",
";",
"isHoovering",
":",
"boolean",
"=",
"false",
";",
"constructor",
"(",
")",
"{",
"}",
"ngOnInit",
"(",
")",
"{",
"this",
".",
"isHoovering",
"=",
"false",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662022 | [
"import",
"{",
"async",
",",
"ComponentFixture",
",",
"TestBed",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"MdlFabMenuComponent",
",",
"MdlFabMenuModule",
"}",
"from",
"'./fab-menu'",
";",
"import",
"{",
"Component",
",",
"DebugElement",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"By",
"}",
"from",
"'@angular/platform-browser'",
";",
"describe",
"(",
"'MdlFabMenuComponent'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlFabMenuModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestMdlFabMenuComponent",
"]",
",",
"providers",
":",
"[",
"]",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestMdlFabMenuComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"afterEach",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"null",
";",
"}",
")",
";",
"describe",
"(",
"'FAB'",
",",
"(",
")",
"=>",
"{",
"it",
"(",
"'should instantiate the component'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"fixture",
")",
".",
"toBeDefined",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should have the menu collapsed after the page loads'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-popover'",
")",
")",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toBeFalsy",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should have the menu expanded after the user click once on the FAB'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"buttonComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
";",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-popover'",
")",
")",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'show'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonComponent",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"show",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toBeTruthy",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should have the menu collapsed after the user click on one item'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-popover'",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"let",
"buttonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
".",
"nativeElement",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"let",
"itemDebugElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemNotAlwaysTooltip > .mdl-button'",
")",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hide'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"itemDebugElement",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hide",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'isVisible is not false'",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'did has css class is-visible'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should toggle popover on button click'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-popover'",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"let",
"buttonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
".",
"nativeElement",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'isVisible is not false'",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'did has css class is-visible'",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hideAllPopovers'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'updateDirection'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"toggle",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hideAllPopovers",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"updateDirection",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"true",
",",
"'toggle did not update isVisible to true'",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class is-visible'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'item tooltips'",
",",
"(",
")",
"=>",
"{",
"it",
"(",
"'should not display tooltips after click on the FAB'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"buttonComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
";",
"let",
"tooltipNotAlwaysElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemNotAlwaysTooltip > mdl-chip'",
")",
")",
".",
"nativeElement",
";",
"buttonComponent",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"tooltipNotAlwaysElement",
".",
"hidden",
")",
".",
"toBe",
"(",
"true",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should display tooltips on rollover'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"buttonComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
";",
"let",
"tooltipNotAlwaysDebugElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemNotAlwaysTooltip > mdl-chip'",
")",
")",
";",
"let",
"tooltipNotAlwaysElement",
"=",
"tooltipNotAlwaysDebugElement",
".",
"nativeElement",
";",
"let",
"itemDebugElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemNotAlwaysTooltip > .mdl-button'",
")",
")",
".",
"nativeElement",
";",
"buttonComponent",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"const",
"eventover",
"=",
"new",
"Event",
"(",
"'mouseover'",
")",
";",
"itemDebugElement",
".",
"dispatchEvent",
"(",
"eventover",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"tooltipNotAlwaysElement",
".",
"hidden",
")",
".",
"toBe",
"(",
"false",
")",
";",
"const",
"eventleave",
"=",
"new",
"Event",
"(",
"'mouseleave'",
")",
";",
"itemDebugElement",
".",
"dispatchEvent",
"(",
"eventleave",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"tooltipNotAlwaysElement",
".",
"hidden",
")",
".",
"toBe",
"(",
"true",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should display tooltips after click on the FAB'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"buttonComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
";",
"let",
"tooltipAlwaysElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemAlwaysTooltip > mdl-chip'",
")",
")",
".",
"nativeElement",
";",
"buttonComponent",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"tooltipAlwaysElement",
".",
"hidden",
")",
".",
"toBe",
"(",
"false",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should display tooltips after touch start on the FAB'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"buttonElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'.mdl-button'",
")",
")",
".",
"nativeElement",
";",
"let",
"tooltipAlwaysElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#itemNotAlwaysTooltip > mdl-chip'",
")",
")",
".",
"nativeElement",
";",
"const",
"touchevent",
"=",
"new",
"Event",
"(",
"'touchstart'",
")",
";",
"buttonElement",
".",
"dispatchEvent",
"(",
"touchevent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"buttonElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"tooltipAlwaysElement",
".",
"hidden",
")",
".",
"toBe",
"(",
"false",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"}",
")",
";",
"@",
"Component",
"(",
"{",
"template",
":",
"`\n <mdl-fab-menu #mainFabMenu>\n <mdl-fab-menu-item id=\"itemNotAlwaysTooltip\"\n [fabMenu]=\"mainFabMenu\"\n icon=\"note_add\"\n label=\"make a note\"\n (menu-clicked)=\"logMessage('use want to make a note')\">\n </mdl-fab-menu-item>\n <mdl-fab-menu-item\n [fabMenu]=\"mainFabMenu\"\n icon=\"refresh\"\n label=\"refresh\"\n (menu-clicked)=\"logMessage('user elected to refresh!')\">\n </mdl-fab-menu-item>\n </mdl-fab-menu>\n <mdl-fab-menu #mainFabMenu2 [alwaysShowTooltips]=\"true\">\n <mdl-fab-menu-item id=\"itemAlwaysTooltip\"\n [fabMenu]=\"mainFabMenu2\"\n icon=\"note_add\"\n label=\"make a note\"\n (menu-clicked)=\"logMessage('use want to make a note')\">\n </mdl-fab-menu-item>\n <mdl-fab-menu-item\n [fabMenu]=\"mainFabMenu2\"\n icon=\"refresh\"\n label=\"refresh\"\n (menu-clicked)=\"logMessage('user elected to refresh!')\">\n </mdl-fab-menu-item>\n </mdl-fab-menu>\n `",
"}",
")",
"class",
"TestMdlFabMenuComponent",
"{",
"logMessage",
"(",
"msg",
")",
"{",
"console",
".",
"log",
"(",
"msg",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
15,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662023 | [
"import",
"{",
"TestBed",
",",
"async",
",",
"ComponentFixture",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"MdlPopoverModule",
",",
"MdlPopoverComponent",
"}",
"from",
"'./popover'",
";",
"import",
"{",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"By",
"}",
"from",
"'@angular/platform-browser'",
";",
"describe",
"(",
"'MdlPopover'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlPopoverModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create the component and add the mdl-popover css class'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlPopoverComponent",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'mdl-popover'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class mdl-popover'",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should hide on click outside of popover'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlPopoverComponent",
")",
")",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"popoverComponentInstance",
".",
"isVisible",
"=",
"true",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hide'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
".",
"onHide",
",",
"'emit'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hide",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"onHide",
".",
"emit",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should toggle popover on button click'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlPopoverComponent",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"let",
"buttonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'button'",
")",
")",
".",
"nativeElement",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'isVisible is not false'",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'did has css class is-visible'",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'show'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
".",
"onShow",
",",
"'emit'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hideAllPopovers'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'updateDirection'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"toggle",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"show",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"onShow",
".",
"emit",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hideAllPopovers",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"updateDirection",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"true",
",",
"'toggle did not update isVisible to true'",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class is-visible'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should toggle popover on another popover opening'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlPopoverComponent",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"let",
"buttonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'button'",
")",
")",
".",
"nativeElement",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"let",
"anotherButtonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#anotherButton'",
")",
")",
".",
"nativeElement",
";",
"let",
"anotherPopoverComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#anotherPopover'",
")",
")",
".",
"componentInstance",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'isVisible is not false'",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'did has css class is-visible'",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hideAllPopovers'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'updateDirection'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"toggle",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hideAllPopovers",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"updateDirection",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"true",
",",
"'toggle did not update isVisible to true'",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class is-visible'",
")",
";",
"}",
")",
";",
"let",
"hideAllPopoversSpy",
"=",
"spyOn",
"(",
"anotherPopoverComponentInstance",
",",
"'hideAllPopovers'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"anotherButtonNativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"hideAllPopoversSpy",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"anotherPopoverComponentInstance",
".",
"isVisible",
")",
".",
"toBe",
"(",
"true",
",",
"'second popover did not show'",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toBe",
"(",
"false",
",",
"'main popover did not hide'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should use user specified popover position'",
",",
"async",
"(",
"async",
"(",
")",
"=>",
"{",
"let",
"popoverComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#positionPopover'",
")",
")",
";",
"let",
"popoverNativeElement",
"=",
"popoverComponent",
".",
"nativeElement",
";",
"let",
"popoverComponentInstance",
"=",
"popoverComponent",
".",
"componentInstance",
";",
"let",
"buttonNativeElement",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"css",
"(",
"'#positionPopoverButton'",
")",
")",
".",
"nativeElement",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'isVisible is not false'",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'has not css class is-visible'",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'toggle'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hideAllPopovers'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'updateDirection'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"toggle",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"hideAllPopovers",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"updateDirection",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"popoverComponentInstance",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"true",
",",
"'toggle did not update isVisible to true'",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"await",
"fixture",
".",
"whenStable",
"(",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class is-visible'",
")",
";",
"spyOn",
"(",
"popoverComponentInstance",
",",
"'hide'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"popoverComponentInstance",
".",
"hide",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"await",
"fixture",
".",
"whenStable",
"(",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'has not css class is-visible'",
")",
";",
"const",
"allOtherPositions",
"=",
"[",
"'bottom-right'",
",",
"'top-left'",
",",
"'top-right'",
",",
"'non-existent-one!'",
"]",
";",
"for",
"(",
"const",
"position",
"of",
"allOtherPositions",
")",
"{",
"popoverComponentInstance",
".",
"position",
"=",
"position",
";",
"buttonNativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"await",
"fixture",
".",
"whenStable",
"(",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class is-visible'",
")",
";",
"popoverComponentInstance",
".",
"hide",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"await",
"fixture",
".",
"whenStable",
"(",
")",
";",
"expect",
"(",
"popoverNativeElement",
".",
"classList",
".",
"contains",
"(",
"'is-visible'",
")",
")",
".",
"toBe",
"(",
"false",
",",
"'has not css class is-visible'",
")",
";",
"}",
"}",
")",
")",
";",
"}",
")",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-component'",
",",
"template",
":",
"`\n <button id=\"mainButton\" (click)=\"popover.toggle($event)\">button</button>\n <mdl-popover id=\"mainPopover\" #popover>popover content</mdl-popover>\n\n <button (click)=\"anotherPopover.toggle($event)\" id=\"anotherButton\">button</button>\n <mdl-popover id=\"anotherPopover\" #anotherPopover>fubar</mdl-popover>\n\n <button id=\"positionPopoverButton\" #positionPopoverButton (click)=\"positionPopover.toggle($event, positionPopoverButton)\">button</button>\n <mdl-popover id=\"positionPopover\" #positionPopover mdl-popover-position=\"bottom-left\">popover with position set</mdl-popover>\n `",
"}",
")",
"class",
"TestComponent",
"{",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
127,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662024 | [
"import",
"{",
"Component",
",",
"ChangeDetectorRef",
",",
"ElementRef",
",",
"Input",
",",
"ViewChild",
"}",
"from",
"'@angular/core'",
";",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'mdl-option'",
",",
"host",
":",
"{",
"'[class.mdl-option__container]'",
":",
"'true'",
",",
"'[class.mdl-option--disabled]'",
":",
"'disabled'",
"}",
",",
"templateUrl",
":",
"'option.html'",
"}",
")",
"export",
"class",
"MdlOptionComponent",
"{",
"@",
"Input",
"(",
"'disabled'",
")",
"public",
"disabled",
"=",
"false",
";",
"@",
"Input",
"(",
"'value'",
")",
"public",
"value",
":",
"any",
";",
"@",
"ViewChild",
"(",
"'contentWrapper'",
")",
"contentWrapper",
":",
"ElementRef",
";",
"public",
"text",
":",
"any",
";",
"public",
"multiple",
":",
"boolean",
"=",
"false",
";",
"public",
"selected",
":",
"boolean",
"=",
"false",
";",
"public",
"onSelect",
":",
"any",
"=",
"Function",
".",
"prototype",
";",
"constructor",
"(",
"private",
"changeDetectionRef",
")",
"{",
"}",
"public",
"select",
"(",
"event",
")",
"{",
"if",
"(",
"this",
".",
"disabled",
")",
"{",
"event",
".",
"stopPropagation",
"(",
")",
";",
"event",
".",
"preventDefault",
"(",
")",
";",
"}",
"else",
"{",
"this",
".",
"onSelect",
"(",
"this",
".",
"value",
")",
";",
"}",
"}",
"public",
"setMultiple",
"(",
"multiple",
")",
"{",
"this",
".",
"multiple",
"=",
"multiple",
";",
"this",
".",
"changeDetectionRef",
".",
"detectChanges",
"(",
")",
";",
"}",
"public",
"updateSelected",
"(",
"value",
")",
"{",
"if",
"(",
"this",
".",
"multiple",
")",
"{",
"this",
".",
"selected",
"=",
"(",
"value",
".",
"map",
"(",
"(",
"v",
")",
"=>",
"this",
".",
"stringifyValue",
"(",
"v",
")",
")",
".",
"indexOf",
"(",
"this",
".",
"stringValue",
")",
"!=",
"-",
"1",
")",
";",
"}",
"else",
"{",
"this",
".",
"selected",
"=",
"this",
".",
"value",
"==",
"value",
";",
"}",
"if",
"(",
"!",
"(",
"<",
"any",
">",
"this",
".",
"changeDetectionRef",
")",
"[",
"'destroyed'",
"]",
")",
"{",
"this",
".",
"changeDetectionRef",
".",
"detectChanges",
"(",
")",
";",
"}",
"}",
"ngAfterViewInit",
"(",
")",
"{",
"this",
".",
"text",
"=",
"this",
".",
"contentWrapper",
".",
"nativeElement",
".",
"textContent",
".",
"trim",
"(",
")",
";",
"}",
"get",
"stringValue",
"(",
")",
":",
"string",
"{",
"return",
"this",
".",
"stringifyValue",
"(",
"this",
".",
"value",
")",
";",
"}",
"private",
"stringifyValue",
"(",
"value",
")",
"{",
"switch",
"(",
"typeof",
"value",
")",
"{",
"case",
"'number'",
":",
"return",
"String",
"(",
"value",
")",
";",
"case",
"'object'",
":",
"return",
"JSON",
".",
"stringify",
"(",
"value",
")",
";",
"default",
":",
"return",
"(",
"!",
"!",
"value",
")",
"?",
"String",
"(",
"value",
")",
":",
"''",
";",
"}",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
170,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662025 | [
"export",
"enum",
"Key",
"{",
"Tab",
"=",
"9",
",",
"Enter",
"=",
"13",
",",
"Escape",
"=",
"27",
",",
"UpArrow",
"=",
"38",
",",
"DownArrow",
"=",
"40",
",",
"A",
"=",
"65",
",",
"B",
"=",
"66",
",",
"C",
"=",
"67",
",",
"D",
"=",
"68",
",",
"E",
"=",
"69",
",",
"F",
"=",
"70",
",",
"G",
"=",
"71",
",",
"H",
"=",
"72",
",",
"I",
"=",
"73",
",",
"J",
"=",
"74",
",",
"K",
"=",
"75",
",",
"L",
"=",
"76",
",",
"M",
"=",
"77",
",",
"N",
"=",
"78",
",",
"O",
"=",
"79",
",",
"P",
"=",
"80",
",",
"Q",
"=",
"81",
",",
"R",
"=",
"82",
",",
"S",
"=",
"83",
",",
"T",
"=",
"84",
",",
"U",
"=",
"85",
",",
"V",
"=",
"86",
",",
"W",
"=",
"87",
",",
"X",
"=",
"88",
",",
"Y",
"=",
"89",
",",
"Z",
"=",
"90",
"}",
"export",
"function",
"keyboardEventKeyCode",
"(",
"$event",
")",
"{",
"return",
"(",
"$event",
".",
"which",
"||",
"$event",
".",
"charCode",
"||",
"$event",
".",
"keyCode",
")",
";",
"}",
"export",
"function",
"keyboardEventKey",
"(",
"$event",
")",
"{",
"return",
"$event",
".",
"key",
"||",
"String",
".",
"fromCharCode",
"(",
"keyboardEventKeyCode",
"(",
"$event",
")",
")",
";",
"}",
"export",
"function",
"isKey",
"(",
"$event",
",",
"...",
"keys",
")",
"{",
"return",
"keys",
".",
"indexOf",
"(",
"keyboardEventKeyCode",
"(",
"$event",
")",
")",
"!==",
"-",
"1",
";",
"}",
"export",
"function",
"isCharacterKey",
"(",
"$event",
")",
"{",
"const",
"keyCode",
"=",
"keyboardEventKeyCode",
"(",
"$event",
")",
";",
"return",
"!",
"!",
"String",
".",
"fromCharCode",
"(",
"keyCode",
")",
"&&",
"keyCode",
">=",
"48",
"&&",
"keyCode",
"<=",
"90",
";",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
69,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
69,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662026 | [
"import",
"{",
"AfterContentInit",
",",
"Component",
",",
"ChangeDetectorRef",
",",
"ContentChildren",
",",
"ElementRef",
",",
"EventEmitter",
",",
"forwardRef",
",",
"Input",
",",
"ModuleWithProviders",
",",
"NgModule",
",",
"Output",
",",
"QueryList",
",",
"ViewChild",
",",
"ViewEncapsulation",
",",
"HostListener",
",",
"HostBinding",
",",
"AfterViewInit",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"NG_VALUE_ACCESSOR",
",",
"ControlValueAccessor",
"}",
"from",
"'@angular/forms'",
";",
"import",
"{",
"CommonModule",
"}",
"from",
"'@angular/common'",
";",
"import",
"{",
"MdlPopoverModule",
",",
"MdlPopoverComponent",
"}",
"from",
"'../popover/index'",
";",
"import",
"{",
"MdlOptionComponent",
"}",
"from",
"'./option'",
";",
"import",
"{",
"Key",
",",
"isKey",
",",
"isCharacterKey",
",",
"keyboardEventKey",
"}",
"from",
"'./keyboard'",
";",
"const",
"uniq",
"=",
"(",
"array",
")",
"=>",
"Array",
".",
"from",
"(",
"new",
"Set",
"(",
"array",
")",
")",
";",
"const",
"isEqual",
"=",
"(",
"a",
",",
"b",
")",
"=>",
"JSON",
".",
"stringify",
"(",
"a",
")",
"===",
"JSON",
".",
"stringify",
"(",
"b",
")",
";",
"function",
"toBoolean",
"(",
"value",
")",
"{",
"return",
"value",
"!=",
"null",
"&&",
"`${",
"value",
"}`",
"!==",
"'false'",
";",
"}",
"function",
"randomId",
"(",
")",
"{",
"const",
"S4",
"=",
"(",
")",
"=>",
"(",
"(",
"(",
"1",
"+",
"Math",
".",
"random",
"(",
")",
")",
"*",
"0x10000",
")",
"|",
"0",
")",
".",
"toString",
"(",
"16",
")",
".",
"substring",
"(",
"1",
")",
";",
"return",
"(",
"S4",
"(",
")",
"+",
"S4",
"(",
")",
")",
";",
"}",
"const",
"MDL_SELECT_VALUE_ACCESSOR",
"=",
"{",
"provide",
":",
"NG_VALUE_ACCESSOR",
",",
"useExisting",
":",
"forwardRef",
"(",
"(",
")",
"=>",
"MdlSelectComponent",
")",
",",
"multi",
":",
"true",
"}",
";",
"export",
"class",
"SearchableComponent",
"{",
"public",
"searchQuery",
":",
"string",
"=",
"''",
";",
"private",
"clearTimeout",
":",
"any",
"=",
"null",
";",
"protected",
"updateShortSearchQuery",
"(",
"$event",
")",
"{",
"if",
"(",
"this",
".",
"clearTimeout",
")",
"{",
"clearTimeout",
"(",
"this",
".",
"clearTimeout",
")",
";",
"}",
"this",
".",
"clearTimeout",
"=",
"setTimeout",
"(",
"(",
")",
"=>",
"{",
"this",
".",
"searchQuery",
"=",
"''",
";",
"}",
",",
"300",
")",
";",
"this",
".",
"searchQuery",
"+=",
"keyboardEventKey",
"(",
"$event",
")",
".",
"toLowerCase",
"(",
")",
";",
"}",
"}",
"@",
"Component",
"(",
"{",
"moduleId",
":",
"module",
".",
"id",
",",
"selector",
":",
"'mdl-select'",
",",
"host",
":",
"{",
"'[class.mdl-select]'",
":",
"'true'",
",",
"'[class.mdl-select--floating-label]'",
":",
"'isFloatingLabel'",
",",
"'[class.has-placeholder]'",
":",
"'placeholder'",
"}",
",",
"templateUrl",
":",
"'select.html'",
",",
"encapsulation",
":",
"ViewEncapsulation",
".",
"None",
",",
"providers",
":",
"[",
"MDL_SELECT_VALUE_ACCESSOR",
"]",
"}",
")",
"export",
"class",
"MdlSelectComponent",
"extends",
"SearchableComponent",
"implements",
"ControlValueAccessor",
",",
"AfterContentInit",
",",
"AfterViewInit",
"{",
"@",
"Input",
"(",
")",
"ngModel",
":",
"any",
";",
"@",
"Input",
"(",
")",
"disabled",
":",
"boolean",
"=",
"false",
";",
"@",
"Input",
"(",
")",
"autocomplete",
":",
"boolean",
"=",
"false",
";",
"@",
"Input",
"(",
")",
"public",
"label",
":",
"string",
"=",
"''",
";",
"@",
"Input",
"(",
"'floating-label'",
")",
"get",
"isFloatingLabel",
"(",
")",
"{",
"return",
"this",
".",
"_isFloatingLabel",
";",
"}",
"set",
"isFloatingLabel",
"(",
"value",
")",
"{",
"this",
".",
"_isFloatingLabel",
"=",
"toBoolean",
"(",
"value",
")",
";",
"}",
"@",
"Input",
"(",
")",
"placeholder",
":",
"string",
"=",
"''",
";",
"@",
"Input",
"(",
")",
"multiple",
":",
"boolean",
"=",
"false",
";",
"@",
"Output",
"(",
")",
"change",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
"true",
")",
";",
"@",
"Output",
"(",
")",
"blur",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
"true",
")",
";",
"@",
"Output",
"(",
")",
"inputChange",
":",
"EventEmitter",
"<",
"any",
">",
"=",
"new",
"EventEmitter",
"(",
"true",
")",
";",
"@",
"ViewChild",
"(",
"'selectInput'",
")",
"selectInput",
":",
"ElementRef",
";",
"@",
"ViewChild",
"(",
"MdlPopoverComponent",
")",
"public",
"popoverComponent",
":",
"MdlPopoverComponent",
";",
"@",
"ContentChildren",
"(",
"MdlOptionComponent",
")",
"public",
"optionComponents",
":",
"QueryList",
"<",
"MdlOptionComponent",
">",
";",
"private",
"selectElement",
":",
"HTMLElement",
";",
"private",
"popoverElement",
":",
"HTMLElement",
";",
"directionUp",
"=",
"false",
";",
"private",
"_isFloatingLabel",
":",
"boolean",
"=",
"false",
";",
"textfieldId",
":",
"string",
";",
"text",
":",
"string",
"=",
"''",
";",
"private",
"textByValue",
":",
"any",
"=",
"{",
"}",
";",
"private",
"onChange",
":",
"any",
"=",
"Function",
".",
"prototype",
";",
"private",
"onTouched",
":",
"any",
"=",
"Function",
".",
"prototype",
";",
"focused",
":",
"boolean",
"=",
"false",
";",
"constructor",
"(",
"private",
"changeDetectionRef",
",",
"private",
"elementRef",
")",
"{",
"super",
"(",
")",
";",
"this",
".",
"textfieldId",
"=",
"`mdl-textfield-${",
"randomId",
"(",
")",
"}`",
";",
"}",
"public",
"ngAfterContentInit",
"(",
")",
"{",
"this",
".",
"bindOptions",
"(",
")",
";",
"this",
".",
"renderValue",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"optionComponents",
".",
"changes",
".",
"subscribe",
"(",
"(",
")",
"=>",
"{",
"this",
".",
"bindOptions",
"(",
")",
";",
"this",
".",
"renderValue",
"(",
"this",
".",
"ngModel",
")",
";",
"}",
")",
";",
"this",
".",
"popoverComponent",
".",
"onShow",
".",
"subscribe",
"(",
"(",
")",
"=>",
"this",
".",
"onOpen",
"(",
")",
")",
";",
"this",
".",
"popoverComponent",
".",
"onHide",
".",
"subscribe",
"(",
"(",
")",
"=>",
"this",
".",
"onClose",
"(",
")",
")",
";",
"}",
"public",
"ngAfterViewInit",
"(",
")",
"{",
"this",
".",
"selectElement",
"=",
"<",
"HTMLElement",
">",
"this",
".",
"elementRef",
".",
"nativeElement",
";",
"this",
".",
"popoverElement",
"=",
"<",
"HTMLElement",
">",
"this",
".",
"popoverComponent",
".",
"elementRef",
".",
"nativeElement",
";",
"}",
"@",
"HostListener",
"(",
"'keydown'",
",",
"[",
"'$event'",
"]",
")",
"private",
"onKeyDown",
"(",
"$event",
")",
"{",
"if",
"(",
"!",
"this",
".",
"disabled",
"&&",
"this",
".",
"popoverComponent",
".",
"isVisible",
"&&",
"!",
"this",
".",
"multiple",
")",
"{",
"if",
"(",
"isKey",
"(",
"$event",
",",
"Key",
".",
"UpArrow",
")",
")",
"{",
"this",
".",
"onArrow",
"(",
"$event",
",",
"-",
"1",
")",
";",
"}",
"else",
"if",
"(",
"isKey",
"(",
"$event",
",",
"Key",
".",
"DownArrow",
")",
")",
"{",
"this",
".",
"onArrow",
"(",
"$event",
",",
"1",
")",
";",
"}",
"else",
"if",
"(",
"!",
"this",
".",
"autocomplete",
"&&",
"isCharacterKey",
"(",
"$event",
")",
")",
"{",
"this",
".",
"onCharacterKeydown",
"(",
"$event",
")",
";",
"}",
"}",
"}",
"@",
"HostListener",
"(",
"'keyup'",
",",
"[",
"'$event'",
"]",
")",
"private",
"onKeyUp",
"(",
"$event",
")",
"{",
"const",
"inputField",
"=",
"$event",
".",
"target",
"as",
"HTMLInputElement",
";",
"const",
"inputValue",
"=",
"inputField",
".",
"value",
";",
"if",
"(",
"!",
"this",
".",
"multiple",
"&&",
"isKey",
"(",
"$event",
",",
"Key",
".",
"Enter",
",",
"Key",
".",
"Escape",
",",
"Key",
".",
"Tab",
")",
")",
"{",
"this",
".",
"searchQuery",
"=",
"''",
";",
"if",
"(",
"isKey",
"(",
"$event",
",",
"Key",
".",
"Enter",
")",
")",
"{",
"this",
".",
"setCurrentOptionValue",
"(",
")",
";",
"}",
"else",
"{",
"inputField",
".",
"value",
"=",
"this",
".",
"text",
";",
"}",
"inputField",
".",
"blur",
"(",
")",
";",
"this",
".",
"popoverComponent",
".",
"hide",
"(",
")",
";",
"}",
"else",
"if",
"(",
"this",
".",
"autocomplete",
"&&",
"!",
"isKey",
"(",
"$event",
",",
"Key",
".",
"DownArrow",
",",
"Key",
".",
"UpArrow",
")",
")",
"{",
"this",
".",
"inputChange",
".",
"emit",
"(",
"inputValue",
")",
";",
"this",
".",
"searchQuery",
"=",
"inputValue",
";",
"}",
"$event",
".",
"preventDefault",
"(",
")",
";",
"}",
"private",
"setCurrentOptionValue",
"(",
")",
"{",
"const",
"currentOption",
"=",
"this",
".",
"getCurrentOption",
"(",
")",
",",
"autoSelectedValue",
"=",
"this",
".",
"getAutoSelection",
"(",
")",
",",
"value",
"=",
"autoSelectedValue",
"||",
"(",
"currentOption",
"?",
"currentOption",
".",
"value",
":",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"resetText",
"(",
")",
";",
"if",
"(",
"!",
"isEqual",
"(",
"this",
".",
"ngModel",
",",
"value",
")",
")",
"{",
"this",
".",
"writeValue",
"(",
"value",
")",
";",
"this",
".",
"change",
".",
"emit",
"(",
"value",
")",
";",
"}",
"}",
"private",
"resetText",
"(",
")",
"{",
"this",
".",
"text",
"=",
"this",
".",
"selectInput",
".",
"nativeElement",
".",
"value",
";",
"this",
".",
"changeDetectionRef",
".",
"detectChanges",
"(",
")",
";",
"}",
"private",
"getCurrentOption",
"(",
")",
"{",
"return",
"this",
".",
"optionComponents",
"?",
"this",
".",
"optionComponents",
".",
"find",
"(",
"option",
"=>",
"option",
".",
"selected",
")",
":",
"null",
";",
"}",
"public",
"isDirty",
"(",
")",
"{",
"return",
"Boolean",
"(",
"this",
".",
"selectInput",
".",
"nativeElement",
".",
"value",
")",
";",
"}",
"private",
"onCharacterKeydown",
"(",
"$event",
")",
"{",
"this",
".",
"updateShortSearchQuery",
"(",
"$event",
")",
";",
"let",
"autoSelectedValue",
"=",
"this",
".",
"getAutoSelection",
"(",
")",
";",
"if",
"(",
"autoSelectedValue",
")",
"{",
"this",
".",
"onSelect",
"(",
"autoSelectedValue",
")",
";",
"}",
"$event",
".",
"preventDefault",
"(",
")",
";",
"}",
"private",
"getAutoSelection",
"(",
")",
"{",
"const",
"filteredOptions",
"=",
"this",
".",
"optionComponents",
".",
"filter",
"(",
"(",
"{",
"disabled",
"}",
")",
"=>",
"!",
"disabled",
")",
".",
"filter",
"(",
"option",
"=>",
"{",
"return",
"option",
".",
"text",
".",
"toLowerCase",
"(",
")",
".",
"startsWith",
"(",
"this",
".",
"searchQuery",
")",
";",
"}",
")",
";",
"const",
"selectedOption",
"=",
"this",
".",
"optionComponents",
".",
"find",
"(",
"option",
"=>",
"option",
".",
"selected",
")",
";",
"if",
"(",
"filteredOptions",
".",
"length",
">",
"0",
")",
"{",
"const",
"selectedOptionInFiltered",
"=",
"filteredOptions",
".",
"indexOf",
"(",
"selectedOption",
")",
"!=",
"-",
"1",
";",
"if",
"(",
"!",
"selectedOptionInFiltered",
"&&",
"!",
"filteredOptions",
"[",
"0",
"]",
".",
"selected",
")",
"{",
"return",
"filteredOptions",
"[",
"0",
"]",
".",
"value",
";",
"}",
"}",
"return",
"null",
";",
"}",
"private",
"onArrow",
"(",
"$event",
",",
"offset",
")",
"{",
"const",
"arr",
"=",
"this",
".",
"optionComponents",
".",
"toArray",
"(",
")",
".",
"filter",
"(",
"(",
"{",
"disabled",
"}",
")",
"=>",
"!",
"disabled",
")",
",",
"selectedOption",
"=",
"arr",
".",
"find",
"(",
"option",
"=>",
"option",
".",
"selected",
")",
",",
"selectedOptionIndex",
"=",
"arr",
".",
"indexOf",
"(",
"selectedOption",
")",
",",
"optionForSelection",
"=",
"selectedOption",
"!==",
"null",
"?",
"arr",
"[",
"selectedOptionIndex",
"+",
"offset",
"]",
":",
"arr",
"[",
"offset",
">",
"0",
"?",
"-",
"1",
":",
"0",
"]",
";",
"if",
"(",
"optionForSelection",
")",
"{",
"const",
"value",
"=",
"optionForSelection",
".",
"value",
";",
"this",
".",
"selectValue",
"(",
"value",
")",
";",
"}",
"$event",
".",
"preventDefault",
"(",
")",
";",
"}",
"private",
"selectValue",
"(",
"value",
")",
"{",
"this",
".",
"scrollToValue",
"(",
"value",
")",
";",
"if",
"(",
"this",
".",
"optionComponents",
")",
"{",
"this",
".",
"optionComponents",
".",
"forEach",
"(",
"(",
"selectOptionComponent",
")",
"=>",
"{",
"selectOptionComponent",
".",
"updateSelected",
"(",
"value",
")",
";",
"}",
")",
";",
"}",
"}",
"private",
"isEmpty",
"(",
")",
"{",
"return",
"this",
".",
"multiple",
"?",
"!",
"this",
".",
"ngModel",
".",
"length",
":",
"!",
"this",
".",
"ngModel",
";",
"}",
"public",
"reset",
"(",
"resetValue",
"=",
"true",
")",
"{",
"if",
"(",
"resetValue",
"&&",
"!",
"this",
".",
"isEmpty",
"(",
")",
")",
"{",
"this",
".",
"ngModel",
"=",
"this",
".",
"multiple",
"?",
"[",
"]",
":",
"''",
";",
"this",
".",
"onChange",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"change",
".",
"emit",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"renderValue",
"(",
"this",
".",
"ngModel",
")",
";",
"}",
"}",
"private",
"bindOptions",
"(",
")",
"{",
"this",
".",
"optionComponents",
".",
"forEach",
"(",
"(",
"selectOptionComponent",
")",
"=>",
"{",
"selectOptionComponent",
".",
"setMultiple",
"(",
"this",
".",
"multiple",
")",
";",
"selectOptionComponent",
".",
"onSelect",
"=",
"this",
".",
"onSelect",
".",
"bind",
"(",
"this",
")",
";",
"if",
"(",
"selectOptionComponent",
".",
"value",
"!=",
"null",
")",
"{",
"this",
".",
"textByValue",
"[",
"this",
".",
"stringifyValue",
"(",
"selectOptionComponent",
".",
"value",
")",
"]",
"=",
"selectOptionComponent",
".",
"contentWrapper",
".",
"nativeElement",
".",
"textContent",
".",
"trim",
"(",
")",
";",
"}",
"}",
")",
";",
"}",
"private",
"renderValue",
"(",
"value",
")",
"{",
"if",
"(",
"this",
".",
"multiple",
")",
"{",
"this",
".",
"text",
"=",
"value",
".",
"map",
"(",
"(",
"value",
")",
"=>",
"this",
".",
"textByValue",
"[",
"this",
".",
"stringifyValue",
"(",
"value",
")",
"]",
")",
".",
"join",
"(",
"', '",
")",
";",
"}",
"else",
"{",
"this",
".",
"text",
"=",
"this",
".",
"textByValue",
"[",
"this",
".",
"stringifyValue",
"(",
"value",
")",
"]",
"||",
"''",
";",
"}",
"this",
".",
"changeDetectionRef",
".",
"detectChanges",
"(",
")",
";",
"if",
"(",
"this",
".",
"optionComponents",
")",
"{",
"const",
"_value",
"=",
"(",
"!",
"this",
".",
"multiple",
"&&",
"this",
".",
"optionComponents",
".",
"length",
"===",
"1",
")",
"?",
"this",
".",
"optionComponents",
".",
"first",
".",
"value",
":",
"value",
";",
"this",
".",
"optionComponents",
".",
"forEach",
"(",
"(",
"selectOptionComponent",
")",
"=>",
"{",
"selectOptionComponent",
".",
"updateSelected",
"(",
"_value",
")",
";",
"}",
")",
";",
"}",
"}",
"private",
"stringifyValue",
"(",
"value",
")",
"{",
"switch",
"(",
"typeof",
"value",
")",
"{",
"case",
"'number'",
":",
"return",
"String",
"(",
"value",
")",
";",
"case",
"'object'",
":",
"return",
"JSON",
".",
"stringify",
"(",
"value",
")",
";",
"default",
":",
"return",
"(",
"!",
"!",
"value",
")",
"?",
"String",
"(",
"value",
")",
":",
"''",
";",
"}",
"}",
"public",
"toggle",
"(",
"$event",
")",
"{",
"if",
"(",
"!",
"this",
".",
"disabled",
")",
"{",
"$event",
".",
"stopPropagation",
"(",
")",
";",
"this",
".",
"popoverComponent",
".",
"toggle",
"(",
"$event",
")",
";",
"}",
"}",
"public",
"onFocus",
"(",
"$event",
")",
"{",
"if",
"(",
"!",
"this",
".",
"popoverComponent",
".",
"isVisible",
")",
"{",
"setTimeout",
"(",
"(",
")",
"=>",
"{",
"this",
".",
"popoverComponent",
".",
"show",
"(",
"$event",
")",
";",
"this",
".",
"selectInput",
".",
"nativeElement",
".",
"focus",
"(",
")",
";",
"}",
",",
"200",
")",
";",
"}",
"}",
"public",
"onInputFocus",
"(",
"$event",
")",
"{",
"if",
"(",
"this",
".",
"autocomplete",
")",
"{",
"this",
".",
"selectInput",
".",
"nativeElement",
".",
"select",
"(",
")",
";",
"}",
"}",
"private",
"onOpen",
"(",
")",
"{",
"if",
"(",
"!",
"this",
".",
"disabled",
")",
"{",
"this",
".",
"popoverElement",
".",
"style",
".",
"visibility",
"=",
"'hidden'",
";",
"setTimeout",
"(",
"(",
")",
"=>",
"{",
"this",
".",
"focused",
"=",
"true",
";",
"this",
".",
"selectValue",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"tryToUpdateDirection",
"(",
")",
";",
"this",
".",
"popoverElement",
".",
"style",
".",
"visibility",
"=",
"'visible'",
";",
"}",
")",
";",
"}",
"}",
"private",
"tryToUpdateDirection",
"(",
")",
"{",
"const",
"targetRect",
"=",
"this",
".",
"selectElement",
".",
"getBoundingClientRect",
"(",
")",
";",
"const",
"viewHeight",
"=",
"window",
".",
"innerHeight",
";",
"const",
"height",
"=",
"this",
".",
"popoverElement",
".",
"offsetHeight",
";",
"if",
"(",
"height",
")",
"{",
"const",
"bottomSpaceAvailable",
"=",
"viewHeight",
"-",
"targetRect",
".",
"bottom",
";",
"this",
".",
"directionUp",
"=",
"bottomSpaceAvailable",
"<",
"height",
";",
"this",
".",
"changeDetectionRef",
".",
"markForCheck",
"(",
")",
";",
"}",
"}",
"private",
"onClose",
"(",
")",
"{",
"if",
"(",
"!",
"this",
".",
"disabled",
")",
"{",
"this",
".",
"focused",
"=",
"false",
";",
"this",
".",
"selectValue",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"selectInput",
".",
"nativeElement",
".",
"value",
"=",
"this",
".",
"text",
";",
"this",
".",
"popoverElement",
".",
"style",
".",
"visibility",
"=",
"'hidden'",
";",
"this",
".",
"blur",
".",
"emit",
"(",
"this",
".",
"ngModel",
")",
";",
"}",
"}",
"private",
"onSelect",
"(",
"value",
")",
"{",
"if",
"(",
"!",
"this",
".",
"multiple",
")",
"{",
"this",
".",
"scrollToValue",
"(",
"value",
")",
";",
"}",
"if",
"(",
"!",
"isEqual",
"(",
"this",
".",
"ngModel",
",",
"value",
")",
")",
"{",
"this",
".",
"writeValue",
"(",
"value",
")",
";",
"this",
".",
"change",
".",
"emit",
"(",
"value",
")",
";",
"}",
"}",
"private",
"scrollToValue",
"(",
"value",
")",
"{",
"let",
"popover",
"=",
"this",
".",
"popoverComponent",
".",
"elementRef",
".",
"nativeElement",
";",
"let",
"list",
"=",
"popover",
".",
"querySelector",
"(",
"\".mdl-list\"",
")",
";",
"const",
"optionComponent",
"=",
"this",
".",
"optionComponents",
".",
"find",
"(",
"o",
"=>",
"o",
".",
"value",
"==",
"value",
")",
";",
"let",
"optionElement",
"=",
"optionComponent",
"?",
"optionComponent",
".",
"contentWrapper",
".",
"nativeElement",
":",
"null",
";",
"if",
"(",
"optionElement",
")",
"{",
"const",
"selectedItemElem",
"=",
"optionElement",
".",
"parentElement",
";",
"const",
"computedScrollTop",
"=",
"selectedItemElem",
".",
"offsetTop",
"-",
"(",
"list",
".",
"clientHeight",
"/",
"2",
")",
"+",
"(",
"selectedItemElem",
".",
"clientHeight",
"/",
"2",
")",
";",
"list",
".",
"scrollTop",
"=",
"Math",
".",
"max",
"(",
"computedScrollTop",
",",
"0",
")",
";",
"}",
"}",
"public",
"writeValue",
"(",
"value",
")",
"{",
"if",
"(",
"this",
".",
"multiple",
")",
"{",
"this",
".",
"ngModel",
"=",
"this",
".",
"ngModel",
"||",
"[",
"]",
";",
"if",
"(",
"!",
"value",
"||",
"this",
".",
"ngModel",
"===",
"value",
")",
"{",
"}",
"else",
"if",
"(",
"Array",
".",
"isArray",
"(",
"value",
")",
")",
"{",
"this",
".",
"ngModel",
"=",
"uniq",
"(",
"this",
".",
"ngModel",
".",
"concat",
"(",
"value",
")",
")",
";",
"}",
"else",
"if",
"(",
"this",
".",
"ngModel",
".",
"map",
"(",
"(",
"v",
")",
"=>",
"this",
".",
"stringifyValue",
"(",
"v",
")",
")",
".",
"indexOf",
"(",
"this",
".",
"stringifyValue",
"(",
"value",
")",
")",
"!=",
"-",
"1",
")",
"{",
"this",
".",
"ngModel",
"=",
"[",
"...",
"this",
".",
"ngModel",
".",
"filter",
"(",
"(",
"v",
")",
"=>",
"this",
".",
"stringifyValue",
"(",
"v",
")",
"!==",
"this",
".",
"stringifyValue",
"(",
"value",
")",
")",
"]",
";",
"}",
"else",
"if",
"(",
"!",
"!",
"value",
")",
"{",
"this",
".",
"ngModel",
"=",
"[",
"...",
"this",
".",
"ngModel",
",",
"value",
"]",
";",
"}",
"}",
"else",
"{",
"this",
".",
"ngModel",
"=",
"value",
";",
"}",
"this",
".",
"onChange",
"(",
"this",
".",
"ngModel",
")",
";",
"this",
".",
"renderValue",
"(",
"this",
".",
"ngModel",
")",
";",
"}",
"public",
"registerOnChange",
"(",
"fn",
")",
"{",
"this",
".",
"onChange",
"=",
"fn",
";",
"}",
"public",
"registerOnTouched",
"(",
"fn",
")",
"{",
"this",
".",
"onTouched",
"=",
"fn",
";",
"}",
"public",
"setDisabledState",
"(",
"isDisabled",
")",
"{",
"this",
".",
"disabled",
"=",
"isDisabled",
";",
"}",
"}",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"CommonModule",
",",
"MdlPopoverModule",
"]",
",",
"exports",
":",
"[",
"MdlSelectComponent",
",",
"MdlOptionComponent",
"]",
",",
"declarations",
":",
"[",
"MdlSelectComponent",
",",
"MdlOptionComponent",
"]",
",",
"providers",
":",
"[",
"MDL_SELECT_VALUE_ACCESSOR",
"]",
"}",
")",
"export",
"class",
"MdlSelectModule",
"{",
"static",
"forRoot",
"(",
")",
"{",
"return",
"{",
"ngModule",
":",
"MdlSelectModule",
",",
"providers",
":",
"[",
"]",
"}",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
170,
null,
null,
93,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
69,
null,
null,
null,
83,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
69,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
69,
null,
3,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
175,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
14623,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
464,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662027 | [
"import",
"{",
"TestBed",
",",
"async",
",",
"ComponentFixture",
"}",
"from",
"'@angular/core/testing'",
";",
"import",
"{",
"MdlSelectModule",
",",
"MdlSelectComponent",
"}",
"from",
"'./select'",
";",
"import",
"{",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"By",
"}",
"from",
"'@angular/platform-browser'",
";",
"import",
"{",
"FormControl",
",",
"FormGroup",
",",
"ReactiveFormsModule",
"}",
"from",
"'@angular/forms'",
";",
"import",
"{",
"Key",
"}",
"from",
"'./keyboard'",
";",
"export",
"function",
"createKeyboardEvent",
"(",
"type",
",",
"keyCode",
",",
"target",
"?",
")",
"{",
"let",
"event",
"=",
"document",
".",
"createEvent",
"(",
"'KeyboardEvent'",
")",
"as",
"any",
";",
"let",
"initEventFn",
"=",
"(",
"event",
".",
"initKeyEvent",
"||",
"event",
".",
"initKeyboardEvent",
")",
".",
"bind",
"(",
"event",
")",
";",
"let",
"originalPreventDefault",
"=",
"event",
".",
"preventDefault",
";",
"initEventFn",
"(",
"type",
",",
"true",
",",
"true",
",",
"window",
",",
"0",
",",
"0",
",",
"0",
",",
"0",
",",
"0",
",",
"keyCode",
")",
";",
"Object",
".",
"defineProperties",
"(",
"event",
",",
"{",
"keyCode",
":",
"{",
"get",
":",
"(",
")",
"=>",
"keyCode",
"}",
",",
"target",
":",
"{",
"get",
":",
"(",
")",
"=>",
"target",
"}",
"}",
")",
";",
"event",
".",
"preventDefault",
"=",
"function",
"(",
")",
"{",
"Object",
".",
"defineProperty",
"(",
"event",
",",
"'defaultPrevented'",
",",
"{",
"get",
":",
"(",
")",
"=>",
"true",
"}",
")",
";",
"return",
"originalPreventDefault",
".",
"apply",
"(",
"this",
",",
"arguments",
")",
";",
"}",
";",
"return",
"event",
";",
"}",
"export",
"function",
"dispatchEvent",
"(",
"node",
",",
"event",
")",
"{",
"node",
".",
"dispatchEvent",
"(",
"event",
")",
";",
"return",
"event",
";",
"}",
"export",
"function",
"dispatchKeydownEvent",
"(",
"node",
",",
"keycode",
")",
"{",
"return",
"dispatchEvent",
"(",
"node",
",",
"createKeyboardEvent",
"(",
"'keydown'",
",",
"keycode",
",",
"node",
")",
")",
";",
"}",
"describe",
"(",
"'MdlSelect'",
",",
"(",
")",
"=>",
"{",
"describe",
"(",
"'single'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestSingleComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestSingleComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should support floating-label attr'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"expect",
"(",
"selectNativeElement",
".",
"classList",
".",
"contains",
"(",
"'mdl-select--floating-label'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class mdl-select--floating-label'",
")",
";",
"expect",
"(",
"selectComponent",
".",
"nativeElement",
".",
"querySelector",
"(",
"'.mdl-textfield__label'",
")",
".",
"innerText",
")",
".",
"toBe",
"(",
"selectComponent",
".",
"componentInstance",
".",
"label",
",",
"'did not set correct label text'",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create the component and add the mdl-select css class'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"expect",
"(",
"selectNativeElement",
".",
"classList",
".",
"contains",
"(",
"'mdl-select'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not has css class mdl-select'",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should support ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponent",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"1",
",",
"'did not init ngModel'",
")",
";",
"testInstance",
".",
"personId",
"=",
"2",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponent",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"2",
",",
"'did not update ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should reset ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"1",
",",
"'did not init ngModel'",
")",
";",
"selectComponentInstance",
".",
"reset",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"''",
",",
"'did not reset ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should bind options on options change'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'bindOptions'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"testInstance",
".",
"people",
".",
"push",
"(",
"{",
"id",
":",
"4",
",",
"name",
":",
"'Gary Cole'",
"}",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"bindOptions",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"textByValue",
"[",
"4",
"]",
")",
".",
"toEqual",
"(",
"'Gary Cole'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'focus should have keyboard events'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"jasmine",
".",
"clock",
"(",
")",
".",
"uninstall",
"(",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"install",
"(",
")",
";",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"let",
"selectComponentInstance",
"=",
"selectComponent",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onKeyDown'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onArrow'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"selectNativeElement",
".",
"querySelector",
"(",
"\"span[tabindex]\"",
")",
".",
"focus",
"(",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"tick",
"(",
"500",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"popoverComponent",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"true",
",",
"'toggle did not update isVisible to true'",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
".",
"querySelector",
"(",
"\"span\"",
")",
",",
"Key",
".",
"DownArrow",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
".",
"querySelector",
"(",
"\"span\"",
")",
",",
"Key",
".",
"UpArrow",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
".",
"querySelector",
"(",
"\"span\"",
")",
",",
"Key",
".",
"Tab",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"debugElement",
".",
"nativeElement",
".",
"click",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"popoverComponent",
".",
"isVisible",
")",
".",
"toEqual",
"(",
"false",
",",
"'toggle did not update isVisible to false'",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onKeyDown",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onArrow",
".",
"calls",
".",
"allArgs",
"(",
")",
".",
"map",
"(",
"(",
"args",
")",
"=>",
"args",
"[",
"1",
"]",
")",
")",
".",
"toEqual",
"(",
"[",
"1",
",",
"-",
"1",
"]",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"uninstall",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should auto-select searched options'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"jasmine",
".",
"clock",
"(",
")",
".",
"uninstall",
"(",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"install",
"(",
")",
";",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"let",
"selectComponentInstance",
"=",
"selectComponent",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onSelect'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onCharacterKeydown'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"selectNativeElement",
".",
"querySelector",
"(",
"\"span[tabindex]\"",
")",
".",
"focus",
"(",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"tick",
"(",
"500",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"1",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
",",
"Key",
".",
"B",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onSelect",
")",
".",
"not",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onCharacterKeydown",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"1",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
",",
"Key",
".",
"O",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onSelect",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"searchQuery",
")",
".",
"toEqual",
"(",
"'bo'",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"3",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"tick",
"(",
"300",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"searchQuery",
")",
".",
"toEqual",
"(",
"''",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
",",
"Key",
".",
"A",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"onSelect",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"2",
")",
";",
"jasmine",
".",
"clock",
"(",
")",
".",
"uninstall",
"(",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'single, without model'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestSingleComponentNoModel",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestSingleComponentNoModel",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should select vlaue and display text'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"let",
"noModelData",
"=",
"[",
"{",
"value",
":",
"'first'",
",",
"text",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"value",
":",
"'second'",
",",
"text",
":",
"'Aaron Paul'",
"}",
",",
"{",
"value",
":",
"'third'",
",",
"text",
":",
"'Bob Odenkirk'",
"}",
"]",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"noModelData",
"[",
"0",
"]",
".",
"value",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"text",
")",
".",
"toEqual",
"(",
"noModelData",
"[",
"0",
"]",
".",
"text",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"noModelData",
"[",
"1",
"]",
".",
"value",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"text",
")",
".",
"toEqual",
"(",
"noModelData",
"[",
"1",
"]",
".",
"text",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'disabled'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
",",
"ReactiveFormsModule",
"]",
",",
"declarations",
":",
"[",
"TestDisabledComponent",
"]",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestDisabledComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create the component and make it disabled'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponent",
".",
"disabled",
")",
".",
"toBe",
"(",
"true",
",",
"'select field should be disabled'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'autocomplete'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestAutoCompleteComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestAutoCompleteComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should not make autoselection when it\\'s on'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"let",
"selectComponentInstance",
"=",
"selectComponent",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onSelect'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onCharacterKeydown'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"selectNativeElement",
".",
"querySelector",
"(",
"\"input\"",
")",
".",
"focus",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toBeNull",
"(",
")",
";",
"dispatchKeydownEvent",
"(",
"selectNativeElement",
",",
"Key",
".",
"B",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toBeNull",
"(",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should make autoselection on enter'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"let",
"selectComponentInstance",
"=",
"selectComponent",
".",
"componentInstance",
";",
"let",
"input",
"=",
"selectNativeElement",
".",
"querySelector",
"(",
"\"input\"",
")",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onSelect'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'onCharacterKeydown'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"input",
".",
"focus",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toBeNull",
"(",
")",
";",
"dispatchEvent",
"(",
"input",
",",
"createKeyboardEvent",
"(",
"'keyup'",
",",
"Key",
".",
"B",
",",
"input",
")",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toBeNull",
"(",
")",
";",
"dispatchEvent",
"(",
"input",
",",
"createKeyboardEvent",
"(",
"'keyup'",
",",
"Key",
".",
"Enter",
",",
"input",
")",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"1",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should make input writable when autoselection is off'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"expect",
"(",
"selectNativeElement",
".",
"querySelector",
"(",
"\"input\"",
")",
".",
"readonly",
")",
".",
"toBeFalsy",
"(",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'multiple'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestMultipleComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestMultipleComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should create the component and add the mdl-select css class'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponent",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
";",
"let",
"selectNativeElement",
"=",
"selectComponent",
".",
"nativeElement",
";",
"expect",
"(",
"selectNativeElement",
".",
"classList",
".",
"contains",
"(",
"'mdl-select'",
")",
")",
".",
"toBe",
"(",
"true",
",",
"'did not have css class mdl-select'",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should support ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"1",
",",
"2",
"]",
",",
"'did not init ngModel'",
")",
";",
"testInstance",
".",
"personIds",
"=",
"[",
"1",
"]",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"1",
"]",
",",
"'did not update ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should reset ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'bindOptions'",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"1",
",",
"2",
"]",
",",
"'did not init ngModel'",
")",
";",
"selectComponentInstance",
".",
"reset",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"]",
",",
"'did not reset ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should select and deselect value'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"expect",
"(",
"selectComponentInstance",
".",
"multiple",
")",
".",
"toBe",
"(",
"true",
",",
"'is not multiple'",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"3",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"1",
",",
"2",
",",
"3",
"]",
",",
"'did not update ngModel on select 3'",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"3",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"1",
",",
"2",
"]",
",",
"'did not update ngModel on deselect 3'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should bind options on options change'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'bindOptions'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"testInstance",
".",
"people",
".",
"push",
"(",
"{",
"id",
":",
"4",
",",
"name",
":",
"'Gary Cole'",
"}",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"bindOptions",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"textByValue",
"[",
"4",
"]",
")",
".",
"toEqual",
"(",
"'Gary Cole'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"describe",
"(",
"'object'",
",",
"(",
")",
"=>",
"{",
"let",
"fixture",
";",
"beforeEach",
"(",
"async",
"(",
"(",
")",
"=>",
"{",
"TestBed",
".",
"configureTestingModule",
"(",
"{",
"imports",
":",
"[",
"MdlSelectModule",
".",
"forRoot",
"(",
")",
"]",
",",
"declarations",
":",
"[",
"TestObjectComponent",
"]",
",",
"}",
")",
";",
"TestBed",
".",
"compileComponents",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"fixture",
"=",
"TestBed",
".",
"createComponent",
"(",
"TestObjectComponent",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should support ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"i",
":",
"2",
",",
"n",
":",
"'Aaron Paul'",
"}",
"]",
",",
"'did not init ngModel'",
")",
";",
"testInstance",
".",
"personObjs",
"=",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
"]",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
"]",
",",
"'did not update ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should reset ngModel'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'bindOptions'",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"i",
":",
"2",
",",
"n",
":",
"'Aaron Paul'",
"}",
"]",
",",
"'did not init ngModel'",
")",
";",
"selectComponentInstance",
".",
"reset",
"(",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"]",
",",
"'did not reset ngModel'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should select and deselect value'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"let",
"arrWith3Obj",
"=",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"i",
":",
"2",
",",
"n",
":",
"'Aaron Paul'",
"}",
",",
"{",
"i",
":",
"3",
",",
"n",
":",
"'Bob Odenkirk'",
"}",
"]",
";",
"expect",
"(",
"selectComponentInstance",
".",
"multiple",
")",
".",
"toBe",
"(",
"true",
",",
"'is not multiple'",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"arrWith3Obj",
"[",
"2",
"]",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"arrWith3Obj",
",",
"'did not update ngModel on select 3'",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"arrWith3Obj",
"[",
"2",
"]",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"arrWith3Obj",
"[",
"0",
"]",
",",
"arrWith3Obj",
"[",
"1",
"]",
"]",
",",
"'did not update ngModel on deselect 3'",
")",
";",
"selectComponentInstance",
".",
"onSelect",
"(",
"arrWith3Obj",
"[",
"1",
"]",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"ngModel",
")",
".",
"toEqual",
"(",
"[",
"arrWith3Obj",
"[",
"0",
"]",
"]",
",",
"'did not update ngModel on deselect 3'",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"it",
"(",
"'should bind options on options change'",
",",
"async",
"(",
"(",
")",
"=>",
"{",
"let",
"testInstance",
"=",
"fixture",
".",
"componentInstance",
";",
"let",
"selectComponentInstance",
"=",
"fixture",
".",
"debugElement",
".",
"query",
"(",
"By",
".",
"directive",
"(",
"MdlSelectComponent",
")",
")",
".",
"componentInstance",
";",
"spyOn",
"(",
"selectComponentInstance",
",",
"'bindOptions'",
")",
".",
"and",
".",
"callThrough",
"(",
")",
";",
"testInstance",
".",
"people",
".",
"push",
"(",
"{",
"id",
":",
"4",
",",
"name",
":",
"'Gary Cole'",
"}",
")",
";",
"fixture",
".",
"detectChanges",
"(",
")",
";",
"fixture",
".",
"whenStable",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"expect",
"(",
"selectComponentInstance",
".",
"bindOptions",
")",
".",
"toHaveBeenCalled",
"(",
")",
";",
"expect",
"(",
"selectComponentInstance",
".",
"textByValue",
"[",
"JSON",
".",
"stringify",
"(",
"{",
"i",
":",
"4",
",",
"n",
":",
"'Gary Cole'",
"}",
")",
"]",
")",
".",
"toEqual",
"(",
"'Gary Cole'",
")",
";",
"}",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"}",
")",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-disabled-component'",
",",
"template",
":",
"`\n <form [formGroup]=\"form\">\n <mdl-select formControlName=\"personId\">\n <mdl-option *ngFor=\"let p of people\" [value]=\"p.id\">{{p.name}}</mdl-option>\n </mdl-select>\n </form>\n `",
"}",
")",
"class",
"TestDisabledComponent",
"{",
"form",
":",
"FormGroup",
";",
"personId",
":",
"FormControl",
"=",
"new",
"FormControl",
"(",
"{",
"value",
":",
"1",
",",
"disabled",
":",
"true",
"}",
")",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"]",
";",
"constructor",
"(",
")",
"{",
"this",
".",
"form",
"=",
"new",
"FormGroup",
"(",
"{",
"personId",
":",
"this",
".",
"personId",
"}",
")",
";",
"}",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-single-component'",
",",
"template",
":",
"`\n <mdl-select label=\"{{label}}\" floating-label [autocomplete]=\"true\" [(ngModel)]=\"selectedValue\">\n <mdl-option *ngFor=\"let p of people\" [value]=\"p.id\">{{p.name}}</mdl-option>\n </mdl-select>\n `",
"}",
")",
"class",
"TestAutoCompleteComponent",
"{",
"selectedValue",
":",
"any",
"=",
"null",
";",
"label",
":",
"string",
"=",
"'floating label'",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"]",
";",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-single-component'",
",",
"template",
":",
"`\n <mdl-select label=\"{{label}}\" floating-label [(ngModel)]=\"personId\">\n <mdl-option *ngFor=\"let p of people\" [value]=\"p.id\">{{p.name}}</mdl-option>\n </mdl-select>\n `",
"}",
")",
"class",
"TestSingleComponent",
"{",
"personId",
":",
"number",
"=",
"1",
";",
"label",
":",
"string",
"=",
"'floating label'",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"]",
";",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-single-component-no-model'",
",",
"template",
":",
"`\n <mdl-select placeholder=\"{{placeholder}}\">\n <mdl-option value=\"first\">Bryan Cranston</mdl-option>\n <mdl-option value=\"second\">Aaron Paul</mdl-option>\n <mdl-option value=\"third\">Bob Odenkirk</mdl-option>\n </mdl-select>\n `",
"}",
")",
"class",
"TestSingleComponentNoModel",
"{",
"placeholder",
":",
"string",
"=",
"'no model'",
";",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-multiple-component'",
",",
"template",
":",
"`\n <mdl-select [(ngModel)]=\"personIds\" [multiple]=\"true\">\n <mdl-option *ngFor=\"let p of people\" [value]=\"p.id\">{{p.name}}</mdl-option>\n </mdl-select>\n `",
"}",
")",
"class",
"TestMultipleComponent",
"{",
"personIds",
":",
"number",
"[",
"]",
"=",
"[",
"1",
",",
"2",
"]",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"]",
";",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'test-object-component'",
",",
"template",
":",
"`\n <mdl-select [(ngModel)]=\"personObjs\" [multiple]=\"true\">\n <mdl-option *ngFor=\"let p of people\" [value]=\"{ i: p.id, n: p.name }\">{{p.name}}</mdl-option>\n </mdl-select>\n `",
"}",
")",
"class",
"TestObjectComponent",
"{",
"personObjs",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"i",
":",
"1",
",",
"n",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"i",
":",
"2",
",",
"n",
":",
"'Aaron Paul'",
"}",
"]",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"]",
";",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
3,
null,
9,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
37,
null,
null,
null,
37,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
37,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
131,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
57,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662028 | [
"import",
"{",
"ChangeDetectionStrategy",
",",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"Router",
",",
"ActivatedRoute",
"}",
"from",
"'@angular/router'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'popover-demo'",
",",
"templateUrl",
":",
"'popover.component.html'",
",",
"changeDetection",
":",
"ChangeDetectionStrategy",
".",
"OnPush",
",",
"styles",
":",
"[",
"`\n :host {\n flex-grow: 1;\n }\n .container {\n width:200px;\n height: 212px;\n position: relative;\n margin: auto;\n }\n .bar {\n box-sizing: border-box;\n width: 100%;\n padding: 16px;\n height: 64px;\n }\n .bar button {\n color: white;\n }\n .top-right{\n position:absolute;\n box-sizing: border-box;\n right: 16px;\n }\n .background {\n background: white;\n height: 148px;\n width: 100%;\n }\n `",
"]",
"}",
")",
"export",
"class",
"PopoverDemo",
"{",
"onShow",
"(",
")",
"{",
"console",
".",
"log",
"(",
"'onShow'",
")",
";",
"}",
"onHide",
"(",
")",
"{",
"console",
".",
"log",
"(",
"'onHide'",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662029 | [
"import",
"{",
"Component",
",",
"ChangeDetectionStrategy",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"Router",
",",
"ActivatedRoute",
"}",
"from",
"'@angular/router'",
";",
"import",
"{",
"FormGroup",
",",
"FormControl",
"}",
"from",
"'@angular/forms'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'select-demo'",
",",
"templateUrl",
":",
"'select.component.html'",
",",
"changeDetection",
":",
"ChangeDetectionStrategy",
".",
"OnPush",
"}",
")",
"export",
"class",
"SelectDemo",
"{",
"form",
":",
"FormGroup",
";",
"personId",
":",
"FormControl",
"=",
"new",
"FormControl",
"(",
"1",
")",
";",
"people",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"1",
",",
"name",
":",
"'Bryan Cranston'",
"}",
",",
"{",
"id",
":",
"2",
",",
"name",
":",
"'Aaron Paul'",
"}",
",",
"{",
"id",
":",
"3",
",",
"name",
":",
"'Bob Odenkirk'",
"}",
",",
"{",
"id",
":",
"4",
",",
"name",
":",
"'Dean Norris'",
"}",
",",
"{",
"id",
":",
"5",
",",
"name",
":",
"'Jonathan Banks'",
"}",
",",
"{",
"id",
":",
"6",
",",
"name",
":",
"'Seal Henry Olusegun Olumide Adeola Samuel'",
"}",
",",
"{",
"id",
":",
"7",
",",
"name",
":",
"'Rami Malek'",
",",
"disabled",
":",
"true",
"}",
",",
"{",
"id",
":",
"8",
",",
"name",
":",
"'Christian Slater'",
"}",
",",
"{",
"id",
":",
"9",
",",
"name",
":",
"'Martin Wallström'",
"}",
",",
"{",
"id",
":",
"10",
",",
"name",
":",
"'Angela Sarafyan'",
"}",
",",
"{",
"id",
":",
"11",
",",
"name",
":",
"'Robert Pattinson'",
"}",
",",
"{",
"id",
":",
"12",
",",
"name",
":",
"'Billy Bob Thornton'",
",",
"disabled",
":",
"true",
"}",
"]",
";",
"countryCode",
":",
"string",
"=",
"'FR'",
";",
"countryLabel",
":",
"string",
"=",
"'Country'",
";",
"autocompleteCountryCode",
":",
"string",
"=",
"null",
";",
"otherCountryCode",
":",
"string",
"=",
"null",
";",
"otherCountryCode2",
":",
"string",
"=",
"null",
";",
"countryCodes",
":",
"string",
"[",
"]",
"=",
"[",
"'FR'",
",",
"'DE'",
",",
"'IT'",
"]",
";",
"countries",
":",
"any",
"=",
"[",
"{",
"name",
":",
"'France'",
",",
"code",
":",
"'FR'",
"}",
",",
"{",
"name",
":",
"'Germany'",
",",
"code",
":",
"'DE'",
"}",
",",
"{",
"name",
":",
"'Italy'",
",",
"code",
":",
"'IT'",
"}",
",",
"{",
"name",
":",
"'Netherlands'",
",",
"code",
":",
"'NL'",
"}",
",",
"{",
"name",
":",
"'Poland'",
",",
"code",
":",
"'PL'",
"}",
",",
"{",
"name",
":",
"'Spain'",
",",
"code",
":",
"'ES'",
"}",
",",
"{",
"name",
":",
"'United Kingdom'",
",",
"code",
":",
"'UK'",
"}",
",",
"]",
";",
"color",
":",
"string",
"=",
"\"all\"",
";",
"colors",
":",
"any",
"=",
"[",
"{",
"name",
":",
"\"Red\"",
",",
"code",
":",
"\"r\"",
"}",
",",
"{",
"name",
":",
"\"Green\"",
",",
"code",
":",
"\"g\"",
"}",
",",
"{",
"name",
":",
"\"Blue\"",
",",
"code",
":",
"\"b\"",
"}",
"]",
";",
"foodCategories",
":",
"any",
"[",
"]",
"=",
"[",
"{",
"id",
":",
"'1'",
",",
"name",
":",
"'Vegetables'",
"}",
",",
"{",
"id",
":",
"'2'",
",",
"name",
":",
"'Fruits'",
"}",
",",
"]",
";",
"foodByCategory",
":",
"any",
"=",
"{",
"'1'",
":",
"[",
"'Avocado'",
",",
"'Beet'",
",",
"'Broccoli'",
",",
"'Carrot'",
",",
"'Cucumber'",
",",
"'Onion'",
",",
"'Potato'",
",",
"'Pumpkin'",
",",
"'Radish'",
",",
"'Spinach'",
"]",
",",
"'2'",
":",
"[",
"'Apple'",
",",
"'Banana'",
",",
"'Cherry'",
",",
"'Grapes'",
",",
"'Orange'",
",",
"'Peach'",
",",
"'Pear'",
",",
"'Pineapple'",
",",
"'Plum'",
",",
"'Strawberry'",
"]",
"}",
";",
"food",
":",
"string",
"[",
"]",
";",
"arrayForm",
":",
"FormGroup",
";",
"locationControl",
"=",
"new",
"FormControl",
"(",
"''",
")",
";",
"cityCoordinates",
":",
"any",
"=",
"[",
"{",
"name",
":",
"'İstanbul'",
",",
"latitude",
":",
"'41.0055005'",
",",
"longitude",
":",
"'28.7319952'",
"}",
",",
"{",
"name",
":",
"'Paris'",
",",
"latitude",
":",
"'48.8589507'",
",",
"longitude",
":",
"'2.2770202'",
"}",
",",
"{",
"name",
":",
"'London'",
",",
"latitude",
":",
"'51.5287718'",
",",
"longitude",
":",
"'-0.2416813'",
"}",
",",
"{",
"name",
":",
"'New York'",
",",
"latitude",
":",
"'40.6976701'",
",",
"longitude",
":",
"'-74.2598654'",
"}",
",",
"{",
"name",
":",
"'San Francisco'",
",",
"latitude",
":",
"'37.757815'",
",",
"longitude",
":",
"'-122.50764'",
"}",
",",
"{",
"name",
":",
"'Sydney'",
",",
"latitude",
":",
"'-33.8474027'",
",",
"longitude",
":",
"'150.6517794'",
"}",
",",
"{",
"name",
":",
"'Shanghai'",
",",
"latitude",
":",
"'31.2246325'",
",",
"longitude",
":",
"'121.1965643'",
"}",
"]",
";",
"locations",
":",
"any",
"[",
"]",
";",
"ngOnInit",
"(",
")",
"{",
"this",
".",
"form",
"=",
"new",
"FormGroup",
"(",
"{",
"personId",
":",
"this",
".",
"personId",
"}",
")",
";",
"this",
".",
"arrayForm",
"=",
"new",
"FormGroup",
"(",
"{",
"locations",
":",
"this",
".",
"locationControl",
"}",
")",
";",
"this",
".",
"locationControl",
".",
"valueChanges",
".",
"subscribe",
"(",
"(",
"value",
")",
"=>",
"{",
"console",
".",
"log",
"(",
"'locationControl.valueChanges'",
",",
"value",
")",
";",
"}",
")",
";",
"this",
".",
"locationControl",
".",
"setValue",
"(",
"[",
"{",
"latitude",
":",
"'41.0055005'",
",",
"longitude",
":",
"'28.7319952'",
"}",
",",
"{",
"latitude",
":",
"'37.757815'",
",",
"longitude",
":",
"'-122.50764'",
"}",
"]",
")",
";",
"console",
".",
"log",
"(",
"'this.arrayForm.value'",
",",
"this",
".",
"arrayForm",
".",
"value",
")",
";",
"this",
".",
"personId",
".",
"valueChanges",
".",
"subscribe",
"(",
"(",
"value",
")",
"=>",
"{",
"console",
".",
"log",
"(",
"'personId.valueChanges'",
",",
"value",
")",
";",
"}",
")",
";",
"}",
"onChange",
"(",
"value",
")",
"{",
"console",
".",
"log",
"(",
"'onChange'",
",",
"value",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662030 | [
"import",
"{",
"ChangeDetectionStrategy",
",",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"MdlDatePickerService",
"}",
"from",
"'../../../components/datepicker/datepicker.service'",
";",
"import",
"*",
"as",
"moment",
"from",
"'moment'",
";",
"import",
"'moment/locale/en-gb'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'datepicker-demo'",
",",
"templateUrl",
":",
"'datepicker.component.html'",
"}",
")",
"export",
"class",
"DatepickerDemo",
"{",
"public",
"selectedDate",
":",
"any",
";",
"constructor",
"(",
"private",
"datePicker",
")",
"{",
"}",
"public",
"pickADate",
"(",
"$event",
")",
"{",
"this",
".",
"datePicker",
".",
"selectDate",
"(",
"this",
".",
"selectedDate",
",",
"{",
"openFrom",
":",
"$event",
"}",
")",
".",
"subscribe",
"(",
"(",
"selectedDate",
")",
"=>",
"{",
"this",
".",
"selectedDate",
"=",
"selectedDate",
"?",
"moment",
"(",
"selectedDate",
")",
":",
"null",
";",
"}",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
4,
null,
41,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
26,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662031 | [
"import",
"{",
"Component",
"}",
"from",
"'@angular/core'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'fab-menu-demo'",
",",
"templateUrl",
":",
"'fab-menu-demo.component.html'",
",",
"styleUrls",
":",
"[",
"'fab-menu-demo.component.scss'",
"]",
"}",
")",
"export",
"class",
"FabMenuDemo",
"{",
"alert",
"(",
"msg",
")",
"{",
"console",
".",
"log",
"(",
"msg",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662032 | [
"import",
"{",
"Component",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"ActivatedRoute",
",",
"Router",
",",
"Routes",
"}",
"from",
"'@angular/router'",
";",
"import",
"'../css/style.scss'",
";",
"import",
"{",
"PopoverDemo",
"}",
"from",
"'./popover/popover.component'",
";",
"import",
"{",
"SelectDemo",
"}",
"from",
"'./select/select.component'",
";",
"import",
"{",
"ExpansionPanelDemo",
"}",
"from",
"'./expansion-panel/expansion-panel.component'",
";",
"import",
"{",
"MdlLayoutComponent",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"DatepickerDemo",
"}",
"from",
"'./datepicker/datepicker.component'",
";",
"import",
"{",
"FabMenuDemo",
"}",
"from",
"'./fab-menu/fab-menu-demo.component'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'home'",
",",
"templateUrl",
":",
"'home.html'",
"}",
")",
"export",
"class",
"Home",
"{",
"}",
"export",
"const",
"appRoutes",
"=",
"[",
"{",
"path",
":",
"''",
",",
"component",
":",
"Home",
",",
"data",
":",
"{",
"title",
":",
"'Home'",
"}",
"}",
",",
"{",
"path",
":",
"'datepicker'",
",",
"component",
":",
"DatepickerDemo",
",",
"data",
":",
"{",
"title",
":",
"'Date Picker'",
"}",
"}",
",",
"{",
"path",
":",
"'popover'",
",",
"component",
":",
"PopoverDemo",
",",
"data",
":",
"{",
"title",
":",
"'Popover'",
"}",
"}",
",",
"{",
"path",
":",
"'select'",
",",
"component",
":",
"SelectDemo",
",",
"data",
":",
"{",
"title",
":",
"'Select'",
"}",
"}",
",",
"{",
"path",
":",
"'expansion-panel'",
",",
"component",
":",
"ExpansionPanelDemo",
",",
"data",
":",
"{",
"title",
":",
"'Expanion Panel'",
"}",
"}",
",",
"{",
"path",
":",
"'fab-menu'",
",",
"component",
":",
"FabMenuDemo",
",",
"data",
":",
"{",
"title",
":",
"'FAB Menu'",
"}",
"}",
",",
"{",
"path",
":",
"'**'",
",",
"redirectTo",
":",
"''",
"}",
"]",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'root-app'",
",",
"templateUrl",
":",
"'./app.component.html'",
",",
"styleUrls",
":",
"[",
"'./app.component.scss'",
"]",
"}",
")",
"export",
"class",
"AppComponent",
"{",
"public",
"title",
"=",
"'Angular - Material Design Lite Extensions'",
";",
"public",
"componentSelected",
"(",
"mainLayout",
")",
"{",
"mainLayout",
".",
"closeDrawerOnSmallScreens",
"(",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
209,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662033 | [
"import",
"{",
"Pipe",
",",
"PipeTransform",
"}",
"from",
"'@angular/core'",
";",
"import",
"matchSorter",
"from",
"'match-sorter'",
";",
"@",
"Pipe",
"(",
"{",
"name",
":",
"'matchSorter'",
",",
"}",
")",
"export",
"class",
"MatchSorterPipe",
"implements",
"PipeTransform",
"{",
"transform",
"(",
"input",
"=",
"[",
"]",
",",
"options",
",",
"value",
")",
"{",
"return",
"matchSorter",
"(",
"input",
",",
"value",
",",
"typeof",
"options",
"===",
"'string'",
"?",
"{",
"keys",
":",
"[",
"options",
"]",
"}",
":",
"options",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662034 | [
"import",
"{",
"NgModule",
",",
"ApplicationRef",
",",
"ApplicationInitStatus",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"FormsModule",
",",
"ReactiveFormsModule",
"}",
"from",
"'@angular/forms'",
";",
"import",
"{",
"BrowserModule",
"}",
"from",
"'@angular/platform-browser'",
";",
"import",
"{",
"AppComponent",
",",
"appRoutes",
",",
"Home",
"}",
"from",
"'./app.component'",
";",
"import",
"{",
"MdlModule",
"}",
"from",
"'@angular-mdl/core'",
";",
"import",
"{",
"RouterModule",
"}",
"from",
"'@angular/router'",
";",
"import",
"{",
"PopoverDemo",
"}",
"from",
"'./popover/popover.component'",
";",
"import",
"{",
"SelectDemo",
"}",
"from",
"'./select/select.component'",
";",
"import",
"{",
"MatchSorterPipe",
"}",
"from",
"'./select/matchSorter.pipe'",
";",
"import",
"{",
"ExpansionPanelDemo",
"}",
"from",
"'./expansion-panel/expansion-panel.component'",
";",
"import",
"{",
"MdlPopoverModule",
"}",
"from",
"'../../components/popover/popover'",
";",
"import",
"{",
"MdlSelectModule",
"}",
"from",
"'../../components/select/select'",
";",
"import",
"{",
"MdlFabMenuModule",
"}",
"from",
"'../../components/fab-menu/fab-menu'",
";",
"import",
"{",
"MdlExpansionPanelModule",
"}",
"from",
"'../../components/expansion-panel/expansion-panel.component'",
";",
"import",
"{",
"PrismDirective",
"}",
"from",
"'@mseemann/prism'",
";",
"import",
"{",
"BrowserAnimationsModule",
"}",
"from",
"'@angular/platform-browser/animations'",
";",
"import",
"{",
"DatepickerDemo",
"}",
"from",
"'./datepicker/datepicker.component'",
";",
"import",
"{",
"MdlDatePickerModule",
"}",
"from",
"'../../components/datepicker/index'",
";",
"import",
"{",
"FabMenuDemo",
"}",
"from",
"'./fab-menu/fab-menu-demo.component'",
";",
"@",
"NgModule",
"(",
"{",
"imports",
":",
"[",
"BrowserModule",
",",
"FormsModule",
",",
"ReactiveFormsModule",
",",
"MdlModule",
",",
"RouterModule",
".",
"forRoot",
"(",
"appRoutes",
")",
",",
"MdlPopoverModule",
",",
"MdlSelectModule",
",",
"MdlFabMenuModule",
",",
"MdlExpansionPanelModule",
",",
"BrowserAnimationsModule",
",",
"MdlDatePickerModule",
"]",
",",
"declarations",
":",
"[",
"AppComponent",
",",
"FabMenuDemo",
",",
"Home",
",",
"DatepickerDemo",
",",
"PopoverDemo",
",",
"SelectDemo",
",",
"MatchSorterPipe",
",",
"ExpansionPanelDemo",
",",
"PrismDirective",
",",
"]",
",",
"entryComponents",
":",
"[",
"AppComponent",
"]",
",",
"bootstrap",
":",
"[",
"]",
"}",
")",
"export",
"class",
"AppModule",
"{",
"constructor",
"(",
"private",
"appRef",
",",
"private",
"appStatus",
")",
"{",
"}",
"public",
"ngDoBootstrap",
"(",
")",
"{",
"this",
".",
"appStatus",
".",
"donePromise",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"let",
"script",
"=",
"document",
".",
"createElement",
"(",
"'script'",
")",
";",
"script",
".",
"innerHTML",
"=",
"''",
";",
"script",
".",
"src",
"=",
"'https://buttons.github.io/buttons.js'",
";",
"let",
"anyScriptTag",
"=",
"document",
".",
"getElementsByTagName",
"(",
"'script'",
")",
"[",
"0",
"]",
";",
"anyScriptTag",
".",
"parentNode",
".",
"insertBefore",
"(",
"script",
",",
"anyScriptTag",
")",
";",
"}",
")",
";",
"this",
".",
"appRef",
".",
"bootstrap",
"(",
"AppComponent",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1769,
null,
null,
0,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
459,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
459,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662035 | [
"import",
"{",
"join",
"}",
"from",
"'path'",
";",
"export",
"const",
"PROJECT_ROOT",
"=",
"join",
"(",
"__dirname",
",",
"'../..'",
")",
";",
"export",
"const",
"SOURCE_ROOT",
"=",
"join",
"(",
"PROJECT_ROOT",
",",
"'src'",
")",
";",
"export",
"const",
"DIST_ROOT",
"=",
"join",
"(",
"PROJECT_ROOT",
",",
"'dist'",
")",
";",
"export",
"const",
"DIST_COMPONENTS_ROOT",
"=",
"join",
"(",
"DIST_ROOT",
",",
"'@angular-mdl'",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null
] |
662036 | [
"import",
"{",
"task",
"}",
"from",
"'gulp'",
";",
"import",
"*",
"as",
"gulp",
"from",
"'gulp'",
";",
"const",
"gulpClean",
"=",
"require",
"(",
"'gulp-clean'",
")",
";",
"task",
"(",
"'clean'",
",",
"[",
"]",
",",
"(",
"done",
")",
"=>",
"{",
"return",
"gulp",
".",
"src",
"(",
"'dist'",
",",
"{",
"read",
":",
"false",
"}",
")",
".",
"pipe",
"(",
"gulpClean",
"(",
"null",
")",
")",
";",
"}",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662037 | [
"import",
"*",
"as",
"gulp",
"from",
"'gulp'",
";",
"import",
"{",
"SOURCE_ROOT",
",",
"DIST_COMPONENTS_ROOT",
",",
"PROJECT_ROOT",
"}",
"from",
"'../constants'",
";",
"import",
"*",
"as",
"path",
"from",
"'path'",
";",
"import",
"*",
"as",
"gulpTs",
"from",
"'gulp-typescript'",
";",
"import",
"WritableStream",
"=",
"NodeJS",
".",
"WritableStream",
";",
"var",
"exec",
"=",
"require",
"(",
"'child_process'",
")",
".",
"exec",
";",
"const",
"gulpSourcemaps",
"=",
"require",
"(",
"'gulp-sourcemaps'",
")",
";",
"const",
"gulpMerge",
"=",
"require",
"(",
"'merge2'",
")",
";",
"const",
"print",
"=",
"require",
"(",
"'gulp-print'",
")",
";",
"const",
"gulpSass",
"=",
"require",
"(",
"'gulp-sass'",
")",
";",
"const",
"autoprefixer",
"=",
"require",
"(",
"'gulp-autoprefixer'",
")",
";",
"var",
"cleanCSS",
"=",
"require",
"(",
"'gulp-clean-css'",
")",
";",
"const",
"fs",
"=",
"require",
"(",
"'fs'",
")",
";",
"const",
"webpack",
"=",
"require",
"(",
"\"webpack\"",
")",
";",
"const",
"componentsDir",
"=",
"path",
".",
"join",
"(",
"SOURCE_ROOT",
",",
"'components'",
")",
";",
"gulp",
".",
"task",
"(",
"':watch:components:spec'",
",",
"(",
")",
"=>",
"{",
"gulp",
".",
"watch",
"(",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.ts'",
")",
",",
"[",
"':build:components:spec'",
"]",
")",
";",
"gulp",
".",
"watch",
"(",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.scss'",
")",
",",
"[",
"':build:components:scss'",
"]",
")",
";",
"gulp",
".",
"watch",
"(",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.html'",
")",
",",
"[",
"':build:components:assets'",
"]",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':build:components:assets'",
",",
"(",
")",
"=>",
"{",
"return",
"gulp",
".",
"src",
"(",
"[",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.*'",
")",
",",
"'!**/*.ts'",
"]",
")",
".",
"pipe",
"(",
"<",
"WritableStream",
">",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':build:components:spec'",
",",
"(",
")",
"=>",
"{",
"const",
"tsConfigPath",
"=",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'tsconfig-spec.json'",
")",
";",
"const",
"tsProject",
"=",
"gulpTs",
".",
"createProject",
"(",
"tsConfigPath",
",",
"{",
"typescript",
":",
"require",
"(",
"'typescript'",
")",
"}",
")",
";",
"let",
"pipe",
"=",
"tsProject",
".",
"src",
"(",
")",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"init",
"(",
")",
")",
".",
"pipe",
"(",
"tsProject",
"(",
")",
")",
";",
"let",
"dts",
"=",
"pipe",
".",
"dts",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
";",
"return",
"gulpMerge",
"(",
"[",
"dts",
",",
"pipe",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"write",
"(",
"'.'",
",",
"{",
"includeContent",
":",
"false",
",",
"sourceRoot",
":",
"'../../src/components'",
"}",
")",
")",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
"]",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':build:components:ts'",
",",
"(",
")",
"=>",
"{",
"const",
"tsConfigPath",
"=",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'tsconfig-ngc.json'",
")",
";",
"const",
"tsProject",
"=",
"gulpTs",
".",
"createProject",
"(",
"tsConfigPath",
",",
"{",
"typescript",
":",
"require",
"(",
"'typescript'",
")",
"}",
")",
";",
"let",
"pipe",
"=",
"gulp",
".",
"src",
"(",
"[",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.ts'",
")",
",",
"'!**/*.spec.ts'",
"]",
")",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"init",
"(",
")",
")",
".",
"pipe",
"(",
"tsProject",
"(",
")",
")",
";",
"let",
"dts",
"=",
"pipe",
".",
"dts",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
";",
"return",
"gulpMerge",
"(",
"[",
"dts",
",",
"pipe",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"write",
"(",
"'.'",
",",
"{",
"includeContent",
":",
"false",
"}",
")",
")",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
"]",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':build:components:ngc'",
",",
"(",
"done",
")",
"=>",
"{",
"const",
"tsConfigPath",
"=",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'tsconfig-ngc.json'",
")",
";",
"exec",
"(",
"'ngc -p '",
"+",
"tsConfigPath",
",",
"(",
"error",
",",
"stdout",
",",
"stderr",
")",
"=>",
"{",
"if",
"(",
"error",
")",
"{",
"console",
".",
"log",
"(",
"`ngc error`",
",",
"error",
")",
";",
"}",
"done",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':build:components:scss'",
",",
"(",
")",
"=>",
"{",
"const",
"mdlScss",
"=",
"path",
".",
"join",
"(",
"PROJECT_ROOT",
",",
"'node_modules/@angular-mdl/core/scss'",
")",
";",
"const",
"sassOptions",
"=",
"{",
"includePaths",
":",
"[",
"mdlScss",
"]",
"}",
";",
"return",
"gulp",
".",
"src",
"(",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'**/*.scss'",
")",
")",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"init",
"(",
")",
")",
".",
"pipe",
"(",
"gulpSass",
"(",
"sassOptions",
")",
".",
"on",
"(",
"'error'",
",",
"gulpSass",
".",
"logError",
")",
")",
".",
"pipe",
"(",
"autoprefixer",
"(",
"{",
"browsers",
":",
"[",
"'last 2 versions'",
"]",
",",
"cascade",
":",
"false",
"}",
")",
")",
".",
"pipe",
"(",
"cleanCSS",
"(",
")",
")",
".",
"pipe",
"(",
"gulpSourcemaps",
".",
"write",
"(",
"'.'",
")",
")",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
";",
"}",
")",
";",
"function",
"createUmdBundleByWebpack",
"(",
"component",
")",
"{",
"console",
".",
"log",
"(",
"`create umd bundle for ${",
"component",
"}`",
")",
";",
"return",
"new",
"Promise",
"(",
"(",
"resolve",
",",
"reject",
")",
"=>",
"{",
"webpack",
"(",
"{",
"entry",
":",
"path",
".",
"join",
"(",
"componentsDir",
",",
"component",
",",
"'index.ts'",
")",
",",
"output",
":",
"{",
"path",
":",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"component",
")",
",",
"filename",
":",
"'index.umd.js'",
",",
"libraryTarget",
":",
"'umd'",
",",
"library",
":",
"'angularMdl.'",
"+",
"component",
".",
"replace",
"(",
"/-/g",
",",
"\"\"",
")",
"}",
",",
"resolve",
":",
"{",
"extensions",
":",
"[",
"'.ts'",
",",
"'.js'",
"]",
"}",
",",
"externals",
":",
"{",
"'@angular/core'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'core'",
"]",
",",
"commonjs",
":",
"'@angular/core'",
",",
"commonjs2",
":",
"'@angular/core'",
",",
"amd",
":",
"'@angular/core'",
"}",
",",
"'@angular/common'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'common'",
"]",
",",
"commonjs",
":",
"'@angular/common'",
",",
"commonjs2",
":",
"'@angular/common'",
",",
"amd",
":",
"'@angular/common'",
"}",
",",
"'@angular/forms'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'forms'",
"]",
",",
"commonjs",
":",
"'@angular/forms'",
",",
"commonjs2",
":",
"'@angular/forms'",
",",
"amd",
":",
"'@angular/forms'",
"}",
",",
"'@angular/platform-browser'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'platformBrowser'",
"]",
",",
"commonjs",
":",
"'@angular/platform-browser'",
",",
"commonjs2",
":",
"'@angular/platform-browser'",
",",
"amd",
":",
"'@angular/platform-browser'",
"}",
",",
"'@angular/platform-browser-dynamic'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'platformBrowserDynamic'",
"]",
",",
"commonjs",
":",
"'@angular/platform-browser-dynamic'",
",",
"commonjs2",
":",
"'@angular/platform-browser-dynamic'",
",",
"amd",
":",
"'@angular/platform-browser-dynamic'",
"}",
",",
"'@angular/animations'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'animations'",
"]",
",",
"commonjs",
":",
"'@angular/animations'",
",",
"commonjs2",
":",
"'@angular/animations'",
",",
"amd",
":",
"'@angular/animations'",
"}",
",",
"'@angular/platform-browser/animations'",
":",
"{",
"root",
":",
"[",
"'ng'",
",",
"'platformBrowserAnimations'",
"]",
",",
"commonjs",
":",
"'@angular/platform-browser/animations'",
",",
"commonjs2",
":",
"'@angular/platform-browser/animations'",
",",
"amd",
":",
"'@angular/platform-browser/animations'",
"}",
",",
"'rxjs/Subject'",
":",
"{",
"root",
":",
"[",
"'rx'",
",",
"'Subject'",
"]",
",",
"commonjs",
":",
"'rxjs/Subject'",
",",
"commonjs2",
":",
"'rxjs/Subject'",
",",
"amd",
":",
"'rxjs/Subject'",
"}",
",",
"'rxjs/Observable'",
":",
"{",
"root",
":",
"[",
"'rx'",
",",
"'Observable'",
"]",
",",
"commonjs",
":",
"'rxjs/Observable'",
",",
"commonjs2",
":",
"'rxjs/Observable'",
",",
"amd",
":",
"'rxjs/Observable'",
"}",
",",
"'@angular-mdl/core'",
":",
"{",
"root",
":",
"[",
"'angularMdl'",
",",
"'@angular-mdl/core'",
"]",
",",
"commonjs",
":",
"'@angular-mdl/core'",
",",
"commonjs2",
":",
"'@angular-mdl/core'",
",",
"amd",
":",
"'@angular-mdl/core'",
"}",
",",
"'moment'",
":",
"{",
"root",
":",
"[",
"'moment'",
",",
"'moment'",
"]",
",",
"commonjs",
":",
"'moment'",
",",
"commonjs2",
":",
"'moment'",
",",
"amd",
":",
"'moment'",
"}",
"}",
",",
"module",
":",
"{",
"rules",
":",
"[",
"{",
"enforce",
":",
"'pre'",
",",
"test",
":",
"/.ts$/",
",",
"loader",
":",
"'string-replace-loader'",
",",
"options",
":",
"{",
"search",
":",
"'moduleId: module.id,'",
",",
"replace",
":",
"''",
",",
"flags",
":",
"'g'",
"}",
"}",
",",
"{",
"test",
":",
"/\\.ts$/",
",",
"exclude",
":",
"[",
"/\\.(spec)\\.ts$/",
"]",
",",
"use",
":",
"[",
"{",
"loader",
":",
"'awesome-typescript-loader'",
",",
"options",
":",
"{",
"configFileName",
":",
"path",
".",
"join",
"(",
"componentsDir",
",",
"'tsconfig-ngc.json'",
")",
"}",
"}",
",",
"{",
"loader",
":",
"'angular2-template-loader'",
"}",
"]",
"}",
",",
"{",
"test",
":",
"/\\.html$/",
",",
"loader",
":",
"'html-loader'",
"}",
"]",
"}",
",",
"plugins",
":",
"[",
"new",
"webpack",
".",
"SourceMapDevToolPlugin",
"(",
"{",
"filename",
":",
"component",
"+",
"'.js.map'",
",",
"test",
":",
"/\\.js($|\\?)/i",
"}",
")",
"]",
"}",
",",
"function",
"(",
"err",
",",
"stats",
")",
"{",
"if",
"(",
"err",
")",
"{",
"reject",
"(",
"err",
")",
";",
"}",
"else",
"{",
"resolve",
"(",
")",
";",
"}",
"}",
")",
";",
"}",
")",
";",
"}",
"gulp",
".",
"task",
"(",
"':build:components:umd'",
",",
"(",
")",
"=>",
"{",
"const",
"possiblyComponents",
"=",
"fs",
".",
"readdirSync",
"(",
"componentsDir",
")",
";",
"const",
"components",
"=",
"possiblyComponents",
".",
"filter",
"(",
"(",
"fileOrDir",
")",
"=>",
"{",
"const",
"fullPath",
"=",
"path",
".",
"join",
"(",
"componentsDir",
",",
"fileOrDir",
")",
";",
"const",
"stat",
"=",
"fs",
".",
"statSync",
"(",
"fullPath",
")",
";",
"return",
"stat",
".",
"isDirectory",
"(",
")",
"&&",
"fs",
".",
"existsSync",
"(",
"path",
".",
"join",
"(",
"fullPath",
",",
"'package.json'",
")",
")",
";",
"}",
")",
";",
"let",
"p",
"=",
"components",
".",
"reduce",
"(",
"function",
"(",
"p",
",",
"component",
")",
"{",
"return",
"p",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"return",
"createUmdBundleByWebpack",
"(",
"component",
")",
";",
"}",
")",
";",
"}",
",",
"Promise",
".",
"resolve",
"(",
")",
")",
";",
"return",
"p",
";",
"}",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
231,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
231,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
25,
null,
12,
null,
12,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662038 | [
"import",
"*",
"as",
"gulp",
"from",
"'gulp'",
";",
"const",
"karma",
"=",
"require",
"(",
"'karma'",
")",
";",
"import",
"*",
"as",
"path",
"from",
"'path'",
";",
"import",
"{",
"PROJECT_ROOT",
"}",
"from",
"'../constants'",
";",
"const",
"runSequence",
"=",
"require",
"(",
"'run-sequence'",
")",
";",
"import",
"gulpMerge",
"=",
"require",
"(",
"'merge2'",
")",
";",
"gulp",
".",
"task",
"(",
"':build:test:vendor'",
",",
"(",
")",
"=>",
"{",
"const",
"npmVendorFiles",
"=",
"[",
"'@angular'",
",",
"'@angular-mdl/core'",
",",
"'core-js/client'",
",",
"'rxjs'",
",",
"'systemjs/dist'",
",",
"'zone.js/dist'",
",",
"'moment'",
"]",
";",
"return",
"gulpMerge",
"(",
"npmVendorFiles",
".",
"map",
"(",
"function",
"(",
"root",
")",
"{",
"const",
"inputs",
"=",
"path",
".",
"join",
"(",
"root",
",",
"'**/*.+(js|js.map)'",
")",
";",
"const",
"destFolder",
"=",
"path",
".",
"join",
"(",
"'dist/vendor'",
",",
"root",
")",
";",
"const",
"dest",
"=",
"gulp",
".",
"dest",
"(",
"destFolder",
")",
";",
"return",
"gulp",
".",
"src",
"(",
"path",
".",
"join",
"(",
"'node_modules'",
",",
"inputs",
")",
")",
".",
"pipe",
"(",
"dest",
")",
";",
"}",
")",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':test:deps'",
",",
"[",
"]",
",",
"(",
"done",
")",
"=>",
"{",
"runSequence",
"(",
"'clean'",
",",
"[",
"':build:test:vendor'",
",",
"':build:components:assets'",
",",
"':build:components:scss'",
",",
"':build:components:spec'",
"]",
",",
"done",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"'test'",
",",
"[",
"':test:deps'",
",",
"':watch:components:spec'",
"]",
",",
"(",
"done",
")",
"=>",
"{",
"new",
"karma",
".",
"Server",
"(",
"{",
"configFile",
":",
"path",
".",
"join",
"(",
"PROJECT_ROOT",
",",
"'config/tests/karma.conf.js'",
")",
"}",
",",
"done",
")",
".",
"start",
"(",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"'test:single-run'",
",",
"[",
"':test:deps'",
"]",
",",
"(",
"done",
")",
"=>",
"{",
"new",
"karma",
".",
"Server",
"(",
"{",
"configFile",
":",
"path",
".",
"join",
"(",
"PROJECT_ROOT",
",",
"'config/tests/karma.conf.js'",
")",
",",
"singleRun",
":",
"true",
"}",
",",
"done",
")",
".",
"start",
"(",
")",
";",
"}",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4854,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662039 | [
"import",
"*",
"as",
"gulp",
"from",
"'gulp'",
";",
"const",
"runSequence",
"=",
"require",
"(",
"'run-sequence'",
")",
";",
"var",
"exec",
"=",
"require",
"(",
"'child_process'",
")",
".",
"exec",
";",
"import",
"{",
"DIST_COMPONENTS_ROOT",
"}",
"from",
"'../constants'",
";",
"import",
"*",
"as",
"path",
"from",
"'path'",
";",
"const",
"replace",
"=",
"require",
"(",
"'gulp-string-replace'",
")",
";",
"const",
"glob",
"=",
"require",
"(",
"'glob'",
")",
";",
"const",
"fs",
"=",
"require",
"(",
"'fs'",
")",
";",
"gulp",
".",
"task",
"(",
"':dist:checknpmuser'",
",",
"(",
"cb",
")",
"=>",
"{",
"exec",
"(",
"'npm whoami'",
",",
"(",
"error",
",",
"stdout",
",",
"stderr",
")",
"=>",
"{",
"if",
"(",
"error",
")",
"{",
"cb",
"(",
"error",
")",
";",
"}",
"const",
"username",
"=",
"stdout",
".",
"toString",
"(",
")",
".",
"replace",
"(",
"/^\\s+|\\s+$/g",
",",
"''",
")",
";",
"if",
"(",
"username",
"!==",
"'angular-mdl'",
")",
"{",
"cb",
"(",
"'not loged in as npm user angular-mdl'",
")",
";",
"}",
"console",
".",
"log",
"(",
"`npm user is ${",
"username",
"}`",
")",
";",
"cb",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':dist:removemoduleid'",
",",
"(",
")",
"=>",
"{",
"return",
"gulp",
".",
"src",
"(",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"'**/*.js'",
")",
")",
".",
"pipe",
"(",
"replace",
"(",
"/\\s*moduleId:\\s*module\\.id\\s*,?\\s*/gm",
",",
"''",
",",
"{",
"logs",
":",
"{",
"enabled",
":",
"false",
"}",
"}",
")",
")",
".",
"pipe",
"(",
"gulp",
".",
"dest",
"(",
"DIST_COMPONENTS_ROOT",
")",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':dist:inlinehtml'",
",",
"(",
"done",
")",
"=>",
"{",
"const",
"files",
"=",
"glob",
".",
"sync",
"(",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"'**/*.js'",
")",
",",
"{",
"}",
")",
";",
"files",
".",
"forEach",
"(",
"(",
"file",
")",
"=>",
"{",
"const",
"content",
"=",
"fs",
".",
"readFileSync",
"(",
"file",
",",
"'utf-8'",
")",
";",
"const",
"result",
"=",
"content",
".",
"replace",
"(",
"/templateUrl:\\s*'([^']+?\\.html)'/g",
",",
"(",
"fullMatch",
",",
"templateUrl",
")",
"=>",
"{",
"const",
"templateFile",
"=",
"path",
".",
"join",
"(",
"path",
".",
"dirname",
"(",
"file",
")",
",",
"templateUrl",
")",
";",
"const",
"templateContent",
"=",
"fs",
".",
"readFileSync",
"(",
"templateFile",
",",
"'utf-8'",
")",
";",
"const",
"shortenedTemplate",
"=",
"templateContent",
".",
"replace",
"(",
"/([\\n\\r]\\s*)+/gm",
",",
"' '",
")",
".",
"replace",
"(",
"/\"/g",
",",
"'\\\\\"'",
")",
";",
"return",
"`template: \"${",
"shortenedTemplate",
"}\"`",
";",
"}",
")",
";",
"fs",
".",
"writeFileSync",
"(",
"file",
",",
"result",
",",
"'utf-8'",
")",
";",
"}",
")",
";",
"done",
"(",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"':dist:inlinecss'",
",",
"(",
"done",
")",
"=>",
"{",
"const",
"files",
"=",
"glob",
".",
"sync",
"(",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"'**/*.js'",
")",
",",
"{",
"}",
")",
";",
"files",
".",
"forEach",
"(",
"(",
"file",
")",
"=>",
"{",
"const",
"content",
"=",
"fs",
".",
"readFileSync",
"(",
"file",
",",
"'utf-8'",
")",
";",
"const",
"result",
"=",
"content",
".",
"replace",
"(",
"/styleUrls:\\s*(\\[[\\s\\S]*?\\])/gm",
",",
"(",
"fullMatch",
",",
"styleUrls",
")",
"=>",
"{",
"const",
"urls",
"=",
"eval",
"(",
"styleUrls",
")",
";",
"return",
"'styles: ['",
"+",
"urls",
".",
"map",
"(",
"(",
"styleUrl",
")",
"=>",
"{",
"const",
"styleFile",
"=",
"path",
".",
"join",
"(",
"path",
".",
"dirname",
"(",
"file",
")",
",",
"styleUrl",
")",
";",
"const",
"styleContent",
"=",
"fs",
".",
"readFileSync",
"(",
"styleFile",
",",
"'utf-8'",
")",
";",
"const",
"shortenedStyle",
"=",
"styleContent",
".",
"replace",
"(",
"/([\\n\\r]\\s*)+/gm",
",",
"' '",
")",
".",
"replace",
"(",
"/\"/g",
",",
"'\\\\\"'",
")",
";",
"return",
"`\"${",
"shortenedStyle",
"}\"`",
";",
"}",
")",
".",
"join",
"(",
"',\\n'",
")",
"+",
"']'",
";",
"}",
")",
";",
"fs",
".",
"writeFileSync",
"(",
"file",
",",
"result",
",",
"'utf-8'",
")",
";",
"}",
")",
";",
"done",
"(",
")",
";",
"}",
")",
";",
"/**\n * publish the package (determinde by the current working dir)\n */",
"function",
"publishPackage",
"(",
")",
"{",
"var",
"pJson",
"=",
"JSON",
".",
"parse",
"(",
"fs",
".",
"readFileSync",
"(",
"'package.json'",
",",
"'utf8'",
")",
")",
";",
"console",
".",
"log",
"(",
"`publish ${",
"pJson",
".",
"name",
"}:${",
"pJson",
".",
"version",
"}`",
")",
";",
"return",
"new",
"Promise",
"<",
"any",
">",
"(",
"(",
"resolve",
",",
"reject",
")",
"=>",
"{",
"exec",
"(",
"'npm publish --access public'",
",",
"(",
"error",
",",
"stdout",
",",
"stderr",
")",
"=>",
"{",
"if",
"(",
"error",
")",
"{",
"console",
".",
"log",
"(",
"`error publishing ${",
"pJson",
".",
"name",
"}`",
",",
"error",
")",
";",
"reject",
"(",
"error",
")",
";",
"}",
"resolve",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
"param",
"componentDir",
"returns",
"{",
"Promise",
"<",
"any",
">",
"}",
"function",
"getPublishedVersion",
"(",
"componentDir",
")",
"{",
"return",
"new",
"Promise",
"<",
"any",
">",
"(",
"(",
"resolve",
",",
"reject",
")",
"=>",
"{",
"var",
"pJson",
"=",
"JSON",
".",
"parse",
"(",
"fs",
".",
"readFileSync",
"(",
"path",
".",
"join",
"(",
"componentDir",
",",
"'package.json'",
")",
",",
"'utf8'",
")",
")",
";",
"exec",
"(",
"`npm show ${",
"pJson",
".",
"name",
"} version`",
",",
"(",
"error",
",",
"stdout",
",",
"stderr",
")",
"=>",
"{",
"if",
"(",
"error",
")",
"{",
"reject",
"(",
"error",
")",
";",
"}",
"const",
"publishedVersion",
"=",
"stdout",
".",
"toString",
"(",
")",
".",
"replace",
"(",
"/^\\s+|\\s+$/g",
",",
"''",
")",
";",
"resolve",
"(",
"publishedVersion",
")",
";",
"}",
")",
";",
"}",
")",
";",
"}",
"function",
"publishComponent",
"(",
"dir",
")",
"{",
"const",
"fullPath",
"=",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"dir",
")",
";",
"return",
"Promise",
".",
"resolve",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"process",
".",
"chdir",
"(",
"fullPath",
")",
";",
"return",
"Promise",
".",
"resolve",
"(",
")",
";",
"}",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"return",
"getPublishedVersion",
"(",
"fullPath",
")",
";",
"}",
")",
".",
"then",
"(",
"(",
"publishedVersion",
")",
"=>",
"{",
"console",
".",
"log",
"(",
"`published version of ${",
"dir",
"} is: ${",
"publishedVersion",
"}`",
")",
";",
"var",
"pJson",
"=",
"JSON",
".",
"parse",
"(",
"fs",
".",
"readFileSync",
"(",
"path",
".",
"join",
"(",
"fullPath",
",",
"'package.json'",
")",
",",
"'utf8'",
")",
")",
";",
"console",
".",
"log",
"(",
"`${",
"dir",
"}: version to publish is: ${",
"pJson",
".",
"version",
"}`",
")",
";",
"return",
"new",
"Promise",
"(",
"(",
"resolve",
",",
"reject",
")",
"=>",
"{",
"if",
"(",
"publishedVersion",
"!=",
"pJson",
".",
"version",
")",
"{",
"publishPackage",
"(",
")",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"resolve",
"(",
")",
";",
"}",
")",
";",
"}",
"else",
"{",
"console",
".",
"log",
"(",
"'not published'",
")",
";",
"resolve",
"(",
")",
";",
"}",
"}",
")",
";",
"}",
")",
";",
"}",
"gulp",
".",
"task",
"(",
"':dist:publish'",
",",
"(",
")",
"=>",
"{",
"const",
"currentDir",
"=",
"process",
".",
"cwd",
"(",
")",
";",
"const",
"possiblyComponents",
"=",
"fs",
".",
"readdirSync",
"(",
"DIST_COMPONENTS_ROOT",
")",
";",
"const",
"components",
"=",
"possiblyComponents",
".",
"filter",
"(",
"(",
"fileOrDir",
")",
"=>",
"{",
"const",
"fullPath",
"=",
"path",
".",
"join",
"(",
"DIST_COMPONENTS_ROOT",
",",
"fileOrDir",
")",
";",
"const",
"stat",
"=",
"fs",
".",
"statSync",
"(",
"fullPath",
")",
";",
"return",
"stat",
".",
"isDirectory",
"(",
")",
"&&",
"fs",
".",
"existsSync",
"(",
"path",
".",
"join",
"(",
"fullPath",
",",
"'package.json'",
")",
")",
";",
"}",
")",
";",
"let",
"p",
"=",
"components",
".",
"reduce",
"(",
"function",
"(",
"p",
",",
"item",
")",
"{",
"return",
"p",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"return",
"publishComponent",
"(",
"item",
")",
";",
"}",
")",
";",
"}",
",",
"Promise",
".",
"resolve",
"(",
")",
")",
";",
"return",
"p",
".",
"then",
"(",
"(",
")",
"=>",
"{",
"console",
".",
"log",
"(",
"`set path to ${",
"currentDir",
"}`",
")",
";",
"process",
".",
"chdir",
"(",
"currentDir",
")",
";",
"return",
"Promise",
".",
"resolve",
"(",
")",
";",
"}",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"'dist:build'",
",",
"(",
"done",
")",
"=>",
"{",
"runSequence",
"(",
"'clean'",
",",
"[",
"':build:components:assets'",
",",
"':build:components:scss'",
",",
"':build:components:ts'",
",",
"':build:components:ngc'",
"]",
",",
"':dist:removemoduleid'",
",",
"':dist:inlinehtml'",
",",
"':dist:inlinecss'",
",",
"':build:components:umd'",
",",
"done",
")",
";",
"}",
")",
";",
"gulp",
".",
"task",
"(",
"'dist'",
",",
"function",
"(",
"done",
")",
"{",
"runSequence",
"(",
"':dist:checknpmuser'",
",",
"'dist:build'",
",",
"':dist:publish'",
",",
"done",
")",
";",
"}",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
25,
null,
12,
null,
12,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
25,
null,
12,
null,
12,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
25,
null,
12,
null,
12,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
2,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662040 | [
"import",
"{",
"APP_KEY",
"}",
"from",
"'stapp/lib/helpers/constants'",
";",
"hidden",
"export",
"const",
"VALIDATE",
"=",
"`${",
"APP_KEY",
"}/Validate`",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null
] |
662041 | [
"import",
"{",
"createEvent",
"}",
"from",
"'stapp'",
";",
"import",
"{",
"VALIDATE",
"}",
"from",
"'./constants'",
";",
"private",
"export",
"const",
"asyncValidationStart",
"=",
"createEvent",
"<",
"string",
">",
"(",
"`${",
"VALIDATE",
"}: async validation started`",
")",
";",
"private",
"export",
"const",
"asyncValidationEnd",
"=",
"createEvent",
"<",
"string",
">",
"(",
"`${",
"VALIDATE",
"}: async validation finished`",
")",
";",
"/**\n * Start revalidating all fields\n */",
"export",
"const",
"revalidate",
"=",
"createEvent",
"<",
"void",
"|",
"string",
"[",
"]",
">",
"(",
"`${",
"VALIDATE",
"}: force validation`",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18205,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18205,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18205,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662042 | [
"import",
"{",
"concat",
",",
"from",
",",
"Observable",
",",
"of",
"}",
"from",
"'rxjs'",
";",
"import",
"{",
"catchError",
",",
"switchMap",
"}",
"from",
"'rxjs/operators'",
";",
"import",
"{",
"FormBaseState",
",",
"setError",
",",
"setReady",
"}",
"from",
"'stapp-formbase'",
";",
"import",
"{",
"isPromise",
"}",
"from",
"'stapp/lib/helpers/is/isPromise/isPromise'",
";",
"import",
"{",
"asyncValidationEnd",
",",
"asyncValidationStart",
"}",
"from",
"'./events'",
";",
"import",
"{",
"Event",
"}",
"from",
"'stapp'",
";",
"import",
"{",
"ValidationFlags",
",",
"ValidationRule",
"}",
"from",
"'./validate.h'",
";",
"private",
"export",
"const",
"normalizeResult",
"=",
"(",
"fieldName",
",",
"result",
")",
":",
"Observable",
"<",
"Event",
"<",
"any",
",",
"any",
">",
">",
"=>",
"{",
"if",
"(",
"isPromise",
"(",
"result",
")",
")",
"{",
"return",
"from",
"(",
"result",
")",
".",
"pipe",
"(",
"switchMap",
"(",
"(",
"promiseResult",
")",
"=>",
"normalizeResult",
"(",
"fieldName",
",",
"promiseResult",
")",
")",
",",
"catchError",
"(",
"(",
"error",
")",
"=>",
"of",
"(",
"setError",
"(",
"{",
"[",
"fieldName",
"]",
":",
"error",
"}",
")",
")",
")",
")",
";",
"}",
"if",
"(",
"result",
"!=",
"null",
"&&",
"typeof",
"result",
"===",
"'object'",
")",
"{",
"return",
"of",
"(",
"setError",
"(",
"result",
")",
")",
";",
"}",
"return",
"of",
"(",
"setError",
"(",
"{",
"[",
"fieldName",
"]",
":",
"result",
"}",
")",
")",
";",
"}",
";",
"private",
"export",
"const",
"runValidation",
"=",
"<",
"State",
"extends",
"FormBaseState",
">",
"(",
"state",
",",
"fieldName",
",",
"rule",
",",
"flags",
")",
":",
"Observable",
"<",
"Event",
"<",
"any",
",",
"any",
">",
">",
"=>",
"{",
"let",
"result",
";",
"try",
"{",
"result",
"=",
"rule",
"(",
"state",
".",
"values",
"[",
"fieldName",
"]",
",",
"fieldName",
",",
"state",
",",
"flags",
")",
";",
"}",
"catch",
"(",
"error",
")",
"{",
"result",
"=",
"error",
";",
"}",
"const",
"syncMode",
"=",
"!",
"isPromise",
"(",
"result",
")",
";",
"const",
"result$",
"=",
"normalizeResult",
"(",
"fieldName",
",",
"result",
")",
";",
"return",
"syncMode",
"?",
"result$",
":",
"concat",
"(",
"of",
"(",
"asyncValidationStart",
"(",
"fieldName",
")",
",",
"setReady",
"(",
"{",
"[",
"fieldName",
"]",
":",
"false",
"}",
")",
")",
",",
"result$",
",",
"of",
"(",
"asyncValidationEnd",
"(",
"fieldName",
")",
",",
"setReady",
"(",
"{",
"[",
"fieldName",
"]",
":",
"true",
"}",
")",
")",
")",
";",
"}",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
null,
null,
null,
null,
null,
38,
null,
2,
null,
8427,
null,
43785,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662043 | [
"import",
"{",
"createReducer",
"}",
"from",
"'stapp'",
";",
"import",
"{",
"resetForm",
"}",
"from",
"'stapp-formbase'",
";",
"import",
"{",
"asyncValidationEnd",
",",
"asyncValidationStart",
"}",
"from",
"'./events'",
";",
"private",
"export",
"const",
"validateReducer",
"=",
"createReducer",
"<",
"{",
"[",
"K",
"]",
":",
"boolean",
";",
"}",
">",
"(",
"{",
"}",
")",
".",
"on",
"(",
"asyncValidationStart",
",",
"(",
"validating",
",",
"name",
")",
"=>",
"validating",
"[",
"name",
"]",
"?",
"validating",
":",
"{",
"...",
"validating",
",",
"[",
"name",
"]",
":",
"true",
"}",
")",
".",
"on",
"(",
"asyncValidationEnd",
",",
"(",
"validating",
",",
"name",
")",
"=>",
"!",
"validating",
"[",
"name",
"]",
"?",
"validating",
":",
"{",
"...",
"validating",
",",
"[",
"name",
"]",
":",
"false",
"}",
")",
".",
"reset",
"(",
"resetForm",
")",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
329,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662044 | [
"import",
"{",
"EMPTY",
",",
"from",
",",
"merge",
"}",
"from",
"'rxjs'",
";",
"import",
"{",
"filter",
",",
"groupBy",
",",
"map",
",",
"mergeMap",
",",
"switchMap",
"}",
"from",
"'rxjs/operators'",
";",
"import",
"{",
"combineEpics",
",",
"Epic",
",",
"initEvent",
",",
"Module",
",",
"select",
"}",
"from",
"'stapp'",
";",
"import",
"{",
"FORM_BASE",
",",
"FormBaseState",
",",
"setTouched",
",",
"setValue",
",",
"submit",
"}",
"from",
"'stapp-formbase'",
";",
"import",
"{",
"VALIDATE",
"}",
"from",
"'./constants'",
";",
"import",
"{",
"revalidate",
"}",
"from",
"'./events'",
";",
"import",
"{",
"runValidation",
"}",
"from",
"'./helpers'",
";",
"import",
"{",
"validateReducer",
"}",
"from",
"'./reducers'",
";",
"import",
"{",
"ValidateConfig",
",",
"ValidationFlags",
",",
"ValidationRules",
",",
"ValidationState",
"}",
"from",
"'./validate.h'",
";",
"const",
"emptyEpic",
"=",
"(",
")",
"=>",
"EMPTY",
";",
"export",
"const",
"validate",
"=",
"<",
"State",
"extends",
"FormBaseState",
">",
"(",
"{",
"validateOnInit",
"=",
"true",
",",
"setTouchedOnSubmit",
"=",
"true",
",",
"moduleName",
"=",
"VALIDATE",
",",
"rules",
"}",
")",
":",
"Module",
"<",
"{",
"}",
",",
"ValidationState",
">",
"=>",
"{",
"const",
"getRules",
"=",
"(",
"state",
")",
":",
"ValidationRules",
"<",
"State",
">",
"=>",
"{",
"return",
"typeof",
"rules",
"===",
"'function'",
"?",
"rules",
"(",
"state",
")",
":",
"rules",
";",
"}",
";",
"const",
"mapValues",
"=",
"(",
"state",
",",
"flags",
",",
"fields",
"?",
")",
"=>",
"{",
"const",
"nextRules",
"=",
"getRules",
"(",
"state",
")",
";",
"const",
"nextFields",
"=",
"fields",
"||",
"Object",
".",
"keys",
"(",
"nextRules",
")",
";",
"return",
"from",
"(",
"nextFields",
".",
"map",
"(",
"(",
"field",
")",
"=>",
"(",
"{",
"field",
",",
"value",
":",
"state",
".",
"values",
"[",
"field",
"]",
",",
"rule",
":",
"nextRules",
"[",
"field",
"]",
",",
"flags",
"}",
")",
")",
")",
";",
"}",
";",
"type",
"Res",
"=",
"ReturnType",
"<",
"typeof",
"mapValues",
">",
";",
"const",
"validateEpic",
"=",
"(",
"event$",
",",
"state$",
",",
"{",
"getState",
"}",
")",
"=>",
"{",
"const",
"setValue$",
"=",
"event$",
".",
"pipe",
"(",
"filter",
"(",
"select",
"(",
"setValue",
")",
")",
",",
"mergeMap",
"(",
"(",
"event",
")",
"=>",
"{",
"return",
"mapValues",
"(",
"getState",
"(",
")",
",",
"{",
"onChange",
":",
"true",
"}",
",",
"Object",
".",
"keys",
"(",
"event",
".",
"payload",
")",
")",
";",
"}",
")",
")",
";",
"const",
"initDone$",
"=",
"validateOnInit",
"?",
"event$",
".",
"pipe",
"(",
"filter",
"(",
"select",
"(",
"initEvent",
")",
")",
",",
"mergeMap",
"(",
"(",
")",
"=>",
"{",
"return",
"mapValues",
"(",
"getState",
"(",
")",
",",
"{",
"onInit",
":",
"true",
"}",
")",
";",
"}",
")",
")",
":",
"EMPTY",
";",
"const",
"revalidate$",
"=",
"event$",
".",
"pipe",
"(",
"filter",
"(",
"select",
"(",
"revalidate",
")",
")",
",",
"mergeMap",
"(",
"(",
"event",
")",
"=>",
"{",
"return",
"mapValues",
"(",
"getState",
"(",
")",
",",
"{",
"onRevalidate",
":",
"true",
"}",
",",
"event",
".",
"payload",
")",
";",
"}",
")",
")",
";",
"return",
"merge",
"(",
"setValue$",
",",
"revalidate$",
",",
"initDone$",
")",
".",
"pipe",
"(",
"filter",
"(",
"(",
"{",
"rule",
"}",
")",
"=>",
"!",
"!",
"rule",
")",
",",
"groupBy",
"(",
"(",
"res",
")",
"=>",
"res",
".",
"field",
")",
",",
"mergeMap",
"(",
"(",
"field$",
")",
"=>",
"field$",
".",
"pipe",
"(",
"switchMap",
"(",
"(",
"res",
")",
"=>",
"runValidation",
"(",
"getState",
"(",
")",
",",
"res",
".",
"field",
",",
"res",
".",
"rule",
",",
"res",
".",
"flags",
")",
")",
")",
")",
")",
";",
"}",
";",
"const",
"setTouchedOnSubmitEpic",
"=",
"setTouchedOnSubmit",
"?",
"submit",
".",
"epic",
"<",
"State",
">",
"(",
"(",
"submit$",
",",
"_",
",",
"{",
"getState",
"}",
")",
"=>",
"{",
"return",
"submit$",
".",
"pipe",
"(",
"map",
"(",
"(",
")",
"=>",
"{",
"const",
"fields",
"=",
"Object",
".",
"keys",
"(",
"getRules",
"(",
"getState",
"(",
")",
")",
")",
";",
"return",
"setTouched",
"(",
"fields",
".",
"reduce",
"(",
"(",
"result",
",",
"field",
")",
"=>",
"{",
"result",
"[",
"field",
"]",
"=",
"true",
";",
"return",
"result",
";",
"}",
",",
"{",
"}",
")",
")",
";",
"}",
")",
")",
";",
"}",
")",
":",
"emptyEpic",
";",
"return",
"{",
"name",
":",
"moduleName",
",",
"state",
":",
"{",
"validating",
":",
"validateReducer",
"}",
",",
"epic",
":",
"combineEpics",
"(",
"[",
"validateEpic",
",",
"setTouchedOnSubmitEpic",
"]",
")",
"as",
"any",
",",
"dependencies",
":",
"[",
"FORM_BASE",
"]",
",",
"useGlobalObservableConfig",
":",
"false",
"}",
";",
"}",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
18,
null,
null,
null,
null,
null,
null,
null,
null,
318,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662045 | [
"import",
"{",
"createSelector",
",",
"Selector",
"}",
"from",
"'reselect'",
";",
"import",
"{",
"ValidationState",
"}",
"from",
"'./validate.h'",
";",
"export",
"const",
"isValidatingSelector",
"=",
"(",
")",
"=>",
"{",
"return",
"createSelector",
"(",
"<",
"State",
"extends",
"ValidationState",
">",
"(",
"state",
")",
"=>",
"state",
".",
"validating",
",",
"(",
"validating",
")",
"=>",
"validating",
"?",
"Object",
".",
"keys",
"(",
"validating",
")",
".",
"some",
"(",
"(",
"key",
")",
"=>",
"validating",
"[",
"key",
"]",
")",
":",
"false",
")",
";",
"}",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
574,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
38,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662046 | [
"/**\n * This is a simple interface.\n */",
"export",
"interface",
"INameInterface",
"{",
"/**\n * This is a interface member of INameInterface.\n *\n * It should be inherited by all subinterfaces.\n */",
"name",
":",
"string",
";",
"/**\n * This is a interface function of INameInterface.\n *\n * It should be inherited by all subinterfaces.\n */",
"getName",
"(",
")",
":",
"string",
";",
"}",
"/**\n * This is a simple interface.\n */",
"export",
"interface",
"IPrintInterface",
"{",
"/**\n * This is a interface function of IPrintInterface\n *\n * It should be inherited by all subinterfaces.\n */",
"print",
"(",
"value",
")",
":",
"void",
";",
"}",
"/**\n * This is a interface inheriting from two other interfaces.\n */",
"export",
"interface",
"IPrintNameInterface",
"extends",
"INameInterface",
",",
"IPrintInterface",
"{",
"/**\n * This is a interface function of IPrintNameInterface\n */",
"printName",
"(",
")",
":",
"void",
";",
"}",
"/**\n * This is a simple base class.\n *\n * [[include:class-example.md]]\n */",
"export",
"class",
"BaseClass",
"implements",
"INameInterface",
"{",
"/**\n * This is a simple public member.\n */",
"public",
"name",
":",
"string",
";",
"/**\n * This is a simple protected member.\n */",
"protected",
"kind",
":",
"number",
";",
"/**\n * This is a static member.\n *\n * Static members should not be inherited.\n */",
"static",
"instance",
":",
"BaseClass",
";",
"static",
"instances",
":",
"BaseClass",
"[",
"]",
";",
"/**\n * This is an instance member of an internal class.\n */",
"private",
"internalClass",
":",
"InternalClass",
";",
"constructor",
"(",
"name",
")",
";",
"constructor",
"(",
"source",
")",
";",
"constructor",
"(",
")",
"{",
"if",
"(",
"arguments",
".",
"length",
">",
"0",
")",
"{",
"if",
"(",
"typeof",
"arguments",
"[",
"0",
"]",
"==",
"'string'",
")",
"{",
"this",
".",
"name",
"=",
"arguments",
"[",
"0",
"]",
";",
"}",
"else",
"if",
"(",
"arguments",
"[",
"0",
"]",
"instanceof",
"BaseClass",
")",
"{",
"this",
".",
"name",
"=",
"arguments",
"[",
"0",
"]",
".",
"name",
";",
"}",
"}",
"this",
".",
"checkName",
"(",
")",
";",
"}",
"returns",
"public",
"getName",
"(",
")",
"{",
"return",
"this",
".",
"name",
";",
"}",
"returns",
"static",
"getName",
"(",
")",
"{",
"return",
"'A name'",
";",
"}",
"param",
"name",
"public",
"setName",
"(",
"name",
")",
"{",
"this",
".",
"name",
"=",
"name",
";",
"this",
".",
"checkName",
"(",
")",
";",
"}",
"param",
"param1",
"param",
"param2",
"see",
"https",
"public",
"arrowFunction",
"=",
"(",
"param2",
",",
"param1",
")",
":",
"void",
"=>",
"{",
"}",
";",
"/**\n * This is a private function.\n */",
"private",
"checkName",
"(",
")",
"{",
"return",
"true",
";",
"}",
"returns",
"static",
"getInstance",
"(",
")",
"{",
"return",
"BaseClass",
".",
"instance",
";",
"}",
"see",
"https",
"public",
"static",
"caTest",
"(",
"originalValues",
",",
"newRecord",
",",
"fieldNames",
",",
"mandatoryFields",
")",
"{",
"var",
"returnval",
"=",
"''",
";",
"var",
"updates",
"=",
"[",
"]",
";",
"var",
"allFields",
"=",
"fieldNames",
";",
"for",
"(",
"var",
"j",
"=",
"0",
";",
"j",
"<",
"allFields",
".",
"length",
";",
"j",
"++",
")",
"{",
"var",
"field",
"=",
"allFields",
"[",
"j",
"]",
";",
"var",
"oldValue",
"=",
"originalValues",
"[",
"field",
"]",
";",
"var",
"newValue",
"=",
"newRecord",
"[",
"field",
"]",
";",
"}",
"return",
"returnval",
";",
"}",
"}",
"/**\n * This is an internal class, it is not exported.\n */",
"class",
"InternalClass",
"{",
"constructor",
"(",
"options",
")",
"{",
"}",
"}",
"/**\n * This is a class that extends another class.\n *\n * This class has no own constructor, so its constructor should be inherited\n * from BaseClass.\n */",
"export",
"class",
"SubClassA",
"extends",
"BaseClass",
"implements",
"IPrintNameInterface",
"{",
"/**\n * This is a simple interface function.\n */",
"public",
"print",
"(",
"value",
")",
"{",
"}",
"inheritdoc",
"public",
"printName",
"(",
")",
"{",
"this",
".",
"print",
"(",
"this",
".",
"getName",
"(",
")",
")",
";",
"}",
"returns",
"public",
"get",
"nameProperty",
"(",
")",
":",
"string",
"{",
"return",
"this",
".",
"name",
";",
"}",
"param",
"value",
"returns",
"public",
"set",
"nameProperty",
"(",
"value",
")",
"{",
"this",
".",
"name",
"=",
"value",
";",
"}",
"returns",
"public",
"get",
"readOnlyNameProperty",
"(",
")",
":",
"string",
"{",
"return",
"this",
".",
"name",
";",
"}",
"param",
"value",
"returns",
"public",
"set",
"writeOnlyNameProperty",
"(",
"value",
")",
"{",
"this",
".",
"name",
"=",
"value",
";",
"}",
"}",
"/**\n * This is a class that extends another class.\n *\n * The constructor of the original class should be overwritten.\n */",
"export",
"class",
"SubClassB",
"extends",
"BaseClass",
"{",
"constructor",
"(",
"name",
")",
"{",
"super",
"(",
"name",
")",
";",
"}",
"doSomething",
"(",
"value",
")",
"{",
"}",
"}",
"param",
"T",
"export",
"class",
"GenericClass",
"<",
"T",
"extends",
"BaseClass",
">",
"{",
"public",
"value",
":",
"T",
";",
"param",
"p1",
"param",
"p2",
"param",
"p3",
"param",
"p4",
"constructor",
"(",
"p1",
",",
"protected",
"p2",
",",
"public",
"p3",
",",
"private",
"p4",
")",
"{",
"}",
"param",
"value",
"public",
"setValue",
"(",
"value",
")",
"{",
"this",
".",
"value",
"=",
"value",
";",
"}",
"public",
"getValue",
"(",
")",
"{",
"return",
"this",
".",
"value",
";",
"}",
"}",
"/**\n * This a non generic class derived from a [[GenericClass|generic class]].\n */",
"export",
"class",
"NonGenericClass",
"extends",
"GenericClass",
"<",
"SubClassB",
">",
"{",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
29493,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
29493,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
29493,
null,
null,
null,
5,
null,
5,
null,
null,
null,
2,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
2,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
11,
null,
null,
3,
null,
null,
3,
null,
null,
null,
null,
null,
null,
4,
null,
11,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
11,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662047 | [
"import",
"*",
"as",
"React",
"from",
"'react'",
";",
"import",
"TreeMap",
",",
"{",
"ColorModel",
"}",
"from",
"\"react-d3-treemap\"",
";",
"import",
"{",
"DialogContent",
"}",
"from",
"'office-ui-fabric-react/lib/Dialog'",
";",
"import",
"\"react-d3-treemap/dist/react.d3.treemap.css\"",
";",
"export",
"interface",
"IFileSizeViewerProps",
"{",
"data",
":",
"any",
";",
"close",
":",
"(",
")",
"=>",
"void",
";",
"}",
"const",
"FileSizeViewer",
"=",
"(",
"props",
")",
"=>",
"{",
"return",
"(",
"<",
"DialogContent",
"title",
"=",
"\"File Size Viewer\"",
"showCloseButton",
"=",
"{",
"true",
"}",
"onDismiss",
"=",
"{",
"props",
".",
"close",
"}",
">",
"<",
"TreeMap",
"height",
"=",
"{",
"300",
"}",
"width",
"=",
"{",
"600",
"}",
"data",
"=",
"{",
"props",
".",
"data",
"}",
"valueUnit",
"=",
"{",
"\"KB\"",
"}",
"colorModel",
"=",
"{",
"ColorModel",
".",
"Depth",
"}",
"disableBreadcrumb",
"=",
"{",
"false",
"}",
"bgColorRangeLow",
"=",
"{",
"\"#757575\"",
"}",
"bgColorRangeHigh",
"=",
"{",
"\"#33ccff\"",
"}",
"/",
">",
"<",
"/DialogContent>);",
"}",
";",
"export",
"default",
"FileSizeViewer",
";"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
28,
null,
null,
44,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662048 | [
"import",
"*",
"as",
"React",
"from",
"'react'",
";",
"import",
"*",
"as",
"ReactDOM",
"from",
"'react-dom'",
";",
"import",
"{",
"BaseDialog",
",",
"IDialogConfiguration",
"}",
"from",
"'@microsoft/sp-dialog'",
";",
"import",
"FileSizeViewer",
"from",
"\"../../components/FileSizeViewer/FileSizeViewer\"",
";",
"export",
"default",
"class",
"ReactBaseDialog",
"extends",
"BaseDialog",
"{",
"public",
"data",
":",
"any",
";",
"public",
"render",
"(",
")",
"{",
"const",
"reactElement",
"=",
"<",
"FileSizeViewer",
"data",
"=",
"{",
"this",
".",
"data",
"}",
"close",
"=",
"{",
"this",
".",
"close",
"}",
"/",
">",
";",
"ReactDOM",
".",
"render",
"(",
"reactElement",
",",
"this",
".",
"domElement",
")",
";",
"}",
"public",
"getConfig",
"(",
")",
"{",
"return",
"{",
"isBlocking",
":",
"false",
"}",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
9,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662049 | [
"import",
"{",
"override",
"}",
"from",
"'@microsoft/decorators'",
";",
"import",
"{",
"Log",
"}",
"from",
"'@microsoft/sp-core-library'",
";",
"import",
"{",
"BaseListViewCommandSet",
",",
"IListViewCommandSetListViewUpdatedParameters",
",",
"IListViewCommandSetExecuteEventParameters",
",",
"Command",
"}",
"from",
"'@microsoft/sp-listview-extensibility'",
";",
"import",
"*",
"as",
"strings",
"from",
"'filesSizeStrings'",
";",
"/**\n * If your command set uses the ClientSideComponentProperties JSON input,\n * it will be deserialized into the BaseExtension.properties object.\n * You can define an interface to describe it.\n */",
"export",
"interface",
"IFilesSizeCommandSetProperties",
"{",
"disabledCommandIds",
":",
"string",
"[",
"]",
";",
"}",
"export",
"interface",
"IFileProps",
"{",
"FileName",
"?",
":",
"string",
";",
"FileSize",
"?",
":",
"number",
";",
"FileType",
"?",
":",
"string",
";",
"IsFile",
"?",
":",
"boolean",
";",
"ID",
"?",
":",
"string",
";",
"UniqueID",
":",
"string",
";",
"ValidFileType",
"?",
":",
"boolean",
";",
"}",
"const",
"LOG_SOURCE",
"=",
"'FilesSizeCommandSet'",
";",
"import",
"ReactBaseDialog",
"from",
"\"./components/ReactBaseDialog/ReactBaseDialog\"",
";",
"export",
"default",
"class",
"FilesSizeCommandSet",
"extends",
"BaseListViewCommandSet",
"<",
"IFilesSizeCommandSetProperties",
">",
"{",
"private",
"fileInfo",
":",
"IFileProps",
"[",
"]",
"=",
"[",
"]",
";",
"private",
"finalFiles",
":",
"any",
"=",
"[",
"]",
";",
"@",
"override",
"public",
"async",
"onInit",
"(",
")",
"{",
"Log",
".",
"info",
"(",
"LOG_SOURCE",
",",
"'Initialized FilesSizeCommandSet'",
")",
";",
"await",
"super",
".",
"onInit",
"(",
")",
";",
"}",
"@",
"override",
"public",
"onListViewUpdated",
"(",
"event",
")",
"{",
"const",
"fileSizeCommand",
"=",
"this",
".",
"tryGetCommand",
"(",
"'FilesSize'",
")",
";",
"let",
"showCommand",
"=",
"false",
";",
"if",
"(",
"event",
".",
"selectedRows",
".",
"length",
">",
"0",
")",
"{",
"this",
".",
"fileInfo",
"=",
"[",
"]",
";",
"this",
".",
"finalFiles",
"=",
"[",
"]",
";",
"event",
".",
"selectedRows",
".",
"map",
"(",
"(",
"item",
")",
"=>",
"{",
"this",
".",
"fileInfo",
".",
"push",
"(",
"{",
"FileName",
":",
"item",
".",
"getValueByName",
"(",
"'FileLeafRef'",
")",
",",
"FileSize",
":",
"item",
".",
"getValueByName",
"(",
"'File_x0020_Size'",
")",
",",
"FileType",
":",
"item",
".",
"getValueByName",
"(",
"'File_x0020_Type'",
")",
",",
"ID",
":",
"item",
".",
"getValueByName",
"(",
"'ID'",
")",
",",
"UniqueID",
":",
"item",
".",
"getValueByName",
"(",
"'UniqueId'",
")",
",",
"IsFile",
":",
"item",
".",
"getValueByName",
"(",
"'FSObjType'",
")",
"==",
"\"0\"",
"?",
"true",
":",
"false",
"}",
")",
";",
"}",
")",
";",
"showCommand",
"=",
"true",
";",
"}",
"else",
"{",
"if",
"(",
"this",
".",
"properties",
".",
"disabledCommandIds",
")",
"{",
"if",
"(",
"this",
".",
"properties",
".",
"disabledCommandIds",
".",
"indexOf",
"(",
"fileSizeCommand",
".",
"id",
")",
">=",
"0",
")",
"{",
"Log",
".",
"info",
"(",
"LOG_SOURCE",
",",
"'Hiding command '",
"+",
"fileSizeCommand",
".",
"id",
")",
";",
"showCommand",
"=",
"false",
";",
"}",
"}",
"if",
"(",
"event",
".",
"selectedRows",
".",
"length",
"<=",
"0",
")",
"{",
"Log",
".",
"info",
"(",
"LOG_SOURCE",
",",
"'Hiding command '",
"+",
"fileSizeCommand",
".",
"id",
")",
";",
"showCommand",
"=",
"false",
";",
"}",
"}",
"if",
"(",
"fileSizeCommand",
")",
"fileSizeCommand",
".",
"visible",
"=",
"showCommand",
";",
"}",
"@",
"override",
"public",
"onExecute",
"(",
"event",
")",
"{",
"switch",
"(",
"event",
".",
"itemId",
")",
"{",
"case",
"'FilesSize'",
":",
"if",
"(",
"this",
".",
"fileInfo",
".",
"length",
">=",
"0",
")",
"{",
"const",
"values",
"=",
"this",
".",
"fileInfo",
".",
"map",
"(",
"(",
"item",
")",
"=>",
"{",
"const",
"size",
"=",
"item",
".",
"FileSize",
";",
"const",
"sizeKB",
"=",
"size",
"/",
"1024",
";",
"const",
"name",
"=",
"item",
".",
"FileName",
";",
"const",
"id",
"=",
"item",
".",
"ID",
";",
"return",
"{",
"name",
",",
"id",
",",
"value",
":",
"sizeKB",
"}",
";",
"}",
")",
";",
"const",
"data",
"=",
"{",
"\"name\"",
":",
"\"\"",
",",
"\"children\"",
":",
"values",
"}",
";",
"const",
"dialog",
"=",
"new",
"ReactBaseDialog",
"(",
")",
";",
"dialog",
".",
"data",
"=",
"data",
";",
"dialog",
".",
"show",
"(",
")",
";",
"}",
"break",
";",
"default",
":",
"throw",
"new",
"Error",
"(",
"'Unknown command'",
")",
";",
"}",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
7,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
10157,
null,
null,
null,
248,
null,
null,
null,
null,
null,
null,
null,
null,
null,
8,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
9387,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
5,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
3,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
2,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
0,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662050 | [
"export",
"const",
"data",
"=",
"{",
"\"name\"",
":",
"\"Documents\"",
",",
"children",
":",
"[",
"{",
"name",
":",
"\"cluster\"",
",",
"children",
":",
"[",
"{",
"name",
":",
"\"AgglomerativeCluster\"",
",",
"value",
":",
"3938",
",",
"link",
":",
"\"https://blog.josequinto.com\"",
"}",
",",
"{",
"name",
":",
"\"CommunityStructure\"",
",",
"value",
":",
"3812",
"}",
",",
"{",
"name",
":",
"\"HierarchicalCluster\"",
",",
"value",
":",
"6714",
"}",
",",
"{",
"name",
":",
"\"MergeEdge\"",
",",
"value",
":",
"743",
"}",
"]",
"}",
",",
"{",
"name",
":",
"\"graph\"",
",",
"children",
":",
"[",
"{",
"name",
":",
"\"BetweennessCentrality\"",
",",
"value",
":",
"3534",
"}",
",",
"{",
"name",
":",
"\"LinkDistance\"",
",",
"value",
":",
"5731",
"}",
",",
"{",
"name",
":",
"\"MaxFlowMinCut\"",
",",
"value",
":",
"7840",
"}",
",",
"{",
"name",
":",
"\"ShortestPaths\"",
",",
"value",
":",
"5914",
"}",
",",
"{",
"name",
":",
"\"SpanningTree\"",
",",
"value",
":",
"3416",
"}",
"]",
"}",
",",
"{",
"name",
":",
"\"optimization\"",
",",
"children",
":",
"[",
"{",
"name",
":",
"\"AspectRatioBanker\"",
",",
"value",
":",
"7074",
"}",
"]",
"}",
"]",
"}",
";"
] | [
null,
null,
6,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662051 | [
"import",
"{",
"AfterViewInit",
",",
"Component",
",",
"EventEmitter",
",",
"Input",
",",
"Output",
"}",
"from",
"'@angular/core'",
";",
"import",
"{",
"tsParticles",
"}",
"from",
"'tsparticles'",
";",
"import",
"type",
"{",
"Container",
",",
"Engine",
"}",
"from",
"'tsparticles'",
";",
"import",
"{",
"IParticlesProps",
"}",
"from",
"'./ng-particles.module'",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'ng-particles'",
",",
"template",
":",
"`\n <div [id]=\"id\"></div> `",
",",
"styles",
":",
"[",
"]",
",",
"}",
")",
"export",
"class",
"NgParticlesComponent",
"implements",
"AfterViewInit",
"{",
"@",
"Input",
"(",
")",
"options",
"?",
":",
"IParticlesProps",
";",
"@",
"Input",
"(",
")",
"url",
"?",
":",
"string",
";",
"@",
"Input",
"(",
")",
"id",
":",
"string",
";",
"@",
"Output",
"(",
")",
"particlesLoaded",
":",
"EventEmitter",
"<",
"Container",
">",
"=",
"new",
"EventEmitter",
"<",
"Container",
">",
"(",
")",
";",
"@",
"Output",
"(",
")",
"particlesInit",
":",
"EventEmitter",
"<",
"Engine",
">",
"=",
"new",
"EventEmitter",
"<",
"Engine",
">",
"(",
")",
";",
"public",
"ngAfterViewInit",
"(",
")",
"{",
"this",
".",
"particlesInit",
".",
"emit",
"(",
"tsParticles",
")",
";",
"const",
"cb",
"=",
"(",
"container",
"?",
")",
"=>",
"{",
"this",
".",
"particlesLoaded",
".",
"emit",
"(",
"container",
")",
";",
"}",
";",
"if",
"(",
"this",
".",
"url",
")",
"{",
"tsParticles",
".",
"loadJSON",
"(",
"this",
".",
"id",
",",
"this",
".",
"url",
")",
".",
"then",
"(",
"cb",
")",
";",
"}",
"else",
"if",
"(",
"this",
".",
"options",
")",
"{",
"tsParticles",
".",
"load",
"(",
"this",
".",
"id",
",",
"this",
".",
"options",
")",
".",
"then",
"(",
"cb",
")",
";",
"}",
"else",
"{",
"console",
".",
"error",
"(",
"'You must specify options or url to load tsParticles'",
")",
";",
"}",
"}",
"}",
"@",
"Component",
"(",
"{",
"selector",
":",
"'Particles'",
",",
"template",
":",
"`\n <div [id]=\"id\"></div> `",
",",
"styles",
":",
"[",
"]",
"}",
")",
"export",
"class",
"ParticlesComponent",
"extends",
"NgParticlesComponent",
"{",
"@",
"Input",
"(",
")",
"options",
"?",
":",
"IParticlesProps",
";",
"@",
"Input",
"(",
")",
"url",
"?",
":",
"string",
";",
"@",
"Input",
"(",
")",
"id",
":",
"string",
";",
"@",
"Output",
"(",
")",
"particlesLoaded",
":",
"EventEmitter",
"<",
"Container",
">",
"=",
"new",
"EventEmitter",
"<",
"Container",
">",
"(",
")",
";",
"@",
"Output",
"(",
")",
"particlesInit",
":",
"EventEmitter",
"<",
"Engine",
">",
"=",
"new",
"EventEmitter",
"<",
"Engine",
">",
"(",
")",
";",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
202,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662052 | [
"import",
"{",
"Component",
",",
"OnInit",
"}",
"from",
"'@angular/core'",
";",
"import",
"type",
"{",
"Container",
",",
"ISourceOptions",
"}",
"from",
"\"tsparticles\"",
";",
"@",
"Component",
"(",
"{",
"selector",
":",
"'app-container'",
",",
"templateUrl",
":",
"'./container.component.html'",
",",
"styleUrls",
":",
"[",
"'./container.component.css'",
"]",
"}",
")",
"export",
"class",
"ContainerComponent",
"implements",
"OnInit",
"{",
"id",
"=",
"'tsparticles'",
";",
"options",
":",
"ISourceOptions",
"=",
"{",
"background",
":",
"{",
"color",
":",
"{",
"value",
":",
"'#0d47a1'",
"}",
"}",
",",
"fpsLimit",
":",
"60",
",",
"interactivity",
":",
"{",
"events",
":",
"{",
"onClick",
":",
"{",
"enable",
":",
"true",
",",
"mode",
":",
"'push'",
"}",
",",
"onHover",
":",
"{",
"enable",
":",
"true",
",",
"mode",
":",
"'repulse'",
"}",
",",
"resize",
":",
"true",
"}",
",",
"modes",
":",
"{",
"push",
":",
"{",
"quantity",
":",
"4",
"}",
",",
"repulse",
":",
"{",
"distance",
":",
"200",
",",
"duration",
":",
"0.4",
"}",
"}",
"}",
",",
"particles",
":",
"{",
"color",
":",
"{",
"value",
":",
"'#ffffff'",
"}",
",",
"links",
":",
"{",
"color",
":",
"'#ffffff'",
",",
"distance",
":",
"150",
",",
"enable",
":",
"true",
",",
"opacity",
":",
"0.5",
",",
"width",
":",
"1",
"}",
",",
"collisions",
":",
"{",
"enable",
":",
"true",
"}",
",",
"move",
":",
"{",
"direction",
":",
"'none'",
",",
"enable",
":",
"true",
",",
"outMode",
":",
"'bounce'",
",",
"random",
":",
"false",
",",
"speed",
":",
"6",
",",
"straight",
":",
"false",
"}",
",",
"number",
":",
"{",
"density",
":",
"{",
"enable",
":",
"true",
",",
"area",
":",
"800",
"}",
",",
"value",
":",
"80",
"}",
",",
"opacity",
":",
"{",
"value",
":",
"0.5",
"}",
",",
"shape",
":",
"{",
"type",
":",
"'circle'",
"}",
",",
"size",
":",
"{",
"random",
":",
"true",
",",
"value",
":",
"5",
"}",
"}",
",",
"detectRetina",
":",
"true",
"}",
";",
"constructor",
"(",
")",
"{",
"}",
"ngOnInit",
"(",
")",
"{",
"}",
"public",
"particlesLoaded",
"(",
"container",
")",
"{",
"console",
".",
"log",
"(",
"container",
")",
";",
"}",
"}"
] | [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
4,
null,
null,
null,
null,
null,
4,
null,
202,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
] |
662053 | [
"export",
"const",
"environment",
"=",
"{",
"production",
":",
"false",
"}",
";"
] | [
null,
null,
6,
null,
null,
null,
null,
null,
null,
null
] |
662054 | [
"export",
"const",
"environment",
"=",
"{",
"production",
":",
"true",
"}",
";"
] | [
null,
null,
6,
null,
null,
null,
null,
null,
null,
null
] |