@quoreadmin/ui 1.10.33 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +29 -27
  3. package/dist/index10.js +2 -2
  4. package/dist/index101.js +20 -25
  5. package/dist/index102.js +34 -0
  6. package/dist/{index103.js → index104.js} +1 -1
  7. package/dist/index106.js +147 -2
  8. package/dist/index107.js +2 -37
  9. package/dist/index108.js +39 -0
  10. package/dist/index11.js +2 -2
  11. package/dist/{index109.js → index110.js} +2 -2
  12. package/dist/{index111.js → index112.js} +1 -1
  13. package/dist/{index113.js → index114.js} +3 -3
  14. package/dist/{index115.js → index116.js} +5 -5
  15. package/dist/{index117.js → index118.js} +1 -1
  16. package/dist/index12.js +2 -2
  17. package/dist/{index119.js → index120.js} +5 -5
  18. package/dist/index13.js +2 -2
  19. package/dist/{index131.js → index132.js} +2 -2
  20. package/dist/{index136.js → index137.js} +1 -1
  21. package/dist/{index138.js → index139.js} +2 -2
  22. package/dist/index14.js +2 -2
  23. package/dist/index142.js +167 -0
  24. package/dist/{index143.js → index146.js} +1 -1
  25. package/dist/index15.js +2 -2
  26. package/dist/{index147.js → index150.js} +379 -399
  27. package/dist/{index149.js → index152.js} +1 -1
  28. package/dist/{index151.js → index154.js} +10 -10
  29. package/dist/index16.js +2 -2
  30. package/dist/index160.js +581 -86
  31. package/dist/index163.js +93 -0
  32. package/dist/index165.js +87 -356
  33. package/dist/index168.js +389 -0
  34. package/dist/index17.js +2 -2
  35. package/dist/{index167.js → index170.js} +1 -1
  36. package/dist/index172.js +205 -111
  37. package/dist/index175.js +110 -87
  38. package/dist/index176.js +478 -844
  39. package/dist/index177.js +5520 -36
  40. package/dist/index178.js +90 -279
  41. package/dist/index179.js +833 -122
  42. package/dist/index18.js +2 -2
  43. package/dist/index180.js +36 -1197
  44. package/dist/index181.js +268 -760
  45. package/dist/index182.js +146 -1304
  46. package/dist/index183.js +1151 -228
  47. package/dist/index184.js +754 -88
  48. package/dist/index185.js +1308 -2
  49. package/dist/index186.js +259 -1359
  50. package/dist/index187.js +108 -0
  51. package/dist/index188.js +2 -18
  52. package/dist/index189.js +1372 -14
  53. package/dist/index19.js +2 -2
  54. package/dist/index191.js +8 -8
  55. package/dist/index192.js +10 -17
  56. package/dist/index193.js +18 -759
  57. package/dist/index194.js +18 -1177
  58. package/dist/index195.js +22 -1231
  59. package/dist/index196.js +740 -11258
  60. package/dist/index197.js +1177 -36
  61. package/dist/index198.js +1233 -43
  62. package/dist/index199.js +11258 -1209
  63. package/dist/index2.js +2 -2
  64. package/dist/index20.js +3 -3
  65. package/dist/index200.js +38 -0
  66. package/dist/index201.js +44 -5938
  67. package/dist/index202.js +1149 -128
  68. package/dist/index204.js +5933 -13
  69. package/dist/index205.js +205 -76
  70. package/dist/index206.js +28 -246
  71. package/dist/index207.js +14 -13680
  72. package/dist/index208.js +77 -26
  73. package/dist/index209.js +245 -55
  74. package/dist/index21.js +2 -2
  75. package/dist/index210.js +13655 -209
  76. package/dist/index211.js +26 -310
  77. package/dist/index212.js +43 -277
  78. package/dist/index213.js +231 -81
  79. package/dist/index214.js +291 -387
  80. package/dist/index215.js +296 -21
  81. package/dist/index219.js +2 -2
  82. package/dist/index22.js +2 -2
  83. package/dist/index220.js +1 -1
  84. package/dist/index222.js +4 -4
  85. package/dist/index224.js +1 -1
  86. package/dist/index225.js +1 -1
  87. package/dist/index226.js +1 -1
  88. package/dist/index227.js +4 -4
  89. package/dist/index229.js +1 -1
  90. package/dist/index23.js +2 -2
  91. package/dist/index230.js +84 -157
  92. package/dist/index231.js +384 -205
  93. package/dist/index232.js +22 -37
  94. package/dist/index233.js +160 -9
  95. package/dist/index234.js +223 -156
  96. package/dist/index235.js +36 -19
  97. package/dist/index236.js +10 -20
  98. package/dist/index237.js +126 -21
  99. package/dist/index238.js +22 -183
  100. package/dist/index239.js +79 -69
  101. package/dist/index24.js +2 -2
  102. package/dist/index240.js +20 -34
  103. package/dist/index241.js +19 -39
  104. package/dist/index242.js +12 -14
  105. package/dist/index243.js +12 -14
  106. package/dist/index244.js +11 -11
  107. package/dist/index245.js +120 -795
  108. package/dist/index246.js +19 -701
  109. package/dist/index247.js +22 -176
  110. package/dist/index248.js +198 -19
  111. package/dist/index249.js +68 -18
  112. package/dist/index250.js +34 -22
  113. package/dist/index251.js +39 -19
  114. package/dist/index252.js +253 -20
  115. package/dist/index253.js +8 -3
  116. package/dist/index254.js +124 -173
  117. package/dist/index255.js +80 -130
  118. package/dist/index256.js +2 -1223
  119. package/dist/index257.js +57 -105
  120. package/dist/index258.js +13 -11
  121. package/dist/index259.js +11 -11
  122. package/dist/index26.js +2 -2
  123. package/dist/index260.js +11 -13
  124. package/dist/index261.js +819 -21
  125. package/dist/index262.js +701 -28
  126. package/dist/index263.js +176 -20
  127. package/dist/index264.js +14 -12
  128. package/dist/index265.js +20 -2
  129. package/dist/index266.js +20 -2
  130. package/dist/index267.js +3 -80
  131. package/dist/index268.js +186 -19
  132. package/dist/index269.js +132 -19
  133. package/dist/index27.js +2 -2
  134. package/dist/index270.js +1185 -215
  135. package/dist/index271.js +20 -8
  136. package/dist/index272.js +22 -138
  137. package/dist/index273.js +22 -83
  138. package/dist/index274.js +29 -3709
  139. package/dist/index275.js +20 -60
  140. package/dist/index276.js +20 -83
  141. package/dist/index277.js +2 -52
  142. package/dist/index278.js +2 -215
  143. package/dist/index279.js +3708 -9
  144. package/dist/index28.js +2 -2
  145. package/dist/index280.js +42 -39
  146. package/dist/index281.js +65 -43
  147. package/dist/index282.js +34 -36
  148. package/dist/index283.js +184 -50
  149. package/dist/index284.js +9 -727
  150. package/dist/index285.js +38 -28
  151. package/dist/index286.js +44 -47
  152. package/dist/index287.js +53 -10
  153. package/dist/index288.js +71 -695
  154. package/dist/index289.js +711 -803
  155. package/dist/index29.js +2 -2
  156. package/dist/index290.js +44 -51
  157. package/dist/index291.js +62 -77
  158. package/dist/index292.js +11 -26
  159. package/dist/index293.js +705 -22
  160. package/dist/index294.js +820 -22
  161. package/dist/index295.js +52 -14
  162. package/dist/index296.js +26 -17
  163. package/dist/index297.js +22 -23
  164. package/dist/index298.js +22 -3
  165. package/dist/index299.js +16 -27
  166. package/dist/index3.js +2 -2
  167. package/dist/index30.js +2 -2
  168. package/dist/index300.js +17 -2
  169. package/dist/index301.js +21 -77
  170. package/dist/index302.js +3 -22
  171. package/dist/index303.js +24 -932
  172. package/dist/index304.js +57 -21
  173. package/dist/index305.js +36 -19
  174. package/dist/index306.js +234 -19
  175. package/dist/index307.js +5 -68
  176. package/dist/index308.js +133 -18
  177. package/dist/index309.js +68 -19
  178. package/dist/index31.js +3 -3
  179. package/dist/index310.js +85 -20
  180. package/dist/index311.js +28 -21
  181. package/dist/index312.js +8 -62
  182. package/dist/index313.js +64 -1523
  183. package/dist/index314.js +3 -385
  184. package/dist/index315.js +2 -2731
  185. package/dist/index316.js +77 -80
  186. package/dist/index317.js +53 -3797
  187. package/dist/index318.js +4 -58
  188. package/dist/index319.js +5 -15
  189. package/dist/index32.js +2 -2
  190. package/dist/index320.js +166 -71
  191. package/dist/index321.js +57 -196
  192. package/dist/index322.js +75 -246
  193. package/dist/index323.js +1534 -37
  194. package/dist/index324.js +366 -215
  195. package/dist/index325.js +2729 -4
  196. package/dist/index326.js +83 -131
  197. package/dist/index327.js +3796 -66
  198. package/dist/index328.js +56 -83
  199. package/dist/index329.js +15 -29
  200. package/dist/index33.js +2 -2
  201. package/dist/index330.js +83 -8
  202. package/dist/index331.js +191 -64
  203. package/dist/index332.js +245 -3
  204. package/dist/index333.js +79 -2
  205. package/dist/index334.js +21 -82
  206. package/dist/index335.js +930 -49
  207. package/dist/index336.js +21 -5
  208. package/dist/index337.js +19 -4
  209. package/dist/index338.js +19 -178
  210. package/dist/index339.js +67 -61
  211. package/dist/index34.js +2 -2
  212. package/dist/index340.js +18 -74
  213. package/dist/index341.js +19 -9
  214. package/dist/index342.js +21 -12
  215. package/dist/index343.js +21 -54
  216. package/dist/index344.js +63 -12
  217. package/dist/index345.js +126 -11
  218. package/dist/index346.js +393 -52
  219. package/dist/index347.js +8 -51
  220. package/dist/index348.js +12 -30
  221. package/dist/index349.js +55 -2
  222. package/dist/index35.js +2 -2
  223. package/dist/index350.js +12 -5
  224. package/dist/index351.js +14 -2
  225. package/dist/index352.js +57 -22
  226. package/dist/index353.js +50 -39
  227. package/dist/index354.js +31 -2
  228. package/dist/index355.js +2 -11
  229. package/dist/index356.js +5 -20
  230. package/dist/index357.js +2 -10
  231. package/dist/index358.js +22 -9
  232. package/dist/index359.js +38 -14
  233. package/dist/index36.js +2 -2
  234. package/dist/index360.js +2 -2
  235. package/dist/index361.js +10 -8
  236. package/dist/index362.js +19 -9
  237. package/dist/index363.js +9 -13
  238. package/dist/index364.js +10 -20
  239. package/dist/index365.js +16 -19
  240. package/dist/index366.js +2 -64
  241. package/dist/index367.js +9 -37
  242. package/dist/index368.js +9 -20
  243. package/dist/index369.js +14 -56
  244. package/dist/index37.js +2 -2
  245. package/dist/index370.js +18 -26
  246. package/dist/index371.js +55 -6
  247. package/dist/index372.js +28 -51
  248. package/dist/index373.js +7 -6
  249. package/dist/index374.js +51 -11
  250. package/dist/index375.js +5 -6
  251. package/dist/index376.js +12 -28
  252. package/dist/index377.js +7 -2
  253. package/dist/index378.js +27 -69
  254. package/dist/index379.js +2 -167
  255. package/dist/index38.js +2 -2
  256. package/dist/index380.js +70 -17
  257. package/dist/index381.js +165 -99
  258. package/dist/index382.js +19 -90
  259. package/dist/index383.js +20 -98
  260. package/dist/index384.js +63 -12
  261. package/dist/index385.js +37 -7
  262. package/dist/index386.js +131 -28
  263. package/dist/index387.js +30 -10
  264. package/dist/index388.js +10 -3
  265. package/dist/index389.js +3 -3
  266. package/dist/index39.js +2 -2
  267. package/dist/index390.js +3 -11
  268. package/dist/index391.js +13 -5
  269. package/dist/index392.js +7 -33
  270. package/dist/index393.js +11 -30
  271. package/dist/index394.js +5 -28
  272. package/dist/index395.js +33 -61
  273. package/dist/index396.js +31 -3
  274. package/dist/index397.js +28 -2
  275. package/dist/index398.js +61 -2
  276. package/dist/index399.js +100 -16
  277. package/dist/index4.js +2 -2
  278. package/dist/index40.js +2 -2
  279. package/dist/index400.js +90 -12
  280. package/dist/index401.js +98 -6
  281. package/dist/index402.js +16 -31
  282. package/dist/index403.js +448 -0
  283. package/dist/index404.js +128 -0
  284. package/dist/index405.js +5 -0
  285. package/dist/index406.js +4 -0
  286. package/dist/index407.js +4 -0
  287. package/dist/index408.js +19 -0
  288. package/dist/index409.js +15 -0
  289. package/dist/index41.js +2 -2
  290. package/dist/index410.js +8 -0
  291. package/dist/index411.js +34 -0
  292. package/dist/index42.js +4 -29
  293. package/dist/index43.js +25 -32
  294. package/dist/index44.js +32 -37
  295. package/dist/index45.js +37 -1391
  296. package/dist/index46.js +1350 -348
  297. package/dist/index47.js +367 -145
  298. package/dist/index48.js +155 -18
  299. package/dist/index49.js +16 -42
  300. package/dist/index5.js +2 -2
  301. package/dist/index50.js +45 -5
  302. package/dist/index51.js +5 -69
  303. package/dist/index52.js +67 -61
  304. package/dist/index53.js +57 -175
  305. package/dist/index54.js +173 -77
  306. package/dist/index55.js +79 -200
  307. package/dist/index56.js +206 -68
  308. package/dist/index57.js +69 -20
  309. package/dist/index58.js +20 -11
  310. package/dist/index59.js +10 -6
  311. package/dist/index6.js +2 -2
  312. package/dist/index60.js +5 -209
  313. package/dist/index61.js +210 -12
  314. package/dist/index62.js +12 -184
  315. package/dist/index63.js +176 -68
  316. package/dist/index64.js +79 -0
  317. package/dist/index66.js +7 -91
  318. package/dist/index67.js +93 -0
  319. package/dist/index7.js +2 -2
  320. package/dist/{index74.js → index75.js} +2 -2
  321. package/dist/index79.js +38 -395
  322. package/dist/index8.js +3 -3
  323. package/dist/index80.js +419 -0
  324. package/dist/{index83.js → index84.js} +4 -4
  325. package/dist/{index85.js → index86.js} +1 -1
  326. package/dist/index88.js +23 -143
  327. package/dist/index89.js +156 -0
  328. package/dist/index9.js +2 -2
  329. package/dist/{index90.js → index91.js} +5 -5
  330. package/dist/{index92.js → index93.js} +5 -5
  331. package/dist/{index98.js → index99.js} +4 -4
  332. package/dist/src/components/popper/popper.vue.d.ts +90 -0
  333. package/dist/src/components/popper/use-popper.d.ts +37 -0
  334. package/dist/src/index.d.ts +1 -0
  335. package/package.json +2 -1
  336. package/dist/index100.js +0 -29
  337. package/dist/index105.js +0 -149
  338. package/dist/index157.js +0 -588
  339. package/dist/index162.js +0 -120
  340. package/dist/index169.js +0 -210
  341. package/dist/index173.js +0 -497
  342. package/dist/index174.js +0 -5524
  343. package/dist/index190.js +0 -20
  344. package/dist/index203.js +0 -37
  345. package/dist/index65.js +0 -9
  346. package/dist/index78.js +0 -62
  347. package/dist/index87.js +0 -36
  348. package/dist/src/components/room-details-popover/room-details-popover.d.ts +0 -2167
  349. /package/dist/{index121.js → index122.js} +0 -0
  350. /package/dist/{index123.js → index124.js} +0 -0
  351. /package/dist/{index125.js → index126.js} +0 -0
  352. /package/dist/{index127.js → index128.js} +0 -0
  353. /package/dist/{index129.js → index130.js} +0 -0
  354. /package/dist/{index134.js → index135.js} +0 -0
  355. /package/dist/{index141.js → index144.js} +0 -0
  356. /package/dist/{index145.js → index148.js} +0 -0
  357. /package/dist/{index153.js → index156.js} +0 -0
  358. /package/dist/{index155.js → index158.js} +0 -0
  359. /package/dist/{index68.js → index69.js} +0 -0
  360. /package/dist/{index70.js → index71.js} +0 -0
  361. /package/dist/{index72.js → index73.js} +0 -0
  362. /package/dist/{index76.js → index77.js} +0 -0
  363. /package/dist/{index81.js → index82.js} +0 -0
  364. /package/dist/{index94.js → index95.js} +0 -0
  365. /package/dist/{index96.js → index97.js} +0 -0
package/dist/index45.js CHANGED
@@ -1,1398 +1,44 @@
1
- import M from "./index147.js";
2
- import { resolveComponent as g, openBlock as s, createElementBlock as i, createVNode as r, withCtx as d, createElementVNode as n, normalizeClass as u, toDisplayString as a, createCommentVNode as t, createBlock as y, Fragment as h, renderList as T, createTextVNode as k, withKeys as U, withModifiers as E, mergeProps as A, toHandlerKey as N, renderSlot as R } from "vue";
1
+ import o from "./index148.js";
2
+ import { openBlock as d, createElementBlock as s, Fragment as u, renderList as m, normalizeClass as p, createElementVNode as r, renderSlot as n, createTextVNode as b, toDisplayString as f } from "vue";
3
3
  /* empty css */
4
- import G from "./index65.js";
5
- const L = ["id"], z = ["id"], Y = ["id"], P = { class: "flex gap-3" }, B = {
4
+ import k from "./index66.js";
5
+ const c = ["id"], v = ["id", "value", "disabled", "checked", "name"], y = {
6
6
  key: 0,
7
- class: "animate-shimmer bg-gray-30 w-3/4 h-6 grow"
8
- }, K = {
9
- key: 0,
10
- class: "text-base text-inkwell-30"
11
- }, W = { key: 0 }, j = ["src", "alt"], Z = { key: 0 }, F = { key: 1 }, Q = ["href"], J = { class: "flex items-start" }, X = { class: "list-unstyled text-sm w-full font-normal" }, _ = { class: "grow" }, x = { class: "grow" }, ee = { class: "grow" }, oe = { class: "grow" }, le = { class: "position-relative icon-container ml-auto" }, se = {
12
- key: 0,
13
- class: "animate-shimmer bg-gray-10 w-full h-4 my-4"
14
- }, ie = {
15
- key: 1,
16
- class: "flex flex-wrap items-center mb-3 gap-2"
17
- }, te = ["src", "alt"], re = {
18
- key: 2,
19
- class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
20
- }, ne = {
21
- key: 3,
22
- class: "flex flex-wrap items-center mb-4"
23
- }, ae = ["href"], de = { class: "shrink-0 mr-2 text-sm font-normal" }, ue = {
24
- key: 0,
25
- class: "animate-shimmer bg-gray-10 w-full h-6"
26
- }, pe = {
27
- key: 1,
28
- class: "guest-info-container"
29
- }, me = {
30
- key: 0,
31
- class: "text-base text-inkwell-30 mb-2"
32
- }, ge = {
33
- key: 0,
34
- class: "flex gap-1 text-xs mb-2 stay-details-row"
35
- }, ye = { class: "text-truncate text-inkwell-0" }, ke = { class: "grow text-inkwell-30" }, he = {
36
- key: 1,
37
- class: "flex gap-1 text-xs mb-2 stay-details-row"
38
- }, ve = { class: "text-truncate text-inkwell-0" }, we = { class: "grow text-inkwell-30" }, fe = { class: "shrink-0 mr-2 text-sm font-normal" }, Te = {
39
- key: 0,
40
- class: "animate-shimmer bg-gray-30 w-full h-6"
41
- }, qe = {
7
+ class: "radio-text"
8
+ }, $ = {
42
9
  key: 1,
43
- class: "open-tickets"
44
- }, be = ["id"], Ce = {
45
- key: 2,
46
- class: "text-center mx-auto font-normal"
47
- }, ce = { class: "shrink-0 mr-2 text-sm font-normal" }, Oe = {
48
- key: 0,
49
- class: "animate-shimmer bg-gray-30 w-full h-6"
50
- }, Ee = {
51
- key: 1,
52
- class: "activity-list"
53
- }, Se = { class: "shrink-0 mr-2 text-sm font-normal" }, $e = {
54
- key: 0,
55
- class: "quick-replies"
56
- }, De = ["onClick"], Ve = {
57
- key: 1,
58
- class: "text-inkwell-0 text-xxs text-center"
59
- }, He = { class: "chat-container" }, Ue = {
60
- id: "comments-container",
61
- class: "chat-messages"
62
- }, Ne = {
63
- key: 0,
64
- class: "flex flex-col gap-3 p-2"
65
- }, Ie = {
66
- key: 0,
67
- class: "chat-separator"
68
- }, Me = { class: "chat-separator-text" }, Ae = {
69
- key: 0,
70
- class: "chat-message-avatar"
71
- }, Re = { class: "chat-message-content" }, Ge = { class: "chat-message-time" }, Le = { class: "chat-message-bubble" }, ze = {
72
- key: 1,
73
- class: "chat-message-avatar"
74
- }, Ye = {
75
- key: 2,
76
- class: "chat-empty text-center py-4 text-inkwell-0 text-sm"
77
- }, Pe = {
78
- key: 0,
79
- class: "simulate-panel"
80
- }, Be = { class: "simulate-panel-header" }, Ke = { class: "simulate-panel-body" }, We = { class: "flex justify-end mt-2" }, je = { class: "chat-input-area" }, Ze = { class: "flex items-center gap-2" }, Fe = {
81
- key: 0,
82
- class: "inline-block animate-pulse"
83
- }, Qe = { class: "relative flex-1 min-w-0" }, Je = ["innerHTML"], Xe = { class: "flex items-center add-ticket-divider" }, _e = { class: "grow flex items-center text-sm font-normal" }, xe = {
84
- key: 0,
85
- class: "grow"
86
- }, eo = { class: "grid grid-cols-2 gap-3" }, oo = { class: "field" }, lo = {
87
- key: 0,
88
- class: "field"
89
- }, so = {
90
- key: 1,
91
- class: "field"
92
- }, io = {
93
- key: 2,
94
- class: "field"
95
- }, to = {
96
- key: 3,
97
- class: "field"
98
- }, ro = {
99
- key: 4,
100
- class: "field"
101
- }, no = {
102
- key: 5,
103
- class: "field col-span-2"
104
- }, ao = {
105
- key: 6,
106
- class: "field"
107
- }, uo = {
108
- key: 7,
109
- class: "field col-span-2"
110
- }, po = {
111
- key: 8,
112
- class: "field"
113
- }, mo = {
114
- key: 9,
115
- class: "field"
116
- }, go = {
117
- key: 10,
118
- class: "field"
119
- }, yo = {
120
- key: 11,
121
- class: "field"
122
- }, ko = {
123
- key: 12,
124
- class: "field"
125
- }, ho = {
126
- key: 13,
127
- class: "field"
128
- }, vo = {
129
- key: 14,
130
- class: "field col-span-2"
131
- }, wo = {
132
- key: 15,
133
- class: "field"
134
- }, fo = {
135
- key: 16,
136
- class: "field"
137
- }, To = {
138
- key: 17,
139
- class: "field"
140
- }, qo = {
141
- key: 18,
142
- class: "field"
143
- }, bo = {
144
- key: 19,
145
- class: "field"
146
- }, Co = {
147
- key: 20,
148
- class: "field"
149
- }, co = {
150
- key: 21,
151
- class: "field col-span-2"
152
- }, Oo = {
153
- key: 22,
154
- class: "field"
155
- }, Eo = {
156
- key: 23,
157
- class: "field"
158
- }, So = {
159
- key: 24,
160
- class: "field"
161
- }, $o = {
162
- key: 25,
163
- class: "field"
164
- }, Do = {
165
- key: 26,
166
- class: "field"
167
- }, Vo = {
168
- key: 27,
169
- class: "field"
170
- }, Ho = {
171
- key: 28,
172
- class: "field"
173
- }, Uo = {
174
- key: 29,
175
- class: "field col-span-2"
176
- }, No = {
177
- class: /* @__PURE__ */ u([
178
- "actions flex-shrink-0",
179
- "flex items-center justify-between mt-4"
180
- ])
181
- }, Io = {
182
- key: 4,
183
- class: "animate-shimmer bg-gray-30 w-full h-4 my-4"
184
- }, Mo = {
185
- key: 5,
186
- class: "flex items-center mt-0.5"
187
- }, Ao = { class: "text-xs text-inkwell-0 font-normal" };
188
- function Ro(e, l, Go, Lo, zo, Yo) {
189
- const p = g("q-icon"), q = g("q-tooltip"), S = g("q-tag"), $ = g("q-popover"), b = g("q-divider"), C = g("q-accordion"), D = g("q-activity-item"), V = g("q-avatar"), v = g("q-textarea"), c = g("q-button"), m = g("q-select"), w = g("q-date-picker"), H = g("q-time-picker"), O = g("q-input");
190
- return e.showActionMenu || e.showComments || e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] || e.showTickets || e.tagsList.length ? (s(), i("div", {
191
- key: 0,
192
- id: e.id ? `rdp-${e.id}` : "",
193
- class: "room-detail component-container text-inkwell-30",
194
- onMouseleave: l[58] || (l[58] = (o) => e.onHoverToggle(!1))
10
+ class: "radio-text"
11
+ };
12
+ function h(e, a, C, g, S, B) {
13
+ return d(), s("div", {
14
+ id: e.id,
15
+ class: "control"
195
16
  }, [
196
- r($, {
197
- "model-value": e.open,
198
- align: e.alignment,
199
- position: e.positioning,
200
- size: (!e.showTickets || e.showTickets && (!e.ticketsList || !e.ticketsList.length)) && !e.showComments && !e.showActionMenu ? "sm" : e.size,
201
- teleport: e.teleport,
202
- "teleport-to": e.teleportTo,
203
- "close-on-scroll-out-of-view": e.closeOnScrollOutOfView,
204
- "scroll-into-view": e.scrollIntoView,
205
- "scroll-into-view-padding": e.scrollIntoViewPadding,
206
- onClose: l[56] || (l[56] = (o) => e.$emit("toggle", !1)),
207
- "onUpdate:modelValue": l[57] || (l[57] = (o) => e.$emit("toggle", o))
208
- }, {
209
- trigger: d(() => [
210
- n("div", A({
211
- ref: "trigger",
212
- id: e.id ? `rdp-${e.id}-trigger` : "",
213
- class: "trigger-text"
214
- }, {
215
- [N(!e.hover && "click")]: l[0] || (l[0] = (o) => e.$emit("toggle", !e.open))
216
- }, {
217
- [N(e.hover && "mouseover")]: l[1] || (l[1] = (o) => e.onHoverToggle(!0))
218
- }), [
219
- R(e.$slots, "trigger", {}, () => [
220
- k(a(e.trigger), 1)
221
- ])
222
- ], 16, z)
223
- ]),
224
- content: d(() => [
225
- n("div", {
226
- id: e.id ? `rdp-${e.id}-content` : "",
227
- class: "popover-content w-full font-weight-normal cursor-default"
228
- }, [
229
- n("div", P, [
230
- e.loading.pms || e.loading.roomNotices ? (s(), i("div", B)) : (s(), i("div", {
231
- key: 1,
232
- class: u([
233
- "flex grow items-center mb-4",
234
- { "gap-3": e.showRoomName }
235
- ])
236
- }, [
237
- e.showRoomName ? (s(), i("h2", K, [
238
- n("strong", null, a(e.$t("HC_GUESTROOM")) + " " + a(e.room.name), 1)
239
- ])) : t("", !0),
240
- (e.occupied || e.cleanliness || e.isGreenerStay || e.tagsList.length && !e.showRoomName) && e.size !== "sm" ? (s(), i("div", {
241
- key: 1,
242
- class: u([
243
- "flex items-center flex-wrap gap-x-2",
244
- { "gap-y-3": !e.showRoomName }
245
- ])
246
- }, [
247
- e.occupied ? (s(), y(q, {
248
- key: 0,
249
- class: "flex shrink-0 items-center"
250
- }, {
251
- trigger: d(() => [
252
- r(p, {
253
- icon: "user",
254
- type: "fill",
255
- color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
256
- width: "18",
257
- height: "18",
258
- "custom-size": ""
259
- }, null, 8, ["color"])
260
- ]),
261
- content: d(() => [
262
- e.occupancyTooltipContent ? (s(), i("div", W, a(e.$t(e.occupancyTooltipContent)), 1)) : t("", !0)
263
- ]),
264
- _: 1
265
- })) : t("", !0),
266
- e.cleanliness === "DIRTY" || e.isGreenerStay && e.greenerStayIconUrl ? (s(), y(q, {
267
- key: 1,
268
- class: "flex shrink-0 items-center"
269
- }, {
270
- trigger: d(() => [
271
- e.isGreenerStay && e.greenerStayIconUrl ? (s(), i("img", {
272
- key: 0,
273
- src: e.greenerStayIconUrl,
274
- alt: e.greenerStayTooltipContent,
275
- class: "mt-[0.0612rem] h-[18px] w-[18px]"
276
- }, null, 8, j)) : e.cleanliness ? (s(), y(p, {
277
- key: 1,
278
- icon: "spray-bottle",
279
- type: "fill",
280
- color: "red-10",
281
- class: "mt-[0.0612rem]",
282
- width: "18",
283
- height: "18",
284
- "custom-size": ""
285
- })) : t("", !0)
286
- ]),
287
- content: d(() => [
288
- e.isGreenerStay ? (s(), i("div", Z, a(e.greenerStayTooltipContent), 1)) : e.cleanliness === "DIRTY" ? (s(), i("div", F, a(e.$t("HC_DIRTY")), 1)) : t("", !0)
289
- ]),
290
- _: 1
291
- })) : t("", !0),
292
- e.tagsList.length && !e.showRoomName ? (s(!0), i(h, { key: 2 }, T(e.tagsList, (o) => (s(), i("a", {
293
- key: o,
294
- href: typeof o == "object" && o.id && o.name ? `/rooms-book/room-notices?id=${o.id}` : "",
295
- target: "_blank",
296
- class: "capitalize"
297
- }, [
298
- r(S, {
299
- class: u([
300
- "!text-xs !leading-4",
301
- "shrink-0 max-w-[100px] !h-auto",
302
- "!py-[0.1875rem] !px-[0.4375rem] border",
303
- "border-orange-10",
304
- { pulse: o.isNew }
305
- ]),
306
- "bg-color": "bg-yellow-0",
307
- "text-color": "text-inkwell-30"
308
- }, {
309
- default: d(() => [
310
- k(a(typeof o == "object" && o.id && o.name ? o.name : o), 1)
311
- ]),
312
- _: 2
313
- }, 1032, ["class"])
314
- ], 8, Q))), 128)) : t("", !0)
315
- ], 2)) : t("", !0)
316
- ], 2)),
317
- n("div", J, [
318
- e.showActionMenu && (e.showActionsLink || !e.hasGuestCallback && e.showGuestCallback || e.showComments || e.showGuestDetails) ? (s(), y($, {
319
- key: 0,
320
- modelValue: e.actionMenuOpen,
321
- "onUpdate:modelValue": l[7] || (l[7] = (o) => e.actionMenuOpen = o),
322
- "has-caret": !1,
323
- align: "right",
324
- class: "action-menu mr-1",
325
- size: "md",
326
- onClose: l[8] || (l[8] = (o) => e.actionMenuOpen = !1)
327
- }, {
328
- trigger: d(() => [
329
- r(p, {
330
- class: "popover-action rounded-full cursor-pointer",
331
- icon: "ellipsis-h",
332
- size: "md",
333
- type: "fill",
334
- color: "inkwell-10",
335
- onClick: l[2] || (l[2] = (o) => e.actionMenuOpen = !e.actionMenuOpen)
336
- })
337
- ]),
338
- content: d(() => [
339
- n("ul", X, [
340
- e.showActionsLink ? (s(), i("li", {
341
- key: 0,
342
- class: u([
343
- "flex items-center",
344
- "icon-container cursor-pointer",
345
- "text-inkwell-30 px-2 py-1 mt-2",
346
- {
347
- "mb-2": !e.showGuestDetails && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
348
- }
349
- ]),
350
- onClick: l[3] || (l[3] = (...o) => e.openRequest && e.openRequest(...o))
351
- }, [
352
- r(p, {
353
- class: "shrink-0 mr-1 p-1",
354
- color: "inkwell-10",
355
- icon: "plus",
356
- size: "md",
357
- type: ""
358
- }),
359
- n("div", _, a(e.$t("HC_ACTION")), 1)
360
- ], 2)) : t("", !0),
361
- !e.hasGuestCallback && e.showGuestCallback ? (s(), i("li", {
362
- key: 1,
363
- class: u([
364
- "flex items-center",
365
- "icon-container cursor-pointer",
366
- "text-inkwell-30 px-2 py-1",
367
- {
368
- "mb-2": !e.showGuestDetails && !e.showComments
369
- },
370
- { "mt-2": !e.showActionsLink }
371
- ]),
372
- onClick: l[4] || (l[4] = (...o) => e.createCallback && e.createCallback(...o))
373
- }, [
374
- r(p, {
375
- class: "shrink-0 mr-1 p-0.5",
376
- color: "inkwell-10",
377
- icon: "phone",
378
- size: "md",
379
- type: "fill"
380
- }),
381
- n("div", x, a(e.$t(
382
- "HC_GUEST_CALLBACK"
383
- )), 1)
384
- ], 2)) : t("", !0),
385
- e.showComments ? (s(), i("li", {
386
- key: 2,
387
- class: u([
388
- "flex items-center",
389
- "icon-container cursor-pointer",
390
- "text-inkwell-30 px-2 py-1",
391
- { "mb-2": !e.showGuestDetails },
392
- {
393
- "mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback)
394
- }
395
- ]),
396
- onClick: l[5] || (l[5] = (...o) => e.onClickEditConnectGuest && e.onClickEditConnectGuest(...o))
397
- }, [
398
- r(p, {
399
- class: "shrink-0 mr-1 p-1",
400
- color: "inkwell-10",
401
- icon: "pencil",
402
- size: "md",
403
- type: "fill"
404
- }),
405
- n("div", ee, a(e.$t("HC_EDIT_INFORMATION")), 1)
406
- ], 2)) : t("", !0),
407
- e.showGuestDetails ? (s(), i("li", {
408
- key: 3,
409
- class: u([
410
- "flex items-center",
411
- "icon-container cursor-pointer",
412
- "text-inkwell-30 px-2 py-1 mb-2",
413
- {
414
- "mt-2": !e.showActionsLink && (e.hasGuestCallback || !e.showGuestCallback) && !e.showComments
415
- }
416
- ]),
417
- onClick: l[6] || (l[6] = (...o) => e.refreshPMSData && e.refreshPMSData(...o))
418
- }, [
419
- r(p, {
420
- class: "shrink-0 mr-1 p-1",
421
- color: "inkwell-10",
422
- icon: "refresh",
423
- size: "md",
424
- type: ""
425
- }),
426
- n("div", oe, a(e.$t("HC_REFRESH_PMS_DATA")), 1)
427
- ], 2)) : t("", !0)
428
- ])
429
- ]),
430
- _: 1
431
- }, 8, ["modelValue"])) : t("", !0),
432
- n("div", le, [
433
- r(q, { teleport: "" }, {
434
- trigger: d(() => [
435
- r(p, {
436
- icon: "close",
437
- color: "inkwell-10",
438
- size: "md",
439
- type: "",
440
- class: "popover-action rounded-full cursor-pointer p-1",
441
- onClick: l[9] || (l[9] = (o) => e.$emit("toggle", !1))
442
- })
443
- ]),
444
- content: d(() => [
445
- k(a(e.$t("HC_CLOSE")), 1)
446
- ]),
447
- _: 1
448
- })
449
- ])
450
- ])
451
- ]),
452
- e.loading.pms && e.size === "sm" ? (s(), i("div", se)) : !e.loading.pms && (e.occupied || e.cleanliness) && e.size === "sm" ? (s(), i("div", ie, [
453
- e.occupied ? (s(), y(p, {
454
- key: 0,
455
- icon: "user",
456
- type: "fill",
457
- color: e.occupied && e.hasComplaint ? "red-10" : "gray-30",
458
- width: "18",
459
- height: "18",
460
- "custom-size": ""
461
- }, null, 8, ["color"])) : t("", !0),
462
- e.isGreenerStay && e.greenerStayIconUrl ? (s(), i("img", {
463
- key: 1,
464
- src: e.greenerStayIconUrl,
465
- alt: e.greenerStayTooltipContent,
466
- class: "h-[18px] w-[18px]"
467
- }, null, 8, te)) : e.cleanliness === "DIRTY" ? (s(), y(p, {
468
- key: 2,
469
- icon: "spray-bottle",
470
- type: "fill",
471
- color: "red-10",
472
- width: "18",
473
- height: "18",
474
- "custom-size": ""
475
- })) : t("", !0)
476
- ])) : t("", !0),
477
- e.loading.roomNotices ? (s(), i("div", re)) : !e.loading.roomNotices && e.tagsList.length && e.showRoomName ? (s(), i("div", ne, [
478
- (s(!0), i(h, null, T(e.tagsList, (o) => (s(), i("a", {
479
- key: o,
480
- href: typeof o == "object" && o.id && o.name ? `/rooms-book/room-notices?id=${o.id}` : "",
481
- target: "_blank",
482
- class: "mr-2 mb-1 capitalize"
483
- }, [
484
- r(q, { position: "bottom" }, {
485
- trigger: d(() => [
486
- r(S, {
487
- class: u([
488
- "!text-tiny !leading-4",
489
- "shrink-0 max-w-[100px] !h-auto",
490
- "!py-0.5 !px-1.5 border",
491
- "border-orange-10",
492
- { pulse: o.isNew }
493
- ]),
494
- "bg-color": "bg-yellow-0",
495
- "text-color": "text-inkwell-30"
496
- }, {
497
- default: d(() => [
498
- k(a(typeof o == "object" && o.id && o.name ? o.name : o), 1)
499
- ]),
500
- _: 2
501
- }, 1032, ["class"])
502
- ]),
503
- content: d(() => [
504
- k(a(e.$t("HC_VIEW_DETAILS")), 1)
505
- ]),
506
- _: 2
507
- }, 1024)
508
- ], 8, ae))), 128))
509
- ])) : t("", !0),
510
- n("div", {
511
- class: u(["accordions", { closed: e.showCreateRequest }])
512
- }, [
513
- e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] ? (s(), y(C, {
514
- key: 0,
515
- modelValue: e.expandGuestInfo,
516
- "onUpdate:modelValue": l[11] || (l[11] = (o) => e.expandGuestInfo = o),
517
- class: "mb-3",
518
- "content-class": "!px-0 !pt-3 !pb-0"
519
- }, {
520
- toggle: d(() => [
521
- n("div", {
522
- class: "flex items-center cursor-pointer",
523
- onClick: l[10] || (l[10] = (o) => e.expandGuestInfo = !e.expandGuestInfo)
524
- }, [
525
- n("div", de, a(e.$t("HC_GUEST_INFORMATION")), 1),
526
- r(b, { class: "grow" }),
527
- r(p, {
528
- class: u([
529
- "ml-2 transition-transform",
530
- { "rotate-90": e.expandGuestInfo }
531
- ]),
532
- color: e.expandGuestInfo ? "inkwell-30" : "gray-30",
533
- icon: "chevron-right",
534
- type: ""
535
- }, null, 8, ["class", "color"])
536
- ])
537
- ]),
538
- content: d(() => [
539
- e.loading.pms ? (s(), i("div", ue)) : (s(), i("div", pe, [
540
- e.roomDetailsData.reservations[0].guestName ? (s(), i("p", me, [
541
- n("strong", null, a(e.roomDetailsData.reservations[0].guestName), 1)
542
- ])) : t("", !0),
543
- n("div", {
544
- class: u([
545
- "stay-details-container flex",
546
- e.size === "sm" ? "flex-col" : "flex-row gap-3"
547
- ])
548
- }, [
549
- e.roomDetailsData.reservations[0].confirmationNumber ? (s(), i("div", ge, [
550
- n("div", ye, a(e.$t("HC_RESERVATION")) + ": ", 1),
551
- n("div", ke, a(e.roomDetailsData.reservations[0].confirmationNumber), 1)
552
- ])) : t("", !0),
553
- e.stayDetails ? (s(), i("div", he, [
554
- n("div", ve, a(e.$t("HC_STAY")) + ": ", 1),
555
- n("div", we, a(e.stayDetails), 1)
556
- ])) : t("", !0)
557
- ], 2)
558
- ]))
559
- ]),
560
- _: 1
561
- }, 8, ["modelValue"])) : t("", !0),
562
- e.showTickets ? (s(), y(C, {
563
- key: 1,
564
- modelValue: e.expandTickets,
565
- "onUpdate:modelValue": l[13] || (l[13] = (o) => e.expandTickets = o),
566
- class: "mb-3",
567
- "content-class": "!px-0 !pt-3 !pb-0"
568
- }, {
569
- toggle: d(() => [
570
- n("div", {
571
- class: "flex items-center cursor-pointer",
572
- onClick: l[12] || (l[12] = (o) => e.expandTickets = !e.expandTickets)
573
- }, [
574
- n("div", fe, a(e.$t("HC_OPEN_TICKETS")), 1),
575
- r(b, { class: "grow" }),
576
- r(p, {
577
- class: u([
578
- "ml-2 transition-transform",
579
- { "rotate-90": e.expandTickets }
580
- ]),
581
- color: e.expandTickets ? "inkwell-30" : "gray-30",
582
- icon: "chevron-right",
583
- type: ""
584
- }, null, 8, ["class", "color"])
585
- ])
586
- ]),
587
- content: d(() => [
588
- e.loading.tickets ? (s(), i("div", Te)) : e.ticketsList.length ? (s(), i("ul", qe, [
589
- (s(!0), i(h, null, T(e.ticketsList, (o, f) => (s(), i("li", {
590
- key: o.id,
591
- id: `open-ticket-${o.id}`
592
- }, [
593
- r(D, {
594
- class: u([
595
- {
596
- "mt-3": f > 0,
597
- pulse: o.isNew
598
- }
599
- ]),
600
- "is-clickable": !0,
601
- text: o.name,
602
- time: e.getHowLongAgo(
603
- o.started?.dateUtc
604
- ),
605
- type: o.type,
606
- onClick: (I) => e.onClickTicket(o)
607
- }, null, 8, ["class", "text", "time", "type", "onClick"])
608
- ], 8, be))), 128))
609
- ])) : (s(), i("p", Ce, a(e.$t("HC_THERE_ARE_NO_OPEN_TICKETS_YET")), 1))
610
- ]),
611
- _: 1
612
- }, 8, ["modelValue"])) : t("", !0),
613
- e.showActivity && (e.loading.activity || e.activityList.length) ? (s(), y(C, {
614
- key: 2,
615
- modelValue: e.expandActivity,
616
- "onUpdate:modelValue": l[15] || (l[15] = (o) => e.expandActivity = o),
617
- class: "mb-3",
618
- "content-class": "!px-0 !pt-3 !pb-0"
619
- }, {
620
- toggle: d(() => [
621
- n("div", {
622
- class: "flex items-center cursor-pointer",
623
- onClick: l[14] || (l[14] = (o) => e.expandActivity = !e.expandActivity)
624
- }, [
625
- n("div", ce, a(e.$t("HC_ACTIVITY")), 1),
626
- r(b, { class: "grow" }),
627
- r(p, {
628
- class: u([
629
- "ml-2 transition-transform",
630
- { "rotate-90": e.expandActivity }
631
- ]),
632
- color: e.expandActivity ? "inkwell-30" : "gray-30",
633
- icon: "chevron-right",
634
- type: ""
635
- }, null, 8, ["class", "color"])
636
- ])
637
- ]),
638
- content: d(() => [
639
- e.loading.activity ? (s(), i("div", Oe)) : e.activityList.length ? (s(), i("ul", Ee, [
640
- (s(!0), i(h, null, T(e.activityList, (o, f) => (s(), i("li", {
641
- key: o.id
642
- }, [
643
- r(D, {
644
- class: u({ "mt-3": f > 0 }),
645
- "is-clickable": !0,
646
- text: o.statusName + " by " + o.inspector.name,
647
- time: e.getHowLongAgo(
648
- o.completed?.dateUtc
649
- ),
650
- type: "cleaning",
651
- onClick: (I) => e.onClickActivity(o)
652
- }, null, 8, ["class", "text", "time", "onClick"])
653
- ]))), 128))
654
- ])) : t("", !0)
655
- ]),
656
- _: 1
657
- }, 8, ["modelValue"])) : t("", !0),
658
- e.showComments ? (s(), y(C, {
659
- key: 3,
660
- modelValue: e.expandComments,
661
- "onUpdate:modelValue": l[21] || (l[21] = (o) => e.expandComments = o),
662
- class: "messages mb-3",
663
- "content-class": "!px-0 !pt-3 !pb-0"
664
- }, {
665
- toggle: d(() => [
666
- n("div", {
667
- class: "flex items-center cursor-pointer",
668
- onClick: l[16] || (l[16] = (o) => e.expandComments = !e.expandComments)
669
- }, [
670
- n("div", Se, a(e.$t("HC_GUEST_CONNECT")), 1),
671
- r(b, { class: "grow" }),
672
- r(p, {
673
- class: u([
674
- "ml-2 transition-transform",
675
- { "rotate-90": e.expandComments }
676
- ]),
677
- color: e.expandComments ? "inkwell-30" : "gray-30",
678
- icon: "chevron-right",
679
- type: ""
680
- }, null, 8, ["class", "color"])
681
- ])
682
- ]),
683
- content: d(() => [
684
- n("div", {
685
- class: u([
686
- "quick-replies-container",
687
- "flex flex-col",
688
- { show: e.quickReplyOpen },
689
- {
690
- "justify-end": !!e.filteredReplies.length
691
- },
692
- {
693
- "justify-center": !e.filteredReplies.length
694
- }
695
- ])
696
- }, [
697
- e.filteredReplies.length ? (s(), i("div", $e, [
698
- (s(!0), i(h, null, T(e.filteredReplies, (o) => (s(), i("div", {
699
- key: o,
700
- class: u([
701
- "quick-reply",
702
- { active: e.comment }
703
- ]),
704
- onClick: (f) => e.onSelectQuickReply(o)
705
- }, [
706
- n("div", null, a(o), 1)
707
- ], 10, De))), 128))
708
- ])) : (s(), i("div", Ve, a(e.$t("HC_NO_RESULTS_FOUND_FOR")) + ' "' + a(e.comment) + '". ', 1))
709
- ], 2),
710
- n("div", He, [
711
- n("div", Ue, [
712
- e.loading.messages ? (s(), i("div", Ne, [...l[59] || (l[59] = [
713
- n("div", { class: "flex gap-2 items-end" }, [
714
- n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" }),
715
- n("div", { class: "animate-shimmer bg-gray-10 h-12 w-3/4 rounded-lg" })
716
- ], -1),
717
- n("div", { class: "flex gap-2 items-end justify-end" }, [
718
- n("div", { class: "animate-shimmer bg-gray-10 h-10 w-2/3 rounded-lg" }),
719
- n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" })
720
- ], -1),
721
- n("div", { class: "flex gap-2 items-end" }, [
722
- n("div", { class: "animate-shimmer bg-gray-20 w-8 h-8 rounded-full shrink-0" }),
723
- n("div", { class: "animate-shimmer bg-gray-10 h-8 w-1/2 rounded-lg" })
724
- ], -1)
725
- ])])) : (s(!0), i(h, { key: 1 }, T(e.groupedMessages, (o, f) => (s(), i(h, { key: f }, [
726
- o.type === "separator" ? (s(), i("div", Ie, [
727
- n("span", Me, a(o.label), 1)
728
- ])) : (s(), i("div", {
729
- key: 1,
730
- class: u([
731
- "chat-message",
732
- {
733
- "chat-message--staff": o.isStaffMessage,
734
- "chat-message--guest": o.isGuestMessage
735
- }
736
- ])
737
- }, [
738
- o.isGuestMessage ? (s(), i("div", Ae, [
739
- r(q, { position: "top" }, {
740
- trigger: d(() => [
741
- r(V, {
742
- initials: o.user?.initials || "?",
743
- src: o.user?.src || "",
744
- size: "sm"
745
- }, null, 8, ["initials", "src"])
746
- ]),
747
- content: d(() => [
748
- k(a(o.user?.name || e.$t("HC_GUEST")), 1)
749
- ]),
750
- _: 2
751
- }, 1024)
752
- ])) : t("", !0),
753
- n("div", Re, [
754
- n("div", Ge, a(o.formattedTime), 1),
755
- n("div", Le, a(o.comment), 1)
756
- ]),
757
- o.isStaffMessage ? (s(), i("div", ze, [
758
- r(V, { size: "sm" }, {
759
- default: d(() => [
760
- r(p, {
761
- icon: "building",
762
- size: "sm",
763
- color: "gray-30",
764
- type: "fill"
765
- })
766
- ]),
767
- _: 1
768
- })
769
- ])) : t("", !0)
770
- ], 2))
771
- ], 64))), 128)),
772
- !e.loading.messages && !e.groupedMessages.length ? (s(), i("div", Ye, a(e.$t("HC_NO_MESSAGES_YET")), 1)) : t("", !0)
773
- ]),
774
- e.isTestEnvironment && e.simulateOpen ? (s(), i("div", Pe, [
775
- n("div", Be, [
776
- l[60] || (l[60] = n("span", { class: "simulate-badge" }, "TEST", -1)),
777
- n("span", null, a(e.$t("HC_SIMULATE_GUEST_REPLY")), 1),
778
- r(p, {
779
- icon: "close",
780
- size: "sm",
781
- class: "cursor-pointer ml-auto",
782
- onClick: e.toggleSimulateOpen
783
- }, null, 8, ["onClick"])
784
- ]),
785
- n("div", Ke, [
786
- r(v, {
787
- id: "simulate-content",
788
- modelValue: e.simulateContent,
789
- "onUpdate:modelValue": l[17] || (l[17] = (o) => e.simulateContent = o),
790
- placeholder: e.$t("HC_ENTER_SIMULATED_MESSAGE"),
791
- "textarea-class": "text-sm border-gray-12 w-full",
792
- "control-class": "w-full",
793
- rows: 2,
794
- onKeydown: U(E(e.simulateGuestReply, ["prevent"]), ["enter"])
795
- }, null, 8, ["modelValue", "placeholder", "onKeydown"]),
796
- n("div", We, [
797
- r(c, {
798
- disabled: !e.simulateContent.trim() || e.simulateLoading,
799
- loading: e.simulateLoading,
800
- size: "xsm",
801
- class: "simulate-send-btn",
802
- onClick: e.simulateGuestReply
803
- }, {
804
- default: d(() => [
805
- k(a(e.$t("HC_SEND")), 1)
806
- ]),
807
- _: 1
808
- }, 8, ["disabled", "loading", "onClick"])
809
- ])
810
- ])
811
- ])) : t("", !0),
812
- n("div", je, [
813
- n("div", Ze, [
814
- e.messages.length > 0 ? (s(), i("div", {
815
- key: 0,
816
- class: u([
817
- "text-xs px-2 py-1 rounded shrink-0",
818
- "border border-gray-12",
819
- e.loading.conversationToggle ? "opacity-50 cursor-wait" : "cursor-pointer hover:bg-gray-5",
820
- { hide: e.quickReplyOpen || e.simulateOpen }
821
- ]),
822
- onClick: l[18] || (l[18] = (o) => !e.loading.conversationToggle && e.toggleMarkOpenClose())
823
- }, [
824
- e.loading.conversationToggle ? (s(), i("span", Fe, "...")) : (s(), i(h, { key: 1 }, [
825
- k(a(e.$t(
826
- e.isConversationOpen ? "HC_CLOSE" : "HC_OPEN"
827
- )), 1)
828
- ], 64))
829
- ], 2)) : t("", !0),
830
- e.isTestEnvironment && e.roomDetailsData?.tokenId ? (s(), i("div", {
831
- key: 1,
832
- class: u([
833
- "cursor-pointer text-xs px-2 py-1 rounded shrink-0",
834
- "border hover:bg-orange-5",
835
- e.simulateOpen ? "border-orange-20 bg-orange-5" : "border-orange-10",
836
- { hide: e.quickReplyOpen }
837
- ]),
838
- style: { color: "#e67e22" },
839
- onClick: l[19] || (l[19] = (...o) => e.toggleSimulateOpen && e.toggleSimulateOpen(...o))
840
- }, a(e.$t("HC_SIMULATE")), 3)) : t("", !0),
841
- n("div", Qe, [
842
- r(v, {
843
- id: "comment-field",
844
- modelValue: e.comment,
845
- "onUpdate:modelValue": l[20] || (l[20] = (o) => e.comment = o),
846
- "textarea-class": "text-sm pr-5 border-gray-12 w-full",
847
- placeholder: e.quickReplyOpen ? e.$t("HC_SEARCH_REPLIES") : e.$t("HC_WRITE_A_MESSAGE"),
848
- rows: 1,
849
- "control-class": "w-full",
850
- onKeydown: U(e.sendChatMessage, ["enter"])
851
- }, null, 8, ["modelValue", "placeholder", "onKeydown"]),
852
- n("div", {
853
- id: "hidden-text",
854
- class: "text-sm",
855
- innerHTML: e.comment
856
- }, null, 8, Je),
857
- r(p, {
858
- id: "quick-reply-trigger",
859
- icon: "comment-lines",
860
- class: "cursor-pointer !absolute top-1/2 -translate-y-1/2 mb-1",
861
- color: e.quickReplyOpen ? "blue-20" : "inkwell-0",
862
- size: "sm",
863
- type: e.quickReplyOpen ? "fill" : "outline",
864
- onClick: e.toggleQuickReply
865
- }, null, 8, ["color", "type", "onClick"]),
866
- r(c, {
867
- id: "send-comment",
868
- disabled: !e.comment || e.quickReplyOpen || e.loading.sendingMessage,
869
- loading: e.loading.sendingMessage,
870
- "use-loading-spinner": !0,
871
- class: "!absolute top-1/2 -translate-y-1/2 px-2 mr-2 !text-sm",
872
- size: "xsm",
873
- status: "link",
874
- onClick: e.sendChatMessage
875
- }, {
876
- default: d(() => [
877
- k(a(e.$t("HC_SEND")), 1)
878
- ]),
879
- _: 1
880
- }, 8, ["disabled", "loading", "onClick"])
881
- ])
882
- ])
883
- ])
884
- ])
885
- ]),
886
- _: 1
887
- }, 8, ["modelValue"])) : t("", !0)
888
- ], 2),
889
- n("div", {
890
- id: "add-ticket",
891
- class: u([
892
- "add-ticket",
893
- {
894
- "overflow-hidden": !e.showCreateRequest,
895
- open: e.showCreateRequest
896
- }
897
- ])
898
- }, [
899
- r(b, {
900
- class: "text-base section-header mb-3",
901
- align: "left",
902
- color: "inkwell-30"
903
- }, {
904
- default: d(() => [
905
- n("div", Xe, [
906
- n("div", _e, a(e.$t("HC_ACTION")), 1)
907
- ])
908
- ]),
909
- _: 1
910
- }),
911
- n("form", {
912
- class: "flex flex-col",
913
- onSubmit: l[55] || (l[55] = E((...o) => e.onCreateRequestSubmit && e.onCreateRequestSubmit(...o), ["prevent"]))
914
- }, [
915
- e.showCreateRequest ? (s(), i("div", xe, [
916
- n("div", eo, [
917
- n("div", oo, [
918
- r(m, {
919
- id: "todo-type",
920
- "model-value": e.requestType,
921
- options: e.todoOptions,
922
- placeholder: e.$t("HC_ACTION_TYPE"),
923
- "floating-label": "",
924
- required: "",
925
- "onUpdate:modelValue": l[22] || (l[22] = (o) => e.onSelectToDo(o))
926
- }, null, 8, ["model-value", "options", "placeholder"])
927
- ]),
928
- e.requestType && e.requestType.id === "room_notice" ? (s(), i("div", lo, [
929
- r(m, {
930
- id: "todo-notice-issue",
931
- "model-value": e.roomNotice.issue,
932
- options: e.itemOptionsList,
933
- disabled: !e.itemOptionsList.length && !e.loading.actionItems,
934
- loading: e.loading.actionItems,
935
- placeholder: e.$t("HC_ITEM"),
936
- "floating-label": "",
937
- required: "",
938
- "onUpdate:modelValue": l[23] || (l[23] = (o) => e.roomNotice.issue = o)
939
- }, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
940
- ])) : t("", !0),
941
- e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", so, [
942
- r(w, {
943
- id: "todo-notice-start-date",
944
- "model-value": e.roomNotice.startDate,
945
- "is-today-min": !0,
946
- "property-timezone": e.propertyTimeZone,
947
- locale: e.locale,
948
- placeholder: e.$t("HC_START_DATE"),
949
- format: "DD-MMM-YYYY",
950
- "calendar-classes": "mt-0",
951
- class: "icon-right",
952
- "input-classes": "datepicker-md text-inkwell-40",
953
- "wrapper-classes": "ui-overhaul",
954
- "floating-label": "",
955
- required: "",
956
- "onUpdate:modelValue": l[24] || (l[24] = (o) => e.roomNotice.startDate = o)
957
- }, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
958
- ])) : t("", !0),
959
- e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", io, [
960
- r(w, {
961
- id: "todo-notice-end-date",
962
- "model-value": e.roomNotice.endDate,
963
- "is-today-min": !0,
964
- "minimum-date": e.roomNotice.startDate,
965
- "property-timezone": e.propertyTimeZone,
966
- locale: e.locale,
967
- placeholder: e.$t("HC_END_DATE"),
968
- format: "DD-MMM-YYYY",
969
- "calendar-classes": "mt-0",
970
- class: "icon-right",
971
- "input-classes": "datepicker-md text-inkwell-40",
972
- "wrapper-classes": "ui-overhaul",
973
- "floating-label": "",
974
- required: "",
975
- "onUpdate:modelValue": l[25] || (l[25] = (o) => e.roomNotice.endDate = o)
976
- }, null, 8, ["model-value", "minimum-date", "property-timezone", "locale", "placeholder"])
977
- ])) : t("", !0),
978
- e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", to, [
979
- r(H, {
980
- id: "todo-notice-start-time",
981
- "model-value": e.roomNotice.startTime,
982
- placeholder: e.$t("HC_START_TIME"),
983
- step: 15,
984
- timezone: e.propertyTimeZone,
985
- clearable: "",
986
- "show-now": "",
987
- "onUpdate:modelValue": l[26] || (l[26] = (o) => e.roomNotice.startTime = o)
988
- }, null, 8, ["model-value", "placeholder", "timezone"])
989
- ])) : t("", !0),
990
- e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", ro, [
991
- r(H, {
992
- id: "todo-notice-end-time",
993
- "model-value": e.roomNotice.endTime,
994
- placeholder: e.$t("HC_END_TIME"),
995
- step: 15,
996
- timezone: e.propertyTimeZone,
997
- clearable: "",
998
- "onUpdate:modelValue": l[27] || (l[27] = (o) => e.roomNotice.endTime = o)
999
- }, null, 8, ["model-value", "placeholder", "timezone"])
1000
- ])) : t("", !0),
1001
- e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", no, [
1002
- r(v, {
1003
- id: "todo-notice-notes",
1004
- modelValue: e.roomNotice.notes,
1005
- "onUpdate:modelValue": l[28] || (l[28] = (o) => e.roomNotice.notes = o),
1006
- placeholder: e.$t("HC_WRITE_A_MESSAGE"),
1007
- "textarea-class": "text-inkwell-30 border-gray-12 mb-2",
1008
- "control-class": "w-full",
1009
- rows: 2,
1010
- "floating-label": ""
1011
- }, null, 8, ["modelValue", "placeholder"])
1012
- ])) : t("", !0),
1013
- e.requestType && e.requestType.id === "complaint" ? (s(), i("div", ao, [
1014
- r(m, {
1015
- id: "todo-complaint-problem",
1016
- "model-value": e.complaint.problem,
1017
- options: e.itemOptionsList,
1018
- disabled: !e.itemOptionsList.length && !e.loading.actionItems,
1019
- loading: e.loading.actionItems,
1020
- multiple: !1,
1021
- placeholder: e.$t("HC_PROBLEM"),
1022
- "floating-label": "",
1023
- required: "",
1024
- "onUpdate:modelValue": l[29] || (l[29] = (o) => e.complaint.problem = o)
1025
- }, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
1026
- ])) : t("", !0),
1027
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", uo, [
1028
- r(O, {
1029
- id: "guest-name",
1030
- modelValue: e.complaint.guestName,
1031
- "onUpdate:modelValue": l[30] || (l[30] = (o) => e.complaint.guestName = o),
1032
- placeholder: e.$t("HC_GUEST_NAME"),
1033
- "control-class": "w-full",
1034
- classes: "text-inkwell-30 border-gray-12 ui-overhaul",
1035
- "floating-label": "",
1036
- required: ""
1037
- }, null, 8, ["modelValue", "placeholder"])
1038
- ])) : t("", !0),
1039
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", po, [
1040
- r(O, {
1041
- id: "guest-phone",
1042
- modelValue: e.complaint.guestPhone,
1043
- "onUpdate:modelValue": l[31] || (l[31] = (o) => e.complaint.guestPhone = o),
1044
- placeholder: e.$t("HC_GUEST_PHONE_NUMBER"),
1045
- classes: "text-inkwell-40 border-gray-12 ui-overhaul",
1046
- "floating-label": ""
1047
- }, null, 8, ["modelValue", "placeholder"])
1048
- ])) : t("", !0),
1049
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", mo, [
1050
- r(O, {
1051
- id: "guest-email",
1052
- modelValue: e.complaint.guestEmail,
1053
- "onUpdate:modelValue": l[32] || (l[32] = (o) => e.complaint.guestEmail = o),
1054
- placeholder: e.$t("HC_GUEST_EMAIL"),
1055
- classes: "text-inkwell-40 border-gray-12 ui-overhaul",
1056
- "floating-label": ""
1057
- }, null, 8, ["modelValue", "placeholder"])
1058
- ])) : t("", !0),
1059
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", go, [
1060
- r(O, {
1061
- id: "guest-loyalty",
1062
- modelValue: e.complaint.guestLoyalty,
1063
- "onUpdate:modelValue": l[33] || (l[33] = (o) => e.complaint.guestLoyalty = o),
1064
- placeholder: e.$t("HC_GUEST_LOYALTY"),
1065
- classes: "text-inkwell-40 border-gray-12 ui-overhaul",
1066
- "floating-label": ""
1067
- }, null, 8, ["modelValue", "placeholder"])
1068
- ])) : t("", !0),
1069
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", yo, [
1070
- r(m, {
1071
- id: "todo-complaint-mood",
1072
- "model-value": e.complaint.guestMood,
1073
- options: e.moodOptions,
1074
- disabled: !e.moodOptions.length,
1075
- placeholder: e.$t("HC_GUEST_MOOD"),
1076
- "floating-label": "",
1077
- required: "",
1078
- "onUpdate:modelValue": l[34] || (l[34] = (o) => e.complaint.guestMood = o)
1079
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])
1080
- ])) : t("", !0),
1081
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", ko, [
1082
- r(w, {
1083
- id: "todo-complaint-check-in",
1084
- "model-value": e.complaint.checkInDate,
1085
- "is-today-min": !1,
1086
- "property-timezone": e.propertyTimeZone,
1087
- locale: e.locale,
1088
- placeholder: e.$t("HC_CHECK_IN_DATE"),
1089
- format: "DD-MMM-YYYY",
1090
- "calendar-classes": "mt-0",
1091
- class: "icon-right",
1092
- "input-classes": "datepicker-md text-inkwell-40",
1093
- "wrapper-classes": "ui-overhaul",
1094
- "floating-label": "",
1095
- required: "",
1096
- "onUpdate:modelValue": l[35] || (l[35] = (o) => e.complaint.checkInDate = o)
1097
- }, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
1098
- ])) : t("", !0),
1099
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", ho, [
1100
- r(w, {
1101
- id: "todo-complaint-check-out",
1102
- "model-value": e.complaint.checkOutDate,
1103
- "is-today-min": !1,
1104
- "minimum-date": e.complaint.checkInDate,
1105
- "property-timezone": e.propertyTimeZone,
1106
- locale: e.locale,
1107
- placeholder: e.$t("HC_CHECK_OUT_DATE"),
1108
- format: "DD-MMM-YYYY",
1109
- "calendar-classes": "mt-0",
1110
- class: "icon-right",
1111
- "input-classes": "datepicker-md text-inkwell-40",
1112
- "wrapper-classes": "ui-overhaul",
1113
- "floating-label": "",
1114
- required: "",
1115
- "onUpdate:modelValue": l[36] || (l[36] = (o) => e.complaint.checkOutDate = o)
1116
- }, null, 8, ["model-value", "minimum-date", "property-timezone", "locale", "placeholder"])
1117
- ])) : t("", !0),
1118
- e.requestType && e.requestType.id === "complaint" && e.complaint.problem ? (s(), i("div", vo, [
1119
- r(v, {
1120
- id: "todo-complaint-notes",
1121
- modelValue: e.complaint.notes,
1122
- "onUpdate:modelValue": l[37] || (l[37] = (o) => e.complaint.notes = o),
1123
- placeholder: e.$t("HC_WRITE_A_MESSAGE"),
1124
- "textarea-class": "text-inkwell-30 border-gray-12 mb-2",
1125
- "control-class": "w-full",
1126
- rows: 2,
1127
- "floating-label": ""
1128
- }, null, 8, ["modelValue", "placeholder"])
1129
- ])) : t("", !0),
1130
- e.requestType && e.requestType.id === "work_order" ? (s(), i("div", wo, [
1131
- r(m, {
1132
- id: "todo-work-order-item",
1133
- "model-value": e.workOrder.item,
1134
- options: e.itemOptionsList,
1135
- disabled: !e.itemOptionsList.length && !e.loading.actionItems,
1136
- loading: e.loading.actionItems,
1137
- "group-selectable": !1,
1138
- placeholder: e.$t("HC_ITEM"),
1139
- "group-label": "group",
1140
- "group-values": "options",
1141
- "floating-label": "",
1142
- required: "",
1143
- "onUpdate:modelValue": l[38] || (l[38] = (o) => e.workOrder.item = o)
1144
- }, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
1145
- ])) : t("", !0),
1146
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item ? (s(), i("div", fo, [
1147
- r(m, {
1148
- id: "todo-work-order-issue",
1149
- "model-value": e.workOrder.issue,
1150
- options: e.workOrderIssues,
1151
- disabled: !e.workOrderIssues.length,
1152
- placeholder: e.$t("HC_ISSUE"),
1153
- "floating-label": "",
1154
- required: "",
1155
- "onUpdate:modelValue": l[39] || (l[39] = (o) => e.workOrder.issue = o)
1156
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])
1157
- ])) : t("", !0),
1158
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (s(), i("div", To, [
1159
- r(m, {
1160
- id: "todo-work-order-requested-by",
1161
- "model-value": e.workOrder.requestedBy,
1162
- options: e.requestedByOptions,
1163
- placeholder: e.$t("HC_REQUESTED_BY"),
1164
- "floating-label": "",
1165
- required: "",
1166
- "onUpdate:modelValue": l[40] || (l[40] = (o) => e.workOrder.requestedBy = o)
1167
- }, null, 8, ["model-value", "options", "placeholder"])
1168
- ])) : t("", !0),
1169
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (s(), i("div", qo, [
1170
- r(m, {
1171
- id: "todo-work-order-assign-type",
1172
- "model-value": e.workOrder.assignType,
1173
- options: e.assignTypes,
1174
- placeholder: e.$t("HC_ASSIGN_TYPE"),
1175
- "floating-label": "",
1176
- required: "",
1177
- "onUpdate:modelValue": l[41] || (l[41] = (o) => e.workOrder.assignType = o)
1178
- }, null, 8, ["model-value", "options", "placeholder"])
1179
- ])) : t("", !0),
1180
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (s(), i("div", bo, [
1181
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 1 ? (s(), y(m, {
1182
- key: 0,
1183
- id: "todo-work-order-assign-to",
1184
- "model-value": e.workOrder.department,
1185
- options: e.departments,
1186
- disabled: !e.departments.length,
1187
- placeholder: e.$t("HC_ASSIGN_TO"),
1188
- "floating-label": "",
1189
- required: "",
1190
- "onUpdate:modelValue": l[42] || (l[42] = (o) => e.workOrder.department = o)
1191
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0),
1192
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue && e.workOrder.assignType && e.workOrder.assignType.id === 2 ? (s(), y(m, {
1193
- key: 1,
1194
- id: "todo-work-order-assign-to",
1195
- "model-value": e.workOrder.person,
1196
- options: e.departmentUsers,
1197
- disabled: !e.departmentUsers.length,
1198
- "group-selectable": !1,
1199
- placeholder: e.$t("HC_ASSIGN_TO"),
1200
- "group-label": "group",
1201
- "group-values": "options",
1202
- "floating-label": "",
1203
- required: "",
1204
- "onUpdate:modelValue": l[43] || (l[43] = (o) => e.workOrder.person = o)
1205
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0)
1206
- ])) : t("", !0),
1207
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (s(), i("div", Co, [
1208
- r(w, {
1209
- id: "todo-work-order-due",
1210
- "model-value": e.workOrder.due,
1211
- "is-today-min": !0,
1212
- "property-timezone": e.propertyTimeZone,
1213
- locale: e.locale,
1214
- placeholder: e.$t("HC_DUE_DATE"),
1215
- format: "DD-MMM-YYYY",
1216
- "calendar-classes": "mt-0",
1217
- class: "icon-right",
1218
- "input-classes": "datepicker-md text-inkwell-40",
1219
- "wrapper-classes": "ui-overhaul",
1220
- "floating-label": "",
1221
- required: "",
1222
- "onUpdate:modelValue": l[44] || (l[44] = (o) => e.workOrder.due = o)
1223
- }, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
1224
- ])) : t("", !0),
1225
- e.requestType && e.requestType.id === "work_order" && e.workOrder.item && e.workOrder.issue ? (s(), i("div", co, [
1226
- r(v, {
1227
- id: "todo-work-order-notes",
1228
- modelValue: e.workOrder.notes,
1229
- "onUpdate:modelValue": l[45] || (l[45] = (o) => e.workOrder.notes = o),
1230
- placeholder: e.$t("HC_WRITE_A_MESSAGE"),
1231
- "textarea-class": "text-inkwell-30 border-gray-12 mb-2",
1232
- "control-class": "w-full",
1233
- rows: 2,
1234
- "floating-label": ""
1235
- }, null, 8, ["modelValue", "placeholder"])
1236
- ])) : t("", !0),
1237
- e.requestType && e.requestType.id === "request" ? (s(), i("div", Oo, [
1238
- r(m, {
1239
- id: "todo-request-item",
1240
- "model-value": e.request.item,
1241
- options: e.itemOptionsList,
1242
- disabled: !e.itemOptionsList.length && !e.loading.actionItems,
1243
- loading: e.loading.actionItems,
1244
- placeholder: e.$t("HC_ITEM"),
1245
- "floating-label": "",
1246
- required: "",
1247
- "onUpdate:modelValue": l[46] || (l[46] = (o) => e.request.item = o)
1248
- }, null, 8, ["model-value", "options", "disabled", "loading", "placeholder"])
1249
- ])) : t("", !0),
1250
- e.requestType && e.requestType.id === "request" && e.request.item ? (s(), i("div", Eo, [
1251
- r(m, {
1252
- id: "todo-request-requested-by",
1253
- "model-value": e.request.requestedBy,
1254
- options: e.requestedByOptions,
1255
- placeholder: e.$t("HC_REQUESTED_BY"),
1256
- "floating-label": "",
1257
- required: "",
1258
- "onUpdate:modelValue": l[47] || (l[47] = (o) => e.request.requestedBy = o)
1259
- }, null, 8, ["model-value", "options", "placeholder"])
1260
- ])) : t("", !0),
1261
- e.requestType && e.requestType.id === "request" && e.request.item ? (s(), i("div", So, [
1262
- r(w, {
1263
- id: "todo-request-due",
1264
- "model-value": e.request.due,
1265
- "is-today-min": !0,
1266
- "property-timezone": e.propertyTimeZone,
1267
- locale: e.locale,
1268
- placeholder: e.$t("HC_DUE_DATE"),
1269
- format: "DD-MMM-YYYY",
1270
- "calendar-classes": "mt-0",
1271
- class: "icon-right",
1272
- "input-classes": "datepicker-md text-inkwell-40",
1273
- "wrapper-classes": "ui-overhaul",
1274
- "floating-label": "",
1275
- required: "",
1276
- "onUpdate:modelValue": l[48] || (l[48] = (o) => e.request.due = o)
1277
- }, null, 8, ["model-value", "property-timezone", "locale", "placeholder"])
1278
- ])) : t("", !0),
1279
- e.requestType && e.requestType.id === "request" && e.request.item ? (s(), i("div", $o, [
1280
- r(m, {
1281
- id: "todo-request-assign-type",
1282
- "model-value": e.request.assignType,
1283
- options: e.assignTypes,
1284
- placeholder: e.$t("HC_ASSIGN_TYPE"),
1285
- "floating-label": "",
1286
- required: "",
1287
- "onUpdate:modelValue": l[49] || (l[49] = (o) => e.request.assignType = o)
1288
- }, null, 8, ["model-value", "options", "placeholder"])
1289
- ])) : t("", !0),
1290
- e.requestType && e.requestType.id === "request" && e.request.item ? (s(), i("div", Do, [
1291
- e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 1 ? (s(), y(m, {
1292
- key: 0,
1293
- id: "todo-request-assign-to",
1294
- "model-value": e.request.department,
1295
- options: e.departments,
1296
- disabled: !e.departments.length,
1297
- placeholder: e.$t("HC_ASSIGN_TO"),
1298
- "floating-label": "",
1299
- required: "",
1300
- "onUpdate:modelValue": l[50] || (l[50] = (o) => e.request.department = o)
1301
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0),
1302
- e.requestType && e.requestType.id === "request" && e.request.item && e.request.assignType && e.request.assignType.id === 2 ? (s(), y(m, {
1303
- key: 1,
1304
- id: "todo-request-assign-to",
1305
- "model-value": e.request.person,
1306
- options: e.departmentUsers,
1307
- disabled: !e.departmentUsers.length,
1308
- "group-selectable": !1,
1309
- placeholder: e.$t("HC_ASSIGN_TO"),
1310
- "group-label": "group",
1311
- "group-values": "options",
1312
- "floating-label": "",
1313
- required: "",
1314
- "onUpdate:modelValue": l[51] || (l[51] = (o) => e.request.person = o)
1315
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : t("", !0)
1316
- ])) : t("", !0),
1317
- e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (s(), i("div", Vo, [
1318
- r(m, {
1319
- id: "todo-request-when",
1320
- "model-value": e.request.when,
1321
- options: e.whenOptions,
1322
- disabled: !e.whenOptions.length,
1323
- placeholder: e.$t("HC_SELECT_WHEN"),
1324
- "floating-label": "",
1325
- "onUpdate:modelValue": l[52] || (l[52] = (o) => e.request.when = o)
1326
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])
1327
- ])) : t("", !0),
1328
- e.requestType && e.requestType.id === "request" && e.request.item && e.allowWhenWhere ? (s(), i("div", Ho, [
1329
- r(m, {
1330
- id: "todo-request-where",
1331
- "model-value": e.request.where,
1332
- options: e.whereOptions,
1333
- disabled: !e.whereOptions.length,
1334
- placeholder: e.$t("HC_SELECT_WHERE"),
1335
- "floating-label": "",
1336
- "onUpdate:modelValue": l[53] || (l[53] = (o) => e.request.where = o)
1337
- }, null, 8, ["model-value", "options", "disabled", "placeholder"])
1338
- ])) : t("", !0),
1339
- e.requestType && e.requestType.id === "request" && e.request.item ? (s(), i("div", Uo, [
1340
- r(v, {
1341
- id: "todo-request-notes",
1342
- modelValue: e.request.notes,
1343
- "onUpdate:modelValue": l[54] || (l[54] = (o) => e.request.notes = o),
1344
- placeholder: e.$t("HC_WRITE_A_MESSAGE"),
1345
- "textarea-class": "text-inkwell-30 border-gray-12 mb-2",
1346
- "control-class": "w-full",
1347
- rows: 2,
1348
- "floating-label": ""
1349
- }, null, 8, ["modelValue", "placeholder"])
1350
- ])) : t("", !0)
1351
- ])
1352
- ])) : t("", !0),
1353
- n("div", No, [
1354
- r(c, {
1355
- status: "secondary",
1356
- onClick: E(e.closeRequest, ["prevent"])
1357
- }, {
1358
- default: d(() => [
1359
- k(a(e.$t("HC_BACK")), 1)
1360
- ]),
1361
- _: 1
1362
- }, 8, ["onClick"]),
1363
- r(c, {
1364
- disabled: !e.validateToDo,
1365
- loading: e.requestLoading,
1366
- "use-loading-spinner": !0,
1367
- onClick: e.onCreateRequestSubmit
1368
- }, {
1369
- default: d(() => [
1370
- k(a(e.$t("HC_POST")), 1)
1371
- ]),
1372
- _: 1
1373
- }, 8, ["disabled", "loading", "onClick"])
1374
- ])
1375
- ], 32)
1376
- ], 2),
1377
- e.loading.pms ? (s(), i("div", Io)) : !e.loading.pms && e.roomDetailsData.updatedAt ? (s(), i("div", Mo, [
1378
- r(p, {
1379
- class: "flex-shrink-1 mr-2",
1380
- size: "sm",
1381
- color: "inkwell-0",
1382
- icon: "clock-alarm",
1383
- type: "outline"
1384
- }),
1385
- n("p", Ao, a(e.$t("HC_PMS_UPDATED")) + " " + a(e.DateTime.fromISO(
1386
- e.roomDetailsData.updatedAt
1387
- ).toRelative({ locale: e.locale })), 1)
1388
- ])) : t("", !0)
1389
- ], 8, Y)
1390
- ]),
1391
- _: 3
1392
- }, 8, ["model-value", "align", "position", "size", "teleport", "teleport-to", "close-on-scroll-out-of-view", "scroll-into-view", "scroll-into-view-padding"])
1393
- ], 40, L)) : t("", !0);
17
+ (d(!0), s(u, null, m(e.options, (l, i) => (d(), s("label", {
18
+ key: i,
19
+ class: p(["radio", { disabled: e.disabled }, { "is-inline": e.inline }, e.getLabelClasses(l, i)])
20
+ }, [
21
+ r("input", {
22
+ id: e.id + "-option-" + i,
23
+ value: l.value,
24
+ disabled: e.disabled,
25
+ checked: e.isSelected(l.value),
26
+ name: e.name,
27
+ type: "radio",
28
+ onClick: a[0] || (a[0] = (...t) => e.handleClick && e.handleClick(...t))
29
+ }, null, 8, v),
30
+ a[1] || (a[1] = r("span", { class: "radio-display" }, null, -1)),
31
+ l.value !== void 0 && (l.label || l.name) ? (d(), s("p", y, [
32
+ n(e.$slots, "label", { item: l }, () => [
33
+ b(f(e.getOptionText(l)), 1)
34
+ ], !0)
35
+ ])) : (d(), s("p", $, [
36
+ n(e.$slots, "default", {}, void 0, !0)
37
+ ]))
38
+ ], 2))), 128))
39
+ ], 8, c);
1394
40
  }
1395
- const jo = /* @__PURE__ */ G(M, [["render", Ro]]);
41
+ const V = /* @__PURE__ */ k(o, [["render", h], ["__scopeId", "data-v-202db926"]]);
1396
42
  export {
1397
- jo as default
43
+ V as default
1398
44
  };