1118 lines
No EOL
50 KiB
JavaScript
1118 lines
No EOL
50 KiB
JavaScript
(self["webpackChunk"] = self["webpackChunk"] || []).push([["/js/app"],{
|
|
|
|
/***/ "./resources/js/app.js":
|
|
/*!*****************************!*\
|
|
!*** ./resources/js/app.js ***!
|
|
\*****************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
|
|
/* harmony import */ var _css_app_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css/app.css */ "./resources/css/app.css");
|
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
|
/* harmony import */ var _inertiajs_vue3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @inertiajs/vue3 */ "./node_modules/@inertiajs/vue3/dist/index.esm.js");
|
|
/* harmony import */ var _vendor_tightenco_ziggy_dist_vue_m__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../vendor/tightenco/ziggy/dist/vue.m */ "./vendor/tightenco/ziggy/dist/vue.m.js");
|
|
/* harmony import */ var _ziggy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ziggy */ "./resources/js/ziggy.js");
|
|
/* harmony import */ var _inertiajs_progress__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @inertiajs/progress */ "./node_modules/@inertiajs/progress/dist/index.js");
|
|
/* harmony import */ var _fortawesome_vue_fontawesome__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/vue-fontawesome */ "./node_modules/@fortawesome/vue-fontawesome/index.es.js");
|
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
function _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 e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
function 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); } }
|
|
function _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); }); }; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(0,_inertiajs_vue3__WEBPACK_IMPORTED_MODULE_3__.createInertiaApp)({
|
|
resolve: function () {
|
|
var _resolve = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(name) {
|
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return __webpack_require__("./resources/js/Pages lazy recursive ^\\.\\/.*$")("./".concat(name));
|
|
case 2:
|
|
return _context.abrupt("return", _context.sent["default"]);
|
|
case 3:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function resolve(_x) {
|
|
return _resolve.apply(this, arguments);
|
|
}
|
|
return resolve;
|
|
}(),
|
|
setup: function setup(_ref) {
|
|
var el = _ref.el,
|
|
App = _ref.App,
|
|
props = _ref.props,
|
|
plugin = _ref.plugin;
|
|
return (0,vue__WEBPACK_IMPORTED_MODULE_2__.createApp)({
|
|
render: function render() {
|
|
return (0,vue__WEBPACK_IMPORTED_MODULE_2__.h)(App, props);
|
|
}
|
|
}).use(plugin).use(_vendor_tightenco_ziggy_dist_vue_m__WEBPACK_IMPORTED_MODULE_4__.ZiggyVue, _ziggy__WEBPACK_IMPORTED_MODULE_5__.Ziggy).component("font-awesome-icon", _fortawesome_vue_fontawesome__WEBPACK_IMPORTED_MODULE_7__.FontAwesomeIcon).mixin({
|
|
methods: {
|
|
route: route
|
|
}
|
|
}).mount(el);
|
|
},
|
|
progress: {
|
|
color: "#4B5563"
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/bootstrap.js":
|
|
/*!***********************************!*\
|
|
!*** ./resources/js/bootstrap.js ***!
|
|
\***********************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
|
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
|
|
/**
|
|
* We'll load the axios HTTP library which allows us to easily issue requests
|
|
* to our Laravel back-end. This library automatically handles sending the
|
|
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
|
*/
|
|
|
|
|
|
window.axios = (axios__WEBPACK_IMPORTED_MODULE_0___default());
|
|
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
|
|
|
/**
|
|
* Echo exposes an expressive API for subscribing to channels and listening
|
|
* for events that are broadcast by Laravel. Echo and event broadcasting
|
|
* allows your team to easily build robust real-time web applications.
|
|
*/
|
|
|
|
// import Echo from 'laravel-echo';
|
|
|
|
// import Pusher from 'pusher-js';
|
|
// window.Pusher = Pusher;
|
|
|
|
// window.Echo = new Echo({
|
|
// broadcaster: 'pusher',
|
|
// key: import.meta.env.VITE_PUSHER_APP_KEY,
|
|
// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
|
|
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
|
|
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
|
|
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
|
|
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
|
// enabledTransports: ['ws', 'wss'],
|
|
// });
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/ziggy.js":
|
|
/*!*******************************!*\
|
|
!*** ./resources/js/ziggy.js ***!
|
|
\*******************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Ziggy: () => (/* binding */ Ziggy)
|
|
/* harmony export */ });
|
|
var Ziggy = {
|
|
"url": "http:\/\/localhost",
|
|
"port": null,
|
|
"defaults": {},
|
|
"routes": {
|
|
"userFiles": {
|
|
"uri": "files\/{folder?}",
|
|
"methods": ["GET", "HEAD"],
|
|
"wheres": {
|
|
"folder": "(.*)"
|
|
},
|
|
"parameters": ["folder"]
|
|
},
|
|
"sharedWith": {
|
|
"uri": "shared-with-me\/{folder?}",
|
|
"methods": ["GET", "HEAD"],
|
|
"wheres": {
|
|
"folder": "(.*)"
|
|
},
|
|
"parameters": ["folder"]
|
|
},
|
|
"sharedBy": {
|
|
"uri": "shared-by-me\/{folder?}",
|
|
"methods": ["GET", "HEAD"],
|
|
"wheres": {
|
|
"folder": "(.*)"
|
|
},
|
|
"parameters": ["folder"]
|
|
},
|
|
"recycleBin": {
|
|
"uri": "recycle-bin\/{folder?}",
|
|
"methods": ["GET", "HEAD"],
|
|
"wheres": {
|
|
"folder": "(.*)"
|
|
},
|
|
"parameters": ["folder"]
|
|
},
|
|
"folder.new": {
|
|
"uri": "folder\/new",
|
|
"methods": ["POST"]
|
|
},
|
|
"file.upload": {
|
|
"uri": "file\/upload",
|
|
"methods": ["POST"]
|
|
},
|
|
"file.download": {
|
|
"uri": "file\/download",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"file.downloadSharedBy": {
|
|
"uri": "file\/download-shared-by",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"file.downloadSharedWith": {
|
|
"uri": "file\/download-shared-with",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"file.recycle": {
|
|
"uri": "file\/recycle",
|
|
"methods": ["POST"]
|
|
},
|
|
"file.restore": {
|
|
"uri": "file\/restore",
|
|
"methods": ["POST"]
|
|
},
|
|
"file.delete": {
|
|
"uri": "file\/delete",
|
|
"methods": ["DELETE"]
|
|
},
|
|
"file.share": {
|
|
"uri": "file\/share",
|
|
"methods": ["POST"]
|
|
},
|
|
"file.unshare": {
|
|
"uri": "file\/unshare",
|
|
"methods": ["POST"]
|
|
},
|
|
"profile.edit": {
|
|
"uri": "profile",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"profile.update": {
|
|
"uri": "profile",
|
|
"methods": ["PATCH"]
|
|
},
|
|
"profile.destroy": {
|
|
"uri": "profile",
|
|
"methods": ["DELETE"]
|
|
},
|
|
"register": {
|
|
"uri": "register",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"login": {
|
|
"uri": "login",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"password.request": {
|
|
"uri": "forgot-password",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"password.email": {
|
|
"uri": "forgot-password",
|
|
"methods": ["POST"]
|
|
},
|
|
"password.reset": {
|
|
"uri": "reset-password\/{token}",
|
|
"methods": ["GET", "HEAD"],
|
|
"parameters": ["token"]
|
|
},
|
|
"password.update": {
|
|
"uri": "reset-password",
|
|
"methods": ["POST"]
|
|
},
|
|
"verification.notice": {
|
|
"uri": "verify-email",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"verification.verify": {
|
|
"uri": "verify-email\/{id}\/{hash}",
|
|
"methods": ["GET", "HEAD"],
|
|
"parameters": ["id", "hash"]
|
|
},
|
|
"verification.send": {
|
|
"uri": "email\/verification-notification",
|
|
"methods": ["POST"]
|
|
},
|
|
"password.confirm": {
|
|
"uri": "confirm-password",
|
|
"methods": ["GET", "HEAD"]
|
|
},
|
|
"logout": {
|
|
"uri": "logout",
|
|
"methods": ["POST"]
|
|
}
|
|
}
|
|
};
|
|
if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') {
|
|
Object.assign(Ziggy.routes, window.Ziggy.routes);
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./vendor/tightenco/ziggy/dist/vue.m.js":
|
|
/*!**********************************************!*\
|
|
!*** ./vendor/tightenco/ziggy/dist/vue.m.js ***!
|
|
\**********************************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ ZiggyVue: () => (/* binding */ P)
|
|
/* harmony export */ });
|
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
function t(t, r) {
|
|
for (var n = 0; n < r.length; n++) {
|
|
var e = r[n];
|
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(t, "symbol" == _typeof(o = function (t, r) {
|
|
if ("object" != _typeof(t) || null === t) return t;
|
|
var n = t[Symbol.toPrimitive];
|
|
if (void 0 !== n) {
|
|
var e = n.call(t, "string");
|
|
if ("object" != _typeof(e)) return e;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return String(t);
|
|
}(e.key)) ? o : String(o), e);
|
|
}
|
|
var o;
|
|
}
|
|
function r(r, n, e) {
|
|
return n && t(r.prototype, n), e && t(r, e), Object.defineProperty(r, "prototype", {
|
|
writable: !1
|
|
}), r;
|
|
}
|
|
function n() {
|
|
return n = Object.assign ? Object.assign.bind() : function (t) {
|
|
for (var r = 1; r < arguments.length; r++) {
|
|
var n = arguments[r];
|
|
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
}
|
|
return t;
|
|
}, n.apply(this, arguments);
|
|
}
|
|
function e(t) {
|
|
return e = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
}, e(t);
|
|
}
|
|
function o(t, r) {
|
|
return o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, r) {
|
|
return t.__proto__ = r, t;
|
|
}, o(t, r);
|
|
}
|
|
function i(t, r, n) {
|
|
return i = function () {
|
|
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
|
if (Reflect.construct.sham) return !1;
|
|
if ("function" == typeof Proxy) return !0;
|
|
try {
|
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
|
|
} catch (t) {
|
|
return !1;
|
|
}
|
|
}() ? Reflect.construct.bind() : function (t, r, n) {
|
|
var e = [null];
|
|
e.push.apply(e, r);
|
|
var i = new (Function.bind.apply(t, e))();
|
|
return n && o(i, n.prototype), i;
|
|
}, i.apply(null, arguments);
|
|
}
|
|
function u(t) {
|
|
var r = "function" == typeof Map ? new Map() : void 0;
|
|
return u = function u(t) {
|
|
if (null === t || -1 === Function.toString.call(t).indexOf("[native code]")) return t;
|
|
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
if (void 0 !== r) {
|
|
if (r.has(t)) return r.get(t);
|
|
r.set(t, n);
|
|
}
|
|
function n() {
|
|
return i(t, arguments, e(this).constructor);
|
|
}
|
|
return n.prototype = Object.create(t.prototype, {
|
|
constructor: {
|
|
value: n,
|
|
enumerable: !1,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), o(n, t);
|
|
}, u(t);
|
|
}
|
|
var f = String.prototype.replace,
|
|
a = /%20/g,
|
|
c = "RFC3986",
|
|
l = {
|
|
"default": c,
|
|
formatters: {
|
|
RFC1738: function RFC1738(t) {
|
|
return f.call(t, a, "+");
|
|
},
|
|
RFC3986: function RFC3986(t) {
|
|
return String(t);
|
|
}
|
|
},
|
|
RFC1738: "RFC1738",
|
|
RFC3986: c
|
|
},
|
|
s = Object.prototype.hasOwnProperty,
|
|
v = Array.isArray,
|
|
p = function () {
|
|
for (var t = [], r = 0; r < 256; ++r) t.push("%" + ((r < 16 ? "0" : "") + r.toString(16)).toUpperCase());
|
|
return t;
|
|
}(),
|
|
y = function y(t, r) {
|
|
for (var n = r && r.plainObjects ? Object.create(null) : {}, e = 0; e < t.length; ++e) void 0 !== t[e] && (n[e] = t[e]);
|
|
return n;
|
|
},
|
|
d = {
|
|
arrayToObject: y,
|
|
assign: function assign(t, r) {
|
|
return Object.keys(r).reduce(function (t, n) {
|
|
return t[n] = r[n], t;
|
|
}, t);
|
|
},
|
|
combine: function combine(t, r) {
|
|
return [].concat(t, r);
|
|
},
|
|
compact: function compact(t) {
|
|
for (var r = [{
|
|
obj: {
|
|
o: t
|
|
},
|
|
prop: "o"
|
|
}], n = [], e = 0; e < r.length; ++e) for (var o = r[e], i = o.obj[o.prop], u = Object.keys(i), f = 0; f < u.length; ++f) {
|
|
var a = u[f],
|
|
c = i[a];
|
|
"object" == _typeof(c) && null !== c && -1 === n.indexOf(c) && (r.push({
|
|
obj: i,
|
|
prop: a
|
|
}), n.push(c));
|
|
}
|
|
return function (t) {
|
|
for (; t.length > 1;) {
|
|
var r = t.pop(),
|
|
n = r.obj[r.prop];
|
|
if (v(n)) {
|
|
for (var e = [], o = 0; o < n.length; ++o) void 0 !== n[o] && e.push(n[o]);
|
|
r.obj[r.prop] = e;
|
|
}
|
|
}
|
|
}(r), t;
|
|
},
|
|
decode: function decode(t, r, n) {
|
|
var e = t.replace(/\+/g, " ");
|
|
if ("iso-8859-1" === n) return e.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
try {
|
|
return decodeURIComponent(e);
|
|
} catch (t) {
|
|
return e;
|
|
}
|
|
},
|
|
encode: function encode(t, r, n, e, o) {
|
|
if (0 === t.length) return t;
|
|
var i = t;
|
|
if ("symbol" == _typeof(t) ? i = Symbol.prototype.toString.call(t) : "string" != typeof t && (i = String(t)), "iso-8859-1" === n) return escape(i).replace(/%u[0-9a-f]{4}/gi, function (t) {
|
|
return "%26%23" + parseInt(t.slice(2), 16) + "%3B";
|
|
});
|
|
for (var u = "", f = 0; f < i.length; ++f) {
|
|
var a = i.charCodeAt(f);
|
|
45 === a || 46 === a || 95 === a || 126 === a || a >= 48 && a <= 57 || a >= 65 && a <= 90 || a >= 97 && a <= 122 || o === l.RFC1738 && (40 === a || 41 === a) ? u += i.charAt(f) : a < 128 ? u += p[a] : a < 2048 ? u += p[192 | a >> 6] + p[128 | 63 & a] : a < 55296 || a >= 57344 ? u += p[224 | a >> 12] + p[128 | a >> 6 & 63] + p[128 | 63 & a] : (a = 65536 + ((1023 & a) << 10 | 1023 & i.charCodeAt(f += 1)), u += p[240 | a >> 18] + p[128 | a >> 12 & 63] + p[128 | a >> 6 & 63] + p[128 | 63 & a]);
|
|
}
|
|
return u;
|
|
},
|
|
isBuffer: function isBuffer(t) {
|
|
return !(!t || "object" != _typeof(t) || !(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t)));
|
|
},
|
|
isRegExp: function isRegExp(t) {
|
|
return "[object RegExp]" === Object.prototype.toString.call(t);
|
|
},
|
|
maybeMap: function maybeMap(t, r) {
|
|
if (v(t)) {
|
|
for (var n = [], e = 0; e < t.length; e += 1) n.push(r(t[e]));
|
|
return n;
|
|
}
|
|
return r(t);
|
|
},
|
|
merge: function t(r, n, e) {
|
|
if (!n) return r;
|
|
if ("object" != _typeof(n)) {
|
|
if (v(r)) r.push(n);else {
|
|
if (!r || "object" != _typeof(r)) return [r, n];
|
|
(e && (e.plainObjects || e.allowPrototypes) || !s.call(Object.prototype, n)) && (r[n] = !0);
|
|
}
|
|
return r;
|
|
}
|
|
if (!r || "object" != _typeof(r)) return [r].concat(n);
|
|
var o = r;
|
|
return v(r) && !v(n) && (o = y(r, e)), v(r) && v(n) ? (n.forEach(function (n, o) {
|
|
if (s.call(r, o)) {
|
|
var i = r[o];
|
|
i && "object" == _typeof(i) && n && "object" == _typeof(n) ? r[o] = t(i, n, e) : r.push(n);
|
|
} else r[o] = n;
|
|
}), r) : Object.keys(n).reduce(function (r, o) {
|
|
var i = n[o];
|
|
return r[o] = s.call(r, o) ? t(r[o], i, e) : i, r;
|
|
}, o);
|
|
}
|
|
},
|
|
b = Object.prototype.hasOwnProperty,
|
|
h = {
|
|
brackets: function brackets(t) {
|
|
return t + "[]";
|
|
},
|
|
comma: "comma",
|
|
indices: function indices(t, r) {
|
|
return t + "[" + r + "]";
|
|
},
|
|
repeat: function repeat(t) {
|
|
return t;
|
|
}
|
|
},
|
|
g = Array.isArray,
|
|
m = String.prototype.split,
|
|
j = Array.prototype.push,
|
|
w = function w(t, r) {
|
|
j.apply(t, g(r) ? r : [r]);
|
|
},
|
|
O = Date.prototype.toISOString,
|
|
E = l["default"],
|
|
R = {
|
|
addQueryPrefix: !1,
|
|
allowDots: !1,
|
|
charset: "utf-8",
|
|
charsetSentinel: !1,
|
|
delimiter: "&",
|
|
encode: !0,
|
|
encoder: d.encode,
|
|
encodeValuesOnly: !1,
|
|
format: E,
|
|
formatter: l.formatters[E],
|
|
indices: !1,
|
|
serializeDate: function serializeDate(t) {
|
|
return O.call(t);
|
|
},
|
|
skipNulls: !1,
|
|
strictNullHandling: !1
|
|
},
|
|
S = function t(r, n, e, o, i, u, f, a, c, l, s, v, p, y) {
|
|
var b,
|
|
h = r;
|
|
if ("function" == typeof f ? h = f(n, h) : h instanceof Date ? h = l(h) : "comma" === e && g(h) && (h = d.maybeMap(h, function (t) {
|
|
return t instanceof Date ? l(t) : t;
|
|
})), null === h) {
|
|
if (o) return u && !p ? u(n, R.encoder, y, "key", s) : n;
|
|
h = "";
|
|
}
|
|
if ("string" == typeof (b = h) || "number" == typeof b || "boolean" == typeof b || "symbol" == _typeof(b) || "bigint" == typeof b || d.isBuffer(h)) {
|
|
if (u) {
|
|
var j = p ? n : u(n, R.encoder, y, "key", s);
|
|
if ("comma" === e && p) {
|
|
for (var O = m.call(String(h), ","), E = "", S = 0; S < O.length; ++S) E += (0 === S ? "" : ",") + v(u(O[S], R.encoder, y, "value", s));
|
|
return [v(j) + "=" + E];
|
|
}
|
|
return [v(j) + "=" + v(u(h, R.encoder, y, "value", s))];
|
|
}
|
|
return [v(n) + "=" + v(String(h))];
|
|
}
|
|
var k,
|
|
x = [];
|
|
if (void 0 === h) return x;
|
|
if ("comma" === e && g(h)) k = [{
|
|
value: h.length > 0 ? h.join(",") || null : void 0
|
|
}];else if (g(f)) k = f;else {
|
|
var T = Object.keys(h);
|
|
k = a ? T.sort(a) : T;
|
|
}
|
|
for (var N = 0; N < k.length; ++N) {
|
|
var C = k[N],
|
|
D = "object" == _typeof(C) && void 0 !== C.value ? C.value : h[C];
|
|
if (!i || null !== D) {
|
|
var $ = g(h) ? "function" == typeof e ? e(n, C) : n : n + (c ? "." + C : "[" + C + "]");
|
|
w(x, t(D, $, e, o, i, u, f, a, c, l, s, v, p, y));
|
|
}
|
|
}
|
|
return x;
|
|
},
|
|
k = Object.prototype.hasOwnProperty,
|
|
x = Array.isArray,
|
|
T = {
|
|
allowDots: !1,
|
|
allowPrototypes: !1,
|
|
arrayLimit: 20,
|
|
charset: "utf-8",
|
|
charsetSentinel: !1,
|
|
comma: !1,
|
|
decoder: d.decode,
|
|
delimiter: "&",
|
|
depth: 5,
|
|
ignoreQueryPrefix: !1,
|
|
interpretNumericEntities: !1,
|
|
parameterLimit: 1e3,
|
|
parseArrays: !0,
|
|
plainObjects: !1,
|
|
strictNullHandling: !1
|
|
},
|
|
N = function N(t) {
|
|
return t.replace(/&#(\d+);/g, function (t, r) {
|
|
return String.fromCharCode(parseInt(r, 10));
|
|
});
|
|
},
|
|
C = function C(t, r) {
|
|
return t && "string" == typeof t && r.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
},
|
|
D = function D(t, r, n, e) {
|
|
if (t) {
|
|
var o = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t,
|
|
i = /(\[[^[\]]*])/g,
|
|
u = n.depth > 0 && /(\[[^[\]]*])/.exec(o),
|
|
f = u ? o.slice(0, u.index) : o,
|
|
a = [];
|
|
if (f) {
|
|
if (!n.plainObjects && k.call(Object.prototype, f) && !n.allowPrototypes) return;
|
|
a.push(f);
|
|
}
|
|
for (var c = 0; n.depth > 0 && null !== (u = i.exec(o)) && c < n.depth;) {
|
|
if (c += 1, !n.plainObjects && k.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes) return;
|
|
a.push(u[1]);
|
|
}
|
|
return u && a.push("[" + o.slice(u.index) + "]"), function (t, r, n, e) {
|
|
for (var o = e ? r : C(r, n), i = t.length - 1; i >= 0; --i) {
|
|
var u,
|
|
f = t[i];
|
|
if ("[]" === f && n.parseArrays) u = [].concat(o);else {
|
|
u = n.plainObjects ? Object.create(null) : {};
|
|
var a = "[" === f.charAt(0) && "]" === f.charAt(f.length - 1) ? f.slice(1, -1) : f,
|
|
c = parseInt(a, 10);
|
|
n.parseArrays || "" !== a ? !isNaN(c) && f !== a && String(c) === a && c >= 0 && n.parseArrays && c <= n.arrayLimit ? (u = [])[c] = o : "__proto__" !== a && (u[a] = o) : u = {
|
|
0: o
|
|
};
|
|
}
|
|
o = u;
|
|
}
|
|
return o;
|
|
}(a, r, n, e);
|
|
}
|
|
},
|
|
$ = function $(t, r) {
|
|
var n = function (t) {
|
|
if (!t) return T;
|
|
if (null != t.decoder && "function" != typeof t.decoder) throw new TypeError("Decoder has to be a function.");
|
|
if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
return {
|
|
allowDots: void 0 === t.allowDots ? T.allowDots : !!t.allowDots,
|
|
allowPrototypes: "boolean" == typeof t.allowPrototypes ? t.allowPrototypes : T.allowPrototypes,
|
|
arrayLimit: "number" == typeof t.arrayLimit ? t.arrayLimit : T.arrayLimit,
|
|
charset: void 0 === t.charset ? T.charset : t.charset,
|
|
charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : T.charsetSentinel,
|
|
comma: "boolean" == typeof t.comma ? t.comma : T.comma,
|
|
decoder: "function" == typeof t.decoder ? t.decoder : T.decoder,
|
|
delimiter: "string" == typeof t.delimiter || d.isRegExp(t.delimiter) ? t.delimiter : T.delimiter,
|
|
depth: "number" == typeof t.depth || !1 === t.depth ? +t.depth : T.depth,
|
|
ignoreQueryPrefix: !0 === t.ignoreQueryPrefix,
|
|
interpretNumericEntities: "boolean" == typeof t.interpretNumericEntities ? t.interpretNumericEntities : T.interpretNumericEntities,
|
|
parameterLimit: "number" == typeof t.parameterLimit ? t.parameterLimit : T.parameterLimit,
|
|
parseArrays: !1 !== t.parseArrays,
|
|
plainObjects: "boolean" == typeof t.plainObjects ? t.plainObjects : T.plainObjects,
|
|
strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : T.strictNullHandling
|
|
};
|
|
}(r);
|
|
if ("" === t || null == t) return n.plainObjects ? Object.create(null) : {};
|
|
for (var e = "string" == typeof t ? function (t, r) {
|
|
var n,
|
|
e = {},
|
|
o = (r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t).split(r.delimiter, Infinity === r.parameterLimit ? void 0 : r.parameterLimit),
|
|
i = -1,
|
|
u = r.charset;
|
|
if (r.charsetSentinel) for (n = 0; n < o.length; ++n) 0 === o[n].indexOf("utf8=") && ("utf8=%E2%9C%93" === o[n] ? u = "utf-8" : "utf8=%26%2310003%3B" === o[n] && (u = "iso-8859-1"), i = n, n = o.length);
|
|
for (n = 0; n < o.length; ++n) if (n !== i) {
|
|
var f,
|
|
a,
|
|
c = o[n],
|
|
l = c.indexOf("]="),
|
|
s = -1 === l ? c.indexOf("=") : l + 1;
|
|
-1 === s ? (f = r.decoder(c, T.decoder, u, "key"), a = r.strictNullHandling ? null : "") : (f = r.decoder(c.slice(0, s), T.decoder, u, "key"), a = d.maybeMap(C(c.slice(s + 1), r), function (t) {
|
|
return r.decoder(t, T.decoder, u, "value");
|
|
})), a && r.interpretNumericEntities && "iso-8859-1" === u && (a = N(a)), c.indexOf("[]=") > -1 && (a = x(a) ? [a] : a), e[f] = k.call(e, f) ? d.combine(e[f], a) : a;
|
|
}
|
|
return e;
|
|
}(t, n) : t, o = n.plainObjects ? Object.create(null) : {}, i = Object.keys(e), u = 0; u < i.length; ++u) {
|
|
var f = i[u],
|
|
a = D(f, e[f], n, "string" == typeof t);
|
|
o = d.merge(o, a, n);
|
|
}
|
|
return d.compact(o);
|
|
},
|
|
F = /*#__PURE__*/function () {
|
|
function t(t, r, n) {
|
|
var e, o;
|
|
this.name = t, this.definition = r, this.bindings = null != (e = r.bindings) ? e : {}, this.wheres = null != (o = r.wheres) ? o : {}, this.config = n;
|
|
}
|
|
var n = t.prototype;
|
|
return n.matchesUrl = function (t) {
|
|
var r = this;
|
|
if (!this.definition.methods.includes("GET")) return !1;
|
|
var n = this.template.replace(/(\/?){([^}?]*)(\??)}/g, function (t, n, e, o) {
|
|
var i,
|
|
u = "(?<" + e + ">" + ((null == (i = r.wheres[e]) ? void 0 : i.replace(/(^\^)|(\$$)/g, "")) || "[^/?]+") + ")";
|
|
return o ? "(" + n + u + ")?" : "" + n + u;
|
|
}).replace(/^\w+:\/\//, ""),
|
|
e = t.replace(/^\w+:\/\//, "").split("?"),
|
|
o = e[0],
|
|
i = e[1],
|
|
u = new RegExp("^" + n + "/?$").exec(decodeURI(o));
|
|
if (u) {
|
|
for (var f in u.groups) u.groups[f] = "string" == typeof u.groups[f] ? decodeURIComponent(u.groups[f]) : u.groups[f];
|
|
return {
|
|
params: u.groups,
|
|
query: $(i)
|
|
};
|
|
}
|
|
return !1;
|
|
}, n.compile = function (t) {
|
|
var r = this;
|
|
return this.parameterSegments.length ? this.template.replace(/{([^}?]+)(\??)}/g, function (n, e, o) {
|
|
var i, u;
|
|
if (!o && [null, void 0].includes(t[e])) throw new Error("Ziggy error: '" + e + "' parameter is required for route '" + r.name + "'.");
|
|
if (r.wheres[e] && !new RegExp("^" + (o ? "(" + r.wheres[e] + ")?" : r.wheres[e]) + "$").test(null != (u = t[e]) ? u : "")) throw new Error("Ziggy error: '" + e + "' parameter does not match required format '" + r.wheres[e] + "' for route '" + r.name + "'.");
|
|
return encodeURI(null != (i = t[e]) ? i : "").replace(/%7C/g, "|").replace(/%25/g, "%").replace(/\$/g, "%24");
|
|
}).replace(this.origin + "//", this.origin + "/").replace(/\/+$/, "") : this.template;
|
|
}, r(t, [{
|
|
key: "template",
|
|
get: function get() {
|
|
var t = (this.origin + "/" + this.definition.uri).replace(/\/+$/, "");
|
|
return "" === t ? "/" : t;
|
|
}
|
|
}, {
|
|
key: "origin",
|
|
get: function get() {
|
|
return this.config.absolute ? this.definition.domain ? "" + this.config.url.match(/^\w+:\/\//)[0] + this.definition.domain + (this.config.port ? ":" + this.config.port : "") : this.config.url : "";
|
|
}
|
|
}, {
|
|
key: "parameterSegments",
|
|
get: function get() {
|
|
var t, r;
|
|
return null != (t = null == (r = this.template.match(/{[^}?]+\??}/g)) ? void 0 : r.map(function (t) {
|
|
return {
|
|
name: t.replace(/{|\??}/g, ""),
|
|
required: !/\?}$/.test(t)
|
|
};
|
|
})) ? t : [];
|
|
}
|
|
}]), t;
|
|
}(),
|
|
I = /*#__PURE__*/function (t) {
|
|
var e, i;
|
|
function u(r, e, o, i) {
|
|
var u;
|
|
if (void 0 === o && (o = !0), (u = t.call(this) || this).t = null != i ? i : "undefined" != typeof Ziggy ? Ziggy : null == globalThis ? void 0 : globalThis.Ziggy, u.t = n({}, u.t, {
|
|
absolute: o
|
|
}), r) {
|
|
if (!u.t.routes[r]) throw new Error("Ziggy error: route '" + r + "' is not in the route list.");
|
|
u.i = new F(r, u.t.routes[r], u.t), u.u = u.l(e);
|
|
}
|
|
return u;
|
|
}
|
|
i = t, (e = u).prototype = Object.create(i.prototype), e.prototype.constructor = e, o(e, i);
|
|
var f = u.prototype;
|
|
return f.toString = function () {
|
|
var t = this,
|
|
r = Object.keys(this.u).filter(function (r) {
|
|
return !t.i.parameterSegments.some(function (t) {
|
|
return t.name === r;
|
|
});
|
|
}).filter(function (t) {
|
|
return "_query" !== t;
|
|
}).reduce(function (r, e) {
|
|
var o;
|
|
return n({}, r, ((o = {})[e] = t.u[e], o));
|
|
}, {});
|
|
return this.i.compile(this.u) + function (t, r) {
|
|
var n,
|
|
e = t,
|
|
o = function (t) {
|
|
if (!t) return R;
|
|
if (null != t.encoder && "function" != typeof t.encoder) throw new TypeError("Encoder has to be a function.");
|
|
var r = t.charset || R.charset;
|
|
if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
var n = l["default"];
|
|
if (void 0 !== t.format) {
|
|
if (!b.call(l.formatters, t.format)) throw new TypeError("Unknown format option provided.");
|
|
n = t.format;
|
|
}
|
|
var e = l.formatters[n],
|
|
o = R.filter;
|
|
return ("function" == typeof t.filter || g(t.filter)) && (o = t.filter), {
|
|
addQueryPrefix: "boolean" == typeof t.addQueryPrefix ? t.addQueryPrefix : R.addQueryPrefix,
|
|
allowDots: void 0 === t.allowDots ? R.allowDots : !!t.allowDots,
|
|
charset: r,
|
|
charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : R.charsetSentinel,
|
|
delimiter: void 0 === t.delimiter ? R.delimiter : t.delimiter,
|
|
encode: "boolean" == typeof t.encode ? t.encode : R.encode,
|
|
encoder: "function" == typeof t.encoder ? t.encoder : R.encoder,
|
|
encodeValuesOnly: "boolean" == typeof t.encodeValuesOnly ? t.encodeValuesOnly : R.encodeValuesOnly,
|
|
filter: o,
|
|
format: n,
|
|
formatter: e,
|
|
serializeDate: "function" == typeof t.serializeDate ? t.serializeDate : R.serializeDate,
|
|
skipNulls: "boolean" == typeof t.skipNulls ? t.skipNulls : R.skipNulls,
|
|
sort: "function" == typeof t.sort ? t.sort : null,
|
|
strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : R.strictNullHandling
|
|
};
|
|
}(r);
|
|
"function" == typeof o.filter ? e = (0, o.filter)("", e) : g(o.filter) && (n = o.filter);
|
|
var i = [];
|
|
if ("object" != _typeof(e) || null === e) return "";
|
|
var u = h[r && r.arrayFormat in h ? r.arrayFormat : r && "indices" in r ? r.indices ? "indices" : "repeat" : "indices"];
|
|
n || (n = Object.keys(e)), o.sort && n.sort(o.sort);
|
|
for (var f = 0; f < n.length; ++f) {
|
|
var a = n[f];
|
|
o.skipNulls && null === e[a] || w(i, S(e[a], a, u, o.strictNullHandling, o.skipNulls, o.encode ? o.encoder : null, o.filter, o.sort, o.allowDots, o.serializeDate, o.format, o.formatter, o.encodeValuesOnly, o.charset));
|
|
}
|
|
var c = i.join(o.delimiter),
|
|
s = !0 === o.addQueryPrefix ? "?" : "";
|
|
return o.charsetSentinel && (s += "iso-8859-1" === o.charset ? "utf8=%26%2310003%3B&" : "utf8=%E2%9C%93&"), c.length > 0 ? s + c : "";
|
|
}(n({}, r, this.u._query), {
|
|
addQueryPrefix: !0,
|
|
arrayFormat: "indices",
|
|
encodeValuesOnly: !0,
|
|
skipNulls: !0,
|
|
encoder: function encoder(t, r) {
|
|
return "boolean" == typeof t ? Number(t) : r(t);
|
|
}
|
|
});
|
|
}, f.v = function (t) {
|
|
var r = this;
|
|
t ? this.t.absolute && t.startsWith("/") && (t = this.p().host + t) : t = this.h();
|
|
var e = {},
|
|
o = Object.entries(this.t.routes).find(function (n) {
|
|
return e = new F(n[0], n[1], r.t).matchesUrl(t);
|
|
}) || [void 0, void 0];
|
|
return n({
|
|
name: o[0]
|
|
}, e, {
|
|
route: o[1]
|
|
});
|
|
}, f.h = function () {
|
|
var t = this.p(),
|
|
r = t.pathname,
|
|
n = t.search;
|
|
return (this.t.absolute ? t.host + r : r.replace(this.t.url.replace(/^\w*:\/\/[^/]+/, ""), "").replace(/^\/+/, "/")) + n;
|
|
}, f.current = function (t, r) {
|
|
var e = this.v(),
|
|
o = e.name,
|
|
i = e.params,
|
|
u = e.query,
|
|
f = e.route;
|
|
if (!t) return o;
|
|
var a = new RegExp("^" + t.replace(/\./g, "\\.").replace(/\*/g, ".*") + "$").test(o);
|
|
if ([null, void 0].includes(r) || !a) return a;
|
|
var c = new F(o, f, this.t);
|
|
r = this.l(r, c);
|
|
var l = n({}, i, u);
|
|
return !(!Object.values(r).every(function (t) {
|
|
return !t;
|
|
}) || Object.values(l).some(function (t) {
|
|
return void 0 !== t;
|
|
})) || Object.entries(r).every(function (t) {
|
|
return l[t[0]] == t[1];
|
|
});
|
|
}, f.p = function () {
|
|
var t,
|
|
r,
|
|
n,
|
|
e,
|
|
o,
|
|
i,
|
|
u = "undefined" != typeof window ? window.location : {},
|
|
f = u.host,
|
|
a = u.pathname,
|
|
c = u.search;
|
|
return {
|
|
host: null != (t = null == (r = this.t.location) ? void 0 : r.host) ? t : void 0 === f ? "" : f,
|
|
pathname: null != (n = null == (e = this.t.location) ? void 0 : e.pathname) ? n : void 0 === a ? "" : a,
|
|
search: null != (o = null == (i = this.t.location) ? void 0 : i.search) ? o : void 0 === c ? "" : c
|
|
};
|
|
}, f.has = function (t) {
|
|
return Object.keys(this.t.routes).includes(t);
|
|
}, f.l = function (t, r) {
|
|
var e = this;
|
|
void 0 === t && (t = {}), void 0 === r && (r = this.i), null != t || (t = {}), t = ["string", "number"].includes(_typeof(t)) ? [t] : t;
|
|
var o = r.parameterSegments.filter(function (t) {
|
|
return !e.t.defaults[t.name];
|
|
});
|
|
if (Array.isArray(t)) t = t.reduce(function (t, r, e) {
|
|
var i, u;
|
|
return n({}, t, o[e] ? ((i = {})[o[e].name] = r, i) : "object" == _typeof(r) ? r : ((u = {})[r] = "", u));
|
|
}, {});else if (1 === o.length && !t[o[0].name] && (t.hasOwnProperty(Object.values(r.bindings)[0]) || t.hasOwnProperty("id"))) {
|
|
var i;
|
|
(i = {})[o[0].name] = t, t = i;
|
|
}
|
|
return n({}, this.g(r), this.m(t, r));
|
|
}, f.g = function (t) {
|
|
var r = this;
|
|
return t.parameterSegments.filter(function (t) {
|
|
return r.t.defaults[t.name];
|
|
}).reduce(function (t, e, o) {
|
|
var i,
|
|
u = e.name;
|
|
return n({}, t, ((i = {})[u] = r.t.defaults[u], i));
|
|
}, {});
|
|
}, f.m = function (t, r) {
|
|
var e = r.bindings,
|
|
o = r.parameterSegments;
|
|
return Object.entries(t).reduce(function (t, r) {
|
|
var i,
|
|
u,
|
|
f = r[0],
|
|
a = r[1];
|
|
if (!a || "object" != _typeof(a) || Array.isArray(a) || !o.some(function (t) {
|
|
return t.name === f;
|
|
})) return n({}, t, ((u = {})[f] = a, u));
|
|
if (!a.hasOwnProperty(e[f])) {
|
|
if (!a.hasOwnProperty("id")) throw new Error("Ziggy error: object passed as '" + f + "' parameter is missing route model binding key '" + e[f] + "'.");
|
|
e[f] = "id";
|
|
}
|
|
return n({}, t, ((i = {})[f] = a[e[f]], i));
|
|
}, {});
|
|
}, f.valueOf = function () {
|
|
return this.toString();
|
|
}, f.check = function (t) {
|
|
return this.has(t);
|
|
}, r(u, [{
|
|
key: "params",
|
|
get: function get() {
|
|
var t = this.v();
|
|
return n({}, t.params, t.query);
|
|
}
|
|
}]), u;
|
|
}( /*#__PURE__*/u(String)),
|
|
P = {
|
|
install: function install(t, r) {
|
|
var n = function n(t, _n, e, o) {
|
|
return void 0 === o && (o = r), function (t, r, n, e) {
|
|
var o = new I(t, r, n, e);
|
|
return t ? o.toString() : o;
|
|
}(t, _n, e, o);
|
|
};
|
|
t.mixin({
|
|
methods: {
|
|
route: n
|
|
}
|
|
}), parseInt(t.version) > 2 && t.provide("route", n);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/css/app.css":
|
|
/*!*******************************!*\
|
|
!*** ./resources/css/app.css ***!
|
|
\*******************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/Pages lazy recursive ^\\.\\/.*$":
|
|
/*!************************************************************!*\
|
|
!*** ./resources/js/Pages/ lazy ^\.\/.*$ namespace object ***!
|
|
\************************************************************/
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var map = {
|
|
"./Auth/ForgotPassword": [
|
|
"./resources/js/Pages/Auth/ForgotPassword.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_ForgotPassword_vue"
|
|
],
|
|
"./Auth/ForgotPassword.vue": [
|
|
"./resources/js/Pages/Auth/ForgotPassword.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_ForgotPassword_vue"
|
|
],
|
|
"./Auth/Login": [
|
|
"./resources/js/Pages/Auth/Login.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_Login_vue"
|
|
],
|
|
"./Auth/Login.vue": [
|
|
"./resources/js/Pages/Auth/Login.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_Login_vue"
|
|
],
|
|
"./Auth/Register": [
|
|
"./resources/js/Pages/Auth/Register.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_Register_vue"
|
|
],
|
|
"./Auth/Register.vue": [
|
|
"./resources/js/Pages/Auth/Register.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_Register_vue"
|
|
],
|
|
"./Auth/ResetPassword": [
|
|
"./resources/js/Pages/Auth/ResetPassword.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_ResetPassword_vue"
|
|
],
|
|
"./Auth/ResetPassword.vue": [
|
|
"./resources/js/Pages/Auth/ResetPassword.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_ResetPassword_vue"
|
|
],
|
|
"./Auth/VerifyEmail": [
|
|
"./resources/js/Pages/Auth/VerifyEmail.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_VerifyEmail_vue"
|
|
],
|
|
"./Auth/VerifyEmail.vue": [
|
|
"./resources/js/Pages/Auth/VerifyEmail.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Auth_VerifyEmail_vue"
|
|
],
|
|
"./Profile/Edit": [
|
|
"./resources/js/Pages/Profile/Edit.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Edit_vue"
|
|
],
|
|
"./Profile/Edit.vue": [
|
|
"./resources/js/Pages/Profile/Edit.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Edit_vue"
|
|
],
|
|
"./Profile/Partials/DeleteUserForm": [
|
|
"./resources/js/Pages/Profile/Partials/DeleteUserForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_DeleteUserForm_vue"
|
|
],
|
|
"./Profile/Partials/DeleteUserForm.vue": [
|
|
"./resources/js/Pages/Profile/Partials/DeleteUserForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_DeleteUserForm_vue"
|
|
],
|
|
"./Profile/Partials/UpdatePasswordForm": [
|
|
"./resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_UpdatePasswordForm_vue"
|
|
],
|
|
"./Profile/Partials/UpdatePasswordForm.vue": [
|
|
"./resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_UpdatePasswordForm_vue"
|
|
],
|
|
"./Profile/Partials/UpdateProfileInformationForm": [
|
|
"./resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_UpdateProfileInformationForm_vue"
|
|
],
|
|
"./Profile/Partials/UpdateProfileInformationForm.vue": [
|
|
"./resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_Profile_Partials_UpdateProfileInformationForm_vue"
|
|
],
|
|
"./RecycleBin": [
|
|
"./resources/js/Pages/RecycleBin.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_RecycleBin_vue"
|
|
],
|
|
"./RecycleBin.vue": [
|
|
"./resources/js/Pages/RecycleBin.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_RecycleBin_vue"
|
|
],
|
|
"./SharedBy": [
|
|
"./resources/js/Pages/SharedBy.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_SharedBy_vue"
|
|
],
|
|
"./SharedBy.vue": [
|
|
"./resources/js/Pages/SharedBy.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_SharedBy_vue"
|
|
],
|
|
"./SharedWith": [
|
|
"./resources/js/Pages/SharedWith.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_SharedWith_vue"
|
|
],
|
|
"./SharedWith.vue": [
|
|
"./resources/js/Pages/SharedWith.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_SharedWith_vue"
|
|
],
|
|
"./UserFiles": [
|
|
"./resources/js/Pages/UserFiles.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_UserFiles_vue"
|
|
],
|
|
"./UserFiles.vue": [
|
|
"./resources/js/Pages/UserFiles.vue",
|
|
"/js/vendor",
|
|
"resources_js_Pages_UserFiles_vue"
|
|
]
|
|
};
|
|
function webpackAsyncContext(req) {
|
|
if(!__webpack_require__.o(map, req)) {
|
|
return Promise.resolve().then(() => {
|
|
var e = new Error("Cannot find module '" + req + "'");
|
|
e.code = 'MODULE_NOT_FOUND';
|
|
throw e;
|
|
});
|
|
}
|
|
|
|
var ids = map[req], id = ids[0];
|
|
return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {
|
|
return __webpack_require__(id);
|
|
});
|
|
}
|
|
webpackAsyncContext.keys = () => (Object.keys(map));
|
|
webpackAsyncContext.id = "./resources/js/Pages lazy recursive ^\\.\\/.*$";
|
|
module.exports = webpackAsyncContext;
|
|
|
|
/***/ }),
|
|
|
|
/***/ "?2128":
|
|
/*!********************************!*\
|
|
!*** ./util.inspect (ignored) ***!
|
|
\********************************/
|
|
/***/ (() => {
|
|
|
|
/* (ignored) */
|
|
|
|
/***/ })
|
|
|
|
},
|
|
/******/ __webpack_require__ => { // webpackRuntimeModules
|
|
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
/******/ __webpack_require__.O(0, ["css/app","/js/vendor"], () => (__webpack_exec__("./resources/js/app.js"), __webpack_exec__("./resources/css/app.css")));
|
|
/******/ var __webpack_exports__ = __webpack_require__.O();
|
|
/******/ }
|
|
]); |