@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/index44.js CHANGED
@@ -1,371 +1,1307 @@
1
- import V from "./index142.js";
2
- import { resolveComponent as b, createElementBlock as a, openBlock as s, normalizeClass as i, createVNode as h, createCommentVNode as n, createSlots as $, withCtx as d, createElementVNode as t, createBlock as g, renderSlot as f, normalizeProps as C, mergeProps as v, toDisplayString as o, withModifiers as k, Fragment as T, renderList as q, createTextVNode as c } from "vue";
1
+ import U from "./index141.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";
3
3
  /* empty css */
4
- import E from "./index62.js";
5
- const O = ["id"], R = ["onMousedown"], z = {
4
+ import I from "./index63.js";
5
+ const A = ["id"], G = ["id"], L = ["id"], z = { class: "flex gap-3" }, Y = {
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 = {
6
15
  key: 1,
7
- class: "searchable-placeholder"
8
- }, A = {
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 = {
9
24
  key: 0,
10
- class: "required-indicator"
11
- }, D = { class: "flex gap-2 px-4 py-3" }, j = { class: "required-indicator" }, P = {
25
+ class: "animate-shimmer bg-gray-10 w-full h-6"
26
+ }, te = {
27
+ key: 1,
28
+ class: "guest-info-container"
29
+ }, re = {
12
30
  key: 0,
13
- class: "tag-container"
14
- }, F = { key: 0 }, H = {
15
- class: /* @__PURE__ */ i([
16
- "tag-name text-sm leading-normal pr-2 capitalize"
17
- ])
18
- }, I = { key: 1 }, U = ["onClick"], B = {
31
+ class: "text-base text-inkwell-30 mb-2"
32
+ }, ne = {
19
33
  key: 0,
20
- class: "text-blue-20 text-xs count"
21
- }, M = {
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 = {
22
39
  key: 0,
23
- class: "text-inkwell-10 text-right truncate font-normal"
24
- }, N = {
40
+ class: "animate-shimmer bg-gray-30 w-full h-6"
41
+ }, ke = {
25
42
  key: 1,
26
- class: "text-blue-20 text-xs shrink-0 text-nowrap"
27
- }, Q = { class: "text-inkwell-40" }, G = { class: "text-inkwell-10 text-right truncate" }, K = {
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 = {
28
51
  key: 1,
29
- class: "option-selected text-gray-40 truncate"
30
- }, J = {
31
- key: 3,
32
- class: "flex w-full justify-between"
33
- }, W = { class: "text-inkwell-40 pl-1 text-base font-medium" }, X = ["title"], Y = {
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 = {
34
69
  key: 2,
35
- class: "option-description text-xs pt-0.5 truncate"
36
- }, Z = {
70
+ class: "chat-empty text-center py-4 text-inkwell-0 text-sm"
71
+ }, Ue = {
37
72
  key: 0,
38
- class: "floating-label"
39
- }, _ = { class: "label-text" }, x = {
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 = {
40
75
  key: 0,
41
- class: "required-indicator"
42
- };
43
- function ee(e, u, le, se, oe, ne) {
44
- const p = b("q-icon"), y = b("q-button"), L = b("q-badge"), S = b("vue-multiselect");
45
- return s(), a("div", {
46
- id: e.id + "-containers",
47
- class: i([
48
- "control custom-select",
49
- { "has-floating-label": e.floatingLabel },
50
- { "label-floated": e.isLabelFloated },
51
- { "dropdown-open": e.isOpened }
52
- ]),
53
- ref: "currentContainer"
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))
54
183
  }, [
55
- h(S, {
56
- id: e.id,
57
- ref: "currentSelect",
58
- modelValue: e.selected,
59
- "onUpdate:modelValue": [
60
- u[1] || (u[1] = (l) => e.selected = l),
61
- u[4] || (u[4] = (l) => e.onUpdateValue(l))
62
- ],
63
- "filtering-sort-func": e.filterSortFunction,
64
- options: e.internalOptions,
65
- searchable: e.searchable,
66
- multiple: e.multiple,
67
- taggable: e.taggable || e.useAddTagsOnly,
68
- label: e.label,
69
- "track-by": e.trackBy,
70
- "group-values": e.groupValues,
71
- "group-label": e.groupLabel,
72
- "group-select": e.enableGroupSelect,
73
- "block-keys": e.blockKeys,
74
- class: i([
75
- { "has-checkboxes": e.hasCheckboxes },
76
- { "selection-control": e.selectionControl },
77
- { "select-multiple": !!e.multiple },
78
- { "select-taggable": !!e.taggable || !!e.showTags || !!e.useAddTagsOnly },
79
- { "select-expand": e.expand },
80
- { "select-show-count": !!e.showSelectedCount },
81
- { "select-search": !!e.search },
82
- { "select-searchable": e.searchable },
83
- e.searchable ? "cursor-text" : "cursor-default",
84
- "q-select rounded",
85
- // added q-select because of all the styling on style
86
- "select-" + e.size
87
- ]),
88
- disabled: e.disabled || e.loading,
89
- loading: e.loading,
90
- "allow-empty": e.allowEmpty,
91
- "clear-on-select": e.clearOnSelect,
92
- "close-on-select": e.closeOnSelect || !e.hasCheckboxes && !e.multiple,
93
- "show-tags": e.showTags,
94
- "tag-placeholder": e.noTagFound,
95
- placeholder: e.floatingLabel ? "" : e.placeholder,
96
- "preserve-search": !0,
97
- "reset-after": !1,
98
- "max-height": 280,
99
- "open-direction": e.openDirection,
100
- "select-label": "",
101
- "deselect-label": "",
102
- "selected-label": "",
103
- "select-group-label": "",
104
- "deselect-group-label": "",
105
- onOpen: e.onOpen,
106
- onClose: e.onClose,
107
- onRemove: u[2] || (u[2] = (l) => e.onRemove(l)),
108
- onTag: e.addTag,
109
- onSearchChange: u[3] || (u[3] = (l) => e.searchChange(l))
110
- }, $({
111
- caret: d(({ toggle: l }) => [
112
- t("div", {
113
- class: i([
114
- "h-full w-full",
115
- "absolute left-0 top-0",
116
- "z-[1] cursor-pointer",
117
- "flex justify-end"
118
- ]),
119
- onMousedown: k(l, ["prevent"])
120
- }, [
121
- e.loading ? n("", !0) : (s(), g(p, {
122
- key: 0,
123
- icon: "chevron-down",
124
- type: "line"
125
- }))
126
- ], 40, R),
127
- e.searchable ? (s(), g(p, {
128
- key: 0,
129
- class: "search-icon",
130
- color: e.selectionControl ? "inkwell-0" : "gray-40",
131
- icon: "search",
132
- type: ""
133
- }, null, 8, ["color"])) : n("", !0),
134
- e.searchable && (e.multiple && !e.selected.length || !e.multiple && !e.selected) && !e.selectionControl && !e.floatingLabel ? (s(), a("div", z, [
135
- c(o(e.placeholder), 1),
136
- e.required ? (s(), a("span", A, " *" + o(e.$t("HC_REQUIRED")), 1)) : n("", !0)
137
- ])) : n("", !0)
138
- ]),
139
- noResult: d(() => [
140
- c(o(e.noResultsText), 1)
141
- ]),
142
- noOptions: d(() => [
143
- c(o(e.noOptionsText), 1)
144
- ]),
145
- singleLabel: d(({ option: l }) => [
146
- l.icon ? (s(), g(p, {
147
- key: 0,
148
- icon: l.icon
149
- }, null, 8, ["icon"])) : n("", !0),
150
- l && e.showPlaceholderImage ? f(e.$slots, "optionPrefix", C(v({ key: 1 }, l)), void 0, !0) : n("", !0),
151
- e.selectionControl ? f(e.$slots, "controlPlaceholder", { key: 2 }, () => [
152
- c(o(e.placeholder), 1)
153
- ], !0) : n("", !0),
154
- t("span", {
155
- class: i([
156
- "option-name",
157
- {
158
- "text-inkwell-10 text-right truncate": e.selectionControl
159
- }
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)
160
209
  ])
161
- }, o(l.label || l.name || l), 3)
210
+ ], 16, G)
162
211
  ]),
163
- selection: d(({ values: l, isOpen: m }) => [
164
- e.useTags ? (s(), a("div", P, [
165
- e.groupValues && e.options[0][e.groupValues].length === l.length ? (s(), a("div", F, [
166
- t("div", {
167
- class: i([
168
- "multiselect__tag inline-flex items-center justify-center rounded me-2 z-[1]",
169
- { "tag-gray": !!e.showTags }
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 }
170
223
  ])
171
224
  }, [
172
- t("span", H, o(e.groupLabel), 1),
173
- t("span", {
174
- class: "tag-remove cursor-pointer shrink",
175
- tabindex: "1",
176
- onMousedown: u[0] || (u[0] = k((r) => e.removeElement(e.options[0][e.groupValues]), ["prevent", "stop"]))
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
+ ])
177
234
  }, [
178
- h(p, {
179
- icon: "close",
180
- color: "white",
181
- class: i([
182
- "tag-close flex rounded-full p-1",
183
- e.showTags ? "bg-inkwell-30" : "bg-blue-40"
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"])
184
248
  ]),
185
- type: "line"
186
- }, null, 8, ["class"])
187
- ], 32)
188
- ], 2)
189
- ])) : (s(), a("div", I, [
190
- (s(!0), a(T, null, q(!e.expand && e.limitShown ? l.slice(0, e.limitShown) : l, (r, w) => (s(), a("div", {
191
- key: w,
192
- class: i([
193
- "multiselect__tag !inline-flex items-center justify-center rounded mr-2 z-[1]",
194
- { "tag-added": r.added },
195
- { "tag-gray": !!e.showTags },
196
- r.tagClass ? r.tagClass : ""
197
- ])
198
- }, [
199
- r.icon ? (s(), g(p, {
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, {
200
301
  key: 0,
201
- icon: r.icon,
202
- class: "tag-icon"
203
- }, null, 8, ["icon"])) : n("", !0),
204
- t("span", {
205
- class: i([
206
- "tag-name text-sm leading-normal pr-2",
207
- { "tag-truncate": e.truncateTag }
208
- ])
209
- }, o(r.label || r.name), 3),
210
- t("span", {
211
- class: "tag-remove cursor-pointer shrink",
212
- tabindex: "1",
213
- onClick: (ae) => e.removeElement(w)
214
- }, [
215
- h(p, {
216
- icon: "close-thick",
217
- color: "white",
218
- size: "sm",
219
- class: i([
220
- "!p-[0.3rem] tag-close flex rounded-full p-1",
221
- r.closeTagClass ? r.closeTagClass : e.showTags ? "bg-inkwell-30" : e.taggable && r.added ? "bg-green-40" : "bg-blue-40"
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
+ })
222
425
  ]),
223
- type: "line"
224
- }, null, 8, ["class"])
225
- ], 8, U)
226
- ], 2))), 128)),
227
- !e.expand && e.showSelectedCount && e.multiple && l.length > e.limitShown ? (s(), a("span", B, " + " + o(l.length - e.limitShown) + " more... ", 1)) : n("", !0)
228
- ]))
229
- ])) : n("", !0),
230
- !e.showTags && !e.taggable && e.multiple && l.length ? (s(), a("div", {
231
- key: 1,
232
- class: i([
233
- "multiselect__single flex w-full",
234
- e.selectionControl ? "whitespace-nowrap justify-between" : "items-center"
235
- ])
236
- }, [
237
- t("span", {
238
- class: i([
239
- "option-selected",
240
- {
241
- capitalize: e.groupValues && e.options[0][e.groupValues].length === l.length
242
- }
426
+ content: d(() => [
427
+ k(a(e.$t("HC_CLOSE")), 1)
428
+ ]),
429
+ _: 1
430
+ })
431
+ ])
243
432
  ])
244
- }, o(e.selectionControl ? e.placeholder : e.groupValues && e.options[0][e.groupValues].length === l.length ? e.options[0][e.groupLabel] || e.groupLabel : l[0][e.label]), 3),
245
- e.selectionControl ? (s(), a("span", M, o(e.selectedText), 1)) : n("", !0),
246
- e.limitShown && e.limitShown < l.length && (!e.groupValues && l.length !== e.limitShown || e.groupValues && e.options[0][e.groupValues].length !== l.length) ? (s(), a("span", N, " + " + o(l.length - e.limitShown) + " more... ", 1)) : n("", !0)
247
- ], 2)) : m && !e.useTags && !e.multiple ? (s(), a("div", {
248
- key: 2,
249
- class: i([
250
- "multiselect__single flex w-full",
251
- e.selectionControl ? "justify-between" : "items-center"
252
- ])
253
- }, [
254
- e.selectionControl ? (s(), a(T, { key: 0 }, [
255
- t("span", Q, o(e.placeholder || ""), 1),
256
- t("span", G, o(e.selected?.label || e.selected?.name || ""), 1)
257
- ], 64)) : (s(), a("span", K, o(e.selected?.label || e.selected?.name || e.placeholder || ""), 1))
258
- ], 2)) : m && !e.useTags && e.multiple && e.selectionControl ? (s(), a("div", J, [
259
- t("span", W, o(e.placeholder || ""), 1)
260
- ])) : n("", !0)
261
- ]),
262
- option: d(({ option: l, search: m }) => [
263
- t("div", {
264
- class: i([
265
- "flex items-center w-full",
266
- { "option-search": l.label === m },
267
- { "option-disabled": l.$isDisabled }
268
433
  ]),
269
- title: l.label ? l.label : ""
270
- }, [
271
- e.multiple && e.hasCheckboxes ? (s(), g(L, {
272
- key: 0,
273
- "has-icon": !0,
274
- class: "selected-checkbox mr-2",
275
- shape: "square"
276
- }, {
277
- icon: d(() => [
278
- h(p, {
279
- icon: "check",
280
- color: "white",
281
- type: "line"
282
- })
283
- ]),
284
- _: 1
285
- })) : n("", !0),
286
- t("div", {
287
- class: i([
288
- "option-icon-name flex items-center",
289
- !l.$groupLabel && e.groupLabel ? "pl-0" : ""
290
- ])
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 }])
291
489
  }, [
292
- l.icon ? (s(), g(p, {
490
+ e.showGuestDetails && e.roomDetailsData.reservations && e.roomDetailsData.reservations[0] ? (l(), y(O, {
293
491
  key: 0,
294
- icon: l.icon,
295
- class: "mr-1"
296
- }, null, 8, ["icon"])) : n("", !0),
297
- l ? f(e.$slots, "optionPrefix", C(v({ key: 1 }, l)), void 0, !0) : n("", !0),
298
- t("div", {
299
- class: i(["option-name", [
300
- l.optionClass ? l.optionClass : ""
301
- ]])
302
- }, o(l.$groupLabel || l.label || l.name || l), 3),
303
- l.description && e.showOptionDescription ? (s(), a("div", Y, o(l.description), 1)) : n("", !0),
304
- e.multiple && e.hasCheckboxes ? n("", !0) : (s(), g(p, {
305
- key: 3,
306
- icon: "check",
307
- size: "sm",
308
- type: "line",
309
- color: "inkwell-30",
310
- class: "selected-icon"
311
- }))
312
- ], 2)
313
- ], 10, X)
314
- ]),
315
- _: 2
316
- }, [
317
- e.showSelectAll ? {
318
- name: "beforeList",
319
- fn: d(() => [
320
- t("div", D, [
321
- h(y, {
322
- type: "button",
323
- disabled: e.selectedCount === e.selected.length,
324
- "no-min-width": !0,
325
- class: "!text-sm !font-normal !leading-4",
326
- status: "link",
327
- onClick: k(e.selectAll, ["prevent"])
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"
328
496
  }, {
329
- default: d(() => [
330
- c(o(e.$t("HC_SELECT_ALL")), 1)
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))
331
587
  ]),
332
588
  _: 1
333
- }, 8, ["disabled", "onClick"]),
334
- h(y, {
335
- type: "button",
336
- disabled: !e.selected.length,
337
- "no-min-width": !0,
338
- class: "!text-sm !font-normal !leading-4",
339
- status: "link",
340
- onClick: k(e.clearAll, ["prevent"])
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"
341
835
  }, {
342
836
  default: d(() => [
343
- c(o(e.$t("HC_CLEAR_ALL")), 1)
837
+ n("div", Pe, [
838
+ n("div", Be, a(e.$t("HC_ACTION")), 1)
839
+ ])
344
840
  ]),
345
841
  _: 1
346
- }, 8, ["disabled", "onClick"])
347
- ])
348
- ]),
349
- key: "0"
350
- } : void 0,
351
- e.required && !e.floatingLabel ? {
352
- name: "placeholder",
353
- fn: d(() => [
354
- t("span", null, [
355
- c(o(e.placeholder), 1),
356
- t("span", j, " *" + o(e.$t("HC_REQUIRED")), 1)
357
- ])
358
- ]),
359
- key: "1"
360
- } : void 0
361
- ]), 1032, ["id", "modelValue", "filtering-sort-func", "options", "searchable", "multiple", "taggable", "label", "track-by", "group-values", "group-label", "group-select", "block-keys", "class", "disabled", "loading", "allow-empty", "clear-on-select", "close-on-select", "show-tags", "tag-placeholder", "placeholder", "open-direction", "onOpen", "onClose", "onTag"]),
362
- e.showFloatingLabel ? (s(), a("div", Z, [
363
- t("span", _, o(e.placeholder), 1),
364
- e.required ? (s(), a("span", x, "*" + o(e.$t("HC_REQUIRED")), 1)) : n("", !0)
365
- ])) : n("", !0)
366
- ], 10, O);
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);
367
1303
  }
368
- const ue = /* @__PURE__ */ E(V, [["render", ee], ["__scopeId", "data-v-9a966622"]]);
1304
+ const Io = /* @__PURE__ */ I(U, [["render", Eo]]);
369
1305
  export {
370
- ue as default
1306
+ Io as default
371
1307
  };