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