@xy-planning-network/trees 0.4.5 → 0.4.8-rc-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trees.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, mergeProps, createTextVNode, normalizeProps, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, Comment as Comment$1, Text, useSlots } from "vue";
20
+ import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, mergeProps, createTextVNode, normalizeProps, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, Comment as Comment$1, Text, useSlots, shallowRef } from "vue";
21
21
  var axios$2 = { exports: {} };
22
22
  var bind$2 = function bind(fn, thisArg) {
23
23
  return function wrap() {
@@ -30,8 +30,20 @@ var bind$2 = function bind(fn, thisArg) {
30
30
  };
31
31
  var bind$1 = bind$2;
32
32
  var toString = Object.prototype.toString;
33
+ var kindOf = function(cache) {
34
+ return function(thing) {
35
+ var str = toString.call(thing);
36
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
37
+ };
38
+ }(Object.create(null));
39
+ function kindOfTest(type) {
40
+ type = type.toLowerCase();
41
+ return function isKindOf(thing) {
42
+ return kindOf(thing) === type;
43
+ };
44
+ }
33
45
  function isArray(val) {
34
- return toString.call(val) === "[object Array]";
46
+ return Array.isArray(val);
35
47
  }
36
48
  function isUndefined(val) {
37
49
  return typeof val === "undefined";
@@ -39,18 +51,13 @@ function isUndefined(val) {
39
51
  function isBuffer(val) {
40
52
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
41
53
  }
42
- function isArrayBuffer(val) {
43
- return toString.call(val) === "[object ArrayBuffer]";
44
- }
45
- function isFormData(val) {
46
- return typeof FormData !== "undefined" && val instanceof FormData;
47
- }
54
+ var isArrayBuffer = kindOfTest("ArrayBuffer");
48
55
  function isArrayBufferView(val) {
49
56
  var result;
50
57
  if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
51
58
  result = ArrayBuffer.isView(val);
52
59
  } else {
53
- result = val && val.buffer && val.buffer instanceof ArrayBuffer;
60
+ result = val && val.buffer && isArrayBuffer(val.buffer);
54
61
  }
55
62
  return result;
56
63
  }
@@ -64,30 +71,27 @@ function isObject(val) {
64
71
  return val !== null && typeof val === "object";
65
72
  }
66
73
  function isPlainObject(val) {
67
- if (toString.call(val) !== "[object Object]") {
74
+ if (kindOf(val) !== "object") {
68
75
  return false;
69
76
  }
70
- var prototype = Object.getPrototypeOf(val);
71
- return prototype === null || prototype === Object.prototype;
72
- }
73
- function isDate(val) {
74
- return toString.call(val) === "[object Date]";
75
- }
76
- function isFile(val) {
77
- return toString.call(val) === "[object File]";
78
- }
79
- function isBlob(val) {
80
- return toString.call(val) === "[object Blob]";
77
+ var prototype2 = Object.getPrototypeOf(val);
78
+ return prototype2 === null || prototype2 === Object.prototype;
81
79
  }
80
+ var isDate = kindOfTest("Date");
81
+ var isFile = kindOfTest("File");
82
+ var isBlob = kindOfTest("Blob");
83
+ var isFileList = kindOfTest("FileList");
82
84
  function isFunction(val) {
83
85
  return toString.call(val) === "[object Function]";
84
86
  }
85
87
  function isStream(val) {
86
88
  return isObject(val) && isFunction(val.pipe);
87
89
  }
88
- function isURLSearchParams(val) {
89
- return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
90
+ function isFormData(thing) {
91
+ var pattern = "[object FormData]";
92
+ return thing && (typeof FormData === "function" && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
90
93
  }
94
+ var isURLSearchParams = kindOfTest("URLSearchParams");
91
95
  function trim(str) {
92
96
  return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
93
97
  }
@@ -150,7 +154,58 @@ function stripBOM(content) {
150
154
  }
151
155
  return content;
152
156
  }
153
- var utils$d = {
157
+ function inherits(constructor, superConstructor, props, descriptors2) {
158
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
159
+ constructor.prototype.constructor = constructor;
160
+ props && Object.assign(constructor.prototype, props);
161
+ }
162
+ function toFlatObject(sourceObj, destObj, filter) {
163
+ var props;
164
+ var i;
165
+ var prop;
166
+ var merged = {};
167
+ destObj = destObj || {};
168
+ do {
169
+ props = Object.getOwnPropertyNames(sourceObj);
170
+ i = props.length;
171
+ while (i-- > 0) {
172
+ prop = props[i];
173
+ if (!merged[prop]) {
174
+ destObj[prop] = sourceObj[prop];
175
+ merged[prop] = true;
176
+ }
177
+ }
178
+ sourceObj = Object.getPrototypeOf(sourceObj);
179
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
180
+ return destObj;
181
+ }
182
+ function endsWith(str, searchString, position) {
183
+ str = String(str);
184
+ if (position === void 0 || position > str.length) {
185
+ position = str.length;
186
+ }
187
+ position -= searchString.length;
188
+ var lastIndex = str.indexOf(searchString, position);
189
+ return lastIndex !== -1 && lastIndex === position;
190
+ }
191
+ function toArray(thing) {
192
+ if (!thing)
193
+ return null;
194
+ var i = thing.length;
195
+ if (isUndefined(i))
196
+ return null;
197
+ var arr = new Array(i);
198
+ while (i-- > 0) {
199
+ arr[i] = thing[i];
200
+ }
201
+ return arr;
202
+ }
203
+ var isTypedArray = function(TypedArray) {
204
+ return function(thing) {
205
+ return TypedArray && thing instanceof TypedArray;
206
+ };
207
+ }(typeof Uint8Array !== "undefined" && Object.getPrototypeOf(Uint8Array));
208
+ var utils$h = {
154
209
  isArray,
155
210
  isArrayBuffer,
156
211
  isBuffer,
@@ -172,9 +227,17 @@ var utils$d = {
172
227
  merge,
173
228
  extend,
174
229
  trim,
175
- stripBOM
230
+ stripBOM,
231
+ inherits,
232
+ toFlatObject,
233
+ kindOf,
234
+ kindOfTest,
235
+ endsWith,
236
+ toArray,
237
+ isTypedArray,
238
+ isFileList
176
239
  };
177
- var utils$c = utils$d;
240
+ var utils$g = utils$h;
178
241
  function encode(val) {
179
242
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
180
243
  }
@@ -185,23 +248,23 @@ var buildURL$2 = function buildURL(url, params, paramsSerializer) {
185
248
  var serializedParams;
186
249
  if (paramsSerializer) {
187
250
  serializedParams = paramsSerializer(params);
188
- } else if (utils$c.isURLSearchParams(params)) {
251
+ } else if (utils$g.isURLSearchParams(params)) {
189
252
  serializedParams = params.toString();
190
253
  } else {
191
254
  var parts = [];
192
- utils$c.forEach(params, function serialize(val, key) {
255
+ utils$g.forEach(params, function serialize(val, key) {
193
256
  if (val === null || typeof val === "undefined") {
194
257
  return;
195
258
  }
196
- if (utils$c.isArray(val)) {
259
+ if (utils$g.isArray(val)) {
197
260
  key = key + "[]";
198
261
  } else {
199
262
  val = [val];
200
263
  }
201
- utils$c.forEach(val, function parseValue(v) {
202
- if (utils$c.isDate(v)) {
264
+ utils$g.forEach(val, function parseValue(v) {
265
+ if (utils$g.isDate(v)) {
203
266
  v = v.toISOString();
204
- } else if (utils$c.isObject(v)) {
267
+ } else if (utils$g.isObject(v)) {
205
268
  v = JSON.stringify(v);
206
269
  }
207
270
  parts.push(encode(key) + "=" + encode(v));
@@ -218,7 +281,7 @@ var buildURL$2 = function buildURL(url, params, paramsSerializer) {
218
281
  }
219
282
  return url;
220
283
  };
221
- var utils$b = utils$d;
284
+ var utils$f = utils$h;
222
285
  function InterceptorManager$1() {
223
286
  this.handlers = [];
224
287
  }
@@ -237,31 +300,34 @@ InterceptorManager$1.prototype.eject = function eject(id2) {
237
300
  }
238
301
  };
239
302
  InterceptorManager$1.prototype.forEach = function forEach2(fn) {
240
- utils$b.forEach(this.handlers, function forEachHandler(h2) {
303
+ utils$f.forEach(this.handlers, function forEachHandler(h2) {
241
304
  if (h2 !== null) {
242
305
  fn(h2);
243
306
  }
244
307
  });
245
308
  };
246
309
  var InterceptorManager_1 = InterceptorManager$1;
247
- var utils$a = utils$d;
310
+ var utils$e = utils$h;
248
311
  var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
249
- utils$a.forEach(headers, function processHeader(value, name2) {
250
- if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
312
+ utils$e.forEach(headers, function processHeader(value, name) {
313
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
251
314
  headers[normalizedName] = value;
252
- delete headers[name2];
315
+ delete headers[name];
253
316
  }
254
317
  });
255
318
  };
256
- var enhanceError$2 = function enhanceError(error, config, code, request2, response) {
257
- error.config = config;
258
- if (code) {
259
- error.code = code;
260
- }
261
- error.request = request2;
262
- error.response = response;
263
- error.isAxiosError = true;
264
- error.toJSON = function toJSON() {
319
+ var utils$d = utils$h;
320
+ function AxiosError$5(message, code, config, request2, response) {
321
+ Error.call(this);
322
+ this.message = message;
323
+ this.name = "AxiosError";
324
+ code && (this.code = code);
325
+ config && (this.config = config);
326
+ request2 && (this.request = request2);
327
+ response && (this.response = response);
328
+ }
329
+ utils$d.inherits(AxiosError$5, Error, {
330
+ toJSON: function toJSON() {
265
331
  return {
266
332
  message: this.message,
267
333
  name: this.name,
@@ -272,38 +338,114 @@ var enhanceError$2 = function enhanceError(error, config, code, request2, respon
272
338
  columnNumber: this.columnNumber,
273
339
  stack: this.stack,
274
340
  config: this.config,
275
- code: this.code
341
+ code: this.code,
342
+ status: this.response && this.response.status ? this.response.status : null
276
343
  };
277
- };
278
- return error;
344
+ }
345
+ });
346
+ var prototype = AxiosError$5.prototype;
347
+ var descriptors = {};
348
+ [
349
+ "ERR_BAD_OPTION_VALUE",
350
+ "ERR_BAD_OPTION",
351
+ "ECONNABORTED",
352
+ "ETIMEDOUT",
353
+ "ERR_NETWORK",
354
+ "ERR_FR_TOO_MANY_REDIRECTS",
355
+ "ERR_DEPRECATED",
356
+ "ERR_BAD_RESPONSE",
357
+ "ERR_BAD_REQUEST",
358
+ "ERR_CANCELED"
359
+ ].forEach(function(code) {
360
+ descriptors[code] = { value: code };
361
+ });
362
+ Object.defineProperties(AxiosError$5, descriptors);
363
+ Object.defineProperty(prototype, "isAxiosError", { value: true });
364
+ AxiosError$5.from = function(error, code, config, request2, response, customProps) {
365
+ var axiosError = Object.create(prototype);
366
+ utils$d.toFlatObject(error, axiosError, function filter(obj) {
367
+ return obj !== Error.prototype;
368
+ });
369
+ AxiosError$5.call(axiosError, error.message, code, config, request2, response);
370
+ axiosError.name = error.name;
371
+ customProps && Object.assign(axiosError, customProps);
372
+ return axiosError;
279
373
  };
280
- var enhanceError$1 = enhanceError$2;
281
- var createError$2 = function createError(message, config, code, request2, response) {
282
- var error = new Error(message);
283
- return enhanceError$1(error, config, code, request2, response);
374
+ var AxiosError_1 = AxiosError$5;
375
+ var transitional = {
376
+ silentJSONParsing: true,
377
+ forcedJSONParsing: true,
378
+ clarifyTimeoutError: false
284
379
  };
285
- var createError$1 = createError$2;
380
+ var utils$c = utils$h;
381
+ function toFormData$1(obj, formData) {
382
+ formData = formData || new FormData();
383
+ var stack = [];
384
+ function convertValue(value) {
385
+ if (value === null)
386
+ return "";
387
+ if (utils$c.isDate(value)) {
388
+ return value.toISOString();
389
+ }
390
+ if (utils$c.isArrayBuffer(value) || utils$c.isTypedArray(value)) {
391
+ return typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
392
+ }
393
+ return value;
394
+ }
395
+ function build(data2, parentKey) {
396
+ if (utils$c.isPlainObject(data2) || utils$c.isArray(data2)) {
397
+ if (stack.indexOf(data2) !== -1) {
398
+ throw Error("Circular reference detected in " + parentKey);
399
+ }
400
+ stack.push(data2);
401
+ utils$c.forEach(data2, function each(value, key) {
402
+ if (utils$c.isUndefined(value))
403
+ return;
404
+ var fullKey = parentKey ? parentKey + "." + key : key;
405
+ var arr;
406
+ if (value && !parentKey && typeof value === "object") {
407
+ if (utils$c.endsWith(key, "{}")) {
408
+ value = JSON.stringify(value);
409
+ } else if (utils$c.endsWith(key, "[]") && (arr = utils$c.toArray(value))) {
410
+ arr.forEach(function(el) {
411
+ !utils$c.isUndefined(el) && formData.append(fullKey, convertValue(el));
412
+ });
413
+ return;
414
+ }
415
+ }
416
+ build(value, fullKey);
417
+ });
418
+ stack.pop();
419
+ } else {
420
+ formData.append(parentKey, convertValue(data2));
421
+ }
422
+ }
423
+ build(obj);
424
+ return formData;
425
+ }
426
+ var toFormData_1 = toFormData$1;
427
+ var AxiosError$4 = AxiosError_1;
286
428
  var settle$1 = function settle(resolve, reject, response) {
287
429
  var validateStatus2 = response.config.validateStatus;
288
430
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
289
431
  resolve(response);
290
432
  } else {
291
- reject(createError$1("Request failed with status code " + response.status, response.config, null, response.request, response));
433
+ reject(new AxiosError$4("Request failed with status code " + response.status, [AxiosError$4.ERR_BAD_REQUEST, AxiosError$4.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
292
434
  }
293
435
  };
294
- var utils$9 = utils$d;
295
- var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
436
+ var utils$b = utils$h;
437
+ var cookies$1 = utils$b.isStandardBrowserEnv() ? function standardBrowserEnv() {
296
438
  return {
297
- write: function write(name2, value, expires, path, domain, secure) {
439
+ write: function write(name, value, expires, path, domain, secure) {
298
440
  var cookie = [];
299
- cookie.push(name2 + "=" + encodeURIComponent(value));
300
- if (utils$9.isNumber(expires)) {
441
+ cookie.push(name + "=" + encodeURIComponent(value));
442
+ if (utils$b.isNumber(expires)) {
301
443
  cookie.push("expires=" + new Date(expires).toGMTString());
302
444
  }
303
- if (utils$9.isString(path)) {
445
+ if (utils$b.isString(path)) {
304
446
  cookie.push("path=" + path);
305
447
  }
306
- if (utils$9.isString(domain)) {
448
+ if (utils$b.isString(domain)) {
307
449
  cookie.push("domain=" + domain);
308
450
  }
309
451
  if (secure === true) {
@@ -311,12 +453,12 @@ var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
311
453
  }
312
454
  document.cookie = cookie.join("; ");
313
455
  },
314
- read: function read(name2) {
315
- var match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
456
+ read: function read(name) {
457
+ var match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
316
458
  return match2 ? decodeURIComponent(match2[3]) : null;
317
459
  },
318
- remove: function remove(name2) {
319
- this.write(name2, "", Date.now() - 864e5);
460
+ remove: function remove(name) {
461
+ this.write(name, "", Date.now() - 864e5);
320
462
  }
321
463
  };
322
464
  }() : function nonStandardBrowserEnv() {
@@ -331,20 +473,20 @@ var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
331
473
  };
332
474
  }();
333
475
  var isAbsoluteURL$1 = function isAbsoluteURL(url) {
334
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
476
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
335
477
  };
336
478
  var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
337
479
  return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
338
480
  };
339
481
  var isAbsoluteURL2 = isAbsoluteURL$1;
340
482
  var combineURLs2 = combineURLs$1;
341
- var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
483
+ var buildFullPath$2 = function buildFullPath(baseURL, requestedURL) {
342
484
  if (baseURL && !isAbsoluteURL2(requestedURL)) {
343
485
  return combineURLs2(baseURL, requestedURL);
344
486
  }
345
487
  return requestedURL;
346
488
  };
347
- var utils$8 = utils$d;
489
+ var utils$a = utils$h;
348
490
  var ignoreDuplicateOf = [
349
491
  "age",
350
492
  "authorization",
@@ -372,10 +514,10 @@ var parseHeaders$1 = function parseHeaders(headers) {
372
514
  if (!headers) {
373
515
  return parsed;
374
516
  }
375
- utils$8.forEach(headers.split("\n"), function parser(line) {
517
+ utils$a.forEach(headers.split("\n"), function parser(line) {
376
518
  i = line.indexOf(":");
377
- key = utils$8.trim(line.substr(0, i)).toLowerCase();
378
- val = utils$8.trim(line.substr(i + 1));
519
+ key = utils$a.trim(line.substr(0, i)).toLowerCase();
520
+ val = utils$a.trim(line.substr(i + 1));
379
521
  if (key) {
380
522
  if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
381
523
  return;
@@ -389,8 +531,8 @@ var parseHeaders$1 = function parseHeaders(headers) {
389
531
  });
390
532
  return parsed;
391
533
  };
392
- var utils$7 = utils$d;
393
- var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
534
+ var utils$9 = utils$h;
535
+ var isURLSameOrigin$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv2() {
394
536
  var msie = /(msie|trident)/i.test(navigator.userAgent);
395
537
  var urlParsingNode = document.createElement("a");
396
538
  var originURL;
@@ -414,7 +556,7 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
414
556
  }
415
557
  originURL = resolveURL(window.location.href);
416
558
  return function isURLSameOrigin2(requestURL) {
417
- var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
559
+ var parsed = utils$9.isString(requestURL) ? resolveURL(requestURL) : requestURL;
418
560
  return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
419
561
  };
420
562
  }() : function nonStandardBrowserEnv2() {
@@ -422,20 +564,46 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
422
564
  return true;
423
565
  };
424
566
  }();
425
- var utils$6 = utils$d;
567
+ var AxiosError$3 = AxiosError_1;
568
+ var utils$8 = utils$h;
569
+ function CanceledError$3(message) {
570
+ AxiosError$3.call(this, message == null ? "canceled" : message, AxiosError$3.ERR_CANCELED);
571
+ this.name = "CanceledError";
572
+ }
573
+ utils$8.inherits(CanceledError$3, AxiosError$3, {
574
+ __CANCEL__: true
575
+ });
576
+ var CanceledError_1 = CanceledError$3;
577
+ var parseProtocol$1 = function parseProtocol(url) {
578
+ var match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
579
+ return match2 && match2[1] || "";
580
+ };
581
+ var utils$7 = utils$h;
426
582
  var settle2 = settle$1;
427
583
  var cookies = cookies$1;
428
584
  var buildURL$1 = buildURL$2;
429
- var buildFullPath2 = buildFullPath$1;
585
+ var buildFullPath$1 = buildFullPath$2;
430
586
  var parseHeaders2 = parseHeaders$1;
431
587
  var isURLSameOrigin = isURLSameOrigin$1;
432
- var createError2 = createError$2;
588
+ var transitionalDefaults$1 = transitional;
589
+ var AxiosError$2 = AxiosError_1;
590
+ var CanceledError$2 = CanceledError_1;
591
+ var parseProtocol2 = parseProtocol$1;
433
592
  var xhr = function xhrAdapter(config) {
434
593
  return new Promise(function dispatchXhrRequest(resolve, reject) {
435
594
  var requestData = config.data;
436
595
  var requestHeaders = config.headers;
437
596
  var responseType = config.responseType;
438
- if (utils$6.isFormData(requestData)) {
597
+ var onCanceled;
598
+ function done() {
599
+ if (config.cancelToken) {
600
+ config.cancelToken.unsubscribe(onCanceled);
601
+ }
602
+ if (config.signal) {
603
+ config.signal.removeEventListener("abort", onCanceled);
604
+ }
605
+ }
606
+ if (utils$7.isFormData(requestData) && utils$7.isStandardBrowserEnv()) {
439
607
  delete requestHeaders["Content-Type"];
440
608
  }
441
609
  var request2 = new XMLHttpRequest();
@@ -444,7 +612,7 @@ var xhr = function xhrAdapter(config) {
444
612
  var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
445
613
  requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
446
614
  }
447
- var fullPath = buildFullPath2(config.baseURL, config.url);
615
+ var fullPath = buildFullPath$1(config.baseURL, config.url);
448
616
  request2.open(config.method.toUpperCase(), buildURL$1(fullPath, config.params, config.paramsSerializer), true);
449
617
  request2.timeout = config.timeout;
450
618
  function onloadend() {
@@ -461,7 +629,13 @@ var xhr = function xhrAdapter(config) {
461
629
  config,
462
630
  request: request2
463
631
  };
464
- settle2(resolve, reject, response);
632
+ settle2(function _resolve(value) {
633
+ resolve(value);
634
+ done();
635
+ }, function _reject(err) {
636
+ reject(err);
637
+ done();
638
+ }, response);
465
639
  request2 = null;
466
640
  }
467
641
  if ("onloadend" in request2) {
@@ -481,29 +655,30 @@ var xhr = function xhrAdapter(config) {
481
655
  if (!request2) {
482
656
  return;
483
657
  }
484
- reject(createError2("Request aborted", config, "ECONNABORTED", request2));
658
+ reject(new AxiosError$2("Request aborted", AxiosError$2.ECONNABORTED, config, request2));
485
659
  request2 = null;
486
660
  };
487
661
  request2.onerror = function handleError() {
488
- reject(createError2("Network Error", config, null, request2));
662
+ reject(new AxiosError$2("Network Error", AxiosError$2.ERR_NETWORK, config, request2, request2));
489
663
  request2 = null;
490
664
  };
491
665
  request2.ontimeout = function handleTimeout() {
492
- var timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
666
+ var timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
667
+ var transitional3 = config.transitional || transitionalDefaults$1;
493
668
  if (config.timeoutErrorMessage) {
494
669
  timeoutErrorMessage = config.timeoutErrorMessage;
495
670
  }
496
- reject(createError2(timeoutErrorMessage, config, config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", request2));
671
+ reject(new AxiosError$2(timeoutErrorMessage, transitional3.clarifyTimeoutError ? AxiosError$2.ETIMEDOUT : AxiosError$2.ECONNABORTED, config, request2));
497
672
  request2 = null;
498
673
  };
499
- if (utils$6.isStandardBrowserEnv()) {
674
+ if (utils$7.isStandardBrowserEnv()) {
500
675
  var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0;
501
676
  if (xsrfValue) {
502
677
  requestHeaders[config.xsrfHeaderName] = xsrfValue;
503
678
  }
504
679
  }
505
680
  if ("setRequestHeader" in request2) {
506
- utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
681
+ utils$7.forEach(requestHeaders, function setRequestHeader(val, key) {
507
682
  if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
508
683
  delete requestHeaders[key];
509
684
  } else {
@@ -511,7 +686,7 @@ var xhr = function xhrAdapter(config) {
511
686
  }
512
687
  });
513
688
  }
514
- if (!utils$6.isUndefined(config.withCredentials)) {
689
+ if (!utils$7.isUndefined(config.withCredentials)) {
515
690
  request2.withCredentials = !!config.withCredentials;
516
691
  }
517
692
  if (responseType && responseType !== "json") {
@@ -523,30 +698,42 @@ var xhr = function xhrAdapter(config) {
523
698
  if (typeof config.onUploadProgress === "function" && request2.upload) {
524
699
  request2.upload.addEventListener("progress", config.onUploadProgress);
525
700
  }
526
- if (config.cancelToken) {
527
- config.cancelToken.promise.then(function onCanceled(cancel) {
701
+ if (config.cancelToken || config.signal) {
702
+ onCanceled = function(cancel) {
528
703
  if (!request2) {
529
704
  return;
530
705
  }
706
+ reject(!cancel || cancel && cancel.type ? new CanceledError$2() : cancel);
531
707
  request2.abort();
532
- reject(cancel);
533
708
  request2 = null;
534
- });
709
+ };
710
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
711
+ if (config.signal) {
712
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
713
+ }
535
714
  }
536
715
  if (!requestData) {
537
716
  requestData = null;
538
717
  }
718
+ var protocol = parseProtocol2(fullPath);
719
+ if (protocol && ["http", "https", "file"].indexOf(protocol) === -1) {
720
+ reject(new AxiosError$2("Unsupported protocol " + protocol + ":", AxiosError$2.ERR_BAD_REQUEST, config));
721
+ return;
722
+ }
539
723
  request2.send(requestData);
540
724
  });
541
725
  };
542
- var utils$5 = utils$d;
726
+ var _null = null;
727
+ var utils$6 = utils$h;
543
728
  var normalizeHeaderName2 = normalizeHeaderName$1;
544
- var enhanceError2 = enhanceError$2;
729
+ var AxiosError$1 = AxiosError_1;
730
+ var transitionalDefaults = transitional;
731
+ var toFormData = toFormData_1;
545
732
  var DEFAULT_CONTENT_TYPE = {
546
733
  "Content-Type": "application/x-www-form-urlencoded"
547
734
  };
548
735
  function setContentTypeIfUnset(headers, value) {
549
- if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
736
+ if (!utils$6.isUndefined(headers) && utils$6.isUndefined(headers["Content-Type"])) {
550
737
  headers["Content-Type"] = value;
551
738
  }
552
739
  }
@@ -560,10 +747,10 @@ function getDefaultAdapter() {
560
747
  return adapter;
561
748
  }
562
749
  function stringifySafely(rawValue, parser, encoder) {
563
- if (utils$5.isString(rawValue)) {
750
+ if (utils$6.isString(rawValue)) {
564
751
  try {
565
752
  (parser || JSON.parse)(rawValue);
566
- return utils$5.trim(rawValue);
753
+ return utils$6.trim(rawValue);
567
754
  } catch (e) {
568
755
  if (e.name !== "SyntaxError") {
569
756
  throw e;
@@ -573,98 +760,107 @@ function stringifySafely(rawValue, parser, encoder) {
573
760
  return (encoder || JSON.stringify)(rawValue);
574
761
  }
575
762
  var defaults$4 = {
576
- transitional: {
577
- silentJSONParsing: true,
578
- forcedJSONParsing: true,
579
- clarifyTimeoutError: false
580
- },
763
+ transitional: transitionalDefaults,
581
764
  adapter: getDefaultAdapter(),
582
- transformRequest: [function transformRequest(data, headers) {
765
+ transformRequest: [function transformRequest(data2, headers) {
583
766
  normalizeHeaderName2(headers, "Accept");
584
767
  normalizeHeaderName2(headers, "Content-Type");
585
- if (utils$5.isFormData(data) || utils$5.isArrayBuffer(data) || utils$5.isBuffer(data) || utils$5.isStream(data) || utils$5.isFile(data) || utils$5.isBlob(data)) {
586
- return data;
768
+ if (utils$6.isFormData(data2) || utils$6.isArrayBuffer(data2) || utils$6.isBuffer(data2) || utils$6.isStream(data2) || utils$6.isFile(data2) || utils$6.isBlob(data2)) {
769
+ return data2;
587
770
  }
588
- if (utils$5.isArrayBufferView(data)) {
589
- return data.buffer;
771
+ if (utils$6.isArrayBufferView(data2)) {
772
+ return data2.buffer;
590
773
  }
591
- if (utils$5.isURLSearchParams(data)) {
774
+ if (utils$6.isURLSearchParams(data2)) {
592
775
  setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
593
- return data.toString();
594
- }
595
- if (utils$5.isObject(data) || headers && headers["Content-Type"] === "application/json") {
776
+ return data2.toString();
777
+ }
778
+ var isObjectPayload = utils$6.isObject(data2);
779
+ var contentType = headers && headers["Content-Type"];
780
+ var isFileList2;
781
+ if ((isFileList2 = utils$6.isFileList(data2)) || isObjectPayload && contentType === "multipart/form-data") {
782
+ var _FormData = this.env && this.env.FormData;
783
+ return toFormData(isFileList2 ? { "files[]": data2 } : data2, _FormData && new _FormData());
784
+ } else if (isObjectPayload || contentType === "application/json") {
596
785
  setContentTypeIfUnset(headers, "application/json");
597
- return stringifySafely(data);
786
+ return stringifySafely(data2);
598
787
  }
599
- return data;
788
+ return data2;
600
789
  }],
601
- transformResponse: [function transformResponse(data) {
602
- var transitional2 = this.transitional;
603
- var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
604
- var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
790
+ transformResponse: [function transformResponse(data2) {
791
+ var transitional3 = this.transitional || defaults$4.transitional;
792
+ var silentJSONParsing = transitional3 && transitional3.silentJSONParsing;
793
+ var forcedJSONParsing = transitional3 && transitional3.forcedJSONParsing;
605
794
  var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
606
- if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data) && data.length) {
795
+ if (strictJSONParsing || forcedJSONParsing && utils$6.isString(data2) && data2.length) {
607
796
  try {
608
- return JSON.parse(data);
797
+ return JSON.parse(data2);
609
798
  } catch (e) {
610
799
  if (strictJSONParsing) {
611
800
  if (e.name === "SyntaxError") {
612
- throw enhanceError2(e, this, "E_JSON_PARSE");
801
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
613
802
  }
614
803
  throw e;
615
804
  }
616
805
  }
617
806
  }
618
- return data;
807
+ return data2;
619
808
  }],
620
809
  timeout: 0,
621
810
  xsrfCookieName: "XSRF-TOKEN",
622
811
  xsrfHeaderName: "X-XSRF-TOKEN",
623
812
  maxContentLength: -1,
624
813
  maxBodyLength: -1,
814
+ env: {
815
+ FormData: _null
816
+ },
625
817
  validateStatus: function validateStatus(status) {
626
818
  return status >= 200 && status < 300;
819
+ },
820
+ headers: {
821
+ common: {
822
+ "Accept": "application/json, text/plain, */*"
823
+ }
627
824
  }
628
825
  };
629
- defaults$4.headers = {
630
- common: {
631
- "Accept": "application/json, text/plain, */*"
632
- }
633
- };
634
- utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
826
+ utils$6.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
635
827
  defaults$4.headers[method] = {};
636
828
  });
637
- utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
638
- defaults$4.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
829
+ utils$6.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
830
+ defaults$4.headers[method] = utils$6.merge(DEFAULT_CONTENT_TYPE);
639
831
  });
640
832
  var defaults_1 = defaults$4;
641
- var utils$4 = utils$d;
833
+ var utils$5 = utils$h;
642
834
  var defaults$3 = defaults_1;
643
- var transformData$1 = function transformData(data, headers, fns) {
835
+ var transformData$1 = function transformData(data2, headers, fns) {
644
836
  var context = this || defaults$3;
645
- utils$4.forEach(fns, function transform(fn) {
646
- data = fn.call(context, data, headers);
837
+ utils$5.forEach(fns, function transform(fn) {
838
+ data2 = fn.call(context, data2, headers);
647
839
  });
648
- return data;
840
+ return data2;
649
841
  };
650
842
  var isCancel$1 = function isCancel(value) {
651
843
  return !!(value && value.__CANCEL__);
652
844
  };
653
- var utils$3 = utils$d;
845
+ var utils$4 = utils$h;
654
846
  var transformData2 = transformData$1;
655
847
  var isCancel2 = isCancel$1;
656
848
  var defaults$2 = defaults_1;
849
+ var CanceledError$1 = CanceledError_1;
657
850
  function throwIfCancellationRequested(config) {
658
851
  if (config.cancelToken) {
659
852
  config.cancelToken.throwIfRequested();
660
853
  }
854
+ if (config.signal && config.signal.aborted) {
855
+ throw new CanceledError$1();
856
+ }
661
857
  }
662
858
  var dispatchRequest$1 = function dispatchRequest(config) {
663
859
  throwIfCancellationRequested(config);
664
860
  config.headers = config.headers || {};
665
861
  config.data = transformData2.call(config, config.data, config.headers, config.transformRequest);
666
- config.headers = utils$3.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
667
- utils$3.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
862
+ config.headers = utils$4.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
863
+ utils$4.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
668
864
  delete config.headers[method];
669
865
  });
670
866
  var adapter = config.adapter || defaults$2.adapter;
@@ -682,185 +878,87 @@ var dispatchRequest$1 = function dispatchRequest(config) {
682
878
  return Promise.reject(reason);
683
879
  });
684
880
  };
685
- var utils$2 = utils$d;
881
+ var utils$3 = utils$h;
686
882
  var mergeConfig$2 = function mergeConfig(config1, config2) {
687
883
  config2 = config2 || {};
688
884
  var config = {};
689
- var valueFromConfig2Keys = ["url", "method", "data"];
690
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
691
- var defaultToConfig2Keys = [
692
- "baseURL",
693
- "transformRequest",
694
- "transformResponse",
695
- "paramsSerializer",
696
- "timeout",
697
- "timeoutMessage",
698
- "withCredentials",
699
- "adapter",
700
- "responseType",
701
- "xsrfCookieName",
702
- "xsrfHeaderName",
703
- "onUploadProgress",
704
- "onDownloadProgress",
705
- "decompress",
706
- "maxContentLength",
707
- "maxBodyLength",
708
- "maxRedirects",
709
- "transport",
710
- "httpAgent",
711
- "httpsAgent",
712
- "cancelToken",
713
- "socketPath",
714
- "responseEncoding"
715
- ];
716
- var directMergeKeys = ["validateStatus"];
717
885
  function getMergedValue(target, source2) {
718
- if (utils$2.isPlainObject(target) && utils$2.isPlainObject(source2)) {
719
- return utils$2.merge(target, source2);
720
- } else if (utils$2.isPlainObject(source2)) {
721
- return utils$2.merge({}, source2);
722
- } else if (utils$2.isArray(source2)) {
886
+ if (utils$3.isPlainObject(target) && utils$3.isPlainObject(source2)) {
887
+ return utils$3.merge(target, source2);
888
+ } else if (utils$3.isPlainObject(source2)) {
889
+ return utils$3.merge({}, source2);
890
+ } else if (utils$3.isArray(source2)) {
723
891
  return source2.slice();
724
892
  }
725
893
  return source2;
726
894
  }
727
895
  function mergeDeepProperties(prop) {
728
- if (!utils$2.isUndefined(config2[prop])) {
729
- config[prop] = getMergedValue(config1[prop], config2[prop]);
730
- } else if (!utils$2.isUndefined(config1[prop])) {
731
- config[prop] = getMergedValue(void 0, config1[prop]);
896
+ if (!utils$3.isUndefined(config2[prop])) {
897
+ return getMergedValue(config1[prop], config2[prop]);
898
+ } else if (!utils$3.isUndefined(config1[prop])) {
899
+ return getMergedValue(void 0, config1[prop]);
732
900
  }
733
901
  }
734
- utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
735
- if (!utils$2.isUndefined(config2[prop])) {
736
- config[prop] = getMergedValue(void 0, config2[prop]);
902
+ function valueFromConfig2(prop) {
903
+ if (!utils$3.isUndefined(config2[prop])) {
904
+ return getMergedValue(void 0, config2[prop]);
737
905
  }
738
- });
739
- utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
740
- utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
741
- if (!utils$2.isUndefined(config2[prop])) {
742
- config[prop] = getMergedValue(void 0, config2[prop]);
743
- } else if (!utils$2.isUndefined(config1[prop])) {
744
- config[prop] = getMergedValue(void 0, config1[prop]);
906
+ }
907
+ function defaultToConfig2(prop) {
908
+ if (!utils$3.isUndefined(config2[prop])) {
909
+ return getMergedValue(void 0, config2[prop]);
910
+ } else if (!utils$3.isUndefined(config1[prop])) {
911
+ return getMergedValue(void 0, config1[prop]);
745
912
  }
746
- });
747
- utils$2.forEach(directMergeKeys, function merge2(prop) {
913
+ }
914
+ function mergeDirectKeys(prop) {
748
915
  if (prop in config2) {
749
- config[prop] = getMergedValue(config1[prop], config2[prop]);
916
+ return getMergedValue(config1[prop], config2[prop]);
750
917
  } else if (prop in config1) {
751
- config[prop] = getMergedValue(void 0, config1[prop]);
752
- }
753
- });
754
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
755
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
756
- return axiosKeys.indexOf(key) === -1;
918
+ return getMergedValue(void 0, config1[prop]);
919
+ }
920
+ }
921
+ var mergeMap = {
922
+ "url": valueFromConfig2,
923
+ "method": valueFromConfig2,
924
+ "data": valueFromConfig2,
925
+ "baseURL": defaultToConfig2,
926
+ "transformRequest": defaultToConfig2,
927
+ "transformResponse": defaultToConfig2,
928
+ "paramsSerializer": defaultToConfig2,
929
+ "timeout": defaultToConfig2,
930
+ "timeoutMessage": defaultToConfig2,
931
+ "withCredentials": defaultToConfig2,
932
+ "adapter": defaultToConfig2,
933
+ "responseType": defaultToConfig2,
934
+ "xsrfCookieName": defaultToConfig2,
935
+ "xsrfHeaderName": defaultToConfig2,
936
+ "onUploadProgress": defaultToConfig2,
937
+ "onDownloadProgress": defaultToConfig2,
938
+ "decompress": defaultToConfig2,
939
+ "maxContentLength": defaultToConfig2,
940
+ "maxBodyLength": defaultToConfig2,
941
+ "beforeRedirect": defaultToConfig2,
942
+ "transport": defaultToConfig2,
943
+ "httpAgent": defaultToConfig2,
944
+ "httpsAgent": defaultToConfig2,
945
+ "cancelToken": defaultToConfig2,
946
+ "socketPath": defaultToConfig2,
947
+ "responseEncoding": defaultToConfig2,
948
+ "validateStatus": mergeDirectKeys
949
+ };
950
+ utils$3.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
951
+ var merge2 = mergeMap[prop] || mergeDeepProperties;
952
+ var configValue = merge2(prop);
953
+ utils$3.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
757
954
  });
758
- utils$2.forEach(otherKeys, mergeDeepProperties);
759
955
  return config;
760
956
  };
761
- const name = "axios";
762
- const version = "0.21.4";
763
- const description = "Promise based HTTP client for the browser and node.js";
764
- const main = "index.js";
765
- const scripts = {
766
- test: "grunt test",
767
- start: "node ./sandbox/server.js",
768
- build: "NODE_ENV=production grunt build",
769
- preversion: "npm test",
770
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
771
- postversion: "git push && git push --tags",
772
- examples: "node ./examples/server.js",
773
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
774
- fix: "eslint --fix lib/**/*.js"
775
- };
776
- const repository = {
777
- type: "git",
778
- url: "https://github.com/axios/axios.git"
779
- };
780
- const keywords = [
781
- "xhr",
782
- "http",
783
- "ajax",
784
- "promise",
785
- "node"
786
- ];
787
- const author = "Matt Zabriskie";
788
- const license = "MIT";
789
- const bugs = {
790
- url: "https://github.com/axios/axios/issues"
791
- };
792
- const homepage = "https://axios-http.com";
793
- const devDependencies = {
794
- coveralls: "^3.0.0",
795
- "es6-promise": "^4.2.4",
796
- grunt: "^1.3.0",
797
- "grunt-banner": "^0.6.0",
798
- "grunt-cli": "^1.2.0",
799
- "grunt-contrib-clean": "^1.1.0",
800
- "grunt-contrib-watch": "^1.0.0",
801
- "grunt-eslint": "^23.0.0",
802
- "grunt-karma": "^4.0.0",
803
- "grunt-mocha-test": "^0.13.3",
804
- "grunt-ts": "^6.0.0-beta.19",
805
- "grunt-webpack": "^4.0.2",
806
- "istanbul-instrumenter-loader": "^1.0.0",
807
- "jasmine-core": "^2.4.1",
808
- karma: "^6.3.2",
809
- "karma-chrome-launcher": "^3.1.0",
810
- "karma-firefox-launcher": "^2.1.0",
811
- "karma-jasmine": "^1.1.1",
812
- "karma-jasmine-ajax": "^0.1.13",
813
- "karma-safari-launcher": "^1.0.0",
814
- "karma-sauce-launcher": "^4.3.6",
815
- "karma-sinon": "^1.0.5",
816
- "karma-sourcemap-loader": "^0.3.8",
817
- "karma-webpack": "^4.0.2",
818
- "load-grunt-tasks": "^3.5.2",
819
- minimist: "^1.2.0",
820
- mocha: "^8.2.1",
821
- sinon: "^4.5.0",
822
- "terser-webpack-plugin": "^4.2.3",
823
- typescript: "^4.0.5",
824
- "url-search-params": "^0.10.0",
825
- webpack: "^4.44.2",
826
- "webpack-dev-server": "^3.11.0"
827
- };
828
- const browser = {
829
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
830
- };
831
- const jsdelivr = "dist/axios.min.js";
832
- const unpkg = "dist/axios.min.js";
833
- const typings = "./index.d.ts";
834
- const dependencies = {
835
- "follow-redirects": "^1.14.0"
836
- };
837
- const bundlesize = [
838
- {
839
- path: "./dist/axios.min.js",
840
- threshold: "5kB"
841
- }
842
- ];
843
- var require$$0 = {
844
- name,
845
- version,
846
- description,
847
- main,
848
- scripts,
849
- repository,
850
- keywords,
851
- author,
852
- license,
853
- bugs,
854
- homepage,
855
- devDependencies,
856
- browser,
857
- jsdelivr,
858
- unpkg,
859
- typings,
860
- dependencies,
861
- bundlesize
957
+ var data = {
958
+ "version": "0.27.2"
862
959
  };
863
- var pkg = require$$0;
960
+ var VERSION = data.version;
961
+ var AxiosError = AxiosError_1;
864
962
  var validators$1 = {};
865
963
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
866
964
  validators$1[type] = function validator2(thing) {
@@ -868,38 +966,24 @@ var validators$1 = {};
868
966
  };
869
967
  });
870
968
  var deprecatedWarnings = {};
871
- var currentVerArr = pkg.version.split(".");
872
- function isOlderVersion(version2, thanVersion) {
873
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
874
- var destVer = version2.split(".");
875
- for (var i = 0; i < 3; i++) {
876
- if (pkgVersionArr[i] > destVer[i]) {
877
- return true;
878
- } else if (pkgVersionArr[i] < destVer[i]) {
879
- return false;
880
- }
881
- }
882
- return false;
883
- }
884
- validators$1.transitional = function transitional(validator2, version2, message) {
885
- var isDeprecated = version2 && isOlderVersion(version2);
969
+ validators$1.transitional = function transitional2(validator2, version, message) {
886
970
  function formatMessage(opt, desc) {
887
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
971
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
888
972
  }
889
973
  return function(value, opt, opts) {
890
974
  if (validator2 === false) {
891
- throw new Error(formatMessage(opt, " has been removed in " + version2));
975
+ throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
892
976
  }
893
- if (isDeprecated && !deprecatedWarnings[opt]) {
977
+ if (version && !deprecatedWarnings[opt]) {
894
978
  deprecatedWarnings[opt] = true;
895
- console.warn(formatMessage(opt, " has been deprecated since v" + version2 + " and will be removed in the near future"));
979
+ console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
896
980
  }
897
981
  return validator2 ? validator2(value, opt, opts) : true;
898
982
  };
899
983
  };
900
984
  function assertOptions(options, schema, allowUnknown) {
901
985
  if (typeof options !== "object") {
902
- throw new TypeError("options must be an object");
986
+ throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
903
987
  }
904
988
  var keys = Object.keys(options);
905
989
  var i = keys.length;
@@ -910,25 +994,25 @@ function assertOptions(options, schema, allowUnknown) {
910
994
  var value = options[opt];
911
995
  var result = value === void 0 || validator2(value, opt, options);
912
996
  if (result !== true) {
913
- throw new TypeError("option " + opt + " must be " + result);
997
+ throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
914
998
  }
915
999
  continue;
916
1000
  }
917
1001
  if (allowUnknown !== true) {
918
- throw Error("Unknown option " + opt);
1002
+ throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
919
1003
  }
920
1004
  }
921
1005
  }
922
1006
  var validator$1 = {
923
- isOlderVersion,
924
1007
  assertOptions,
925
1008
  validators: validators$1
926
1009
  };
927
- var utils$1 = utils$d;
1010
+ var utils$2 = utils$h;
928
1011
  var buildURL2 = buildURL$2;
929
1012
  var InterceptorManager = InterceptorManager_1;
930
1013
  var dispatchRequest2 = dispatchRequest$1;
931
1014
  var mergeConfig$1 = mergeConfig$2;
1015
+ var buildFullPath2 = buildFullPath$2;
932
1016
  var validator = validator$1;
933
1017
  var validators = validator.validators;
934
1018
  function Axios$1(instanceConfig) {
@@ -938,12 +1022,12 @@ function Axios$1(instanceConfig) {
938
1022
  response: new InterceptorManager()
939
1023
  };
940
1024
  }
941
- Axios$1.prototype.request = function request(config) {
942
- if (typeof config === "string") {
943
- config = arguments[1] || {};
944
- config.url = arguments[0];
945
- } else {
1025
+ Axios$1.prototype.request = function request(configOrUrl, config) {
1026
+ if (typeof configOrUrl === "string") {
946
1027
  config = config || {};
1028
+ config.url = configOrUrl;
1029
+ } else {
1030
+ config = configOrUrl || {};
947
1031
  }
948
1032
  config = mergeConfig$1(this.defaults, config);
949
1033
  if (config.method) {
@@ -953,12 +1037,12 @@ Axios$1.prototype.request = function request(config) {
953
1037
  } else {
954
1038
  config.method = "get";
955
1039
  }
956
- var transitional2 = config.transitional;
957
- if (transitional2 !== void 0) {
958
- validator.assertOptions(transitional2, {
959
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
960
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
961
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
1040
+ var transitional3 = config.transitional;
1041
+ if (transitional3 !== void 0) {
1042
+ validator.assertOptions(transitional3, {
1043
+ silentJSONParsing: validators.transitional(validators.boolean),
1044
+ forcedJSONParsing: validators.transitional(validators.boolean),
1045
+ clarifyTimeoutError: validators.transitional(validators.boolean)
962
1046
  }, false);
963
1047
  }
964
1048
  var requestInterceptorChain = [];
@@ -1008,9 +1092,10 @@ Axios$1.prototype.request = function request(config) {
1008
1092
  };
1009
1093
  Axios$1.prototype.getUri = function getUri(config) {
1010
1094
  config = mergeConfig$1(this.defaults, config);
1011
- return buildURL2(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
1095
+ var fullPath = buildFullPath2(config.baseURL, config.url);
1096
+ return buildURL2(fullPath, config.params, config.paramsSerializer);
1012
1097
  };
1013
- utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
1098
+ utils$2.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
1014
1099
  Axios$1.prototype[method] = function(url, config) {
1015
1100
  return this.request(mergeConfig$1(config || {}, {
1016
1101
  method,
@@ -1019,25 +1104,24 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
1019
1104
  }));
1020
1105
  };
1021
1106
  });
1022
- utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
1023
- Axios$1.prototype[method] = function(url, data, config) {
1024
- return this.request(mergeConfig$1(config || {}, {
1025
- method,
1026
- url,
1027
- data
1028
- }));
1029
- };
1107
+ utils$2.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
1108
+ function generateHTTPMethod(isForm) {
1109
+ return function httpMethod(url, data2, config) {
1110
+ return this.request(mergeConfig$1(config || {}, {
1111
+ method,
1112
+ headers: isForm ? {
1113
+ "Content-Type": "multipart/form-data"
1114
+ } : {},
1115
+ url,
1116
+ data: data2
1117
+ }));
1118
+ };
1119
+ }
1120
+ Axios$1.prototype[method] = generateHTTPMethod();
1121
+ Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
1030
1122
  });
1031
1123
  var Axios_1 = Axios$1;
1032
- function Cancel$1(message) {
1033
- this.message = message;
1034
- }
1035
- Cancel$1.prototype.toString = function toString2() {
1036
- return "Cancel" + (this.message ? ": " + this.message : "");
1037
- };
1038
- Cancel$1.prototype.__CANCEL__ = true;
1039
- var Cancel_1 = Cancel$1;
1040
- var Cancel = Cancel_1;
1124
+ var CanceledError = CanceledError_1;
1041
1125
  function CancelToken(executor) {
1042
1126
  if (typeof executor !== "function") {
1043
1127
  throw new TypeError("executor must be a function.");
@@ -1047,11 +1131,32 @@ function CancelToken(executor) {
1047
1131
  resolvePromise = resolve;
1048
1132
  });
1049
1133
  var token = this;
1134
+ this.promise.then(function(cancel) {
1135
+ if (!token._listeners)
1136
+ return;
1137
+ var i;
1138
+ var l = token._listeners.length;
1139
+ for (i = 0; i < l; i++) {
1140
+ token._listeners[i](cancel);
1141
+ }
1142
+ token._listeners = null;
1143
+ });
1144
+ this.promise.then = function(onfulfilled) {
1145
+ var _resolve;
1146
+ var promise = new Promise(function(resolve) {
1147
+ token.subscribe(resolve);
1148
+ _resolve = resolve;
1149
+ }).then(onfulfilled);
1150
+ promise.cancel = function reject() {
1151
+ token.unsubscribe(_resolve);
1152
+ };
1153
+ return promise;
1154
+ };
1050
1155
  executor(function cancel(message) {
1051
1156
  if (token.reason) {
1052
1157
  return;
1053
1158
  }
1054
- token.reason = new Cancel(message);
1159
+ token.reason = new CanceledError(message);
1055
1160
  resolvePromise(token.reason);
1056
1161
  });
1057
1162
  }
@@ -1060,6 +1165,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1060
1165
  throw this.reason;
1061
1166
  }
1062
1167
  };
1168
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1169
+ if (this.reason) {
1170
+ listener(this.reason);
1171
+ return;
1172
+ }
1173
+ if (this._listeners) {
1174
+ this._listeners.push(listener);
1175
+ } else {
1176
+ this._listeners = [listener];
1177
+ }
1178
+ };
1179
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1180
+ if (!this._listeners) {
1181
+ return;
1182
+ }
1183
+ var index = this._listeners.indexOf(listener);
1184
+ if (index !== -1) {
1185
+ this._listeners.splice(index, 1);
1186
+ }
1187
+ };
1063
1188
  CancelToken.source = function source() {
1064
1189
  var cancel;
1065
1190
  var token = new CancelToken(function executor(c) {
@@ -1076,10 +1201,11 @@ var spread = function spread2(callback) {
1076
1201
  return callback.apply(null, arr);
1077
1202
  };
1078
1203
  };
1204
+ var utils$1 = utils$h;
1079
1205
  var isAxiosError = function isAxiosError2(payload) {
1080
- return typeof payload === "object" && payload.isAxiosError === true;
1206
+ return utils$1.isObject(payload) && payload.isAxiosError === true;
1081
1207
  };
1082
- var utils = utils$d;
1208
+ var utils = utils$h;
1083
1209
  var bind2 = bind$2;
1084
1210
  var Axios = Axios_1;
1085
1211
  var mergeConfig2 = mergeConfig$2;
@@ -1089,16 +1215,20 @@ function createInstance(defaultConfig) {
1089
1215
  var instance = bind2(Axios.prototype.request, context);
1090
1216
  utils.extend(instance, Axios.prototype, context);
1091
1217
  utils.extend(instance, context);
1218
+ instance.create = function create(instanceConfig) {
1219
+ return createInstance(mergeConfig2(defaultConfig, instanceConfig));
1220
+ };
1092
1221
  return instance;
1093
1222
  }
1094
1223
  var axios$1 = createInstance(defaults$1);
1095
1224
  axios$1.Axios = Axios;
1096
- axios$1.create = function create(instanceConfig) {
1097
- return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
1098
- };
1099
- axios$1.Cancel = Cancel_1;
1225
+ axios$1.CanceledError = CanceledError_1;
1100
1226
  axios$1.CancelToken = CancelToken_1;
1101
1227
  axios$1.isCancel = isCancel$1;
1228
+ axios$1.VERSION = data.version;
1229
+ axios$1.toFormData = toFormData_1;
1230
+ axios$1.AxiosError = AxiosError_1;
1231
+ axios$1.Cancel = axios$1.CanceledError;
1102
1232
  axios$1.all = function all(promises) {
1103
1233
  return Promise.all(promises);
1104
1234
  };
@@ -1116,22 +1246,22 @@ const BaseAPI = {
1116
1246
  makeRequest(config, opts) {
1117
1247
  config.data = JSON.stringify(config.data);
1118
1248
  config.headers = { "Content-Type": "application/json" };
1249
+ const wait = window.setTimeout(() => {
1250
+ if (!opts.skipLoader)
1251
+ window.VueBus.emit("Spinner-show");
1252
+ }, 200);
1119
1253
  return new Promise((resolve, reject) => {
1120
- const wait = window.setTimeout(() => {
1121
- if (!opts.skipLoader)
1122
- window.VueBus.emit("Spinner-show");
1123
- }, 200);
1124
- apiAxiosInstance(config).then((success) => {
1125
- window.clearTimeout(wait);
1126
- if (!opts.skipLoader)
1127
- window.VueBus.emit("Spinner-hide");
1128
- resolve(success.data);
1129
- }, (error) => {
1130
- window.clearTimeout(wait);
1131
- if (!opts.skipLoader)
1132
- window.VueBus.emit("Spinner-hide");
1133
- reject(error.response);
1134
- });
1254
+ setTimeout(() => {
1255
+ apiAxiosInstance(config).then((success) => {
1256
+ resolve(success.data);
1257
+ }, (err) => {
1258
+ reject(err);
1259
+ }).finally(() => {
1260
+ window.clearTimeout(wait);
1261
+ if (!opts.skipLoader)
1262
+ window.VueBus.emit("Spinner-hide");
1263
+ });
1264
+ }, (opts == null ? void 0 : opts.withDelay) ? opts.withDelay : 0);
1135
1265
  });
1136
1266
  },
1137
1267
  get(path, opts, params) {
@@ -1140,11 +1270,11 @@ const BaseAPI = {
1140
1270
  delete(path, opts) {
1141
1271
  return this.makeRequest({ url: path, method: "DELETE" }, opts);
1142
1272
  },
1143
- post(path, data, opts) {
1144
- return this.makeRequest({ url: path, data, method: "POST" }, opts);
1273
+ post(path, data2, opts) {
1274
+ return this.makeRequest({ url: path, data: data2, method: "POST" }, opts);
1145
1275
  },
1146
- put(path, data, opts) {
1147
- return this.makeRequest({ url: path, data, method: "PUT" }, opts);
1276
+ put(path, data2, opts) {
1277
+ return this.makeRequest({ url: path, data: data2, method: "PUT" }, opts);
1148
1278
  }
1149
1279
  };
1150
1280
  function _extends() {
@@ -1245,21 +1375,21 @@ var RenderStrategy;
1245
1375
  RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
1246
1376
  })(RenderStrategy || (RenderStrategy = {}));
1247
1377
  function render$8(_ref) {
1248
- var _ref$visible = _ref.visible, visible = _ref$visible === void 0 ? true : _ref$visible, _ref$features = _ref.features, features = _ref$features === void 0 ? Features.None : _ref$features, main2 = _objectWithoutPropertiesLoose(_ref, ["visible", "features"]);
1378
+ var _ref$visible = _ref.visible, visible = _ref$visible === void 0 ? true : _ref$visible, _ref$features = _ref.features, features = _ref$features === void 0 ? Features.None : _ref$features, main = _objectWithoutPropertiesLoose(_ref, ["visible", "features"]);
1249
1379
  if (visible)
1250
- return _render(main2);
1380
+ return _render(main);
1251
1381
  if (features & Features.Static) {
1252
- if (main2.props["static"])
1253
- return _render(main2);
1382
+ if (main.props["static"])
1383
+ return _render(main);
1254
1384
  }
1255
1385
  if (features & Features.RenderStrategy) {
1256
1386
  var _main$props$unmount, _match;
1257
- var strategy = ((_main$props$unmount = main2.props.unmount) != null ? _main$props$unmount : true) ? RenderStrategy.Unmount : RenderStrategy.Hidden;
1387
+ var strategy = ((_main$props$unmount = main.props.unmount) != null ? _main$props$unmount : true) ? RenderStrategy.Unmount : RenderStrategy.Hidden;
1258
1388
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function() {
1259
1389
  return null;
1260
1390
  }, _match[RenderStrategy.Hidden] = function() {
1261
- return _render(_extends({}, main2, {
1262
- props: _extends({}, main2.props, {
1391
+ return _render(_extends({}, main, {
1392
+ props: _extends({}, main.props, {
1263
1393
  hidden: true,
1264
1394
  style: {
1265
1395
  display: "none"
@@ -1268,17 +1398,17 @@ function render$8(_ref) {
1268
1398
  }));
1269
1399
  }, _match));
1270
1400
  }
1271
- return _render(main2);
1401
+ return _render(main);
1272
1402
  }
1273
1403
  function _render(_ref2) {
1274
- var props = _ref2.props, attrs = _ref2.attrs, slots = _ref2.slots, slot = _ref2.slot, name2 = _ref2.name;
1404
+ var props = _ref2.props, attrs = _ref2.attrs, slots = _ref2.slots, slot = _ref2.slot, name = _ref2.name;
1275
1405
  var _omit = omit(props, ["unmount", "static"]), as = _omit.as, passThroughProps = _objectWithoutPropertiesLoose(_omit, ["as"]);
1276
1406
  var children = slots["default"] == null ? void 0 : slots["default"](slot);
1277
1407
  if (as === "template") {
1278
1408
  if (Object.keys(passThroughProps).length > 0 || Object.keys(attrs).length > 0) {
1279
1409
  var _ref3 = children != null ? children : [], firstChild = _ref3[0], other = _ref3.slice(1);
1280
1410
  if (!isValidElement(firstChild) || other.length > 0) {
1281
- throw new Error(['Passing props on "template"!', "", "The current component <" + name2 + ' /> is rendering a "template".', "However we need to passthrough the following props:", Object.keys(passThroughProps).concat(Object.keys(attrs)).map(function(line) {
1411
+ throw new Error(['Passing props on "template"!', "", "The current component <" + name + ' /> is rendering a "template".', "However we need to passthrough the following props:", Object.keys(passThroughProps).concat(Object.keys(attrs)).map(function(line) {
1282
1412
  return " - " + line;
1283
1413
  }).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map(function(line) {
1284
1414
  return " - " + line;
@@ -1798,7 +1928,7 @@ function useInertOthers(container, enabled) {
1798
1928
  }
1799
1929
  var DescriptionContext = /* @__PURE__ */ Symbol("DescriptionContext");
1800
1930
  function useDescriptions(_temp) {
1801
- var _ref = _temp === void 0 ? {} : _temp, _ref$slot = _ref.slot, slot = _ref$slot === void 0 ? ref({}) : _ref$slot, _ref$name = _ref.name, name2 = _ref$name === void 0 ? "Description" : _ref$name, _ref$props = _ref.props, props = _ref$props === void 0 ? {} : _ref$props;
1931
+ var _ref = _temp === void 0 ? {} : _temp, _ref$slot = _ref.slot, slot = _ref$slot === void 0 ? ref({}) : _ref$slot, _ref$name = _ref.name, name = _ref$name === void 0 ? "Description" : _ref$name, _ref$props = _ref.props, props = _ref$props === void 0 ? {} : _ref$props;
1802
1932
  var descriptionIds = ref([]);
1803
1933
  function register(value) {
1804
1934
  descriptionIds.value.push(value);
@@ -1812,7 +1942,7 @@ function useDescriptions(_temp) {
1812
1942
  provide(DescriptionContext, {
1813
1943
  register,
1814
1944
  slot,
1815
- name: name2,
1945
+ name,
1816
1946
  props
1817
1947
  });
1818
1948
  return computed(function() {
@@ -2158,10 +2288,10 @@ function resolveType(type, as) {
2158
2288
  return "button";
2159
2289
  return void 0;
2160
2290
  }
2161
- function useResolveButtonType(data, refElement) {
2162
- var type = ref(resolveType(data.value.type, data.value.as));
2291
+ function useResolveButtonType(data2, refElement) {
2292
+ var type = ref(resolveType(data2.value.type, data2.value.as));
2163
2293
  onMounted(function() {
2164
- type.value = resolveType(data.value.type, data.value.as);
2294
+ type.value = resolveType(data2.value.type, data2.value.as);
2165
2295
  });
2166
2296
  watchEffect(function() {
2167
2297
  var _dom;
@@ -6324,22 +6454,22 @@ function FlatpickrInstance(element, instanceConfig) {
6324
6454
  return self.close();
6325
6455
  self.open(e);
6326
6456
  }
6327
- function triggerEvent(event, data) {
6457
+ function triggerEvent(event, data2) {
6328
6458
  if (self.config === void 0)
6329
6459
  return;
6330
6460
  const hooks = self.config[event];
6331
6461
  if (hooks !== void 0 && hooks.length > 0) {
6332
6462
  for (let i = 0; hooks[i] && i < hooks.length; i++)
6333
- hooks[i](self.selectedDates, self.input.value, self, data);
6463
+ hooks[i](self.selectedDates, self.input.value, self, data2);
6334
6464
  }
6335
6465
  if (event === "onChange") {
6336
6466
  self.input.dispatchEvent(createEvent("change"));
6337
6467
  self.input.dispatchEvent(createEvent("input"));
6338
6468
  }
6339
6469
  }
6340
- function createEvent(name2) {
6470
+ function createEvent(name) {
6341
6471
  const e = document.createEvent("Event");
6342
- e.initEvent(name2, true, true);
6472
+ e.initEvent(name, true, true);
6343
6473
  return e;
6344
6474
  }
6345
6475
  function isDateSelected(date) {
@@ -6780,7 +6910,7 @@ const _hoisted_5$b = [
6780
6910
  _hoisted_4$c
6781
6911
  ];
6782
6912
  const _hoisted_6$b = { class: "hidden md:flex" };
6783
- const _hoisted_7$8 = ["textContent", "onClick"];
6913
+ const _hoisted_7$a = ["textContent", "onClick"];
6784
6914
  const _hoisted_8$8 = { class: "w-0 flex-1 flex justify-end" };
6785
6915
  const _hoisted_9$8 = /* @__PURE__ */ createTextVNode(" Next ");
6786
6916
  const _hoisted_10$8 = /* @__PURE__ */ createElementVNode("svg", {
@@ -6853,7 +6983,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6853
6983
  key: i,
6854
6984
  textContent: toDisplayString(i),
6855
6985
  onClick: withModifiers(($event) => changePage(i), ["prevent"])
6856
- }, null, 10, _hoisted_7$8);
6986
+ }, null, 10, _hoisted_7$a);
6857
6987
  }), 128))
6858
6988
  ]),
6859
6989
  createElementVNode("div", _hoisted_8$8, [
@@ -6982,7 +7112,7 @@ const _hoisted_3$d = { class: "p-4" };
6982
7112
  const _hoisted_4$b = { class: "flex items-center" };
6983
7113
  const _hoisted_5$a = { class: "w-0 flex-1 flex justify-between" };
6984
7114
  const _hoisted_6$a = ["innerHTML"];
6985
- const _hoisted_7$7 = { class: "ml-4 flex-shrink-0 flex" };
7115
+ const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
6986
7116
  const _hoisted_8$7 = ["onClick"];
6987
7117
  const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
6988
7118
  class: "h-5 w-5",
@@ -7079,7 +7209,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7079
7209
  innerHTML: flash.message
7080
7210
  }, null, 8, _hoisted_6$a)
7081
7211
  ]),
7082
- createElementVNode("div", _hoisted_7$7, [
7212
+ createElementVNode("div", _hoisted_7$9, [
7083
7213
  createElementVNode("button", {
7084
7214
  onClick: ($event) => remove(flash),
7085
7215
  class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
@@ -7186,7 +7316,7 @@ const _hoisted_3$c = { class: "inline-block align-bottom bg-white rounded-lg tex
7186
7316
  const _hoisted_4$a = { class: "block absolute top-0 right-0 pt-4 pr-4" };
7187
7317
  const _hoisted_5$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
7188
7318
  const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
7189
- const _hoisted_7$6 = { class: "mt-3 sm:mt-0 sm:text-left" };
7319
+ const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
7190
7320
  const _hoisted_8$6 = { class: "mt-2" };
7191
7321
  const _hoisted_9$6 = {
7192
7322
  key: 0,
@@ -7264,7 +7394,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
7264
7394
  ])
7265
7395
  ]),
7266
7396
  createElementVNode("div", _hoisted_6$9, [
7267
- createElementVNode("div", _hoisted_7$6, [
7397
+ createElementVNode("div", _hoisted_7$8, [
7268
7398
  createVNode(unref(DialogTitle), {
7269
7399
  as: "h3",
7270
7400
  class: "text-center text-lg leading-6 font-medium text-gray-900",
@@ -7465,7 +7595,7 @@ const _hoisted_3$b = { class: "absolute top-0 right-0 -mr-12 pt-2" };
7465
7595
  const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
7466
7596
  const _hoisted_5$8 = { class: "flex-shrink-0 flex justify-center px-4" };
7467
7597
  const _hoisted_6$8 = ["src"];
7468
- const _hoisted_7$5 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
7598
+ const _hoisted_7$7 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
7469
7599
  const _hoisted_8$5 = { class: "px-2 space-y-1" };
7470
7600
  const _hoisted_9$5 = ["href", "target"];
7471
7601
  const _hoisted_10$5 = /* @__PURE__ */ createElementVNode("div", {
@@ -7577,7 +7707,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7577
7707
  alt: "Logo"
7578
7708
  }, null, 8, _hoisted_6$8)
7579
7709
  ]),
7580
- createElementVNode("div", _hoisted_7$5, [
7710
+ createElementVNode("div", _hoisted_7$7, [
7581
7711
  createElementVNode("nav", _hoisted_8$5, [
7582
7712
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
7583
7713
  return openBlock(), createElementBlock("a", {
@@ -7957,7 +8087,7 @@ const _hoisted_3$a = { class: "w-screen max-w-md" };
7957
8087
  const _hoisted_4$8 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7958
8088
  const _hoisted_5$7 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7959
8089
  const _hoisted_6$7 = { class: "flex items-center justify-between" };
7960
- const _hoisted_7$4 = { class: "ml-3 h-7 flex items-center" };
8090
+ const _hoisted_7$6 = { class: "ml-3 h-7 flex items-center" };
7961
8091
  const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
7962
8092
  const _hoisted_9$4 = { class: "mt-1" };
7963
8093
  const _hoisted_10$4 = ["textContent"];
@@ -8013,7 +8143,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
8013
8143
  class: "text-white",
8014
8144
  textContent: toDisplayString(__props.header)
8015
8145
  }, null, 8, ["textContent"]),
8016
- createElementVNode("div", _hoisted_7$4, [
8146
+ createElementVNode("div", _hoisted_7$6, [
8017
8147
  createElementVNode("button", {
8018
8148
  class: "bg-blue-700 rounded-md text-blue-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",
8019
8149
  onClick: _cache[0] || (_cache[0] = ($event) => close2())
@@ -8089,7 +8219,7 @@ const _hoisted_3$8 = { class: "flex justify-between h-16" };
8089
8219
  const _hoisted_4$7 = { class: "flex" };
8090
8220
  const _hoisted_5$6 = { class: "flex-shrink-0 flex items-center" };
8091
8221
  const _hoisted_6$6 = ["src"];
8092
- const _hoisted_7$3 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
8222
+ const _hoisted_7$5 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
8093
8223
  const _hoisted_8$3 = ["href", "aria-current"];
8094
8224
  const _hoisted_9$3 = { class: "hidden sm:ml-6 sm:flex sm:items-center" };
8095
8225
  const _hoisted_10$3 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open user menu", -1);
@@ -8139,7 +8269,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8139
8269
  alt: "XY Trees"
8140
8270
  }, null, 8, _hoisted_6$6)
8141
8271
  ]),
8142
- createElementVNode("div", _hoisted_7$3, [
8272
+ createElementVNode("div", _hoisted_7$5, [
8143
8273
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
8144
8274
  return openBlock(), createElementBlock("a", {
8145
8275
  key: item.name,
@@ -8293,7 +8423,7 @@ const _hoisted_3$7 = { class: "inline-block min-w-full py-2 align-middle sm:px-6
8293
8423
  const _hoisted_4$6 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
8294
8424
  const _hoisted_5$5 = { class: "min-w-full divide-y divide-gray-200" };
8295
8425
  const _hoisted_6$5 = ["textContent"];
8296
- const _hoisted_7$2 = { class: "bg-white divide-y divide-gray-200" };
8426
+ const _hoisted_7$4 = { class: "bg-white divide-y divide-gray-200" };
8297
8427
  const _hoisted_8$2 = ["textContent"];
8298
8428
  const _hoisted_9$2 = { key: 0 };
8299
8429
  const _hoisted_10$2 = ["colspan"];
@@ -8329,7 +8459,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8329
8459
  }), 128))
8330
8460
  ])
8331
8461
  ]),
8332
- createElementVNode("tbody", _hoisted_7$2, [
8462
+ createElementVNode("tbody", _hoisted_7$4, [
8333
8463
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.items, (item, rowIdx) => {
8334
8464
  return openBlock(), createElementBlock("tr", {
8335
8465
  key: item.id ? item.id : rowIdx
@@ -8381,10 +8511,10 @@ const _hoisted_5$4 = {
8381
8511
  const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
8382
8512
  /* @__PURE__ */ createElementVNode("span", { class: "w-full h-full rounded-full bg-green-100" })
8383
8513
  ], -1);
8384
- const _hoisted_7$1 = /* @__PURE__ */ createElementVNode("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1);
8514
+ const _hoisted_7$3 = /* @__PURE__ */ createElementVNode("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1);
8385
8515
  const _hoisted_8$1 = [
8386
8516
  _hoisted_6$4,
8387
- _hoisted_7$1
8517
+ _hoisted_7$3
8388
8518
  ];
8389
8519
  const _hoisted_9$1 = {
8390
8520
  key: 2,
@@ -8480,7 +8610,7 @@ const _hoisted_6$3 = {
8480
8610
  key: 1,
8481
8611
  class: "w-full max-w-lg lg:max-w-xs"
8482
8612
  };
8483
- const _hoisted_7 = { class: "relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto" };
8613
+ const _hoisted_7$2 = { class: "relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto" };
8484
8614
  const _hoisted_8 = { class: "min-w-full" };
8485
8615
  const _hoisted_9 = { key: 0 };
8486
8616
  const _hoisted_10 = ["onClick"];
@@ -8651,7 +8781,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8651
8781
  }, null, 8, ["modelValue"])
8652
8782
  ])) : createCommentVNode("", true)
8653
8783
  ]),
8654
- createElementVNode("div", _hoisted_7, [
8784
+ createElementVNode("div", _hoisted_7$2, [
8655
8785
  createElementVNode("table", _hoisted_8, [
8656
8786
  createElementVNode("thead", null, [
8657
8787
  createElementVNode("tr", null, [
@@ -8905,9 +9035,10 @@ const _hoisted_2$2 = {
8905
9035
  class: "space-y-0.5"
8906
9036
  };
8907
9037
  const _hoisted_3$2 = { key: 0 };
8908
- const _hoisted_4$2 = { class: "flex items-center h-5" };
8909
- const _hoisted_5$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
8910
- const _hoisted_6$2 = { class: "ml-3" };
9038
+ const _hoisted_4$2 = { class: "flex" };
9039
+ const _hoisted_5$2 = { class: "flex items-center h-5" };
9040
+ const _hoisted_6$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
9041
+ const _hoisted_7$1 = { class: "ml-3" };
8911
9042
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8912
9043
  props: {
8913
9044
  options: null,
@@ -8956,51 +9087,53 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8956
9087
  id: `${unref(uuid)}-help`
8957
9088
  }, null, 8, ["text", "id"])
8958
9089
  ])) : createCommentVNode("", true),
8959
- createElementVNode("div", {
8960
- class: normalizeClass(["grid gap-4", {
8961
- "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
8962
- "sm:grid-cols-2": __props.columns === 2,
8963
- "sm:grid-cols-3": __props.columns === 3,
8964
- "sm:grid-cols-4": __props.columns === 4
8965
- }])
8966
- }, [
8967
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8968
- return openBlock(), createElementBlock("div", {
8969
- key: option.value,
8970
- class: "flex items-start"
8971
- }, [
8972
- createElementVNode("div", _hoisted_4$2, [
8973
- createElementVNode("input", mergeProps({
8974
- id: unref(uuid),
8975
- "aria-labelledby": `${unref(uuid)}-${index}-label`,
8976
- "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
8977
- checked: __props.modelValue.includes(option.value),
8978
- disabled: option.disabled === true ? true : void 0,
8979
- class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8980
- type: "checkbox"
8981
- }, __spreadValues({
8982
- onChange: ($event) => {
8983
- onChange($event.target.checked, option.value);
8984
- }
8985
- }, _ctx.$attrs)), null, 16, _hoisted_5$2)
8986
- ]),
8987
- createElementVNode("div", _hoisted_6$2, [
8988
- createVNode(_sfc_main$s, {
8989
- class: "mt-auto",
8990
- disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
8991
- id: `${unref(uuid)}-${index}-label`,
8992
- for: unref(uuid),
8993
- label: option.label
8994
- }, null, 8, ["disabled", "id", "for", "label"]),
8995
- createVNode(_sfc_main$r, {
8996
- class: "-mt-1",
8997
- id: `${unref(uuid)}-${index}-help`,
8998
- text: option.help
8999
- }, null, 8, ["id", "text"])
9000
- ])
9001
- ]);
9002
- }), 128))
9003
- ], 2)
9090
+ createElementVNode("div", _hoisted_4$2, [
9091
+ createElementVNode("div", {
9092
+ class: normalizeClass(["grid gap-4", {
9093
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
9094
+ "sm:grid-cols-2": __props.columns === 2,
9095
+ "sm:grid-cols-3": __props.columns === 3,
9096
+ "sm:grid-cols-4": __props.columns === 4
9097
+ }])
9098
+ }, [
9099
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
9100
+ return openBlock(), createElementBlock("div", {
9101
+ key: option.value,
9102
+ class: "flex items-start"
9103
+ }, [
9104
+ createElementVNode("div", _hoisted_5$2, [
9105
+ createElementVNode("input", mergeProps({
9106
+ id: `${unref(uuid)}-${index}`,
9107
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
9108
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
9109
+ checked: __props.modelValue.includes(option.value),
9110
+ disabled: option.disabled === true ? true : void 0,
9111
+ class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
9112
+ type: "checkbox"
9113
+ }, __spreadValues({
9114
+ onChange: ($event) => {
9115
+ onChange($event.target.checked, option.value);
9116
+ }
9117
+ }, _ctx.$attrs)), null, 16, _hoisted_6$2)
9118
+ ]),
9119
+ createElementVNode("div", _hoisted_7$1, [
9120
+ createVNode(_sfc_main$s, {
9121
+ class: "mt-auto",
9122
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
9123
+ id: `${unref(uuid)}-${index}-label`,
9124
+ for: `${unref(uuid)}-${index}`,
9125
+ label: option.label
9126
+ }, null, 8, ["disabled", "id", "for", "label"]),
9127
+ createVNode(_sfc_main$r, {
9128
+ class: "-mt-1",
9129
+ id: `${unref(uuid)}-${index}-help`,
9130
+ text: option.help
9131
+ }, null, 8, ["id", "text"])
9132
+ ])
9133
+ ]);
9134
+ }), 128))
9135
+ ], 2)
9136
+ ])
9004
9137
  ], 8, _hoisted_1$3);
9005
9138
  };
9006
9139
  }
@@ -9011,9 +9144,10 @@ const _hoisted_2$1 = {
9011
9144
  class: "space-y-0.5"
9012
9145
  };
9013
9146
  const _hoisted_3$1 = { key: 0 };
9014
- const _hoisted_4$1 = { class: "flex items-center h-5" };
9015
- const _hoisted_5$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
9016
- const _hoisted_6$1 = { class: "ml-3" };
9147
+ const _hoisted_4$1 = { class: "" };
9148
+ const _hoisted_5$1 = { class: "flex items-center h-5" };
9149
+ const _hoisted_6$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
9150
+ const _hoisted_7 = { class: "ml-3" };
9017
9151
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
9018
9152
  props: {
9019
9153
  options: null,
@@ -9053,53 +9187,55 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
9053
9187
  id: `${unref(uuid)}-help`
9054
9188
  }, null, 8, ["text", "id"])
9055
9189
  ])) : createCommentVNode("", true),
9056
- createElementVNode("div", {
9057
- class: normalizeClass(["grid gap-4", {
9058
- "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
9059
- "sm:grid-cols-2": __props.columns === 2,
9060
- "sm:grid-cols-3": __props.columns === 3,
9061
- "sm:grid-cols-4": __props.columns === 4
9062
- }])
9063
- }, [
9064
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
9065
- return openBlock(), createElementBlock("div", {
9066
- key: option.value,
9067
- class: "flex items-start"
9068
- }, [
9069
- createElementVNode("div", _hoisted_4$1, [
9070
- createElementVNode("input", mergeProps({
9071
- "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
9072
- "aria-labelledby": `${unref(uuid)}-${index}-label`,
9073
- checked: __props.modelValue === option.value,
9074
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9075
- disabled: option.disabled === true ? true : void 0,
9076
- id: `${unref(uuid)}-${index}`,
9077
- name: unref(uuid),
9078
- type: "radio",
9079
- value: option.value
9080
- }, __spreadValues({
9081
- onChange: () => {
9082
- emits("update:modelValue", option.value);
9083
- }
9084
- }, _ctx.$attrs)), null, 16, _hoisted_5$1)
9085
- ]),
9086
- createElementVNode("div", _hoisted_6$1, [
9087
- createVNode(_sfc_main$s, {
9088
- class: "mt-auto",
9089
- disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
9090
- id: `${unref(uuid)}-${index}-label`,
9091
- for: unref(uuid),
9092
- label: option.label
9093
- }, null, 8, ["disabled", "id", "for", "label"]),
9094
- createVNode(_sfc_main$r, {
9095
- class: "-mt-1",
9096
- id: `${unref(uuid)}-${index}-help`,
9097
- text: option.help
9098
- }, null, 8, ["id", "text"])
9099
- ])
9100
- ]);
9101
- }), 128))
9102
- ], 2)
9190
+ createElementVNode("div", _hoisted_4$1, [
9191
+ createElementVNode("div", {
9192
+ class: normalizeClass(["grid gap-4", {
9193
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
9194
+ "sm:grid-cols-2": __props.columns === 2,
9195
+ "sm:grid-cols-3": __props.columns === 3,
9196
+ "sm:grid-cols-4": __props.columns === 4
9197
+ }])
9198
+ }, [
9199
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
9200
+ return openBlock(), createElementBlock("div", {
9201
+ key: option.value,
9202
+ class: "flex items-start"
9203
+ }, [
9204
+ createElementVNode("div", _hoisted_5$1, [
9205
+ createElementVNode("input", mergeProps({
9206
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
9207
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
9208
+ checked: __props.modelValue === option.value,
9209
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9210
+ disabled: option.disabled === true ? true : void 0,
9211
+ id: `${unref(uuid)}-${index}`,
9212
+ name: unref(uuid),
9213
+ type: "radio",
9214
+ value: option.value
9215
+ }, __spreadValues({
9216
+ onChange: () => {
9217
+ emits("update:modelValue", option.value);
9218
+ }
9219
+ }, _ctx.$attrs)), null, 16, _hoisted_6$1)
9220
+ ]),
9221
+ createElementVNode("div", _hoisted_7, [
9222
+ createVNode(_sfc_main$s, {
9223
+ class: "mt-auto",
9224
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
9225
+ id: `${unref(uuid)}-${index}-label`,
9226
+ for: `${unref(uuid)}-${index}`,
9227
+ label: option.label
9228
+ }, null, 8, ["disabled", "id", "for", "label"]),
9229
+ createVNode(_sfc_main$r, {
9230
+ class: "-mt-1",
9231
+ id: `${unref(uuid)}-${index}-help`,
9232
+ text: option.help
9233
+ }, null, 8, ["id", "text"])
9234
+ ])
9235
+ ]);
9236
+ }), 128))
9237
+ ], 2)
9238
+ ])
9103
9239
  ], 8, _hoisted_1$2);
9104
9240
  };
9105
9241
  }
@@ -9281,9 +9417,82 @@ var components = /* @__PURE__ */ Object.freeze({
9281
9417
  TextArea: _sfc_main$1,
9282
9418
  YesOrNoRadio: _sfc_main
9283
9419
  });
9420
+ function useBaseAPI(path, method = "GET", initOpts = {}, initConfig = {}) {
9421
+ const result = ref();
9422
+ const error = shallowRef();
9423
+ const hasFetched = ref(false);
9424
+ const isFinished = ref(false);
9425
+ const isLoading = ref(false);
9426
+ const isAborted = ref(false);
9427
+ let requestCount = 0;
9428
+ let controller;
9429
+ const abort = () => {
9430
+ if (controller !== void 0) {
9431
+ controller.abort();
9432
+ }
9433
+ };
9434
+ const execute = (data2 = {}, execOpts = {}, execConfig = {}) => {
9435
+ requestCount++;
9436
+ const count = requestCount;
9437
+ controller = new AbortController();
9438
+ isAborted.value = false;
9439
+ isFinished.value = false;
9440
+ isLoading.value = true;
9441
+ const requestConfig = __spreadValues(__spreadProps(__spreadValues({}, initConfig), {
9442
+ data: !["GET", "get"].includes(method) ? data2 : {},
9443
+ method,
9444
+ params: ["GET", "get"].includes(method) ? data2 : {},
9445
+ signal: controller.signal,
9446
+ url: path
9447
+ }), execConfig);
9448
+ return BaseAPI.makeRequest(requestConfig, __spreadValues(__spreadValues({}, initOpts), execOpts)).then((success) => {
9449
+ result.value = success;
9450
+ error.value = void 0;
9451
+ isAborted.value = false;
9452
+ return success;
9453
+ }, (err) => {
9454
+ error.value = err;
9455
+ if (axios.isCancel(err)) {
9456
+ isAborted.value = true;
9457
+ }
9458
+ throw err;
9459
+ }).finally(() => {
9460
+ if (count == requestCount) {
9461
+ isFinished.value = true;
9462
+ isLoading.value = false;
9463
+ }
9464
+ hasFetched.value = true;
9465
+ });
9466
+ };
9467
+ if ((initOpts == null ? void 0 : initOpts.immediate) && initOpts.immediate === true) {
9468
+ execute();
9469
+ }
9470
+ return {
9471
+ result,
9472
+ error,
9473
+ isFinished,
9474
+ isLoading,
9475
+ isAborted,
9476
+ hasFetched,
9477
+ abort,
9478
+ execute
9479
+ };
9480
+ }
9481
+ function useBaseAPIGet(url, initOpts = {}, initConfig = {}) {
9482
+ return useBaseAPI(url, "GET", initOpts, initConfig);
9483
+ }
9484
+ function useBaseAPIDelete(url, initOpts = {}, initConfig = {}) {
9485
+ return useBaseAPI(url, "DELETE", initOpts, initConfig);
9486
+ }
9487
+ function useBaseAPIPost(url, initOpts = {}, initConfig = {}) {
9488
+ return useBaseAPI(url, "POST", initOpts, initConfig);
9489
+ }
9490
+ function useBaseAPIPut(url, initOpts = {}, initConfig = {}) {
9491
+ return useBaseAPI(url, "PUT", initOpts, initConfig);
9492
+ }
9284
9493
  const install = function installTrees(app) {
9285
9494
  Object.entries(components).forEach(([componentName, component]) => {
9286
9495
  app.component(componentName, component);
9287
9496
  });
9288
9497
  };
9289
- export { _sfc_main$v as ActionsDropdown, BaseAPI, _sfc_main$q as BaseInput, _sfc_main$u as Cards, _sfc_main$5 as Checkbox, _sfc_main$t as ContentModal, _sfc_main$n as DateFilter, _sfc_main$p as DateRangePicker, _sfc_main$l as DetailList, _sfc_main$k as DownloadCell, _sfc_main$4 as FieldsetLegend, _sfc_main$j as Flash, _sfc_main$r as InputHelp, _sfc_main$s as InputLabel, _sfc_main$i as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$m as Paginator, _sfc_main$f as Popover, PopoverContent, _sfc_main$f as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$o as Select, _sfc_main$g as SidebarLayout, _sfc_main$d as Slideover, _sfc_main$h as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main$c as Tooltip, _sfc_main as YesOrNoRadio, install as default };
9498
+ export { _sfc_main$v as ActionsDropdown, BaseAPI, _sfc_main$q as BaseInput, _sfc_main$u as Cards, _sfc_main$5 as Checkbox, _sfc_main$t as ContentModal, _sfc_main$n as DateFilter, _sfc_main$p as DateRangePicker, _sfc_main$l as DetailList, _sfc_main$k as DownloadCell, _sfc_main$4 as FieldsetLegend, _sfc_main$j as Flash, _sfc_main$r as InputHelp, _sfc_main$s as InputLabel, _sfc_main$i as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$m as Paginator, _sfc_main$f as Popover, PopoverContent, _sfc_main$f as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$o as Select, _sfc_main$g as SidebarLayout, _sfc_main$d as Slideover, _sfc_main$h as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main$c as Tooltip, _sfc_main as YesOrNoRadio, install as default, useBaseAPI, useBaseAPIDelete, useBaseAPIGet, useBaseAPIPost, useBaseAPIPut };