@quoreadmin/ui 1.7.16 → 1.7.17

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.
Files changed (214) hide show
  1. package/dist/index131.js +151 -90
  2. package/dist/index140.js +81 -66
  3. package/dist/index142.js +1 -1
  4. package/dist/index172.js +14 -14
  5. package/dist/index173.js +3 -3
  6. package/dist/index176.js +4 -4
  7. package/dist/index183.js +10 -10
  8. package/dist/index185.js +10 -10
  9. package/dist/index187.js +1190 -36
  10. package/dist/index189.js +36 -1190
  11. package/dist/{index188.js → index190.js} +17 -17
  12. package/dist/index191.js +28 -28
  13. package/dist/index192.js +2 -2
  14. package/dist/index193.js +2 -2
  15. package/dist/index194.js +1 -1
  16. package/dist/index196.js +2 -2
  17. package/dist/index198.js +14 -14
  18. package/dist/index199.js +1 -1
  19. package/dist/index200.js +1 -1
  20. package/dist/index201.js +3 -3
  21. package/dist/index202.js +6 -6
  22. package/dist/index203.js +29 -84
  23. package/dist/index204.js +109 -400
  24. package/dist/index205.js +36 -22
  25. package/dist/index206.js +26 -33
  26. package/dist/index207.js +31 -111
  27. package/dist/index208.js +9 -36
  28. package/dist/index209.js +19 -26
  29. package/dist/index210.js +10 -36
  30. package/dist/index211.js +10 -9
  31. package/dist/index212.js +50 -18
  32. package/dist/index213.js +43 -10
  33. package/dist/index214.js +4 -10
  34. package/dist/index215.js +36 -48
  35. package/dist/index216.js +21 -43
  36. package/dist/index217.js +87 -3
  37. package/dist/index218.js +403 -35
  38. package/dist/index219.js +22 -21
  39. package/dist/index220.js +159 -159
  40. package/dist/index221.js +228 -20
  41. package/dist/index222.js +36 -19
  42. package/dist/index223.js +10 -22
  43. package/dist/index224.js +113 -185
  44. package/dist/index225.js +25 -57
  45. package/dist/index226.js +77 -31
  46. package/dist/index227.js +19 -39
  47. package/dist/index228.js +19 -160
  48. package/dist/index229.js +20 -228
  49. package/dist/index230.js +19 -36
  50. package/dist/index231.js +20 -10
  51. package/dist/index232.js +153 -245
  52. package/dist/index233.js +20 -8
  53. package/dist/index234.js +22 -138
  54. package/dist/index235.js +185 -69
  55. package/dist/index236.js +63 -3625
  56. package/dist/index237.js +31 -52
  57. package/dist/index238.js +36 -73
  58. package/dist/index239.js +22 -52
  59. package/dist/index240.js +22 -215
  60. package/dist/index241.js +20 -10
  61. package/dist/index242.js +827 -48
  62. package/dist/index243.js +691 -50
  63. package/dist/index244.js +174 -52
  64. package/dist/index245.js +22 -75
  65. package/dist/index246.js +19 -722
  66. package/dist/index247.js +20 -39
  67. package/dist/index248.js +3 -64
  68. package/dist/index249.js +187 -11
  69. package/dist/index250.js +124 -696
  70. package/dist/index251.js +1189 -786
  71. package/dist/index252.js +19 -126
  72. package/dist/index253.js +21 -37
  73. package/dist/index254.js +22 -80
  74. package/dist/index255.js +22 -13
  75. package/dist/index256.js +12 -12
  76. package/dist/index257.js +9 -9
  77. package/dist/index258.js +2 -20
  78. package/dist/index259.js +2 -22
  79. package/dist/index260.js +3632 -22
  80. package/dist/index261.js +55 -20
  81. package/dist/index262.js +64 -823
  82. package/dist/index263.js +43 -693
  83. package/dist/index264.js +204 -165
  84. package/dist/index265.js +10 -22
  85. package/dist/index266.js +57 -20
  86. package/dist/index267.js +61 -20
  87. package/dist/index268.js +54 -3
  88. package/dist/index269.js +69 -181
  89. package/dist/index270.js +710 -120
  90. package/dist/index271.js +33 -1217
  91. package/dist/index272.js +64 -20
  92. package/dist/index273.js +11 -22
  93. package/dist/index274.js +705 -22
  94. package/dist/index275.js +820 -29
  95. package/dist/index276.js +253 -20
  96. package/dist/index277.js +8 -20
  97. package/dist/index278.js +138 -2
  98. package/dist/index279.js +83 -2
  99. package/dist/index280.js +3 -54
  100. package/dist/index281.js +25 -77
  101. package/dist/index282.js +2 -26
  102. package/dist/index283.js +78 -21
  103. package/dist/index284.js +53 -21
  104. package/dist/index285.js +26 -16
  105. package/dist/index286.js +22 -17
  106. package/dist/index287.js +21 -22
  107. package/dist/index288.js +16 -235
  108. package/dist/index289.js +17 -6
  109. package/dist/index290.js +21 -132
  110. package/dist/index291.js +229 -62
  111. package/dist/index292.js +5 -86
  112. package/dist/index293.js +131 -26
  113. package/dist/index294.js +67 -8
  114. package/dist/index295.js +83 -71
  115. package/dist/index296.js +28 -3
  116. package/dist/index297.js +9 -2
  117. package/dist/index298.js +70 -78
  118. package/dist/index299.js +3 -53
  119. package/dist/index300.js +2 -6
  120. package/dist/index301.js +82 -4
  121. package/dist/index302.js +51 -176
  122. package/dist/index303.js +5 -62
  123. package/dist/index304.js +5 -75
  124. package/dist/index305.js +149 -1488
  125. package/dist/index306.js +55 -378
  126. package/dist/index307.js +75 -2731
  127. package/dist/index308.js +1511 -79
  128. package/dist/index309.js +333 -3717
  129. package/dist/index310.js +2718 -47
  130. package/dist/index311.js +86 -15
  131. package/dist/index312.js +3746 -60
  132. package/dist/index313.js +55 -197
  133. package/dist/index314.js +74 -241
  134. package/dist/index315.js +22 -2
  135. package/dist/index316.js +923 -67
  136. package/dist/index317.js +4 -4
  137. package/dist/index318.js +20 -935
  138. package/dist/index319.js +13 -15
  139. package/dist/index320.js +68 -19
  140. package/dist/index321.js +19 -20
  141. package/dist/index322.js +17 -67
  142. package/dist/index323.js +22 -19
  143. package/dist/index324.js +22 -19
  144. package/dist/index325.js +62 -21
  145. package/dist/index326.js +15 -22
  146. package/dist/index327.js +84 -63
  147. package/dist/index328.js +202 -3
  148. package/dist/index329.js +240 -21
  149. package/dist/index330.js +8 -36
  150. package/dist/index331.js +12 -20
  151. package/dist/index332.js +53 -54
  152. package/dist/index333.js +10 -27
  153. package/dist/index334.js +13 -6
  154. package/dist/index335.js +54 -48
  155. package/dist/index336.js +52 -6
  156. package/dist/index337.js +30 -11
  157. package/dist/index338.js +2 -7
  158. package/dist/index339.js +4 -27
  159. package/dist/index340.js +2 -2
  160. package/dist/index341.js +22 -69
  161. package/dist/index342.js +38 -164
  162. package/dist/index343.js +2 -20
  163. package/dist/index344.js +11 -20
  164. package/dist/index345.js +18 -62
  165. package/dist/index346.js +17 -37
  166. package/dist/index347.js +10 -9
  167. package/dist/index348.js +10 -13
  168. package/dist/index349.js +2 -55
  169. package/dist/index350.js +9 -12
  170. package/dist/index351.js +9 -13
  171. package/dist/index352.js +13 -57
  172. package/dist/index353.js +34 -49
  173. package/dist/index354.js +18 -28
  174. package/dist/index355.js +56 -2
  175. package/dist/index356.js +29 -5
  176. package/dist/index357.js +7 -2
  177. package/dist/index358.js +50 -21
  178. package/dist/index359.js +5 -40
  179. package/dist/index360.js +12 -2
  180. package/dist/index361.js +6 -10
  181. package/dist/index362.js +28 -20
  182. package/dist/index363.js +2 -17
  183. package/dist/index364.js +69 -9
  184. package/dist/index365.js +166 -9
  185. package/dist/index366.js +20 -2
  186. package/dist/index367.js +20 -9
  187. package/dist/index368.js +63 -9
  188. package/dist/index369.js +37 -14
  189. package/dist/index370.js +1 -1
  190. package/dist/index371.js +3 -3
  191. package/dist/index376.js +1 -1
  192. package/dist/index378.js +1 -1
  193. package/dist/index379.js +6 -6
  194. package/dist/index380.js +3 -3
  195. package/dist/index382.js +16 -100
  196. package/dist/index383.js +100 -90
  197. package/dist/index384.js +91 -98
  198. package/dist/index385.js +97 -16
  199. package/dist/index391.js +1 -1
  200. package/dist/index392.js +2 -2
  201. package/dist/index43.js +13 -10
  202. package/dist/src/components/comment/comment.d.ts +27 -0
  203. package/dist/src/components/comment/comment.stories.d.ts +27 -0
  204. package/dist/src/components/comment-section/comment-section.d.ts +27 -0
  205. package/dist/src/components/comment-section/comment-section.stories.d.ts +27 -0
  206. package/dist/src/components/data-filter/data-filter.d.ts +27 -0
  207. package/dist/src/components/data-list/data-list.d.ts +27 -0
  208. package/dist/src/components/grid/grid.stories.d.ts +54 -0
  209. package/dist/src/components/popover/popover.d.ts +37 -0
  210. package/dist/src/components/popover/popover.stories.d.ts +189 -0
  211. package/dist/src/components/room-details-popover/room-details-popover.d.ts +65 -1
  212. package/dist/src/views/lists.vue.d.ts +54 -0
  213. package/dist/src/views/tables.vue.d.ts +27 -0
  214. package/package.json +1 -1
package/dist/index140.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as mt, ref as i, computed as y, watch as B, onMounted as vt, onUnmounted as pt } from "vue";
1
+ import { defineComponent as mt, ref as i, computed as g, watch as B, onMounted as vt, onUnmounted as pt } from "vue";
2
2
  import { useI18n as ft } from "vue-i18n";
3
3
  import { DateTime as w } from "./index164.js";
4
- import "./index187.js";
4
+ import "./index189.js";
5
5
  import ht from "./index2.js";
6
- import gt from "./index3.js";
7
- import yt from "./index4.js";
6
+ import yt from "./index3.js";
7
+ import gt from "./index4.js";
8
8
  import _t from "./index21.js";
9
9
  import wt from "./index28.js";
10
10
  import It from "./index39.js";
@@ -12,13 +12,13 @@ import Dt from "./index20.js";
12
12
  import Tt from "./index46.js";
13
13
  import Ot from "./index47.js";
14
14
  import kt from "./index49.js";
15
- import K from "./index188.js";
15
+ import K from "./index190.js";
16
16
  const Gt = mt({
17
17
  name: "QRoomDetailsPopover",
18
18
  components: {
19
19
  QAccordion: ht,
20
- QActivityItem: gt,
21
- QAvatar: yt,
20
+ QActivityItem: yt,
21
+ QAvatar: gt,
22
22
  QDatePicker: Dt,
23
23
  QDivider: _t,
24
24
  QIcon: wt,
@@ -142,6 +142,21 @@ const Gt = mt({
142
142
  teleportTo: {
143
143
  type: String,
144
144
  default: "body"
145
+ },
146
+ /** Whether to close the popover when the trigger scrolls out of its scrollable parent */
147
+ closeOnScrollOutOfView: {
148
+ type: Boolean,
149
+ default: !1
150
+ },
151
+ /** Whether to scroll the page to bring the popover into view when it opens or content changes */
152
+ scrollIntoView: {
153
+ type: Boolean,
154
+ default: !1
155
+ },
156
+ /** Padding (in pixels) from viewport edge when scrolling popover into view */
157
+ scrollIntoViewPadding: {
158
+ type: Number,
159
+ default: 20
145
160
  }
146
161
  },
147
162
  emits: ["create:callback", "create:todo", "refresh:pms", "show:toast", "toggle"],
@@ -175,7 +190,7 @@ const Gt = mt({
175
190
  info: !0,
176
191
  tickets: !0,
177
192
  comments: !0
178
- }), te = i(!0), Ce = i(o.guestDetails), O = i([]), g = i({
193
+ }), te = i(!0), Ce = i(o.guestDetails), O = i([]), y = i({
179
194
  actionItems: !1,
180
195
  conversationToggle: !1,
181
196
  messages: !1,
@@ -233,7 +248,7 @@ const Gt = mt({
233
248
  notes: "",
234
249
  person: null,
235
250
  requestedBy: null
236
- }), pe = i([]), q = i([]), x = i([]), fe = y(() => {
251
+ }), pe = i([]), q = i([]), x = i([]), fe = g(() => {
237
252
  switch (r.value.cleaning?.name || r.value.cleaningStatus) {
238
253
  case "CLEAN":
239
254
  case "INSPECTED":
@@ -246,13 +261,13 @@ const Gt = mt({
246
261
  default:
247
262
  return "";
248
263
  }
249
- }), Re = y(() => fe.value === "CLEAN" ? "blue-10" : fe.value === "DIRTY" ? "red-10" : "gray-30"), He = y(() => {
264
+ }), Re = g(() => fe.value === "CLEAN" ? "blue-10" : fe.value === "DIRTY" ? "red-10" : "gray-30"), He = g(() => {
250
265
  const e = r.value.cleaning?.name || r.value.cleaningStatus;
251
266
  return e ? u(`HC_${e}`) : "";
252
- }), Le = y(() => {
267
+ }), Le = g(() => {
253
268
  const e = b.value.toLowerCase();
254
269
  return o.quickReplies.filter((t) => t.toLowerCase().match(e));
255
- }), Pe = y(() => {
270
+ }), Pe = g(() => {
256
271
  if (!C.value.length) return [];
257
272
  const e = [];
258
273
  let t = null;
@@ -272,11 +287,11 @@ const Gt = mt({
272
287
  formattedTime: s.toFormat("h:mma").replace("AM", "am").replace("PM", "pm")
273
288
  });
274
289
  }), e;
275
- }), De = y(() => S.value.length ? !!S.value.find(
290
+ }), De = g(() => S.value.length ? !!S.value.find(
276
291
  (t) => t.type === "complaint"
277
- ) : !1), qe = y(() => S.value.length ? !!S.value.find(
292
+ ) : !1), qe = g(() => S.value.length ? !!S.value.find(
278
293
  (t) => t.type === "callback"
279
- ) : !1), xe = y(() => {
294
+ ) : !1), xe = g(() => {
280
295
  let e = [];
281
296
  return O.value[0] && O.value[0].options === void 0 ? O.value.forEach((t) => {
282
297
  e.push({
@@ -284,7 +299,7 @@ const Gt = mt({
284
299
  label: t.display_name
285
300
  });
286
301
  }) : e = O.value, e;
287
- }), Te = y(() => r.value.occupancy?.name === "OCCUPIED" || r.value.occupancyStatus === "OCCUPIED"), Fe = y(() => Te.value && De.value ? "HK_ROOM_STATUS_Occupied_Complaint" : "HK_ROOM_STATUS_Occupied"), Be = y(() => {
302
+ }), Te = g(() => r.value.occupancy?.name === "OCCUPIED" || r.value.occupancyStatus === "OCCUPIED"), Fe = g(() => Te.value && De.value ? "HK_ROOM_STATUS_Occupied_Complaint" : "HK_ROOM_STATUS_Occupied"), Be = g(() => {
288
303
  switch (E.value?.id) {
289
304
  case "request":
290
305
  case "work_order":
@@ -292,7 +307,7 @@ const Gt = mt({
292
307
  default:
293
308
  return null;
294
309
  }
295
- }), Ge = y(() => {
310
+ }), Ge = g(() => {
296
311
  if (M.value)
297
312
  switch (E.value?.id) {
298
313
  case "request":
@@ -303,7 +318,7 @@ const Gt = mt({
303
318
  return null;
304
319
  }
305
320
  return null;
306
- }), Ue = y(() => {
321
+ }), Ue = g(() => {
307
322
  switch (E.value?.id) {
308
323
  case "request":
309
324
  return Q.value[1];
@@ -312,7 +327,7 @@ const Gt = mt({
312
327
  default:
313
328
  return null;
314
329
  }
315
- }), We = y(() => {
330
+ }), We = g(() => {
316
331
  let e = "";
317
332
  if (r.value && r.value.reservations[0]) {
318
333
  const t = w.fromISO(
@@ -323,10 +338,10 @@ const Gt = mt({
323
338
  e += a + " " + s, n !== f && (e += ", " + n), a === c ? e += "-" + m : e += " - " + c + " " + m, e += ", " + f;
324
339
  }
325
340
  return e;
326
- }), je = y(() => {
341
+ }), je = g(() => {
327
342
  let e = ae.value;
328
343
  return e = [...new Set(e)], e;
329
- }), $e = y(() => {
344
+ }), $e = g(() => {
330
345
  const e = E.value?.id;
331
346
  if (!e)
332
347
  return !1;
@@ -400,7 +415,7 @@ const Gt = mt({
400
415
  });
401
416
  }, he = async (e = !1) => {
402
417
  if (o.showComments && r.value.tokenId) {
403
- e || (g.value.messages = !0);
418
+ e || (y.value.messages = !0);
404
419
  try {
405
420
  let t = `/api/client/connect/getMessages.php?tokenId=${r.value.tokenId}`;
406
421
  e && k.value !== null && (t += `&lastMsgId=${k.value}`);
@@ -412,16 +427,16 @@ const Gt = mt({
412
427
  throw new Error(s.message || "Failed to get messages");
413
428
  if (A.value = !s.closed, s.messages && s.messages.length > 0) {
414
429
  k.value = s.messages[s.messages.length - 1].id, e ? Je(s.messages) : F(s.messages);
415
- const n = setTimeout(V, 100);
430
+ const n = setTimeout(Y, 100);
416
431
  L.value.push(n);
417
432
  } else e || F(s.messages || []);
418
433
  } catch (t) {
419
434
  console.error("getChatMessages error:", t);
420
435
  } finally {
421
- e || (g.value.messages = !1);
436
+ e || (y.value.messages = !1);
422
437
  }
423
438
  }
424
- }, Ye = (e) => {
439
+ }, Ve = (e) => {
425
440
  const t = w.utc(), a = w.fromFormat(e, "yyyy-MM-dd HH:mm:ss", { zone: "utc" }), s = t.diff(
426
441
  a,
427
442
  [
@@ -444,11 +459,11 @@ const Gt = mt({
444
459
  return f === 1 ? u("HC_ONE_MINUTE_AGO") : u("HC_X_MINUTES_AGO", { minutes: f });
445
460
  if (f === 0)
446
461
  return u("HC_A_MOMENT_AGO");
447
- }, Ve = async () => {
448
- o.showGuestDetails && oe(), ne(), Y(), h("refresh:pms", r.value);
462
+ }, Ye = async () => {
463
+ o.showGuestDetails && oe(), ne(), V(), h("refresh:pms", r.value);
449
464
  }, oe = async () => {
450
465
  try {
451
- g.value.pms = !0;
466
+ y.value.pms = !0;
452
467
  const e = new AbortController(), t = setTimeout(() => e.abort(), 45e3);
453
468
  L.value.push(t);
454
469
  const a = o.pmsBaseUrl;
@@ -474,9 +489,9 @@ const Gt = mt({
474
489
  R.value = m, m.length > 0 ? r.value = {
475
490
  ...m[0],
476
491
  tokenId: m[0].tokenId || o.room.tokenId
477
- } : r.value = o.room, g.value.pms = !1;
492
+ } : r.value = o.room, y.value.pms = !1;
478
493
  } catch (e) {
479
- return g.value.pms = !1, h("show:toast", {
494
+ return y.value.pms = !1, h("show:toast", {
480
495
  show: !0,
481
496
  message: u("HC_FAILED_TO_LOAD_PMS_DATA"),
482
497
  variant: "error",
@@ -485,7 +500,7 @@ const Gt = mt({
485
500
  }
486
501
  }, ne = async () => {
487
502
  try {
488
- g.value.roomNotices = !0;
503
+ y.value.roomNotices = !0;
489
504
  const e = await fetch(
490
505
  "/api/client/common/getRoomNotices.php?propertyId=" + o.propertyId + "&roomIds=[" + o.room.id + "]"
491
506
  );
@@ -501,9 +516,9 @@ const Gt = mt({
501
516
  icon: "exclamation-circle"
502
517
  });
503
518
  } finally {
504
- g.value.roomNotices = !1;
519
+ y.value.roomNotices = !1;
505
520
  }
506
- }, ge = async () => {
521
+ }, ye = async () => {
507
522
  try {
508
523
  const e = new FormData();
509
524
  e.append("property_id", o.propertyId), e.append("filter", "tasks_new");
@@ -586,9 +601,9 @@ const Gt = mt({
586
601
  case "task":
587
602
  return "check";
588
603
  }
589
- }, Y = async () => {
604
+ }, V = async () => {
590
605
  try {
591
- g.value.tickets = !0;
606
+ y.value.tickets = !0;
592
607
  const e = await fetch(
593
608
  "/api/client/common/getAllToDos.php?propertyId=" + o.propertyId + "&roomIds=[" + o.room.id + "]"
594
609
  );
@@ -604,7 +619,7 @@ const Gt = mt({
604
619
  icon: "exclamation-circle"
605
620
  });
606
621
  } finally {
607
- g.value.tickets = !1;
622
+ y.value.tickets = !1;
608
623
  }
609
624
  }, Ee = async (e) => {
610
625
  const t = await e.text();
@@ -697,10 +712,10 @@ const Gt = mt({
697
712
  Ae(), b.value = e;
698
713
  }, ot = async (e) => {
699
714
  if (console.log("selected:", e), E.value = e, O.value = [], I.value.issue = null, p.value.problem = null, v.value.item = null, v.value.issue = null, d.value.item = null, !E.value) {
700
- g.value.actionItems = !1;
715
+ y.value.actionItems = !1;
701
716
  return;
702
717
  }
703
- g.value.actionItems = !0;
718
+ y.value.actionItems = !0;
704
719
  const t = r.value?.qv2Rooms?.qRoomId || r.value?.id || o.room?.id, a = new FormData();
705
720
  switch (a.append("property_id", o.propertyId), a.append("area_id", t), e.id) {
706
721
  case "complaint":
@@ -725,7 +740,7 @@ const Gt = mt({
725
740
  icon: "exclamation-circle"
726
741
  });
727
742
  } finally {
728
- g.value.actionItems = !1;
743
+ y.value.actionItems = !1;
729
744
  }
730
745
  break;
731
746
  case "room_notice":
@@ -743,7 +758,7 @@ const Gt = mt({
743
758
  icon: "exclamation-circle"
744
759
  });
745
760
  } finally {
746
- g.value.actionItems = !1;
761
+ y.value.actionItems = !1;
747
762
  }
748
763
  break;
749
764
  case "request":
@@ -753,7 +768,7 @@ const Gt = mt({
753
768
  method: "POST",
754
769
  body: a
755
770
  })).json();
756
- if (n.items && (O.value = n.items), await ge(), d.value.department = M.value.find(
771
+ if (n.items && (O.value = n.items), await ye(), d.value.department = M.value.find(
757
772
  (l) => parseInt(l.id) === 4
758
773
  ), o.allowWhenWhere)
759
774
  try {
@@ -791,7 +806,7 @@ const Gt = mt({
791
806
  icon: "exclamation-circle"
792
807
  });
793
808
  } finally {
794
- g.value.actionItems = !1;
809
+ y.value.actionItems = !1;
795
810
  }
796
811
  break;
797
812
  case "work_order":
@@ -811,7 +826,7 @@ const Gt = mt({
811
826
  K.post(
812
827
  "/api/client/common/getWorkOrderIssues.php"
813
828
  ),
814
- ge()
829
+ ye()
815
830
  ]).then((m) => {
816
831
  const f = m[0];
817
832
  f.data.issues.forEach((_) => {
@@ -828,11 +843,11 @@ const Gt = mt({
828
843
  icon: "exclamation-circle"
829
844
  });
830
845
  } finally {
831
- g.value.actionItems = !1;
846
+ y.value.actionItems = !1;
832
847
  }
833
848
  break;
834
849
  default:
835
- g.value.actionItems = !1;
850
+ y.value.actionItems = !1;
836
851
  return;
837
852
  }
838
853
  }, nt = () => {
@@ -840,7 +855,7 @@ const Gt = mt({
840
855
  }, Se = () => {
841
856
  const e = document.getElementById("comment-field"), t = document.getElementById("hidden-text");
842
857
  e.style.height = t?.offsetHeight + "px";
843
- }, V = () => {
858
+ }, Y = () => {
844
859
  const e = document.getElementById("comments-container");
845
860
  e?.scroll({
846
861
  top: e.scrollHeight,
@@ -848,7 +863,7 @@ const Gt = mt({
848
863
  });
849
864
  }, rt = async (e) => {
850
865
  if (e && e.type === "keydown" && e.preventDefault(), r.value.tokenId && b.value && !H.value) {
851
- g.value.sendingMessage = !0;
866
+ y.value.sendingMessage = !0;
852
867
  try {
853
868
  const t = new FormData();
854
869
  t.append("tokenId", r.value.tokenId), t.append("content", b.value), t.append("senderId", P.value || "");
@@ -865,7 +880,7 @@ const Gt = mt({
865
880
  });
866
881
  return;
867
882
  }
868
- b.value = "", A.value = !a.data.closed, a.data.messages && (F(a.data.messages), a.data.messages.length > 0 && (k.value = a.data.messages[a.data.messages.length - 1].id)), V();
883
+ b.value = "", A.value = !a.data.closed, a.data.messages && (F(a.data.messages), a.data.messages.length > 0 && (k.value = a.data.messages[a.data.messages.length - 1].id)), Y();
869
884
  } catch (t) {
870
885
  console.error("sendChatMessage error:", t), h("show:toast", {
871
886
  show: !0,
@@ -874,12 +889,12 @@ const Gt = mt({
874
889
  icon: "exclamation-circle"
875
890
  });
876
891
  } finally {
877
- g.value.sendingMessage = !1;
892
+ y.value.sendingMessage = !1;
878
893
  }
879
894
  }
880
895
  }, lt = async () => {
881
896
  if (!(!r.value.tokenId || !P.value)) {
882
- g.value.conversationToggle = !0;
897
+ y.value.conversationToggle = !0;
883
898
  try {
884
899
  const e = A.value ? "/api/client/connect/closeConversation.php" : "/api/client/connect/openConversation.php", t = new FormData();
885
900
  t.append("tokenId", r.value.tokenId), t.append("userId", P.value), A.value && k.value !== null && t.append("lastMsgId", k.value.toString());
@@ -907,7 +922,7 @@ const Gt = mt({
907
922
  icon: "exclamation-circle"
908
923
  });
909
924
  } finally {
910
- g.value.conversationToggle = !1;
925
+ y.value.conversationToggle = !1;
911
926
  }
912
927
  }
913
928
  }, it = async () => {
@@ -929,7 +944,7 @@ const Gt = mt({
929
944
  });
930
945
  return;
931
946
  }
932
- t.data.messages && (F(t.data.messages), A.value = !t.data.closed, t.data.messages.length > 0 && (k.value = t.data.messages[t.data.messages.length - 1].id)), j.value = "", W.value = !1, V(), h("show:toast", {
947
+ t.data.messages && (F(t.data.messages), A.value = !t.data.closed, t.data.messages.length > 0 && (k.value = t.data.messages[t.data.messages.length - 1].id)), j.value = "", W.value = !1, Y(), h("show:toast", {
933
948
  show: !0,
934
949
  message: u("HC_SIMULATED_GUEST_REPLY"),
935
950
  variant: "success",
@@ -952,7 +967,7 @@ const Gt = mt({
952
967
  $.value || ($.value = setInterval(() => {
953
968
  document.visibilityState === "visible" && he(!0);
954
969
  }, Me));
955
- }, ye = () => {
970
+ }, ge = () => {
956
971
  $.value && (clearInterval($.value), $.value = null);
957
972
  }, _e = () => {
958
973
  if (o.align === "left" || o.align === "right") {
@@ -974,7 +989,7 @@ const Gt = mt({
974
989
  H.value = !H.value, H.value ? (b.value = "", N.value.info = ee.value, N.value.tickets = te.value, N.value.comments = Z.value, ee.value = !1, te.value = !1, document.getElementById("comment-field")?.focus()) : (ee.value = N.value.info, te.value = N.value.tickets, Z.value = N.value.comments);
975
990
  }, dt = async (e, t) => {
976
991
  const a = r.value?.qv2Rooms?.qRoomId || r.value?.id || o.room?.id, s = new FormData();
977
- if (s.append("property_id", o.propertyId), s.append("room_ids", JSON.stringify([a])), await Y(), S.value) {
992
+ if (s.append("property_id", o.propertyId), s.append("room_ids", JSON.stringify([a])), await V(), S.value) {
978
993
  const n = [];
979
994
  S.value.forEach((l) => {
980
995
  l.id === e && l.type === t ? n.unshift({
@@ -989,14 +1004,14 @@ const Gt = mt({
989
1004
  };
990
1005
  B(() => o.open, () => {
991
1006
  if (o.open && o.showComments && C.value.length) {
992
- const e = setTimeout(V, 500);
1007
+ const e = setTimeout(Y, 500);
993
1008
  L.value.push(e);
994
1009
  }
995
- o.open || (Oe(), ye(), k.value = null, C.value = [], A.value = !1);
1010
+ o.open || (Oe(), ge(), k.value = null, C.value = [], A.value = !1);
996
1011
  }), B(
997
1012
  () => [o.open, o.showComments, Z.value, r.value?.tokenId],
998
1013
  ([e, t, a, s]) => {
999
- e && t && a && s ? ct() : ye();
1014
+ e && t && a && s ? ct() : ge();
1000
1015
  }
1001
1016
  ), B(b, () => {
1002
1017
  const e = setTimeout(Se, 100);
@@ -1006,11 +1021,11 @@ const Gt = mt({
1006
1021
  });
1007
1022
  const be = () => !!(o.room.reservations || o.room.cleaning || o.room.occupancy);
1008
1023
  return B(() => o.open, async (e, t) => {
1009
- e && !t && (be() ? (r.value = o.room, R.value = [o.room]) : o.showGuestDetails && !R.value ? await oe() : r.value || (r.value = o.room), Y(), ne(), o.showComments && he());
1024
+ e && !t && (be() ? (r.value = o.room, R.value = [o.room]) : o.showGuestDetails && !R.value ? await oe() : r.value || (r.value = o.room), V(), ne(), o.showComments && he());
1010
1025
  }), B(
1011
1026
  () => o.room.id,
1012
1027
  (e, t) => {
1013
- e !== t && (r.value = o.room, R.value = null, o.open && (be() ? R.value = [o.room] : o.showGuestDetails && oe(), Y(), ne()));
1028
+ e !== t && (r.value = o.room, R.value = null, o.open && (be() ? R.value = [o.room] : o.showGuestDetails && oe(), V(), ne()));
1014
1029
  }
1015
1030
  ), vt(async () => {
1016
1031
  const e = JSON.parse(
@@ -1020,7 +1035,7 @@ const Gt = mt({
1020
1035
  }), pt(() => {
1021
1036
  L.value.forEach((e) => {
1022
1037
  clearTimeout(e);
1023
- }), ye();
1038
+ }), ge();
1024
1039
  }), {
1025
1040
  DateTime: w,
1026
1041
  // Refs
@@ -1039,7 +1054,7 @@ const Gt = mt({
1039
1054
  expandTickets: te,
1040
1055
  guestDetailsData: Ce,
1041
1056
  itemOptions: O,
1042
- loading: g,
1057
+ loading: y,
1043
1058
  messages: C,
1044
1059
  moodOptions: ce,
1045
1060
  pmsData: R,
@@ -1090,14 +1105,14 @@ const Gt = mt({
1090
1105
  createCallback: Qe,
1091
1106
  createMessageList: F,
1092
1107
  getChatMessages: he,
1093
- getHowLongAgo: Ye,
1108
+ getHowLongAgo: Ve,
1094
1109
  getPMSData: oe,
1095
1110
  getRoomNotices: ne,
1096
- getSharedData: ge,
1111
+ getSharedData: ye,
1097
1112
  getStayDetails: ke,
1098
1113
  getTicketColor: ze,
1099
1114
  getTicketIcon: Ke,
1100
- getTickets: Y,
1115
+ getTickets: V,
1101
1116
  handleFailedResponse: Ee,
1102
1117
  handlePulse: Xe,
1103
1118
  onClickEditConnectGuest: Ze,
@@ -1107,9 +1122,9 @@ const Gt = mt({
1107
1122
  onSelectQuickReply: st,
1108
1123
  onSelectToDo: ot,
1109
1124
  openRequest: nt,
1110
- refreshPMSData: Ve,
1125
+ refreshPMSData: Ye,
1111
1126
  resizeTextarea: Se,
1112
- scrollToConnectBottom: V,
1127
+ scrollToConnectBottom: Y,
1113
1128
  sendChatMessage: rt,
1114
1129
  setAlignment: _e,
1115
1130
  setPositioning: we,
package/dist/index142.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as H, ref as n, computed as a, watch as g, nextTick as f } from "vue";
2
- import { Multiselect as I } from "./index189.js";
2
+ import { Multiselect as I } from "./index187.js";
3
3
  import { useI18n as k } from "vue-i18n";
4
4
  /* empty css */
5
5
  import q from "./index6.js";
package/dist/index172.js CHANGED
@@ -1,18 +1,18 @@
1
- import st from "./index206.js";
1
+ import st from "./index203.js";
2
2
  import { reactive as V, watch as h, ref as g, defineComponent as Z, useSlots as H, h as K, Fragment as at, inject as ct, computed as A, toRaw as lt, unref as x } from "vue";
3
- import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index207.js";
4
- import { tryOnUnmounted as pt, isObject as yt } from "./index208.js";
5
- import D, { getFrameData as dt } from "./index209.js";
6
- import { complex as $ } from "./index210.js";
7
- import { number as mt, alpha as C, scale as j } from "./index211.js";
8
- import { filter as P } from "./index212.js";
9
- import { px as c, progressPercentage as F, degrees as O } from "./index213.js";
10
- import { color as b } from "./index214.js";
11
- import { inertia as bt } from "./index215.js";
12
- import { animate as ht } from "./index216.js";
13
- import { velocityPerSecond as vt } from "./index217.js";
14
- import { cubicBezier as gt } from "./index218.js";
15
- import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index219.js";
3
+ import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index204.js";
4
+ import { tryOnUnmounted as pt, isObject as yt } from "./index205.js";
5
+ import D, { getFrameData as dt } from "./index206.js";
6
+ import { complex as $ } from "./index207.js";
7
+ import { number as mt, alpha as C, scale as j } from "./index208.js";
8
+ import { filter as P } from "./index209.js";
9
+ import { px as c, progressPercentage as F, degrees as O } from "./index210.js";
10
+ import { color as b } from "./index211.js";
11
+ import { inertia as bt } from "./index212.js";
12
+ import { animate as ht } from "./index213.js";
13
+ import { velocityPerSecond as vt } from "./index214.js";
14
+ import { cubicBezier as gt } from "./index215.js";
15
+ import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index216.js";
16
16
  const R = {};
17
17
  class Mt {
18
18
  subscriptions = /* @__PURE__ */ new Set();
package/dist/index173.js CHANGED
@@ -1,7 +1,7 @@
1
- import g from "./index203.js";
1
+ import g from "./index217.js";
2
2
  import { DomHandler as f, ObjectUtils as d } from "./index170.js";
3
- import v from "./index204.js";
4
- import S from "./index205.js";
3
+ import v from "./index218.js";
4
+ import S from "./index219.js";
5
5
  import { resolveDirective as A, createElementBlock as h, openBlock as p, mergeProps as b, Fragment as E, renderList as O, withDirectives as w, renderSlot as x, normalizeClass as K, createElementVNode as I, toDisplayString as D } from "vue";
6
6
  var V = {
7
7
  name: "BaseSelectButton",
package/dist/index176.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createVNode as s, ref as k, watchEffect as Y, onMounted as me, watch as nt, computed as A, toRef as at, inject as ge, shallowRef as lt, defineComponent as ot, provide as ye, onUnmounted as rt, isVNode as st, Teleport as it, Transition as ut, createElementBlock as be, openBlock as we, createElementVNode as Z, h as Ye } from "vue";
2
- import { format as Ce } from "./index228.js";
3
- import { parse as ct } from "./index229.js";
4
- import { getWeek as Ie } from "./index230.js";
5
- import dt from "./index231.js";
2
+ import { format as Ce } from "./index220.js";
3
+ import { parse as ct } from "./index221.js";
4
+ import { getWeek as Ie } from "./index222.js";
5
+ import dt from "./index223.js";
6
6
  var ft = Object.defineProperty, pt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertySymbols, Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable, Se = (t, e, n) => e in t ? ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e) => {
7
7
  for (var n in e || (e = {}))
8
8
  Ue.call(e, n) && Se(t, n, e[n]);
package/dist/index183.js CHANGED
@@ -1,14 +1,14 @@
1
- import A from "./index220.js";
2
- import O from "./index221.js";
3
- import V from "./index222.js";
4
- import R from "./index223.js";
5
- import j from "./index224.js";
6
- import K from "./index225.js";
7
- import H from "./index203.js";
1
+ import A from "./index232.js";
2
+ import O from "./index233.js";
3
+ import V from "./index227.js";
4
+ import R from "./index234.js";
5
+ import j from "./index235.js";
6
+ import K from "./index236.js";
7
+ import H from "./index217.js";
8
8
  import { DomHandler as w } from "./index170.js";
9
- import W from "./index204.js";
10
- import G from "./index226.js";
11
- import Y from "./index227.js";
9
+ import W from "./index218.js";
10
+ import G from "./index237.js";
11
+ import Y from "./index238.js";
12
12
  import { resolveComponent as y, createElementBlock as f, openBlock as o, Fragment as U, renderList as E, mergeProps as r, createElementVNode as h, createVNode as L, toDisplayString as F, normalizeClass as B, withCtx as C, createBlock as m, resolveDynamicComponent as b, resolveDirective as Z, createCommentVNode as v, renderSlot as g, withDirectives as M, withKeys as T, createTextVNode as z } from "vue";
13
13
  var q = {
14
14
  name: "BaseFileUpload",
package/dist/index185.js CHANGED
@@ -1,15 +1,15 @@
1
- import q from "./index252.js";
2
- import X from "./index253.js";
1
+ import q from "./index224.js";
2
+ import X from "./index225.js";
3
3
  import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index170.js";
4
- import O from "./index204.js";
5
- import Y from "./index254.js";
6
- import J from "./index222.js";
7
- import L from "./index203.js";
8
- import H from "./index255.js";
9
- import M from "./index256.js";
4
+ import O from "./index218.js";
5
+ import Y from "./index226.js";
6
+ import J from "./index227.js";
7
+ import L from "./index217.js";
8
+ import H from "./index228.js";
9
+ import M from "./index229.js";
10
10
  import { resolveDirective as C, createElementBlock as d, openBlock as s, mergeProps as l, createElementVNode as b, createCommentVNode as h, withDirectives as y, createBlock as f, resolveDynamicComponent as p, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
11
- import ee from "./index257.js";
12
- import te from "./index258.js";
11
+ import ee from "./index230.js";
12
+ import te from "./index231.js";
13
13
  var ie = {
14
14
  name: "BaseGalleria",
15
15
  extends: O,