(function() {
var exports = {};
exports.id = 888;
exports.ids = [888];
exports.modules = {

/***/ 5445:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": function() { return /* binding */ _app; }
});

// EXTERNAL MODULE: external "react/jsx-runtime"
var jsx_runtime_ = __webpack_require__(5282);
// EXTERNAL MODULE: external "react"
var external_react_ = __webpack_require__(9297);
// EXTERNAL MODULE: ../../node_modules/next/app.js
var app = __webpack_require__(2041);
// EXTERNAL MODULE: ./lib/contexts.ts
var contexts = __webpack_require__(9696);
// EXTERNAL MODULE: ../../node_modules/@osui/config-provider/lib/index.js
var lib = __webpack_require__(4160);
// EXTERNAL MODULE: ./lib/parse.ts
var parse = __webpack_require__(3471);
// EXTERNAL MODULE: ../../node_modules/classnames/bind.js
var bind = __webpack_require__(2183);
var bind_default = /*#__PURE__*/__webpack_require__.n(bind);
;// CONCATENATED MODULE: ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!../../node_modules/style-resources-loader/lib/index.js??ruleSet[1].rules[2].use[3]!./pages/_app.global.less
// Exports
/* harmony default export */ var _app_global = ({
	"proxima-plugin-debug": "proxima-plugin-debug",
	"osui-modal": "osui-modal",
	"ant-modal-body": "ant-modal-body",
	"osui-select": "osui-select",
	"ant-select-arrow": "ant-select-arrow",
	"ant-layout-sider-children": "ant-layout-sider-children",
	"ant-menu-item": "ant-menu-item",
	"osui-menu": "osui-menu",
	"ant-dropdown-menu-item": "ant-dropdown-menu-item",
	"ant-dropdown-menu-title-content": "ant-dropdown-menu-title-content",
	"anticon": "anticon"
});

// EXTERNAL MODULE: ../../node_modules/@ecomfe/class-names-loader/dist/assign.js
var dist_assign = __webpack_require__(6979);
;// CONCATENATED MODULE: ./pages/_app.global.less

        // class-names-loader generated code for /Users/janlay/proxima-plugin-tools/packages/plugin-debug/pages/_app.global.less
        
        
        

        var css = bind_default().bind(_app_global);
        (0,dist_assign/* default */.Z)(_app_global, css);

        /* harmony default export */ var pages_app_global = ((/* unused pure expression or super */ null && (css)));
    
;// CONCATENATED MODULE: ./pages/_app.tsx


function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }






 // 初始化Parse，及其Provider

if (true) {
  // 服务端和浏览器端需要分开处理，否则环境变量在编译时就会确定
  parse.default.serverURL = `${process.env.gateway}/parse`;
  parse.default.initialize(process.env.appid);
}

const sdkServer = (() => {
  if (false) {}

  return null;
})();

let counter = 0;

const ProximaPluginDebug = ({
  Component,
  pageProps,
  gateway,
  appId,
  baseUrl
}) => {
  parse.default.serverURL = `${gateway}/parse`;
  parse.default.initialize(appId);

  if (false) {}

  (0,external_react_.useEffect)(() => {
    sdkServer.onAction = (message, callbacks) => {
      const {
        action,
        param
      } = message.payload;

      switch (action) {
        case 'openIssuePanel':
          // eslint-disable-next-line no-console
          console.log('打开啦！', param);
          setTimeout(() => {
            callbacks.resolve(counter++);
          }, 2000);
          break;
      }
    };
  }, []);
  return /*#__PURE__*/jsx_runtime_.jsx("div", {
    id: "proxima-plugin-debug",
    children: /*#__PURE__*/jsx_runtime_.jsx(contexts/* PluginSDKContext.Provider */.j.Provider, {
      value: {
        value: sdkServer
      },
      children: /*#__PURE__*/jsx_runtime_.jsx(lib/* default */.Z, {
        getPopupContainer: () => {
          return document.getElementById('proxima-plugin-debug');
        },
        children: /*#__PURE__*/jsx_runtime_.jsx(Component, _objectSpread({}, pageProps))
      })
    })
  });
};

const gateway = process.env.gateway;
const appId = process.env.appid;
const baseUrl = `${process.env.gateway}:3000`;

const getInitialProps = async appContext => {
  const appProps = await app.default.getInitialProps(appContext);
  return _objectSpread(_objectSpread({}, appProps), {}, {
    gateway,
    appId,
    baseUrl
  });
};

ProximaPluginDebug.getInitialProps = getInitialProps;
/* harmony default export */ var _app = (ProximaPluginDebug);

/***/ }),

/***/ 7666:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/CheckCircleFilled");;

/***/ }),

/***/ 4647:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/CheckCircleOutlined");;

/***/ }),

/***/ 3481:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/CloseCircleFilled");;

/***/ }),

/***/ 4662:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/CloseCircleOutlined");;

/***/ }),

/***/ 2635:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/CloseOutlined");;

/***/ }),

/***/ 4489:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/ExclamationCircleFilled");;

/***/ }),

/***/ 6306:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/ExclamationCircleOutlined");;

/***/ }),

/***/ 5239:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/InfoCircleFilled");;

/***/ }),

/***/ 785:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/InfoCircleOutlined");;

/***/ }),

/***/ 9076:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/LoadingOutlined");;

/***/ }),

/***/ 7367:
/***/ (function(module) {

"use strict";
module.exports = require("@ant-design/icons/lib/components/Context");;

/***/ }),

/***/ 4058:
/***/ (function(module) {

"use strict";
module.exports = require("classnames");;

/***/ }),

/***/ 7579:
/***/ (function(module) {

"use strict";
module.exports = require("next/dist/next-server/lib/utils.js");;

/***/ }),

/***/ 4396:
/***/ (function(module) {

"use strict";
module.exports = require("parse/node");;

/***/ }),

/***/ 3019:
/***/ (function(module) {

"use strict";
module.exports = require("rc-field-form");;

/***/ }),

/***/ 137:
/***/ (function(module) {

"use strict";
module.exports = require("rc-notification");;

/***/ }),

/***/ 1014:
/***/ (function(module) {

"use strict";
module.exports = require("rc-notification/lib/useNotification");;

/***/ }),

/***/ 9992:
/***/ (function(module) {

"use strict";
module.exports = require("rc-pagination/lib/locale/en_US");;

/***/ }),

/***/ 3197:
/***/ (function(module) {

"use strict";
module.exports = require("rc-picker/lib/locale/en_US");;

/***/ }),

/***/ 5267:
/***/ (function(module) {

"use strict";
module.exports = require("rc-util/lib/hooks/useMemo");;

/***/ }),

/***/ 6183:
/***/ (function(module) {

"use strict";
module.exports = require("rc-util/lib/warning");;

/***/ }),

/***/ 9297:
/***/ (function(module) {

"use strict";
module.exports = require("react");;

/***/ }),

/***/ 5282:
/***/ (function(module) {

"use strict";
module.exports = require("react/jsx-runtime");;

/***/ }),

/***/ 6512:
/***/ (function(module) {

"use strict";
module.exports = require("regenerator-runtime");;

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
var __webpack_exports__ = __webpack_require__.X(0, [802,827,82], function() { return __webpack_exec__(5445); });
module.exports = __webpack_exports__;

})();