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