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