personal-website/res/dev-fs/wde/dist/finder.js
2023-07-18 23:47:12 +03:00

106 lines
54 KiB
JavaScript

/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./src/apps/finder/finder-window.js":
/*!******************************************!*\
!*** ./src/apps/finder/finder-window.js ***!
\******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ FinderWindow)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, \"throw\" === context.method) { if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel; context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _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; }\nvar FinderWindow = /*#__PURE__*/function () {\n function FinderWindow() {\n _classCallCheck(this, FinderWindow);\n _defineProperty(this, \"curPath\", \"\");\n _defineProperty(this, \"fileView\", undefined);\n _defineProperty(this, \"windowElem\", undefined);\n }\n _createClass(FinderWindow, [{\n key: \"Init\",\n value: function () {\n var _Init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(args, appContext) {\n var _this = this;\n var desktopNode, _params, _response, _html, params, response, error, html, newWindow, scrollBar;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(args[1] == \"--desktop\")) {\n _context.next = 20;\n break;\n }\n desktopNode = document.body.querySelector(\"#\".concat(args[2]));\n if (!(desktopNode == null)) {\n _context.next = 5;\n break;\n }\n WebDesktopEnvironment.Alert(\"Desktop node not found\");\n return _context.abrupt(\"return\");\n case 5:\n _params = new URLSearchParams({\n path: args[0]\n });\n _context.next = 8;\n return fetch(\"/app/\".concat(Finder.AppId, \"/renderDesktop?\") + _params, {\n method: \"POST\",\n body: JSON.stringify(appContext)\n });\n case 8:\n _response = _context.sent;\n if (!(_response.status != 200)) {\n _context.next = 13;\n break;\n }\n console.log(_response.status);\n WebDesktopEnvironment.Alert(\"Error in render desktop\"); //TODO\n return _context.abrupt(\"return\");\n case 13:\n _context.next = 15;\n return _response.text();\n case 15:\n _html = _context.sent;\n desktopNode.innerHTML = _html;\n this.fileView = new FileView(desktopNode.querySelector(\".FileTileView\"), function (event) {\n _this.Click(event);\n }, function (event) {\n _this.RightClick(event);\n }, function (event, draggedElem) {\n _this.DropEvent(event, draggedElem);\n }, function () {\n _this.ReRenderDir();\n });\n this.RenderDir(args[0]);\n return _context.abrupt(\"return\");\n case 20:\n params = new URLSearchParams({\n isMobile: WebDesktopEnvironment.isMobile\n });\n _context.next = 23;\n return fetch(\"/app/\".concat(Finder.AppId, \"/render?\") + params, {\n method: \"POST\",\n body: JSON.stringify(appContext)\n });\n case 23:\n response = _context.sent;\n if (!(response.status != 200)) {\n _context.next = 30;\n break;\n }\n _context.next = 27;\n return response.json();\n case 27:\n error = _context.sent;\n WebDesktopEnvironment.Alert(error.message);\n return _context.abrupt(\"return\");\n case 30:\n _context.next = 32;\n return response.text();\n case 32:\n html = _context.sent;\n newWindow = WebDesktopEnvironment.CreateNewWindow(Finder.AppId, 500, 350);\n newWindow.innerHTML = html;\n this.fileView = new FileView(newWindow.querySelector(\".FileTileView\"), function (event) {\n _this.Click(event);\n }, function (event) {\n _this.RightClick(event);\n }, function (event, draggedElem) {\n _this.DropEvent(event, draggedElem);\n }, function () {\n _this.ReRenderDir();\n });\n newWindow.querySelector(\"#closeWindowButton\").addEventListener('click', function (params) {\n WebDesktopEnvironment.CloseWindow(newWindow);\n });\n newWindow.querySelector(\"#RootButton\").addEventListener('click', function () {\n _this.RenderDir('/');\n });\n newWindow.querySelector(\"#HomeButton\").addEventListener('click', function () {\n _this.RenderDir('/home/user');\n });\n scrollBar = new WdeScrollBar(newWindow.querySelector(\".ScrollbarPlace\"), newWindow.querySelector(\".FileTileView\"));\n this.windowElem = newWindow;\n this.RenderDir(args[0]);\n case 42:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n function Init(_x, _x2) {\n return _Init.apply(this, arguments);\n }\n return Init;\n }()\n /**\r\n * @param {string} path\r\n */\n }, {\n key: \"RenderDir\",\n value: function RenderDir(path) {\n this.curPath = path;\n this.fileView.OpenFolder(path);\n }\n }, {\n key: \"ReRenderDir\",\n value: function ReRenderDir() {\n this.RenderDir(this.curPath);\n }\n\n /**\r\n * @param {DragEvent} event\r\n * @param {HTMLElement} draggedElem\r\n */\n }, {\n key: \"DropEvent\",\n value: function () {\n var _DropEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {\n var sourcePath, targetPath, res, files, i, file, _res, params, response;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!(event.dataTransfer.getData(\"dropType\") == \"move\")) {\n _context2.next = 9;\n break;\n }\n sourcePath = event.dataTransfer.getData(\"filePath\");\n targetPath = this.curPath + \"/\" + event.dataTransfer.getData(\"fileName\");\n _context2.next = 5;\n return WebFS.MoveFile(sourcePath, targetPath);\n case 5:\n res = _context2.sent;\n if (res) {\n this.ReRenderDir();\n } else {\n WebDesktopEnvironment.Alert(\"UWAGA TODO MOVE FILE ERROR\"); //TODO\n }\n _context2.next = 28;\n break;\n case 9:\n console.log(event, this.curPath);\n files = event.dataTransfer.files;\n i = 0;\n case 12:\n if (!(i < files.length)) {\n _context2.next = 22;\n break;\n }\n file = files[i];\n console.log(\"file:\" + file.name);\n _context2.next = 17;\n return WebFS.UploadFile(file, this.curPath);\n case 17:\n _res = _context2.sent;\n if (_res) {\n this.ReRenderDir();\n }\n case 19:\n i++;\n _context2.next = 12;\n break;\n case 22:\n return _context2.abrupt(\"return\");\n case 26:\n response = _context2.sent;\n if (response.status != 200) {\n WebDesktopEnvironment.Alert(\"ERROR IN UPLOADING FILE\"); //TODO\n } else {\n this.ReRenderDir();\n }\n case 28:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n function DropEvent(_x3) {\n return _DropEvent.apply(this, arguments);\n }\n return DropEvent;\n }()\n /**\r\n * @param {MouseEvent} event\r\n */\n }, {\n key: \"Click\",\n value: function Click(event) {\n this.OpenFile(this.curPath, event.target.getAttribute(\"name\"), event.target.getAttribute(\"filetype\"));\n }\n\n /**\r\n * @param {string} filePath\r\n */\n }, {\n key: \"OpenFile\",\n value: function () {\n var _OpenFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(parentPath, fileName, fileType) {\n var fileExtension, res;\n return _regeneratorRuntime().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n // console.log(parentPath, fileName, fileType)\n // const splittedPath = filePath.split(\"/\")\n // const fileName = splittedPath[splittedPath.length - 1]\n fileExtension = fileName.split(\".\")[fileName.split(\".\").length - 1]; //FIXME\n _context3.t0 = true;\n _context3.next = _context3.t0 === (fileType == \"objectlink\") ? 4 : _context3.t0 === (fileType == \"pathlink\") ? 6 : _context3.t0 === (fileExtension == \"app\") ? 12 : _context3.t0 === (fileExtension == \"blog\") ? 14 : _context3.t0 === (fileType == \"directory\") ? 16 : _context3.t0 === (fileExtension == \"blog\") ? 18 : _context3.t0 === (fileExtension == \"jpeg\" | fileExtension == \"png\") ? 20 : 22;\n break;\n case 4:\n WebDesktopEnvironment.Alert(\"Links not supported yet\");\n return _context3.abrupt(\"break\", 24);\n case 6:\n _context3.next = 8;\n return WebFS.ReadPathLink(\"\".concat(parentPath, \"/\").concat(fileName));\n case 8:\n res = _context3.sent;\n console.log(res);\n this.OpenFile(res.parentPath, res.name, res.filetype);\n return _context3.abrupt(\"break\", 24);\n case 12:\n WebDesktopEnvironment.Open(\"\".concat(parentPath, \"/\").concat(fileName), []);\n return _context3.abrupt(\"break\", 24);\n case 14:\n WebDesktopEnvironment.Open(\"/Applications/BlogViewer.app\", [\"\".concat(parentPath, \"/\").concat(fileName)]);\n return _context3.abrupt(\"break\", 24);\n case 16:\n WebDesktopEnvironment.Open(\"/Applications/Finder.app\", [\"\".concat(parentPath, \"/\").concat(fileName)]);\n return _context3.abrupt(\"break\", 24);\n case 18:\n WebDesktopEnvironment.Open(\"/Applications/BlogViewer.app\", [\"\".concat(parentPath, \"/\").concat(fileName)]);\n return _context3.abrupt(\"break\", 24);\n case 20:\n WebDesktopEnvironment.Open(\"img-viewer\", [\"\".concat(parentPath, \"/\").concat(fileName)]);\n return _context3.abrupt(\"break\", 24);\n case 22:\n WebDesktopEnvironment.Alert(\"Unsupported file type\");\n return _context3.abrupt(\"break\", 24);\n case 24:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n function OpenFile(_x4, _x5, _x6) {\n return _OpenFile.apply(this, arguments);\n }\n return OpenFile;\n }()\n /**\r\n * @param {MouseEvent} event\r\n */\n }, {\n key: \"RightClick\",\n value: function RightClick(event) {\n this.CreateContextMenu(event.target, [event.clientY, event.clientX]);\n }\n\n /**\r\n * @param {HTMLElement} target\r\n * @param {string[]} pos\r\n */\n }, {\n key: \"CreateContextMenu\",\n value: function () {\n var _CreateContextMenu = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(target, pos) {\n var _this2 = this;\n var context, fileName, fileType, path, params, response, html, overlay, menu;\n return _regeneratorRuntime().wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n context = \"\";\n fileName = target.getAttribute(\"name\"); //TODO check for null\n fileType = target.getAttribute(\"fileType\");\n if (target.classList.contains(\"FileTileView\")) {\n context = \"FileTileView\";\n } else {\n context = fileType;\n }\n path = \"\";\n if (fileName === null) {\n path = this.curPath;\n } else {\n path = \"\".concat(this.curPath, \"/\").concat(fileName);\n }\n params = new URLSearchParams({\n context: context,\n path: path\n });\n _context5.next = 9;\n return fetch(\"/app/\".concat(Finder.AppId, \"/contextMenu?\") + params);\n case 9:\n response = _context5.sent;\n if (!(response.status != 200)) {\n _context5.next = 13;\n break;\n }\n WebDesktopEnvironment.Alert(\"ERROR in Context menu TODO\"); //TODO\n return _context5.abrupt(\"return\");\n case 13:\n _context5.next = 15;\n return response.text();\n case 15:\n html = _context5.sent;\n overlay = document.createElement(\"div\"); //TODO Move to WDE.CreateOverlay()\n overlay.setAttribute('id', 'finder-context-menu-overlay');\n overlay.style.position = 'absolute';\n overlay.style.width = \"100%\";\n overlay.style.height = \"100%\";\n menu = document.createElement(\"div\");\n menu.setAttribute('class', 'ContextMenu WindowFrameShadow');\n menu.style.position = 'absolute';\n menu.style.top = pos[0] + \"px\";\n menu.style.left = pos[1] + \"px\";\n menu.innerHTML = html;\n // menu.children[0].firstElementChild.remove()\n menu.children[0].lastElementChild.remove(); //FIXME Can't ommit rendering of horLine in end of menu on backend\n\n overlay.appendChild(menu);\n document.body.appendChild(overlay);\n overlay.addEventListener('click', /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(event) {\n var res;\n return _regeneratorRuntime().wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n if (!event.target.classList.contains(\"Row\")) {\n _context4.next = 27;\n break;\n }\n //TODO add uuid id to rows to more accurate checks??\n res = false;\n _context4.t0 = event.target.children[0].getAttribute(\"action\");\n _context4.next = _context4.t0 === \"createPathLink\" ? 5 : _context4.t0 === \"createDir\" ? 10 : _context4.t0 === \"deleteFile\" ? 16 : _context4.t0 === \"getInfo\" ? 22 : _context4.t0 === \"openAsDir\" ? 24 : 26;\n break;\n case 5:\n _context4.next = 7;\n return WebFS.CreatePathLink(\"\".concat(_this2.curPath, \"/\").concat(fileName), \"\".concat(_this2.curPath, \"/Link to \").concat(fileName));\n case 7:\n res = _context4.sent;\n if (res) {\n _this2.ReRenderDir();\n }\n return _context4.abrupt(\"break\", 27);\n case 10:\n _context4.next = 12;\n return WebFS.CreateDirectory(\"\".concat(_this2.curPath));\n case 12:\n res = _context4.sent;\n console.log(res);\n if (res) {\n _this2.ReRenderDir();\n }\n return _context4.abrupt(\"break\", 27);\n case 16:\n _context4.next = 18;\n return WebFS.DeleteFile(\"\".concat(_this2.curPath, \"/\").concat(fileName));\n case 18:\n res = _context4.sent;\n console.log(res);\n if (res) {\n _this2.ReRenderDir();\n }\n return _context4.abrupt(\"break\", 27);\n case 22:\n Finder.RenderProperites(path);\n return _context4.abrupt(\"break\", 27);\n case 24:\n WebDesktopEnvironment.Open(\"/Applications/\".concat(Finder.AppId, \".app\"), [\"\".concat(_this2.curPath, \"/\").concat(fileName)]);\n return _context4.abrupt(\"break\", 27);\n case 26:\n return _context4.abrupt(\"break\", 27);\n case 27:\n overlay.remove();\n case 28:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n return function (_x9) {\n return _ref.apply(this, arguments);\n };\n }());\n overlay.addEventListener('contextmenu', function (event) {\n event.preventDefault();\n overlay.remove();\n });\n case 32:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this);\n }));\n function CreateContextMenu(_x7, _x8) {\n return _CreateContextMenu.apply(this, arguments);\n }\n return CreateContextMenu;\n }()\n }]);\n return FinderWindow;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./src/apps/finder/finder-window.js?");
/***/ }),
/***/ "./src/apps/finder/finder.js":
/*!***********************************!*\
!*** ./src/apps/finder/finder.js ***!
\***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _finder_window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./finder-window */ \"./src/apps/finder/finder-window.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, \"throw\" === context.method) { if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel; context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _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; }\n__webpack_require__(/*! ./finder.less */ \"./src/apps/finder/finder.less\");\n\nvar Finder = /*#__PURE__*/function () {\n function Finder() {\n _classCallCheck(this, Finder);\n }\n _createClass(Finder, [{\n key: \"NewWindow\",\n value:\n /**\r\n * @param {string[]} args\r\n */\n function () {\n var _NewWindow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(args, runContext) {\n var newFinder;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n newFinder = new _finder_window__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n _context.next = 3;\n return newFinder.Init(args, runContext);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n function NewWindow(_x, _x2) {\n return _NewWindow.apply(this, arguments);\n }\n return NewWindow;\n }()\n /**\r\n * @param {string} path\r\n * @returns {boolean}\r\n */\n }], [{\n key: \"RenderProperites\",\n value: function () {\n var _RenderProperites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(path) {\n var params, response, html, newWindow;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!(path == null || path == \"\")) {\n _context2.next = 2;\n break;\n }\n return _context2.abrupt(\"return\");\n case 2:\n params = new URLSearchParams({\n path: path\n });\n _context2.next = 5;\n return fetch(\"/app/\".concat(Finder.AppId, \"/renderProps?\") + params);\n case 5:\n response = _context2.sent;\n if (!(response.status != 200)) {\n _context2.next = 9;\n break;\n }\n WebDesktopEnvironment.Alert(\"Error in properties render\"); //TODO\n return _context2.abrupt(\"return\", false);\n case 9:\n _context2.next = 11;\n return response.text();\n case 11:\n html = _context2.sent;\n newWindow = WebDesktopEnvironment.CreateNewWindow(Finder.AppId, 350, 500);\n newWindow.innerHTML = html;\n newWindow.querySelector(\"#closeWindowButton\").addEventListener('click', function (params) {\n WebDesktopEnvironment.CloseWindow(newWindow);\n });\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n function RenderProperites(_x3) {\n return _RenderProperites.apply(this, arguments);\n }\n return RenderProperites;\n }()\n }]);\n return Finder;\n}();\n_defineProperty(Finder, \"AppId\", \"Finder\");\n\n//# sourceURL=webpack://my-webpack-project/./src/apps/finder/finder.js?");
/***/ }),
/***/ "./src/apps/finder/finder.less":
/*!*************************************!*\
!*** ./src/apps/finder/finder.less ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://my-webpack-project/./src/apps/finder/finder.less?");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(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] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./src/apps/finder/finder.js");
/******/
/******/ })()
;