id
stringlengths
1
6
tokens
sequence
labels
sequence
200
[ "import", "{", "Router", ",", "Request", ",", "Response", "}", "from", "'express'", ";", "import", "{", "getAll", "}", "from", "'../services/invoice.service'", ";", "const", "router", "=", "Router", "(", ")", ";", "router", ".", "get", "(", "'/'", ",", "async", "(", "req", ",", "res", ")", "=>", "{", "try", "{", "const", "{", "user", "}", "=", "req", ".", "query", ";", "let", "results", "=", "await", "getAll", "(", "user", ")", ";", "res", ".", "send", "(", "results", ")", ";", "}", "catch", "(", "ex", ")", "{", "console", ".", "log", "(", "ex", ")", ";", "res", ".", "status", "(", "500", ")", ".", "send", "(", "ex", ")", ";", "}", "}", ")", ";", "export", "const", "InvoiceCtrl", "=", "router", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 55, null, null, null, null, null, null, null, null, null, null, null, null, null, 40, null, 16, 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, 55, null, null, null ]
201
[ "import", "{", "Init", ",", "FeeExtensionsConfig", ",", "Organization", "}", "from", "'../convectorUtils'", ";", "export", "async", "function", "createConfig", "(", "user", ",", "orgId", ",", "config", ")", "{", "const", "ctrls", "=", "await", "Init", "(", "user", ")", ";", "await", "ctrls", ".", "feeExtensions", ".", "initConfig", "(", "orgId", ",", "config", ")", ";", "}", "export", "async", "function", "updateConfig", "(", "user", ",", "orgId", ",", "fee", ",", "value", ")", "{", "const", "ctrls", "=", "await", "Init", "(", "user", ")", ";", "await", "ctrls", ".", "feeExtensions", ".", "updateConfig", "(", "orgId", ",", "fee", ",", "value", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 2, null, 2, null, 35094, 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, 7, null, 2, null, 2, null, 2, null, 3, 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 ]
202
[ "import", "{", "Router", ",", "Request", ",", "Response", "}", "from", "\"express\"", ";", "import", "{", "createConfig", ",", "updateConfig", "}", "from", "'../services/feeExtensions.service'", ";", "const", "router", "=", "Router", "(", ")", ";", "router", ".", "post", "(", "'/'", ",", "async", "(", "req", ",", "res", ")", "=>", "{", "const", "{", "orgId", ",", "config", "}", "=", "req", ".", "body", ";", "const", "{", "user", "}", "=", "req", ".", "query", ";", "if", "(", "!", "Object", ".", "keys", "(", "config", ")", ".", "length", ")", "{", "res", ".", "status", "(", "404", ")", ".", "send", "(", "`Object of type \"FeeExtensionsConfig\" is missing from body`", ")", ";", "return", ";", "}", "if", "(", "!", "user", ")", "{", "res", ".", "status", "(", "404", ")", ".", "send", "(", "`User param is missing from query url`", ")", ";", "return", ";", "}", "try", "{", "await", "createConfig", "(", "user", ",", "orgId", ",", "config", ")", ";", "res", ".", "send", "(", "'Created'", ")", ";", "}", "catch", "(", "e", ")", "{", "res", ".", "status", "(", "500", ")", ".", "send", "(", "e", ")", ";", "}", "}", ")", ";", "router", ".", "put", "(", "'/'", ",", "async", "(", "req", ",", "res", ")", "=>", "{", "const", "{", "orgId", ",", "fee", ",", "value", "}", "=", "req", ".", "body", ";", "const", "{", "user", "}", "=", "req", ".", "query", ";", "if", "(", "!", "orgId", "||", "!", "fee", "||", "!", "value", ")", "{", "res", ".", "status", "(", "404", ")", ".", "send", "(", "`Fields are missing from body`", ")", ";", "return", ";", "}", "if", "(", "!", "user", ")", "{", "res", ".", "status", "(", "404", ")", ".", "send", "(", "`User param is missing from query url`", ")", ";", "return", ";", "}", "try", "{", "await", "updateConfig", "(", "user", ",", "orgId", ",", "fee", ",", "value", ")", ";", "res", ".", "send", "(", "'Updated'", ")", ";", "}", "catch", "(", "e", ")", "{", "res", ".", "status", "(", "500", ")", ".", "send", "(", "e", ")", ";", "}", "}", ")", ";", "export", "const", "FeeExtensionsCtrl", "=", "router", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 55, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 55, null, null, null ]
203
[ "import", "{", "couchQueryAll", "}", "from", "'../convectorUtils'", ";", "import", "{", "ClaimResponse", "}", "from", "'financial-cc'", ";", "import", "{", "collections", "}", "from", "'../utils/collections'", ";", "export", "async", "function", "getAll", "(", "user", "?", ")", "{", "let", "resCols", "=", "await", "collections", "(", ")", ";", "return", "await", "couchQueryAll", "(", "'claimResponses_all'", ",", "ClaimResponse", ",", "null", ",", "resCols", ".", "claimResponse", ",", "user", ")", ";", "}" ]
[ 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 ]
204
[ "import", "{", "Router", ",", "Request", ",", "Response", "}", "from", "'express'", ";", "import", "{", "getAll", "}", "from", "'../services/account.service'", ";", "import", "{", "join", "}", "from", "'path'", ";", "const", "router", "=", "Router", "(", ")", ";", "router", ".", "get", "(", "'/'", ",", "async", "(", "req", ",", "res", ")", "=>", "{", "try", "{", "const", "indexFile", "=", "join", "(", "__dirname", ",", "'../../../../frontend/dist/index.html'", ")", ";", "console", ".", "log", "(", "indexFile", ")", ";", "res", ".", "sendFile", "(", "indexFile", ")", ";", "}", "catch", "(", "ex", ")", "{", "console", ".", "log", "(", "ex", ")", ";", "res", ".", "status", "(", "500", ")", ".", "send", "(", "ex", ")", ";", "}", "}", ")", ";", "router", ".", "get", "(", "'/healthcheck'", ",", "async", "(", "req", ",", "res", ")", "=>", "{", "try", "{", "res", ".", "send", "(", "'SUCCESS'", ")", ";", "}", "catch", "(", "ex", ")", "{", "console", ".", "log", "(", "ex", ")", ";", "res", ".", "status", "(", "500", ")", ".", "send", "(", "ex", ")", ";", "}", "}", ")", ";", "export", "const", "DefaultCtrl", "=", "router", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 55, null, null, null, null, null, null, null, null, null, null, null, null, null, 40, null, 16, 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, 40, null, 16, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 55, null, null, null ]
205
[ "import", "*", "as", "dotenv", "from", "'dotenv'", ";", "dotenv", ".", "config", "(", ")", ";", "import", "*", "as", "path", "from", "'path'", ";", "import", "express", "from", "'express'", ";", "import", "*", "as", "bodyParser", "from", "'body-parser'", ";", "import", "{", "PORT", ",", "CHANNEL", ",", "CHAINCODE", ",", "COUCHDB_PROTOCOL", ",", "COUCHDB_HOST", ",", "COUCHDB_PORT", "}", "from", "'./utils'", ";", "import", "{", "OrganizationCtrl", ",", "PaymentCtrl", ",", "ClaimCtrl", ",", "PatientCtrl", ",", "ProcedureCtrl", ",", "ParticipantCtrl", ",", "InvoiceCtrl", ",", "AccountCtrl", ",", "FeeExtensionsCtrl", "}", "from", "'./controllers'", ";", "import", "{", "ChargeItemCtrl", "}", "from", "'./controllers/chargeItem.controller'", ";", "import", "{", "ClaimResponseCtrl", "}", "from", "'./controllers/claimResponse.controller'", ";", "import", "{", "EncounterCtrl", "}", "from", "'./controllers/encounter.controller'", ";", "import", "{", "identity", "}", "from", "'./utils/identity'", ";", "import", "{", "DefaultCtrl", "}", "from", "'./controllers/default.controller'", ";", "import", "{", "join", "}", "from", "'path'", ";", "const", "app", "=", "express", "(", ")", ";", "const", "port", "=", "process", ".", "env", ".", "PORT", "||", "8080", ";", "app", ".", "use", "(", "bodyParser", ".", "urlencoded", "(", "{", "extended", ":", "true", ",", "limit", ":", "'40mb'", "}", ")", ")", ";", "app", ".", "use", "(", "bodyParser", ".", "json", "(", "{", "limit", ":", "'40mb'", "}", ")", ")", ";", "app", ".", "use", "(", "(", "req", ",", "res", ",", "next", ")", "=>", "{", "res", ".", "header", "(", "'Access-Control-Allow-Origin'", ",", "'*'", ")", ";", "res", ".", "header", "(", "'Access-Control-Allow-Headers'", ",", "'Origin, X-Requested-With, Content-Type, Accept'", ")", ";", "res", ".", "header", "(", "'Access-Control-Allow-Methods'", ",", "'GET, POST, PUT, DELETE, OPTIONS'", ")", ";", "next", "(", ")", ";", "}", ")", ";", "app", ".", "use", "(", "express", ".", "static", "(", "join", "(", "__dirname", ",", "'../../../frontend/dist'", ")", ")", ")", ";", "app", ".", "use", "(", "'/api/organization'", ",", "OrganizationCtrl", ")", ";", "app", ".", "use", "(", "'/api/payment'", ",", "PaymentCtrl", ")", ";", "app", ".", "use", "(", "'/api/claim'", ",", "ClaimCtrl", ")", ";", "app", ".", "use", "(", "'/api/patient'", ",", "PatientCtrl", ")", ";", "app", ".", "use", "(", "'/api/participant'", ",", "ParticipantCtrl", ")", ";", "app", ".", "use", "(", "'/api/invoice'", ",", "InvoiceCtrl", ")", ";", "app", ".", "use", "(", "'/api/account'", ",", "AccountCtrl", ")", ";", "app", ".", "use", "(", "'/api/procedure'", ",", "ProcedureCtrl", ")", ";", "app", ".", "use", "(", "'/api/chargeItem'", ",", "ChargeItemCtrl", ")", ";", "app", ".", "use", "(", "'/api/claimResponse'", ",", "ClaimResponseCtrl", ")", ";", "app", ".", "use", "(", "'/api/encounter'", ",", "EncounterCtrl", ")", ";", "app", ".", "use", "(", "'/api/feeExtensions'", ",", "FeeExtensionsCtrl", ")", ";", "app", ".", "use", "(", "'/*'", ",", "DefaultCtrl", ")", ";", "const", "serverIdentity", "=", "identity", "(", ")", ";", "app", ".", "listen", "(", "port", ",", "(", ")", "=>", "console", ".", "log", "(", "`Running as ${", "serverIdentity", ".", "org", "}:${", "serverIdentity", ".", "user", "} in port ${", "port", "}`", ")", ")", ";", "module", ".", "exports", "=", "app", ";", "console", ".", "log", "(", "`PORT=${", "PORT", "}`", ")", ";", "console", ".", "log", "(", "`USERCERT=${", "serverIdentity", ".", "user", "}`", ")", ";", "console", ".", "log", "(", "`ORGCERT=${", "serverIdentity", ".", "org", "}`", ")", ";", "console", ".", "log", "(", "`KEYSTORE=${", "serverIdentity", ".", "keyStore", "}`", ")", ";", "console", ".", "log", "(", "`NETWORKPROFILE=${", "serverIdentity", ".", "networkProfile", "}`", ")", ";", "console", ".", "log", "(", "`CHANNEL=${", "CHANNEL", "}`", ")", ";", "console", ".", "log", "(", "`CHAINCODE=${", "CHAINCODE", "}`", ")", ";", "console", ".", "log", "(", "`COUCHDB_PROTOCOL=${", "COUCHDB_PROTOCOL", "}`", ")", ";", "console", ".", "log", "(", "`COUCHDB_HOST=${", "COUCHDB_HOST", "}`", ")", ";", "console", ".", "log", "(", "`COUCHDB_PORT=${", "COUCHDB_PORT", "}`", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1984, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 37596, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
206
[ "import", "{", "resolve", "}", "from", "'path'", ";", "import", "{", "remote", ",", "app", "}", "from", "'electron'", ";", "export", "const", "getPath", "=", "(", "...", "relativePaths", ")", "=>", "{", "let", "path", ";", "if", "(", "remote", ")", "{", "path", "=", "remote", ".", "app", ".", "getPath", "(", "'userData'", ")", ";", "}", "else", "if", "(", "app", ")", "{", "path", "=", "app", ".", "getPath", "(", "'userData'", ")", ";", "}", "else", "{", "return", "null", ";", "}", "return", "resolve", "(", "path", ",", "...", "relativePaths", ")", ".", "replace", "(", "/\\\\/g", ",", "'/'", ")", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 5, 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 ]
207
[ "export", "const", "makeId", "=", "(", "length", ",", "possible", "=", "'abcdefghijklmnopqrstuvwxyz'", ")", "=>", "{", "let", "id", "=", "''", ";", "for", "(", "let", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "id", "+=", "possible", ".", "charAt", "(", "Math", ".", "floor", "(", "Math", ".", "random", "(", ")", "*", "possible", ".", "length", ")", ")", ";", "}", "return", "id", ";", "}", ";" ]
[ null, null, 2, null, null, 3, null, 2, null, null, null, null, null, null, 2, 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 ]
208
[ "import", "{", "ipcMain", "}", "from", "'electron'", ";", "import", "{", "autoUpdater", "}", "from", "'electron-updater'", ";", "import", "{", "AppWindow", "}", "from", "'../app-window'", ";", "export", "const", "runAutoUpdaterService", "=", "(", "appWindow", ")", "=>", "{", "ipcMain", ".", "on", "(", "'update-install'", ",", "(", ")", "=>", "{", "autoUpdater", ".", "quitAndInstall", "(", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'update-check'", ",", "(", ")", "=>", "{", "if", "(", "process", ".", "env", ".", "ENV", "!==", "'dev'", ")", "{", "autoUpdater", ".", "checkForUpdates", "(", ")", ";", "}", "}", ")", ";", "autoUpdater", ".", "on", "(", "'update-downloaded'", ",", "(", "{", "version", "}", ")", "=>", "{", "appWindow", ".", "webContents", ".", "send", "(", "'update-available'", ",", "version", ")", ";", "}", ")", ";", "}", ";" ]
[ 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, 21733, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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
[ "import", "{", "promises", "as", "fs", "}", "from", "'fs'", ";", "import", "{", "resolve", "}", "from", "'path'", ";", "import", "{", "app", "}", "from", "'electron'", ";", "import", "{", "makeId", "}", "from", "'~/utils'", ";", "export", "const", "getIcon", "=", "async", "(", "ext", ")", "=>", "{", "const", "tempPath", "=", "app", ".", "getPath", "(", "'temp'", ")", ";", "const", "filePath", "=", "resolve", "(", "tempPath", ",", "`${", "makeId", "(", "16", ")", "}.${", "ext", "}`", ")", ";", "await", "fs", ".", "writeFile", "(", "filePath", ",", "undefined", ")", ";", "let", "data", ";", "try", "{", "data", "=", "await", "app", ".", "getFileIcon", "(", "filePath", ",", "{", "size", ":", "'normal'", "}", ")", ";", "}", "catch", "(", "error", ")", "{", "}", "await", "fs", ".", "unlink", "(", "filePath", ")", ";", "return", "{", "ext", ",", "icon", ":", "data", ".", "toDataURL", "(", ")", "}", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, 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, 2, null, null, null, null, 2, 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, 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 ]
210
[ "import", "{", "ipcMain", "}", "from", "'electron'", ";", "import", "{", "IProtocol", "}", "from", "'qusly-core'", ";", "import", "{", "AppWindow", "}", "from", "'../app-window'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "makeId", "}", "from", "'~/utils'", ";", "import", "{", "getIcon", "}", "from", "'../utils/icons'", ";", "export", "const", "runMessagingService", "=", "(", "appWindow", ")", "=>", "{", "ipcMain", ".", "on", "(", "`get-testing-site`", ",", "(", "e", ",", "id", ")", "=>", "{", "const", "{", "HOSTNAME", ",", "USER", ",", "PASSWORD", ",", "PROTOCOL", ",", "PORT", ",", "ENABLED", "}", "=", "process", ".", "env", ";", "const", "site", "=", "{", "_id", ":", "makeId", "(", "32", ")", ",", "title", ":", "HOSTNAME", ",", "host", ":", "HOSTNAME", ",", "password", ":", "PASSWORD", ",", "user", ":", "USER", ",", "protocol", ":", "PROTOCOL", "as", "IProtocol", ",", "port", ":", "parseInt", "(", "PORT", ")", ",", "}", ";", "appWindow", ".", "webContents", ".", "send", "(", "`get-testing-site-${", "id", "}`", ",", "ENABLED", "===", "'true'", "?", "site", ":", "null", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'get-icons'", ",", "async", "(", "e", ",", "list", ",", "id", ")", "=>", "{", "const", "promises", "=", "list", ".", "map", "(", "ext", "=>", "getIcon", "(", "ext", ")", ")", ";", "const", "data", "=", "await", "Promise", ".", "all", "(", "promises", ")", ";", "const", "icons", "=", "{", "}", ";", "data", ".", "forEach", "(", "(", "{", "ext", ",", "icon", "}", ")", "=>", "{", "icons", "[", "ext", "]", "=", "icon", ";", "}", ")", ";", "appWindow", ".", "webContents", ".", "send", "(", "`get-icons-${", "id", "}`", ",", "icons", ")", ";", "}", ")", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 21733, null, null, null, null, null, null, null, null, null, null, 562, 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, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 562, null, 5, null, 2, null, null, null, null, 5, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, 5, 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 ]
211
[ "import", "{", "ipcMain", "}", "from", "'electron'", ";", "import", "*", "as", "Datastore", "from", "'nedb'", ";", "import", "{", "getPath", "}", "from", "'~/utils'", ";", "import", "{", "IFindOperation", ",", "IInsertOperation", ",", "IRemoveOperation", ",", "IUpdateOperation", ",", "}", "from", "'~/interfaces'", ";", "interface", "Databases", "{", "[", "key", "]", ":", "Datastore", ";", "}", "export", "class", "StorageService", "{", "public", "databases", ":", "Databases", "=", "{", "sites", ":", "null", ",", "}", ";", "public", "constructor", "(", ")", "{", "ipcMain", ".", "on", "(", "'storage-get'", ",", "async", "(", "e", ",", "id", ",", "data", ")", "=>", "{", "const", "docs", "=", "await", "this", ".", "find", "(", "data", ")", ";", "e", ".", "sender", ".", "send", "(", "id", ",", "docs", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'storage-get-one'", ",", "async", "(", "e", ",", "id", ",", "data", ")", "=>", "{", "const", "doc", "=", "await", "this", ".", "findOne", "(", "data", ")", ";", "e", ".", "sender", ".", "send", "(", "id", ",", "doc", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'storage-insert'", ",", "async", "(", "e", ",", "id", ",", "data", ")", "=>", "{", "const", "doc", "=", "await", "this", ".", "insert", "(", "data", ")", ";", "e", ".", "sender", ".", "send", "(", "id", ",", "doc", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'storage-remove'", ",", "async", "(", "e", ",", "id", ",", "data", ")", "=>", "{", "const", "numRemoved", "=", "await", "this", ".", "remove", "(", "data", ")", ";", "e", ".", "sender", ".", "send", "(", "id", ",", "numRemoved", ")", ";", "}", ")", ";", "ipcMain", ".", "on", "(", "'storage-update'", ",", "async", "(", "e", ",", "id", ",", "data", ")", "=>", "{", "const", "numReplaced", "=", "await", "this", ".", "update", "(", "data", ")", ";", "e", ".", "sender", ".", "send", "(", "id", ",", "numReplaced", ")", ";", "}", ")", ";", "}", "public", "find", "<", "T", ">", "(", "data", ")", "{", "const", "{", "scope", ",", "query", "}", "=", "data", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "this", ".", "databases", "[", "scope", "]", ".", "find", "(", "query", ",", "(", "err", ",", "docs", ")", "=>", "{", "if", "(", "err", ")", "reject", "(", "err", ")", ";", "resolve", "(", "docs", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "findOne", "<", "T", ">", "(", "data", ")", "{", "const", "{", "scope", ",", "query", "}", "=", "data", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "this", ".", "databases", "[", "scope", "]", ".", "findOne", "(", "query", ",", "(", "err", ",", "doc", ")", "=>", "{", "if", "(", "err", ")", "reject", "(", "err", ")", ";", "resolve", "(", "doc", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "insert", "<", "T", ">", "(", "data", ")", "{", "const", "{", "scope", ",", "item", "}", "=", "data", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "this", ".", "databases", "[", "scope", "]", ".", "insert", "(", "item", ",", "(", "err", ",", "doc", ")", "=>", "{", "if", "(", "err", ")", "reject", "(", "err", ")", ";", "resolve", "(", "doc", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "remove", "(", "data", ")", "{", "const", "{", "scope", ",", "query", ",", "multi", "}", "=", "data", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "this", ".", "databases", "[", "scope", "]", ".", "remove", "(", "query", ",", "{", "multi", "}", ",", "(", "err", ",", "removed", ")", "=>", "{", "if", "(", "err", ")", "reject", "(", "err", ")", ";", "resolve", "(", "removed", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "update", "(", "data", ")", "{", "const", "{", "scope", ",", "query", ",", "value", ",", "multi", "}", "=", "data", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "this", ".", "databases", "[", "scope", "]", ".", "update", "(", "query", ",", "{", "$set", ":", "value", "}", ",", "{", "multi", "}", ",", "(", "err", ",", "replaced", ")", "=>", "{", "if", "(", "err", ")", "reject", "(", "err", ")", ";", "resolve", "(", "replaced", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "run", "(", ")", "{", "for", "(", "const", "key", "in", "this", ".", "databases", ")", "{", "this", ".", "databases", "[", "key", "]", "=", "this", ".", "createDatabase", "(", "key", ".", "toLowerCase", "(", ")", ")", ";", "}", "}", "private", "createDatabase", "=", "(", "name", ")", "=>", "{", "return", "new", "Datastore", "(", "{", "filename", ":", "getPath", "(", "`storage/${", "name", "}.db`", ")", ",", "autoload", ":", "true", ",", "}", ")", ";", "}", ";", "}", "export", "default", "new", "StorageService", "(", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 562, null, 2, null, 0, 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, 562, null, 2, 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, 562, null, 2, 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, 562, null, 2, null, 0, 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, 562, null, 2, null, 0, 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, 7, null, null, null, null, 0, 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, 7, null, null, null, null, 0, 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, 7, null, null, null, null, 0, 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, 7, null, 0, 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, 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, 7, null, 0, 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, 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, 4, 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, 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 ]
212
[ "import", "{", "BrowserWindow", ",", "app", "}", "from", "'electron'", ";", "import", "{", "readFileSync", ",", "writeFileSync", "}", "from", "'fs'", ";", "import", "{", "resolve", ",", "join", "}", "from", "'path'", ";", "import", "{", "getPath", "}", "from", "'~/utils'", ";", "import", "{", "runAutoUpdaterService", "}", "from", "'./services/auto-updater'", ";", "import", "{", "runMessagingService", "}", "from", "'./services/messaging'", ";", "import", "storage", "from", "'./services/storage'", ";", "export", "class", "AppWindow", "extends", "BrowserWindow", "{", "public", "constructor", "(", ")", "{", "super", "(", "{", "frame", ":", "false", ",", "minWidth", ":", "400", ",", "minHeight", ":", "450", ",", "width", ":", "900", ",", "height", ":", "700", ",", "show", ":", "true", ",", "titleBarStyle", ":", "'hiddenInset'", ",", "webPreferences", ":", "{", "plugins", ":", "true", ",", "nodeIntegration", ":", "true", ",", "contextIsolation", ":", "false", ",", "experimentalFeatures", ":", "true", ",", "}", ",", "icon", ":", "resolve", "(", "app", ".", "getAppPath", "(", ")", ",", "'static/app-icons/icon.png'", ")", ",", "}", ")", ";", "runAutoUpdaterService", "(", "this", ")", ";", "runMessagingService", "(", "this", ")", ";", "storage", ".", "run", "(", ")", ";", "const", "windowDataPath", "=", "getPath", "(", "'window-data.json'", ")", ";", "let", "windowState", "=", "{", "}", ";", "try", "{", "windowState", "=", "JSON", ".", "parse", "(", "readFileSync", "(", "windowDataPath", ",", "'utf8'", ")", ")", ";", "}", "catch", "(", "e", ")", "{", "writeFileSync", "(", "windowDataPath", ",", "JSON", ".", "stringify", "(", "{", "}", ")", ")", ";", "}", "if", "(", "windowState", ")", "{", "this", ".", "setBounds", "(", "{", "...", "windowState", ".", "bounds", "}", ")", ";", "}", "if", "(", "windowState", ")", "{", "if", "(", "windowState", ".", "maximized", ")", "{", "this", ".", "maximize", "(", ")", ";", "}", "if", "(", "windowState", ".", "fullscreen", ")", "{", "this", ".", "setFullScreen", "(", "true", ")", ";", "}", "}", "this", ".", "on", "(", "'resize'", ",", "(", ")", "=>", "{", "if", "(", "!", "this", ".", "isMaximized", "(", ")", ")", "{", "windowState", ".", "bounds", "=", "this", ".", "getBounds", "(", ")", ";", "}", "}", ")", ";", "this", ".", "on", "(", "'move'", ",", "(", ")", "=>", "{", "if", "(", "!", "this", ".", "isMaximized", "(", ")", ")", "{", "windowState", ".", "bounds", "=", "this", ".", "getBounds", "(", ")", ";", "}", "}", ")", ";", "this", ".", "on", "(", "'close'", ",", "(", ")", "=>", "{", "windowState", ".", "maximized", "=", "this", ".", "isMaximized", "(", ")", ";", "windowState", ".", "fullscreen", "=", "this", ".", "isFullScreen", "(", ")", ";", "writeFileSync", "(", "windowDataPath", ",", "JSON", ".", "stringify", "(", "windowState", ")", ")", ";", "}", ")", ";", "if", "(", "process", ".", "env", ".", "ENV", "===", "'dev'", ")", "{", "this", ".", "webContents", ".", "openDevTools", "(", "{", "mode", ":", "'detach'", "}", ")", ";", "this", ".", "loadURL", "(", "'http://localhost:4444/app.html'", ")", ";", "}", "else", "{", "this", ".", "loadURL", "(", "join", "(", "'file://'", ",", "app", ".", "getAppPath", "(", ")", ",", "'build/app.html'", ")", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
213
[ "import", "{", "Menu", ",", "BrowserWindow", "}", "from", "'electron'", ";", "export", "const", "getMainMenu", "=", "(", "window", ")", "=>", "{", "return", "Menu", ".", "buildFromTemplate", "(", "[", "{", "label", ":", "'Edit'", ",", "submenu", ":", "[", "{", "role", ":", "'undo'", "}", ",", "{", "role", ":", "'redo'", "}", ",", "{", "type", ":", "'separator'", "}", ",", "{", "role", ":", "'cut'", "}", ",", "{", "role", ":", "'copy'", "}", ",", "{", "role", ":", "'paste'", "}", ",", "{", "role", ":", "'pasteAndMatchStyle'", "}", ",", "{", "role", ":", "'delete'", "}", ",", "{", "role", ":", "'selectAll'", "}", ",", "{", "role", ":", "'quit'", "}", ",", "{", "label", ":", "'Reload'", ",", "accelerator", ":", "'CmdOrCtrl+R'", ",", "click", ":", "(", ")", "=>", "{", "if", "(", "process", ".", "env", ".", "ENV", "===", "'dev'", ")", "{", "window", ".", "webContents", ".", "reload", "(", ")", ";", "}", "}", ",", "}", ",", "{", "label", ":", "'Toggle developer tools'", ",", "accelerator", ":", "'CmdOrCtrl+Shift+F12'", ",", "visible", ":", "false", ",", "click", "(", ")", "{", "window", ".", "webContents", ".", "openDevTools", "(", ")", ";", "}", ",", "}", ",", "]", ",", "}", ",", "]", ")", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, 548, null, null, 348, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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 ]
214
[ "import", "{", "ipcMain", ",", "app", ",", "Menu", "}", "from", "'electron'", ";", "import", "{", "platform", "}", "from", "'os'", ";", "import", "{", "config", "}", "from", "'dotenv'", ";", "import", "{", "setPassword", ",", "getPassword", ",", "deletePassword", "}", "from", "'keytar'", ";", "import", "{", "getMainMenu", "}", "from", "'./menus/main'", ";", "import", "{", "AppWindow", "}", "from", "'./app-window'", ";", "app", ".", "name", "=", "'Qusly'", ";", "(", "process", ".", "env", "as", "any", ")", "[", "'ELECTRON_DISABLE_SECURITY_WARNINGS'", "]", "=", "true", ";", "ipcMain", ".", "setMaxListeners", "(", "0", ")", ";", "process", ".", "on", "(", "'uncaughtException'", ",", "error", "=>", "{", "console", ".", "error", "(", "error", ")", ";", "}", ")", ";", "if", "(", "process", ".", "env", ".", "ENV", "===", "'dev'", ")", "{", "config", "(", ")", ";", "}", "let", "appWindow", ";", "app", ".", "on", "(", "'ready'", ",", "(", ")", "=>", "{", "appWindow", "=", "new", "AppWindow", "(", ")", ";", "app", ".", "on", "(", "'window-all-closed'", ",", "(", ")", "=>", "{", "if", "(", "platform", "(", ")", "!==", "'darwin'", ")", "{", "app", ".", "quit", "(", ")", ";", "}", "}", ")", ";", "Menu", ".", "setApplicationMenu", "(", "getMainMenu", "(", "appWindow", ")", ")", ";", "}", ")", ";", "ipcMain", ".", "handle", "(", "'set-password'", ",", "async", "(", "e", ",", "service", ",", "account", ",", "password", ")", "=>", "{", "return", "await", "setPassword", "(", "service", ",", "account", ",", "password", ")", ";", "}", ")", ";", "ipcMain", ".", "handle", "(", "'get-password'", ",", "async", "(", "e", ",", "service", ",", "account", ")", "=>", "{", "return", "await", "getPassword", "(", "service", ",", "account", ")", ";", "}", ")", ";", "ipcMain", ".", "handle", "(", "'delete-password'", ",", "async", "(", "e", ",", "service", ",", "account", ")", "=>", "{", "return", "await", "deletePassword", "(", "service", ",", "account", ")", ";", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 21733, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1101, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1101, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1101, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
215
[ "export", "const", "getLetterSpacing", "=", "(", "fontSize", ",", "tracking", ")", "=>", "tracking", "/", "fontSize", ";", "export", "const", "robotoLight", "=", "(", ")", "=>", "`\n font-family: Roboto;\n font-weight: 300;\n`", ";", "export", "const", "robotoRegular", "=", "(", ")", "=>", "`\n font-family: Roboto;\n font-weight: 400;\n`", ";", "export", "const", "robotoMedium", "=", "(", ")", "=>", "`\n font-family: Roboto;\n font-weight: 500;\n`", ";", "export", "const", "h1", "=", "(", ")", "=>", "`\n ${", "robotoLight", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "96", ",", "-", "1.5", ")", "}rem;\n font-size: 96px;\n`", ";", "export", "const", "h2", "=", "(", ")", "=>", "`\n ${", "robotoLight", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "60", ",", "-", "0.5", ")", "}rem;\n font-size: 60px;\n`", ";", "export", "const", "h3", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "48", ",", "0", ")", "}rem;\n font-size: 48px;\n`", ";", "export", "const", "h4", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "34", ",", "0.25", ")", "}rem;\n font-size: 34px;\n`", ";", "export", "const", "h5", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "24", ",", "0", ")", "}rem;\n font-size: 24px;\n`", ";", "export", "const", "h6", "=", "(", ")", "=>", "`\n ${", "robotoMedium", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "20", ",", "0.15", ")", "}rem;\n font-size: 20px;\n`", ";", "export", "const", "subtitle1", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "16", ",", "0.15", ")", "}rem;\n font-size: 16px;\n`", ";", "export", "const", "subtitle2", "=", "(", ")", "=>", "`\n ${", "robotoMedium", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "14", ",", "0.1", ")", "}rem;\n font-size: 14px;\n`", ";", "export", "const", "body1", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "16", ",", "0.5", ")", "}rem;\n font-size: 16px;\n`", ";", "export", "const", "body2", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "14", ",", "0.25", ")", "}rem;\n font-size: 14px;\n`", ";", "export", "const", "button", "=", "(", ")", "=>", "`\n ${", "robotoMedium", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "14", ",", "0.75", ")", "}rem;\n font-size: 14px;\n`", ";", "export", "const", "caption", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "12", ",", "0.4", ")", "}rem;\n font-size: 12px;\n`", ";", "export", "const", "overline", "=", "(", ")", "=>", "`\n ${", "robotoRegular", "(", ")", "};\n letter-spacing: ${", "getLetterSpacing", "(", "10", ",", "1.5", ")", "}rem;\n font-size: 10px;\n text-transform: uppercase;\n`", ";", "export", "const", "maxLines", "=", "(", "count", ",", "lineHeight", "?", ")", "=>", "`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ${", "count", "};\n -webkit-box-orient: vertical;\n line-height: ${", "(", "lineHeight", "&&", "`${", "lineHeight", "}px`", ")", "||", "'unset'", "};\n max-height: ${", "(", "lineHeight", "&&", "`${", "lineHeight", "*", "2", "}px`", ")", "||", "'unset'", "};\n`", ";", "export", "const", "singleLine", "=", "(", ")", "=>", "`\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n`", ";" ]
[ null, null, 3, null, null, 3, null, 3, 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, 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, 2, 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, 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, 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, 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, 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, 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, 3, 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, 2, null, null, null, null, null, null ]
216
[ "import", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "body2", "}", "from", "'../mixins/typography'", ";", "export", "const", "Style", "=", "css", "`\n body {\n width: 100vw;\n height: 100vh;\n user-select: none;\n cursor: default;\n margin: 0;\n padding: 0;\n overflow: hidden;\n ${", "body2", "(", ")", "};\n }\n\n * {\n box-sizing: border-box;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 864, null, null, null, null, null, null, null, null ]
217
[ "export", "const", "transparency", "=", "{", "text", ":", "{", "high", ":", "0.87", ",", "medium", ":", "0.6", ",", "disabled", ":", "0.38", ",", "}", ",", "icons", ":", "{", "active", ":", "0.87", ",", "inactive", ":", "0.6", ",", "disabled", ":", "0.38", ",", "}", ",", "dividers", ":", "0.12", ",", "}", ";" ]
[ 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 ]
218
[ "export", "const", "TITLEBAR_HEIGHT", "=", "32", ";", "export", "const", "TABBAR_HEIGHT", "=", "32", ";", "export", "const", "TOOLBAR_HEIGHT", "=", "42", ";", "export", "const", "TOOLBAR_BUTTON_SIZE", "=", "28", ";", "export", "const", "APPBAR_HEIGHT", "=", "TABBAR_HEIGHT", "+", "TOOLBAR_HEIGHT", ";", "export", "const", "SIDEBAR_HEADER_HEIGHT", "=", "44", ";", "export", "const", "EASING_FUNCTION", "=", "'cubic-bezier(0.4, 0, 0.2, 1)'", ";", "export", "const", "ACTIVITY_BAR_COLOR", "=", "'rgba(0, 0, 0, 0.07)'", ";", "export", "const", "SIDE_BAR_COLOR", "=", "'rgba(0, 0, 0, 0.03)'", ";", "export", "const", "TITLE_BAR_COLOR", "=", "'rgba(0, 0, 0, 0.1)'", ";", "export", "const", "TAB_BAR_COLOR", "=", "'rgba(0, 0, 0, 0.06)'", ";", "export", "const", "TOOLBAR_COLOR", "=", "'#fafafa'", ";", "export", "const", "CONTENT_COLOR", "=", "'#fdfdfd'", ";" ]
[ null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, null, null, 3, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null ]
219
[ "import", "{", "css", "}", "from", "'styled-components'", ";", "export", "const", "centerHorizontal", "=", "(", ")", "=>", "{", "return", "css", "`\n left: 50%;\n transform: translateX(-50%);\n `", ";", "}", ";", "export", "const", "centerBoth", "=", "(", ")", "=>", "{", "return", "css", "`\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n `", ";", "}", ";", "export", "const", "centerVertical", "=", "(", ")", "=>", "{", "return", "css", "`\n top: 50%;\n transform: translateY(-50%);\n `", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, 864, null, null, null, null, null, null, null, null, null, null, null, null, null, 864, null, null, null, null, null, null, null, null, null, null, null, null, null, 864, null, null, null, null, null, null, null, null, null, null, null ]
220
[ "export", "const", "centerIcon", "=", "(", "size", "=", "'contain'", ",", "useMask", "=", "false", ")", "=>", "{", "let", "s", "=", "size", ".", "toString", "(", ")", ";", "if", "(", "typeof", "size", "===", "'number'", ")", "s", "+=", "'px'", ";", "const", "prefix", "=", "!", "useMask", "?", "'background'", ":", "'mask'", ";", "return", "`\n ${", "prefix", "}-size: ${", "s", "} ${", "size", "===", "'contain'", "?", "''", ":", "'auto'", "};\n ${", "prefix", "}-position: center;\n ${", "prefix", "}-repeat: no-repeat;\n`", ";", "}", ";", "export", "const", "customImage", "=", "(", "width", ",", "height", ",", "left", ",", "top", ")", "=>", "`\n background-size: ${", "width", "} ${", "height", "};\n background-position: ${", "left", "} ${", "top", "};\n background-repeat: no-repeat;\n `", ";", "export", "const", "coverImage", "=", "(", ")", "=>", "`\n background-size: cover;\n background-repeat: no-repeat;\n `", ";" ]
[ null, null, 2, null, null, null, null, null, null, 8, 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, 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, 2, null, 2, null, 2, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null ]
221
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "ACTIVITY_BAR_COLOR", "}", "from", "'../../constants/design'", ";", "import", "{", "centerVertical", "}", "from", "'~/renderer/mixins/positioning'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "const", "getIconOpacity", "=", "(", "selected", ",", "disabled", ")", "=>", "{", "if", "(", "disabled", ")", "return", "transparency", ".", "icons", ".", "disabled", ";", "return", "selected", "?", "1", ":", "transparency", ".", "icons", ".", "inactive", ";", "}", ";", "export", "const", "StyledActivitybar", "=", "styled", ".", "div", "`\n width: 52px;\n height: 100%;\n background-color: ${", "ACTIVITY_BAR_COLOR", "};\n`", ";", "interface", "ItemProps", "{", "icon", ":", "string", ";", "selected", ":", "boolean", ";", "disabled", ":", "boolean", ";", "}", "export", "const", "StyledItem", "=", "styled", ".", "div", "`\n width: 100%;\n height: 48px;\n cursor: pointer;\n position: relative;\n\n ${", "(", "{", "selected", ",", "disabled", ",", "icon", "}", ")", "=>", "css", "`\n pointer-events: ${", "disabled", "?", "'none'", ":", "'auto'", "};\n\n &::before {\n opacity: ${", "selected", "?", "1", ":", "0", "};\n }\n\n &::after {\n opacity: ${", "getIconOpacity", "(", "selected", ",", "disabled", ")", "};\n background-image: url(${", "icon", "});\n }\n `", "}\n\n &::before {\n content: '';\n position: absolute;\n left: 0px;\n width: 3px;\n height: 18px;\n background-color: #000;\n ${", "centerVertical", "(", ")", "};\n }\n\n &::after {\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n ${", "centerIcon", "(", "24", ")", "};\n }\n\n &:hover::after {\n opacity: 1;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 8, 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, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
222
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "TITLEBAR_HEIGHT", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledApp", "=", "styled", ".", "div", "`\n width: 100vw;\n height: 100vh;\n`", ";", "export", "const", "Container", "=", "styled", ".", "div", "`\n width: 100%;\n height: calc(100% - ${", "TITLEBAR_HEIGHT", "}px);\n display: flex;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null ]
223
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "APPBAR_HEIGHT", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledAppbar", "=", "styled", ".", "div", "`\n width: 100%;\n height: ${", "APPBAR_HEIGHT", "}px;\n box-sizing: content-box;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null ]
224
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "CONTENT_COLOR", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledContent", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n flex: 1;\n background-color: ${", "CONTENT_COLOR", "};\n position: relative;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null ]
225
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "shadows", "}", "from", "'~/renderer/mixins/shadows'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "export", "const", "StyledContextMenu", "=", "styled", ".", "table", "`\n position: fixed;\n z-index: 1000;\n padding: 4px 0px;\n background-color: #fff;\n border-radius: 4px;\n box-shadow: ${", "shadows", "(", "4", ")", "};\n border-spacing: 0;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n pointer-events: ${", "visible", "?", "'auto'", ":", "'none'", "};\n opacity: ${", "visible", "?", "1", ":", "0", "};\n transition: ${", "visible", "?", "'0.15s opacity'", ":", "'unset'", "};\n `", "}\n`", ";", "export", "const", "Items", "=", "styled", ".", "tbody", "`\n display: table;\n border-collapse: collapse;\n width: 100%;\n`", ";", "export", "interface", "IContextMenuItemProps", "{", "icon", "?", ":", "string", ";", "disabled", "?", ":", "boolean", ";", "iconSize", "?", ":", "number", ";", "hidden", "?", ":", "boolean", ";", "value", "?", ":", "any", ";", "}", "export", "const", "StyledItem", "=", "styled", ".", "tr", "`\n width: 100%;\n height: 32px;\n align-items: center;\n font-size: 13px;\n white-space: nowrap;\n\n ${", "(", "{", "disabled", ",", "hidden", "}", ")", "=>", "css", "`\n display: ${", "!", "hidden", "?", "'table-row'", ":", "'none'", "};\n color: ${", "disabled", "?", "`rgba(0, 0, 0, ${", "transparency", ".", "text", ".", "disabled", "})`", ":", "'#000'", "};\n\n &:hover {\n background-color: ${", "!", "disabled", "?", "'rgba(0, 0, 0, 0.04)'", ":", "'transparent'", "};\n }\n `", "}\n`", ";", "export", "const", "MenuDivider", "=", "styled", ".", "tr", "`\n width: 100%;\n height: 9px;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n margin-top: 4px;\n height: 1px;\n background-color: rgba(0, 0, 0, ${", "transparency", ".", "dividers", "});\n }\n`", ";", "export", "const", "Accelerator", "=", "styled", ".", "td", "`\n opacity: 0.54;\n font-size: 13px;\n padding-right: 10px;\n padding-left: 10px;\n text-align: right;\n`", ";", "export", "const", "Icon", "=", "styled", ".", "td", "`\n ${", "(", "{", "icon", ",", "disabled", ",", "iconSize", "}", ")", "=>", "css", "`\n ${", "icon", "&&", "css", "`\n width: 20px;\n height: 20px;\n opacity: ${", "disabled", "?", "transparency", ".", "icons", ".", "disabled", ":", "0.87", "};\n background-image: url(${", "icon", "});\n backface-visibility: hidden;\n transform: translateZ(0);\n -webkit-font-smoothing: subpixel-antialiased;\n ${", "centerIcon", "(", "iconSize", ")", "};\n `", "}\n `", "}\n`", ";", "export", "const", "Text", "=", "styled", ".", "td", "`\n font-size: 13px;\n padding-left: 10px;\n padding-right: 10px;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
226
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "robotoRegular", "}", "from", "'~/renderer/mixins/typography'", ";", "export", "interface", "IButtonProps", "{", "label", ":", "string", ";", "color", "?", ":", "string", ";", "background", "?", ":", "string", ";", "disabled", "?", ":", "boolean", ";", "type", "?", ":", "'contained'", "|", "'outlined'", ";", "}", "export", "const", "Button", "=", "styled", ".", "div", "`\n min-width: 80px;\n width: fit-content;\n height: 32px;\n padding: 0px 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 4px;\n position: relative;\n cursor: pointer;\n\n ${", "(", "{", "type", ",", "label", ",", "color", ",", "background", ",", "disabled", "}", ")", "=>", "css", "`\n pointer-events: ${", "disabled", "?", "'none'", ":", "'inherit'", "};\n opacity: ${", "disabled", "?", "0.24", ":", "1", "};\n border: ${", "type", "===", "'outlined'", "?", "`1px solid ${", "background", "||", "'#2196F3'", "}`", ":", "'unset'", "};\n background-color: ${", "type", "===", "'outlined'", "?", "'transparent'", ":", "background", "||", "'#2196F3'", "};\n\n &::before {\n background-color: ${", "color", "||", "'#fff'", "};\n }\n\n &::after {\n content: \"${", "label", "}\";\n z-index: 1;\n font-size: 13px;\n pointer-events: none;\n color: ${", "color", "||", "'#fff'", "};\n ${", "robotoRegular", "(", ")", "};\n }\n `", "}\n\n &::before {\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n z-index: 0;\n opacity: 0;\n position: absolute;\n will-change: opacity;\n transition: 0.2s opacity;\n }\n\n &:hover::before {\n opacity: 0.12;\n }\n\n &:active::before {\n opacity: 0.18;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
227
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "Button", "}", "from", "'~/renderer/components/Button'", ";", "import", "{", "shadows", "}", "from", "'~/renderer/mixins/shadows'", ";", "import", "{", "EASING_FUNCTION", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledDialog", "=", "styled", ".", "div", "`\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n position: fixed;\n z-index: 10;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n pointer-events: ${", "visible", "?", "'auto'", ":", "'none'", "};\n `", "}\n`", ";", "export", "const", "Dark", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: rgba(0, 0, 0, 0.54);\n transition: 0.15s opacity;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n opacity: ${", "visible", "?", "1", ":", "0", "};\n `", "}\n`", ";", "export", "const", "Container", "=", "styled", ".", "div", "`\n width: 344px;\n max-width: 512px;\n height: fit-content;\n background-color: #fff;\n border-radius: 4px;\n z-index: 11;\n position: absolute;\n box-shadow: ${", "shadows", "(", "4", ")", "};\n transition: 0.15s transform ${", "EASING_FUNCTION", "}, 0.15s opacity;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n opacity: ${", "visible", "?", "1", ":", "0", "};\n pointer-events: ${", "visible", "?", "'auto'", ":", "'none !important'", "};\n transform: translateY(${", "visible", "?", "0", ":", "-", "16", "}px);\n `", "}\n`", ";", "export", "const", "Title", "=", "styled", ".", "div", "`\n padding: 16px;\n font-size: 18px;\n`", ";", "export", "const", "Content", "=", "styled", ".", "div", "`\n padding: 0px 16px 8px;\n font-size: 14px;\n`", ";", "export", "const", "Buttons", "=", "styled", ".", "div", "`\n width: 100%;\n padding: 12px 4px 16px;\n display: flex;\n`", ";", "export", "const", "DialogButton", "=", "styled", "(", "Button", ")", "`\n margin-right: 8px;\n\n &:first-child {\n margin-left: auto;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
228
[ "import", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "robotoRegular", "}", "from", "'./typography'", ";", "export", "const", "customInput", "=", "(", ")", "=>", "{", "return", "css", "`\n border: none;\n outline: none;\n resize: none;\n user-select: auto;\n ${", "robotoRegular", "(", ")", "};\n `", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 864, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
229
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "customInput", "}", "from", "'~/renderer/mixins/input'", ";", "export", "const", "Input", "=", "styled", ".", "input", "`\n width: 200px;\n height: 32px;\n position: relative;\n border-radius: 4px;\n user-select: none;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n background-color: rgba(0, 0, 0, 0.08);\n color: #000;\n ${", "customInput", "(", ")", "};\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.1);\n }\n\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null ]
230
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "Input", "as", "Textfield", "}", "from", "'~/renderer/components/Input'", ";", "export", "const", "Input", "=", "styled", "(", "Textfield", ")", "`\n width: 100%;\n\n &:not(:first-child) {\n margin-top: 16px;\n }\n`", ";", "export", "const", "Row", "=", "styled", ".", "div", "`\n display: flex;\n margin-top: 16px;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
231
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "shadows", "}", "from", "'~/renderer/mixins/shadows'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "robotoRegular", ",", "robotoMedium", "}", "from", "'~/renderer/mixins/typography'", ";", "export", "const", "StyledThumb", "=", "styled", ".", "div", "`\n width: fit-content;\n max-width: 164px;\n height: 48px;\n border-radius: 12px;\n background-color: #fff;\n align-items: center;\n padding: 0px 12px;\n pointer-events: none;\n position: absolute;\n justify-content: flex-start;\n z-index: 1000;\n box-shadow: ${", "shadows", "(", "4", ")", "};\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'flex'", ":", "'none'", "};\n `", "}\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n min-width: 24px;\n min-height: 24px;\n ${", "centerIcon", "(", ")", "};\n\n ${", "(", "{", "icon", ",", "opacity", "}", ")", "=>", "css", "`\n background-image: url(${", "icon", "});\n opacity: ${", "opacity", "};\n `", "}\n`", ";", "export", "const", "Title", "=", "styled", ".", "div", "`\n margin-left: 8px;\n font-size: 13px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n ${", "robotoRegular", "(", ")", "};\n`", ";", "export", "const", "Count", "=", "styled", ".", "div", "`\n width: 24px;\n height: 24px;\n background-color: #f44336;\n color: #fff;\n display: flex;\n font-size: 13px;\n align-items: center;\n justify-content: center;\n border-radius: 100%;\n position: absolute;\n top: -12px;\n left: calc(100% - 12px);\n ${", "robotoMedium", "(", ")", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
232
[ "export", "const", "icons", "=", "{", "back", ":", "require", "(", "'~/renderer/resources/icons/back.svg'", ")", ",", "forward", ":", "require", "(", "'~/renderer/resources/icons/forward.svg'", ")", ",", "fileTree", ":", "require", "(", "'~/renderer/resources/icons/file-tree.svg'", ")", ",", "sitesManager", ":", "require", "(", "'~/renderer/resources/icons/sites-manager.svg'", ")", ",", "search", ":", "require", "(", "'~/renderer/resources/icons/search.svg'", ")", ",", "transfer", ":", "require", "(", "'~/renderer/resources/icons/transfer.svg'", ")", ",", "qusly", ":", "require", "(", "'~/renderer/resources/icons/qusly.png'", ")", ",", "close", ":", "require", "(", "'~/renderer/resources/icons/close.svg'", ")", ",", "add", ":", "require", "(", "'~/renderer/resources/icons/add.svg'", ")", ",", "chevronLeft", ":", "require", "(", "'~/renderer/resources/icons/chevron-left.svg'", ")", ",", "chevronRight", ":", "require", "(", "'~/renderer/resources/icons/chevron-right.svg'", ")", ",", "refresh", ":", "require", "(", "'~/renderer/resources/icons/refresh.svg'", ")", ",", "folder", ":", "require", "(", "'~/renderer/resources/icons/folder.svg'", ")", ",", "file", ":", "require", "(", "'~/renderer/resources/icons/file.svg'", ")", ",", "expand", ":", "require", "(", "'~/renderer/resources/icons/expand.svg'", ")", ",", "folderOutline", ":", "require", "(", "'~/renderer/resources/icons/folder-outline.svg'", ")", ",", "openInNew", ":", "require", "(", "'~/renderer/resources/icons/open-in-new.svg'", ")", ",", "bookmark", ":", "require", "(", "'~/renderer/resources/icons/bookmark.svg'", ")", ",", "delete", ":", "require", "(", "'~/renderer/resources/icons/delete.svg'", ")", ",", "cut", ":", "require", "(", "'~/renderer/resources/icons/cut.svg'", ")", ",", "download", ":", "require", "(", "'~/renderer/resources/icons/download.svg'", ")", ",", "downloadOutline", ":", "require", "(", "'~/renderer/resources/icons/download-outline.svg'", ")", ",", "upload", ":", "require", "(", "'~/renderer/resources/icons/upload.svg'", ")", ",", "paste", ":", "require", "(", "'~/renderer/resources/icons/paste.svg'", ")", ",", "edit", ":", "require", "(", "'~/renderer/resources/icons/edit.svg'", ")", ",", "apps", ":", "require", "(", "'~/renderer/resources/icons/apps.svg'", ")", ",", "details", ":", "require", "(", "'~/renderer/resources/icons/details.svg'", ")", ",", "zip", ":", "require", "(", "'~/renderer/resources/icons/zip.svg'", ")", ",", "folderAdd", ":", "require", "(", "'~/renderer/resources/icons/folder-add.svg'", ")", ",", "fileAdd", ":", "require", "(", "'~/renderer/resources/icons/file-add.svg'", ")", ",", "copy", ":", "require", "(", "'~/renderer/resources/icons/copy.svg'", ")", ",", "connect", ":", "require", "(", "'~/renderer/resources/icons/connect.svg'", ")", ",", "folderOpen", ":", "require", "(", "'~/renderer/resources/icons/folder-open.svg'", ")", ",", "}", ";" ]
[ 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 ]
233
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "customInput", "}", "from", "'~/renderer/mixins/input'", ";", "interface", "Props", "{", "selected", ":", "boolean", ";", "cut", ":", "boolean", ";", "}", "export", "const", "StyledFile", "=", "styled", ".", "div", "`\n display: flex;\n align-items: center;\n flex-direction: column;\n padding: 0px 16px 8px 16px;\n position: relative;\n border-radius: 6px;\n\n ${", "(", "{", "selected", ",", "cut", "}", ")", "=>", "css", "`\n background-color: ${", "selected", "?", "'rgba(98, 0, 234, 0.08)'", ":", "'none'", "};\n opacity: ${", "cut", "?", "0.48", ":", "1", "};\n border: ${", "selected", "?", "'1px solid rgba(98, 0, 234, 0.12)'", ":", "'1px solid transparent'", "};\n\n ${", "!", "cut", "&&", "css", "`\n &:hover {\n background-color: ${", "selected", "?", "'rgba(98, 0, 234, 0.12)'", ":", "'rgba(0, 0, 0, 0.08)'", "};\n }\n `", "}\n `", "}\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n width: 48px;\n height: 48px;\n background-image: url(${", "icons", ".", "folder", "});\n ${", "centerIcon", "(", "32", ")", "};\n\n ${", "(", "{", "icon", "}", ")", "=>", "css", "`\n background-image: url(${", "icon", "});\n `", "};\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n max-width: 100%;\n margin-top: 8px;\n font-size: 13px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n`", ";", "export", "const", "Input", "=", "styled", ".", "textarea", "`\n width: calc(100% + 2px);\n min-height: calc(100% - 50px);\n border-radius: 4px;\n background-color: #fff;\n z-index: 1;\n font-size: 13px;\n color: #000;\n overflow: hidden;\n position: absolute;\n top: 51px;\n left: -1px;\n text-align: center;\n ${", "customInput", "(", ")", "};\n border: 1px solid #eee;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'block'", ":", "'none'", "};\n `", "}\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
234
[ "import", "styled", "from", "'styled-components'", ";", "export", "const", "StyledContainer", "=", "styled", ".", "div", "`\n display: flex;\n margin-left: 4px;\n`", ";" ]
[ null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
235
[ "import", "{", "css", "}", "from", "'styled-components'", ";", "interface", "IOptions", "{", "size", "?", ":", "number", ";", "color", "?", ":", "string", ";", "hoverColor", "?", ":", "string", ";", "alwaysVisible", "?", ":", "boolean", ";", "}", "const", "defaultOptions", "=", "{", "size", ":", "6", ",", "alwaysVisible", ":", "true", ",", "color", ":", "'rgba(0, 0, 0, 0.38)'", ",", "hoverColor", ":", "'rgba(0, 0, 0, 0.54)'", ",", "}", ";", "export", "const", "noButtons", "=", "(", "options", "?", ")", "=>", "{", "const", "{", "color", ",", "hoverColor", ",", "size", ",", "alwaysVisible", "}", "=", "{", "...", "defaultOptions", ",", "...", "options", ",", "}", ";", "return", "css", "`\n &:hover::-webkit-scrollbar-thumb {\n background-color: ${", "color", "};\n }\n\n &::-webkit-scrollbar {\n width: ${", "size", "}px;\n height: ${", "size", "}px;\n }\n\n &::-webkit-scrollbar-button {\n width: 0px;\n height: 0px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ${", "alwaysVisible", "?", "color", ":", "'inherit'", "};\n border: none;\n border-radius: 0px;\n opacity: 0 !important;\n transition: 2s background-color;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ${", "hoverColor", "};\n }\n\n &::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n `", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 630, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 864, null, null, 630, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
236
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "APPBAR_HEIGHT", "}", "from", "'../../constants/design'", ";", "import", "{", "noButtons", "}", "from", "'~/renderer/mixins/scroll'", ";", "import", "{", "centerBoth", "}", "from", "'~/renderer/mixins/positioning'", ";", "export", "const", "StyledPage", "=", "styled", ".", "div", "`\n width: 100%;\n height: calc(100% - ${", "APPBAR_HEIGHT", "}px);\n position: relative;\n\n & .selection-container {\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n padding: 24px;\n padding-top: 8px;\n display: grid;\n grid-gap: 8px;\n grid-template-rows: 1fr;\n grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));\n grid-template-rows: repeat(auto-fill, 82px);\n position: relative;\n transition: 0.1s opacity;\n ${", "noButtons", "(", ")", "};\n }\n`", ";", "export", "const", "PreloaderContainer", "=", "styled", ".", "div", "`\n position: absolute;\n pointer-events: none;\n transition: 0.1s opacity;\n ${", "centerBoth", "(", ")", "};\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n opacity: ${", "visible", "?", "1", ":", "0", "};\n `", "}\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
237
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "robotoRegular", ",", "robotoMedium", "}", "from", "'~/renderer/mixins/typography'", ";", "import", "{", "customInput", "}", "from", "'~/renderer/mixins/input'", ";", "export", "const", "StyledPathView", "=", "styled", ".", "div", "`\n width: 100%;\n height: 30px;\n margin-left: 10px;\n overflow: hidden;\n cursor: text;\n position: relative;\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.03);\n\n ${", "(", "{", "inputVisible", "}", ")", "=>", "css", "`\n box-shadow: ${", "inputVisible", "?", "`0 0 0 2px #BBDEFB`", ":", "'none'", "};\n `", "}\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.05);\n }\n`", ";", "export", "const", "Container", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n align-items: center;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'flex'", ":", "'none'", "};\n `", "}\n`", ";", "export", "const", "Item", "=", "styled", ".", "div", "`\n height: 100%;\n display: flex;\n align-items: center;\n font-size: 14px;\n font-weight: 300;\n padding-left: 4px;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.54);\n ${", "robotoRegular", "(", ")", "};\n\n &:hover {\n color: #000;\n }\n\n &:first-child {\n padding-left: 12px;\n }\n\n &:last-child {\n color: #000;\n ${", "robotoMedium", "(", ")", "};\n }\n\n &:not(:first-child):not(:last-child):after {\n content: '/';\n padding-left: 4px;\n }\n`", ";", "export", "const", "Input", "=", "styled", ".", "input", "`\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n position: absolute;\n padding: 0px 12px;\n color: #000;\n ${", "customInput", "(", ")", "};\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'block'", ":", "'none'", "};\n background-color: ${", "visible", "?", "'white'", ":", "'inherit'", "};\n `", "}\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
238
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "SIDE_BAR_COLOR", ",", "SIDEBAR_HEADER_HEIGHT", "}", "from", "'../../constants/design'", ";", "import", "{", "robotoLight", "}", "from", "'~/renderer/mixins/typography'", ";", "import", "{", "noButtons", "}", "from", "'~/renderer/mixins/scroll'", ";", "export", "const", "StyledSidebar", "=", "styled", ".", "div", "`\n height: 100%;\n background-color: ${", "SIDE_BAR_COLOR", "};\n position: relative;\n z-index: 3;\n`", ";", "export", "const", "StyledPage", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n\n &:focus {\n box-shadow: inset 0 0 0 2px #bbdefb;\n }\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'block'", ":", "'none'", "};\n `", "};\n`", ";", "export", "const", "Header", "=", "styled", ".", "div", "`\n height: ${", "SIDEBAR_HEADER_HEIGHT", "}px;\n display: flex;\n align-items: center;\n padding-left: 16px;\n padding-right: 8px;\n font-size: 16px;\n ${", "robotoLight", "(", ")", "};\n\n & > .toolbar-button {\n height: ${", "SIDEBAR_HEADER_HEIGHT", "}px;\n margin-left: auto;\n cursor: pointer;\n }\n`", ";", "export", "const", "Content", "=", "styled", ".", "div", "`\n width: 100%;\n height: calc(100% - ${", "SIDEBAR_HEADER_HEIGHT", "}px);\n overflow-x: hidden;\n overflow-y: visible;\n padding-bottom: 8px;\n ${", "noButtons", "(", "{", "color", ":", "'rgba(0, 0, 0, 0.12)'", ",", "hoverColor", ":", "'rgba(0, 0, 0, 0.32)'", ",", "alwaysVisible", ":", "false", ",", "}", ")", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
239
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "robotoRegular", "}", "from", "'~/renderer/mixins/typography'", ";", "export", "const", "StyledItem", "=", "styled", ".", "div", "`\n width: 100%;\n height: 30px;\n display: flex;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n`", ";", "export", "const", "ExpandIcon", "=", "styled", ".", "div", "`\n min-width: 30px;\n min-height: 30px;\n margin-left: 6px;\n background-image: url(${", "icons", ".", "expand", "});\n border-radius: 100%;\n opacity: ${", "transparency", ".", "icons", ".", "inactive", "};\n display: flex;\n ${", "centerIcon", "(", "20", ")", "};\n\n ${", "(", "{", "expanded", "}", ")", "=>", "css", "`\n transform: ${", "expanded", "?", "'rotate(-90deg)'", ":", "'rotate(0deg)'", "};\n `", "}\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n min-width: 20px;\n min-height: 20px;\n opacity: ${", "transparency", ".", "icons", ".", "inactive", "};\n ${", "centerIcon", "(", "18", ")", "};\n\n ${", "(", "{", "expanded", "}", ")", "=>", "css", "`\n background-image: url(${", "expanded", "?", "icons", ".", "folderOpen", ":", "icons", ".", "folder", "});\n `", "}\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n font-size: 13px;\n padding: 0px 8px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ${", "robotoRegular", "(", ")", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
240
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "singleLine", ",", "robotoMedium", "}", "from", "'~/renderer/mixins/typography'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "export", "const", "StyledSite", "=", "styled", ".", "div", "`\n width: calc(100% - 16px);\n height: 52px;\n padding: 0 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 auto;\n cursor: pointer;\n border-radius: 6px;\n transition: 0.15s background-color;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n font-size: 14px;\n ${", "singleLine", "(", ")", "}\n ${", "robotoMedium", "(", ")", "};\n`", ";", "export", "const", "Description", "=", "styled", ".", "div", "`\n font-size: 13px;\n margin-top: 4px;\n color: rgba(0, 0, 0, ${", "transparency", ".", "text", ".", "medium", "});\n ${", "singleLine", "(", ")", "}\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
241
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "export", "const", "StyledButton", "=", "styled", ".", "div", "`\n width: calc(100% - 16px);\n height: 40px;\n display: flex;\n align-items: center;\n margin: 0 auto;\n cursor: pointer;\n border-radius: 6px;\n overflow: hidden;\n position: relative;\n transition: 0.15s background-color;\n\n &:not(:first-child) {\n margin-top: 6px;\n }\n\n ${", "(", "{", "selected", "}", ")", "=>", "css", "`\n color: ${", "selected", "?", "'#2196F3'", ":", "'#000'", "};\n\n &::before {\n opacity: ${", "selected", "?", "0.06", ":", "0", "};\n }\n `", "}\n\n &::before {\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: #2196f3;\n z-index: 1;\n }\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n width: 24px;\n height: 24px;\n margin: 0px 8px;\n z-index: 2;\n ${", "centerIcon", "(", "20", ",", "true", ")", "};\n\n ${", "(", "{", "icon", ",", "selected", "}", ")", "=>", "css", "`\n opacity: ${", "selected", "?", "1", ":", "transparency", ".", "icons", ".", "inactive", "};\n background-color: ${", "selected", "?", "'#2196F3'", ":", "'#000'", "};\n mask-image: url(${", "icon", "});\n `", "}\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n font-size: 14px;\n z-index: 2;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
242
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "body2", "}", "from", "'~/renderer/mixins/typography'", ";", "interface", "CloseProps", "{", "visible", ":", "boolean", ";", "}", "export", "const", "StyledClose", "=", "styled", ".", "div", "`\n position: absolute;\n right: 4px;\n height: 22px;\n width: 22px;\n background-image: url('${", "icons", ".", "close", "}');\n transition: 0.1s opacity;\n z-index: 10;\n ${", "centerIcon", "(", "15", ")", "};\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n opacity: ${", "visible", "?", "transparency", ".", "icons", ".", "inactive", ":", "0", "};\n `", "}\n \n &:hover:after {\n opacity: 1;\n }\n\n &:after {\n content: '';\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.08);\n transition: 0.2s opacity;\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n`", ";", "export", "const", "StyledTab", "=", "styled", ".", "div", "`\n position: absolute;\n height: 100%;\n width: 0;\n left: 0;\n align-items: center;\n will-change: width;\n -webkit-app-region: no-drag;\n display: flex;\n\n ${", "(", "{", "selected", "}", ")", "=>", "css", "`\n z-index: ${", "selected", "?", "2", ":", "1", "};\n `", "};\n`", ";", "export", "const", "StyledOverlay", "=", "styled", ".", "div", "`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: 0.1s opacity;\n background-color: rgba(0, 0, 0, 0.04);\n\n ${", "(", "{", "hovered", "}", ")", "=>", "css", "`\n opacity: ${", "hovered", "?", "1", ":", "0", "};\n `", "};\n`", ";", "export", "const", "StyledTitle", "=", "styled", ".", "div", "`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n -webkit-font-smoothing: antialiased;\n backface-visibility: hidden;\n transform: translateZ(0);\n ${", "body2", "(", ")", "};\n font-size: 13px;\n color: black;\n`", ";", "export", "const", "Subtitle", "=", "styled", "(", "StyledTitle", ")", "`\n opacity: 0.54;\n margin-left: 8px;\n`", ";", "interface", "ContentProps", "{", "collapsed", ":", "boolean", ";", "}", "export", "const", "StyledContent", "=", "styled", ".", "div", "`\n position: absolute;\n overflow: hidden;\n z-index: 2;\n align-items: center;\n display: flex;\n margin-left: 12px;\n\n ${", "(", "{", "collapsed", "}", ")", "=>", "css", "`\n max-width: calc(100% - ${", "24", "+", "(", "collapsed", "?", "24", ":", "0", ")", "}px);\n `", "};\n`", ";", "export", "const", "StyledBorder", "=", "styled", ".", "div", "`\n position: absolute;\n width: 1px;\n height: 16px;\n right: -1px;\n top: 50%;\n transform: translateY(-50%);\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n visibility: ${", "visible", "?", "'visible'", ":", "'hidden'", "};\n background-color: rgba(0, 0, 0, 0.12);\n `", "};\n`", ";", "export", "const", "TabContainer", "=", "styled", ".", "div", "`\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n display: flex;\n align-items: center;\n backface-visibility: hidden;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
243
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "TOOLBAR_BUTTON_SIZE", "}", "from", "'~/renderer/app/constants/design'", ";", "interface", "IconProps", "{", "size", ":", "number", ";", "disabled", ":", "boolean", ";", "opacity", ":", "number", ";", "}", "export", "const", "Icon", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n will-change: background-image;\n transition: 0.15s background-image;\n backface-visibility: hidden;\n\n ${", "(", "{", "size", ",", "disabled", ",", "opacity", "}", ")", "=>", "css", "`\n ${", "centerIcon", "(", "size", ")", "};\n opacity: ${", "disabled", "?", "0.25", ":", "opacity", "};\n `", "};\n`", ";", "export", "const", "Button", "=", "styled", ".", "div", "`\n width: ${", "TOOLBAR_BUTTON_SIZE", "}px;\n height: ${", "TOOLBAR_BUTTON_SIZE", "}px;\n position: relative;\n transition: 0.2s background-color;\n backface-visibility: hidden;\n\n ${", "(", "{", "disabled", "}", ")", "=>", "css", "`\n pointer-events: ${", "disabled", "?", "'none'", ":", "'inherit'", "};\n `", "};\n`", ";", "export", "const", "Circle", "=", "styled", ".", "div", "`\n border-radius: 4px;\n width: ${", "TOOLBAR_BUTTON_SIZE", "}px;\n height: ${", "TOOLBAR_BUTTON_SIZE", "}px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n overflow: hidden;\n transition: 0.2s background-color;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.05);\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
244
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "Button", ",", "Icon", ",", "Circle", "}", "from", "'./style'", ";", "interface", "Props", "{", "onClick", "?", ":", "(", "e", "?", ":", "React", ".", "SyntheticEvent", "<", "HTMLDivElement", ">", ")", "=>", "void", ";", "onMouseDown", "?", ":", "(", "e", "?", ":", "React", ".", "SyntheticEvent", "<", "HTMLDivElement", ">", ")", "=>", "void", ";", "size", "?", ":", "number", ";", "style", "?", ":", "any", ";", "icon", ":", "string", ";", "divRef", "?", ":", "(", "ref", ":", "HTMLDivElement", ")", "=>", "void", ";", "disabled", "?", ":", "boolean", ";", "className", "?", ":", "string", ";", "children", "?", ":", "any", ";", "opacity", "?", ":", "number", ";", "}", "export", "const", "ToolbarButton", "=", "observer", "(", "(", "{", "icon", ",", "onClick", ",", "onMouseDown", ",", "size", ",", "disabled", ",", "className", ",", "divRef", ",", "children", ",", "opacity", ",", "style", ",", "}", ")", "=>", "{", "style", "=", "{", "...", "style", "}", ";", "return", "(", "<", "Button", "onClick", "=", "{", "onClick", "}", "onMouseDown", "=", "{", "onMouseDown", "}", "className", "=", "{", "'toolbar-button '", "+", "(", "className", "||", "''", ")", "}", "style", "=", "{", "style", "}", "ref", "=", "{", "(", "r", ")", "=>", "{", "if", "(", "typeof", "divRef", "===", "'function'", ")", "{", "divRef", "(", "r", ")", ";", "}", "}", "}", "disabled", "=", "{", "disabled", "}", ">", "<", "Icon", "style", "=", "{", "{", "backgroundImage", ":", "`url(${", "icon", "})`", "}", "}", "size", "=", "{", "size", "}", "disabled", "=", "{", "disabled", "}", "opacity", "=", "{", "opacity", "}", "/", ">", "<", "Circle", ">", "<", "/Circle>", "{", "children", "}", "<", "/Button>);", "}", ")", ";", "(", "ToolbarButton", "as", "any", ")", ".", "defaultProps", "=", "{", "size", ":", "20", ",", "opacity", ":", "transparency", ".", "icons", ".", "inactive", ",", "autoInvert", ":", "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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
245
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "ToolbarButton", "}", "from", "'~/renderer/components/ToolbarButton'", ";", "import", "{", "TABBAR_HEIGHT", ",", "TAB_BAR_COLOR", ",", "TOOLBAR_BUTTON_SIZE", ",", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledTabbar", "=", "styled", ".", "div", "`\n width: 100%;\n height: ${", "TABBAR_HEIGHT", "}px;\n position: relative;\n overflow: hidden;\n display: flex;\n z-index: 2;\n background-color: ${", "TAB_BAR_COLOR", "};\n transition: 0.3s opacity, 0.3s transform;\n`", ";", "export", "const", "TabsContainer", "=", "styled", ".", "div", "`\n height: 100%;\n width: calc(100% - ${", "TOOLBAR_BUTTON_SIZE", "}px);\n bottom: 0;\n position: absolute;\n overflow: hidden;\n white-space: nowrap;\n display: flex;\n align-items: center;\n`", ";", "export", "const", "AddTab", "=", "styled", "(", "ToolbarButton", ")", "`\n height: ${", "TABBAR_HEIGHT", "}px;\n position: absolute;\n left: 0;\n bottom: 0;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null ]
246
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "TITLEBAR_HEIGHT", ",", "TITLE_BAR_COLOR", "}", "from", "'../../constants/design'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "export", "const", "StyledTitlebar", "=", "styled", ".", "div", "`\n height: ${", "TITLEBAR_HEIGHT", "}px;\n display: flex;\n position: relative;\n align-items: center;\n justify-content: space-between;\n background-color: ${", "TITLE_BAR_COLOR", "};\n`", ";", "export", "const", "Title", "=", "styled", ".", "div", "`\n font-size: 12px;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n`", ";", "export", "const", "Handle", "=", "styled", ".", "div", "`\n position: absolute;\n left: 3px;\n top: 3px;\n bottom: 0px;\n right: 3px;\n -webkit-app-region: drag;\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n width: 18px;\n height: 18px;\n margin-left: 8px;\n background-image: url(${", "icons", ".", "qusly", "});\n ${", "centerIcon", "(", ")", "};\n`", ";", "export", "const", "TrafficButtons", "=", "styled", ".", "div", "`\n width: 72px;\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
247
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "TOOLBAR_HEIGHT", ",", "TOOLBAR_COLOR", "}", "from", "'../../constants/design'", ";", "export", "const", "StyledToolbar", "=", "styled", ".", "div", "`\n width: 100%;\n height: ${", "TOOLBAR_HEIGHT", "}px;\n position: relative;\n display: flex;\n flex-flow: row;\n align-items: center;\n padding-right: 24px;\n background-color: ${", "TOOLBAR_COLOR", "};\n`", ";", "export", "const", "Search", "=", "styled", ".", "div", "`\n width: 300px;\n height: 32px;\n border-radius: 32px;\n display: flex;\n align-items: center;\n overflow: hidden;\n margin-left: 16px;\n padding-left: 8px;\n border: 1px solid rgba(0, 0, 0, 0.12);\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
248
[ "import", "styled", "from", "'styled-components'", ";", "export", "const", "StyledTransfer", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n z-index: 2;\n overflow-y: auto;\n`", ";" ]
[ null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
249
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "singleLine", ",", "robotoMedium", "}", "from", "'~/renderer/mixins/typography'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "export", "const", "StyledItem", "=", "styled", ".", "div", "`\n width: 100%;\n border: 1px solid rgba(0, 0, 0, ${", "transparency", ".", "dividers", "});\n border-radius: 6px;\n margin-top: 12px;\n display: flex;\n align-items: center;\n position: relative;\n`", ";", "export", "const", "Icon", "=", "styled", ".", "div", "`\n min-width: 80px;\n height: 32px;\n ${", "centerIcon", "(", "32", ")", "};\n\n ${", "(", "{", "icon", ",", "opacity", "}", ")", "=>", "css", "`\n background-image: url(${", "icon", "});\n opacity: ${", "opacity", "};\n `", "}\n`", ";", "export", "const", "Container", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n padding: 12px 32px 12px 16px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-left: 1px solid rgba(0, 0, 0, ${", "transparency", ".", "dividers", "});\n`", ";", "export", "const", "Name", "=", "styled", ".", "div", "`\n font-size: 14px;\n ${", "singleLine", "(", ")", "};\n ${", "robotoMedium", "(", ")", "};\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n font-size: 14px;\n margin-top: 6px;\n color: rgba(0, 0, 0, ${", "transparency", ".", "text", ".", "medium", "});\n ${", "singleLine", "(", ")", "};\n`", ";", "export", "const", "Show", "=", "styled", "(", "Label", ")", "`\n margin-top: 8px;\n color: #2196f3;\n cursor: pointer;\n`", ";", "export", "const", "Buttons", "=", "styled", ".", "div", "`\n display: flex;\n margin-top: 16px;\n\n & > *:not(:first-child) {\n margin-left: 12px;\n }\n`", ";", "export", "const", "Close", "=", "styled", ".", "div", "`\n width: 24px;\n height: 24px;\n cursor: pointer;\n background-image: url(${", "icons", ".", "close", "});\n opacity: ${", "transparency", ".", "icons", ".", "inactive", "};\n position: absolute;\n top: 8px;\n right: 8px;\n ${", "centerIcon", "(", "16", ")", "};\n\n &:hover {\n opacity: 1;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
250
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "robotoLight", "}", "from", "'~/renderer/mixins/typography'", ";", "export", "const", "StyledSection", "=", "styled", ".", "div", "`\n width: 100%;\n max-width: 640px;\n padding: 0px 16px;\n margin: 16px auto 0px;\n`", ";", "export", "const", "Title", "=", "styled", ".", "div", "`\n font-size: 20px;\n color: #000;\n padding-bottom: 4px;\n ${", "robotoLight", "(", ")", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null ]
251
[ "import", "store", "from", "'./'", ";", "export", "class", "AddTabStore", "{", "public", "left", "=", "0", ";", "public", "ref", ":", "HTMLDivElement", ";", "public", "setLeft", "(", "left", ",", "animation", ")", "{", "store", ".", "tabs", ".", "animateProperty", "(", "'x'", ",", "this", ".", "ref", ",", "left", ",", "animation", ")", ";", "this", ".", "left", "=", "left", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 3, 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 ]
252
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "export", "const", "Root", "=", "styled", ".", "div", "`\n position: absolute;\n height: 3px;\n bottom: 0;\n left: 0;\n z-index: 10;\n width: 100%;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n display: ${", "visible", "?", "'block'", ":", "'none'", "};\n `", "};\n`", ";", "export", "const", "Thumb", "=", "styled", ".", "div", "`\n height: 100%;\n top: 0;\n left: 0;\n position: absolute;\n background-color: black;\n transition: 0.2s opacity;\n -webkit-app-region: no-drag;\n\n ${", "(", "{", "visible", "}", ")", "=>", "css", "`\n opacity: ${", "visible", "?", "0.2", ":", "0", "};\n `", "}\n\n &:hover {\n opacity: 0.4;\n }\n\n &:active {\n opacity: 0.4;\n }\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
253
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "Root", ",", "Thumb", "}", "from", "'./style'", ";", "interface", "Props", "{", "getContainer", ":", "(", ")", "=>", "HTMLDivElement", ";", "visible", ":", "boolean", ";", "enabled", ":", "boolean", ";", "}", "interface", "State", "{", "visible", ":", "boolean", ";", "thumbWidth", ":", "number", ";", "thumbLeft", ":", "number", ";", "}", "export", "default", "class", "HorizontalScrollbar", "extends", "React", ".", "Component", "<", "Props", ",", "State", ">", "{", "public", "state", ":", "State", "=", "{", "visible", ":", "false", ",", "thumbWidth", ":", "0", ",", "thumbLeft", ":", "0", ",", "}", ";", "private", "scrollData", "=", "{", "dragging", ":", "false", ",", "mouseStartX", ":", "0", ",", "startLeft", ":", "0", ",", "}", ";", "private", "container", ":", "HTMLDivElement", ";", "private", "isScrollingToEnd", "=", "false", ";", "private", "scrollTimeout", ":", "any", ";", "private", "unmounted", "=", "false", ";", "public", "componentDidMount", "(", ")", "{", "this", ".", "container", "=", "this", ".", "props", ".", "getContainer", "(", ")", ";", "window", ".", "addEventListener", "(", "'mouseup'", ",", "this", ".", "onMouseUp", ")", ";", "window", ".", "addEventListener", "(", "'mousemove'", ",", "this", ".", "onMouseMove", ")", ";", "this", ".", "container", ".", "addEventListener", "(", "'wheel'", ",", "this", ".", "onWheel", ")", ";", "this", ".", "unmounted", "=", "false", ";", "this", ".", "resizeScrollbar", "(", ")", ";", "}", "public", "componentWillUnmount", "(", ")", "{", "window", ".", "removeEventListener", "(", "'mouseup'", ",", "this", ".", "onMouseUp", ")", ";", "window", ".", "removeEventListener", "(", "'mousemove'", ",", "this", ".", "onMouseMove", ")", ";", "this", ".", "container", ".", "removeEventListener", "(", "'wheel'", ",", "this", ".", "onWheel", ")", ";", "this", ".", "unmounted", "=", "true", ";", "}", "public", "shouldComponentUpdate", "(", "nextProps", ",", "nextState", ")", "{", "if", "(", "this", ".", "state", ".", "visible", "!==", "nextState", ".", "visible", "||", "this", ".", "props", ".", "enabled", "!==", "nextProps", ".", "enabled", ")", "{", "return", "true", ";", "}", "if", "(", "nextState", ".", "visible", "&&", "this", ".", "props", ".", "visible", "!==", "nextProps", ".", "visible", ")", "{", "return", "true", ";", "}", "if", "(", "nextProps", ".", "visible", "&&", "nextState", ".", "visible", ")", "{", "if", "(", "this", ".", "state", ".", "thumbLeft", "!==", "nextState", ".", "thumbLeft", "||", "this", ".", "state", ".", "thumbWidth", "!==", "nextState", ".", "thumbWidth", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", "public", "resizeScrollbar", "=", "(", ")", "=>", "{", "if", "(", "this", ".", "props", "&&", "this", ".", "container", ")", "{", "if", "(", "this", ".", "unmounted", ")", "return", ";", "const", "{", "scrollWidth", ",", "offsetWidth", ",", "scrollLeft", "}", "=", "this", ".", "container", ";", "this", ".", "setState", "(", "(", "{", "thumbWidth", "}", ")", "=>", "{", "if", "(", "Number", ".", "isNaN", "(", "thumbWidth", ")", ")", "{", "return", "{", "thumbLeft", ":", "0", ",", "thumbWidth", ":", "0", ",", "visible", ":", "false", "}", ";", "}", "return", "{", "thumbLeft", ":", "(", "scrollLeft", "/", "scrollWidth", ")", "*", "offsetWidth", ",", "thumbWidth", ":", "offsetWidth", "**", "2", "/", "scrollWidth", ",", "visible", ":", "Math", ".", "ceil", "(", "thumbWidth", ")", "!==", "Math", ".", "ceil", "(", "offsetWidth", ")", ",", "}", ";", "}", ")", ";", "requestAnimationFrame", "(", "this", ".", "resizeScrollbar", ")", ";", "}", "}", ";", "public", "onWheel", "=", "(", "e", ")", "=>", "{", "if", "(", "!", "this", ".", "container", ")", "return", ";", "const", "{", "deltaX", ",", "deltaY", "}", "=", "e", ";", "const", "{", "scrollLeft", "}", "=", "this", ".", "container", ";", "const", "delta", "=", "Math", ".", "abs", "(", "deltaX", ")", ">=", "Math", ".", "abs", "(", "deltaY", ")", "?", "deltaX", ":", "-", "deltaY", ";", "const", "target", "=", "delta", "/", "2", ";", "this", ".", "isScrollingToEnd", "=", "false", ";", "this", ".", "container", ".", "scrollLeft", "=", "scrollLeft", "+", "target", ";", "}", ";", "public", "onMouseUp", "=", "(", ")", "=>", "{", "this", ".", "scrollData", "=", "{", "...", "this", ".", "scrollData", ",", "dragging", ":", "false", ",", "}", ";", "}", ";", "public", "onMouseMove", "=", "(", "e", ")", "=>", "{", "if", "(", "this", ".", "scrollData", ".", "dragging", "&&", "this", ".", "container", ")", "{", "const", "{", "startLeft", ",", "mouseStartX", "}", "=", "this", ".", "scrollData", ";", "const", "{", "offsetWidth", ",", "scrollWidth", "}", "=", "this", ".", "container", ";", "this", ".", "container", ".", "scrollLeft", "=", "(", "(", "startLeft", "+", "e", ".", "pageX", "-", "mouseStartX", ")", "/", "offsetWidth", ")", "*", "scrollWidth", ";", "}", "}", ";", "public", "onMouseDown", "=", "(", "e", ")", "=>", "{", "this", ".", "isScrollingToEnd", "=", "false", ";", "this", ".", "scrollData", "=", "{", "...", "this", ".", "scrollData", ",", "dragging", ":", "true", ",", "mouseStartX", ":", "e", ".", "pageX", ",", "startLeft", ":", "this", ".", "state", ".", "thumbLeft", ",", "}", ";", "}", ";", "public", "scrollToEnd", "=", "(", "milliseconds", ")", "=>", "{", "if", "(", "!", "this", ".", "props", ".", "enabled", ")", "return", ";", "const", "frame", "=", "(", ")", "=>", "{", "if", "(", "!", "this", ".", "isScrollingToEnd", ")", "return", ";", "this", ".", "container", ".", "scrollLeft", "=", "this", ".", "container", ".", "scrollWidth", ";", "requestAnimationFrame", "(", "frame", ")", ";", "}", ";", "if", "(", "!", "this", ".", "isScrollingToEnd", ")", "{", "this", ".", "isScrollingToEnd", "=", "true", ";", "frame", "(", ")", ";", "}", "clearTimeout", "(", "this", ".", "scrollTimeout", ")", ";", "this", ".", "scrollTimeout", "=", "setTimeout", "(", "(", ")", "=>", "{", "this", ".", "isScrollingToEnd", "=", "false", ";", "}", ",", "milliseconds", ")", ";", "}", ";", "public", "render", "(", ")", "{", "const", "{", "visible", ",", "thumbWidth", ",", "thumbLeft", "}", "=", "this", ".", "state", ";", "const", "{", "enabled", "}", "=", "this", ".", "props", ";", "return", "(", "<", "Root", "visible", "=", "{", "visible", "&&", "enabled", "}", ">", "<", "Thumb", "style", "=", "{", "{", "width", ":", "thumbWidth", ",", "left", ":", "thumbLeft", ",", "}", "}", "visible", "=", "{", "this", ".", "props", ".", "visible", "}", "onMouseDown", "=", "{", "this", ".", "onMouseDown", "}", "/", ">", "<", "/Root>);", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 8, null, 32, null, 38, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 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 ]
254
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "TweenLite", "}", "from", "'gsap'", ";", "import", "store", "from", "'.'", ";", "import", "{", "makeId", "}", "from", "'~/utils'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "HorizontalScrollbar", "from", "'~/renderer/components/HorizontalScrollbar'", ";", "import", "{", "Tab", "}", "from", "'../models/tab'", ";", "import", "{", "defaultTabOptions", ",", "TAB_ANIMATION_DURATION", ",", "TABS_PADDING", ",", "ADD_TAB_MARGIN_LEFT", ",", "TAB_ANIMATION_EASING", ",", "}", "from", "'../constants/tabs'", ";", "export", "class", "TabsStore", "{", "@", "observable", "public", "isDragging", "=", "false", ";", "@", "observable", "public", "scrollbarVisible", "=", "false", ";", "@", "observable", "public", "hoveredTabId", ":", "number", ";", "@", "observable", "public", "list", ":", "Tab", "[", "]", "=", "[", "]", ";", "@", "observable", "public", "scrollable", "=", "false", ";", "@", "observable", "public", "selectedTabId", "=", "0", ";", "public", "removedTabs", "=", "0", ";", "public", "lastScrollLeft", "=", "0", ";", "public", "lastMouseX", "=", "0", ";", "public", "mouseStartX", "=", "0", ";", "public", "tabStartX", "=", "0", ";", "public", "scrollbarRef", "=", "React", ".", "createRef", "<", "HorizontalScrollbar", ">", "(", ")", ";", "public", "containerRef", "=", "React", ".", "createRef", "<", "HTMLDivElement", ">", "(", ")", ";", "private", "rearrangeTabsTimer", "=", "{", "canReset", ":", "false", ",", "time", ":", "0", ",", "interval", ":", "null", "as", "any", ",", "}", ";", "constructor", "(", ")", "{", "window", ".", "addEventListener", "(", "'mouseup'", ",", "this", ".", "onMouseUp", ")", ";", "window", ".", "addEventListener", "(", "'mousemove'", ",", "this", ".", "onMouseMove", ")", ";", "window", ".", "addEventListener", "(", "'resize'", ",", "this", ".", "onResize", ")", ";", "this", ".", "rearrangeTabsTimer", ".", "interval", "=", "setInterval", "(", "(", ")", "=>", "{", "if", "(", "this", ".", "rearrangeTabsTimer", ".", "canReset", "&&", "this", ".", "rearrangeTabsTimer", ".", "time", "===", "3", ")", "{", "this", ".", "removedTabs", "=", "0", ";", "this", ".", "updateTabsBounds", "(", "true", ")", ";", "this", ".", "rearrangeTabsTimer", ".", "canReset", "=", "false", ";", "}", "this", ".", "rearrangeTabsTimer", ".", "time", "++", ";", "}", ",", "1000", ")", ";", "if", "(", "process", ".", "env", ".", "ENV", "===", "'dev'", ")", "{", "requestAnimationFrame", "(", "(", ")", "=>", "{", "if", "(", "!", "this", ".", "list", ".", "length", ")", "{", "const", "id", "=", "makeId", "(", "32", ")", ";", "ipcRenderer", ".", "once", "(", "`get-testing-site-${", "id", "}`", ",", "(", "e", ",", "site", ")", "=>", "{", "if", "(", "site", ")", "this", ".", "addTab", "(", "{", "site", ",", "active", ":", "true", "}", ")", ";", "}", ")", ";", "ipcRenderer", ".", "send", "(", "'get-testing-site'", ",", "id", ")", ";", "}", "}", ")", ";", "}", "}", "public", "resetRearrangeTabsTimer", "(", ")", "{", "this", ".", "rearrangeTabsTimer", ".", "time", "=", "0", ";", "this", ".", "rearrangeTabsTimer", ".", "canReset", "=", "true", ";", "}", "@", "action", "public", "onResize", "=", "(", "e", ")", "=>", "{", "if", "(", "e", ".", "isTrusted", ")", "{", "this", ".", "removedTabs", "=", "0", ";", "this", ".", "updateTabsBounds", "(", "false", ")", ";", "}", "}", ";", "public", "get", "containerWidth", "(", ")", "{", "if", "(", "this", ".", "containerRef", ".", "current", ")", "{", "return", "this", ".", "containerRef", ".", "current", ".", "offsetWidth", ";", "}", "return", "0", ";", "}", "public", "get", "selectedTab", "(", ")", "{", "return", "this", ".", "getTabById", "(", "this", ".", "selectedTabId", ")", ";", "}", "public", "get", "hoveredTab", "(", ")", "{", "return", "this", ".", "getTabById", "(", "this", ".", "hoveredTabId", ")", ";", "}", "public", "getTabById", "(", "id", ")", "{", "return", "this", ".", "list", ".", "find", "(", "x", "=>", "x", ".", "id", "===", "id", ")", ";", "}", "@", "action", "public", "addTab", "(", "options", "=", "defaultTabOptions", ")", "{", "this", ".", "removedTabs", "=", "0", ";", "const", "tab", "=", "new", "Tab", "(", "options", ")", ";", "if", "(", "options", ".", "index", "!==", "undefined", ")", "{", "this", ".", "list", ".", "splice", "(", "options", ".", "index", ",", "0", ",", "tab", ")", ";", "}", "else", "{", "this", ".", "list", ".", "push", "(", "tab", ")", ";", "}", "if", "(", "options", ".", "site", ")", "{", "store", ".", "pages", ".", "add", "(", "options", ".", "site", ",", "tab", ",", "options", ".", "path", ")", ";", "}", "requestAnimationFrame", "(", "(", ")", "=>", "{", "tab", ".", "setLeft", "(", "tab", ".", "getLeft", "(", ")", ",", "false", ")", ";", "this", ".", "updateTabsBounds", "(", "true", ")", ";", "this", ".", "scrollbarRef", ".", "current", ".", "scrollToEnd", "(", "TAB_ANIMATION_DURATION", "*", "1000", ")", ";", "}", ")", ";", "return", "tab", ";", "}", "public", "removeTab", "(", "id", ")", "{", "(", "this", ".", "list", "as", "any", ")", ".", "remove", "(", "this", ".", "getTabById", "(", "id", ")", ")", ";", "}", "@", "action", "public", "updateTabsBounds", "(", "animation", ")", "{", "this", ".", "setTabsWidths", "(", "animation", ")", ";", "this", ".", "setTabsLefts", "(", "animation", ")", ";", "}", "@", "action", "public", "setTabsWidths", "(", "animation", ")", "{", "const", "tabs", "=", "this", ".", "list", ".", "filter", "(", "x", "=>", "!", "x", ".", "isClosing", ")", ";", "const", "containerWidth", "=", "this", ".", "containerWidth", ";", "for", "(", "const", "tab", "of", "tabs", ")", "{", "const", "width", "=", "tab", ".", "getWidth", "(", "containerWidth", ",", "tabs", ")", ";", "tab", ".", "setWidth", "(", "width", ",", "animation", ")", ";", "this", ".", "scrollable", "=", "width", "===", "72", ";", "}", "}", "@", "action", "public", "setTabsLefts", "(", "animation", ")", "{", "const", "tabs", "=", "this", ".", "list", ".", "filter", "(", "x", "=>", "!", "x", ".", "isClosing", ")", ";", "let", "left", "=", "0", ";", "for", "(", "const", "tab", "of", "tabs", ")", "{", "tab", ".", "setLeft", "(", "left", ",", "animation", ")", ";", "left", "+=", "tab", ".", "width", "+", "TABS_PADDING", ";", "}", "store", ".", "addTab", ".", "setLeft", "(", "Math", ".", "min", "(", "left", "+", "ADD_TAB_MARGIN_LEFT", ",", "this", ".", "containerWidth", "+", "TABS_PADDING", "+", "ADD_TAB_MARGIN_LEFT", ")", ",", "animation", ")", ";", "}", "@", "action", "public", "replaceTab", "(", "firstTab", ",", "secondTab", ")", "{", "secondTab", ".", "setLeft", "(", "firstTab", ".", "getLeft", "(", "true", ")", ",", "true", ")", ";", "const", "index", "=", "this", ".", "list", ".", "indexOf", "(", "secondTab", ")", ";", "this", ".", "list", "[", "this", ".", "list", ".", "indexOf", "(", "firstTab", ")", "]", "=", "secondTab", ";", "this", ".", "list", "[", "index", "]", "=", "firstTab", ";", "}", "public", "getTabsToReplace", "(", "callingTab", ",", "direction", ")", "{", "const", "tabs", "=", "this", ".", "list", ";", "const", "index", "=", "tabs", ".", "indexOf", "(", "callingTab", ")", ";", "if", "(", "direction", "===", "'left'", ")", "{", "for", "(", "let", "i", "=", "index", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "const", "tab", "=", "tabs", "[", "i", "]", ";", "if", "(", "callingTab", ".", "left", "<=", "tab", ".", "width", "/", "2", "+", "tab", ".", "left", ")", "{", "this", ".", "replaceTab", "(", "tabs", "[", "i", "+", "1", "]", ",", "tab", ")", ";", "}", "else", "{", "break", ";", "}", "}", "}", "else", "if", "(", "direction", "===", "'right'", ")", "{", "for", "(", "let", "i", "=", "index", "+", "1", ";", "i", "<", "tabs", ".", "length", ";", "i", "++", ")", "{", "const", "tab", "=", "tabs", "[", "i", "]", ";", "if", "(", "callingTab", ".", "left", "+", "callingTab", ".", "width", ">=", "tab", ".", "width", "/", "2", "+", "tab", ".", "left", ")", "{", "this", ".", "replaceTab", "(", "tabs", "[", "i", "-", "1", "]", ",", "tab", ")", ";", "}", "else", "{", "break", ";", "}", "}", "}", "}", "@", "action", "public", "onMouseUp", "=", "(", ")", "=>", "{", "const", "selectedTab", "=", "this", ".", "selectedTab", ";", "this", ".", "isDragging", "=", "false", ";", "this", ".", "setTabsLefts", "(", "true", ")", ";", "if", "(", "selectedTab", ")", "{", "selectedTab", ".", "isDragging", "=", "false", ";", "}", "}", ";", "@", "action", "public", "onMouseMove", "=", "(", "e", ")", "=>", "{", "const", "{", "selectedTab", "}", "=", "store", ".", "tabs", ";", "if", "(", "this", ".", "isDragging", ")", "{", "const", "container", "=", "this", ".", "containerRef", ";", "const", "{", "tabStartX", ",", "mouseStartX", ",", "lastMouseX", ",", "lastScrollLeft", "}", "=", "store", ".", "tabs", ";", "if", "(", "Math", ".", "abs", "(", "e", ".", "pageX", "-", "mouseStartX", ")", "<", "5", ")", "{", "return", ";", "}", "selectedTab", ".", "isDragging", "=", "true", ";", "const", "newLeft", "=", "tabStartX", "+", "e", ".", "pageX", "-", "mouseStartX", "-", "(", "lastScrollLeft", "-", "container", ".", "current", ".", "scrollLeft", ")", ";", "let", "left", "=", "Math", ".", "max", "(", "0", ",", "newLeft", ")", ";", "if", "(", "newLeft", "+", "selectedTab", ".", "width", ">", "store", ".", "addTab", ".", "left", "+", "container", ".", "current", ".", "scrollLeft", "-", "TABS_PADDING", ")", "{", "left", "=", "store", ".", "addTab", ".", "left", "-", "selectedTab", ".", "width", "+", "lastScrollLeft", "-", "TABS_PADDING", ";", "}", "selectedTab", ".", "setLeft", "(", "left", ",", "false", ")", ";", "this", ".", "getTabsToReplace", "(", "selectedTab", ",", "lastMouseX", "-", "e", ".", "pageX", ">=", "1", "?", "'left'", ":", "'right'", ")", ";", "this", ".", "lastMouseX", "=", "e", ".", "pageX", ";", "}", "}", ";", "public", "animateProperty", "(", "property", ",", "obj", ",", "value", ",", "animation", ")", "{", "if", "(", "obj", ")", "{", "const", "props", "=", "{", "ease", ":", "animation", "?", "TAB_ANIMATION_EASING", ":", "null", ",", "}", ";", "props", "[", "property", "]", "=", "value", ";", "TweenLite", ".", "to", "(", "obj", ",", "animation", "?", "TAB_ANIMATION_DURATION", ":", "0", ",", "props", ")", ";", "}", "}", "public", "get", "previousTab", "(", ")", "{", "const", "index", "=", "this", ".", "list", ".", "indexOf", "(", "this", ".", "selectedTab", ")", ";", "if", "(", "index", "-", "1", "===", "-", "1", ")", "return", "null", ";", "return", "this", ".", "list", "[", "index", "-", "1", "]", ";", "}", "public", "get", "nextTab", "(", ")", "{", "const", "index", "=", "this", ".", "list", ".", "indexOf", "(", "this", ".", "selectedTab", ")", ";", "if", "(", "index", "+", "1", ">=", "this", ".", "list", ".", "length", ")", "return", "null", ";", "return", "this", ".", "list", "[", "index", "+", "1", "]", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 1301, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, null, null, null, null, null, null, null, null, null, 388, null, 3, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, 0, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 4, null, 8, 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, 5, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, 388, 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, 4, null, 8, null, null, null, 5, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 388, null, 388, 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, 388, null, 2, 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, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 480, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 3, 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, 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, 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 ]
255
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "extname", "}", "from", "'path'", ";", "import", "{", "IFile", "}", "from", "'~/interfaces'", ";", "import", "{", "makeId", "}", "from", "'~/utils'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "export", "class", "IconsStore", "{", "@", "observable", "public", "icons", ":", "Map", "<", "string", ",", "string", ">", "=", "new", "Map", "(", ")", ";", "@", "action", "public", "load", "(", "...", "files", ")", "{", "if", "(", "!", "files", "||", "!", "files", ".", "length", ")", "return", "null", ";", "return", "new", "Promise", "(", "resolve", "=>", "{", "const", "id", "=", "makeId", "(", "32", ")", ";", "const", "list", "=", "files", ".", "map", "(", "r", "=>", "r", ".", "ext", ")", ".", "filter", "(", "(", "ext", ",", "index", ",", "arr", ")", "=>", "ext", ".", "length", "&&", "arr", ".", "indexOf", "(", "ext", ")", "===", "index", "&&", "!", "this", ".", "icons", ".", "get", "(", "ext", ")", ")", ";", "if", "(", "!", "list", ".", "length", ")", "return", "resolve", "(", ")", ";", "ipcRenderer", ".", "once", "(", "`get-icons-${", "id", "}`", ",", "(", "e", ",", "icons", ")", "=>", "{", "for", "(", "const", "ext", "in", "icons", ")", "{", "this", ".", "icons", ".", "set", "(", "ext", ",", "icons", "[", "ext", "]", ")", ";", "}", "resolve", "(", ")", ";", "}", ")", ";", "ipcRenderer", ".", "send", "(", "`get-icons`", ",", "list", ",", "id", ")", ";", "}", ")", ";", "}", "public", "getIcon", "(", "file", ")", "{", "if", "(", "!", "file", ")", "return", "{", "icon", ":", "''", ",", "opacity", ":", "1", "}", ";", "let", "icon", "=", "file", ".", "type", "===", "'folder'", "?", "icons", ".", "folder", ":", "this", ".", "icons", ".", "get", "(", "file", ".", "ext", ")", ";", "const", "opacity", "=", "file", ".", "type", "===", "'folder'", "||", "!", "icon", "?", "transparency", ".", "icons", ".", "inactive", ":", "1", ";", "if", "(", "!", "icon", "&&", "file", ".", "type", "!==", "'folder'", ")", "{", "icon", "=", "icons", ".", "file", ";", "}", "return", "{", "icon", ",", "opacity", "}", ";", "}", "public", "getPathIcon", "(", "path", ")", "{", "return", "this", ".", "getIcon", "(", "{", "type", ":", "'file'", ",", "ext", ":", "extname", "(", "path", ")", ",", "}", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, 2, null, null, null, null, null, null, null, 5, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, 2, null, 3, 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, 1301, 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, 6, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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 ]
256
[ "import", "{", "observable", ",", "computed", "}", "from", "'mobx'", ";", "import", "store", "from", "'.'", ";", "export", "type", "SidebarContent", "=", "'explorer'", "|", "'sites'", "|", "'search'", "|", "'transfer'", ";", "export", "class", "ActivitybarStore", "{", "@", "observable", "public", "_content", ":", "SidebarContent", "=", "'explorer'", ";", "public", "set", "content", "(", "value", ")", "{", "this", ".", "_content", "=", "value", ";", "}", "@", "computed", "public", "get", "content", "(", ")", ":", "SidebarContent", "{", "if", "(", "!", "store", ".", "sessions", ".", "current", ")", "return", "'sites'", ";", "return", "this", ".", "_content", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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 ]
257
[ "import", "{", "formatPath", "}", "from", "'qusly-core'", ";", "import", "{", "IFile", ",", "ITreeItem", "}", "from", "'~/interfaces'", ";", "export", "const", "formatTreeItems", "=", "(", "files", ",", "path", ")", "=>", "{", "return", "files", ".", "filter", "(", "r", "=>", "r", ".", "type", "===", "'folder'", ")", ".", "map", "(", "r", "=>", "(", "{", "file", ":", "r", ",", "path", ":", "formatPath", "(", "path", ",", "r", ")", ",", "children", ":", "[", "]", ",", "}", "as", "ITreeItem", ")", ")", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, 5, null, 2, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
258
[ "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "Session", "}", "from", "'./session'", ";", "import", "{", "ITreeItem", ",", "IFile", "}", "from", "'~/interfaces'", ";", "import", "{", "formatTreeItems", "}", "from", "'../utils/tree'", ";", "export", "class", "Tree", "{", "@", "observable", "public", "items", ":", "ITreeItem", "[", "]", "=", "[", "{", "path", ":", "'/'", ",", "file", ":", "{", "name", ":", "'/'", ",", "}", ",", "expanded", ":", "true", ",", "children", ":", "[", "]", ",", "}", "as", "any", ",", "]", ";", "constructor", "(", "public", "session", ")", "{", "}", "@", "action", "public", "async", "fetch", "(", "item", "?", ")", "{", "if", "(", "item", ")", "{", "if", "(", "item", ".", "fetched", ")", "return", ";", "item", ".", "fetched", "=", "true", ";", "}", "const", "path", "=", "!", "item", "?", "'/'", ":", "item", ".", "path", ";", "const", "list", "=", "!", "item", "?", "this", ".", "items", ":", "item", ".", "children", ";", "const", "files", "=", "await", "this", ".", "session", ".", "client", ".", "readDir", "(", "path", ")", ";", "const", "items", "=", "formatTreeItems", "(", "files", ",", "path", ")", ";", "list", ".", "push", "(", "...", "items", ")", ";", "}", "@", "action", "public", "async", "update", "(", "item", ",", "files", ")", "{", "if", "(", "!", "item", ")", "return", ";", "item", ".", "fetched", "=", "true", ";", "item", ".", "children", "=", "formatTreeItems", "(", "files", ",", "item", ".", "path", ")", ".", "map", "(", "r", "=>", "{", "const", "child", "=", "item", ".", "children", ".", "find", "(", "el", "=>", "el", ".", "path", "===", "r", ".", "path", ")", ";", "if", "(", "!", "child", ")", "return", "r", ";", "return", "{", "...", "r", ",", "children", ":", "child", ".", "children", ",", "expanded", ":", "child", ".", "expanded", ",", "fetched", ":", "child", ".", "fetched", ",", "}", ";", "}", ")", ";", "}", "@", "action", "public", "getItem", "(", "path", ")", "{", "const", "queue", "=", "this", ".", "items", ".", "slice", "(", ")", ";", "while", "(", "queue", ".", "length", ")", "{", "const", "item", "=", "queue", ".", "shift", "(", ")", ";", "if", "(", "item", ".", "path", "===", "path", ")", "{", "return", "item", ";", "}", "queue", ".", "push", "(", "...", "item", ".", "children", ")", ";", "}", "return", "null", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, null, null, null, 7, null, 3841, 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, 5, 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, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 3841, 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, 3841, null, null, null, 3841, null, null, null, null, null, null, null, 3841, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3841, null, 2, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3841, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
259
[ "import", "{", "remote", "}", "from", "'electron'", ";", "import", "{", "basename", ",", "resolve", "}", "from", "'path'", ";", "import", "{", "action", "}", "from", "'mobx'", ";", "import", "{", "Client", ",", "TransferClient", "}", "from", "'qusly-core'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "store", "from", "'../store'", ";", "import", "{", "Tree", "}", "from", "'./tree'", ";", "export", "type", "ConnectionStatus", "=", "'connecting'", "|", "'connected'", "|", "'disconnected'", "|", "'errored'", ";", "let", "id", "=", "0", ";", "const", "downloadsPath", "=", "resolve", "(", "remote", ".", "app", ".", "getPath", "(", "'downloads'", ")", ",", "'qusly'", ")", ";", "export", "class", "Session", "{", "public", "id", "=", "id", "++", ";", "public", "client", "=", "new", "Client", "(", ")", ";", "public", "tree", "=", "new", "Tree", "(", "this", ")", ";", "public", "status", ":", "ConnectionStatus", "=", "'disconnected'", ";", "public", "startPath", ":", "string", ";", "public", "downloadClient", "=", "new", "TransferClient", "(", "'download'", ",", "1", ")", ";", "constructor", "(", "public", "site", ")", "{", "this", ".", "downloadClient", ".", "on", "(", "'new'", ",", "store", ".", "transfer", ".", "onNew", ")", ";", "this", ".", "downloadClient", ".", "on", "(", "'progress'", ",", "store", ".", "transfer", ".", "onProgress", ")", ";", "this", ".", "downloadClient", ".", "on", "(", "'finish'", ",", "store", ".", "transfer", ".", "onFinish", ")", ";", "}", "@", "action", "public", "async", "connect", "(", ")", "{", "if", "(", "this", ".", "status", "===", "'disconnected'", ")", "{", "this", ".", "status", "=", "'connecting'", ";", "await", "this", ".", "client", ".", "connect", "(", "this", ".", "site", ")", ";", "const", "path", "=", "await", "this", ".", "client", ".", "pwd", "(", ")", ";", "this", ".", "startPath", "=", "path", ";", "this", ".", "status", "=", "'connected'", ";", "await", "this", ".", "tree", ".", "fetch", "(", "this", ".", "tree", ".", "items", "[", "0", "]", ")", ";", "}", "}", "@", "action", "public", "async", "close", "(", ")", "{", "store", ".", "sessions", ".", "list", "=", "store", ".", "sessions", ".", "list", ".", "filter", "(", "r", "=>", "r", "!==", "this", ")", ";", "await", "this", ".", "client", ".", "disconnect", "(", ")", ";", "}", "@", "action", "public", "download", "(", "...", "paths", ")", "{", "for", "(", "const", "path", "of", "paths", ")", "{", "const", "fileName", "=", "basename", "(", "path", ")", ";", "const", "localPath", "=", "resolve", "(", "downloadsPath", ",", "fileName", ")", ";", "this", ".", "downloadClient", ".", "transfer", "(", "localPath", ",", "path", ",", "this", ".", "site", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 5, null, null, null, null, null, 2, null, null, null, null, null, 2, 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 ]
260
[ "import", "{", "observable", ",", "computed", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "store", "from", "'.'", ";", "import", "{", "Session", "}", "from", "'../models/session'", ";", "export", "class", "SessionsStore", "{", "@", "observable", "public", "list", ":", "Session", "[", "]", "=", "[", "]", ";", "@", "computed", "public", "get", "current", "(", ")", "{", "const", "tab", "=", "store", ".", "tabs", ".", "selectedTab", ";", "return", "this", ".", "list", ".", "find", "(", "r", "=>", "tab", "&&", "r", ".", "id", "===", "tab", ".", "sessionId", ")", ";", "}", "@", "action", "public", "add", "(", "site", ")", "{", "let", "session", "=", "this", ".", "findSession", "(", "site", ")", ";", "if", "(", "!", "session", ")", "{", "session", "=", "new", "Session", "(", "site", ")", ";", "this", ".", "list", ".", "push", "(", "session", ")", ";", "}", "return", "session", ";", "}", "private", "findSession", "(", "{", "host", ",", "port", ",", "protocol", ",", "user", ",", "password", "}", ")", "{", "return", "this", ".", "list", ".", "find", "(", "(", "{", "site", "}", ")", "=>", "site", ".", "host", "===", "host", "&&", "site", ".", "port", "===", "port", "&&", "site", ".", "protocol", "===", "protocol", "&&", "site", ".", "user", "===", "user", "&&", "site", ".", "password", "===", "password", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, 19654, null, null, null, 405, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
261
[ "import", "{", "clipboard", "}", "from", "'electron'", ";", "import", "{", "computed", ",", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "Page", "}", "from", "'./page'", ";", "export", "class", "Location", "{", "@", "observable", "private", "history", ":", "string", "[", "]", "=", "[", "]", ";", "@", "observable", "private", "pos", "=", "-", "1", ";", "constructor", "(", "private", "page", ")", "{", "}", "@", "computed", "public", "get", "items", "(", ")", "{", "if", "(", "this", ".", "pos", "===", "-", "1", ")", "return", "[", "]", ";", "const", "items", "=", "this", ".", "history", "[", "this", ".", "pos", "]", "?.", "split", "(", "'/'", ")", ".", "filter", "(", "r", "=>", "r", ".", "length", ")", ";", "if", "(", "!", "items", ")", "return", "[", "]", ";", "return", "[", "'/'", ",", "...", "items", "]", ";", "}", "@", "computed", "public", "get", "canGoBack", "(", ")", "{", "return", "this", ".", "pos", ">", "0", ";", "}", "@", "computed", "public", "get", "canGoForward", "(", ")", "{", "return", "this", ".", "pos", "<", "this", ".", "history", ".", "length", "-", "1", ";", "}", "public", "goBack", "=", "async", "(", ")", "=>", "{", "if", "(", "this", ".", "canGoBack", ")", "{", "this", ".", "pos", "--", ";", "await", "this", ".", "page", ".", "fetchFiles", "(", ")", ";", "}", "}", ";", "public", "goForward", "=", "async", "(", ")", "=>", "{", "if", "(", "this", ".", "canGoForward", ")", "{", "this", ".", "pos", "++", ";", "await", "this", ".", "page", ".", "fetchFiles", "(", ")", ";", "}", "}", ";", "@", "action", "public", "async", "push", "(", "path", ")", "{", "this", ".", "pos", "++", ";", "this", ".", "history", "=", "[", "...", "this", ".", "history", ".", "slice", "(", "0", ",", "this", ".", "pos", ")", ",", "path", "]", ";", "await", "this", ".", "page", ".", "fetchFiles", "(", ")", ";", "}", "@", "action", "public", "pushRelative", "(", "...", "items", ")", "{", "const", "path", "=", "this", ".", "relative", "(", "...", "items", ")", ";", "this", ".", "push", "(", "path", ")", ";", "}", "public", "toString", "(", ")", "{", "return", "this", ".", "relative", "(", ")", ";", "}", "public", "relative", "(", "...", "items", ")", "{", "return", "'/'", "+", "[", "...", "this", ".", "items", ".", "slice", "(", "1", ")", ",", "...", "items", "]", ".", "join", "(", "'/'", ")", ";", "}", "@", "action", "public", "goto", "(", "index", ")", "{", "if", "(", "!", "this", ".", "page", ".", "loading", ")", "{", "if", "(", "this", ".", "items", ".", "length", "-", "1", "===", "index", ")", "{", "this", ".", "page", ".", "fetchFiles", "(", ")", ";", "return", ";", "}", "const", "items", "=", "this", ".", "items", ".", "slice", "(", "1", ",", "index", "+", "1", ")", ";", "const", "path", "=", "'/'", "+", "items", ".", "join", "(", "'/'", ")", ";", "this", ".", "push", "(", "path", ")", ";", "}", "}", "public", "copyToClipboard", "(", ")", "{", "clipboard", ".", "writeText", "(", "this", ".", "toString", "(", ")", ",", "'clipboard'", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, 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, 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, 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, 4, null, null, 5, null, null, null, 2, 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, 2, 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, 4, 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, 5, 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, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
262
[ "import", "{", "IFile", "}", "from", "'~/interfaces'", ";", "export", "const", "sortFiles", "=", "(", "files", ")", ":", "IFile", "[", "]", "=>", "{", "if", "(", "!", "files", ")", "return", "[", "]", ";", "return", "files", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "{", "const", "nameA", "=", "a", ".", "name", ".", "toUpperCase", "(", ")", ";", "const", "nameB", "=", "b", ".", "name", ".", "toUpperCase", "(", ")", ";", "const", "isFirstFolder", "=", "a", ".", "type", "===", "'folder'", ";", "const", "isSecondFolder", "=", "b", ".", "type", "===", "'folder'", ";", "if", "(", "(", "isFirstFolder", "&&", "isSecondFolder", ")", "||", "(", "!", "isFirstFolder", "&&", "!", "isSecondFolder", ")", ")", "{", "return", "nameA", ".", "localeCompare", "(", "nameB", ")", ";", "}", "if", "(", "isSecondFolder", ")", "return", "0", ";", "if", "(", "isFirstFolder", ")", "return", "-", "1", ";", "return", "0", ";", "}", ")", ";", "}", ";" ]
[ 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, null, null, null, null, null, null, null, null, 1312, null, 1312, 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, 8, 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 ]
263
[ "import", "{", "observable", ",", "action", ",", "computed", "}", "from", "'mobx'", ";", "import", "{", "extname", "}", "from", "'path'", ";", "import", "store", "from", "'../store'", ";", "import", "{", "Session", "}", "from", "'./session'", ";", "import", "{", "Location", "}", "from", "'./location'", ";", "import", "{", "IFile", "}", "from", "'~/interfaces'", ";", "import", "{", "sortFiles", "}", "from", "'../utils/files'", ";", "let", "id", "=", "0", ";", "export", "class", "Page", "{", "@", "observable", "public", "id", "=", "id", "++", ";", "@", "observable", "public", "loading", "=", "true", ";", "@", "observable", "public", "files", ":", "IFile", "[", "]", "=", "[", "]", ";", "@", "observable", "public", "focusedFile", ":", "IFile", ";", "@", "observable", "public", "cutFiles", ":", "IFile", "[", "]", "=", "[", "]", ";", "public", "hoveredFile", ":", "IFile", ";", "public", "path", "=", "new", "Location", "(", "this", ")", ";", "public", "cutPath", ":", "string", ";", "constructor", "(", "public", "session", ")", "{", "}", "public", "async", "load", "(", "path", "?", ")", "{", "await", "this", ".", "path", ".", "push", "(", "path", ")", ";", "}", "public", "async", "close", "(", ")", "{", "const", "pages", "=", "store", ".", "pages", ".", "list", ".", "filter", "(", "r", "=>", "r", ".", "session", ".", "id", "===", "this", ".", "session", ".", "id", ")", ";", "if", "(", "!", "pages", ".", "length", ")", "{", "this", ".", "session", ".", "close", "(", ")", ";", "}", "store", ".", "pages", ".", "list", "=", "store", ".", "pages", ".", "list", ".", "filter", "(", "r", "=>", "r", "!==", "this", ")", ";", "}", "@", "action", "public", "fetchFiles", "=", "async", "(", ")", "=>", "{", "try", "{", "if", "(", "this", ".", "session", ".", "status", "===", "'disconnected'", ")", "throw", "new", "Error", "(", "'Attempt to fetch files in a disconnected session'", ")", ";", "this", ".", "loading", "=", "true", ";", "const", "path", "=", "this", ".", "path", ".", "toString", "(", ")", ";", "const", "files", "=", "await", "this", ".", "session", ".", "client", ".", "readDir", "(", "path", ")", ";", "await", "store", ".", "icons", ".", "load", "(", "...", "files", ")", ";", "this", ".", "tab", ".", "title", "=", "this", ".", "session", ".", "site", ".", "title", ";", "this", ".", "tab", ".", "subtitle", "=", "`${", "path", "}`", ";", "this", ".", "files", "=", "sortFiles", "(", "files", ")", ";", "this", ".", "loading", "=", "false", ";", "await", "this", ".", "session", ".", "tree", ".", "update", "(", "this", ".", "treeItem", ",", "this", ".", "files", ")", ";", "}", "catch", "(", "e", ")", "{", "console", ".", "error", "(", "e", ")", ";", "}", "}", ";", "@", "computed", "public", "get", "tab", "(", ")", "{", "return", "store", ".", "tabs", ".", "list", ".", "find", "(", "r", "=>", "r", ".", "pageId", "===", "this", ".", "id", ")", ";", "}", "@", "computed", "public", "get", "treeItem", "(", ")", "{", "const", "path", "=", "this", ".", "path", ".", "toString", "(", ")", ";", "return", "this", ".", "session", ".", "tree", ".", "getItem", "(", "path", ")", ";", "}", "@", "computed", "public", "get", "selectedFiles", "(", ")", "{", "return", "this", ".", "files", ".", "filter", "(", "e", "=>", "e", ".", "selected", ")", ";", "}", "@", "action", "public", "unselectFiles", "(", "...", "skip", ")", "{", "this", ".", "files", ".", "forEach", "(", "item", "=>", "{", "item", ".", "selected", "=", "skip", ".", "indexOf", "(", "item", ")", "!==", "-", "1", ";", "}", ")", ";", "}", "@", "action", "public", "selectGroup", "(", "start", ",", "end", ")", "{", "if", "(", "start", ">", "end", ")", "[", "start", ",", "end", "]", "=", "[", "end", ",", "start", "]", ";", "for", "(", "let", "i", "=", "0", ";", "i", "<", "this", ".", "files", ".", "length", ";", "i", "++", ")", "{", "const", "file", "=", "this", ".", "files", "[", "i", "]", ";", "file", ".", "selected", "=", "i", ">=", "start", "&&", "i", "<=", "end", ";", "}", "}", "@", "action", "public", "async", "dropRemote", "(", ")", "{", "if", "(", "this", ".", "hoveredFile", "&&", "this", ".", "hoveredFile", ".", "type", "===", "'folder'", "&&", "this", ".", "focusedFile", "!==", "this", ".", "hoveredFile", ")", "{", "this", ".", "loading", "=", "true", ";", "for", "(", "const", "file", "of", "this", ".", "selectedFiles", ")", "{", "const", "oldPath", "=", "this", ".", "path", ".", "relative", "(", "file", ".", "name", ")", ";", "const", "newPath", "=", "this", ".", "path", ".", "relative", "(", "this", ".", "hoveredFile", ".", "name", ",", "file", ".", "name", ")", ";", "await", "this", ".", "session", ".", "client", ".", "move", "(", "oldPath", ",", "newPath", ")", ";", "}", "await", "this", ".", "fetchFiles", "(", ")", ";", "}", "}", "@", "action", "public", "async", "rename", "(", "file", ",", "newName", ")", "{", "newName", "=", "newName", ".", "trim", "(", ")", ";", "file", ".", "renamed", "=", "false", ";", "const", "oldName", "=", "file", ".", "name", ";", "const", "ext", "=", "extname", "(", "newName", ")", ";", "const", "exists", "=", "this", ".", "files", ".", "find", "(", "r", "=>", "r", ".", "name", ".", "toLowerCase", "(", ")", "===", "newName", ".", "toLowerCase", "(", ")", "&&", "r", ".", "ext", "===", "ext", ")", ";", "if", "(", "!", "exists", "&&", "newName", ".", "length", ")", "{", "file", ".", "name", "=", "newName", ";", "file", ".", "ext", "=", "ext", ";", "if", "(", "file", ".", "type", "!==", "'folder'", ")", "{", "await", "store", ".", "icons", ".", "load", "(", "file", ")", ";", "}", "const", "oldPath", "=", "this", ".", "path", ".", "relative", "(", "oldName", ")", ";", "const", "newPath", "=", "this", ".", "path", ".", "relative", "(", "newName", ")", ";", "try", "{", "await", "this", ".", "session", ".", "client", ".", "move", "(", "oldPath", ",", "newPath", ")", ";", "}", "catch", "(", "error", ")", "{", "file", ".", "name", "=", "oldName", ";", "}", "this", ".", "files", "=", "sortFiles", "(", "this", ".", "files", ")", ";", "}", "}", "@", "action", "public", "async", "delete", "(", "files", ")", "{", "this", ".", "loading", "=", "true", ";", "for", "(", "const", "file", "of", "files", ")", "{", "const", "path", "=", "this", ".", "path", ".", "relative", "(", "file", ".", "name", ")", ";", "await", "this", ".", "session", ".", "client", ".", "delete", "(", "path", ")", ";", "}", "await", "this", ".", "fetchFiles", "(", ")", ";", "}", "@", "action", "public", "async", "cut", "(", "files", ")", "{", "this", ".", "cutFiles", "=", "files", ";", "this", ".", "cutPath", "=", "this", ".", "path", ".", "toString", "(", ")", ";", "this", ".", "files", ".", "forEach", "(", "file", "=>", "{", "file", ".", "cut", "=", "files", ".", "indexOf", "(", "file", ")", "!==", "-", "1", ";", "}", ")", ";", "}", "@", "action", "public", "async", "paste", "(", "workingDirectory", "=", "false", ")", "{", "if", "(", "this", ".", "cutFiles", ".", "length", ")", "{", "this", ".", "loading", "=", "true", ";", "const", "dir", "=", "workingDirectory", "?", "''", ":", "this", ".", "focusedFile", ".", "name", ";", "for", "(", "const", "file", "of", "this", ".", "cutFiles", ")", "{", "const", "oldPath", "=", "`${", "this", ".", "cutPath", "}/${", "file", ".", "name", "}`", ";", "const", "newPath", "=", "this", ".", "path", ".", "relative", "(", "dir", ",", "file", ".", "name", ")", ";", "await", "this", ".", "session", ".", "client", ".", "move", "(", "oldPath", ",", "newPath", ")", ";", "}", "this", ".", "cutFiles", "=", "[", "]", ";", "await", "this", ".", "fetchFiles", "(", ")", ";", "}", "}", "@", "action", "public", "async", "createBlank", "(", "type", ")", "{", "const", "path", "=", "this", ".", "path", ".", "toString", "(", ")", ";", "const", "fileName", "=", "await", "this", ".", "session", ".", "client", ".", "createBlank", "(", "type", ",", "path", ",", "this", ".", "files", ")", ";", "await", "this", ".", "fetchFiles", "(", ")", ";", "const", "file", "=", "this", ".", "files", ".", "find", "(", "r", "=>", "r", ".", "name", "===", "fileName", ")", ";", "file", ".", "selected", "=", "true", ";", "this", ".", "focusedFile", "=", "file", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, null, 7, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 388, 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, 1312, null, null, null, null, null, null, null, null, null, null, 4, null, null, 5, null, null, null, null, null, null, null, null, 1312, 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, 3, 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, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, 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, 1312, null, null, null, null, null, null, null, 2, 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, 7, null, 1312, null, 2, 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, 1312, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 5, null, null, null, null, null, null, null, null, null, null, null, 1312, 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, 7, 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, 1312, 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, 8, 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, 1312, null, null, null, null, null, null, null, 2, 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, 7, null, 2, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
264
[ "import", "{", "observable", ",", "computed", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "store", "from", "'.'", ";", "import", "{", "Page", "}", "from", "'../models/page'", ";", "import", "{", "Tab", "}", "from", "'../models/tab'", ";", "export", "class", "PagesStore", "{", "@", "observable", "public", "list", ":", "Page", "[", "]", "=", "[", "]", ";", "@", "computed", "public", "get", "current", "(", ")", "{", "const", "tab", "=", "store", ".", "tabs", ".", "selectedTab", ";", "return", "this", ".", "list", ".", "find", "(", "e", "=>", "e", ".", "id", "===", "tab", ".", "pageId", ")", ";", "}", "@", "action", "public", "async", "add", "(", "site", ",", "tab", ",", "path", "?", ")", "{", "const", "session", "=", "await", "store", ".", "sessions", ".", "add", "(", "site", ")", ";", "const", "page", "=", "new", "Page", "(", "session", ")", ";", "tab", ".", "pageId", "=", "page", ".", "id", ";", "tab", ".", "sessionId", "=", "session", ".", "id", ";", "tab", ".", "title", "=", "site", ".", "title", ";", "this", ".", "list", ".", "push", "(", "page", ")", ";", "try", "{", "await", "session", ".", "connect", "(", ")", ";", "await", "page", ".", "load", "(", "path", "||", "session", ".", "startPath", ")", ";", "}", "catch", "(", "e", ")", "{", "console", ".", "error", "(", "e", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 19654, null, 388, null, 2, null, null, null, null, 405, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "store", "from", "'.'", ";", "export", "class", "PathViewStore", "{", "@", "observable", "public", "inputVisible", "=", "false", ";", "public", "inputRef", "=", "React", ".", "createRef", "<", "HTMLInputElement", ">", "(", ")", ";", "@", "action", "public", "show", "=", "(", ")", "=>", "{", "if", "(", "!", "this", ".", "inputVisible", ")", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "input", "=", "this", ".", "inputRef", ".", "current", ";", "input", ".", "value", "=", "page", ".", "path", ".", "toString", "(", ")", ";", "this", ".", "inputVisible", "=", "true", ";", "requestAnimationFrame", "(", "(", ")", "=>", "{", "input", ".", "focus", "(", ")", ";", "input", ".", "select", "(", ")", ";", "}", ")", ";", "}", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, 83, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
266
[ "import", "{", "IPos", "}", "from", "'~/interfaces'", ";", "export", "const", "getMenuPosition", "=", "(", "el", ",", "mousePos", ")", ":", "IPos", "=>", "{", "let", "{", "top", ",", "left", "}", "=", "mousePos", ";", "const", "screenWidth", "=", "document", ".", "body", ".", "clientWidth", ";", "const", "screenHeight", "=", "document", ".", "body", ".", "clientHeight", ";", "const", "width", "=", "el", ".", "clientWidth", ";", "const", "height", "=", "el", ".", "clientHeight", ";", "if", "(", "top", "+", "height", ">", "screenHeight", "&&", "top", "-", "height", ">", "0", ")", "{", "top", "-=", "height", ";", "}", "if", "(", "left", "+", "width", ">", "screenWidth", ")", "{", "left", "-=", "width", ";", "}", "return", "{", "top", ",", "left", "}", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, 29916, null, null, 15, null, 29916, 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, 3, 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, null, null, null, null, null, null, null ]
267
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "store", "from", "'.'", ";", "import", "{", "IPos", ",", "ITreeItem", ",", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "Tab", "}", "from", "'../models/tab'", ";", "import", "{", "getMenuPosition", "}", "from", "'../utils/context-menu'", ";", "export", "type", "ContextMenuContent", "=", "'page'", "|", "'file'", "|", "'tab'", "|", "'path'", "|", "'explorer'", "|", "'site'", ";", "export", "class", "ContextMenuStore", "{", "@", "observable", "public", "visible", "=", "false", ";", "@", "observable", "public", "pos", ":", "IPos", "=", "{", "top", ":", "0", ",", "left", ":", "0", ",", "}", ";", "@", "observable", "public", "content", ":", "ContextMenuContent", "=", "'file'", ";", "public", "ref", "=", "React", ".", "createRef", "<", "HTMLTableElement", ">", "(", ")", ";", "public", "focusedTab", ":", "Tab", ";", "public", "focusedExplorerItem", ":", "ITreeItem", ";", "public", "focusedSite", ":", "ISite", ";", "@", "action", "public", "show", "=", "(", "content", ")", "=>", "{", "this", ".", "content", "=", "content", ";", "this", ".", "visible", "=", "true", ";", "this", ".", "pos", "=", "getMenuPosition", "(", "this", ".", "ref", ".", "current", ",", "store", ".", "mousePos", ")", ";", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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 ]
268
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "cursorDistance", ",", "setElementStyle", "}", "from", "'rectangle-selection'", ";", "import", "{", "IPos", "}", "from", "'~/interfaces'", ";", "import", "store", "from", "'.'", ";", "export", "class", "DragStore", "{", "@", "observable", "public", "visible", "=", "false", ";", "public", "ref", "=", "React", ".", "createRef", "<", "HTMLDivElement", ">", "(", ")", ";", "public", "startPos", ":", "IPos", ";", "public", "active", "=", "false", ";", "@", "action", "public", "update", "(", "pos", ")", "{", "const", "{", "top", ",", "left", "}", "=", "pos", ";", "if", "(", "this", ".", "active", ")", "{", "this", ".", "visible", "=", "this", ".", "visible", "||", "cursorDistance", "(", "pos", ",", "this", ".", "startPos", ")", ">", "5", ";", "setElementStyle", "(", "this", ".", "ref", ".", "current", ",", "{", "top", ":", "`${", "top", "}px`", ",", "left", ":", "`${", "left", "}px`", ",", "}", ")", ";", "}", "}", "public", "hide", "(", ")", "{", "if", "(", "this", ".", "visible", ")", "{", "store", ".", "pages", ".", "current", ".", "dropRemote", "(", ")", ";", "}", "this", ".", "visible", "=", "false", ";", "this", ".", "active", "=", "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, 4, null, 29916, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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 ]
269
[ "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "export", "type", "DialogContent", "=", "'add-site'", "|", "'edit-site'", "|", "'delete-site'", ";", "export", "class", "DialogStore", "{", "@", "observable", "public", "visible", "=", "false", ";", "@", "observable", "public", "content", ":", "DialogContent", "=", "'add-site'", ";", "@", "action", "public", "show", "=", "(", "content", ")", "=>", "{", "this", ".", "content", "=", "content", ";", "this", ".", "visible", "=", "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, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
270
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "export", "const", "setPassword", "=", "(", "_id", ",", "password", ")", "=>", "{", "return", "ipcRenderer", ".", "invoke", "(", "'set-password'", ",", "'qusly'", ",", "_id", ",", "password", ")", ";", "}", ";", "export", "const", "getPassword", "=", "(", "_id", ")", "=>", "{", "return", "ipcRenderer", ".", "invoke", "(", "'get-password'", ",", "'qusly'", ",", "_id", ")", ";", "}", ";", "export", "const", "deletePassword", "=", "(", "_id", ")", "=>", "{", "return", "ipcRenderer", ".", "invoke", "(", "'delete-password'", ",", "'qusly'", ",", "_id", ")", ";", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, 7, null, null, 2, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
271
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "{", "makeId", "}", "from", "'~/utils'", ";", "interface", "IAction", "<", "T", ">", "{", "item", "?", ":", "Partial", "<", "T", ">", ";", "query", "?", ":", "Partial", "<", "T", ">", ";", "multi", "?", ":", "boolean", ";", "value", "?", ":", "Partial", "<", "T", ">", ";", "}", "export", "class", "Database", "<", "T", ">", "{", "private", "scope", ":", "string", ";", "public", "constructor", "(", "scope", ")", "{", "this", ".", "scope", "=", "scope", ";", "}", "private", "async", "performOperation", "(", "operation", ",", "data", ")", "{", "return", "new", "Promise", "(", "resolve", "=>", "{", "const", "id", "=", "makeId", "(", "32", ")", ";", "ipcRenderer", ".", "send", "(", "`storage-${", "operation", "}`", ",", "id", ",", "{", "scope", ":", "this", ".", "scope", ",", "...", "data", ",", "}", ")", ";", "ipcRenderer", ".", "once", "(", "id", ",", "(", "e", ",", "res", ")", "=>", "{", "resolve", "(", "res", ")", ";", "}", ")", ";", "}", ")", ";", "}", "public", "async", "insert", "(", "item", ")", "{", "return", "await", "this", ".", "performOperation", "(", "'insert'", ",", "{", "item", "}", ")", ";", "}", "public", "async", "get", "(", "query", ")", "{", "return", "await", "this", ".", "performOperation", "(", "'get'", ",", "{", "query", "}", ")", ";", "}", "public", "async", "getOne", "(", "query", ")", "{", "return", "await", "this", ".", "performOperation", "(", "'get-one'", ",", "{", "query", "}", ")", ";", "}", "public", "async", "update", "(", "query", ",", "newValue", ",", "multi", "=", "false", ")", "{", "return", "await", "this", ".", "performOperation", "(", "'update'", ",", "{", "query", ",", "value", ":", "newValue", ",", "multi", ",", "}", ")", ";", "}", "public", "async", "remove", "(", "query", ",", "multi", "=", "false", ")", "{", "return", "await", "this", ".", "performOperation", "(", "'remove'", ",", "{", "query", ",", "multi", "}", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 7, null, 2, null, 1376, null, null, null, null, null, null, 4, 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, 1301, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 11, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 11, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 11, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 11, null, 11, 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, 7, null, 11, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
272
[ "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "store", "from", "'.'", ";", "import", "{", "setPassword", ",", "getPassword", ",", "deletePassword", "}", "from", "'~/utils/credentials'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "Database", "}", "from", "'~/renderer/models/database'", ";", "export", "class", "SitesStore", "{", "public", "db", "=", "new", "Database", "<", "ISite", ">", "(", "'sites'", ")", ";", "@", "observable", "public", "list", ":", "ISite", "[", "]", "=", "[", "]", ";", "constructor", "(", ")", "{", "this", ".", "load", "(", ")", ";", "}", "@", "action", "private", "async", "load", "(", ")", "{", "this", ".", "list", "=", "await", "this", ".", "db", ".", "get", "(", "{", "}", ")", ";", "}", "@", "action", "public", "async", "openInTab", "(", "site", ")", "{", "site", ".", "password", "=", "await", "getPassword", "(", "site", ".", "_id", ")", ";", "store", ".", "tabs", ".", "addTab", "(", "{", "active", ":", "true", ",", "site", "}", ")", ";", "}", "@", "action", "public", "async", "add", "(", "site", ")", "{", "const", "{", "password", "}", "=", "site", ";", "const", "res", "=", "await", "this", ".", "db", ".", "insert", "(", "{", "...", "site", ",", "password", ":", "''", ",", "date", ":", "new", "Date", "(", ")", ",", "}", ")", ";", "this", ".", "list", ".", "push", "(", "res", ")", ";", "await", "setPassword", "(", "res", ".", "_id", ",", "password", ")", ";", "}", "@", "action", "public", "async", "update", "(", "_id", ",", "changed", ")", "{", "const", "index", "=", "this", ".", "list", ".", "indexOf", "(", "this", ".", "list", ".", "find", "(", "r", "=>", "r", ".", "_id", "===", "_id", ")", ")", ";", "const", "{", "password", "}", "=", "changed", ";", "changed", "=", "{", "...", "changed", ",", "password", ":", "''", "}", ";", "this", ".", "list", "[", "index", "]", "=", "{", "...", "this", ".", "list", "[", "index", "]", ",", "...", "changed", "}", ";", "await", "this", ".", "db", ".", "update", "(", "{", "_id", "}", ",", "changed", ")", ";", "await", "setPassword", "(", "_id", ",", "password", ")", ";", "}", "@", "action", "public", "async", "remove", "(", "_id", ")", "{", "this", ".", "list", "=", "this", ".", "list", ".", "filter", "(", "r", "=>", "r", ".", "_id", "!==", "_id", ")", ";", "await", "this", ".", "db", ".", "remove", "(", "{", "_id", "}", ")", ";", "await", "deletePassword", "(", "_id", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 7, null, 19654, null, null, null, null, null, null, null, null, null, null, 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, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 19654, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
273
[ "import", "{", "observable", ",", "computed", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "ITransferType", ",", "ITransferItem", "}", "from", "'qusly-core'", ";", "import", "{", "ITransferSection", ",", "ISite", "}", "from", "'~/interfaces'", ";", "export", "class", "TransferStore", "{", "@", "observable", "public", "content", ":", "ITransferType", "=", "'download'", ";", "@", "observable", "public", "items", ":", "ITransferItem", "[", "]", "=", "[", "]", ";", "@", "computed", "public", "get", "sections", "(", ")", "{", "const", "sections", "=", "[", "]", ";", "this", ".", "items", ".", "forEach", "(", "item", "=>", "{", "const", "{", "_id", ",", "title", "}", "=", "item", ".", "data", "as", "ISite", ";", "if", "(", "item", ".", "type", "===", "this", ".", "content", ")", "{", "const", "section", "=", "sections", ".", "find", "(", "r", "=>", "r", ".", "_id", "===", "_id", ")", ";", "if", "(", "section", ")", "{", "section", ".", "items", ".", "push", "(", "item", ")", ";", "}", "else", "{", "sections", ".", "push", "(", "{", "_id", ",", "title", ",", "items", ":", "[", "item", "]", ",", "transfered", ":", "0", ",", "}", ")", ";", "}", "}", "}", ")", ";", "return", "sections", ";", "}", "@", "action", "public", "onNew", "=", "(", "e", ")", "=>", "{", "this", ".", "items", ".", "push", "(", "e", ")", ";", "}", ";", "@", "action", "public", "onProgress", "=", "(", "e", ")", "=>", "{", "const", "item", "=", "this", ".", "items", ".", "find", "(", "r", "=>", "r", ".", "id", "===", "e", ".", "id", ")", ";", "if", "(", "item", ".", "status", "!==", "'transfering'", ")", "{", "item", ".", "status", "=", "'transfering'", ";", "}", "item", ".", "info", "=", "e", ".", "info", ";", "}", ";", "@", "action", "public", "onFinish", "=", "(", "e", ")", "=>", "{", "const", "section", "=", "this", ".", "sections", ".", "find", "(", "r", "=>", "r", ".", "_id", "===", "e", ".", "data", ".", "_id", ")", ";", "const", "item", "=", "this", ".", "items", ".", "find", "(", "r", "=>", "r", ".", "id", "===", "e", ".", "id", ")", ";", "item", ".", "status", "=", "'finished'", ";", "section", ".", "transfered", "++", ";", "}", ";", "@", "action", "public", "remove", "=", "(", "id", ")", "=>", "{", "this", ".", "items", "=", "this", ".", "items", ".", "filter", "(", "r", "=>", "r", ".", "id", "!==", "id", ")", ";", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 35095, null, null, null, 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, 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, 35095, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 35095, null, null, null, null, 35095, null, null, null, null, null, null, null, 35095, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 35095, null, null, null, null, 0, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, 35095, null, null, null, null, null, null, null, 35095, null, null, null, null, null, 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, 35095, null, null, null, null, null, null, null, null, null, null, null ]
274
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "{", "observable", ",", "action", "}", "from", "'mobx'", ";", "import", "{", "IPos", "}", "from", "'~/interfaces'", ";", "import", "{", "AddTabStore", "}", "from", "'./add-tab'", ";", "import", "{", "TabsStore", "}", "from", "'./tabs'", ";", "import", "{", "IconsStore", "}", "from", "'./icons'", ";", "import", "{", "ActivitybarStore", "}", "from", "'./activitybar'", ";", "import", "{", "SessionsStore", "}", "from", "'./sessions'", ";", "import", "{", "PagesStore", "}", "from", "'./pages'", ";", "import", "{", "PathViewStore", "}", "from", "'./path-view'", ";", "import", "{", "ContextMenuStore", "}", "from", "'./context-menu'", ";", "import", "{", "DragStore", "}", "from", "'./drag'", ";", "import", "{", "DialogStore", "}", "from", "'./dialog'", ";", "import", "{", "SitesStore", "}", "from", "'./sites'", ";", "import", "{", "TransferStore", "}", "from", "'./transfer'", ";", "export", "class", "Store", "{", "public", "addTab", "=", "new", "AddTabStore", "(", ")", ";", "public", "tabs", "=", "new", "TabsStore", "(", ")", ";", "public", "icons", "=", "new", "IconsStore", "(", ")", ";", "public", "activitybar", "=", "new", "ActivitybarStore", "(", ")", ";", "public", "sessions", "=", "new", "SessionsStore", "(", ")", ";", "public", "pages", "=", "new", "PagesStore", "(", ")", ";", "public", "pathView", "=", "new", "PathViewStore", "(", ")", ";", "public", "contextMenu", "=", "new", "ContextMenuStore", "(", ")", ";", "public", "drag", "=", "new", "DragStore", "(", ")", ";", "public", "dialog", "=", "new", "DialogStore", "(", ")", ";", "public", "sites", "=", "new", "SitesStore", "(", ")", ";", "public", "transfer", "=", "new", "TransferStore", "(", ")", ";", "@", "observable", "public", "updateInfo", "=", "{", "available", ":", "false", ",", "version", ":", "''", ",", "}", ";", "public", "mousePos", ":", "IPos", "=", "{", "top", ":", "0", ",", "left", ":", "0", ",", "}", ";", "constructor", "(", ")", "{", "ipcRenderer", ".", "on", "(", "'update-available'", ",", "(", "e", ",", "version", ")", "=>", "{", "this", ".", "updateInfo", ".", "version", "=", "version", ";", "this", ".", "updateInfo", ".", "available", "=", "true", ";", "}", ")", ";", "window", ".", "removeEventListener", "(", "'mousemove'", ",", "this", ".", "onWindowMouseMove", ")", ";", "window", ".", "removeEventListener", "(", "'mousedown'", ",", "this", ".", "onWindowMouseDown", ")", ";", "window", ".", "removeEventListener", "(", "'click'", ",", "this", ".", "onWindowClick", ")", ";", "window", ".", "removeEventListener", "(", "'mouseup'", ",", "this", ".", "onWindowMouseUp", ")", ";", "window", ".", "addEventListener", "(", "'mousemove'", ",", "this", ".", "onWindowMouseMove", ")", ";", "window", ".", "addEventListener", "(", "'mousedown'", ",", "this", ".", "onWindowMouseDown", ")", ";", "window", ".", "addEventListener", "(", "'click'", ",", "this", ".", "onWindowClick", ")", ";", "window", ".", "addEventListener", "(", "'mouseup'", ",", "this", ".", "onWindowMouseUp", ")", ";", "}", "@", "action", "private", "onWindowMouseMove", "=", "(", "e", ")", "=>", "{", "this", ".", "mousePos", "=", "{", "top", ":", "e", ".", "pageY", ",", "left", ":", "e", ".", "pageX", ",", "}", ";", "this", ".", "drag", ".", "update", "(", "this", ".", "mousePos", ")", ";", "}", ";", "@", "action", "private", "onWindowMouseDown", "=", "(", ")", "=>", "{", "this", ".", "pathView", ".", "inputVisible", "=", "false", ";", "this", ".", "contextMenu", ".", "visible", "=", "false", ";", "}", ";", "@", "action", "private", "onWindowClick", "=", "(", ")", "=>", "{", "this", ".", "drag", ".", "hide", "(", ")", ";", "}", ";", "@", "action", "private", "onWindowMouseUp", "=", "(", "e", ")", "=>", "{", "if", "(", "e", ".", "button", "===", "3", ")", "{", "this", ".", "pages", ".", "current", ".", "path", ".", "goBack", "(", ")", ";", "}", "else", "if", "(", "e", ".", "button", "===", "4", ")", "{", "this", ".", "pages", ".", "current", ".", "path", ".", "goForward", "(", ")", ";", "}", "}", ";", "}", "export", "default", "new", "Store", "(", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1301, 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, 41, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 41, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
275
[ "import", "{", "observable", ",", "computed", ",", "action", "}", "from", "'mobx'", ";", "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "defaultTabOptions", ",", "ADD_TAB_MARGIN_LEFT", ",", "TABS_PADDING", ",", "TAB_ANIMATION_DURATION", ",", "}", "from", "'../constants/tabs'", ";", "let", "id", "=", "1", ";", "export", "interface", "TabOptions", "{", "active", "?", ":", "boolean", ";", "index", "?", ":", "number", ";", "path", "?", ":", "string", ";", "site", "?", ":", "ISite", ";", "}", "export", "class", "Tab", "{", "@", "observable", "public", "id", ":", "number", "=", "id", "++", ";", "@", "observable", "public", "isDragging", "=", "false", ";", "@", "observable", "public", "title", "=", "'New tab'", ";", "@", "observable", "public", "subtitle", "=", "''", ";", "@", "observable", "public", "width", "=", "0", ";", "@", "observable", "public", "pageId", ":", "number", ";", "@", "observable", "public", "sessionId", ":", "number", ";", "@", "computed", "public", "get", "isSelected", "(", ")", "{", "return", "store", ".", "tabs", ".", "selectedTabId", "===", "this", ".", "id", ";", "}", "@", "computed", "public", "get", "isHovered", "(", ")", "{", "return", "store", ".", "tabs", ".", "hoveredTabId", "===", "this", ".", "id", ";", "}", "@", "computed", "public", "get", "borderVisible", "(", ")", "{", "const", "tabs", "=", "store", ".", "tabs", ".", "list", ";", "const", "i", "=", "tabs", ".", "indexOf", "(", "this", ")", ";", "if", "(", "i", "===", "tabs", ".", "length", "-", "1", ")", "{", "if", "(", "this", ".", "isSelected", "||", "this", ".", "isHovered", ")", "return", "false", ";", "return", "true", ";", "}", "const", "nextTab", "=", "tabs", "[", "i", "+", "1", "]", ";", "if", "(", "(", "nextTab", "&&", "(", "nextTab", ".", "isHovered", "||", "nextTab", ".", "isSelected", ")", ")", "||", "this", ".", "isSelected", "||", "this", ".", "isHovered", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}", "@", "computed", "public", "get", "isExpanded", "(", ")", "{", "return", "this", ".", "isHovered", "||", "this", ".", "isSelected", "||", "!", "store", ".", "tabs", ".", "scrollable", ";", "}", "public", "left", "=", "0", ";", "public", "lastUrl", "=", "''", ";", "public", "isClosing", "=", "false", ";", "public", "ref", "=", "React", ".", "createRef", "<", "HTMLDivElement", ">", "(", ")", ";", "public", "lastHistoryId", ":", "string", ";", "public", "hasThemeColor", "=", "false", ";", "public", "webContentsId", ":", "number", ";", "public", "findRequestId", ":", "number", ";", "public", "removeTimeout", ":", "any", ";", "public", "isWindow", "=", "false", ";", "constructor", "(", "{", "active", "}", "=", "defaultTabOptions", ")", "{", "if", "(", "active", ")", "{", "this", ".", "select", "(", ")", ";", "}", "}", "@", "action", "public", "select", "(", ")", "{", "store", ".", "tabs", ".", "selectedTabId", "=", "this", ".", "id", ";", "}", "public", "getWidth", "(", "containerWidth", "=", "null", ",", "tabs", "=", "null", ")", "{", "if", "(", "containerWidth", "===", "null", ")", "{", "containerWidth", "=", "store", ".", "tabs", ".", "containerWidth", ";", "}", "if", "(", "tabs", "===", "null", ")", "{", "tabs", "=", "store", ".", "tabs", ".", "list", ".", "filter", "(", "x", "=>", "!", "x", ".", "isClosing", ")", ";", "}", "const", "width", "=", "(", "containerWidth", "-", "ADD_TAB_MARGIN_LEFT", ")", "/", "(", "tabs", ".", "length", "+", "store", ".", "tabs", ".", "removedTabs", ")", "-", "TABS_PADDING", ";", "if", "(", "width", ">", "200", ")", "{", "return", "200", ";", "}", "if", "(", "width", "<", "72", ")", "{", "return", "72", ";", "}", "return", "width", ";", "}", "public", "getLeft", "(", "calcNewLeft", "=", "false", ")", "{", "const", "tabs", "=", "store", ".", "tabs", ".", "list", ".", "slice", "(", ")", ";", "const", "index", "=", "tabs", ".", "indexOf", "(", "this", ")", ";", "let", "left", "=", "0", ";", "for", "(", "let", "i", "=", "0", ";", "i", "<", "index", ";", "i", "++", ")", "{", "left", "+=", "(", "calcNewLeft", "?", "this", ".", "getWidth", "(", ")", ":", "tabs", "[", "i", "]", ".", "width", ")", "+", "TABS_PADDING", ";", "}", "return", "left", ";", "}", "@", "action", "public", "setLeft", "(", "left", ",", "animation", ")", "{", "store", ".", "tabs", ".", "animateProperty", "(", "'x'", ",", "this", ".", "ref", ".", "current", ",", "left", ",", "animation", ")", ";", "this", ".", "left", "=", "left", ";", "}", "@", "action", "public", "setWidth", "(", "width", ",", "animation", ")", "{", "store", ".", "tabs", ".", "animateProperty", "(", "'width'", ",", "this", ".", "ref", ".", "current", ",", "width", ",", "animation", ")", ";", "this", ".", "width", "=", "width", ";", "}", "@", "action", "public", "close", "(", ")", "{", "const", "tabs", "=", "store", ".", "tabs", ".", "list", ";", "const", "selected", "=", "store", ".", "tabs", ".", "selectedTabId", "===", "this", ".", "id", ";", "if", "(", "this", ".", "isWindow", ")", "{", "ipcRenderer", ".", "send", "(", "'detach-window'", ",", "this", ".", "id", ")", ";", "}", "else", "{", "ipcRenderer", ".", "send", "(", "'browserview-destroy'", ",", "this", ".", "id", ")", ";", "}", "const", "notClosingTabs", "=", "tabs", ".", "filter", "(", "x", "=>", "!", "x", ".", "isClosing", ")", ";", "let", "index", "=", "notClosingTabs", ".", "indexOf", "(", "this", ")", ";", "store", ".", "tabs", ".", "resetRearrangeTabsTimer", "(", ")", ";", "this", ".", "isClosing", "=", "true", ";", "if", "(", "notClosingTabs", ".", "length", "-", "1", "===", "index", ")", "{", "const", "previousTab", "=", "tabs", "[", "index", "-", "1", "]", ";", "if", "(", "previousTab", ")", "{", "this", ".", "setLeft", "(", "previousTab", ".", "getLeft", "(", "true", ")", "+", "this", ".", "getWidth", "(", ")", ",", "true", ")", ";", "}", "store", ".", "tabs", ".", "updateTabsBounds", "(", "true", ")", ";", "}", "else", "{", "store", ".", "tabs", ".", "removedTabs", "++", ";", "}", "this", ".", "setWidth", "(", "0", ",", "true", ")", ";", "store", ".", "tabs", ".", "setTabsLefts", "(", "true", ")", ";", "if", "(", "selected", ")", "{", "index", "=", "tabs", ".", "indexOf", "(", "this", ")", ";", "if", "(", "index", "+", "1", "<", "tabs", ".", "length", "&&", "!", "tabs", "[", "index", "+", "1", "]", ".", "isClosing", "&&", "!", "store", ".", "tabs", ".", "scrollable", ")", "{", "const", "nextTab", "=", "tabs", "[", "index", "+", "1", "]", ";", "nextTab", ".", "select", "(", ")", ";", "}", "else", "if", "(", "index", "-", "1", ">=", "0", "&&", "!", "tabs", "[", "index", "-", "1", "]", ".", "isClosing", ")", "{", "const", "prevTab", "=", "tabs", "[", "index", "-", "1", "]", ";", "prevTab", ".", "select", "(", ")", ";", "}", "}", "const", "page", "=", "store", ".", "pages", ".", "list", ".", "find", "(", "r", "=>", "r", ".", "id", "===", "this", ".", "pageId", ")", ";", "page", ".", "close", "(", ")", ";", "this", ".", "removeTimeout", "=", "setTimeout", "(", "(", ")", "=>", "{", "store", ".", "tabs", ".", "removeTab", "(", "this", ".", "id", ")", ";", "}", ",", "TAB_ANIMATION_DURATION", "*", "1000", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 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, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 3, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, 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, null, null, null, null, null, null, null, 3, null, 8, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, 3, 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, null, null, null, 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, 3, 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, 4, null, 3, 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, 4, null, null, null, null, 5, 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, 5, null, null, null, null, null, 388, 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, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
276
[ "import", "{", "Power2", "}", "from", "'gsap'", ";", "import", "{", "TabOptions", "}", "from", "'../models/tab'", ";", "export", "const", "defaultTabOptions", "=", "{", "active", ":", "true", ",", "}", ";", "export", "const", "TAB_MAX_WIDTH", "=", "200", ";", "export", "const", "TAB_MIN_WIDTH", "=", "72", ";", "export", "const", "TAB_PINNED_WIDTH", "=", "32", ";", "export", "const", "TAB_ANIMATION_DURATION", "=", "0.3", ";", "export", "const", "TAB_ANIMATION_EASING", "=", "Power2", ".", "easeOut", ";", "export", "const", "TABS_PADDING", "=", "0", ";", "export", "const", "ADD_TAB_MARGIN_LEFT", "=", "2", ";" ]
[ 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, 3, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null, null, null, 8170, null, null, null, null, null, null, null, 3, null, null, null, null, null, 3, null, null, null ]
277
[ "import", "styled", ",", "{", "css", "}", "from", "'styled-components'", ";", "import", "{", "StyledContextMenu", "}", "from", "'~/renderer/app/components/ContextMenu/style'", ";", "import", "{", "transparency", "}", "from", "'~/renderer/constants/transparency'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "EASING_FUNCTION", "}", "from", "'~/renderer/app/constants/design'", ";", "import", "{", "centerIcon", "}", "from", "'~/renderer/mixins/images'", ";", "import", "{", "shadows", "}", "from", "'~/renderer/mixins/shadows'", ";", "export", "const", "StyledDropdown", "=", "styled", ".", "div", "`\n width: 200px;\n height: 32px;\n position: relative;\n border-radius: 4px;\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.08);\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.1);\n }\n`", ";", "export", "const", "Label", "=", "styled", ".", "div", "`\n font-size: 13px;\n margin-left: 8px;\n pointer-events: none;\n color: #000;\n`", ";", "export", "const", "DropIcon", "=", "styled", ".", "div", "`\n width: 24px;\n height: 24px;\n margin-left: auto;\n margin-right: 2px;\n opacity: ${", "transparency", ".", "icons", ".", "inactive", "};\n background-image: url(${", "icons", ".", "expand", "});\n transition: 0.15s ${", "EASING_FUNCTION", "} transform;\n ${", "centerIcon", "(", "20", ")", "};\n\n ${", "(", "{", "expanded", "}", ")", "=>", "css", "`\n transform: ${", "expanded", "?", "'rotate(180deg)'", ":", "'rotate(0deg)'", "};\n `", "}\n`", ";", "export", "const", "Menu", "=", "styled", "(", "StyledContextMenu", ")", "`\n width: 100%;\n position: absolute;\n top: 100%;\n box-shadow: ${", "shadows", "(", "8", ")", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
278
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "StyledItem", ",", "Items", ",", "Text", ",", "}", "from", "'~/renderer/app/components/ContextMenu/style'", ";", "import", "{", "StyledDropdown", ",", "Menu", ",", "Label", ",", "DropIcon", "}", "from", "'./styles'", ";", "interface", "ItemProps", "extends", "React", ".", "HTMLAttributes", "<", "HTMLDivElement", ">", "{", "children", ":", "any", ";", "value", ":", "string", ";", "}", "export", "const", "DropdownItem", "=", "(", "{", "children", ",", "value", ",", "...", "props", "}", ")", "=>", "{", "return", "(", "<", "StyledItem", "value", "=", "{", "value", "}", "{", "...", "props", "}", ">", "<", "Text", ">", "{", "children", "}", "<", "/Text>", "<", "/StyledItem>);", "}", ";", "interface", "Props", "{", "children", "?", ":", "any", ";", "defaultValue", "?", ":", "any", ";", "onChange", "?", ":", "(", "newValue", "?", ":", "any", ",", "oldValue", "?", ":", "any", ")", "=>", "void", ";", "style", "?", ":", "React", ".", "CSSProperties", ";", "}", "interface", "State", "{", "expanded", ":", "boolean", ";", "value", ":", "any", ";", "label", ":", "any", ";", "}", "export", "class", "Dropdown", "extends", "React", ".", "PureComponent", "<", "Props", ",", "State", ">", "{", "public", "state", ":", "State", "=", "{", "expanded", ":", "false", ",", "value", ":", "null", ",", "label", ":", "''", ",", "}", ";", "public", "componentDidMount", "(", ")", "{", "const", "{", "defaultValue", "}", "=", "this", ".", "props", ";", "if", "(", "defaultValue", ")", "{", "this", ".", "setValue", "(", "defaultValue", ",", "false", ")", ";", "}", "}", "public", "componentDidUpdate", "(", "prevProps", ")", "{", "const", "{", "defaultValue", "}", "=", "this", ".", "props", ";", "if", "(", "defaultValue", "!==", "prevProps", ".", "defaultValue", ")", "{", "this", ".", "setValue", "(", "defaultValue", ",", "false", ")", ";", "}", "}", "public", "componentWillUnmount", "(", ")", "{", "window", ".", "removeEventListener", "(", "'mousedown'", ",", "this", ".", "onWindowMouseDown", ")", ";", "}", "private", "onMouseDown", "=", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "const", "{", "expanded", "}", "=", "this", ".", "state", ";", "this", ".", "toggle", "(", "!", "expanded", ")", ";", "}", ";", "private", "onItemMouseClick", "=", "(", "newValue", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "const", "{", "onChange", "}", "=", "this", ".", "props", ";", "const", "{", "value", "}", "=", "this", ".", "state", ";", "if", "(", "onChange", ")", "onChange", "(", "value", ",", "newValue", ")", ";", "this", ".", "setValue", "(", "newValue", ")", ";", "this", ".", "toggle", "(", "false", ")", ";", "}", ";", "public", "get", "value", "(", ")", "{", "const", "{", "defaultValue", "}", "=", "this", ".", "props", ";", "const", "{", "value", "}", "=", "this", ".", "state", ";", "return", "value", "||", "defaultValue", ";", "}", "public", "set", "value", "(", "value", ")", "{", "this", ".", "setValue", "(", "value", ")", ";", "}", "private", "setValue", "(", "value", ",", "emitEvent", "=", "true", ")", "{", "const", "{", "onChange", ",", "children", "}", "=", "this", ".", "props", ";", "const", "oldValue", "=", "this", ".", "state", ".", "value", ";", "const", "el", "=", "children", ".", "find", "(", "(", "r", ")", "=>", "r", ".", "props", ".", "value", "===", "value", ")", ";", "if", "(", "el", ")", "{", "this", ".", "setState", "(", "{", "value", ",", "label", ":", "el", ".", "props", ".", "children", ",", "}", ")", ";", "if", "(", "emitEvent", "&&", "onChange", ")", "{", "onChange", "(", "value", ",", "oldValue", ")", ";", "}", "}", "}", "private", "onWindowMouseDown", "=", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "e", ".", "preventDefault", "(", ")", ";", "this", ".", "toggle", "(", "false", ")", ";", "}", ";", "private", "toggle", "(", "value", ")", "{", "this", ".", "setState", "(", "{", "expanded", ":", "value", "}", ")", ";", "requestAnimationFrame", "(", "(", ")", "=>", "{", "if", "(", "value", ")", "{", "window", ".", "addEventListener", "(", "'mousedown'", ",", "this", ".", "onWindowMouseDown", ")", ";", "}", "else", "{", "window", ".", "removeEventListener", "(", "'mousedown'", ",", "this", ".", "onWindowMouseDown", ")", ";", "}", "}", ")", ";", "}", "render", "(", ")", "{", "const", "{", "style", ",", "children", "}", "=", "this", ".", "props", ";", "const", "{", "value", ",", "label", ",", "expanded", "}", "=", "this", ".", "state", ";", "return", "(", "<", "StyledDropdown", "className", "=", "\"dropdown\"", "onMouseDown", "=", "{", "this", ".", "onMouseDown", "}", "style", "=", "{", "style", "}", ">", "<", "Label", ">", "{", "label", "}", "<", "/Label>", "<", "DropIcon", "expanded", "=", "{", "expanded", "}", "/", ">", "<", "Menu", "visible", "=", "{", "expanded", "}", ">", "<", "Items", ">", "{", "React", ".", "Children", ".", "map", "(", "children", ",", "(", "child", ")", "=>", "{", "const", "{", "props", "}", "=", "child", ";", "return", "React", ".", "cloneElement", "(", "child", ",", "{", "selected", ":", "value", "===", "props", ".", "value", ",", "onMouseDown", ":", "(", "e", ")", "=>", "e", ".", "stopPropagation", "(", ")", ",", "onClick", ":", "this", ".", "onItemMouseClick", "(", "props", ".", "value", ")", ",", "}", ")", ";", "}", ")", "}", "<", "/Items>", "<", "/Menu>", "<", "/StyledDropdown>);", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
279
[ "import", "{", "MutableRefObject", "}", "from", "'react'", ";", "import", "{", "Dropdown", "}", "from", "'~/renderer/components/Dropdown'", ";", "export", "const", "resizeTextarea", "=", "(", "el", ")", "=>", "{", "el", ".", "style", ".", "padding", "=", "''", ";", "el", ".", "style", ".", "height", "=", "'0px'", ";", "requestAnimationFrame", "(", "(", ")", "=>", "{", "el", ".", "style", ".", "padding", "=", "'4px 8px'", ";", "el", ".", "style", ".", "height", "=", "`${", "el", ".", "scrollHeight", "}px`", ";", "}", ")", ";", "}", ";", "export", "const", "selectFileName", "=", "(", "el", ")", "=>", "{", "const", "value", "=", "el", ".", "value", ";", "const", "dotIndex", "=", "value", ".", "lastIndexOf", "(", "'.'", ")", ";", "const", "endIndex", "=", "dotIndex", "<=", "0", "?", "value", ".", "length", ":", "dotIndex", ";", "el", ".", "setSelectionRange", "(", "0", ",", "endIndex", ")", ";", "}", ";", "export", "const", "getValues", "=", "(", "...", "inputs", ")", "=>", "{", "const", "values", "=", "[", "]", ";", "for", "(", "const", "input", "of", "inputs", ")", "{", "const", "value", "=", "input", "instanceof", "HTMLInputElement", "?", "input", ".", "value", ":", "input", ".", "current", ".", "value", ";", "values", ".", "push", "(", "value", ".", "trim", "(", ")", ")", ";", "}", "return", "values", ";", "}", ";", "type", "IFormControl", "=", "HTMLInputElement", "|", "MutableRefObject", "<", "HTMLInputElement", "|", "Dropdown", ">", ";", "export", "const", "ensureValue", "=", "(", "...", "inputs", ")", "=>", "{", "const", "values", "=", "getValues", "(", "...", "inputs", ")", ";", "return", "values", ".", "findIndex", "(", "r", "=>", "!", "r", ".", "length", ")", "===", "-", "1", ";", "}", ";", "export", "const", "setValues", "=", "(", "...", "list", ")", "=>", "{", "list", ".", "forEach", "(", "item", "=>", "{", "const", "[", "input", ",", "value", "]", "=", "item", ";", "if", "(", "input", "instanceof", "HTMLInputElement", ")", "{", "input", ".", "value", "=", "value", ";", "}", "else", "{", "input", ".", "current", ".", "value", "=", "value", ";", "}", "}", ")", ";", "}", ";", "export", "const", "clearValues", "=", "(", "...", "inputs", ")", "=>", "{", "for", "(", "const", "input", "of", "inputs", ")", "{", "if", "(", "input", "instanceof", "HTMLInputElement", ")", "{", "input", ".", "value", "=", "''", ";", "}", "else", "{", "input", ".", "current", ".", "value", "=", "''", ";", "}", "}", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 730, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 2, null, null, null, null, null, null, 3, 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, 5, null, null, null, 5, null, null, null, null, 5, 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, 8, null, null, null, 5, null, null, null, null, 5, 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, 4, null, null, null, 5, 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, 4, null, null, null, 5, 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 ]
280
[ "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "export", "const", "formatSiteDescription", "=", "(", "{", "protocol", ",", "user", ",", "host", ",", "port", ",", "}", ")", "=>", "{", "const", "defaultPort", "=", "protocol", "===", "'sftp'", "?", "22", ":", "21", ";", "const", "portStr", "=", "defaultPort", "!==", "port", "?", "`:${", "port", "}`", ":", "''", ";", "return", "`${", "user", "}@${", "host", "}${", "portStr", "}`", ";", "}", ";" ]
[ 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 ]
281
[ "import", "{", "remote", "}", "from", "'electron'", ";", "export", "const", "getCurrentWindow", "=", "(", ")", "=>", "remote", ".", "getCurrentWindow", "(", ")", ";", "export", "const", "closeWindow", "=", "(", ")", "=>", "{", "getCurrentWindow", "(", ")", ".", "close", "(", ")", ";", "}", ";", "export", "const", "minimizeWindow", "=", "(", "e", ")", "=>", "{", "getCurrentWindow", "(", ")", ".", "minimize", "(", ")", ";", "}", ";", "export", "const", "maximizeWindow", "=", "(", ")", "=>", "{", "const", "currentWindow", "=", "getCurrentWindow", "(", ")", ";", "if", "(", "currentWindow", ".", "isMaximized", "(", ")", ")", "{", "currentWindow", ".", "unmaximize", "(", ")", ";", "}", "else", "{", "currentWindow", ".", "maximize", "(", ")", ";", "}", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, 348, 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, 4, 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, 348, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
282
[ "import", "styled", "from", "'styled-components'", ";", "import", "{", "EASING_FUNCTION", "}", "from", "'~/renderer/app/constants/design'", ";", "export", "const", "StyledProgressbar", "=", "styled", ".", "div", "`\n width: 240px;\n height: 4px;\n position: relative;\n`", ";", "export", "const", "Line", "=", "styled", ".", "div", "`\n width: 100%;\n height: 100%;\n background-color: #2196f3;\n opacity: 0.38;\n position: absolute;\n`", ";", "export", "const", "Track", "=", "styled", "(", "Line", ")", "`\n opacity: 1;\n will-change: width;\n transition: 0.1s width ${", "EASING_FUNCTION", "};\n`", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, null ]
283
[ "import", "styled", "from", "'styled-components'", ";", "export", "const", "Root", "=", "styled", ".", "div", "`\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n top: 0;\n overflow: hidden;\n`", ";", "export", "const", "StyledRipple", "=", "styled", ".", "div", "`\n position: absolute;\n border-radius: 50%;\n overflow: hidden;\n pointer-events: none;\n will-change: transform;\n`", ";" ]
[ null, null, null, null, null, null, null, 14, null, null, null, null, null, null, null, null, 14, null, null, null, null, null, null ]
284
[ "export", "const", "fonts", "=", "{", "robotoRegular", ":", "require", "(", "'~/renderer/resources/fonts/roboto-regular.woff2'", ")", ",", "robotoMedium", ":", "require", "(", "'~/renderer/resources/fonts/roboto-medium.woff2'", ")", ",", "robotoLight", ":", "require", "(", "'~/renderer/resources/fonts/roboto-light.woff2'", ")", ",", "}", ";" ]
[ 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 ]
285
[ "import", "{", "transparency", "}", "from", "'../constants/transparency'", ";", "export", "const", "pointer", "=", "(", ")", "=>", "`\n user-select: none;\n cursor: pointer;\n `", ";", "export", "const", "defaultCursor", "=", "(", ")", "=>", "`\n user-select: none;\n cursor: default;\n `", ";", "export", "const", "coloredCursor", "=", "(", "cursorColor", ",", "color", "=", "0", ")", "=>", "`\n -webkit-text-fill-color: transparent;\n text-shadow: 0px 0px 0px rgba(${", "color", "}, ${", "color", "}, ${", "color", "}, ${", "transparency", ".", "text", ".", "high", "});\n color: ${", "cursorColor", "};\n`", ";" ]
[ 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, 2, null, null, 2, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
286
[ "export", "const", "noUserSelect", "=", "(", ")", "=>", "`\n user-select: none;\n`", ";", "export", "const", "noTapHighlight", "=", "(", ")", "=>", "`\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;\n`", ";" ]
[ null, null, 2, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null ]
287
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "platform", "}", "from", "'os'", ";", "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "{", "WindowsControls", "}", "from", "'react-windows-controls'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ToolbarButton", "}", "from", "'~/renderer/components/ToolbarButton'", ";", "import", "{", "StyledTitlebar", ",", "TrafficButtons", ",", "Handle", ",", "Icon", ",", "Title", "}", "from", "'./style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "closeWindow", ",", "maximizeWindow", ",", "minimizeWindow", ",", "}", "from", "'../../utils/window'", ";", "const", "onUpdateClick", "=", "(", ")", "=>", "{", "ipcRenderer", ".", "send", "(", "'update-install'", ")", ";", "}", ";", "export", "const", "Titlebar", "=", "observer", "(", "(", ")", "=>", "{", "const", "isDarwin", "=", "platform", "(", ")", "===", "'darwin'", ";", "const", "tab", "=", "store", ".", "tabs", ".", "selectedTab", ";", "return", "(", "<", "StyledTitlebar", ">", "<", "Handle", "/>", "{", "isDarwin", "?", "<", "TrafficButtons", "/> : <Icon /", ">", "}", "<", "Title", ">", "{", "!", "tab", "?", "'Qusly'", ":", "`${", "tab", ".", "title", "} - Qusly`", "}", "<", "/Title>", "{", "store", ".", "updateInfo", ".", "available", "&&", "(", "<", "ToolbarButton", "icon", "=", "{", "icons", ".", "downloadOutline", "}", "onClick", "=", "{", "onUpdateClick", "}", "/", ">", ")", "}", "{", "!", "isDarwin", "&&", "(", "<", "WindowsControls", "onClose", "=", "{", "closeWindow", "}", "onMaximize", "=", "{", "maximizeWindow", "}", "onMinimize", "=", "{", "minimizeWindow", "}", "style", "=", "{", "{", "WebkitAppRegion", ":", "'no-drag'", ",", "height", ":", "'100%'", "}", "}", "/>)}", "<", "/StyledTitlebar>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 85, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
288
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "SidebarContent", "}", "from", "'~/renderer/app/store/activitybar'", ";", "import", "{", "StyledActivitybar", ",", "StyledItem", "}", "from", "'./style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "interface", "ItemProps", "{", "content", ":", "SidebarContent", ";", "icon", ":", "string", ";", "disabled", "?", ":", "boolean", ";", "}", "const", "onItemClick", "=", "(", "content", ")", "=>", "(", ")", "=>", "{", "store", ".", "activitybar", ".", "content", "=", "content", ";", "}", ";", "const", "Item", "=", "observer", "(", "(", "{", "content", ",", "icon", ",", "disabled", "}", ")", "=>", "{", "const", "selected", "=", "store", ".", "activitybar", ".", "content", "===", "content", ";", "return", "(", "<", "StyledItem", "onClick", "=", "{", "onItemClick", "(", "content", ")", "}", "selected", "=", "{", "selected", "}", "disabled", "=", "{", "disabled", "}", "icon", "=", "{", "icon", "}", "/", ">", ")", ";", "}", ")", ";", "export", "const", "Activitybar", "=", "observer", "(", "(", ")", "=>", "{", "const", "session", "=", "store", ".", "sessions", ".", "current", ";", "return", "(", "<", "StyledActivitybar", ">", "<", "Item", "content", "=", "\"explorer\"", "icon", "=", "{", "icons", ".", "fileTree", "}", "disabled", "=", "{", "!", "session", "}", "/>", "<", "Item", "content", "=", "\"sites\"", "icon", "=", "{", "icons", ".", "sitesManager", "}", "/", ">", "<", "Item", "content", "=", "\"search\"", "icon", "=", "{", "icons", ".", "search", "}", "disabled", "/", ">", "<", "Item", "content", "=", "\"transfer\"", "icon", "=", "{", "icons", ".", "transfer", "}", "disabled", "/", ">", "<", "/StyledActivitybar>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
289
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "ITreeItem", "}", "from", "'~/interfaces'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "StyledPage", ",", "Header", ",", "Content", "}", "from", "'../style'", ";", "import", "{", "StyledItem", ",", "Label", ",", "ExpandIcon", ",", "Icon", "}", "from", "'./style'", ";", "const", "onItemClick", "=", "(", "data", ")", "=>", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "path", ".", "push", "(", "data", ".", "path", ")", ";", "}", ";", "const", "onExpandClick", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "const", "session", "=", "store", ".", "sessions", ".", "current", ";", "session", ".", "tree", ".", "fetch", "(", "data", ")", ";", "data", ".", "expanded", "=", "!", "data", ".", "expanded", ";", "}", ";", "const", "onContextMenu", "=", "(", "data", ")", "=>", "(", ")", "=>", "{", "store", ".", "contextMenu", ".", "focusedExplorerItem", "=", "data", ";", "store", ".", "contextMenu", ".", "show", "(", "'explorer'", ")", ";", "}", ";", "const", "Item", "=", "observer", "(", "(", "{", "data", ",", "depth", "}", ")", "=>", "{", "const", "{", "file", ",", "expanded", "}", "=", "data", ";", "return", "(", "<", ">", "<", "StyledItem", "onClick", "=", "{", "onItemClick", "(", "data", ")", "}", "onContextMenu", "=", "{", "onContextMenu", "(", "data", ")", "}", "style", "=", "{", "{", "paddingLeft", ":", "depth", "*", "16", "}", "}", ">", "<", "ExpandIcon", "onClick", "=", "{", "onExpandClick", "(", "data", ")", "}", "expanded", "=", "{", "expanded", "}", "/", ">", "<", "Icon", "expanded", "=", "{", "expanded", "}", "/", ">", "<", "Label", ">", "{", "file", ".", "name", "}", "<", "/Label>", "<", "/StyledItem>", "{", "expanded", "&&", "data", ".", "children", ".", "map", "(", "item", "=>", "(", "<", "Item", "key", "=", "{", "item", ".", "path", "}", "data", "=", "{", "item", "}", "depth", "=", "{", "depth", "+", "1", "}", "/>))}", "<", "/>);", "}", ")", ";", "export", "const", "Explorer", "=", "observer", "(", "(", ")", "=>", "{", "const", "session", "=", "store", ".", "sessions", ".", "current", ";", "if", "(", "!", "session", ")", "return", "null", ";", "return", "(", "<", "StyledPage", "tabIndex", "=", "{", "0", "}", "visible", "=", "{", "store", ".", "activitybar", ".", "content", "===", "'explorer'", "}", ">", "<", "Header", ">", "Explorer", "<", "/Header>", "<", "Content", ">", "{", "session", ".", "tree", ".", "items", ".", "map", "(", "item", "=>", "(", "<", "Item", "key", "=", "{", "item", ".", "path", "}", "data", "=", "{", "item", "}", "depth", "=", "{", "0", "}", "/", ">", ")", ")", "}", "<", "/Content>", "<", "/StyledPage>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 3841, 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, 3841, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, 405, null, null, null, null, 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, 3841, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
290
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "ToolbarButton", "}", "from", "'~/renderer/components/ToolbarButton'", ";", "import", "{", "StyledPage", ",", "Header", "}", "from", "'../style'", ";", "import", "{", "StyledSite", ",", "Label", ",", "Description", "}", "from", "'./style'", ";", "import", "{", "formatSiteDescription", "}", "from", "'~/renderer/app/utils/site'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onAdd", "=", "(", ")", "=>", "{", "store", ".", "dialog", ".", "show", "(", "'add-site'", ")", ";", "}", ";", "const", "onClick", "=", "(", "site", ")", "=>", "(", ")", "=>", "{", "store", ".", "sites", ".", "openInTab", "(", "site", ")", ";", "}", ";", "const", "onContextMenu", "=", "(", "site", ")", "=>", "(", ")", "=>", "{", "store", ".", "contextMenu", ".", "focusedSite", "=", "site", ";", "store", ".", "contextMenu", ".", "show", "(", "'site'", ")", ";", "}", ";", "const", "Site", "=", "(", "{", "data", "}", ")", "=>", "{", "return", "(", "<", "StyledSite", "onClick", "=", "{", "onClick", "(", "data", ")", "}", "onContextMenu", "=", "{", "onContextMenu", "(", "data", ")", "}", ">", "<", "Label", ">", "{", "data", ".", "title", "}", "<", "/Label>", "<", "Description", ">", "{", "formatSiteDescription", "(", "data", ")", "}", "<", "/Description>", "<", "/StyledSite>);", "}", ";", "export", "const", "Sites", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "StyledPage", "tabIndex", "=", "{", "0", "}", "visible", "=", "{", "store", ".", "activitybar", ".", "content", "===", "'sites'", "}", ">", "<", "Header", ">", "Sites", "<", "ToolbarButton", "icon", "=", "{", "icons", ".", "add", "}", "onClick", "=", "{", "onAdd", "}", "/", ">", "<", "/Header>", "{", "store", ".", "sites", ".", "list", ".", "map", "(", "item", "=>", "(", "<", "Site", "key", "=", "{", "item", ".", "_id", "}", "data", "=", "{", "item", "}", "/", ">", ")", ")", "}", "<", "/StyledPage>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 4, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
291
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "ITransferType", "}", "from", "'qusly-core'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "StyledPage", ",", "Header", "}", "from", "'../style'", ";", "import", "{", "StyledButton", ",", "Icon", ",", "Label", "}", "from", "'./style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "Button", "=", "observer", "(", "(", "{", "icon", ",", "content", ",", "children", ",", "}", ")", "=>", "{", "const", "selected", "=", "store", ".", "transfer", ".", "content", "===", "content", ";", "const", "onClick", "=", "React", ".", "useCallback", "(", "(", ")", "=>", "{", "store", ".", "transfer", ".", "content", "=", "content", ";", "}", ",", "[", "content", "]", ")", ";", "return", "(", "<", "StyledButton", "selected", "=", "{", "selected", "}", "onClick", "=", "{", "onClick", "}", ">", "<", "Icon", "icon", "=", "{", "icon", "}", "selected", "=", "{", "selected", "}", "/", ">", "<", "Label", ">", "{", "children", "}", "<", "/Label>", "<", "/StyledButton>);", "}", ")", ";", "export", "const", "Transfer", "=", "observer", "(", "(", ")", "=>", "{", "const", "session", "=", "store", ".", "sessions", ".", "current", ";", "if", "(", "!", "session", ")", "return", "null", ";", "return", "(", "<", "StyledPage", "tabIndex", "=", "{", "0", "}", "visible", "=", "{", "store", ".", "activitybar", ".", "content", "===", "'transfer'", "}", ">", "<", "Header", ">", "Transfer", "<", "/Header>", "<", "div", ">", "<", "Button", "icon", "=", "{", "icons", ".", "download", "}", "content", "=", "\"download\"", ">", "Downloads", "<", "/Button>", "<", "Button", "icon", "=", "{", "icons", ".", "upload", "}", "content", "=", "\"upload\"", ">", "Uploads", "<", "/Button>", "<", "/div>", "<", "/StyledPage>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
292
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "Resizable", "}", "from", "'resizable-box'", ";", "import", "{", "Explorer", "}", "from", "'./Explorer'", ";", "import", "{", "Sites", "}", "from", "'./Sites'", ";", "import", "{", "Transfer", "}", "from", "'./Transfer'", ";", "import", "{", "StyledSidebar", "}", "from", "'./style'", ";", "export", "const", "Sidebar", "=", "(", ")", "=>", "{", "return", "(", "<", "Resizable", "direction", "=", "\"right\"", "defaultSize", "=", "{", "256", "}", "minSize", "=", "{", "128", "}", "maxSize", "=", "{", "512", "}", "style", "=", "{", "{", "height", ":", "'100%'", "}", "}", ">", "<", "StyledSidebar", ">", "<", "Explorer", "/>", "<", "Sites", "/", ">", "<", "Transfer", "/>", "<", "/StyledSidebar>", "<", "/Resizable>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null ]
293
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "StyledTab", ",", "StyledContent", ",", "StyledTitle", ",", "StyledClose", ",", "StyledBorder", ",", "StyledOverlay", ",", "TabContainer", ",", "Subtitle", ",", "}", "from", "'./style'", ";", "import", "{", "Tab", "}", "from", "'../../models/tab'", ";", "import", "{", "TOOLBAR_COLOR", "}", "from", "'../../constants/design'", ";", "const", "removeTab", "=", "(", "tab", ")", "=>", "(", ")", "=>", "{", "tab", ".", "close", "(", ")", ";", "}", ";", "const", "onCloseMouseDown", "=", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "}", ";", "const", "onMouseDown", "=", "(", "tab", ")", "=>", "(", "e", ")", "=>", "{", "if", "(", "e", ".", "button", "===", "0", ")", "{", "tab", ".", "select", "(", ")", ";", "store", ".", "tabs", ".", "lastMouseX", "=", "0", ";", "store", ".", "tabs", ".", "isDragging", "=", "true", ";", "store", ".", "tabs", ".", "mouseStartX", "=", "e", ".", "pageX", ";", "store", ".", "tabs", ".", "tabStartX", "=", "tab", ".", "left", ";", "store", ".", "tabs", ".", "lastScrollLeft", "=", "store", ".", "tabs", ".", "containerRef", ".", "current", ".", "scrollLeft", ";", "}", "else", "if", "(", "e", ".", "button", "===", "1", ")", "{", "tab", ".", "close", "(", ")", ";", "}", "}", ";", "const", "onMouseEnter", "=", "(", "tab", ")", "=>", "(", ")", "=>", "{", "if", "(", "!", "store", ".", "tabs", ".", "isDragging", ")", "{", "store", ".", "tabs", ".", "hoveredTabId", "=", "tab", ".", "id", ";", "}", "}", ";", "const", "onMouseLeave", "=", "(", ")", "=>", "{", "store", ".", "tabs", ".", "hoveredTabId", "=", "-", "1", ";", "}", ";", "const", "onContextMenu", "=", "(", "tab", ")", "=>", "(", ")", "=>", "{", "store", ".", "contextMenu", ".", "focusedTab", "=", "tab", ";", "store", ".", "contextMenu", ".", "show", "(", "'tab'", ")", ";", "}", ";", "const", "Content", "=", "observer", "(", "(", "{", "tab", "}", ")", "=>", "{", "return", "(", "<", "StyledContent", "collapsed", "=", "{", "tab", ".", "isExpanded", "}", ">", "<", "StyledTitle", "style", "=", "{", "{", "color", ":", "'black'", "}", "}", ">", "{", "tab", ".", "title", "}", "<", "/StyledTitle>", "<", "Subtitle", ">", "{", "tab", ".", "subtitle", "}", "<", "/Subtitle>", "<", "/StyledContent>);", "}", ")", ";", "const", "Close", "=", "observer", "(", "(", "{", "tab", "}", ")", "=>", "{", "return", "(", "<", "StyledClose", "onMouseDown", "=", "{", "onCloseMouseDown", "}", "onClick", "=", "{", "removeTab", "(", "tab", ")", "}", "visible", "=", "{", "tab", ".", "isExpanded", "}", "/", ">", ")", ";", "}", ")", ";", "const", "Border", "=", "observer", "(", "(", "{", "tab", "}", ")", "=>", "{", "return", "<", "StyledBorder", "visible", "=", "{", "tab", ".", "borderVisible", "}", "/>;", "}", ")", ";", "const", "Overlay", "=", "observer", "(", "(", "{", "tab", "}", ")", "=>", "{", "return", "(", "<", "StyledOverlay", "hovered", "=", "{", "tab", ".", "isHovered", "}", "style", "=", "{", "{", "backgroundColor", ":", "tab", ".", "isSelected", "?", "'transparent'", ":", "'#f5f5f5'", ",", "}", "}", "/>);", "}", ")", ";", "export", "default", "observer", "(", "(", "{", "tab", "}", ")", "=>", "{", "return", "(", "<", "StyledTab", "ref", "=", "{", "tab", ".", "ref", "}", "selected", "=", "{", "tab", ".", "isSelected", "}", "onMouseDown", "=", "{", "onMouseDown", "(", "tab", ")", "}", "onMouseEnter", "=", "{", "onMouseEnter", "(", "tab", ")", "}", "onMouseLeave", "=", "{", "onMouseLeave", "}", "onContextMenu", "=", "{", "onContextMenu", "(", "tab", ")", "}", ">", "<", "TabContainer", "style", "=", "{", "{", "backgroundColor", ":", "tab", ".", "isSelected", "?", "TOOLBAR_COLOR", ":", "'transparent'", ",", "}", "}", ">", "<", "Content", "tab", "=", "{", "tab", "}", "/>", "<", "Close", "tab", "=", "{", "tab", "}", "/", ">", "<", "Overlay", "tab", "=", "{", "tab", "}", "/>", "<", "/TabContainer>", "<", "Border", "tab", "=", "{", "tab", "}", "/", ">", "<", "/StyledTab>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 388, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 388, null, null, null, null, null, null, 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, 4, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
294
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "Tab", "from", "'../Tab'", ";", "export", "const", "Tabs", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", ">", "{", "store", ".", "tabs", ".", "list", ".", "map", "(", "item", "=>", "(", "<", "Tab", "key", "=", "{", "item", ".", "id", "}", "tab", "=", "{", "item", "}", "/", ">", ")", ")", "}", "<", "/>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
295
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "HorizontalScrollbar", "from", "'~/renderer/components/HorizontalScrollbar'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "import", "{", "Tabs", "}", "from", "'../Tabs'", ";", "import", "{", "AddTab", ",", "StyledTabbar", ",", "TabsContainer", "}", "from", "'./style'", ";", "const", "getContainer", "=", "(", ")", "=>", "store", ".", "tabs", ".", "containerRef", ".", "current", ";", "const", "onMouseEnter", "=", "(", ")", "=>", "(", "store", ".", "tabs", ".", "scrollbarVisible", "=", "true", ")", ";", "const", "onMouseLeave", "=", "(", ")", "=>", "(", "store", ".", "tabs", ".", "scrollbarVisible", "=", "false", ")", ";", "const", "onAddTabClick", "=", "(", ")", "=>", "{", "if", "(", "!", "store", ".", "sessions", ".", "current", ")", "return", ";", "const", "{", "site", "}", "=", "store", ".", "sessions", ".", "current", ";", "store", ".", "tabs", ".", "addTab", "(", "{", "active", ":", "true", ",", "site", ",", "}", ")", ";", "}", ";", "export", "const", "Tabbar", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "StyledTabbar", ">", "<", "TabsContainer", "onMouseEnter", "=", "{", "onMouseEnter", "}", "onMouseLeave", "=", "{", "onMouseLeave", "}", "ref", "=", "{", "store", ".", "tabs", ".", "containerRef", "}", ">", "<", "Tabs", "/>", "<", "/TabsContainer>", "<", "AddTab", "icon", "=", "{", "icons", ".", "add", "}", "onClick", "=", "{", "onAddTabClick", "}", "divRef", "=", "{", "(", "r", ")", "=>", "(", "store", ".", "addTab", ".", "ref", "=", "r", ")", "}", "disabled", "=", "{", "!", "store", ".", "sessions", ".", "current", "}", "/>", "<", "HorizontalScrollbar", "ref", "=", "{", "store", ".", "tabs", ".", "scrollbarRef", "}", "enabled", "=", "{", "store", ".", "tabs", ".", "scrollable", "}", "visible", "=", "{", "store", ".", "tabs", ".", "scrollbarVisible", "}", "getContainer", "=", "{", "getContainer", "}", "/", ">", "<", "/StyledTabbar>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 39, 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, 8, 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, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
296
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ToolbarButton", "}", "from", "'~/renderer/components/ToolbarButton'", ";", "import", "{", "StyledContainer", "}", "from", "'./style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "export", "const", "NavigationButtons", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "const", "marginLeft", "=", "4", ";", "return", "(", "<", "StyledContainer", ">", "<", "ToolbarButton", "size", "=", "{", "20", "}", "icon", "=", "{", "icons", ".", "back", "}", "disabled", "=", "{", "!", "page", ".", "path", ".", "canGoBack", "}", "onClick", "=", "{", "page", ".", "path", ".", "goBack", "}", "style", "=", "{", "{", "marginLeft", "}", "}", "/>", "<", "ToolbarButton", "size", "=", "{", "20", "}", "icon", "=", "{", "icons", ".", "forward", "}", "disabled", "=", "{", "!", "page", ".", "path", ".", "canGoForward", "}", "onClick", "=", "{", "page", ".", "path", ".", "goForward", "}", "style", "=", "{", "{", "marginLeft", "}", "}", "/>", "<", "ToolbarButton", "size", "=", "{", "20", "}", "icon", "=", "{", "icons", ".", "refresh", "}", "disabled", "=", "{", "page", ".", "loading", "}", "onClick", "=", "{", "page", ".", "fetchFiles", "}", "style", "=", "{", "{", "marginLeft", "}", "}", "/>", "<", "/StyledContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
297
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "StyledPathView", ",", "Container", ",", "Item", ",", "Input", "}", "from", "'./style'", ";", "const", "onItemClick", "=", "(", "index", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "store", ".", "pages", ".", "current", ".", "path", ".", "goto", "(", "index", ")", ";", "}", ";", "const", "onKeyDown", "=", "(", "e", ")", "=>", "{", "const", "input", "=", "store", ".", "pathView", ".", "inputRef", ".", "current", ";", "if", "(", "e", ".", "key", "===", "'Enter'", ")", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "path", ".", "push", "(", "input", ".", "value", ".", "trim", "(", ")", ")", ";", "store", ".", "pathView", ".", "inputVisible", "=", "false", ";", "}", "else", "if", "(", "e", ".", "key", "===", "'Escape'", ")", "{", "store", ".", "pathView", ".", "inputVisible", "=", "false", ";", "}", "}", ";", "const", "onBlur", "=", "(", ")", "=>", "{", "store", ".", "pathView", ".", "inputVisible", "=", "false", ";", "}", ";", "const", "onContextMenu", "=", "(", ")", "=>", "{", "store", ".", "contextMenu", ".", "show", "(", "'path'", ")", ";", "}", ";", "const", "onMouseDown", "=", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "store", ".", "pathView", ".", "show", "(", ")", ";", "}", ";", "const", "onItemMouseDown", "=", "(", "e", ")", "=>", "e", ".", "stopPropagation", "(", ")", ";", "export", "const", "PathView", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "return", "(", "<", "StyledPathView", "inputVisible", "=", "{", "store", ".", "pathView", ".", "inputVisible", "}", "onContextMenu", "=", "{", "onContextMenu", "}", ">", "<", "Container", "visible", "=", "{", "!", "store", ".", "pathView", ".", "inputVisible", "}", "onMouseDown", "=", "{", "onMouseDown", "}", ">", "{", "page", ".", "path", ".", "items", ".", "map", "(", "(", "label", ",", "index", ")", "=>", "(", "<", "Item", "key", "=", "{", "label", "}", "onMouseDown", "=", "{", "onItemMouseDown", "}", "onClick", "=", "{", "onItemClick", "(", "index", ")", "}", ">", "{", "label", "}", "<", "/Item>))}", "<", "/Container>", "<", "Input", "ref", "=", "{", "store", ".", "pathView", ".", "inputRef", "}", "type", "=", "\"text\"", "visible", "=", "{", "store", ".", "pathView", ".", "inputVisible", "}", "onKeyDown", "=", "{", "onKeyDown", "}", "onBlur", "=", "{", "onBlur", "}", "onMouseDown", "=", "{", "e", "=>", "e", ".", "stopPropagation", "(", ")", "}", "/>", "<", "/StyledPathView>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, 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, 3, null, null, null, 103, null, 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, 287, null, null, null, null, 83, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 4, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 103, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
298
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "NavigationButtons", "}", "from", "'../NavigationButtons'", ";", "import", "{", "PathView", "}", "from", "'../PathView'", ";", "import", "{", "StyledToolbar", "}", "from", "'./style'", ";", "export", "const", "Toolbar", "=", "(", ")", "=>", "{", "return", "(", "<", "StyledToolbar", ">", "<", "NavigationButtons", "/>", "<", "PathView", "/", ">", "<", "/StyledToolbar>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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 ]
299
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "Tabbar", "}", "from", "'../Tabbar'", ";", "import", "{", "Toolbar", "}", "from", "'../Toolbar'", ";", "import", "{", "StyledAppbar", "}", "from", "'./style'", ";", "export", "const", "Appbar", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "StyledAppbar", ">", "<", "Tabbar", "/>", "<", "Toolbar", "/", ">", "<", "/StyledAppbar>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]