@quoreadmin/ui 1.9.2 → 1.10.0

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