(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory(require("@o/kit/export-app"));
	else if(typeof define === 'function' && define.amd)
		define(["@o/kit/export-app"], factory);
	else if(typeof exports === 'object')
		exports["main"] = factory(require("@o/kit/export-app"));
	else
		root["main"] = factory(root["@o/kit/export-app"]);
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__o_kit__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./GMailLoader.ts":
/*!************************!*\
  !*** ./GMailLoader.ts ***!
  \************************/
/*! no static exports found */
/*! exports used: GMailLoader */
/***/ (function(module, exports) {



/***/ }),

/***/ "./GmailSettings.tsx":
/*!***************************!*\
  !*** ./GmailSettings.tsx ***!
  \***************************/
/*! no static exports found */
/*! exports used: GmailSettings */
/***/ (function(module, exports) {



/***/ }),

/***/ "./GmailSyncerWorker.node.ts":
/*!***********************************!*\
  !*** ./GmailSyncerWorker.node.ts ***!
  \***********************************/
/*! no static exports found */
/*! exports used: GmailSyncerWorker */
/***/ (function(module, exports) {



/***/ }),

/***/ "./api.graph.node.ts":
/*!***************************!*\
  !*** ./api.graph.node.ts ***!
  \***************************/
/*! no static exports found */
/*! exports used: graph */
/***/ (function(module, exports) {



/***/ }),

/***/ "./api.node.ts":
/*!*********************!*\
  !*** ./api.node.ts ***!
  \*********************/
/*! no static exports found */
/*! exports used: default */
/***/ (function(module, exports) {



/***/ }),

/***/ "./index.tsx":
/*!*******************!*\
  !*** ./index.tsx ***!
  \*******************/
/*! exports provided: default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _o_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @o/kit */ "@o/kit");
/* harmony import */ var _o_kit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_o_kit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _api_graph_node__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api.graph.node */ "./api.graph.node.ts");
/* harmony import */ var _api_graph_node__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_api_graph_node__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _api_node__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./api.node */ "./api.node.ts");
/* harmony import */ var _api_node__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_api_node__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _GMailLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GMailLoader */ "./GMailLoader.ts");
/* harmony import */ var _GMailLoader__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_GMailLoader__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _GmailSettings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GmailSettings */ "./GmailSettings.tsx");
/* harmony import */ var _GmailSettings__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_GmailSettings__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _GmailSyncerWorker_node__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GmailSyncerWorker.node */ "./GmailSyncerWorker.node.ts");
/* harmony import */ var _GmailSyncerWorker_node__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_GmailSyncerWorker_node__WEBPACK_IMPORTED_MODULE_5__);






/* harmony default export */ __webpack_exports__["default"] = (Object(_o_kit__WEBPACK_IMPORTED_MODULE_0__["createApp"])({
  id: 'gmail',
  name: 'Gmail',
  itemType: 'thread',
  auth: 'gmail',
  finishAuth: async (app, _values, oauth) => {
    const loader = new _GMailLoader__WEBPACK_IMPORTED_MODULE_3__["GMailLoader"](app);
    const profile = await loader.loadProfile();
    app.name = profile.emailAddress;
    app.data.values.oauth.secret = oauth.credentials.clientSecret;
    app.data.values.oauth.clientId = oauth.credentials.clientID;
    return app;
  },
  settings: _GmailSettings__WEBPACK_IMPORTED_MODULE_4__["GmailSettings"],
  workers: [_GmailSyncerWorker_node__WEBPACK_IMPORTED_MODULE_5__["GmailSyncerWorker"]],
  api: _api_node__WEBPACK_IMPORTED_MODULE_2___default.a,
  graph: _api_graph_node__WEBPACK_IMPORTED_MODULE_1__["graph"],
  icon: "\n<svg version=\"1.1\" id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 512 512\" style=\"enable-background:new 0 0 512 512;\">\n  <g>\n    <polygon style=\"fill:#F2F2F2;\" points=\"484.973,122.808 452.288,451.017 59.712,451.017 33.379,129.16 256,253.802 \t\"/>\n    <polygon style=\"fill:#F2F2F2;\" points=\"473.886,60.983 256,265.659 38.114,60.983 256,60.983 \t\"/>\n  </g>\n  <path style=\"fill:#F14336;\" d=\"M59.712,155.493v295.524H24.139C10.812,451.017,0,440.206,0,426.878V111.967l39,1.063L59.712,155.493\n    z\"/>\n  <path style=\"fill:#D32E2A;\" d=\"M512,111.967v314.912c0,13.327-10.812,24.139-24.152,24.139h-35.56V155.493l19.692-46.525\n    L512,111.967z\"/>\n  <path style=\"fill:#F14336;\" d=\"M512,85.122v26.845l-59.712,43.526L256,298.561L59.712,155.493L0,111.967V85.122\n    c0-13.327,10.812-24.139,24.139-24.139h13.975L256,219.792L473.886,60.983h13.962C501.188,60.983,512,71.794,512,85.122z\"/>\n  <polygon style=\"fill:#D32E2A;\" points=\"59.712,155.493 0,146.235 0,111.967 \"/>\n</svg>\n  ".trim()
}));

/***/ }),

/***/ 0:
/*!*************************!*\
  !*** multi ./index.tsx ***!
  \*************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /Users/nw/projects/motion/orbit/apps/gmail-app/index.tsx */"./index.tsx");


/***/ }),

/***/ "@o/kit":
/*!************************************!*\
  !*** external "@o/kit/export-app" ***!
  \************************************/
/*! no static exports found */
/*! exports used: createApp */
/***/ (function(module, exports) {

module.exports = __WEBPACK_EXTERNAL_MODULE__o_kit__;

/***/ })

/******/ });
});
//# sourceMappingURL=appInfo.js.map