"use strict"; (self["webpackChunkcalendar"] = self["webpackChunkcalendar"] || []).push([["node_modules_nextcloud_dialogs_dist_legacy_mjs"],{ /***/ "./node_modules/@mdi/svg/svg/folder-move.svg?raw": /*!*******************************************************!*\ !*** ./node_modules/@mdi/svg/svg/folder-move.svg?raw ***! \*******************************************************/ /***/ ((module) => { module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJtZGktZm9sZGVyLW1vdmUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE0LDE4VjE1SDEwVjExSDE0VjhMMTksMTNNMjAsNkgxMkwxMCw0SDRDMi44OSw0IDIsNC44OSAyLDZWMThBMiwyIDAgMCwwIDQsMjBIMjBBMiwyIDAgMCwwIDIyLDE4VjhDMjIsNi44OSAyMS4xLDYgMjAsNloiIC8+PC9zdmc+"; /***/ }), /***/ "./node_modules/@mdi/svg/svg/folder-multiple.svg?raw": /*!***********************************************************!*\ !*** ./node_modules/@mdi/svg/svg/folder-multiple.svg?raw ***! \***********************************************************/ /***/ ((module) => { module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJtZGktZm9sZGVyLW11bHRpcGxlIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0yMiw0SDE0TDEyLDJINkEyLDIgMCAwLDAgNCw0VjE2QTIsMiAwIDAsMCA2LDE4SDIyQTIsMiAwIDAsMCAyNCwxNlY2QTIsMiAwIDAsMCAyMiw0TTIsNkgwVjExSDBWMjBBMiwyIDAgMCwwIDIsMjJIMjBWMjBIMlY2WiIgLz48L3N2Zz4="; /***/ }), /***/ "./node_modules/@nextcloud/dialogs/dist/legacy.mjs": /*!*********************************************************!*\ !*** ./node_modules/@nextcloud/dialogs/dist/legacy.mjs ***! \*********************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ confirm: () => (/* binding */ H), /* harmony export */ filepicker: () => (/* binding */ z) /* harmony export */ }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ "./node_modules/path-browserify/index.js"); /* harmony import */ var _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunks/index-X06k2874.mjs */ "./node_modules/@nextcloud/dialogs/dist/chunks/index-X06k2874.mjs"); /* harmony import */ var toastify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! toastify-js */ "./node_modules/toastify-js/src/toastify.js"); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js"); /* harmony import */ var _chunks_DialogBase_aNq6aLpb_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunks/DialogBase-aNq6aLpb.mjs */ "./node_modules/@nextcloud/dialogs/dist/chunks/DialogBase-aNq6aLpb.mjs"); /* harmony import */ var _mdi_svg_svg_folder_multiple_svg_raw__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mdi/svg/svg/folder-multiple.svg?raw */ "./node_modules/@mdi/svg/svg/folder-multiple.svg?raw"); /* harmony import */ var _mdi_svg_svg_folder_move_svg_raw__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mdi/svg/svg/folder-move.svg?raw */ "./node_modules/@mdi/svg/svg/folder-move.svg?raw"); /** * @copyright Copyright (c) 2023 Ferdinand Thiessen * * @author Ferdinand Thiessen * * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ const M = (v, i, a = () => { }) => { const u = document.createElement("div"); (document.querySelector(i == null ? void 0 : i.container) || document.body).appendChild(u); const r = new vue__WEBPACK_IMPORTED_MODULE_6__["default"]({ el: u, name: "VueDialogHelper", render: (h) => h(v, { props: i, on: { close: () => { a(), r.$destroy(); } } }) }); }; async function z(v, i, a = !1, u, C, r = _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Choose, h, m) { const y = (e, c) => { const n = (t) => { const s = (t == null ? void 0 : t.root) || ""; let l = (t == null ? void 0 : t.path) || ""; return l.startsWith(s) && (l = l.slice(s.length) || "/"), l; }; return a ? (t) => e(t.map(n), c) : (t) => e(n(t[0]), c); }, P = (e) => { var c, n, t, s, l, p; return { id: e.fileid || null, path: e.path, mimetype: e.mime || null, mtime: ((c = e.mtime) == null ? void 0 : c.getTime()) || null, permissions: e.permissions, name: ((n = e.attributes) == null ? void 0 : n.displayname) || e.basename, etag: ((t = e.attributes) == null ? void 0 : t.etag) || null, hasPreview: ((s = e.attributes) == null ? void 0 : s.hasPreview) || null, mountType: ((l = e.attributes) == null ? void 0 : l.mountType) || null, quotaAvailableBytes: ((p = e.attributes) == null ? void 0 : p.quotaAvailableBytes) || null, icon: null, sharePermissions: null }; }; let b; r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Custom ? (b = [], (m.buttons || []).forEach((e) => { b.push({ callback: y(i, e.type), label: e.text, type: e.defaultButton ? "primary" : "secondary" }); })) : b = (e, c) => { var n, t, s; const l = [], p = ((t = (n = e == null ? void 0 : e[0]) == null ? void 0 : n.attributes) == null ? void 0 : t.displayName) || ((s = e == null ? void 0 : e[0]) == null ? void 0 : s.basename), d = p || (0,path__WEBPACK_IMPORTED_MODULE_0__.basename)(c); return r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Choose && l.push({ callback: y(i, _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Choose), label: p && !a ? (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Choose {file}", { file: p }) : (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Choose"), type: "primary" }), (r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.CopyMove || r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Copy) && l.push({ callback: y(i, _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Copy), label: d ? (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Copy to {target}", { target: d }) : (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Copy"), type: "primary", icon: _mdi_svg_svg_folder_multiple_svg_raw__WEBPACK_IMPORTED_MODULE_4__ }), (r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Move || r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.CopyMove) && l.push({ callback: y(i, _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Move), label: d ? (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Move to {target}", { target: d }) : (0,_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.t)("Move"), type: r === _chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.a.Move ? "primary" : "secondary", icon: _mdi_svg_svg_folder_move_svg_raw__WEBPACK_IMPORTED_MODULE_5__ }), l; }; const g = {}; typeof (m == null ? void 0 : m.filter) == "function" && (g.filterFn = (e) => m.filter(P(e))); const _ = typeof u == "string" ? [u] : u || []; M(_chunks_index_X06k2874_mjs__WEBPACK_IMPORTED_MODULE_1__.c, { ...g, name: v, buttons: b, multiselect: a, path: h, mimetypeFilter: _, allowPickDirectory: (m == null ? void 0 : m.allowDirectoryChooser) === !0 || _.includes("httpd/unix-directory") }); } async function H(v, i, a, u) { M(_chunks_DialogBase_aNq6aLpb_mjs__WEBPACK_IMPORTED_MODULE_3__.D, { name: i, message: v, buttons: [ { label: "No", // eslint-disable-next-line n/no-callback-literal callback: () => a(!1) }, { label: "Yes", type: "primary", // eslint-disable-next-line n/no-callback-literal callback: () => a(!0) } ], size: "small" }, () => a(!1)); } /***/ }) }]); //# sourceMappingURL=calendar-node_modules_nextcloud_dialogs_dist_legacy_mjs.js.map?v=8be838e4c6e9aae56c87