/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "../src/mometa/runtime/empty-placeholder.tsx":
/*!***************************************************!*\
  !*** ../src/mometa/runtime/empty-placeholder.tsx ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require_mometa__) => {

__webpack_require_mometa__.r(__webpack_exports__);
/* harmony export */ __webpack_require_mometa__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ EmptyPlaceholder)
/* harmony export */ });
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require_mometa__(/*! ../../shared/utils */ "../src/shared/utils.ts");
/* harmony import */ var _utils_get_from_main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require_mometa__(/*! ../utils/get-from-main */ "../src/mometa/utils/get-from-main.ts");


function EmptyPlaceholder(_ref) {
  let {
    __mometa
  } = _ref;

  const React = __webpack_require_mometa__(/*! react */ "../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");

  if (!React || !(0,_shared_utils__WEBPACK_IMPORTED_MODULE_0__.isInIframe)()) {
    return null;
  }

  const [{
    canSelect
  }] = (0,_utils_get_from_main__WEBPACK_IMPORTED_MODULE_1__.useHeaderStatus)();
  return React.createElement('mometa-empty-placeholder', {
    style: {
      color: '#a1a0a0',
      fontStyle: 'italic',
      width: '100%',
      ...(canSelect ? {
        display: 'block'
      } : {
        display: 'none'
      })
    }
  }, '空视图元素');
}

/***/ }),

/***/ "../src/mometa/utils/get-from-main.ts":
/*!********************************************!*\
  !*** ../src/mometa/utils/get-from-main.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require_mometa__) => {

__webpack_require_mometa__.r(__webpack_exports__);
/* harmony export */ __webpack_require_mometa__.d(__webpack_exports__, {
/* harmony export */   "getSharedFromMain": () => (/* binding */ getSharedFromMain),
/* harmony export */   "useSelectedNode": () => (/* binding */ useSelectedNode),
/* harmony export */   "useOveringNode": () => (/* binding */ useOveringNode),
/* harmony export */   "useHeaderStatus": () => (/* binding */ useHeaderStatus),
/* harmony export */   "useLocationAction": () => (/* binding */ useLocationAction)
/* harmony export */ });
/* harmony import */ var _rcp_use_behaviorsubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require_mometa__(/*! @rcp/use.behaviorsubject */ "../../../node_modules/.pnpm/@rcp+use.behaviorsubject@1.2.2_rxjs@7.5.1/node_modules/@rcp/use.behaviorsubject/dist/es/index.js");
/* harmony import */ var _shared_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require_mometa__(/*! ../../shared/pipe */ "../src/shared/pipe.ts");


function getSharedFromMain() {
  var _getByRemoteById;

  const shared = (_getByRemoteById = (0,_shared_pipe__WEBPACK_IMPORTED_MODULE_1__.getByRemoteById)('shared', 'main')) !== null && _getByRemoteById !== void 0 ? _getByRemoteById : (0,_shared_pipe__WEBPACK_IMPORTED_MODULE_1__.getInLocal)('shared');

  if (!shared) {
    throw new Error(`未找到来自父窗口共享资源`);
  }

  return shared;
}
function useSelectedNode() {
  const {
    selectedNodeSubject
  } = getSharedFromMain();
  return (0,_rcp_use_behaviorsubject__WEBPACK_IMPORTED_MODULE_0__.useBehaviorSubject)(selectedNodeSubject);
}
function useOveringNode() {
  const {
    overingNodeSubject
  } = getSharedFromMain();
  return (0,_rcp_use_behaviorsubject__WEBPACK_IMPORTED_MODULE_0__.useBehaviorSubject)(overingNodeSubject);
}
function useHeaderStatus() {
  const {
    headerStatusSubject
  } = getSharedFromMain();
  return (0,_rcp_use_behaviorsubject__WEBPACK_IMPORTED_MODULE_0__.useBehaviorSubject)(headerStatusSubject);
}
function useLocationAction() {
  const {
    locationActionSubject
  } = getSharedFromMain();
  return (0,_rcp_use_behaviorsubject__WEBPACK_IMPORTED_MODULE_0__.useBehaviorSubject)(locationActionSubject);
}

/***/ }),

/***/ "../src/shared/pipe.ts":
/*!*****************************!*\
  !*** ../src/shared/pipe.ts ***!
  \*****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require_mometa__) => {

__webpack_require_mometa__.r(__webpack_exports__);
/* harmony export */ __webpack_require_mometa__.d(__webpack_exports__, {
/* harmony export */   "data": () => (/* binding */ data),
/* harmony export */   "remoteGlobalThisSet": () => (/* binding */ remoteGlobalThisSet),
/* harmony export */   "setId": () => (/* binding */ setId),
/* harmony export */   "getId": () => (/* binding */ getId),
/* harmony export */   "addRemoteGlobalThis": () => (/* binding */ addRemoteGlobalThis),
/* harmony export */   "removeRemoteGlobalThis": () => (/* binding */ removeRemoteGlobalThis),
/* harmony export */   "register": () => (/* binding */ register),
/* harmony export */   "getInLocal": () => (/* binding */ getInLocal),
/* harmony export */   "hasInLocal": () => (/* binding */ hasInLocal),
/* harmony export */   "getByRemoteOnce": () => (/* binding */ getByRemoteOnce),
/* harmony export */   "getByRemoteById": () => (/* binding */ getByRemoteById)
/* harmony export */ });
const data = new Map();
let pipeId;
let remoteGlobalThisSet = new Set();
const SYMBOL_NAME = `__MOMETA_PIPE__`;
function setId(id) {
  pipeId = id;
}
function getId() {
  return pipeId;
}
function addRemoteGlobalThis(g) {
  remoteGlobalThisSet.add(g);
}
function removeRemoteGlobalThis(g) {
  remoteGlobalThisSet.delete(g);
}
function register(name, value) {
  data.set(name, value);
  return () => {
    data.delete(name);
  };
}
function getInLocal(name) {
  return data.get(name);
}
function hasInLocal(name) {
  return data.has(name);
}
function getByRemoteOnce(name) {
  for (const g of remoteGlobalThisSet.values()) {
    if (g[SYMBOL_NAME] && g[SYMBOL_NAME].hasInLocal(name)) {
      return g[SYMBOL_NAME].getInLocal(name);
    }
  }
}
function getByRemoteById(name, id) {
  for (const g of remoteGlobalThisSet.values()) {
    if (g[SYMBOL_NAME] && g[SYMBOL_NAME].getId() === id) {
      return g[SYMBOL_NAME].getInLocal(name);
    }
  }
}
const exps = {
  getId,
  getByRemoteById,
  getInLocal,
  getByRemoteOnce,
  setId,
  addRemoteGlobalThis,
  register,
  hasInLocal,
  remoteGlobalThisSet,
  removeRemoteGlobalThis,
  data
}; // console.log('globalThis[SYMBOL_NAME]', document.currentScript)

globalThis[SYMBOL_NAME] = exps;

/***/ }),

/***/ "../src/shared/utils.ts":
/*!******************************!*\
  !*** ../src/shared/utils.ts ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require_mometa__) => {

__webpack_require_mometa__.r(__webpack_exports__);
/* harmony export */ __webpack_require_mometa__.d(__webpack_exports__, {
/* harmony export */   "isInIframe": () => (/* binding */ isInIframe),
/* harmony export */   "lazy": () => (/* binding */ lazy)
/* harmony export */ });
function isInIframe() {
  return window.parent && window.parent !== window;
}
function lazy(fn) {
  let isCalled = false;
  let v; // @ts-ignore

  return () => {
    if (!isCalled) {
      isCalled = true;
      v = fn();
    }

    return v;
  };
}

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require_mometa__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			loaded: false,
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require_mometa__);
/******/ 	
/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require_mometa__.m = __webpack_modules__;
/******/ 	
/******/ 	// the startup function
/******/ 	__webpack_require_mometa__.x = () => {
/******/ 		// Load entry module and return exports
/******/ 		// This entry module depends on other loaded chunks and execution need to be delayed
/******/ 		var __webpack_exports__ = __webpack_require_mometa__.O(undefined, ["vendors-node_modules_pnpm_rcp_use_behaviorsubject_1_2_2_rxjs_7_5_1_node_modules_rcp_use_behav-74afb9"], () => (__webpack_require_mometa__("../src/mometa/runtime/empty-placeholder.tsx")))
/******/ 		__webpack_exports__ = __webpack_require_mometa__.O(__webpack_exports__);
/******/ 		return __webpack_exports__;
/******/ 	};
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/chunk loaded */
/******/ 	(() => {
/******/ 		var deferred = [];
/******/ 		__webpack_require_mometa__.O = (result, chunkIds, fn, priority) => {
/******/ 			if(chunkIds) {
/******/ 				priority = priority || 0;
/******/ 				for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
/******/ 				deferred[i] = [chunkIds, fn, priority];
/******/ 				return;
/******/ 			}
/******/ 			var notFulfilled = Infinity;
/******/ 			for (var i = 0; i < deferred.length; i++) {
/******/ 				var [chunkIds, fn, priority] = deferred[i];
/******/ 				var fulfilled = true;
/******/ 				for (var j = 0; j < chunkIds.length; j++) {
/******/ 					if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require_mometa__.O).every((key) => (__webpack_require_mometa__.O[key](chunkIds[j])))) {
/******/ 						chunkIds.splice(j--, 1);
/******/ 					} else {
/******/ 						fulfilled = false;
/******/ 						if(priority < notFulfilled) notFulfilled = priority;
/******/ 					}
/******/ 				}
/******/ 				if(fulfilled) {
/******/ 					deferred.splice(i--, 1)
/******/ 					var r = fn();
/******/ 					if (r !== undefined) result = r;
/******/ 				}
/******/ 			}
/******/ 			return result;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require_mometa__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require_mometa__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require_mometa__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require_mometa__.o(definition, key) && !__webpack_require_mometa__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/ensure chunk */
/******/ 	(() => {
/******/ 		__webpack_require_mometa__.f = {};
/******/ 		// This file contains only the entry chunk.
/******/ 		// The chunk loading function for additional chunks
/******/ 		__webpack_require_mometa__.e = (chunkId) => {
/******/ 			return Promise.all(Object.keys(__webpack_require_mometa__.f).reduce((promises, key) => {
/******/ 				__webpack_require_mometa__.f[key](chunkId, promises);
/******/ 				return promises;
/******/ 			}, []));
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/get javascript chunk filename */
/******/ 	(() => {
/******/ 		// This function allow to reference async chunks and sibling chunks for the entrypoint
/******/ 		__webpack_require_mometa__.u = (chunkId) => {
/******/ 			// return url for filenames based on template
/******/ 			return "" + chunkId + ".js";
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require_mometa__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require_mometa__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/node module decorator */
/******/ 	(() => {
/******/ 		__webpack_require_mometa__.nmd = (module) => {
/******/ 			module.paths = [];
/******/ 			if (!module.children) module.children = [];
/******/ 			return module;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/require chunk loading */
/******/ 	(() => {
/******/ 		// no baseURI
/******/ 		
/******/ 		// object to store loaded chunks
/******/ 		// "1" means "loaded", otherwise not loaded yet
/******/ 		var installedChunks = {
/******/ 			"empty-placeholder": 1
/******/ 		};
/******/ 		
/******/ 		__webpack_require_mometa__.O.require = (chunkId) => (installedChunks[chunkId]);
/******/ 		
/******/ 		var installChunk = (chunk) => {
/******/ 			var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
/******/ 			for(var moduleId in moreModules) {
/******/ 				if(__webpack_require_mometa__.o(moreModules, moduleId)) {
/******/ 					__webpack_require_mometa__.m[moduleId] = moreModules[moduleId];
/******/ 				}
/******/ 			}
/******/ 			if(runtime) runtime(__webpack_require_mometa__);
/******/ 			for(var i = 0; i < chunkIds.length; i++)
/******/ 				installedChunks[chunkIds[i]] = 1;
/******/ 			__webpack_require_mometa__.O();
/******/ 		};
/******/ 		
/******/ 		// require() chunk loading for javascript
/******/ 		__webpack_require_mometa__.f.require = (chunkId, promises) => {
/******/ 			// "1" is the signal for "already loaded"
/******/ 			if(!installedChunks[chunkId]) {
/******/ 				if(true) { // all chunks have JS
/******/ 					installChunk(require("./" + __webpack_require_mometa__.u(chunkId)));
/******/ 				} else installedChunks[chunkId] = 1;
/******/ 			}
/******/ 		};
/******/ 		
/******/ 		// no external install chunk
/******/ 		
/******/ 		// no HMR
/******/ 		
/******/ 		// no HMR manifest
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/startup chunk dependencies */
/******/ 	(() => {
/******/ 		var next = __webpack_require_mometa__.x;
/******/ 		__webpack_require_mometa__.x = () => {
/******/ 			__webpack_require_mometa__.e("vendors-node_modules_pnpm_rcp_use_behaviorsubject_1_2_2_rxjs_7_5_1_node_modules_rcp_use_behav-74afb9");
/******/ 			return next();
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// run startup
/******/ 	var __webpack_exports__ = __webpack_require_mometa__.x();
/******/ 	module.exports = __webpack_exports__;
/******/ 	
/******/ })()
;
//# sourceMappingURL=empty-placeholder.js.map