@quoreadmin/ui 1.7.4 → 1.7.5

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 (180) hide show
  1. package/dist/index140.js +74 -71
  2. package/dist/index171.js +14 -14
  3. package/dist/index172.js +3 -3
  4. package/dist/index175.js +4 -4
  5. package/dist/index182.js +10 -10
  6. package/dist/index184.js +10 -10
  7. package/dist/index187.js +17 -17
  8. package/dist/index190.js +28 -28
  9. package/dist/index191.js +2 -2
  10. package/dist/index192.js +2 -2
  11. package/dist/index193.js +1 -1
  12. package/dist/index195.js +2 -2
  13. package/dist/index197.js +14 -14
  14. package/dist/index198.js +1 -1
  15. package/dist/index199.js +1 -1
  16. package/dist/index200.js +3 -3
  17. package/dist/index201.js +5 -5
  18. package/dist/index202.js +84 -29
  19. package/dist/index203.js +400 -109
  20. package/dist/index204.js +22 -36
  21. package/dist/index205.js +33 -26
  22. package/dist/index206.js +111 -31
  23. package/dist/index207.js +36 -9
  24. package/dist/index208.js +26 -19
  25. package/dist/index209.js +36 -10
  26. package/dist/index210.js +9 -10
  27. package/dist/index211.js +18 -50
  28. package/dist/index212.js +10 -43
  29. package/dist/index213.js +10 -4
  30. package/dist/index214.js +48 -36
  31. package/dist/index215.js +43 -21
  32. package/dist/index216.js +3 -87
  33. package/dist/index217.js +35 -403
  34. package/dist/index218.js +21 -22
  35. package/dist/index219.js +156 -122
  36. package/dist/index220.js +225 -35
  37. package/dist/index221.js +37 -80
  38. package/dist/index222.js +10 -20
  39. package/dist/index223.js +160 -19
  40. package/dist/index224.js +10 -10
  41. package/dist/index225.js +11 -11
  42. package/dist/index226.js +15 -13
  43. package/dist/index227.js +194 -156
  44. package/dist/index228.js +66 -224
  45. package/dist/index229.js +34 -37
  46. package/dist/index230.js +39 -9
  47. package/dist/index231.js +121 -155
  48. package/dist/index232.js +37 -19
  49. package/dist/index233.js +80 -22
  50. package/dist/index234.js +19 -198
  51. package/dist/index235.js +18 -68
  52. package/dist/index236.js +20 -34
  53. package/dist/index237.js +19 -39
  54. package/dist/index238.js +22 -3632
  55. package/dist/index239.js +22 -55
  56. package/dist/index240.js +20 -77
  57. package/dist/index241.js +823 -39
  58. package/dist/index242.js +685 -198
  59. package/dist/index243.js +175 -9
  60. package/dist/index244.js +22 -57
  61. package/dist/index245.js +20 -61
  62. package/dist/index246.js +20 -54
  63. package/dist/index247.js +3 -75
  64. package/dist/index248.js +171 -707
  65. package/dist/index249.js +128 -34
  66. package/dist/index250.js +1214 -55
  67. package/dist/index251.js +20 -11
  68. package/dist/index252.js +22 -705
  69. package/dist/index253.js +22 -820
  70. package/dist/index254.js +22 -15
  71. package/dist/index255.js +13 -15
  72. package/dist/index256.js +12 -12
  73. package/dist/index257.js +2 -836
  74. package/dist/index258.js +2 -702
  75. package/dist/index259.js +3626 -170
  76. package/dist/index260.js +55 -22
  77. package/dist/index261.js +77 -20
  78. package/dist/index262.js +52 -20
  79. package/dist/index263.js +215 -3
  80. package/dist/index264.js +10 -187
  81. package/dist/index265.js +52 -128
  82. package/dist/index266.js +52 -1214
  83. package/dist/index267.js +54 -20
  84. package/dist/index268.js +75 -22
  85. package/dist/index269.js +722 -21
  86. package/dist/index270.js +39 -29
  87. package/dist/index271.js +64 -20
  88. package/dist/index272.js +11 -20
  89. package/dist/index273.js +705 -2
  90. package/dist/index274.js +820 -2
  91. package/dist/index279.js +54 -2
  92. package/dist/index280.js +1 -1
  93. package/dist/index281.js +26 -3
  94. package/dist/index282.js +21 -26
  95. package/dist/index283.js +21 -53
  96. package/dist/index284.js +16 -26
  97. package/dist/index285.js +17 -22
  98. package/dist/index286.js +22 -21
  99. package/dist/index287.js +2 -16
  100. package/dist/index288.js +3 -17
  101. package/dist/index289.js +27 -23
  102. package/dist/index291.js +1 -1
  103. package/dist/index292.js +1 -1
  104. package/dist/index294.js +1 -1
  105. package/dist/index295.js +2 -2
  106. package/dist/index296.js +79 -15
  107. package/dist/index297.js +21 -83
  108. package/dist/index298.js +919 -186
  109. package/dist/index299.js +22 -246
  110. package/dist/index300.js +19 -234
  111. package/dist/index301.js +19 -5
  112. package/dist/index302.js +63 -128
  113. package/dist/index303.js +19 -68
  114. package/dist/index304.js +17 -85
  115. package/dist/index305.js +21 -28
  116. package/dist/index306.js +20 -7
  117. package/dist/index307.js +63 -75
  118. package/dist/index308.js +15 -4
  119. package/dist/index309.js +84 -2
  120. package/dist/index310.js +193 -74
  121. package/dist/index311.js +246 -54
  122. package/dist/index312.js +233 -4
  123. package/dist/index313.js +5 -4
  124. package/dist/index314.js +121 -166
  125. package/dist/index315.js +63 -58
  126. package/dist/index316.js +85 -73
  127. package/dist/index317.js +25 -75
  128. package/dist/index318.js +8 -21
  129. package/dist/index319.js +66 -926
  130. package/dist/index320.js +3 -21
  131. package/dist/index321.js +2 -20
  132. package/dist/index322.js +82 -19
  133. package/dist/index323.js +51 -66
  134. package/dist/index324.js +6 -19
  135. package/dist/index325.js +5 -19
  136. package/dist/index326.js +178 -21
  137. package/dist/index327.js +62 -21
  138. package/dist/index328.js +74 -62
  139. package/dist/index332.js +1 -1
  140. package/dist/index337.js +1 -1
  141. package/dist/index342.js +2 -2
  142. package/dist/index347.js +1 -1
  143. package/dist/index348.js +2 -2
  144. package/dist/index353.js +19 -20
  145. package/dist/index354.js +19 -55
  146. package/dist/index355.js +63 -28
  147. package/dist/index356.js +37 -7
  148. package/dist/index357.js +18 -49
  149. package/dist/index358.js +56 -6
  150. package/dist/index359.js +27 -10
  151. package/dist/index360.js +7 -7
  152. package/dist/index361.js +51 -27
  153. package/dist/index362.js +6 -2
  154. package/dist/index363.js +11 -69
  155. package/dist/index364.js +6 -166
  156. package/dist/index365.js +28 -20
  157. package/dist/index366.js +2 -20
  158. package/dist/index367.js +67 -61
  159. package/dist/index368.js +166 -36
  160. package/dist/index369.js +16 -100
  161. package/dist/index370.js +100 -90
  162. package/dist/index371.js +91 -98
  163. package/dist/index372.js +97 -30
  164. package/dist/index373.js +30 -10
  165. package/dist/index374.js +10 -3
  166. package/dist/index375.js +3 -3
  167. package/dist/index376.js +4 -13
  168. package/dist/index377.js +13 -7
  169. package/dist/index378.js +7 -12
  170. package/dist/index379.js +11 -4
  171. package/dist/index380.js +5 -33
  172. package/dist/index381.js +33 -31
  173. package/dist/index382.js +29 -26
  174. package/dist/index383.js +26 -59
  175. package/dist/index384.js +60 -16
  176. package/dist/index385.js +1 -1
  177. package/dist/index390.js +1 -1
  178. package/dist/index391.js +2 -2
  179. package/dist/src/components/room-details-popover/room-details-popover.d.ts +4 -1
  180. package/package.json +1 -1
package/dist/index140.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as dt, ref as l, computed as y, watch as F, onMounted as mt, onUnmounted as pt } from "vue";
1
+ import { defineComponent as dt, ref as i, computed as y, watch as F, onMounted as mt, onUnmounted as pt } from "vue";
2
2
  import { useI18n as vt } from "vue-i18n";
3
3
  import { DateTime as _ } from "./index163.js";
4
4
  import "./index186.js";
@@ -146,7 +146,7 @@ const Bt = dt({
146
146
  },
147
147
  emits: ["create:callback", "create:todo", "refresh:pms", "show:toast", "toggle"],
148
148
  setup(n, { emit: h }) {
149
- const { t: c } = vt(), i = l(null), ie = l(!1), ue = l("left"), K = l([
149
+ const { t: c } = vt(), l = i(null), ie = i(!1), ue = i("left"), K = i([
150
150
  {
151
151
  id: 1,
152
152
  label: c("HC_DEPARTMENT")
@@ -162,7 +162,7 @@ const Bt = dt({
162
162
  label: c("HC_ANYONE")
163
163
  // need to localize
164
164
  }
165
- ]), S = l(""), v = l({
165
+ ]), A = i(""), v = i({
166
166
  checkInDate: /* @__PURE__ */ new Date(),
167
167
  checkOutDate: /* @__PURE__ */ new Date(),
168
168
  guestEmail: "",
@@ -170,19 +170,19 @@ const Bt = dt({
170
170
  guestMood: null,
171
171
  guestName: "",
172
172
  guestPhone: "",
173
- inHouse: !!i.value?.tokenId || !1,
173
+ inHouse: !!l.value?.tokenId || !1,
174
174
  problem: null,
175
175
  notes: "",
176
- tokenId: i.value?.tokenId
177
- }), B = l(250), G = l(290), M = l([]), we = l([]), X = l(!0), Z = l(!0), N = l({
176
+ tokenId: l.value?.tokenId
177
+ }), B = i(250), G = i(290), N = i([]), we = i([]), X = i(!0), Z = i(!0), M = i({
178
178
  info: !0,
179
179
  tickets: !0,
180
180
  comments: !0
181
- }), ee = l(!0), Se = l(n.guestDetails), T = l([]), b = l({
181
+ }), ee = i(!0), Ae = i(n.guestDetails), T = i([]), b = i({
182
182
  pms: !1,
183
183
  roomNotices: !1,
184
184
  tickets: !1
185
- }), C = l([]), ce = l([]), de = l("bottom"), te = l(null), R = l(!1), W = l(!1), U = l(""), me = l(!1), A = l(!1), O = l(null), j = l(null), be = 3e4, u = l({
185
+ }), C = i([]), ce = i([]), de = i("bottom"), te = i(null), R = i(!1), W = i(!1), U = i(""), me = i(!1), S = i(!1), O = i(null), j = i(null), be = 3e4, u = i({
186
186
  assignType: null,
187
187
  department: null,
188
188
  due: /* @__PURE__ */ new Date(),
@@ -192,7 +192,7 @@ const Bt = dt({
192
192
  requestedBy: null,
193
193
  when: null,
194
194
  where: null
195
- }), $ = l([
195
+ }), $ = i([
196
196
  {
197
197
  id: 0,
198
198
  label: c("HC_STAFF_MEMBER")
@@ -203,12 +203,12 @@ const Bt = dt({
203
203
  label: c("HC_HOTEL_GUEST")
204
204
  // need to localize
205
205
  }
206
- ]), Ce = l(!1), k = l(null), w = l({
206
+ ]), Ce = i(!1), k = i(null), w = i({
207
207
  endDate: /* @__PURE__ */ new Date(),
208
208
  issue: null,
209
209
  notes: "",
210
210
  startDate: /* @__PURE__ */ new Date()
211
- }), ae = l([]), oe = l(!1), E = l([]), H = l([]), Me = l([
211
+ }), ae = i([]), oe = i(!1), E = i([]), H = i([]), Ne = i([
212
212
  {
213
213
  label: c("HC_COMPLAINT"),
214
214
  id: "complaint"
@@ -225,7 +225,7 @@ const Bt = dt({
225
225
  label: c("HC_WORK_ORDER"),
226
226
  id: "work_order"
227
227
  }
228
- ]), Q = l(), L = l(null), p = l({
228
+ ]), Q = i(), L = i(null), p = i({
229
229
  assignType: null,
230
230
  department: null,
231
231
  due: /* @__PURE__ */ new Date(),
@@ -234,8 +234,8 @@ const Bt = dt({
234
234
  notes: "",
235
235
  person: null,
236
236
  requestedBy: null
237
- }), pe = l([]), P = l([]), q = l([]), ve = y(() => {
238
- switch (i.value.cleaning?.name) {
237
+ }), pe = i([]), P = i([]), q = i([]), ve = y(() => {
238
+ switch (l.value.cleaning?.name || l.value.cleaningStatus) {
239
239
  case "CLEAN":
240
240
  case "INSPECTED":
241
241
  return "CLEAN";
@@ -247,8 +247,11 @@ const Bt = dt({
247
247
  default:
248
248
  return "";
249
249
  }
250
- }), Ne = y(() => ve.value === "CLEAN" ? "blue-10" : ve.value === "DIRTY" ? "red-10" : "gray-30"), Re = y(() => c(`HC_${i.value.cleaning?.name}`) || ""), He = y(() => {
251
- const e = S.value.toLowerCase();
250
+ }), Me = y(() => ve.value === "CLEAN" ? "blue-10" : ve.value === "DIRTY" ? "red-10" : "gray-30"), Re = y(() => {
251
+ const e = l.value.cleaning?.name || l.value.cleaningStatus;
252
+ return e ? c(`HC_${e}`) : "";
253
+ }), He = y(() => {
254
+ const e = A.value.toLowerCase();
252
255
  return n.quickReplies.filter((a) => a.toLowerCase().match(e));
253
256
  }), Le = y(() => {
254
257
  if (!C.value.length) return [];
@@ -282,7 +285,7 @@ const Bt = dt({
282
285
  label: a.display_name
283
286
  });
284
287
  }) : e = T.value, e;
285
- }), De = y(() => i.value.occupancy?.name === "OCCUPIED" || i.value.occupancyStatus === "OCCUPIED"), xe = y(() => De.value && Ie.value ? "HK_ROOM_STATUS_Occupied_Complaint" : "HK_ROOM_STATUS_Occupied"), Fe = y(() => {
288
+ }), De = y(() => l.value.occupancy?.name === "OCCUPIED" || l.value.occupancyStatus === "OCCUPIED"), xe = y(() => De.value && Ie.value ? "HK_ROOM_STATUS_Occupied_Complaint" : "HK_ROOM_STATUS_Occupied"), Fe = y(() => {
286
289
  switch (k.value?.id) {
287
290
  case "request":
288
291
  case "work_order":
@@ -291,12 +294,12 @@ const Bt = dt({
291
294
  return null;
292
295
  }
293
296
  }), Be = y(() => {
294
- if (M.value)
297
+ if (N.value)
295
298
  switch (k.value?.id) {
296
299
  case "request":
297
- return M.value.find((e) => parseInt(e.id) === 4);
300
+ return N.value.find((e) => parseInt(e.id) === 4);
298
301
  case "work_order":
299
- return M.value.find((e) => parseInt(e.id) === 2);
302
+ return N.value.find((e) => parseInt(e.id) === 2);
300
303
  default:
301
304
  return null;
302
305
  }
@@ -312,11 +315,11 @@ const Bt = dt({
312
315
  }
313
316
  }), We = y(() => {
314
317
  let e = "";
315
- if (i.value && i.value.reservations[0]) {
318
+ if (l.value && l.value.reservations[0]) {
316
319
  const a = _.fromISO(
317
- i.value.reservations[0].arrivalDate
320
+ l.value.reservations[0].arrivalDate
318
321
  ), t = a.toFormat("MMM"), o = a.day, s = a.year, r = _.fromISO(
319
- i.value.reservations[0].departureDate
322
+ l.value.reservations[0].departureDate
320
323
  ), d = r.toFormat("MMM"), m = r.day, f = r.year;
321
324
  e += t + " " + o, s !== f && (e += ", " + s), t === d ? e += "-" + m : e += " - " + d + " " + m, e += ", " + f;
322
325
  }
@@ -345,7 +348,7 @@ const Bt = dt({
345
348
  }), Te = () => {
346
349
  oe.value = !1, R.value = !1, ie.value = !1, T.value = [], ce.value = [], pe.value = [], P.value = [], q.value = [], k.value = null, w.value.issue = null, w.value.startDate = /* @__PURE__ */ new Date(), w.value.endDate = /* @__PURE__ */ new Date(), w.value.notes = "", v.value.guestName = "", v.value.guestEmail = "", v.value.guestPhone = "", v.value.guestMood = null, v.value.guestLoyalty = "", v.value.problem = null, v.value.checkInDate = /* @__PURE__ */ new Date(), v.value.checkOutDate = /* @__PURE__ */ new Date(), v.value.notes = "", p.value.assignType = null, p.value.department = null, p.value.person = null, p.value.due = /* @__PURE__ */ new Date(), p.value.item = null, p.value.issue = null, p.value.notes = "", u.value.assignType = null, u.value.department = null, u.value.person = null, u.value.due = /* @__PURE__ */ new Date(), u.value.item = null, u.value.notes = "", u.value.when = null, u.value.where = null;
347
350
  }, $e = async () => {
348
- h("create:callback", i.value), h("toggle", !1);
351
+ h("create:callback", l.value), h("toggle", !1);
349
352
  }, x = (e) => {
350
353
  const a = [];
351
354
  (Array.isArray(e) ? e : Object.values(e)).forEach((o) => {
@@ -399,9 +402,9 @@ const Bt = dt({
399
402
  I.user.firstName && I.user.lastName ? I.user.initials = I.user.firstName[0] + I.user.lastName[0] : I.user.firstName && (I.user.initials = I.user.firstName[0]), re && (I.user.icon = "property-fill"), C.value.push(I);
400
403
  });
401
404
  }, fe = async (e = !1) => {
402
- if (n.showComments && i.value.tokenId)
405
+ if (n.showComments && l.value.tokenId)
403
406
  try {
404
- let a = `/api/client/connect/getMessages.php?tokenId=${i.value.tokenId}`;
407
+ let a = `/api/client/connect/getMessages.php?tokenId=${l.value.tokenId}`;
405
408
  e && O.value !== null && (a += `&lastMsgId=${O.value}`);
406
409
  const o = await (await fetch(a, {
407
410
  method: "GET",
@@ -409,7 +412,7 @@ const Bt = dt({
409
412
  })).json();
410
413
  if (o.status === "error")
411
414
  throw new Error(o.message || "Failed to get messages");
412
- if (A.value = !o.closed, o.messages && o.messages.length > 0) {
415
+ if (S.value = !o.closed, o.messages && o.messages.length > 0) {
413
416
  O.value = o.messages[o.messages.length - 1].id, e ? Qe(o.messages) : x(o.messages);
414
417
  const s = setTimeout(Y, 100);
415
418
  H.value.push(s);
@@ -441,7 +444,7 @@ const Bt = dt({
441
444
  if (f === 0)
442
445
  return c("HC_A_MOMENT_AGO");
443
446
  }, Ye = async () => {
444
- n.showGuestDetails && se(), ne(), J(), h("refresh:pms", i.value);
447
+ n.showGuestDetails && se(), ne(), J(), h("refresh:pms", l.value);
445
448
  }, se = async () => {
446
449
  try {
447
450
  b.value.pms = !0;
@@ -456,7 +459,7 @@ const Bt = dt({
456
459
  return g.length === 2 && g.pop()?.split(";").shift() || "";
457
460
  })(),
458
461
  "Content-Type": "application/json"
459
- }, s = i.value?.qv2Rooms?.qRoomId || i.value?.id || n.room.id, r = await fetch(
462
+ }, s = l.value?.qv2Rooms?.qRoomId || l.value?.id || n.room.id, r = await fetch(
460
463
  `${t}/vendors/properties/statuses/${n.propertyId}/rooms`,
461
464
  {
462
465
  method: "POST",
@@ -466,11 +469,11 @@ const Bt = dt({
466
469
  }
467
470
  );
468
471
  clearTimeout(a), r.ok || ke(r);
469
- const d = await r.json(), m = d.data?.rooms || d.rooms || [];
470
- te.value = m, m.length > 0 ? i.value = {
472
+ const d = await r.json(), m = d.data?.pmsRooms || d.data?.rooms || d.rooms || [];
473
+ te.value = m, m.length > 0 ? l.value = {
471
474
  ...m[0],
472
475
  tokenId: m[0].tokenId || n.room.tokenId
473
- } : i.value = n.room, b.value.pms = !1;
476
+ } : l.value = n.room, b.value.pms = !1;
474
477
  } catch (e) {
475
478
  return b.value.pms = !1, h("show:toast", {
476
479
  show: !0,
@@ -514,7 +517,7 @@ const Bt = dt({
514
517
  ]), o = await a.json(), s = await t.json();
515
518
  if (o.departments && (o.departments.forEach((r) => {
516
519
  r.label = r.display_name;
517
- }), M.value = o.departments), s.users) {
520
+ }), N.value = o.departments), s.users) {
518
521
  const r = [];
519
522
  let d = {
520
523
  group: "",
@@ -535,7 +538,7 @@ const Bt = dt({
535
538
  }, Oe = async () => {
536
539
  try {
537
540
  const a = await (await fetch(
538
- `/api/client/connect/getStayDetails.php?tokenId=${i.value.tokenId}`,
541
+ `/api/client/connect/getStayDetails.php?tokenId=${l.value.tokenId}`,
539
542
  {
540
543
  method: "GET",
541
544
  credentials: "include"
@@ -614,7 +617,7 @@ const Bt = dt({
614
617
  }, Ke = (e) => {
615
618
  const a = document.querySelectorAll(".pulse");
616
619
  if (a && a.length) {
617
- const t = i.value?.qv2Rooms?.qRoomId || i.value?.id || n.room?.id, o = document.getElementById("room-" + t), s = o?.classList;
620
+ const t = l.value?.qv2Rooms?.qRoomId || l.value?.id || n.room?.id, o = document.getElementById("room-" + t), s = o?.classList;
618
621
  switch (e) {
619
622
  case "room_notice":
620
623
  (s?.contains("roombox_unsel") || s?.contains("roombox_unsel_active")) && (o?.classList.remove(), o?.classList.add("roomnoticeroombox_sel"));
@@ -661,7 +664,7 @@ const Bt = dt({
661
664
  }
662
665
  window.open(a, "_blank");
663
666
  }, et = async () => {
664
- const e = i.value?.qv2Rooms?.qRoomId || i.value?.id || n.room?.id, a = i.value?.qv2Rooms?.qRoomName || i.value?.name || n.room?.name, t = {
667
+ const e = l.value?.qv2Rooms?.qRoomId || l.value?.id || n.room?.id, a = l.value?.qv2Rooms?.qRoomName || l.value?.name || n.room?.name, t = {
665
668
  type: k.value?.id,
666
669
  propertyId: n.propertyId,
667
670
  userId: L.value,
@@ -670,7 +673,7 @@ const Bt = dt({
670
673
  };
671
674
  switch (k.value?.id) {
672
675
  case "complaint":
673
- t.tokenId = i.value.tokenId, t.problemId = v.value.problem.id, t.guestName = v.value.guestName, t.guestPhone = v.value.guestPhone, t.guestEmail = v.value.guestEmail, t.guestLoyalty = v.value.guestLoyalty, t.guestMood = v.value.guestMood.id, t.checkInDate = _.fromJSDate(v.value.checkInDate).toFormat(
676
+ t.tokenId = l.value.tokenId, t.problemId = v.value.problem.id, t.guestName = v.value.guestName, t.guestPhone = v.value.guestPhone, t.guestEmail = v.value.guestEmail, t.guestLoyalty = v.value.guestLoyalty, t.guestMood = v.value.guestMood.id, t.checkInDate = _.fromJSDate(v.value.checkInDate).toFormat(
674
677
  "yyyy-MM-dd"
675
678
  ), t.checkOutDate = _.fromJSDate(v.value.checkOutDate).toFormat(
676
679
  "yyyy-MM-dd"
@@ -689,15 +692,15 @@ const Bt = dt({
689
692
  }, tt = (e) => {
690
693
  ge(), _e(), n.hover && h("toggle", e);
691
694
  }, at = (e) => {
692
- Ae(), S.value = e;
695
+ Se(), A.value = e;
693
696
  }, ot = async (e) => {
694
697
  if (console.log("selected:", e), k.value = e, T.value = [], w.value.issue = null, v.value.problem = null, p.value.item = null, p.value.issue = null, u.value.item = null, !k.value)
695
698
  return;
696
- const a = i.value?.qv2Rooms?.qRoomId || i.value?.id || n.room?.id, t = new FormData();
699
+ const a = l.value?.qv2Rooms?.qRoomId || l.value?.id || n.room?.id, t = new FormData();
697
700
  switch (t.append("property_id", n.propertyId), t.append("area_id", a), e.id) {
698
701
  case "complaint":
699
702
  try {
700
- i.value.tokenId && await Oe();
703
+ l.value.tokenId && await Oe();
701
704
  const s = await (await fetch("/api/client/common/getComplaintProblemsByPropertyId.php", {
702
705
  method: "POST",
703
706
  body: t
@@ -741,7 +744,7 @@ const Bt = dt({
741
744
  method: "POST",
742
745
  body: t
743
746
  })).json();
744
- if (s.items && (T.value = s.items), await he(), u.value.department = M.value.find(
747
+ if (s.items && (T.value = s.items), await he(), u.value.department = N.value.find(
745
748
  (r) => parseInt(r.id) === 4
746
749
  ), n.allowWhenWhere)
747
750
  try {
@@ -803,7 +806,7 @@ const Bt = dt({
803
806
  f.data.issues.forEach((g) => {
804
807
  g.label = g.display_name;
805
808
  }), pe.value = f.data.issues;
806
- }), p.value.department = M.value.find(
809
+ }), p.value.department = N.value.find(
807
810
  (m) => parseInt(m.id) === 2
808
811
  );
809
812
  } catch (o) {
@@ -830,10 +833,10 @@ const Bt = dt({
830
833
  behavior: "smooth"
831
834
  });
832
835
  }, nt = async (e) => {
833
- if (e && e.type === "keydown" && e.preventDefault(), i.value.tokenId && S.value && !R.value)
836
+ if (e && e.type === "keydown" && e.preventDefault(), l.value.tokenId && A.value && !R.value)
834
837
  try {
835
838
  const a = new FormData();
836
- a.append("tokenId", i.value.tokenId), a.append("content", S.value), a.append("senderId", L.value || "");
839
+ a.append("tokenId", l.value.tokenId), a.append("content", A.value), a.append("senderId", L.value || "");
837
840
  const t = await z.post(
838
841
  "/api/client/connect/sendMessage.php",
839
842
  a
@@ -847,7 +850,7 @@ const Bt = dt({
847
850
  });
848
851
  return;
849
852
  }
850
- S.value = "", A.value = !t.data.closed, t.data.messages && (x(t.data.messages), t.data.messages.length > 0 && (O.value = t.data.messages[t.data.messages.length - 1].id)), Y();
853
+ A.value = "", S.value = !t.data.closed, t.data.messages && (x(t.data.messages), t.data.messages.length > 0 && (O.value = t.data.messages[t.data.messages.length - 1].id)), Y();
851
854
  } catch (a) {
852
855
  console.error("sendChatMessage error:", a), h("show:toast", {
853
856
  show: !0,
@@ -857,10 +860,10 @@ const Bt = dt({
857
860
  });
858
861
  }
859
862
  }, rt = async () => {
860
- if (!(!i.value.tokenId || !L.value))
863
+ if (!(!l.value.tokenId || !L.value))
861
864
  try {
862
- const e = A.value ? "/api/client/connect/closeConversation.php" : "/api/client/connect/openConversation.php", a = new FormData();
863
- a.append("tokenId", i.value.tokenId), a.append("userId", L.value), A.value && O.value !== null && a.append("lastMsgId", O.value.toString());
865
+ const e = S.value ? "/api/client/connect/closeConversation.php" : "/api/client/connect/openConversation.php", a = new FormData();
866
+ a.append("tokenId", l.value.tokenId), a.append("userId", L.value), S.value && O.value !== null && a.append("lastMsgId", O.value.toString());
864
867
  const t = await z.post(e, a);
865
868
  if (t.data.status === "error") {
866
869
  h("show:toast", {
@@ -871,9 +874,9 @@ const Bt = dt({
871
874
  });
872
875
  return;
873
876
  }
874
- A.value = !t.data.closed, t.data.messages && (x(t.data.messages), t.data.messages.length > 0 && (O.value = t.data.messages[t.data.messages.length - 1].id)), h("show:toast", {
877
+ S.value = !t.data.closed, t.data.messages && (x(t.data.messages), t.data.messages.length > 0 && (O.value = t.data.messages[t.data.messages.length - 1].id)), h("show:toast", {
875
878
  show: !0,
876
- message: A.value ? c("HC_CONVERSATION_REOPENED") : c("HC_CONVERSATION_CLOSED"),
879
+ message: S.value ? c("HC_CONVERSATION_REOPENED") : c("HC_CONVERSATION_CLOSED"),
877
880
  variant: "success",
878
881
  icon: "check-circle"
879
882
  });
@@ -886,11 +889,11 @@ const Bt = dt({
886
889
  });
887
890
  }
888
891
  }, lt = async () => {
889
- if (n.isTestEnvironment && !(!i.value?.tokenId || !U.value.trim())) {
892
+ if (n.isTestEnvironment && !(!l.value?.tokenId || !U.value.trim())) {
890
893
  me.value = !0;
891
894
  try {
892
895
  const e = new FormData();
893
- e.append("tokenId", i.value.tokenId), e.append("content", U.value.trim());
896
+ e.append("tokenId", l.value.tokenId), e.append("content", U.value.trim());
894
897
  const a = await z.post(
895
898
  "/api/client/connect/simulateInbound.php",
896
899
  e
@@ -904,7 +907,7 @@ const Bt = dt({
904
907
  });
905
908
  return;
906
909
  }
907
- a.data.messages && (x(a.data.messages), A.value = !a.data.closed, a.data.messages.length > 0 && (O.value = a.data.messages[a.data.messages.length - 1].id)), U.value = "", W.value = !1, Y(), h("show:toast", {
910
+ a.data.messages && (x(a.data.messages), S.value = !a.data.closed, a.data.messages.length > 0 && (O.value = a.data.messages[a.data.messages.length - 1].id)), U.value = "", W.value = !1, Y(), h("show:toast", {
908
911
  show: !0,
909
912
  message: c("HC_SIMULATED_GUEST_REPLY"),
910
913
  variant: "success",
@@ -945,10 +948,10 @@ const Bt = dt({
945
948
  const e = Q.value?.getBoundingClientRect().left, a = window.innerWidth;
946
949
  de.value = a - e < G.value ? "left" : "right";
947
950
  }
948
- }, Ae = () => {
949
- R.value = !R.value, R.value ? (S.value = "", N.value.info = Z.value, N.value.tickets = ee.value, N.value.comments = X.value, Z.value = !1, ee.value = !1, document.getElementById("comment-field")?.focus()) : (Z.value = N.value.info, ee.value = N.value.tickets, X.value = N.value.comments);
951
+ }, Se = () => {
952
+ R.value = !R.value, R.value ? (A.value = "", M.value.info = Z.value, M.value.tickets = ee.value, M.value.comments = X.value, Z.value = !1, ee.value = !1, document.getElementById("comment-field")?.focus()) : (Z.value = M.value.info, ee.value = M.value.tickets, X.value = M.value.comments);
950
953
  }, ct = async (e, a) => {
951
- const t = i.value?.qv2Rooms?.qRoomId || i.value?.id || n.room?.id, o = new FormData();
954
+ const t = l.value?.qv2Rooms?.qRoomId || l.value?.id || n.room?.id, o = new FormData();
952
955
  if (o.append("property_id", n.propertyId), o.append("room_ids", JSON.stringify([t])), await J(), E.value) {
953
956
  const s = [];
954
957
  E.value.forEach((r) => {
@@ -967,29 +970,29 @@ const Bt = dt({
967
970
  const e = setTimeout(Y, 500);
968
971
  H.value.push(e);
969
972
  }
970
- n.open || (Te(), ye(), O.value = null, C.value = [], A.value = !1);
973
+ n.open || (Te(), ye(), O.value = null, C.value = [], S.value = !1);
971
974
  }), F(
972
- () => [n.open, n.showComments, X.value, i.value?.tokenId],
975
+ () => [n.open, n.showComments, X.value, l.value?.tokenId],
973
976
  ([e, a, t, o]) => {
974
977
  e && a && t && o ? ut() : ye();
975
978
  }
976
- ), F(S, () => {
979
+ ), F(A, () => {
977
980
  const e = setTimeout(Ee, 100);
978
981
  H.value.push(e);
979
982
  }), F(() => n.allowWhenWhere, (e, a) => {
980
983
  a === !0 && e === !1 && (u.value.when = null, u.value.where = null, P.value = [], q.value = []);
981
984
  }), F(() => n.open, async (e, a) => {
982
- e && !a && (n.showGuestDetails && !te.value ? await se() : i.value || (i.value = n.room), J(), ne(), n.showComments && fe());
985
+ e && !a && (n.showGuestDetails && !te.value ? await se() : l.value || (l.value = n.room), J(), ne(), n.showComments && fe());
983
986
  }), F(
984
987
  () => n.room.id,
985
988
  (e, a) => {
986
- e !== a && (i.value = n.room, te.value = null, n.open && (n.showGuestDetails && se(), J(), ne()));
989
+ e !== a && (l.value = n.room, te.value = null, n.open && (n.showGuestDetails && se(), J(), ne()));
987
990
  }
988
991
  ), mt(async () => {
989
992
  const e = JSON.parse(
990
993
  window.localStorage.getItem("authenticated")
991
994
  );
992
- L.value = e?.user?.id || window.userId || "", i.value = n.room, n.size === "sm" && (B.value = 140, G.value = 160), n.size === "lg" && (B.value = 250, G.value = 440), ge(), _e();
995
+ L.value = e?.user?.id || window.userId || "", l.value = n.room, n.size === "sm" && (B.value = 140, G.value = 160), n.size === "lg" && (B.value = 250, G.value = 440), ge(), _e();
993
996
  }), pt(() => {
994
997
  H.value.forEach((e) => {
995
998
  clearTimeout(e);
@@ -1000,17 +1003,17 @@ const Bt = dt({
1000
1003
  actionMenuOpen: ie,
1001
1004
  alignment: ue,
1002
1005
  assignTypes: K,
1003
- comment: S,
1006
+ comment: A,
1004
1007
  complaint: v,
1005
1008
  componentHeight: B,
1006
1009
  componentWidth: G,
1007
- departments: M,
1010
+ departments: N,
1008
1011
  departmentUsers: we,
1009
1012
  expandComments: X,
1010
1013
  expandGuestInfo: Z,
1011
- expandedStates: N,
1014
+ expandedStates: M,
1012
1015
  expandTickets: ee,
1013
- guestDetailsData: Se,
1016
+ guestDetailsData: Ae,
1014
1017
  itemOptions: T,
1015
1018
  loading: b,
1016
1019
  messages: C,
@@ -1022,12 +1025,12 @@ const Bt = dt({
1022
1025
  requestedByOptions: $,
1023
1026
  requestLoading: Ce,
1024
1027
  requestType: k,
1025
- roomDetailsData: i,
1028
+ roomDetailsData: l,
1026
1029
  roomNotice: w,
1027
1030
  roomNotices: ae,
1028
1031
  showCreateRequest: oe,
1029
1032
  ticketsList: E,
1030
- todoOptions: Me,
1033
+ todoOptions: Ne,
1031
1034
  trigger: Q,
1032
1035
  userId: L,
1033
1036
  workOrder: p,
@@ -1035,7 +1038,7 @@ const Bt = dt({
1035
1038
  whenOptions: P,
1036
1039
  whereOptions: q,
1037
1040
  // Guest Connect state
1038
- isConversationOpen: A,
1041
+ isConversationOpen: S,
1039
1042
  lastMessageId: O,
1040
1043
  // Simulate Guest Reply state (test environments only)
1041
1044
  simulateOpen: W,
@@ -1043,7 +1046,7 @@ const Bt = dt({
1043
1046
  simulateLoading: me,
1044
1047
  // Computed
1045
1048
  cleanliness: ve,
1046
- cleanlinessColor: Ne,
1049
+ cleanlinessColor: Me,
1047
1050
  cleanlinessTooltipContent: Re,
1048
1051
  filteredReplies: He,
1049
1052
  groupedMessages: Le,
@@ -1087,7 +1090,7 @@ const Bt = dt({
1087
1090
  setAlignment: ge,
1088
1091
  setPositioning: _e,
1089
1092
  toggleMarkOpenClose: rt,
1090
- toggleQuickReply: Ae,
1093
+ toggleQuickReply: Se,
1091
1094
  updateTickets: ct,
1092
1095
  // Simulate Guest Reply methods (test environments only)
1093
1096
  simulateGuestReply: lt,
package/dist/index171.js CHANGED
@@ -1,18 +1,18 @@
1
- import st from "./index202.js";
1
+ import st from "./index205.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 "./index203.js";
4
- import { tryOnUnmounted as pt, isObject as yt } from "./index204.js";
5
- import D, { getFrameData as dt } from "./index205.js";
6
- import { complex as $ } from "./index206.js";
7
- import { number as mt, alpha as C, scale as j } from "./index207.js";
8
- import { filter as P } from "./index208.js";
9
- import { px as c, progressPercentage as F, degrees as O } from "./index209.js";
10
- import { color as b } from "./index210.js";
11
- import { inertia as bt } from "./index211.js";
12
- import { animate as ht } from "./index212.js";
13
- import { velocityPerSecond as vt } from "./index213.js";
14
- import { cubicBezier as gt } from "./index214.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 "./index215.js";
3
+ import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index206.js";
4
+ import { tryOnUnmounted as pt, isObject as yt } from "./index207.js";
5
+ import D, { getFrameData as dt } from "./index208.js";
6
+ import { complex as $ } from "./index209.js";
7
+ import { number as mt, alpha as C, scale as j } from "./index210.js";
8
+ import { filter as P } from "./index211.js";
9
+ import { px as c, progressPercentage as F, degrees as O } from "./index212.js";
10
+ import { color as b } from "./index213.js";
11
+ import { inertia as bt } from "./index214.js";
12
+ import { animate as ht } from "./index215.js";
13
+ import { velocityPerSecond as vt } from "./index216.js";
14
+ import { cubicBezier as gt } from "./index217.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 "./index218.js";
16
16
  const R = {};
17
17
  class Mt {
18
18
  subscriptions = /* @__PURE__ */ new Set();
package/dist/index172.js CHANGED
@@ -1,7 +1,7 @@
1
- import g from "./index216.js";
1
+ import g from "./index202.js";
2
2
  import { DomHandler as f, ObjectUtils as d } from "./index169.js";
3
- import v from "./index217.js";
4
- import S from "./index218.js";
3
+ import v from "./index203.js";
4
+ import S from "./index204.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/index175.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 "./index227.js";
3
- import { parse as ct } from "./index228.js";
4
- import { getWeek as Ie } from "./index229.js";
5
- import dt from "./index230.js";
2
+ import { format as Ce } from "./index219.js";
3
+ import { parse as ct } from "./index220.js";
4
+ import { getWeek as Ie } from "./index221.js";
5
+ import dt from "./index222.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/index182.js CHANGED
@@ -1,14 +1,14 @@
1
- import A from "./index231.js";
2
- import O from "./index232.js";
3
- import V from "./index222.js";
4
- import R from "./index233.js";
5
- import j from "./index234.js";
6
- import K from "./index235.js";
7
- import H from "./index216.js";
1
+ import A from "./index223.js";
2
+ import O from "./index224.js";
3
+ import V from "./index225.js";
4
+ import R from "./index226.js";
5
+ import j from "./index227.js";
6
+ import K from "./index228.js";
7
+ import H from "./index202.js";
8
8
  import { DomHandler as w } from "./index169.js";
9
- import W from "./index217.js";
10
- import G from "./index236.js";
11
- import Y from "./index237.js";
9
+ import W from "./index203.js";
10
+ import G from "./index229.js";
11
+ import Y from "./index230.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/index184.js CHANGED
@@ -1,15 +1,15 @@
1
- import q from "./index219.js";
2
- import X from "./index220.js";
1
+ import q from "./index231.js";
2
+ import X from "./index232.js";
3
3
  import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index169.js";
4
- import O from "./index217.js";
5
- import Y from "./index221.js";
6
- import J from "./index222.js";
7
- import L from "./index216.js";
8
- import H from "./index223.js";
9
- import M from "./index224.js";
4
+ import O from "./index203.js";
5
+ import Y from "./index233.js";
6
+ import J from "./index225.js";
7
+ import L from "./index202.js";
8
+ import H from "./index234.js";
9
+ import M from "./index235.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 "./index225.js";
12
- import te from "./index226.js";
11
+ import ee from "./index236.js";
12
+ import te from "./index237.js";
13
13
  var ie = {
14
14
  name: "BaseGalleria",
15
15
  extends: O,
package/dist/index187.js CHANGED
@@ -1,20 +1,20 @@
1
- import a from "./index300.js";
2
- import p from "./index301.js";
3
- import m from "./index302.js";
4
- import i from "./index303.js";
5
- import f from "./index304.js";
6
- import l from "./index305.js";
7
- import c from "./index306.js";
8
- import d from "./index307.js";
9
- import u from "./index308.js";
10
- import { VERSION as x } from "./index309.js";
11
- import C from "./index310.js";
12
- import A from "./index311.js";
13
- import E from "./index312.js";
14
- import O from "./index313.js";
15
- import S from "./index314.js";
16
- import H from "./index315.js";
17
- import T from "./index316.js";
1
+ import a from "./index312.js";
2
+ import p from "./index313.js";
3
+ import m from "./index314.js";
4
+ import i from "./index315.js";
5
+ import f from "./index316.js";
6
+ import l from "./index317.js";
7
+ import c from "./index318.js";
8
+ import d from "./index319.js";
9
+ import u from "./index320.js";
10
+ import { VERSION as x } from "./index321.js";
11
+ import C from "./index322.js";
12
+ import A from "./index323.js";
13
+ import E from "./index324.js";
14
+ import O from "./index325.js";
15
+ import S from "./index326.js";
16
+ import H from "./index327.js";
17
+ import T from "./index328.js";
18
18
  function n(o) {
19
19
  const t = new m(o), e = p(m.prototype.request, t);
20
20
  return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {