@quidgest/chatbot 0.0.4 → 0.0.6

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, h, getCurrentInstance, computed, inject, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, Fragment, createTextVNode, toDisplayString, renderSlot, toRef, mergeModels, useModel, createBlock, withCtx, renderList, resolveDynamicComponent, ref, normalizeProps, mergeProps, reactive, watch, onBeforeUnmount, onMounted, nextTick, Teleport, Transition, withKeys, createSlots, withDirectives, vModelDynamic, guardReactiveProps, provide, isRef } from "vue";
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, getCurrentInstance, inject, ref, provide, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, Fragment, createTextVNode, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, h as h$4, mergeProps, mergeModels, useModel, createSlots, withCtx, withDirectives, vModelDynamic, normalizeProps, guardReactiveProps, onMounted, nextTick, watch, renderList, isRef, withKeys } from "vue";
2
2
  function bind(fn, thisArg) {
3
3
  return function wrap() {
4
4
  return fn.apply(thisArg, arguments);
@@ -58,21 +58,21 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
58
58
  if (obj === null || typeof obj === "undefined") {
59
59
  return;
60
60
  }
61
- let i;
62
- let l;
61
+ let i2;
62
+ let l2;
63
63
  if (typeof obj !== "object") {
64
64
  obj = [obj];
65
65
  }
66
66
  if (isArray(obj)) {
67
- for (i = 0, l = obj.length; i < l; i++) {
68
- fn.call(null, obj[i], i, obj);
67
+ for (i2 = 0, l2 = obj.length; i2 < l2; i2++) {
68
+ fn.call(null, obj[i2], i2, obj);
69
69
  }
70
70
  } else {
71
71
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
72
72
  const len = keys.length;
73
73
  let key;
74
- for (i = 0; i < len; i++) {
75
- key = keys[i];
74
+ for (i2 = 0; i2 < len; i2++) {
75
+ key = keys[i2];
76
76
  fn.call(null, obj[key], key, obj);
77
77
  }
78
78
  }
@@ -80,10 +80,10 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
80
80
  function findKey(obj, key) {
81
81
  key = key.toLowerCase();
82
82
  const keys = Object.keys(obj);
83
- let i = keys.length;
83
+ let i2 = keys.length;
84
84
  let _key;
85
- while (i-- > 0) {
86
- _key = keys[i];
85
+ while (i2-- > 0) {
86
+ _key = keys[i2];
87
87
  if (key === _key.toLowerCase()) {
88
88
  return _key;
89
89
  }
@@ -111,20 +111,20 @@ function merge() {
111
111
  result[targetKey] = val;
112
112
  }
113
113
  };
114
- for (let i = 0, l = arguments.length; i < l; i++) {
115
- arguments[i] && forEach(arguments[i], assignValue);
114
+ for (let i2 = 0, l2 = arguments.length; i2 < l2; i2++) {
115
+ arguments[i2] && forEach(arguments[i2], assignValue);
116
116
  }
117
117
  return result;
118
118
  }
119
- const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
120
- forEach(b, (val, key) => {
119
+ const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
120
+ forEach(b2, (val, key) => {
121
121
  if (thisArg && isFunction(val)) {
122
- a[key] = bind(val, thisArg);
122
+ a2[key] = bind(val, thisArg);
123
123
  } else {
124
- a[key] = val;
124
+ a2[key] = val;
125
125
  }
126
126
  }, { allOwnKeys });
127
- return a;
127
+ return a2;
128
128
  };
129
129
  const stripBOM = (content) => {
130
130
  if (content.charCodeAt(0) === 65279) {
@@ -142,7 +142,7 @@ const inherits = (constructor, superConstructor, props, descriptors2) => {
142
142
  };
143
143
  const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
144
144
  let props;
145
- let i;
145
+ let i2;
146
146
  let prop;
147
147
  const merged = {};
148
148
  destObj = destObj || {};
@@ -150,9 +150,9 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
150
150
  return destObj;
151
151
  do {
152
152
  props = Object.getOwnPropertyNames(sourceObj);
153
- i = props.length;
154
- while (i-- > 0) {
155
- prop = props[i];
153
+ i2 = props.length;
154
+ while (i2-- > 0) {
155
+ prop = props[i2];
156
156
  if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
157
157
  destObj[prop] = sourceObj[prop];
158
158
  merged[prop] = true;
@@ -176,12 +176,12 @@ const toArray = (thing) => {
176
176
  return null;
177
177
  if (isArray(thing))
178
178
  return thing;
179
- let i = thing.length;
180
- if (!isNumber(i))
179
+ let i2 = thing.length;
180
+ if (!isNumber(i2))
181
181
  return null;
182
- const arr = new Array(i);
183
- while (i-- > 0) {
184
- arr[i] = thing[i];
182
+ const arr = new Array(i2);
183
+ while (i2-- > 0) {
184
+ arr[i2] = thing[i2];
185
185
  }
186
186
  return arr;
187
187
  };
@@ -211,7 +211,7 @@ const isHTMLForm = kindOfTest("HTMLFormElement");
211
211
  const toCamelCase = (str) => {
212
212
  return str.toLowerCase().replace(
213
213
  /[-_\s]([a-z\d])(\w*)/g,
214
- function replacer(m, p1, p2) {
214
+ function replacer(m2, p1, p2) {
215
215
  return p1.toUpperCase() + p2;
216
216
  }
217
217
  );
@@ -285,19 +285,19 @@ function isSpecCompliantForm(thing) {
285
285
  }
286
286
  const toJSONObject = (obj) => {
287
287
  const stack = new Array(10);
288
- const visit = (source, i) => {
288
+ const visit = (source, i2) => {
289
289
  if (isObject(source)) {
290
290
  if (stack.indexOf(source) >= 0) {
291
291
  return;
292
292
  }
293
293
  if (!("toJSON" in source)) {
294
- stack[i] = source;
294
+ stack[i2] = source;
295
295
  const target = isArray(source) ? [] : {};
296
296
  forEach(source, (value, key) => {
297
- const reducedValue = visit(value, i + 1);
297
+ const reducedValue = visit(value, i2 + 1);
298
298
  !isUndefined(reducedValue) && (target[key] = reducedValue);
299
299
  });
300
- stack[i] = void 0;
300
+ stack[i2] = void 0;
301
301
  return target;
302
302
  }
303
303
  }
@@ -440,9 +440,9 @@ function removeBrackets(key) {
440
440
  function renderKey(path, key, dots) {
441
441
  if (!path)
442
442
  return key;
443
- return path.concat(key).map(function each(token, i) {
443
+ return path.concat(key).map(function each(token, i2) {
444
444
  token = removeBrackets(token);
445
- return !dots && i ? "[" + token + "]" : token;
445
+ return !dots && i2 ? "[" + token + "]" : token;
446
446
  }).join(dots ? "." : "");
447
447
  }
448
448
  function isFlatArray(arr) {
@@ -712,11 +712,11 @@ function parsePropPath(name) {
712
712
  function arrayToObject(arr) {
713
713
  const obj = {};
714
714
  const keys = Object.keys(arr);
715
- let i;
715
+ let i2;
716
716
  const len = keys.length;
717
717
  let key;
718
- for (i = 0; i < len; i++) {
719
- key = keys[i];
718
+ for (i2 = 0; i2 < len; i2++) {
719
+ key = keys[i2];
720
720
  obj[key] = arr[key];
721
721
  }
722
722
  return obj;
@@ -760,9 +760,9 @@ function stringifySafely(rawValue, parser, encoder) {
760
760
  try {
761
761
  (parser || JSON.parse)(rawValue);
762
762
  return utils$1.trim(rawValue);
763
- } catch (e) {
764
- if (e.name !== "SyntaxError") {
765
- throw e;
763
+ } catch (e2) {
764
+ if (e2.name !== "SyntaxError") {
765
+ throw e2;
766
766
  }
767
767
  }
768
768
  }
@@ -821,12 +821,12 @@ const defaults = {
821
821
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
822
822
  try {
823
823
  return JSON.parse(data);
824
- } catch (e) {
824
+ } catch (e2) {
825
825
  if (strictJSONParsing) {
826
- if (e.name === "SyntaxError") {
827
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
826
+ if (e2.name === "SyntaxError") {
827
+ throw AxiosError.from(e2, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
828
828
  }
829
- throw e;
829
+ throw e2;
830
830
  }
831
831
  }
832
832
  }
@@ -882,11 +882,11 @@ const parseHeaders = (rawHeaders) => {
882
882
  const parsed = {};
883
883
  let key;
884
884
  let val;
885
- let i;
885
+ let i2;
886
886
  rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
887
- i = line.indexOf(":");
888
- key = line.substring(0, i).trim().toLowerCase();
889
- val = line.substring(i + 1).trim();
887
+ i2 = line.indexOf(":");
888
+ key = line.substring(0, i2).trim().toLowerCase();
889
+ val = line.substring(i2 + 1).trim();
890
890
  if (!key || parsed[key] && ignoreDuplicateOf[key]) {
891
891
  return;
892
892
  }
@@ -1032,10 +1032,10 @@ class AxiosHeaders {
1032
1032
  }
1033
1033
  clear(matcher) {
1034
1034
  const keys = Object.keys(this);
1035
- let i = keys.length;
1035
+ let i2 = keys.length;
1036
1036
  let deleted = false;
1037
- while (i--) {
1038
- const key = keys[i];
1037
+ while (i2--) {
1038
+ const key = keys[i2];
1039
1039
  if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1040
1040
  delete this[key];
1041
1041
  deleted = true;
@@ -1255,11 +1255,11 @@ function speedometer(samplesCount, min) {
1255
1255
  }
1256
1256
  bytes[head] = chunkLength;
1257
1257
  timestamps[head] = now;
1258
- let i = tail;
1258
+ let i2 = tail;
1259
1259
  let bytesCount = 0;
1260
- while (i !== head) {
1261
- bytesCount += bytes[i++];
1262
- i = i % samplesCount;
1260
+ while (i2 !== head) {
1261
+ bytesCount += bytes[i2++];
1262
+ i2 = i2 % samplesCount;
1263
1263
  }
1264
1264
  head = (head + 1) % samplesCount;
1265
1265
  if (head === tail) {
@@ -1275,9 +1275,9 @@ function speedometer(samplesCount, min) {
1275
1275
  function progressEventReducer(listener, isDownloadStream) {
1276
1276
  let bytesNotified = 0;
1277
1277
  const _speedometer = speedometer(50, 250);
1278
- return (e) => {
1279
- const loaded = e.loaded;
1280
- const total = e.lengthComputable ? e.total : void 0;
1278
+ return (e2) => {
1279
+ const loaded = e2.loaded;
1280
+ const total = e2.lengthComputable ? e2.total : void 0;
1281
1281
  const progressBytes = loaded - bytesNotified;
1282
1282
  const rate = _speedometer(progressBytes);
1283
1283
  const inRange = loaded <= total;
@@ -1289,7 +1289,7 @@ function progressEventReducer(listener, isDownloadStream) {
1289
1289
  bytes: progressBytes,
1290
1290
  rate: rate ? rate : void 0,
1291
1291
  estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
1292
- event: e
1292
+ event: e2
1293
1293
  };
1294
1294
  data[isDownloadStream ? "download" : "upload"] = true;
1295
1295
  listener(data);
@@ -1448,7 +1448,7 @@ utils$1.forEach(knownAdapters, (fn, value) => {
1448
1448
  if (fn) {
1449
1449
  try {
1450
1450
  Object.defineProperty(fn, "name", { value });
1451
- } catch (e) {
1451
+ } catch (e2) {
1452
1452
  }
1453
1453
  Object.defineProperty(fn, "adapterName", { value });
1454
1454
  }
@@ -1462,8 +1462,8 @@ const adapters = {
1462
1462
  let nameOrAdapter;
1463
1463
  let adapter;
1464
1464
  const rejectedReasons = {};
1465
- for (let i = 0; i < length; i++) {
1466
- nameOrAdapter = adapters2[i];
1465
+ for (let i2 = 0; i2 < length; i2++) {
1466
+ nameOrAdapter = adapters2[i2];
1467
1467
  let id;
1468
1468
  adapter = nameOrAdapter;
1469
1469
  if (!isResolvedHandle(nameOrAdapter)) {
@@ -1475,7 +1475,7 @@ const adapters = {
1475
1475
  if (adapter) {
1476
1476
  break;
1477
1477
  }
1478
- rejectedReasons[id || "#" + i] = adapter;
1478
+ rejectedReasons[id || "#" + i2] = adapter;
1479
1479
  }
1480
1480
  if (!adapter) {
1481
1481
  const reasons = Object.entries(rejectedReasons).map(
@@ -1548,30 +1548,30 @@ function mergeConfig(config1, config2) {
1548
1548
  }
1549
1549
  return source;
1550
1550
  }
1551
- function mergeDeepProperties(a, b, caseless) {
1552
- if (!utils$1.isUndefined(b)) {
1553
- return getMergedValue(a, b, caseless);
1554
- } else if (!utils$1.isUndefined(a)) {
1555
- return getMergedValue(void 0, a, caseless);
1551
+ function mergeDeepProperties(a2, b2, caseless) {
1552
+ if (!utils$1.isUndefined(b2)) {
1553
+ return getMergedValue(a2, b2, caseless);
1554
+ } else if (!utils$1.isUndefined(a2)) {
1555
+ return getMergedValue(void 0, a2, caseless);
1556
1556
  }
1557
1557
  }
1558
- function valueFromConfig2(a, b) {
1559
- if (!utils$1.isUndefined(b)) {
1560
- return getMergedValue(void 0, b);
1558
+ function valueFromConfig2(a2, b2) {
1559
+ if (!utils$1.isUndefined(b2)) {
1560
+ return getMergedValue(void 0, b2);
1561
1561
  }
1562
1562
  }
1563
- function defaultToConfig2(a, b) {
1564
- if (!utils$1.isUndefined(b)) {
1565
- return getMergedValue(void 0, b);
1566
- } else if (!utils$1.isUndefined(a)) {
1567
- return getMergedValue(void 0, a);
1563
+ function defaultToConfig2(a2, b2) {
1564
+ if (!utils$1.isUndefined(b2)) {
1565
+ return getMergedValue(void 0, b2);
1566
+ } else if (!utils$1.isUndefined(a2)) {
1567
+ return getMergedValue(void 0, a2);
1568
1568
  }
1569
1569
  }
1570
- function mergeDirectKeys(a, b, prop) {
1570
+ function mergeDirectKeys(a2, b2, prop) {
1571
1571
  if (prop in config2) {
1572
- return getMergedValue(a, b);
1572
+ return getMergedValue(a2, b2);
1573
1573
  } else if (prop in config1) {
1574
- return getMergedValue(void 0, a);
1574
+ return getMergedValue(void 0, a2);
1575
1575
  }
1576
1576
  }
1577
1577
  const mergeMap = {
@@ -1603,7 +1603,7 @@ function mergeConfig(config1, config2) {
1603
1603
  socketPath: defaultToConfig2,
1604
1604
  responseEncoding: defaultToConfig2,
1605
1605
  validateStatus: mergeDirectKeys,
1606
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
1606
+ headers: (a2, b2) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), true)
1607
1607
  };
1608
1608
  utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
1609
1609
  const merge2 = mergeMap[prop] || mergeDeepProperties;
@@ -1614,9 +1614,9 @@ function mergeConfig(config1, config2) {
1614
1614
  }
1615
1615
  const VERSION = "1.6.7";
1616
1616
  const validators$1 = {};
1617
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
1617
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i2) => {
1618
1618
  validators$1[type] = function validator2(thing) {
1619
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
1619
+ return typeof thing === type || "a" + (i2 < 1 ? "n " : " ") + type;
1620
1620
  };
1621
1621
  });
1622
1622
  const deprecatedWarnings = {};
@@ -1648,9 +1648,9 @@ function assertOptions(options, schema, allowUnknown) {
1648
1648
  throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
1649
1649
  }
1650
1650
  const keys = Object.keys(options);
1651
- let i = keys.length;
1652
- while (i-- > 0) {
1653
- const opt = keys[i];
1651
+ let i2 = keys.length;
1652
+ while (i2-- > 0) {
1653
+ const opt = keys[i2];
1654
1654
  const validator2 = schema[opt];
1655
1655
  if (validator2) {
1656
1656
  const value = options[opt];
@@ -1757,7 +1757,7 @@ class Axios {
1757
1757
  responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
1758
1758
  });
1759
1759
  let promise;
1760
- let i = 0;
1760
+ let i2 = 0;
1761
1761
  let len;
1762
1762
  if (!synchronousRequestInterceptors) {
1763
1763
  const chain = [dispatchRequest.bind(this), void 0];
@@ -1765,17 +1765,17 @@ class Axios {
1765
1765
  chain.push.apply(chain, responseInterceptorChain);
1766
1766
  len = chain.length;
1767
1767
  promise = Promise.resolve(config);
1768
- while (i < len) {
1769
- promise = promise.then(chain[i++], chain[i++]);
1768
+ while (i2 < len) {
1769
+ promise = promise.then(chain[i2++], chain[i2++]);
1770
1770
  }
1771
1771
  return promise;
1772
1772
  }
1773
1773
  len = requestInterceptorChain.length;
1774
1774
  let newConfig = config;
1775
- i = 0;
1776
- while (i < len) {
1777
- const onFulfilled = requestInterceptorChain[i++];
1778
- const onRejected = requestInterceptorChain[i++];
1775
+ i2 = 0;
1776
+ while (i2 < len) {
1777
+ const onFulfilled = requestInterceptorChain[i2++];
1778
+ const onRejected = requestInterceptorChain[i2++];
1779
1779
  try {
1780
1780
  newConfig = onFulfilled(newConfig);
1781
1781
  } catch (error) {
@@ -1788,10 +1788,10 @@ class Axios {
1788
1788
  } catch (error) {
1789
1789
  return Promise.reject(error);
1790
1790
  }
1791
- i = 0;
1791
+ i2 = 0;
1792
1792
  len = responseInterceptorChain.length;
1793
- while (i < len) {
1794
- promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
1793
+ while (i2 < len) {
1794
+ promise = promise.then(responseInterceptorChain[i2++], responseInterceptorChain[i2++]);
1795
1795
  }
1796
1796
  return promise;
1797
1797
  }
@@ -1840,9 +1840,9 @@ class CancelToken {
1840
1840
  this.promise.then((cancel) => {
1841
1841
  if (!token._listeners)
1842
1842
  return;
1843
- let i = token._listeners.length;
1844
- while (i-- > 0) {
1845
- token._listeners[i](cancel);
1843
+ let i2 = token._listeners.length;
1844
+ while (i2-- > 0) {
1845
+ token._listeners[i2](cancel);
1846
1846
  }
1847
1847
  token._listeners = null;
1848
1848
  });
@@ -2023,113 +2023,107 @@ axios.getAdapter = adapters.getAdapter;
2023
2023
  axios.HttpStatusCode = HttpStatusCode$1;
2024
2024
  axios.default = axios;
2025
2025
  const ChatBotIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4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PzZO2E9Bazl5kR3dMj9yBr21Fctofh9/X/vIiNS6jvqMGI7jQMWpC436CFQBqFAFoEIVgIpTEv8PTBPiNKVw25gAAAAASUVORK5CYII=";
2026
- function ye(t) {
2027
- return t == null ? true : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : false;
2028
- }
2029
- function Be(t) {
2030
- return t !== null && typeof t == "object" && !Array.isArray(t);
2031
- }
2032
- function ke(t = {}, o = {}) {
2033
- const e = {};
2034
- for (const n in t)
2035
- e[n] = t[n];
2036
- for (const n in o) {
2037
- const l = t[n], s = o[n];
2038
- if (Be(l) && Be(s)) {
2039
- e[n] = ke(
2040
- l,
2041
- s
2026
+ const u$2 = /* @__PURE__ */ defineComponent({
2027
+ __name: "QSpinnerLoader",
2028
+ props: {
2029
+ size: { default: 48 },
2030
+ class: { default: void 0 }
2031
+ },
2032
+ setup(o2) {
2033
+ const e2 = o2, s = computed(() => ({
2034
+ "font-size": e2.size !== 48 ? `${e2.size}px` : void 0
2035
+ }));
2036
+ return (i2, p2) => (openBlock(), createElementBlock(
2037
+ "div",
2038
+ {
2039
+ class: normalizeClass(["q-spinner-loader", e2.class]),
2040
+ style: normalizeStyle(s.value)
2041
+ },
2042
+ null,
2043
+ 6
2044
+ /* CLASS, STYLE */
2045
+ ));
2046
+ }
2047
+ });
2048
+ function n(r2) {
2049
+ return r2 == null ? true : typeof r2 == "string" || Array.isArray(r2) ? r2.length === 0 : typeof r2 == "object" ? Object.keys(r2).length === 0 : false;
2050
+ }
2051
+ function t$3(r2) {
2052
+ return r2 !== null && typeof r2 == "object" && !Array.isArray(r2);
2053
+ }
2054
+ function f(n2 = {}, e2 = {}) {
2055
+ const t2 = {};
2056
+ for (const o2 in n2)
2057
+ t2[o2] = n2[o2];
2058
+ for (const o2 in e2) {
2059
+ const c = n2[o2], r2 = e2[o2];
2060
+ if (t$3(c) && t$3(r2)) {
2061
+ t2[o2] = f(
2062
+ c,
2063
+ r2
2042
2064
  );
2043
2065
  continue;
2044
2066
  }
2045
- e[n] = s;
2067
+ t2[o2] = r2;
2046
2068
  }
2047
- return e;
2069
+ return t2;
2048
2070
  }
2049
- const we = "q-defaults";
2050
- function Ye() {
2051
- var s, r;
2052
- const t = getCurrentInstance();
2053
- if (!t)
2071
+ const i = "q-defaults";
2072
+ function E() {
2073
+ var r2, u2;
2074
+ const e2 = getCurrentInstance();
2075
+ if (!e2)
2054
2076
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
2055
- const o = t.type.name ?? t.type.__name;
2056
- if (!o)
2077
+ const t2 = e2.type.name ?? e2.type.__name;
2078
+ if (!t2)
2057
2079
  throw new Error("[Quidgest UI] Could not determine component name");
2058
- const e = Oe(), n = (s = e.value) == null ? void 0 : s.Global, l = (r = e.value) == null ? void 0 : r[o];
2059
- return computed(() => ke(n, l));
2080
+ const n2 = l$1(), o2 = (r2 = n2.value) == null ? void 0 : r2.Global, c = (u2 = n2.value) == null ? void 0 : u2[t2];
2081
+ return computed(() => f(o2, c));
2060
2082
  }
2061
- function Me(t) {
2062
- if (ye(t))
2083
+ function I$1(e2) {
2084
+ if (n(e2))
2063
2085
  return;
2064
- const o = Oe(), e = ref(t), n = computed(() => ye(e.value) ? o.value : ke(o.value, e.value));
2065
- provide(we, n);
2086
+ const t2 = l$1(), n$1 = ref(e2), o2 = computed(() => n(n$1.value) ? t2.value : f(t2.value, n$1.value));
2087
+ provide(i, o2);
2066
2088
  }
2067
- function Oe() {
2068
- const t = inject(we, void 0);
2069
- if (!t)
2089
+ function l$1() {
2090
+ const e2 = inject(i, void 0);
2091
+ if (!e2)
2070
2092
  throw new Error("[Quidgest UI] Could not find defaults instance");
2071
- return t;
2072
- }
2073
- function Fe(t) {
2074
- return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
2075
- }
2076
- const at = /* @__PURE__ */ createElementVNode("svg", { viewBox: "25 25 50 50" }, [
2077
- /* @__PURE__ */ createElementVNode("circle", {
2078
- class: "path",
2079
- cx: "50",
2080
- cy: "50",
2081
- r: "20",
2082
- fill: "none",
2083
- stroke: "currentColor",
2084
- "stroke-width": "5",
2085
- "stroke-miterlimit": "10"
2086
- })
2087
- ], -1), st = [
2088
- at
2089
- ], it = /* @__PURE__ */ defineComponent({
2090
- __name: "QSpinnerLoader",
2091
- props: {
2092
- size: { default: 48 },
2093
- class: { default: void 0 }
2094
- },
2095
- setup(t) {
2096
- const o = t, e = computed(() => ({
2097
- "font-size": o.size !== 48 ? `${o.size}px` : void 0
2098
- }));
2099
- return (n, l) => (openBlock(), createElementBlock("div", {
2100
- class: normalizeClass(["q-spinner-loader", o.class]),
2101
- style: normalizeStyle(e.value)
2102
- }, st, 6));
2103
- }
2104
- });
2105
- function rt(t, o) {
2106
- var n;
2107
- const e = Fe(o);
2108
- return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : false;
2109
- }
2110
- function S(t) {
2111
- const o = t.setup;
2112
- return o && (t.setup = (e, n) => {
2113
- const l = Ye();
2114
- if (ye(l.value))
2115
- return o(e, n);
2093
+ return e2;
2094
+ }
2095
+ function a$2(e2) {
2096
+ return e2.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
2097
+ }
2098
+ function y(e2, t2) {
2099
+ var n2;
2100
+ const r2 = a$2(t2);
2101
+ return r2 ? typeof ((n2 = e2.props) == null ? void 0 : n2[r2]) < "u" : false;
2102
+ }
2103
+ function C$3(e2) {
2104
+ const t2 = e2.setup;
2105
+ return t2 && (e2.setup = (r2, n$1) => {
2106
+ const o2 = E();
2107
+ if (n(o2.value))
2108
+ return t2(r2, n$1);
2116
2109
  const s = getCurrentInstance();
2117
2110
  if (s === null)
2118
- return o(e, n);
2119
- const r = new Proxy(e, {
2120
- get(i, f) {
2121
- var y;
2122
- const L = Reflect.get(i, f), _ = (y = l.value) == null ? void 0 : y[f];
2123
- return typeof f == "string" && !rt(s.vnode, f) ? _ ?? L : L;
2111
+ return t2(r2, n$1);
2112
+ const a2 = new Proxy(r2, {
2113
+ get(l2, u2) {
2114
+ var i2;
2115
+ const f2 = Reflect.get(l2, u2), p2 = (i2 = o2.value) == null ? void 0 : i2[u2];
2116
+ return typeof u2 == "string" && !y(s.vnode, u2) ? p2 ?? f2 : f2;
2124
2117
  }
2125
2118
  });
2126
- return o(r, n);
2127
- }), t;
2119
+ return t2(a2, n$1);
2120
+ }), e2;
2128
2121
  }
2129
- const $e = S(it), dt = ["disabled"], ut = {
2122
+ const t$2 = C$3(u$2);
2123
+ const h$3 = ["disabled"], z$2 = {
2130
2124
  key: 0,
2131
2125
  class: "q-btn__spinner"
2132
- }, ct = { class: "q-btn__content" }, ft = /* @__PURE__ */ defineComponent({
2126
+ }, C$2 = { class: "q-btn__content" }, O = /* @__PURE__ */ defineComponent({
2133
2127
  __name: "QButton",
2134
2128
  props: {
2135
2129
  active: { type: Boolean },
@@ -2145,122 +2139,70 @@ const $e = S(it), dt = ["disabled"], ut = {
2145
2139
  class: { default: void 0 }
2146
2140
  },
2147
2141
  emits: ["click"],
2148
- setup(t, { emit: o }) {
2149
- const e = t, n = o, l = computed(() => e.disabled || e.loading);
2150
- function s(i) {
2151
- l.value || n("click", i);
2142
+ setup(c, { emit: b2 }) {
2143
+ const e2 = c, p2 = b2, a2 = computed(() => e2.disabled || e2.loading);
2144
+ function u2(t2) {
2145
+ a2.value || p2("click", t2);
2152
2146
  }
2153
- const r = computed(() => {
2154
- const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
2147
+ const f2 = computed(() => {
2148
+ const t2 = e2.size !== "regular" ? `q-btn--${e2.size}` : void 0;
2155
2149
  return [
2156
2150
  "q-btn",
2157
- `q-btn--${e.bStyle}`,
2158
- i,
2151
+ `q-btn--${e2.bStyle}`,
2152
+ t2,
2159
2153
  {
2160
- "q-btn--active": e.active,
2161
- "q-btn--borderless": e.borderless,
2162
- "q-btn--elevated": e.elevated,
2163
- "q-btn--block": e.block,
2164
- "q-btn--loading": e.loading
2154
+ "q-btn--active": e2.active,
2155
+ "q-btn--borderless": e2.borderless,
2156
+ "q-btn--elevated": e2.elevated,
2157
+ "q-btn--block": e2.block,
2158
+ "q-btn--loading": e2.loading
2165
2159
  },
2166
- e.class
2160
+ e2.class
2167
2161
  ];
2168
2162
  });
2169
- return (i, f) => (openBlock(), createElementBlock("button", {
2163
+ return (t2, S) => (openBlock(), createElementBlock("button", {
2170
2164
  type: "button",
2171
- class: normalizeClass(r.value),
2172
- disabled: l.value,
2173
- onClick: withModifiers(s, ["stop", "prevent"])
2165
+ class: normalizeClass(f2.value),
2166
+ disabled: a2.value,
2167
+ onClick: withModifiers(u2, ["stop", "prevent"])
2174
2168
  }, [
2175
- i.loading ? (openBlock(), createElementBlock("div", ut, [
2176
- createVNode(unref($e), { size: 20 })
2177
- ])) : createCommentVNode("", true),
2178
- createElementVNode("span", ct, [
2179
- i.iconOnRight ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2180
- createTextVNode(toDisplayString(e.label), 1)
2181
- ], 64)) : createCommentVNode("", true),
2182
- renderSlot(i.$slots, "default"),
2183
- i.iconOnRight ? createCommentVNode("", true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2184
- createTextVNode(toDisplayString(e.label), 1)
2185
- ], 64))
2186
- ])
2187
- ], 10, dt));
2188
- }
2189
- }), fe = S(ft), pt = /* @__PURE__ */ defineComponent({
2190
- __name: "QButtonGroup",
2191
- props: {
2192
- disabled: { type: Boolean },
2193
- borderless: { type: Boolean },
2194
- elevated: { type: Boolean },
2195
- class: { default: void 0 }
2196
- },
2197
- setup(t) {
2198
- const o = t;
2199
- return Me({
2200
- QButton: {
2201
- bStyle: "secondary",
2202
- disabled: toRef(o, "disabled"),
2203
- borderless: toRef(o, "borderless"),
2204
- elevated: false
2205
- }
2206
- }), (e, n) => (openBlock(), createElementBlock("div", {
2207
- class: normalizeClass([
2208
- "q-btn-group",
2209
- {
2210
- "q-btn-group--elevated": o.elevated
2211
- },
2212
- o.class
2169
+ t2.loading ? (openBlock(), createElementBlock("div", z$2, [
2170
+ createVNode(unref(t$2), { size: 20 })
2171
+ ])) : createCommentVNode("v-if", true),
2172
+ createElementVNode("span", C$2, [
2173
+ t2.iconOnRight ? (openBlock(), createElementBlock(
2174
+ Fragment,
2175
+ { key: 0 },
2176
+ [
2177
+ createTextVNode(
2178
+ toDisplayString(e2.label),
2179
+ 1
2180
+ /* TEXT */
2181
+ )
2182
+ ],
2183
+ 64
2184
+ /* STABLE_FRAGMENT */
2185
+ )) : createCommentVNode("v-if", true),
2186
+ renderSlot(t2.$slots, "default"),
2187
+ t2.iconOnRight ? createCommentVNode("v-if", true) : (openBlock(), createElementBlock(
2188
+ Fragment,
2189
+ { key: 1 },
2190
+ [
2191
+ createTextVNode(
2192
+ toDisplayString(e2.label),
2193
+ 1
2194
+ /* TEXT */
2195
+ )
2196
+ ],
2197
+ 64
2198
+ /* STABLE_FRAGMENT */
2199
+ ))
2213
2200
  ])
2214
- }, [
2215
- renderSlot(e.$slots, "default")
2216
- ], 2));
2217
- }
2218
- }), mt = S(pt), vt = /* @__PURE__ */ defineComponent({
2219
- __name: "QButtonToggle",
2220
- props: /* @__PURE__ */ mergeModels({
2221
- options: {},
2222
- disabled: { type: Boolean },
2223
- borderless: { type: Boolean },
2224
- elevated: { type: Boolean },
2225
- required: { type: Boolean },
2226
- class: {}
2227
- }, {
2228
- modelValue: {},
2229
- modelModifiers: {}
2230
- }),
2231
- emits: ["update:modelValue"],
2232
- setup(t) {
2233
- const o = t, e = useModel(t, "modelValue");
2234
- function n(l) {
2235
- e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
2236
- }
2237
- return (l, s) => (openBlock(), createBlock(unref(mt), {
2238
- "b-style": "secondary",
2239
- class: normalizeClass(o.class),
2240
- disabled: o.disabled,
2241
- borderless: o.borderless,
2242
- elevated: o.elevated
2243
- }, {
2244
- default: withCtx(() => [
2245
- (openBlock(true), createElementBlock(Fragment, null, renderList(o.options, (r) => (openBlock(), createBlock(unref(fe), {
2246
- key: r.key,
2247
- title: r.title,
2248
- label: r.label,
2249
- active: e.value === r.key,
2250
- onClick: () => n(r)
2251
- }, {
2252
- default: withCtx(() => [
2253
- renderSlot(l.$slots, r.key)
2254
- ]),
2255
- _: 2
2256
- }, 1032, ["title", "label", "active", "onClick"]))), 128))
2257
- ]),
2258
- _: 3
2259
- }, 8, ["class", "disabled", "borderless", "elevated"]));
2201
+ ], 10, h$3));
2260
2202
  }
2261
2203
  });
2262
- S(vt);
2263
- const ht = /* @__PURE__ */ defineComponent({
2204
+ const p$2 = C$3(O);
2205
+ const _$1 = /* @__PURE__ */ defineComponent({
2264
2206
  __name: "QIcon",
2265
2207
  props: {
2266
2208
  icon: {},
@@ -2268,26 +2210,27 @@ const ht = /* @__PURE__ */ defineComponent({
2268
2210
  size: { default: void 0 },
2269
2211
  class: { default: void 0 }
2270
2212
  },
2271
- setup(t) {
2272
- const o = t, e = computed(() => {
2273
- switch (o.type) {
2213
+ setup(o2) {
2214
+ const e2 = o2, n2 = computed(() => {
2215
+ switch (e2.type) {
2274
2216
  case "svg":
2275
- return It;
2217
+ return Q$1;
2276
2218
  case "font":
2277
- return qt;
2219
+ return I;
2278
2220
  case "img":
2279
- return Lt;
2221
+ return a;
2280
2222
  default:
2281
2223
  return;
2282
2224
  }
2283
2225
  });
2284
- return (n, l) => (openBlock(), createBlock(resolveDynamicComponent(e.value), {
2285
- class: normalizeClass(o.class),
2286
- icon: o.icon,
2287
- size: o.size
2226
+ return (m2, d) => (openBlock(), createBlock(resolveDynamicComponent(n2.value), {
2227
+ class: normalizeClass(e2.class),
2228
+ icon: e2.icon,
2229
+ size: e2.size
2288
2230
  }, null, 8, ["class", "icon", "size"]));
2289
2231
  }
2290
- }), bt = /* @__PURE__ */ defineComponent({
2232
+ });
2233
+ const v = /* @__PURE__ */ defineComponent({
2291
2234
  __name: "QIconFont",
2292
2235
  props: {
2293
2236
  icon: {},
@@ -2296,48 +2239,56 @@ const ht = /* @__PURE__ */ defineComponent({
2296
2239
  size: { default: void 0 },
2297
2240
  class: { default: void 0 }
2298
2241
  },
2299
- setup(t) {
2300
- const o = t, e = computed(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = computed(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = computed(() => ({
2301
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
2242
+ setup(e2) {
2243
+ const n2 = e2, t2 = computed(() => n2.variant ? `${n2.library}-${n2.variant}` : n2.library), a2 = computed(() => n2.library && n2.icon ? `${n2.library}-${n2.icon}` : n2.icon), i2 = computed(() => ({
2244
+ "font-size": n2.size !== void 0 ? `${n2.size}px` : void 0
2302
2245
  }));
2303
- return (s, r) => (openBlock(), createElementBlock("i", {
2304
- class: normalizeClass(["q-icon", "q-icon__font", e.value, n.value, o.class]),
2305
- style: normalizeStyle(l.value)
2306
- }, null, 6));
2246
+ return (f2, d) => (openBlock(), createElementBlock(
2247
+ "i",
2248
+ {
2249
+ class: normalizeClass(["q-icon", "q-icon__font", t2.value, a2.value, n2.class]),
2250
+ style: normalizeStyle(i2.value)
2251
+ },
2252
+ null,
2253
+ 6
2254
+ /* CLASS, STYLE */
2255
+ ));
2307
2256
  }
2308
- }), yt = ["src"], gt = /* @__PURE__ */ defineComponent({
2257
+ });
2258
+ const a$1 = ["src"], u$1 = /* @__PURE__ */ defineComponent({
2309
2259
  __name: "QIconImg",
2310
2260
  props: {
2311
2261
  icon: {},
2312
2262
  size: {},
2313
2263
  class: {}
2314
2264
  },
2315
- setup(t) {
2316
- const o = t, e = computed(() => ({
2317
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
2265
+ setup(o2) {
2266
+ const e2 = o2, s = computed(() => ({
2267
+ "font-size": e2.size !== void 0 ? `${e2.size}px` : void 0
2318
2268
  }));
2319
- return (n, l) => (openBlock(), createElementBlock("img", {
2320
- src: o.icon,
2321
- class: normalizeClass(["q-icon", "q-icon__img", o.class]),
2322
- style: normalizeStyle(e.value)
2323
- }, null, 14, yt));
2269
+ return (m2, p2) => (openBlock(), createElementBlock("img", {
2270
+ src: e2.icon,
2271
+ class: normalizeClass(["q-icon", "q-icon__img", e2.class]),
2272
+ style: normalizeStyle(s.value)
2273
+ }, null, 14, a$1));
2324
2274
  }
2325
- }), re = {}, _t = defineComponent({
2275
+ });
2276
+ const o = {}, h$2 = defineComponent({
2326
2277
  name: "InlineSvg",
2327
2278
  emits: {
2328
- loaded: (t) => typeof t == "object",
2279
+ loaded: (t2) => typeof t2 == "object",
2329
2280
  unloaded: () => true,
2330
- error: (t) => typeof t == "object"
2281
+ error: (t2) => typeof t2 == "object"
2331
2282
  },
2332
2283
  inheritAttrs: false,
2333
2284
  render() {
2334
2285
  if (!this.svgElSource)
2335
2286
  return null;
2336
- const t = this.getSvgContent(this.svgElSource);
2337
- if (!t)
2338
- return h("div", this.$attrs);
2339
- const o = {};
2340
- return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, h("svg", o);
2287
+ const t2 = this.getSvgContent(this.svgElSource);
2288
+ if (!t2)
2289
+ return h$4("div", this.$attrs);
2290
+ const e2 = {};
2291
+ return this.copySvgAttrs(e2, this.svgElSource), this.copySvgAttrs(e2, t2), this.copyComponentAttrs(e2, this.$attrs), e2.innerHTML = t2.innerHTML, h$4("svg", e2);
2341
2292
  },
2342
2293
  props: {
2343
2294
  /**
@@ -2388,30 +2339,30 @@ const ht = /* @__PURE__ */ defineComponent({
2388
2339
  await this.getSource(this.src);
2389
2340
  },
2390
2341
  methods: {
2391
- copySvgAttrs(t, o) {
2392
- const e = o.attributes;
2393
- if (e)
2394
- for (const n of e)
2395
- t[n.name] = n.value;
2342
+ copySvgAttrs(t2, e2) {
2343
+ const r2 = e2.attributes;
2344
+ if (r2)
2345
+ for (const n2 of r2)
2346
+ t2[n2.name] = n2.value;
2396
2347
  },
2397
- copyComponentAttrs(t, o) {
2398
- for (const [e, n] of Object.entries(o))
2399
- n !== false && n !== null && n !== void 0 && (t[e] = n);
2348
+ copyComponentAttrs(t2, e2) {
2349
+ for (const [r2, n2] of Object.entries(e2))
2350
+ n2 !== false && n2 !== null && n2 !== void 0 && (t2[r2] = n2);
2400
2351
  },
2401
- getSvgContent(t) {
2402
- return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(true), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(true)), kt(t, this.title)), t);
2352
+ getSvgContent(t2) {
2353
+ return this.symbol && (t2 = t2.getElementById(this.symbol), !t2) ? null : (this.transformSource && (t2 = t2.cloneNode(true), t2 = this.transformSource(t2)), this.title && (this.transformSource || (t2 = t2.cloneNode(true)), l(t2, this.title)), t2);
2403
2354
  },
2404
2355
  /**
2405
2356
  * Get svgElSource
2406
2357
  * @param {string} src
2407
2358
  */
2408
- async getSource(t) {
2359
+ async getSource(t2) {
2409
2360
  try {
2410
- re[t] || (re[t] = wt(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
2411
- const o = await re[t];
2412
- this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
2413
- } catch (o) {
2414
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete re[t], this.$emit("error", o);
2361
+ o[t2] || (o[t2] = u(this.download(t2))), this.svgElSource && o[t2].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
2362
+ const e2 = await o[t2];
2363
+ this.svgElSource = e2, await this.$nextTick(), this.$emit("loaded", this.$el);
2364
+ } catch (e2) {
2365
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete o[t2], this.$emit("error", e2);
2415
2366
  }
2416
2367
  },
2417
2368
  /**
@@ -2419,45 +2370,45 @@ const ht = /* @__PURE__ */ defineComponent({
2419
2370
  * @param {string} url
2420
2371
  * @returns {PromiseWithState<Element>}
2421
2372
  */
2422
- async download(t) {
2423
- const o = await fetch(t);
2424
- if (!o.ok)
2373
+ async download(t2) {
2374
+ const e2 = await fetch(t2);
2375
+ if (!e2.ok)
2425
2376
  throw new Error("Error loading SVG");
2426
- const e = await o.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
2427
- if (!s)
2377
+ const r2 = await e2.text(), i2 = new DOMParser().parseFromString(r2, "text/xml").getElementsByTagName("svg")[0];
2378
+ if (!i2)
2428
2379
  throw new Error("Loaded file is not a valid SVG");
2429
- return s;
2380
+ return i2;
2430
2381
  }
2431
2382
  },
2432
2383
  watch: {
2433
- src(t) {
2434
- this.getSource(t);
2384
+ src(t2) {
2385
+ this.getSource(t2);
2435
2386
  }
2436
2387
  },
2437
2388
  expose: []
2438
2389
  });
2439
- function kt(t, o) {
2440
- const e = t.getElementsByTagName("title");
2441
- if (e.length)
2442
- e[0].textContent = o;
2390
+ function l(t2, e2) {
2391
+ const r2 = t2.getElementsByTagName("title");
2392
+ if (r2.length)
2393
+ r2[0].textContent = e2;
2443
2394
  else {
2444
- const n = document.createElementNS("http://www.w3.org/2000/svg", "title");
2445
- n.textContent = o, t.insertBefore(n, t.firstChild);
2395
+ const n2 = document.createElementNS("http://www.w3.org/2000/svg", "title");
2396
+ n2.textContent = e2, t2.insertBefore(n2, t2.firstChild);
2446
2397
  }
2447
2398
  }
2448
- function wt(t) {
2449
- if (t.getIsPending)
2450
- return t;
2451
- let o = true;
2452
- const e = t.then(
2453
- (n) => (o = false, n),
2454
- (n) => {
2455
- throw o = false, n;
2399
+ function u(t2) {
2400
+ if (t2.getIsPending)
2401
+ return t2;
2402
+ let e2 = true;
2403
+ const r2 = t2.then(
2404
+ (n2) => (e2 = false, n2),
2405
+ (n2) => {
2406
+ throw e2 = false, n2;
2456
2407
  }
2457
2408
  );
2458
- return e.getIsPending = () => o, e;
2409
+ return r2.getIsPending = () => e2, r2;
2459
2410
  }
2460
- const $t = /* @__PURE__ */ defineComponent({
2411
+ const b$1 = /* @__PURE__ */ defineComponent({
2461
2412
  __name: "QIconSvg",
2462
2413
  props: {
2463
2414
  icon: {},
@@ -2466,568 +2417,44 @@ const $t = /* @__PURE__ */ defineComponent({
2466
2417
  class: { default: void 0 }
2467
2418
  },
2468
2419
  emits: ["loaded", "unloaded"],
2469
- setup(t, { emit: o }) {
2470
- const e = t, n = o, l = computed(() => ({
2471
- "font-size": e.size !== void 0 ? `${e.size}px` : void 0
2420
+ setup(s, { emit: l2 }) {
2421
+ const e2 = s, o2 = l2, t2 = computed(() => ({
2422
+ "font-size": e2.size !== void 0 ? `${e2.size}px` : void 0
2472
2423
  }));
2473
- function s(i) {
2474
- n("loaded", i);
2475
- }
2476
- function r() {
2477
- n("unloaded");
2478
- }
2479
- return (i, f) => (openBlock(), createBlock(unref(_t), {
2480
- class: normalizeClass(["q-icon", "q-icon__svg", e.class]),
2481
- src: e.bundle,
2482
- symbol: e.icon,
2483
- style: normalizeStyle(l.value),
2484
- onLoaded: s,
2485
- onUnloaded: r
2424
+ function c(n2) {
2425
+ o2("loaded", n2);
2426
+ }
2427
+ function i2() {
2428
+ o2("unloaded");
2429
+ }
2430
+ return (n2, _2) => (openBlock(), createBlock(unref(h$2), {
2431
+ class: normalizeClass(["q-icon", "q-icon__svg", e2.class]),
2432
+ src: e2.bundle,
2433
+ symbol: e2.icon,
2434
+ style: normalizeStyle(t2.value),
2435
+ onLoaded: c,
2436
+ onUnloaded: i2
2486
2437
  }, null, 8, ["class", "src", "symbol", "style"]));
2487
2438
  }
2488
- }), ee = S(ht), qt = S(bt), Lt = S(gt), It = S($t), xt = /* @__PURE__ */ defineComponent({
2489
- __name: "QList",
2490
- props: /* @__PURE__ */ mergeModels({
2491
- highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
2492
- items: {},
2493
- groups: { default: () => [] },
2494
- itemValue: { default: "key" },
2495
- itemLabel: { default: "label" },
2496
- disabled: { type: Boolean },
2497
- class: { default: void 0 }
2498
- }, {
2499
- modelValue: {
2500
- type: [String, Number, Boolean, Symbol]
2501
- },
2502
- modelModifiers: {}
2503
- }),
2504
- emits: ["update:modelValue"],
2505
- setup(t, { expose: o }) {
2506
- const e = t, n = useModel(t, "modelValue"), l = ref(false), s = computed(() => r.value.length > 1 ? "div" : "ul"), r = computed(() => e.groups.length ? e.groups.filter(
2507
- (c) => e.items.some((b) => b.group === c.id)
2508
- ) : [{ id: "", title: "" }]), i = ref(null);
2509
- function f(c) {
2510
- n.value = c;
2511
- }
2512
- function L() {
2513
- l.value = true;
2514
- }
2515
- function _() {
2516
- l.value = false;
2517
- }
2518
- function y(c) {
2519
- var d;
2520
- if ((d = i.value) != null && d.contains(c.relatedTarget))
2521
- return;
2522
- let b;
2523
- n.value ? b = e.items.findIndex(($) => $[e.itemValue] === n.value) : b = j();
2524
- const q = l.value;
2525
- C(b, q);
2526
- }
2527
- function U(c) {
2528
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && c.preventDefault(), c.key) {
2529
- case "ArrowDown":
2530
- z("next");
2531
- break;
2532
- case "ArrowUp":
2533
- z("prev");
2534
- break;
2535
- case "Home":
2536
- z("first");
2537
- break;
2538
- case "End":
2539
- z("last");
2540
- break;
2541
- }
2542
- }
2543
- function z(c) {
2544
- switch (c) {
2545
- case "next":
2546
- case "prev":
2547
- C(X(c));
2548
- break;
2549
- case "first":
2550
- C(j());
2551
- break;
2552
- case "last":
2553
- C(A());
2554
- break;
2555
- }
2556
- }
2557
- function C(c, b = false) {
2558
- var d;
2559
- (d = V()[c]) == null || d.focus({ preventScroll: b });
2560
- }
2561
- function V() {
2562
- var b;
2563
- const c = (b = i.value) == null ? void 0 : b.querySelectorAll("li");
2564
- return c ? Array.from(c) : [];
2565
- }
2566
- function W(c) {
2567
- return V()[c];
2568
- }
2569
- function le() {
2570
- return V().indexOf(document.activeElement);
2571
- }
2572
- function j() {
2573
- const c = V(), b = c.find((q) => P(q));
2574
- return b ? c.indexOf(b) : -1;
2575
- }
2576
- function A() {
2577
- const c = V(), b = [...c].reverse().find((q) => P(q));
2578
- return b ? c.indexOf(b) : -1;
2579
- }
2580
- function Q(c, b, q) {
2581
- return b === "prev" && c === 0 || b === "next" && c === q.length - 1;
2582
- }
2583
- function X(c) {
2584
- const b = le();
2585
- return N(b, c);
2586
- }
2587
- function N(c, b) {
2588
- const q = V();
2589
- if (Q(c, b, q))
2590
- return c;
2591
- let d = c + (b === "next" ? 1 : -1);
2592
- for (; !P(q[d]); ) {
2593
- if (Q(d, b, q))
2594
- return c;
2595
- d += b === "next" ? 1 : -1;
2596
- }
2597
- return d;
2598
- }
2599
- function P(c) {
2600
- return c.tabIndex === -2;
2601
- }
2602
- function ae(c) {
2603
- return c ? e.items.filter((b) => b.group === c) : e.items;
2604
- }
2605
- return o({
2606
- focusItem: C,
2607
- getItem: W,
2608
- getAdjacentItemIndex: N,
2609
- getFirstFocusableItemIndex: j,
2610
- getLastFocusableItemIndex: A
2611
- }), (c, b) => (openBlock(), createBlock(resolveDynamicComponent(s.value), {
2612
- ref_key: "listRef",
2613
- ref: i,
2614
- class: normalizeClass(["q-list", { "q-list--disabled": e.disabled }, e.class]),
2615
- role: "listbox",
2616
- tabindex: e.disabled ? -1 : 0,
2617
- onFocus: y,
2618
- onMousedown: L,
2619
- onMouseup: _,
2620
- onKeydown: U
2621
- }, {
2622
- default: withCtx(() => [
2623
- (openBlock(true), createElementBlock(Fragment, null, renderList(r.value, (q) => (openBlock(), createBlock(unref(Qt), {
2624
- key: q.id,
2625
- title: r.value.length === 1 ? void 0 : q.title,
2626
- disabled: q.disabled
2627
- }, {
2628
- default: withCtx(() => [
2629
- (openBlock(true), createElementBlock(Fragment, null, renderList(ae(q.id), (d) => (openBlock(), createBlock(unref(At), {
2630
- key: d[e.itemValue],
2631
- value: d[e.itemValue],
2632
- label: d[e.itemLabel],
2633
- icon: d.icon,
2634
- disabled: e.disabled || d.disabled,
2635
- highlighted: e.highlighted === d[e.itemValue],
2636
- selected: n.value === d[e.itemValue],
2637
- onSelect: f
2638
- }, {
2639
- default: withCtx(() => [
2640
- renderSlot(c.$slots, "item", { item: d })
2641
- ]),
2642
- _: 2
2643
- }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
2644
- ]),
2645
- _: 2
2646
- }, 1032, ["title", "disabled"]))), 128))
2647
- ]),
2648
- _: 3
2649
- }, 40, ["class", "tabindex"]));
2650
- }
2651
2439
  });
2652
- let Bt = 0;
2653
- function me(t) {
2654
- return t || `uid-${++Bt}`;
2655
- }
2656
- const St = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Et = {
2657
- check: {
2658
- icon: "check"
2659
- }
2660
- }, Tt = /* @__PURE__ */ defineComponent({
2661
- __name: "QListItem",
2662
- props: {
2663
- value: { type: [String, Number, Boolean, Symbol] },
2664
- label: {},
2665
- icon: { default: void 0 },
2666
- selected: { type: Boolean },
2667
- highlighted: { type: Boolean },
2668
- icons: { default: () => Et },
2669
- disabled: { type: Boolean }
2670
- },
2671
- emits: ["select"],
2672
- setup(t, { emit: o }) {
2673
- const e = t, n = o, l = me();
2674
- function s() {
2675
- e.disabled || n("select", e.value);
2676
- }
2677
- function r(i) {
2678
- i.key === "Tab" && s(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), s());
2679
- }
2680
- return (i, f) => (openBlock(), createElementBlock("li", {
2681
- id: unref(l),
2682
- "data-key": e.value,
2683
- role: "option",
2684
- tabindex: e.disabled ? void 0 : -2,
2685
- class: normalizeClass([
2686
- "q-list-item",
2687
- {
2688
- "q-list-item--disabled": e.disabled,
2689
- "q-list-item--selected": e.selected,
2690
- "q-list-item--highlighted": e.highlighted
2691
- }
2692
- ]),
2693
- "aria-label": e.label,
2694
- "aria-selected": e.disabled ? void 0 : e.selected,
2695
- onKeydown: r,
2696
- onClick: withModifiers(s, ["stop", "prevent"])
2697
- }, [
2698
- renderSlot(i.$slots, "default", {}, () => [
2699
- e.icon ? (openBlock(), createBlock(unref(ee), normalizeProps(mergeProps({ key: 0 }, e.icon)), null, 16)) : createCommentVNode("", true),
2700
- createTextVNode(" " + toDisplayString(e.label), 1)
2701
- ]),
2702
- createElementVNode("div", Vt, [
2703
- e.selected ? (openBlock(), createBlock(unref(ee), mergeProps({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : createCommentVNode("", true)
2704
- ])
2705
- ], 42, St));
2706
- }
2707
- }), Dt = ["aria-labelledby"], zt = ["id"], Ct = /* @__PURE__ */ defineComponent({
2708
- __name: "QListItemGroup",
2709
- props: {
2710
- title: { default: "" },
2711
- disabled: { type: Boolean }
2712
- },
2713
- setup(t) {
2714
- const o = t, e = me();
2715
- return (n, l) => (openBlock(), createElementBlock("ul", {
2716
- class: "q-list-item-group",
2717
- role: "group",
2718
- "aria-labelledby": o.title ? unref(e) : void 0
2719
- }, [
2720
- o.title ? (openBlock(), createElementBlock("li", {
2721
- key: 0,
2722
- id: unref(e),
2723
- class: "q-list-item-group__title",
2724
- role: "presentation"
2725
- }, toDisplayString(o.title), 9, zt)) : createCommentVNode("", true),
2726
- renderSlot(n.$slots, "default")
2727
- ], 8, Dt));
2728
- }
2729
- }), Re = S(xt), At = S(Tt), Qt = S(Ct);
2730
- function Mt(t, o, e = "right", n) {
2731
- const l = t.getBoundingClientRect(), s = l.x + window.scrollX, r = l.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, L = (i == null ? void 0 : i.height) ?? 0;
2732
- let _ = e;
2733
- i && ge(l, i, _) !== 0 && (_ = Ot(l, i, _));
2734
- const y = { x: 0, y: 0, placement: _ };
2735
- switch (_) {
2736
- case "top":
2737
- n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r - L;
2738
- break;
2739
- case "bottom":
2740
- n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r + l.height;
2741
- break;
2742
- case "left":
2743
- y.x = s - f, y.y = r + l.height / 2 - L / 2;
2744
- break;
2745
- case "right":
2746
- y.x = s + l.width, y.y = r + l.height / 2 - L / 2;
2747
- break;
2748
- }
2749
- return y.x = Math.max(0, y.x), y.y = Math.max(0, y.y), n === "anchor" && l.width >= f && (y.width = l.width), y;
2750
- }
2751
- function ge(t, o, e) {
2752
- let n = 0, l = 0;
2753
- switch (e) {
2754
- case "top":
2755
- n = Te(t, o), l = t.top - o.height;
2756
- break;
2757
- case "bottom":
2758
- n = Te(t, o), l = window.innerHeight - t.top - t.height - o.height;
2759
- break;
2760
- case "left":
2761
- n = t.left - o.width, l = Ee(t, o);
2762
- break;
2763
- case "right":
2764
- n = window.innerWidth - t.left - t.width - o.width, l = Ee(t, o);
2765
- break;
2766
- }
2767
- return Math.min(0, Math.min(n, l));
2768
- }
2769
- function Ee(t, o) {
2770
- return Math.min(
2771
- window.innerHeight - t.top - t.height / 2 - o.height / 2,
2772
- t.top + t.height / 2 - o.height / 2
2773
- );
2774
- }
2775
- function Te(t, o) {
2776
- return Math.min(
2777
- window.innerWidth - t.left - t.width / 2 - o.width / 2,
2778
- t.left + t.width / 2 - o.width / 2
2779
- );
2780
- }
2781
- function Ot(t, o, e) {
2782
- const n = {
2783
- top: ["bottom", "left", "right"],
2784
- bottom: ["top", "left", "right"],
2785
- left: ["right", "top", "bottom"],
2786
- right: ["left", "top", "bottom"]
2787
- };
2788
- let l = e, s = ge(t, o, e);
2789
- for (const r of n[e]) {
2790
- const i = ge(t, o, r);
2791
- i > s && (s = i, l = r);
2792
- }
2793
- return l;
2794
- }
2795
- function Ft(t) {
2796
- return typeof t == "string" ? document.querySelector(t) : t;
2440
+ const _ = C$3(_$1), I = C$3(v), a = C$3(u$1), Q$1 = C$3(b$1);
2441
+ let e = 0;
2442
+ function r(u2) {
2443
+ return u2 || `uid-${++e}`;
2797
2444
  }
2798
- const Rt = ["role"], Ut = {
2799
- key: 0,
2800
- role: "presentation",
2801
- class: "q-overlay__arrow"
2802
- }, Nt = /* @__PURE__ */ defineComponent({
2803
- inheritAttrs: false,
2804
- __name: "QOverlay",
2805
- props: /* @__PURE__ */ mergeModels({
2806
- anchor: { default: void 0 },
2807
- appearance: { default: "regular" },
2808
- arrow: { type: Boolean },
2809
- attach: { default: "body" },
2810
- backdropBlur: { type: Boolean },
2811
- delay: { default: 500 },
2812
- scrollLock: { type: Boolean },
2813
- offset: { default: 8 },
2814
- persistent: { type: Boolean },
2815
- placement: { default: "right" },
2816
- spy: { type: Boolean },
2817
- transition: { default: "fade" },
2818
- trigger: { default: "click" },
2819
- width: { default: "auto" },
2820
- class: { default: void 0 }
2821
- }, {
2822
- modelValue: { type: Boolean },
2823
- modelModifiers: {}
2824
- }),
2825
- emits: /* @__PURE__ */ mergeModels(["enter", "leave"], ["update:modelValue"]),
2826
- setup(t, { emit: o }) {
2827
- const e = t, n = o, l = useModel(t, "modelValue"), s = computed(() => [
2828
- "q-overlay",
2829
- `q-overlay--${i.placement}`,
2830
- {
2831
- "q-overlay--independent": e.anchor === void 0,
2832
- "q-overlay--inverted": e.appearance === "inverted"
2833
- },
2834
- e.class
2835
- ]), r = computed(
2836
- () => (l.value || i.animating) && (e.anchor === void 0 || e.trigger === "click")
2837
- ), i = reactive({
2838
- animating: false,
2839
- top: 0,
2840
- left: 0,
2841
- width: 0,
2842
- placement: e.placement
2843
- });
2844
- watch(l, () => i.animating = true);
2845
- const f = computed(() => {
2846
- if (e.anchor === void 0)
2847
- return;
2848
- const p = ["top", "bottom"].includes(i.placement) ? i.width : void 0;
2849
- return {
2850
- top: `${i.top}px`,
2851
- left: `${i.left}px`,
2852
- width: p !== void 0 ? `${p}px` : void 0
2853
- };
2854
- }), L = ref(null);
2855
- function _() {
2856
- const p = A();
2857
- if (!p)
2858
- return;
2859
- const M = Mt(p, L.value, e.placement, e.width);
2860
- let R = 0, oe = 0;
2861
- switch (M.placement) {
2862
- case "top":
2863
- oe = -(e.offset || 0);
2864
- break;
2865
- case "bottom":
2866
- oe = e.offset || 0;
2867
- break;
2868
- case "left":
2869
- R = -(e.offset || 0);
2870
- break;
2871
- case "right":
2872
- R = e.offset || 0;
2873
- break;
2874
- }
2875
- i.left = M.x + R, i.top = M.y + oe, i.width = M.width, i.placement = M.placement;
2876
- }
2877
- watch([l, () => e.placement], _);
2878
- let y;
2879
- function U() {
2880
- C(0);
2881
- }
2882
- function z() {
2883
- C(e.delay);
2884
- }
2885
- function C(p) {
2886
- y || (y = window.setTimeout(() => {
2887
- l.value = true;
2888
- }, p));
2889
- }
2890
- function V() {
2891
- clearTimeout(y), y = void 0, l.value = false, nextTick(() => {
2892
- if (e.anchor && e.trigger === "click") {
2893
- const p = A();
2894
- p == null || p.focus();
2895
- }
2896
- });
2897
- }
2898
- let W;
2899
- function le() {
2900
- n("enter");
2901
- }
2902
- function j() {
2903
- window.clearTimeout(W), W = window.setTimeout(() => i.animating = false, 200), n("leave");
2904
- }
2905
- function A() {
2906
- return e.anchor ? Ft(e.anchor) : null;
2907
- }
2908
- let Q;
2909
- function X() {
2910
- nextTick(() => {
2911
- const p = A();
2912
- if (p)
2913
- switch (Q = new MutationObserver(_), Q.observe(p, {
2914
- attributes: false,
2915
- childList: true,
2916
- characterData: true,
2917
- subtree: true
2918
- }), e.trigger) {
2919
- case "click":
2920
- p.addEventListener("click", U);
2921
- break;
2922
- case "hover":
2923
- p.addEventListener("mouseenter", z), p.addEventListener("mouseleave", V), p.addEventListener("focusin", U), p.addEventListener("focusout", V);
2924
- break;
2925
- }
2926
- });
2927
- }
2928
- function N() {
2929
- const p = A();
2930
- if (p)
2931
- switch (Q == null || Q.disconnect(), e.trigger) {
2932
- case "click":
2933
- p.removeEventListener("click", U);
2934
- break;
2935
- case "hover":
2936
- p.removeEventListener("mouseenter", z), p.removeEventListener("mouseleave", V), p.removeEventListener("focusin", U), p.removeEventListener("focusout", V);
2937
- break;
2938
- }
2939
- }
2940
- function P() {
2941
- nextTick(() => {
2942
- window.addEventListener("resize", _), e.scrollLock || window.addEventListener("scroll", _), _();
2943
- });
2944
- }
2945
- function ae() {
2946
- window.removeEventListener("resize", _), e.scrollLock || window.removeEventListener("scroll", _);
2947
- }
2948
- let c;
2949
- function b() {
2950
- A() ? (_(), c = window.setTimeout(b, 100)) : V();
2951
- }
2952
- function q() {
2953
- P(), e.spy && b(), e.scrollLock && document.body.classList.add("no-scroll"), nextTick(() => {
2954
- var p;
2955
- (e.anchor === void 0 || e.trigger === "click") && ((p = L.value) == null || p.focus());
2956
- });
2957
- }
2958
- function d() {
2959
- ae(), e.spy && (clearTimeout(c), c = void 0), e.scrollLock && document.body.classList.remove("no-scroll");
2960
- }
2961
- function $() {
2962
- e.persistent || V();
2963
- }
2964
- return onBeforeUnmount(() => {
2965
- N(), d();
2966
- }), onMounted(() => {
2967
- nextTick(() => {
2968
- X(), _();
2969
- });
2970
- }), watch(
2971
- l,
2972
- (p) => {
2973
- p ? q() : d();
2974
- },
2975
- { immediate: true }
2976
- ), (p, M) => (openBlock(), createBlock(Teleport, {
2977
- disabled: !l.value && !i.animating || !e.attach,
2978
- to: e.attach
2979
- }, [
2980
- r.value ? (openBlock(), createElementBlock("div", {
2981
- key: 0,
2982
- class: normalizeClass([
2983
- "q-overlay__underlay",
2984
- { "q-overlay__underlay--blur": e.backdropBlur }
2985
- ])
2986
- }, null, 2)) : createCommentVNode("", true),
2987
- createVNode(Transition, {
2988
- name: e.transition,
2989
- appear: "",
2990
- onEnter: le,
2991
- onLeave: j
2992
- }, {
2993
- default: withCtx(() => [
2994
- l.value ? (openBlock(), createElementBlock("div", {
2995
- key: 0,
2996
- class: normalizeClass(s.value),
2997
- style: normalizeStyle(f.value)
2998
- }, [
2999
- createElementVNode("div", mergeProps({
3000
- class: "q-overlay__content",
3001
- ref_key: "overlayRef",
3002
- ref: L,
3003
- tabindex: "-1",
3004
- role: r.value ? "dialog" : void 0
3005
- }, p.$attrs, {
3006
- onKeydown: withKeys($, ["escape"]),
3007
- onBlur: $
3008
- }), [
3009
- e.arrow ? (openBlock(), createElementBlock("div", Ut)) : createCommentVNode("", true),
3010
- renderSlot(p.$slots, "default")
3011
- ], 16, Rt)
3012
- ], 6)) : createCommentVNode("", true)
3013
- ]),
3014
- _: 3
3015
- }, 8, ["name"])
3016
- ], 8, ["disabled", "to"]));
3017
- }
3018
- }), ve = S(Nt), Ht = ["id"], Kt = {
2445
+ const b = ["id"], h$1 = {
3019
2446
  key: 0,
3020
2447
  class: "q-field__label"
3021
- }, Gt = ["for"], Wt = {
2448
+ }, k = ["for"], B = {
3022
2449
  key: 0,
3023
2450
  class: "q-field__prepend"
3024
- }, jt = {
2451
+ }, z$1 = {
3025
2452
  key: 1,
3026
2453
  class: "q-field__append"
3027
- }, Xt = {
2454
+ }, C$1 = {
3028
2455
  key: 1,
3029
2456
  class: "q-field__extras"
3030
- }, Yt = /* @__PURE__ */ defineComponent({
2457
+ }, N = /* @__PURE__ */ defineComponent({
3031
2458
  inheritAttrs: false,
3032
2459
  __name: "QField",
3033
2460
  props: {
@@ -3040,51 +2467,59 @@ const Rt = ["role"], Ut = {
3040
2467
  required: { type: Boolean },
3041
2468
  class: { default: void 0 }
3042
2469
  },
3043
- setup(t, { expose: o }) {
3044
- const e = t, n = me(e.id), l = ref(null), s = computed(() => e.required && !e.readonly && !e.disabled);
3045
- return o({
3046
- fieldRef: l
3047
- }), (r, i) => (openBlock(), createElementBlock("div", {
3048
- id: unref(n),
2470
+ setup(a2, { expose: n2 }) {
2471
+ const e2 = a2, f2 = r(e2.id), t2 = ref(null), p2 = computed(() => e2.required && !e2.readonly && !e2.disabled);
2472
+ return n2({
2473
+ fieldRef: t2
2474
+ }), (l2, R) => (openBlock(), createElementBlock("div", {
2475
+ id: unref(f2),
3049
2476
  class: normalizeClass([
3050
2477
  "q-field",
3051
- `q-field--${e.size}`,
2478
+ `q-field--${e2.size}`,
3052
2479
  {
3053
- "q-field--readonly": e.readonly,
3054
- "q-field--disabled": e.disabled,
3055
- "q-field--required": s.value
2480
+ "q-field--readonly": e2.readonly,
2481
+ "q-field--disabled": e2.disabled,
2482
+ "q-field--required": p2.value
3056
2483
  },
3057
- e.class
2484
+ e2.class
3058
2485
  ])
3059
2486
  }, [
3060
- e.label ? (openBlock(), createElementBlock("div", Kt, [
3061
- renderSlot(r.$slots, "label.prepend"),
2487
+ e2.label ? (openBlock(), createElementBlock("div", h$1, [
2488
+ renderSlot(l2.$slots, "label.prepend"),
3062
2489
  createElementVNode("label", {
3063
- for: e.for
3064
- }, toDisplayString(e.label), 9, Gt),
3065
- renderSlot(r.$slots, "label.append")
3066
- ])) : createCommentVNode("", true),
3067
- renderSlot(r.$slots, "control", {}, () => [
3068
- createElementVNode("div", mergeProps({
3069
- class: "q-field__control",
3070
- ref_key: "fieldRef",
3071
- ref: l
3072
- }, r.$attrs), [
3073
- r.$slots.prepend ? (openBlock(), createElementBlock("div", Wt, [
3074
- renderSlot(r.$slots, "prepend")
3075
- ])) : createCommentVNode("", true),
3076
- renderSlot(r.$slots, "default"),
3077
- r.$slots.append ? (openBlock(), createElementBlock("div", jt, [
3078
- renderSlot(r.$slots, "append")
3079
- ])) : createCommentVNode("", true)
3080
- ], 16)
2490
+ for: e2.for
2491
+ }, toDisplayString(e2.label), 9, k),
2492
+ renderSlot(l2.$slots, "label.append")
2493
+ ])) : createCommentVNode("v-if", true),
2494
+ renderSlot(l2.$slots, "control", {}, () => [
2495
+ createElementVNode(
2496
+ "div",
2497
+ mergeProps({
2498
+ class: "q-field__control",
2499
+ ref_key: "fieldRef",
2500
+ ref: t2
2501
+ }, l2.$attrs),
2502
+ [
2503
+ l2.$slots.prepend ? (openBlock(), createElementBlock("div", B, [
2504
+ renderSlot(l2.$slots, "prepend")
2505
+ ])) : createCommentVNode("v-if", true),
2506
+ renderSlot(l2.$slots, "default"),
2507
+ l2.$slots.append ? (openBlock(), createElementBlock("div", z$1, [
2508
+ renderSlot(l2.$slots, "append")
2509
+ ])) : createCommentVNode("v-if", true)
2510
+ ],
2511
+ 16
2512
+ /* FULL_PROPS */
2513
+ )
3081
2514
  ]),
3082
- r.$slots.extras ? (openBlock(), createElementBlock("div", Xt, [
3083
- renderSlot(r.$slots, "extras")
3084
- ])) : createCommentVNode("", true)
3085
- ], 10, Ht));
2515
+ l2.$slots.extras ? (openBlock(), createElementBlock("div", C$1, [
2516
+ renderSlot(l2.$slots, "extras")
2517
+ ])) : createCommentVNode("v-if", true)
2518
+ ], 10, b));
3086
2519
  }
3087
- }), qe = S(Yt), Zt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Jt = /* @__PURE__ */ defineComponent({
2520
+ });
2521
+ const t$1 = C$3(N);
2522
+ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], L = /* @__PURE__ */ defineComponent({
3088
2523
  inheritAttrs: false,
3089
2524
  __name: "QTextField",
3090
2525
  props: /* @__PURE__ */ mergeModels({
@@ -3104,413 +2539,86 @@ const Rt = ["role"], Ut = {
3104
2539
  modelModifiers: {}
3105
2540
  }),
3106
2541
  emits: ["update:modelValue"],
3107
- setup(t, { expose: o }) {
3108
- const e = t, n = useModel(t, "modelValue"), l = me(e.id), s = ref(null), r = ref(null), i = computed(
3109
- () => e.readonly || e.disabled ? "" : e.placeholder
2542
+ setup(r$1, { expose: m2 }) {
2543
+ const e2 = r$1, t2 = useModel(r$1, "modelValue"), s = r(e2.id), i2 = ref(null), n2 = ref(null), y2 = computed(
2544
+ () => e2.readonly || e2.disabled ? "" : e2.placeholder
3110
2545
  );
3111
- return o({
2546
+ return m2({
3112
2547
  fieldRef: computed(() => {
3113
- var f;
3114
- return (f = s.value) == null ? void 0 : f.fieldRef;
2548
+ var l2;
2549
+ return (l2 = i2.value) == null ? void 0 : l2.fieldRef;
3115
2550
  }),
3116
- inputRef: r
3117
- }), (f, L) => (openBlock(), createBlock(unref(qe), {
2551
+ inputRef: n2
2552
+ }), (l2, p2) => (openBlock(), createBlock(unref(t$1), {
3118
2553
  ref_key: "fieldRef",
3119
- ref: s,
3120
- class: normalizeClass(["q-text-field", e.class]),
3121
- for: unref(l),
3122
- label: e.label,
3123
- size: e.size,
3124
- readonly: e.readonly,
3125
- disabled: e.disabled,
3126
- required: e.required
2554
+ ref: i2,
2555
+ class: normalizeClass(["q-text-field", e2.class]),
2556
+ for: unref(s),
2557
+ label: e2.label,
2558
+ size: e2.size,
2559
+ readonly: e2.readonly,
2560
+ disabled: e2.disabled,
2561
+ required: e2.required
3127
2562
  }, createSlots({
3128
2563
  "label.prepend": withCtx(() => [
3129
- renderSlot(f.$slots, "label.prepend")
2564
+ renderSlot(l2.$slots, "label.prepend")
3130
2565
  ]),
3131
2566
  "label.append": withCtx(() => [
3132
- renderSlot(f.$slots, "label.append")
2567
+ renderSlot(l2.$slots, "label.append")
3133
2568
  ]),
3134
2569
  default: withCtx(() => [
3135
2570
  withDirectives(createElementVNode("input", mergeProps({
3136
- "onUpdate:modelValue": L[0] || (L[0] = (_) => n.value = _),
2571
+ "onUpdate:modelValue": p2[0] || (p2[0] = (c) => t2.value = c),
3137
2572
  ref_key: "inputRef",
3138
- ref: r,
3139
- id: unref(l),
2573
+ ref: n2,
2574
+ id: unref(s),
3140
2575
  class: "q-text-field__input",
3141
- type: e.type,
3142
- role: e.role,
3143
- required: e.required,
3144
- placeholder: i.value,
3145
- readonly: e.readonly,
3146
- disabled: e.disabled,
3147
- maxlength: e.maxLength
3148
- }, f.$attrs), null, 16, Zt), [
3149
- [vModelDynamic, n.value]
2576
+ type: e2.type,
2577
+ role: e2.role,
2578
+ required: e2.required,
2579
+ placeholder: y2.value,
2580
+ readonly: e2.readonly,
2581
+ disabled: e2.disabled,
2582
+ maxlength: e2.maxLength
2583
+ }, l2.$attrs), null, 16, C), [
2584
+ [vModelDynamic, t2.value]
3150
2585
  ])
3151
2586
  ]),
3152
2587
  _: 2
2588
+ /* DYNAMIC */
3153
2589
  }, [
3154
- f.$slots.prepend ? {
2590
+ l2.$slots.prepend ? {
3155
2591
  name: "prepend",
3156
2592
  fn: withCtx(() => [
3157
- renderSlot(f.$slots, "prepend")
2593
+ renderSlot(l2.$slots, "prepend")
3158
2594
  ]),
3159
2595
  key: "0"
3160
2596
  } : void 0,
3161
- f.$slots.append ? {
2597
+ l2.$slots.append ? {
3162
2598
  name: "append",
3163
2599
  fn: withCtx(() => [
3164
- renderSlot(f.$slots, "append")
2600
+ renderSlot(l2.$slots, "append")
3165
2601
  ]),
3166
2602
  key: "1"
3167
2603
  } : void 0,
3168
- f.$slots.extras ? {
2604
+ l2.$slots.extras ? {
3169
2605
  name: "extras",
3170
2606
  fn: withCtx(() => [
3171
- renderSlot(f.$slots, "extras")
2607
+ renderSlot(l2.$slots, "extras")
3172
2608
  ]),
3173
2609
  key: "2"
3174
2610
  } : void 0
3175
2611
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
3176
2612
  }
3177
- }), Pt = S(Jt), eo = ["data-key"], to = {
3178
- key: 0,
3179
- class: "q-select__loader"
3180
- }, oo = {
3181
- key: 2,
3182
- class: "q-select__loader"
3183
- }, no = {
3184
- noData: "No data available"
3185
- }, lo = {
3186
- chevron: {
3187
- icon: "chevron-down"
3188
- },
3189
- clear: {
3190
- icon: "close"
3191
- }
3192
- }, ao = /* @__PURE__ */ defineComponent({
3193
- __name: "QCombobox",
3194
- props: /* @__PURE__ */ mergeModels({
3195
- id: { default: void 0 },
3196
- placeholder: { default: "" },
3197
- selectionMode: { default: "automatic" },
3198
- filterMode: { default: "builtin" },
3199
- label: { default: "" },
3200
- clearable: { type: Boolean },
3201
- readonly: { type: Boolean },
3202
- disabled: { type: Boolean },
3203
- required: { type: Boolean },
3204
- loading: { type: Boolean },
3205
- items: {},
3206
- groups: { default: () => [] },
3207
- itemValue: { default: "key" },
3208
- itemLabel: { default: "label" },
3209
- emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
3210
- size: { default: void 0 },
3211
- texts: { default: () => no },
3212
- icons: { default: () => lo },
3213
- class: { default: void 0 }
3214
- }, {
3215
- modelValue: {
3216
- type: [String, Number, Boolean, Symbol]
3217
- },
3218
- modelModifiers: {},
3219
- open: { type: Boolean },
3220
- openModifiers: {},
3221
- search: { default: "" },
3222
- searchModifiers: {}
3223
- }),
3224
- emits: /* @__PURE__ */ mergeModels(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
3225
- setup(t, { expose: o, emit: e }) {
3226
- const n = t, l = e, s = useModel(t, "modelValue"), r = useModel(t, "open"), i = useModel(t, "search"), f = ref(void 0), L = ref(null), _ = ref(null), y = ref(null);
3227
- onMounted(Q);
3228
- const U = computed(() => n.clearable && !n.readonly && !n.disabled), z = computed(() => {
3229
- var a;
3230
- return n.filterMode === "manual" || !j.value ? n.items : (a = n.items) == null ? void 0 : a.filter(
3231
- (g) => g[n.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
3232
- );
3233
- }), C = computed(() => {
3234
- var a;
3235
- return (a = n.items) == null ? void 0 : a.find((g) => g[n.itemValue] === s.value);
3236
- }), V = computed(() => C.value === void 0), W = computed(() => {
3237
- const a = f.value;
3238
- if (a !== void 0 && z.value[a])
3239
- return z.value[a];
3240
- }), le = computed(() => {
3241
- var g;
3242
- if (f.value === void 0)
3243
- return;
3244
- const a = (g = _.value) == null ? void 0 : g.getItem(f.value);
3245
- return a == null ? void 0 : a.id;
3246
- }), j = computed(() => {
3247
- var a;
3248
- return i.value.length > 0 && i.value !== ((a = C.value) == null ? void 0 : a[n.itemLabel]);
3249
- });
3250
- function A(a) {
3251
- s.value = a, N();
3252
- }
3253
- function Q() {
3254
- var g;
3255
- const a = ((g = C.value) == null ? void 0 : g[n.itemLabel]) || "";
3256
- i.value !== a && (i.value = a);
3257
- }
3258
- function X() {
3259
- r.value || n.readonly || n.disabled || (l("before-show"), r.value = true, M());
3260
- }
3261
- function N() {
3262
- r.value && (l("before-hide"), r.value = false, f.value = void 0);
3263
- }
3264
- function P() {
3265
- r.value ? N() : c();
3266
- }
3267
- function ae() {
3268
- U.value && (s.value = n.emptyValue, f.value = void 0, M());
3269
- }
3270
- function c() {
3271
- if (X(), C.value !== void 0) {
3272
- const a = z.value.indexOf(C.value);
3273
- a !== -1 && nextTick(() => Le(a));
3274
- }
3275
- }
3276
- function b(a) {
3277
- var g, B;
3278
- if (!(!a.key || n.readonly || n.disabled))
3279
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), a.key === "Escape")
3280
- Q(), r.value && N();
3281
- else if (["ArrowDown", "ArrowUp"].includes(a.key))
3282
- r.value ? nextTick(() => {
3283
- if (f.value === void 0)
3284
- q();
3285
- else {
3286
- const O = a.key === "ArrowDown" ? "next" : "prev";
3287
- $(f.value, O);
3288
- }
3289
- }) : (X(), nextTick(() => {
3290
- a.key === "ArrowDown" ? q() : d();
3291
- }));
3292
- else if (a.key === "Enter") {
3293
- if (W.value === void 0)
3294
- return;
3295
- A(W.value[n.itemValue]);
3296
- } else
3297
- a.key === "Home" ? f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex() : a.key === "End" ? f.value = (B = _.value) == null ? void 0 : B.getLastFocusableItemIndex() : (/^[a-z]$/i.test(a.key) || a.key === "Backspace") && X();
3298
- }
3299
- function q() {
3300
- var a, g;
3301
- if (V.value)
3302
- f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex();
3303
- else {
3304
- const B = z.value.findIndex(
3305
- (O) => O[n.itemValue] === s.value
3306
- );
3307
- B === -1 ? f.value = (a = _.value) == null ? void 0 : a.getFirstFocusableItemIndex() : f.value = B;
3308
- }
3309
- }
3310
- function d() {
3311
- var a;
3312
- f.value = (a = _.value) == null ? void 0 : a.getLastFocusableItemIndex();
3313
- }
3314
- function $(a, g) {
3315
- var B;
3316
- f.value = (B = _.value) == null ? void 0 : B.getAdjacentItemIndex(a, g);
3317
- }
3318
- function p(a) {
3319
- var g, B, O;
3320
- !((g = y.value) != null && g.contains(a.relatedTarget)) && !((O = (B = L.value) == null ? void 0 : B.fieldRef) != null && O.contains(a.relatedTarget)) ? (N(), U.value && !i.value && (s.value = n.emptyValue), Q()) : (a.preventDefault(), a.stopPropagation());
3321
- }
3322
- function M() {
3323
- var a, g;
3324
- (g = (a = L.value) == null ? void 0 : a.inputRef) == null || g.focus();
3325
- }
3326
- function R() {
3327
- M();
3328
- }
3329
- function oe() {
3330
- l("show");
3331
- }
3332
- function Ue() {
3333
- l("hide");
3334
- }
3335
- function Le(a) {
3336
- var B;
3337
- const g = (B = _.value) == null ? void 0 : B.getItem(a);
3338
- _.value && (_.value.$el.scrollTop = g == null ? void 0 : g.offsetTop);
3339
- }
3340
- return watch(s, Q), watch(
3341
- () => n.items,
3342
- (a, g) => {
3343
- if (!V.value) {
3344
- const B = g.find((O) => O[n.itemValue] === s.value);
3345
- i.value === (B == null ? void 0 : B[n.itemLabel]) && Q();
3346
- }
3347
- },
3348
- { deep: true }
3349
- ), watch(f, (a) => {
3350
- a !== void 0 && Le(a);
3351
- }), watch(i, (a) => {
3352
- a && r.value && n.selectionMode === "automatic" && nextTick(q);
3353
- }), watch(
3354
- () => n.loading,
3355
- (a) => {
3356
- !a && r.value && nextTick(q);
3357
- }
3358
- ), o({
3359
- triggerEl: L
3360
- }), (a, g) => {
3361
- var B;
3362
- return openBlock(), createElementBlock(Fragment, null, [
3363
- createVNode(unref(Pt), {
3364
- modelValue: i.value,
3365
- "onUpdate:modelValue": g[0] || (g[0] = (O) => i.value = O),
3366
- id: n.id,
3367
- label: n.label,
3368
- required: n.required,
3369
- ref_key: "triggerEl",
3370
- ref: L,
3371
- role: "combobox",
3372
- placeholder: n.placeholder,
3373
- class: normalizeClass([
3374
- "q-combobox",
3375
- {
3376
- "q-combobox--readonly": n.readonly,
3377
- "q-combobox--disabled": n.disabled,
3378
- "q-combobox--expanded": r.value
3379
- },
3380
- n.class
3381
- ]),
3382
- readonly: n.readonly,
3383
- disabled: n.disabled,
3384
- "data-loading": n.loading,
3385
- autocomplete: "off",
3386
- "aria-expanded": r.value,
3387
- "aria-haspopup": "listbox",
3388
- "aria-autocomplete": "list",
3389
- "aria-activedescendant": le.value,
3390
- size: n.size,
3391
- onClick: c,
3392
- onFocusout: p,
3393
- onKeydown: withModifiers(b, ["stop"])
3394
- }, createSlots({
3395
- "label.prepend": withCtx(() => [
3396
- renderSlot(a.$slots, "label.prepend")
3397
- ]),
3398
- "label.append": withCtx(() => [
3399
- renderSlot(a.$slots, "label.append")
3400
- ]),
3401
- append: withCtx(() => [
3402
- renderSlot(a.$slots, "append"),
3403
- U.value && i.value ? (openBlock(), createBlock(unref(fe), {
3404
- key: 0,
3405
- class: "q-combobox__clear",
3406
- "b-style": "plain",
3407
- borderless: "",
3408
- tabindex: "-1",
3409
- onClick: ae
3410
- }, {
3411
- default: withCtx(() => [
3412
- createVNode(unref(ee), normalizeProps(guardReactiveProps(n.icons.clear)), null, 16)
3413
- ]),
3414
- _: 1
3415
- })) : createCommentVNode("", true),
3416
- n.readonly ? createCommentVNode("", true) : (openBlock(), createBlock(unref(fe), {
3417
- key: 1,
3418
- class: "q-combobox__chevron",
3419
- "b-style": "plain",
3420
- borderless: "",
3421
- tabindex: "-1",
3422
- disabled: n.disabled,
3423
- onClick: P
3424
- }, {
3425
- default: withCtx(() => [
3426
- createVNode(unref(ee), normalizeProps(guardReactiveProps(n.icons.chevron)), null, 16)
3427
- ]),
3428
- _: 1
3429
- }, 8, ["disabled"]))
3430
- ]),
3431
- _: 2
3432
- }, [
3433
- a.$slots.prepend ? {
3434
- name: "prepend",
3435
- fn: withCtx(() => [
3436
- renderSlot(a.$slots, "prepend")
3437
- ]),
3438
- key: "0"
3439
- } : void 0,
3440
- a.$slots.extras ? {
3441
- name: "extras",
3442
- fn: withCtx(() => [
3443
- renderSlot(a.$slots, "extras")
3444
- ]),
3445
- key: "1"
3446
- } : void 0
3447
- ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
3448
- createVNode(unref(ve), {
3449
- modelValue: r.value,
3450
- "onUpdate:modelValue": g[2] || (g[2] = (O) => r.value = O),
3451
- spy: "",
3452
- trigger: "manual",
3453
- placement: "bottom",
3454
- width: "anchor",
3455
- offset: 4,
3456
- anchor: (B = L.value) == null ? void 0 : B.$el,
3457
- onEnter: oe,
3458
- onLeave: Ue
3459
- }, {
3460
- default: withCtx(() => {
3461
- var O;
3462
- return [
3463
- createElementVNode("div", {
3464
- ref_key: "contentRef",
3465
- ref: y,
3466
- "data-testid": "combobox-dropdown",
3467
- "data-key": n.id,
3468
- class: "q-select__body",
3469
- onFocusout: p
3470
- }, [
3471
- renderSlot(a.$slots, "body.prepend"),
3472
- n.loading ? (openBlock(), createElementBlock("div", to, [
3473
- createVNode(unref($e), { size: 24 })
3474
- ])) : z.value.length ? (openBlock(), createBlock(unref(Re), {
3475
- key: 1,
3476
- ref_key: "listRef",
3477
- ref: _,
3478
- class: "q-select__items",
3479
- modelValue: s.value,
3480
- "onUpdate:modelValue": [
3481
- g[1] || (g[1] = (he) => s.value = he),
3482
- A
3483
- ],
3484
- highlighted: (O = W.value) == null ? void 0 : O[n.itemValue],
3485
- items: z.value,
3486
- groups: a.groups,
3487
- "item-label": n.itemLabel,
3488
- "item-value": n.itemValue,
3489
- onMouseup: R
3490
- }, {
3491
- item: withCtx(({ item: he }) => [
3492
- renderSlot(a.$slots, "item", { item: he })
3493
- ]),
3494
- _: 3
3495
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (openBlock(), createElementBlock("div", oo, toDisplayString(a.texts.noData), 1)),
3496
- renderSlot(a.$slots, "body.append")
3497
- ], 40, eo)
3498
- ];
3499
- }),
3500
- _: 3
3501
- }, 8, ["modelValue", "anchor"])
3502
- ], 64);
3503
- };
3504
- }
3505
2613
  });
3506
- S(ao);
3507
- const so = {
2614
+ const p$1 = C$3(L);
2615
+ const q = {
3508
2616
  key: 0,
3509
2617
  class: "q-input-group__prepend"
3510
- }, io = { key: 0 }, ro = {
2618
+ }, z = { key: 0 }, $ = {
3511
2619
  key: 1,
3512
2620
  class: "q-input-group__append"
3513
- }, uo = { key: 0 }, co = /* @__PURE__ */ defineComponent({
2621
+ }, h = { key: 0 }, Q = /* @__PURE__ */ defineComponent({
3514
2622
  __name: "QInputGroup",
3515
2623
  props: {
3516
2624
  id: { default: void 0 },
@@ -3521,433 +2629,83 @@ const so = {
3521
2629
  size: { default: "large" },
3522
2630
  class: { default: void 0 }
3523
2631
  },
3524
- setup(t) {
3525
- const o = t;
3526
- return Me({
2632
+ setup(c) {
2633
+ const e2 = c;
2634
+ return I$1({
3527
2635
  QField: {
3528
2636
  size: "block"
3529
2637
  }
3530
- }), (e, n) => (openBlock(), createBlock(unref(qe), {
3531
- id: o.id,
3532
- class: normalizeClass(["q-input-group", o.class]),
3533
- label: o.label,
3534
- required: o.required,
3535
- size: o.size
3536
- }, {
2638
+ }), (o2, y2) => (openBlock(), createBlock(unref(t$1), {
2639
+ id: e2.id,
2640
+ class: normalizeClass(["q-input-group", e2.class]),
2641
+ label: e2.label,
2642
+ required: e2.required,
2643
+ size: e2.size
2644
+ }, createSlots({
3537
2645
  default: withCtx(() => [
3538
- e.$slots.prepend || o.prependIcon ? (openBlock(), createElementBlock("div", so, [
3539
- o.prependIcon ? (openBlock(), createElementBlock("span", io, [
3540
- createVNode(unref(ee), normalizeProps(guardReactiveProps(o.prependIcon)), null, 16)
3541
- ])) : createCommentVNode("", true),
3542
- renderSlot(e.$slots, "prepend")
3543
- ])) : createCommentVNode("", true),
3544
- renderSlot(e.$slots, "default"),
3545
- e.$slots.append || o.appendIcon ? (openBlock(), createElementBlock("div", ro, [
3546
- o.appendIcon ? (openBlock(), createElementBlock("span", uo, [
3547
- createVNode(unref(ee), normalizeProps(guardReactiveProps(o.appendIcon)), null, 16)
3548
- ])) : createCommentVNode("", true),
3549
- renderSlot(e.$slots, "append")
3550
- ])) : createCommentVNode("", true)
2646
+ o2.$slots.prepend || e2.prependIcon ? (openBlock(), createElementBlock("div", q, [
2647
+ e2.prependIcon ? (openBlock(), createElementBlock("span", z, [
2648
+ createVNode(
2649
+ unref(_),
2650
+ normalizeProps(guardReactiveProps(e2.prependIcon)),
2651
+ null,
2652
+ 16
2653
+ /* FULL_PROPS */
2654
+ )
2655
+ ])) : createCommentVNode("v-if", true),
2656
+ renderSlot(o2.$slots, "prepend")
2657
+ ])) : createCommentVNode("v-if", true),
2658
+ renderSlot(o2.$slots, "default"),
2659
+ o2.$slots.append || e2.appendIcon ? (openBlock(), createElementBlock("div", $, [
2660
+ e2.appendIcon ? (openBlock(), createElementBlock("span", h, [
2661
+ createVNode(
2662
+ unref(_),
2663
+ normalizeProps(guardReactiveProps(e2.appendIcon)),
2664
+ null,
2665
+ 16
2666
+ /* FULL_PROPS */
2667
+ )
2668
+ ])) : createCommentVNode("v-if", true),
2669
+ renderSlot(o2.$slots, "append")
2670
+ ])) : createCommentVNode("v-if", true)
3551
2671
  ]),
3552
- _: 3
3553
- }, 8, ["id", "class", "label", "required", "size"]));
2672
+ _: 2
2673
+ /* DYNAMIC */
2674
+ }, [
2675
+ o2.$slots.extras ? {
2676
+ name: "extras",
2677
+ fn: withCtx(() => [
2678
+ renderSlot(o2.$slots, "extras")
2679
+ ]),
2680
+ key: "0"
2681
+ } : void 0
2682
+ ]), 1032, ["id", "class", "label", "required", "size"]));
3554
2683
  }
3555
- }), zo = S(co), fo = /* @__PURE__ */ defineComponent({
2684
+ });
2685
+ const m = C$3(Q);
2686
+ const p = /* @__PURE__ */ defineComponent({
3556
2687
  __name: "QLineLoader",
3557
2688
  props: {
3558
2689
  class: { default: void 0 }
3559
2690
  },
3560
- setup(t) {
3561
- const o = t;
3562
- return (e, n) => (openBlock(), createElementBlock("div", {
3563
- class: normalizeClass(["q-line-loader", o.class])
3564
- }, null, 2));
3565
- }
3566
- }), Co = S(fo), po = {
3567
- key: 0,
3568
- class: "q-popover__header"
3569
- }, mo = {
3570
- key: 1,
3571
- class: "q-popover__body"
3572
- }, vo = ["innerHTML"], ho = { key: 1 }, bo = /* @__PURE__ */ defineComponent({
3573
- inheritAttrs: false,
3574
- __name: "QPopover",
3575
- props: /* @__PURE__ */ mergeModels({
3576
- anchor: {},
3577
- arrow: { type: Boolean, default: true },
3578
- attach: { default: "body" },
3579
- disabled: { type: Boolean },
3580
- html: { type: Boolean, default: true },
3581
- placement: { default: "right" },
3582
- text: {},
3583
- title: {}
3584
- }, {
3585
- modelValue: { type: Boolean },
3586
- modelModifiers: {}
3587
- }),
3588
- emits: ["update:modelValue"],
3589
- setup(t) {
3590
- const o = t, e = useModel(t, "modelValue");
3591
- return (n, l) => (openBlock(), createBlock(unref(ve), {
3592
- "model-value": e.value,
3593
- class: "q-popover",
3594
- trigger: "click",
3595
- anchor: o.anchor,
3596
- arrow: o.arrow,
3597
- attach: o.attach,
3598
- disabled: o.disabled,
3599
- placement: o.placement
3600
- }, {
3601
- default: withCtx(() => [
3602
- o.title || n.$slots.header ? (openBlock(), createElementBlock("h3", po, [
3603
- createTextVNode(toDisplayString(o.title) + " ", 1),
3604
- renderSlot(n.$slots, "header")
3605
- ])) : createCommentVNode("", true),
3606
- o.text || n.$slots.body ? (openBlock(), createElementBlock("div", mo, [
3607
- o.html ? (openBlock(), createElementBlock("span", {
3608
- key: 0,
3609
- innerHTML: o.text
3610
- }, null, 8, vo)) : (openBlock(), createElementBlock("span", ho, toDisplayString(o.text), 1)),
3611
- renderSlot(n.$slots, "body")
3612
- ])) : createCommentVNode("", true)
3613
- ]),
3614
- _: 3
3615
- }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
3616
- }
3617
- });
3618
- S(bo);
3619
- const yo = {
3620
- key: 0,
3621
- class: "q-select__value"
3622
- }, go = {
3623
- key: 1,
3624
- class: "q-select__placeholder"
3625
- }, _o = ["data-key"], ko = {
3626
- key: 0,
3627
- class: "q-select__loader"
3628
- }, wo = {
3629
- placeholder: "Choose..."
3630
- }, $o = {
3631
- chevron: {
3632
- icon: "chevron-down"
3633
- },
3634
- clear: {
3635
- icon: "close"
3636
- }
3637
- }, qo = /* @__PURE__ */ defineComponent({
3638
- __name: "QSelect",
3639
- props: /* @__PURE__ */ mergeModels({
3640
- id: { default: void 0 },
3641
- label: { default: "" },
3642
- clearable: { type: Boolean },
3643
- readonly: { type: Boolean },
3644
- disabled: { type: Boolean },
3645
- required: { type: Boolean },
3646
- loading: { type: Boolean },
3647
- icons: { default: () => $o },
3648
- items: {},
3649
- groups: { default: () => [] },
3650
- itemValue: { default: "key" },
3651
- itemLabel: { default: "label" },
3652
- emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
3653
- size: { default: void 0 },
3654
- texts: { default: () => wo },
3655
- class: { default: "" }
3656
- }, {
3657
- modelValue: {
3658
- type: [String, Number, Boolean, Symbol]
3659
- },
3660
- modelModifiers: {}
3661
- }),
3662
- emits: /* @__PURE__ */ mergeModels(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
3663
- setup(t, { emit: o }) {
3664
- const e = t, n = o, l = useModel(t, "modelValue"), s = ref(false), r = ref(""), i = ref(null), f = ref(null), L = ref(null), _ = computed(() => y.value === void 0), y = computed(
3665
- () => {
3666
- var d;
3667
- return (d = e.items) == null ? void 0 : d.find(($) => $[e.itemValue] === l.value);
3668
- }
3669
- ), U = computed(
3670
- () => y.value ? y.value[e.itemLabel] : ""
3671
- ), z = computed(
3672
- () => e.clearable && !e.readonly && !e.disabled && !e.loading
3673
- );
3674
- function C(d) {
3675
- l.value = d, A();
3676
- }
3677
- function V() {
3678
- z.value && C(e.emptyValue);
3679
- }
3680
- function W() {
3681
- e.readonly || e.disabled || (s.value ? A() : j());
3682
- }
3683
- function le(d) {
3684
- var $, p, M;
3685
- !(($ = L.value) != null && $.contains(d.relatedTarget)) && !((M = (p = i.value) == null ? void 0 : p.fieldRef) != null && M.contains(d.relatedTarget)) && A();
3686
- }
3687
- function j() {
3688
- s.value || (n("before-show"), s.value = true);
3689
- }
3690
- function A() {
3691
- s.value && (n("before-hide"), s.value = false);
3692
- }
3693
- function Q() {
3694
- s.value ? A() : j();
3695
- }
3696
- let X;
3697
- function N(d) {
3698
- if (!(!d.key || e.readonly || e.disabled)) {
3699
- if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = true), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = false : z.value && d.key === "Escape" && V()), d.key === "Delete" && e.clearable && V(), /^[a-z]$/i.test(d.key)) {
3700
- r.value += d.key.toLowerCase();
3701
- for (let $ = 0; $ < e.items.length; $++)
3702
- if (e.items[$][e.itemLabel].toLowerCase().startsWith(r.value)) {
3703
- q($);
3704
- break;
3705
- }
3706
- }
3707
- X = window.setTimeout(function() {
3708
- r.value = "";
3709
- }, 500);
3710
- }
3711
- }
3712
- function P() {
3713
- var d;
3714
- e.loading ? (d = L.value) == null || d.focus() : b(), n("show");
3715
- }
3716
- function ae() {
3717
- c(), n("hide");
3718
- }
3719
- function c() {
3720
- var d, $;
3721
- ($ = (d = i.value) == null ? void 0 : d.fieldRef) == null || $.focus();
3722
- }
3723
- function b() {
3724
- var d;
3725
- (d = f.value) == null || d.$el.focus();
3726
- }
3727
- function q(d) {
3728
- var $;
3729
- ($ = f.value) == null || $.focusItem(d);
3730
- }
3731
- return watch(
3732
- () => e.loading,
3733
- (d) => {
3734
- !d && s.value && nextTick(b);
3735
- }
3736
- ), (d, $) => {
3737
- var p, M;
3738
- return openBlock(), createElementBlock(Fragment, null, [
3739
- createVNode(unref(qe), {
3740
- id: e.id,
3741
- label: e.label,
3742
- required: e.required,
3743
- ref_key: "triggerEl",
3744
- ref: i,
3745
- role: "combobox",
3746
- tabindex: e.disabled ? -1 : 0,
3747
- class: normalizeClass([
3748
- "q-select",
3749
- {
3750
- "q-select--readonly": e.readonly,
3751
- "q-select--disabled": e.disabled,
3752
- "q-select--expanded": s.value
3753
- },
3754
- e.class
3755
- ]),
3756
- readonly: e.readonly,
3757
- disabled: e.disabled,
3758
- "data-loading": e.loading,
3759
- "aria-expanded": s.value,
3760
- "aria-haspopup": "listbox",
3761
- size: e.size,
3762
- onClick: W,
3763
- onKeydown: withModifiers(N, ["stop"])
3764
- }, createSlots({
3765
- append: withCtx(() => [
3766
- renderSlot(d.$slots, "append"),
3767
- z.value && l.value ? (openBlock(), createBlock(unref(fe), {
3768
- key: 0,
3769
- class: "q-select__clear",
3770
- "b-style": "plain",
3771
- borderless: "",
3772
- tabindex: "-1",
3773
- onClick: V
3774
- }, {
3775
- default: withCtx(() => [
3776
- createVNode(unref(ee), normalizeProps(guardReactiveProps(e.icons.clear)), null, 16)
3777
- ]),
3778
- _: 1
3779
- })) : createCommentVNode("", true),
3780
- e.readonly ? createCommentVNode("", true) : (openBlock(), createBlock(unref(fe), {
3781
- key: 1,
3782
- class: "q-select__chevron",
3783
- "b-style": "plain",
3784
- borderless: "",
3785
- tabindex: "-1",
3786
- disabled: e.disabled,
3787
- onClick: Q
3788
- }, {
3789
- default: withCtx(() => [
3790
- createVNode(unref(ee), normalizeProps(guardReactiveProps(e.icons.chevron)), null, 16)
3791
- ]),
3792
- _: 1
3793
- }, 8, ["disabled"]))
3794
- ]),
3795
- default: withCtx(() => [
3796
- _.value ? (openBlock(), createElementBlock("span", go, [
3797
- !e.readonly && !e.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3798
- createTextVNode(toDisplayString(d.texts.placeholder), 1)
3799
- ], 64)) : createCommentVNode("", true)
3800
- ])) : (openBlock(), createElementBlock("span", yo, toDisplayString(U.value), 1))
3801
- ]),
3802
- _: 2
3803
- }, [
3804
- (p = y.value) != null && p.icon || d.$slots.prepend ? {
3805
- name: "prepend",
3806
- fn: withCtx(() => {
3807
- var R, oe;
3808
- return [
3809
- renderSlot(d.$slots, "prepend"),
3810
- (R = y.value) != null && R.icon ? (openBlock(), createBlock(unref(ee), normalizeProps(mergeProps({ key: 0 }, (oe = y.value) == null ? void 0 : oe.icon)), null, 16)) : createCommentVNode("", true)
3811
- ];
3812
- }),
3813
- key: "0"
3814
- } : void 0,
3815
- d.$slots.extras ? {
3816
- name: "extras",
3817
- fn: withCtx(() => [
3818
- renderSlot(d.$slots, "extras")
3819
- ]),
3820
- key: "1"
3821
- } : void 0
3822
- ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
3823
- createVNode(unref(ve), {
3824
- modelValue: s.value,
3825
- "onUpdate:modelValue": $[1] || ($[1] = (R) => s.value = R),
3826
- spy: "",
3827
- trigger: "manual",
3828
- placement: "bottom",
3829
- width: "anchor",
3830
- "scroll-lock": "",
3831
- anchor: (M = i.value) == null ? void 0 : M.$el,
3832
- offset: 2,
3833
- onEnter: P,
3834
- onLeave: ae
3835
- }, {
3836
- default: withCtx(() => [
3837
- createElementVNode("div", {
3838
- ref_key: "contentRef",
3839
- ref: L,
3840
- "data-testid": "combobox-dropdown",
3841
- "data-key": e.id,
3842
- class: "q-select__body",
3843
- tabindex: "-1",
3844
- onFocusout: le,
3845
- onKeydown: withModifiers(N, ["stop"])
3846
- }, [
3847
- renderSlot(d.$slots, "body.prepend"),
3848
- e.loading ? (openBlock(), createElementBlock("div", ko, [
3849
- createVNode(unref($e), { size: 24 })
3850
- ])) : (openBlock(), createBlock(unref(Re), {
3851
- key: 1,
3852
- ref_key: "listRef",
3853
- ref: f,
3854
- class: "q-select__items",
3855
- modelValue: l.value,
3856
- "onUpdate:modelValue": [
3857
- $[0] || ($[0] = (R) => l.value = R),
3858
- C
3859
- ],
3860
- items: e.items,
3861
- groups: d.groups,
3862
- "item-label": e.itemLabel,
3863
- "item-value": e.itemValue
3864
- }, {
3865
- item: withCtx(({ item: R }) => [
3866
- renderSlot(d.$slots, "item", { item: R })
3867
- ]),
3868
- _: 3
3869
- }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
3870
- renderSlot(d.$slots, "body.append")
3871
- ], 40, _o)
3872
- ]),
3873
- _: 3
3874
- }, 8, ["modelValue", "anchor"])
3875
- ], 64);
3876
- };
3877
- }
3878
- });
3879
- S(qo);
3880
- const Lo = /* @__PURE__ */ defineComponent({
3881
- __name: "QThemeProvider",
3882
- props: {
3883
- theme: {}
3884
- },
3885
- setup(t) {
3886
- const o = t;
3887
- return (e, n) => (openBlock(), createElementBlock("div", {
3888
- class: normalizeClass(["q-theme-provider", `q-theme--${o.theme}`])
3889
- }, [
3890
- renderSlot(e.$slots, "default")
3891
- ], 2));
3892
- }
3893
- });
3894
- S(Lo);
3895
- const Io = ["innerHTML"], xo = { key: 1 }, Bo = /* @__PURE__ */ defineComponent({
3896
- __name: "QTooltip",
3897
- props: /* @__PURE__ */ mergeModels({
3898
- id: { default: void 0 },
3899
- anchor: {},
3900
- appearance: { default: "inverted" },
3901
- arrow: { type: Boolean, default: true },
3902
- attach: { default: "body" },
3903
- delay: { default: 500 },
3904
- disabled: { type: Boolean },
3905
- html: { type: Boolean, default: true },
3906
- placement: { default: "right" },
3907
- text: {},
3908
- trigger: { default: "hover" },
3909
- class: { default: void 0 }
3910
- }, {
3911
- modelValue: { type: Boolean },
3912
- modelModifiers: {}
3913
- }),
3914
- emits: ["update:modelValue"],
3915
- setup(t) {
3916
- const o = t, e = useModel(t, "modelValue"), n = me(o.id);
3917
- return (l, s) => (openBlock(), createElementBlock(Fragment, null, [
3918
- renderSlot(l.$slots, "anchor", {
3919
- props: { "aria-describedby": unref(n) }
3920
- }),
3921
- createVNode(unref(ve), {
3922
- "model-value": e.value,
3923
- anchor: o.anchor,
3924
- role: "tooltip",
3925
- id: unref(n),
3926
- appearance: o.appearance,
3927
- arrow: o.arrow,
3928
- attach: o.attach,
3929
- class: normalizeClass(["q-tooltip", o.class]),
3930
- delay: o.delay,
3931
- disabled: o.disabled,
3932
- placement: o.placement,
3933
- trigger: o.trigger
3934
- }, {
3935
- default: withCtx(() => [
3936
- o.html ? (openBlock(), createElementBlock("span", {
3937
- key: 0,
3938
- innerHTML: o.text
3939
- }, null, 8, Io)) : (openBlock(), createElementBlock("span", xo, toDisplayString(o.text), 1))
3940
- ]),
3941
- _: 1
3942
- }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
3943
- ], 64));
2691
+ setup(e2) {
2692
+ const o2 = e2;
2693
+ return (r2, t2) => (openBlock(), createElementBlock(
2694
+ "div",
2695
+ {
2696
+ class: normalizeClass(["q-line-loader", o2.class])
2697
+ },
2698
+ null,
2699
+ 2
2700
+ /* CLASS */
2701
+ ));
3944
2702
  }
3945
2703
  });
3946
- S(Bo);
2704
+ const t = C$3(p);
3947
2705
  const _hoisted_1$1 = { class: "q-chatbot__message-container" };
3948
2706
  const _hoisted_2$1 = ["src"];
3949
2707
  const _hoisted_3$1 = { class: "q-chatbot__message-wrapper" };
3950
- const _hoisted_4 = {
2708
+ const _hoisted_4$1 = {
3951
2709
  key: 0,
3952
2710
  class: "q-chatbot__sender"
3953
2711
  };
@@ -3963,7 +2721,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3963
2721
  sender: { default: "user" },
3964
2722
  message: {},
3965
2723
  date: { default: () => /* @__PURE__ */ new Date() },
3966
- loading: { type: Boolean }
2724
+ loading: { type: Boolean },
2725
+ dateFormat: {}
3967
2726
  },
3968
2727
  setup(__props) {
3969
2728
  const props = __props;
@@ -3971,11 +2730,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3971
2730
  return props.sender === "bot" ? "GenioBot" : "You";
3972
2731
  });
3973
2732
  const getLocaleDate = computed(() => {
3974
- return props.date.toLocaleString();
2733
+ if (!props.dateFormat)
2734
+ return props.date.toLocaleString();
2735
+ return formatDate(props.date, props.dateFormat);
3975
2736
  });
3976
2737
  const messageHeader = computed(() => {
3977
2738
  return `${senderName.value} ${getLocaleDate.value}`;
3978
2739
  });
2740
+ function formatDate(date, format) {
2741
+ const day = date.getDate().toString().padStart(2, "0");
2742
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
2743
+ const year = date.getFullYear().toString().padStart(2, "0");
2744
+ const hours = date.getHours().toString().padStart(2, "0");
2745
+ const minutes = date.getMinutes().toString().padStart(2, "0");
2746
+ const seconds = date.getSeconds().toString().padStart(2, "0");
2747
+ return format.replace("dd", day).replace("MM", month).replace("yyyy", year).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
2748
+ }
3979
2749
  return (_ctx, _cache) => {
3980
2750
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
3981
2751
  props.sender === "bot" ? (openBlock(), createElementBlock("img", {
@@ -3985,9 +2755,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3985
2755
  class: "q-chatbot__profile"
3986
2756
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
3987
2757
  createElementVNode("div", _hoisted_3$1, [
3988
- !_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(messageHeader.value), 1)) : createCommentVNode("", true),
2758
+ !_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(messageHeader.value), 1)) : createCommentVNode("", true),
3989
2759
  createElementVNode("div", _hoisted_5, [
3990
- _ctx.loading ? (openBlock(), createBlock(unref(Co), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2760
+ _ctx.loading ? (openBlock(), createBlock(unref(t), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3991
2761
  props.sender == "bot" ? (openBlock(), createElementBlock("div", {
3992
2762
  key: 0,
3993
2763
  class: "q-chatbot__text",
@@ -4001,8 +2771,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4001
2771
  }
4002
2772
  });
4003
2773
  const _hoisted_1 = { class: "q-chatbot" };
4004
- const _hoisted_2 = { class: "q-chatbot__tools" };
4005
- const _hoisted_3 = { class: "q-chatbot__messages-container" };
2774
+ const _hoisted_2 = { class: "q-chatbot__content" };
2775
+ const _hoisted_3 = { class: "q-chatbot__tools" };
2776
+ const _hoisted_4 = { class: "q-chatbot__messages-container" };
4006
2777
  const _sfc_main = /* @__PURE__ */ defineComponent({
4007
2778
  ...{ name: "ChatBot" },
4008
2779
  __name: "ChatBot",
@@ -4017,24 +2788,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4017
2788
  botIsSick: "*cough cough* GenioBot is not feeling alright 🥴️🤒, looks like something failed!"
4018
2789
  }) },
4019
2790
  username: {},
4020
- projectPath: {}
2791
+ projectPath: {},
2792
+ dateFormat: {}
4021
2793
  },
4022
2794
  setup(__props) {
4023
2795
  let messages = ref([]);
4024
2796
  let msgHistoryStack = [];
4025
2797
  let nextMessageId = 1;
4026
2798
  let userPrompt = ref("");
2799
+ let isLoading = ref(false);
4027
2800
  let isChatDisabled = false;
4028
- let isLoading = false;
4029
- const messagesContainer = ref(null);
2801
+ const scrollElement = ref(null);
4030
2802
  const promptInput = ref(null);
4031
2803
  const props = __props;
4032
2804
  onMounted(() => {
4033
2805
  initChat();
4034
- nextTick(scrollChatToBottom);
4035
2806
  });
4036
2807
  const userMessages = computed(() => {
4037
- return messages.value.filter((m) => m.sender === "user");
2808
+ return messages.value.filter((m2) => m2.sender === "user");
4038
2809
  });
4039
2810
  function setDisabledState(state) {
4040
2811
  isChatDisabled = state;
@@ -4091,10 +2862,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4091
2862
  date: /* @__PURE__ */ new Date(),
4092
2863
  sender
4093
2864
  });
2865
+ nextTick(scrollToBottom);
4094
2866
  }
4095
2867
  function getLastMessage() {
4096
2868
  return messages.value.find(
4097
- (m) => m.id === nextMessageId - 1
2869
+ (m2) => m2.id === nextMessageId - 1
4098
2870
  );
4099
2871
  }
4100
2872
  function sendInitialMessage() {
@@ -4104,17 +2876,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4104
2876
  messages.value = [];
4105
2877
  msgHistoryStack = [];
4106
2878
  userPrompt.value = "";
4107
- isLoading = false;
2879
+ isLoading.value = false;
4108
2880
  setDisabledState(false);
4109
2881
  }
4110
- function scrollChatToBottom() {
4111
- if (messagesContainer.value == null)
4112
- return;
4113
- const element = messagesContainer.value;
4114
- setTimeout(
4115
- () => element.scrollIntoView(false),
4116
- 100
4117
- );
2882
+ function scrollToBottom() {
2883
+ var _a;
2884
+ (_a = scrollElement.value) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
4118
2885
  }
4119
2886
  function handleKey(event) {
4120
2887
  if (promptInput.value == null)
@@ -4143,10 +2910,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4143
2910
  }
4144
2911
  }
4145
2912
  function sendMessage() {
4146
- if (userPrompt.value.trim().length == 0 || isLoading || isChatDisabled)
2913
+ if (userPrompt.value.trim().length == 0 || isLoading.value || isChatDisabled)
4147
2914
  return;
4148
2915
  addChatMessage(userPrompt.value, "user");
4149
- scrollChatToBottom();
4150
2916
  setChatPrompt(userPrompt.value);
4151
2917
  userPrompt.value = "";
4152
2918
  }
@@ -4158,7 +2924,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4158
2924
  project: props.projectPath,
4159
2925
  user: props.username
4160
2926
  };
4161
- isLoading = true;
2927
+ isLoading.value = true;
4162
2928
  axios({
4163
2929
  url: props.apiEndpoint + "/prompt/message",
4164
2930
  method: "POST",
@@ -4171,6 +2937,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4171
2937
  return;
4172
2938
  if (msg)
4173
2939
  msg.message = chunk;
2940
+ scrollToBottom();
4174
2941
  }
4175
2942
  }).then(({ data }) => {
4176
2943
  if (msg)
@@ -4180,7 +2947,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4180
2947
  setDisabledState(true);
4181
2948
  console.log(error);
4182
2949
  }).finally(() => {
4183
- isLoading = false;
2950
+ isLoading.value = false;
4184
2951
  });
4185
2952
  }
4186
2953
  function setCursorPosition(elem, pos) {
@@ -4221,59 +2988,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4221
2988
  });
4222
2989
  return (_ctx, _cache) => {
4223
2990
  return openBlock(), createElementBlock("div", _hoisted_1, [
4224
- createElementVNode("div", {
4225
- ref_key: "messagesContainer",
4226
- ref: messagesContainer,
4227
- class: "q-chatbot__content"
4228
- }, [
4229
- createElementVNode("div", _hoisted_2, [
4230
- createVNode(unref(fe), {
2991
+ createElementVNode("div", _hoisted_2, [
2992
+ createElementVNode("div", _hoisted_3, [
2993
+ createVNode(unref(p$2), {
4231
2994
  title: props.texts.qButtonTitle,
4232
- "b-style": "plain",
4233
- class: "clear-btn",
2995
+ "b-style": "secondary",
4234
2996
  disabled: unref(isChatDisabled),
4235
2997
  borderless: "",
4236
2998
  onClick: clearChat
4237
2999
  }, {
4238
3000
  default: withCtx(() => [
4239
- createVNode(unref(ee), { icon: "bin" })
3001
+ createVNode(unref(_), { icon: "bin" })
4240
3002
  ]),
4241
3003
  _: 1
4242
3004
  }, 8, ["title", "disabled"])
4243
3005
  ]),
4244
- createElementVNode("div", _hoisted_3, [
3006
+ createElementVNode("div", _hoisted_4, [
4245
3007
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (message) => {
4246
3008
  return openBlock(), createElementBlock("div", {
4247
3009
  key: message.id,
4248
- class: normalizeClass(getMessageClasses)
3010
+ class: normalizeClass(getMessageClasses(message.sender))
4249
3011
  }, [
4250
3012
  createVNode(unref(_sfc_main$1), mergeProps(message, {
3013
+ "date-format": props.dateFormat,
4251
3014
  loading: unref(isLoading) && !message.message
4252
- }), null, 16, ["loading"])
4253
- ]);
3015
+ }), null, 16, ["date-format", "loading"])
3016
+ ], 2);
4254
3017
  }), 128))
4255
- ])
4256
- ], 512),
4257
- createVNode(unref(zo), {
3018
+ ]),
3019
+ createElementVNode("div", {
3020
+ ref_key: "scrollElement",
3021
+ ref: scrollElement
3022
+ }, null, 512)
3023
+ ]),
3024
+ createVNode(unref(m), {
4258
3025
  size: "block",
4259
3026
  disabled: unref(isChatDisabled)
4260
3027
  }, {
4261
3028
  append: withCtx(() => [
4262
- createVNode(unref(fe), {
3029
+ createVNode(unref(p$2), {
4263
3030
  title: props.texts.qButtonTitle,
4264
3031
  "b-style": "primary",
4265
3032
  class: "q-chatbot__send",
4266
- disabled: unref(isChatDisabled),
3033
+ disabled: unref(isChatDisabled) || unref(isLoading),
3034
+ loading: unref(isLoading),
4267
3035
  onClick: sendMessage
4268
3036
  }, {
4269
3037
  default: withCtx(() => [
4270
- createVNode(unref(ee), { icon: "send" })
3038
+ createVNode(unref(_), { icon: "send" })
4271
3039
  ]),
4272
3040
  _: 1
4273
- }, 8, ["title", "disabled"])
3041
+ }, 8, ["title", "disabled", "loading"])
4274
3042
  ]),
4275
3043
  default: withCtx(() => [
4276
- createVNode(unref(Pt), {
3044
+ createVNode(unref(p$1), {
4277
3045
  ref_key: "promptInput",
4278
3046
  ref: promptInput,
4279
3047
  modelValue: unref(userPrompt),